Convert leading spaces to tabs
[gcc.git] / gcc / ChangeLog
1 2016-06-03 Bernd Schmidt <bschmidt@redhat.com>
2
3 PR tree-optimization/52171
4 * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
5 (expand_builtin_memcmp): New arg RESULT_EQ. All callers changed.
6 Look for constant strings. Move some code to emit_block_cmp_hints
7 and use it.
8 * builtins.def (BUILT_IN_MEMCMP_EQ): New.
9 * defaults.h (COMPARE_MAX_PIECES): New macro.
10 * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
11 (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
12 (clear_by_pieces_1): Don't declare. Move definition before use.
13 (can_do_by_pieces): New static function.
14 (can_move_by_pieces): Use it. Return bool.
15 (by_pieces_ninsns): Renamed from move_by_pieces_ninsns. New arg
16 OP. All callers changed. Handle COMPARE_BY_PIECES.
17 (class pieces_addr); New.
18 (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
19 pieces_addr::adjust, pieces_addr::increment_address,
20 pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
21 functions for it.
22 (class op_by_pieces_d): New.
23 (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
24 functions for it.
25 (class move_by_pieces_d, class compare_by_pieces_d,
26 class store_by_pieces_d): New subclasses of op_by_pieces_d.
27 (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
28 move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
29 store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
30 compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
31 compare_by_pieces_d::finish_mode): New member functions.
32 (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
33 functions.
34 (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
35 (emit_block_cmp_hints): New function.
36 (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
37 use the newly defined classes.
38 * expr.h (by_pieces_constfn): New typedef.
39 (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
40 (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
41 (move_by_pieces_ninsns): Don't declare.
42 (can_move_by_pieces): Change return value to bool.
43 * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
44 (compare_by_pieces_branch_ratio): New hook.
45 * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
46 (by_pieces_ninsns): Declare.
47 * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
48 COMPARE_BY_PIECES.
49 (default_compare_by_pieces_branch_ratio): New function.
50 * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
51 * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
52 * doc/tm.texi: Regenerate.
53 * tree-ssa-strlen.c: Include "builtins.h".
54 (handle_builtin_memcmp): New static function.
55 (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
56 * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
57
58 2016-06-03 Alan Hayward <alan.hayward@arm.com>
59
60 * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
61 relevant stmts which are simple and invariant.
62 * tree-vect-loop.c (vectorizable_live_operation): Check relevance
63 instead of simple and invariant
64
65 2016-06-03 Alan Hayward <alan.hayward@arm.com>
66
67 * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
68 (vectorizable_reduction): Check for new relevant state.
69 (vectorizable_live_operation): vectorize live stmts using
70 BIT_FIELD_REF. Remove special case for gimple assigns stmts.
71 * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
72 (vect_stmt_relevant_p): Check for stmts which are only used live.
73 (process_use): Use of a stmt does not inherit it's live value.
74 (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
75 (vect_analyze_stmt): Check for new relevant state.
76 * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
77 outside the loop, but not inside it.
78
79 2016-06-03 Alan Hayward <alan.hayward@arm.com>
80
81 * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New
82 * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New
83 (vect_get_vec_def_for_operand): Split out code.
84
85 2016-06-03 Segher Boessenkool <segher@kernel.crashing.org>
86
87 * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
88
89 2016-06-03 Alan Hayward <alan.hayward@arm.com>
90
91 * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
92
93 2016-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
94
95 * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
96
97 2016-06-03 Jakub Jelinek <jakub@redhat.com>
98
99 PR middle-end/71387
100 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
101 to noreturn e->callee->decl that has void return type and void
102 arguments, adjust gimple_call_fntype and remove lhs even if it had
103 previously addressable type.
104
105 2016-06-02 Jeff Law <law@redhat.com>
106
107 PR tree-optimization/71328
108 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
109 error when checking for a jump back onto the copied path.
110
111 2016-06-02 David Malcolm <dmalcolm@redhat.com>
112
113 * config/microblaze/microblaze.c (get_branch_target): Add return
114 NULL_RTX for the non-CALL_P case.
115 (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
116 (insert_wic): Remove unused local "j".
117
118 2016-06-02 Martin Liska <mliska@suse.cz>
119
120 * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
121
122 2016-06-02 H.J. Lu <hongjiu.lu@intel.com>
123 Julia Koval <julia.koval@intel.com>
124
125 * function.c (assign_parm_setup_stack): Force source into a
126 register if needed.
127 * target.def (function_incoming_arg): Update documentation to
128 allow arbitrary address computation based on hard register.
129 * doc/tm.texi: Regenerated.
130
131 2016-06-02 Martin Liska <mliska@suse.cz>
132
133 * predict.c (combine_predictions_for_bb): Fix first match in
134 cases where a first predictor contains more than one occurence
135 in list of predictors. Take the best value in such case.
136
137 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
138
139 PR rtl-optimization/71295
140 * rtlanal.c (subreg_get_info): If taking a subreg at the requested
141 offset would go over the size of the inner mode reject it.
142
143 2016-06-02 Jakub Jelinek <jakub@redhat.com>
144
145 * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
146 x=x,x and v=v,m instead of x=x,m.
147
148 * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
149 alternative. Change x=x,x alternative to v=Yv,Yv and x=rm,C
150 alternative to v=rm,C.
151
152 * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
153 alternative. Change x=xm,C alternative to v=vm,C, x=x,x alternative
154 to v=Yv,Yv and x=x,m to v=v,m. Use maybe_evex prefix attribute
155 instead of vex for the last two above mentioned alternatives.
156
157 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
158
159 PR target/70830
160 * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
161
162 2016-06-02 Segher Boessenkool <segher@kernel.crashing.org>
163
164 * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
165
166 2016-06-01 David Malcolm <dmalcolm@redhat.com>
167
168 * config/rl78/rl78.c (rl78_expand_prologue): Convert local
169 from int to unsigned.
170
171 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
172
173 * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
174 alternatives, eliminating preferred register class. Add support
175 for the MTVSRDD instruction in ISA 3.0.
176 (vsx_splat_v4si_internal): Use splat_input_operand instead of
177 reg_or_indexed_operand.
178 (vsx_splat_v4sf_internal): Likewise.
179
180 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
181
182 PR target/71186
183 * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
184 for loading up all 0's or all 1's.
185
186 2016-06-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
187
188 * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
189
190 2016-06-01 Eduard Sanou <dhole@openmailbox.org>
191
192 * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
193 extension.
194 * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
195 * gcc.c (set_source_date_epoch_envvar): New function, sets
196 the SOURCE_DATE_EPOCH environment variable to the current time.
197
198 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
199
200 * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
201 the factor for live Phi nodes.
202
203 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
204
205 * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
206 * tree-parloops.c (parallelize_loops): likewise.
207 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
208 tree_unswitch_outer_loop): likewise.
209
210 2016-06-01 Jakub Jelinek <jakub@redhat.com>
211
212 PR middle-end/71371
213 * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
214 around creation of the temporary.
215
216 2016-06-01 Richard Biener <rguenther@suse.de>
217
218 PR tree-optimization/71366
219 * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
220 (unloop_loops): Move removing edges here ...
221 (try_unroll_loop_completely): ... from here.
222 (try_peel_loop): ... and here.
223 (tree_unroll_loops_completely_1): Track parent loops via
224 bitmap of header BBs.
225 (tree_unroll_loops_completely): Adjust for that.
226
227 2016-06-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
228
229 * config/rs6000/altivec.h (vec_slv): New macro.
230 (vec_srv): New macro.
231 * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
232 (UNSPEC_VSRV): New value.
233 (vslv): New insn.
234 (vsrv): New insn.
235 * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
236 (vsrv): New builtin definition.
237 * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
238 define argument types for new builtin.
239 (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
240 new builtin.
241 * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
242 functions.
243
244 2016-06-01 Uros Bizjak <ubizjak@gmail.com>
245 Jocelyn Mayer <l_indien@magic.fr>
246
247 PR target/67310
248 * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
249 detect processor family for signature_CENTAUR_ebx.
250 <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
251 signature_CENTAUR_ebx.
252 <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
253 <default>: Pass x86-64 for has_longmode.
254
255 2016-06-01 Nathan Sidwell <nathan@acm.org>
256
257 * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
258 undefined weak.
259
260 2016-06-01 Richard Biener <rguenther@suse.de>
261
262 PR tree-optimization/71261
263 * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
264 of stmts successfully put in the bool pattern. Remove
265 single-use restriction.
266 (adjust_bool_pattern_cast): Add cast at the use site via the
267 pattern def sequence.
268 (adjust_bool_pattern): Remove recursion, maintain a hash-map
269 of patterned defs. Use the pattern def seqence instead of
270 multiple independent patterns.
271 (sort_after_uid): New qsort compare function.
272 (adjust_bool_stmts): New function to process stmts in the bool
273 pattern in IL order.
274 (vect_recog_bool_pattern): Adjust.
275 * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
276 (ifcvt_walk_pattern_tree): Likewise.
277 (stmt_is_root_of_bool_pattern): Likewise.
278 (ifcvt_repair_bool_pattern): Likewise.
279 (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
280
281 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
282
283 * loop-unroll.c (decide_unroll_constant_iterations,
284 decide_unroll_runtime_iterations, decide_unroll_stupid): Use
285 likely upper bounds.
286 * loop-iv.c (find_simple_exit): Dump likely upper bounds.
287
288 2016-06-01 Thomas Schwinge <thomas@codesourcery.com>
289
290 * tree-core.h (enum omp_clause_code): Remove
291 OMP_CLAUSE_DEVICE_RESIDENT. Adjust all users.
292
293 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
294
295 * config/arm/sync.md (arm_store_exclusive<mode>):
296 Use 'H' output modifier on operands[2] rather than creating a new
297 entry in out-of-bounds memory of the operands array.
298 (arm_store_release_exclusivedi): Likewise.
299
300 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
301
302 * config/arm/arm.c (arm_fusion_enabled_p): New function.
303 * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
304 * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
305 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
306
307 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
308
309 * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
310 into account live statements for mask producers.
311
312 2016-06-01 Richard Biener <rguenther@suse.de>
313
314 PR tree-optimization/71311
315 * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
316 restrict to non-INTEGER_CST @0.
317
318 2016-06-01 Richard Biener <rguenther@suse.de>
319
320 * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
321 (relational patterns): Use :c to avoid pattern duplications.
322
323 2016-06-01 Richard Biener <rguenther@suse.de>
324
325 * genmatch.c (comparison_code_p): New predicate.
326 (swap_tree_comparison): New function.
327 (commutate): Add for_vec parameter to append new for entries.
328 Support commutating relational operators by swapping it alongside
329 operands.
330 (lower_commutative): Adjust.
331 (dt_simplify::gen): Do not pass artificial operators to gen
332 functions.
333 (decision_tree::gen): Do not add artificial operators as parameters.
334 (parser::parse_expr): Verify operator commutativity when :c is
335 applied. Allow :C to override this.
336 * match.pd: Adjust patterns to use :C instead of :c where required.
337
338 2016-06-01 Patrick Palka <ppalka@gcc.gnu.org>
339
340 PR tree-optimization/71077
341 * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
342 the combining step, use boolean_false_node and boolean_true_node
343 as the designated false/true return values.
344
345 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
346
347 * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
348 * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
349 (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
350 PRED_LOOP_EXIT.
351
352 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
353
354 * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
355 of flags impliying the register renaming.
356 * toplev.c (process_options): Do not imply flag_rename_registers with
357 loop peeling.
358
359 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
360
361 * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
362 default implementation.
363
364 2016-05-31 Nathan Sidwell <nathan@acm.org>
365
366 * dwarf2out.c (cur_line_info_table): Add GTY marker.
367
368 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
369
370 * config/sh/constraints.md (b): Remove constraint.
371 * config/sh/predicates.md (arith_reg_operand): Remove
372 TARGET_REGISTER_P.
373 * config/sh/sh-modes.def (PDI): Remove.
374 * config/sh/sh.c (sh_target_reg_class,
375 sh_optimize_target_register_callee_saved): Remove functions.
376 (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
377 (sh_expand_epilogue): Update comment.
378 (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
379 sh_secondary_reload): Remove TARGET_REGS related code.
380 * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
381 TARGET_REGISTER_P): Remove macros.
382 (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
383 * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
384 TR1_REG, TR2_REG): Remove constants.
385 * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
386
387 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
388
389 * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
390 define_expand patterns.
391 (adddi3_compact): Rename to adddi3.
392 (subdi3_compact): Rename to subdi3.
393 (*negdi2): Rename to negdi2.
394 (*abs<mode>2): Rename to abs<mode>2.
395
396 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
397
398 * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
399 (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
400 (atomic_sub_fetchsi): ... this new pattern.
401 (mvtc): Add CC_REG clobber.
402
403 2016-05-31 Marek Polacek <polacek@redhat.com>
404
405 * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
406
407 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
408
409 * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
410 aarch64_fusion_enabled_p to check for fusion capabilities.
411
412 2016-05-31 Richard Biener <rguenther@suse.de>
413
414 PR tree-optimization/71352
415 * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
416 minus one and a negate.
417
418 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
419
420 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
421 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
422 Delete prototype.
423 * config/aarch64/iterators.md (insn_count): Add descriptive comment.
424 * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
425 Remove use of aarch64_simd_attr_length_move, set length attribute
426 directly.
427 (*aarch64_be_movoi): Likewise.
428 (*aarch64_be_movci): Likewise.
429 (*aarch64_be_movxi): Likewise.
430
431 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
432
433 * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
434 It no longer does that.
435 * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
436
437 2016-05-31 Wladimir J. van der Laan <laanwj@gmail.com>
438
439 * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
440 attribute __unused__.
441
442 2016-05-31 Thomas Preud'homme <thomas.preudhomme@arm.com>
443
444 * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
445 * config/arm/arm.c (arm_arch_thumb1): Define.
446 (arm_option_override): Initialize arm_arch_thumb1.
447 * config/arm/arm.h (arm_arch_thumb1): Declare.
448 (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
449 support Thumb-1 ISA.
450
451 2016-05-31 Kirill Yukhin <kirill.yukhin@intel.com>
452
453 PR target/71346
454 * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
455 `Yv' for scalar operand.
456
457 2016-05-31 Tom de Vries <tom@codesourcery.com>
458
459 PR tree-optimization/69068
460 * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
461 phis with more than two args.
462
463 2016-05-30 Andreas Tobler <andreast@gcc.gnu.org>
464
465 * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
466 armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
467 target.
468
469 2016-05-30 Jose E. Marchesi <jose.marchesi@oracle.com>
470
471 * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
472 tune_64.
473 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
474 support on SPARC.
475 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
476 cpu_32, cpu_64, tune_32 and tune_64.
477 * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
478
479 2016-05-30 Uros Bizjak <ubizjak@gmail.com>
480
481 * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
482
483 2016-05-30 Andi Kleen <ak@linux.intel.com>
484
485 * auto-profile.c (read_profile): Replace asserts with errors
486 when file does not exist.
487 * gcov-io.c (gcov_read_words): Dito.
488
489 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
490
491 * tree-cfg.c (print_loop): Print likely upper bounds.
492
493 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
494
495 * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
496 * opts.c (default_options): Enable peel loops at -O3.
497 * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
498 (try_peel_loop): Do not re-peel already peeled loops;
499 use likely upper bounds; fix profile updating.
500 (pass_complete_unroll::execute): Initialize peeled_loops.
501
502 2016-05-30 Martin Liska <mliska@suse.cz>
503
504 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
505 computed costs by frequency of BB they belong to.
506 (get_scaled_computation_cost_at): New function.
507
508 2016-05-30 Alexander Monakov <amonakov@ispras.ru>
509 Marc Glisse <marc.glisse@inria.fr>
510
511 PR tree-optimization/71289
512 * match.pd (-1 / B < A, A > -1 / B): New transformations.
513
514 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
515
516 * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
517
518 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
519
520 * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
521 for peeled copies; avoid underflow when updating estimates; correctly
522 scale loop profile.
523
524 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
525
526 * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
527 r236875. Corrected oe3 to oe2 as obvious.
528
529 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
530
531 PR middle-end/71269
532 PR middle-end/71252
533 * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
534 that inserted stmt will not dominate stmts that defines its operand.
535 (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
536 (rewrite_expr_tree_parallel): Likewise.
537
538 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
539
540 PR middle-end/71252
541 * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
542 all fields including stmt_to_insert are swapped.
543
544 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
545
546 * predict.h (force_edge_cold): Declare.
547 * predict.c (force_edge_cold): New function.
548 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
549 updating.
550 (canonicalize_loop_induction_variables): Fix formating.
551
552 2016-05-30 Eric Botcazou <ebotcazou@adacore.com>
553
554 * config/visium/visium.c (visium_split_double_add): Minor tweaks.
555 (visium_expand_copysign): Use gen_int_mode directly.
556 (visium_compute_frame_size): Minor tweaks.
557
558 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
559
560 * tree-vect-loop.c (vect_analyze_loop_2): Use
561 likely_max_stmt_executions_int.
562
563 2016-05-30 Tom de Vries <tom@codesourcery.com>
564
565 PR tree-optimization/69067
566 * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
567
568 2016-05-29 Uros Bizjak <ubizjak@gmail.com>
569
570 PR target/71245
571 * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
572 New peepholes to remove unneeded fild/fistp pairs.
573 (define_peephole2 atomic_loaddi_fpu): Ditto.
574
575 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
576
577 * predict.c (maybe_hot_frequency_p): Avoid division.
578
579 2016-05-28 Gerald Pfeifer <gerald@pfeifer.com>
580
581 * doc/install.texi: Use https for shop.fsf.org.
582
583 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
584
585 * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
586 likely_max_stmt_executions_int.
587
588 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
589
590 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
591 likely_max_stmt_executions_int.
592
593 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
594
595 * profile.c (compute_branch_probabilities): Do not report hitrates
596 here.
597 (branch_prob): Report hitrates here.
598 * predict.c (gimple_predict_edge): Do not assert profile status;
599 fix formatting issues.
600
601 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
602
603 * predict.c (edge_predicted_by_p): New function.
604 (predict_paths_for_bb): Do not put multiple predictions of the same type
605 on one edge.
606
607 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
608
609 * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
610 commit.
611
612 2016-05-28 Alan Modra <amodra@gmail.com>
613
614 * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
615
616 2016-05-28 Alan Modra <amodra@gmail.com>
617
618 PR rtl-optimization/71275
619 * ira.c (ira): Free dominance info.
620
621 2016-05-27 Gerald Pfeifer <gerald@pfeifer.com>
622
623 * doc/sourcebuild.texi: New address for upstream Go repository.
624
625 2016-05-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
626
627 * config/arm/arm.h (TARGET_ARM_V6M): Remove.
628 (TARGET_ARM_V7M): Likewise.
629
630 2016-05-26 Jeff Law <law@redhat.com>
631
632 * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
633 (thread_across_edge): Remove calls to find_jump_threads_backwards.
634 * passes.def: Add jump threading passes before DOM/VRP.
635 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
636 argument to a basic block from an edge. Remove tests which are
637 handled elsewhere.
638 (pass_data_thread_jumps, class pass_thread_jumps): New.
639 (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
640 (make_pass_thread_jumps): Likewise.
641 * tree-pass.h (make_pass_thread_jumps): Declare.
642
643 2016-05-27 Eric Botcazou <ebotcazou@adacore.com>
644
645 * config/visium/visium-protos.h (split_double_move): Rename into...
646 (visium_split_double_move): ...this.
647 (visium_split_double_add): Declare.
648 * config/visium/visium.c (split_double_move): Rename into...
649 (visium_split_double_move): ...this.
650 (visium_split_double_add): New function.
651 (visium_expand_copysign): Renumber operands for consistency.
652 * config/visium/visium.md (DImode move splitter): Adjust to renaming.
653 (DFmode move splitter): Likewise.
654 (*addi3_insn): Split by means of visium_split_double_add.
655 (*adddi3_insn_flags): Delete.
656 (*plus_plus_sltu<subst_arith>): New insn.
657 (*subdi3_insn): Split by means of visium_split_double_add.
658 (subdi3_insn_flags): Delete.
659 (*minus_minus_sltu<subst_arith>): New insn.
660 (*negdi2_insn): Split by means of visium_split_double_add.
661 (*negdi2_insn_flags): Delete.
662
663 2016-05-27 Ulrich Weigand <uweigand@de.ibm.com>
664
665 * configure.ac: Treat a --with-headers option without argument
666 the same as the default (i.e. consult sys-include directory).
667 * configure: Regenerate.
668
669 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
670
671 * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
672 * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
673 prototype.
674 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
675 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
676
677 2016-05-27 Jiong Wang <jiong.wang@arm.com>
678
679 PR target/63596
680 * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
681 tree-stdarg analysis results.
682 (aarch64_setup_incoming_varargs): Likewise.
683
684 2016-05-27 Jiong Wang <jiong.wang@arm.com>
685
686 * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
687 va_list_gpr_counter_field and va_list_fpr_counter_field.
688
689 2016-05-27 Wilco Dijkstra <wdijkstr@arm.com>
690
691 PR67609
692 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
693 * config/aarch64/aarch64.c
694 (aarch64_cannot_change_mode_class): Remove function.
695 * config/aarch64/aarch64-protos.h
696 (aarch64_cannot_change_mode_class): Remove.
697
698 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
699
700 * cfgloop.c (record_niter_bound): Record likely upper bounds.
701 (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
702 get_likely_max_loop_iterations_int): New.
703 * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
704 any_likely_upper_bound.
705 (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
706 Declare.
707 * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
708 * loop-unroll.c (unroll_loop_constant_iterations): Update likely
709 upper bound.
710 (unroll_loop_constant_iterations): Likewise.
711 (unroll_loop_runtime_iterations): Likewise.
712 * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
713 * lto-streamer-out.c (output_cfg): Likewise.
714 * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
715 bounds.
716 (canonicalize_loop_induction_variables): Dump likely upper bounds.
717 * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
718 (likely_max_loop_iterations): New.
719 (likely_max_loop_iterations_int): New.
720 (likely_max_stmt_executions): New.
721 * tree-ssa-loop-niter.h (likely_max_loop_iterations,
722 likely_max_loop_iterations_int, likely_max_stmt_executions_int,
723 likely_max_stmt_executions): Declare.
724
725 2016-05-27 Marek Polacek <polacek@redhat.com>
726
727 PR middle-end/71308
728 * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
729
730 2016-05-27 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
731
732 * config/s390/s390.md (2x risbg splitters): Use
733 reg_overlap_mentioned_p instead of rtx_equal_p.
734
735 2016-05-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
736
737 * combine.c (make_compound_operation): Take known zero bits into
738 account when checking for possible zero_extend.
739
740 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
741
742 * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
743 Use const_int_operand for operand 2 predicate. Simplify expand code
744 as a result.
745
746 2016-05-27 Ilya Enkovich <ilya.enkovich@intel.com>
747
748 PR middle-end/71279
749 * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
750 into comparison.
751
752 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
753
754 * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
755 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
756 that returns CC_SESWPmode and CC_ZESWPmode.
757 (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
758 and CC_SESWPmode.
759 (aarch64_rtx_costs): Likewise.
760
761 2016-05-26 Michael Meissner <meissner@linux.vnet.ibm.com>
762
763 * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
764 for ISA 3.0 min/max support.
765 (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
766 conditional move support.
767 (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
768 rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
769 available.
770 * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
771 conditional moves where the comparison type is different from move
772 type.
773 (fp_minmax): New code iterator for smin/smax.
774 (minmax): New code attributes for min/max.
775 (SMINMAX): Likewise.
776 (smax<mode>3): Combine min, max insns into one insn using the
777 fp_minmax code iterator. Add support for ISA 3.0 min/max
778 instructions that don't need -ffast-math.
779 (s<minmax><mode>3): Likewise.
780 (smax<mode>3_vsx): Likewise.
781 (smin<mode>3): Likewise.
782 (s<minmax><mode>3_vsx): Likewise.
783 (smin<mode>3_vsx): Likewise.
784 (pre-VSX min/max splitters): Likewise.
785 (s<minmax><mode>3_fpr): Likewise.
786 (movsfcc): Rewrite floating point conditional moves to combine
787 SFmode/DFmode into a single insn.
788 (mov<mode>cc): Likewise.
789 (movdfcc): Likewise.
790 (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
791 SFDF2 iterators to handle all combinations.
792 (fseldfsf4): Likewise.
793 (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
794 (fseldfdf4): Likewise.
795 (fselsfdf4): Likewise.
796 (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
797 comparison instructions that set a 0/-1 mask, and use it for
798 floating point conditional move via XXSEL.
799 (fpmask<mode>): Likewise.
800 (xxsel<mode>): Likewise.
801 * config/rs6000/predicates.md (min_max_operator): Delete, no
802 longer used.
803 (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
804 instructions that generate a 0/-1 mask for use with XXSEL.
805 * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
806 say whether floating point min/max is available, either through
807 FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
808 (TARGET_MINMAX_DF): Likewise.
809
810 2016-05-27 Alan Modra <amodra@gmail.com>
811
812 PR rtl-optimization/71275
813 * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
814 for update_equiv_regs and combine_and_move_insns.
815
816 2016-05-26 Uros Bizjak <ubizjak@gmail.com>
817
818 * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
819 if_then_else or cond RTXes to calculate attribute value.
820 * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
821 <attr "length_immediate>: Ditto.
822 (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
823 * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
824 (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
825 <attr "type">: Ditto.
826 <attr "prefix_data16">: Ditto.
827 <attr "prefix_extra">: Ditto.
828 <attr "length_immediate">: Ditto.
829 <attr "prefix">: Ditto.
830 (vec_set<mode>_0) <attr "isa">: Ditto.
831 <attr "prefix_extra">: Ditto.
832 <attr "length_immediate">: Ditto.
833 <attr "prefix">: Ditto.
834 (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
835 (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
836 (sse2_storelpd) <attr "prefix_data16">: Ditto.
837 (sse2_loadhpd) <attr "prefix_data16">: Ditto.
838 (sse2_loadlpd) <attr "prefix_data16">: Ditto.
839 <attr "length_immediate">: Ditto.
840 <attr "prefix">: Ditto.
841 (sse2_movsd) <attr "length_immediate">: Ditto.
842 <attr "prefix">: Ditto.
843 (vec_concatv2df) <attr "isa">: Ditto.
844 <attr "prefix">: Ditto.
845 (*vec_extractv4si) <attr "prefix_extra">: Ditto.
846 (*vec_extractv2di_1) <attr "isa">: Ditto.
847 <attr "type">: Ditto.
848 <attr "length_immediate">: Ditto.
849 <attr "prefix_rex">: Ditto.
850 <attr "prefix_extra">: Ditto.
851 (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
852 <attr "prefix_extra">: Ditto.
853 <attr "length_immediate">: Ditto.
854 (vec_concatv2di) <attr "isa">: Ditto.
855 <attr "prefix_extra">: Ditto.
856 <attr "length_immediate">: Ditto.
857 <attr "prefix">: Ditto.
858
859 2016-05-26 Martin Liska <mliska@suse.cz>
860
861 * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
862 function.
863 (operator+): Likewise.
864 (operator-): Likewise.
865 (comp_cost::operator+=): Likewise.
866 (comp_cost::operator-=): Likewise.
867 (comp_cost::operator/=): Likewise.
868 (comp_cost::operator*=): Likewise.
869 (operator<): Likewise.
870 (operator==): Likewise.
871 (operator<=): Likewise.
872 (new_cost): Remove.
873 (infinite_cost_p): Likewise.
874 (add_costs): Likewise.
875 (sub_costs): Likewise.
876 (compare_costs): Likewise.
877 (set_group_iv_cost): Use the newly introduced functions.
878 (get_address_cost): Likewise.
879 (get_shiftadd_cost): Likewise.
880 (force_expr_to_var_cost): Likewise.
881 (split_address_cost): Likewise.
882 (ptr_difference_cost): Likewise.
883 (difference_cost): Likewise.
884 (get_computation_cost_at): Likewise.
885 (determine_group_iv_cost_generic): Likewise.
886 (determine_group_iv_cost_address): Likewise.
887 (determine_group_iv_cost_cond): Likewise.
888 (autoinc_possible_for_pair): Likewise.
889 (determine_group_iv_costs): Likewise.
890 (cheaper_cost_pair): Likewise.
891 (iv_ca_recount_cost): Likewise.
892 (iv_ca_set_no_cp): Likewise.
893 (iv_ca_set_cp): Likewise.
894 (iv_ca_cost): Likewise.
895 (iv_ca_new): Likewise.
896 (iv_ca_dump): Likewise.
897 (iv_ca_narrow): Likewise.
898 (iv_ca_prune): Likewise.
899 (iv_ca_replace): Likewise.
900 (try_add_cand_for): Likewise.
901 (try_improve_iv_set): Likewise.
902 (find_optimal_iv_set): Likewise.
903
904 2016-05-26 Richard Sandiford <richard.sandiford@arm.com>
905
906 * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
907 that internal functions will clobber all caller-saved registers.
908
909 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
910
911 * config/aarch64/aarch64.c (aarch64_case_values_threshold):
912 Return a better case_values_threshold when optimizing.
913
914 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
915
916 * config/aarch64/aarch64-simd.md (aarch64_combinez):
917 Add ? to integer variant.
918 (aarch64_combinez_be): Likewise.
919
920 2016-05-26 Jakub Jelinek <jakub@redhat.com>
921
922 * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
923 instead of x constraint.
924 (vcvtps2ph256<mask_name>): Likewise.
925
926 * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
927 alternative. Formatting fix.
928
929 * config/i386/sse.md
930 (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
931 to ...
932 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
933 (*avx_vperm_broadcast_v4sf): Use v constraint instead of x. Use
934 maybe_evex prefix instead of vex.
935 (*avx_vperm_broadcast_<mode>): Use v constraint instead of x. Handle
936 EXT_REX_SSE_REG_P (op0) case in the splitter.
937
938 2016-05-25 Jeff Law <law@redhat.com>
939
940 PR tree-optimization/71272
941 * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
942 Update comments. Add test for empty path.
943
944 2016-05-25 Bill Seurer <seurer@linux.vnet.ibm.com>
945
946 * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
947 * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
948 special case builtin.
949 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
950 code for ALTIVEC_BUILTIN_VEC_CMPNE.
951 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
952 for __builtin_vec_cmpne.
953
954 2016-05-25 Eric Botcazou <ebotcazou@adacore.com>
955
956 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
957 redundant test and bail out if the type of the new operand is not
958 a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
959
960 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
961
962 * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
963 (x_ix86_target_flags_explicit): Remove.
964 * config/i386/i386.c (ix86_function_specific_save): Do not copy
965 x_ix86_target_flags_explicit.
966 (ix86_function_specific_restore): Ditto.
967
968 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
969 H.J. Lu <hongjiu.lu@intel.com>
970
971 PR target/70738
972 * common/config/i386/i386-common.c
973 (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
974 (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
975 MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
976 * config/i386/i386.opt (ix86_target_flags): Add new Variable.
977 (-mgeneral-regs-only): Add new option.
978 * config/i386/i386.c (ix86_option_override_internal): Don't enable
979 x87 instructions if only general registers are allowed.
980 (ix86_target_string): Add ix86_flags argument. Handle additional
981 flags options through ix86_flags argument. Update all callers.
982 * doc/invoke.texi: Document -mgeneral-regs-only.
983
984 2016-05-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
985
986 PR rtl-optimization/66940
987 * ifcvt.c (noce_get_alt_condition): Check that incrementing or
988 decrementing desired_val will not overflow before performing these
989 operations.
990
991 2016-05-25 Ilya Verbin <ilya.verbin@intel.com>
992
993 * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
994 V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
995 * config/i386/i386.c (enum ix86_builtins): Add
996 IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
997 IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
998 IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
999 IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
1000 IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
1001 IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
1002 (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
1003 __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
1004 __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
1005 __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
1006 __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
1007 __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
1008 Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
1009 __builtin_ia32_cvtps2dq512_mask.
1010 (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
1011 V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
1012 (ix86_builtin_vectorized_function): Handle builtins mentioned above.
1013 * config/i386/sse.md
1014 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
1015 Rename to ...
1016 (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
1017 (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
1018 to ...
1019 (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
1020 (avx512f_vec_pack_sfix_v8df): New define_expand.
1021 (avx512f_roundpd512): Rename to ...
1022 (avx512f_round<castmode>512): ... this. Change iterator.
1023 (avx512f_roundps512_sfix): New define_expand.
1024 (round<mode>2_sfix): Change iterator.
1025
1026 2016-05-25 Nick Clifton <nickc@redhat.com>
1027
1028 * config/msp430/msp430.c (msp430_attr): Produce an error if a
1029 static interrupt handler is detected.
1030 * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
1031 default linker script.
1032 * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
1033 the low part of a symbolic pointer.
1034
1035 2016-05-25 Richard Biener <rguenther@suse.de>
1036
1037 PR tree-optimization/71261
1038 * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
1039 interesting stmt instead of immediate uses when looking
1040 for the use operand to replace.
1041
1042 2016-05-25 Martin Liska <mliska@suse.cz>
1043
1044 * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
1045
1046 2016-05-25 Richard Biener <rguenther@suse.de>
1047
1048 PR tree-optimization/71264
1049 * tree-vect-stmts.c (vect_init_vector): Properly deal with
1050 vector type val.
1051
1052 2016-05-25 Martin Liska <mliska@suse.cz>
1053
1054 PR tree-optimization/71239
1055 * tree.c (array_at_struct_end_p): Do not call operand_equal_p
1056 if DECL_SIZE is NULL.
1057
1058 2016-05-25 Richard Biener <rguenther@suse.de>
1059
1060 * timevar.def (TV_TREE_LOOP_IFCVT): Add.
1061 * tree-if-conv.c (pass_data_if_conversion): Use it.
1062
1063 2016-05-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
1064
1065 * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
1066 * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
1067 * varpool.c (varpool_node::get_availability): Likewise.
1068
1069 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
1070
1071 * config/rs6000/altivec.md (VNEG iterator): New iterator for
1072 VNEGW/VNEGD instructions.
1073 (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
1074 (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
1075 support for ISA 3.0 VNEGW/VNEGD instructions.
1076
1077 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
1078
1079 * gimplify.c (omp_notice_variable): Use zero-length arrays for data
1080 pointers inside OACC_DATA regions.
1081 (gimplify_scan_omp_clauses): Prune firstprivate clause associated
1082 with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
1083 (gimplify_adjust_omp_clauses): Fix typo in comment.
1084
1085 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
1086
1087 * config/rs6000/altivec.md (VParity): New mode iterator for vector
1088 parity built-in functions.
1089 (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
1090 zeros.
1091 (p9v_parity<mode>2): Likewise.
1092 * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
1093 parity.
1094 (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
1095 (parity<mode>2): ISA 3.0 expander for vector parity.
1096 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
1097 power9 built-ins.
1098 (BU_P9_64BIT_MISC_0): Likewise.
1099 (BU_P9_MISC_0): Likewise.
1100 (BU_P9V_AV_1): Likewise.
1101 (BU_P9V_AV_2): Likewise.
1102 (BU_P9V_AV_3): Likewise.
1103 (BU_P9V_AV_P): Likewise.
1104 (BU_P9V_VSX_1): Likewise.
1105 (BU_P9V_OVERLOAD_1): Likewise.
1106 (BU_P9V_OVERLOAD_2): Likewise.
1107 (BU_P9V_OVERLOAD_3): Likewise.
1108 (VCTZB): Add vector count trailing zeros support.
1109 (VCTZH): Likewise.
1110 (VCTZW): Likewise.
1111 (VCTZD): Likewise.
1112 (VPRTYBD): Add vector parity support.
1113 (VPRTYBQ): Likewise.
1114 (VPRTYBW): Likewise.
1115 (VCTZ): Add overloaded vector count trailing zeros support.
1116 (VPRTYB): Add overloaded vector parity support.
1117 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1118 overloaded vector count trailing zeros and parity instructions.
1119 * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
1120 vector parity support.
1121 * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
1122 trailing zeros support.
1123 (vec_cntlz): Likewise.
1124 (vec_vctzb): Likewise.
1125 (vec_vctzd): Likewise.
1126 (vec_vctzh): Likewise.
1127 (vec_vctzw): Likewise.
1128 (vec_vprtyb): Add ISA 3.0 vector parity support.
1129 (vec_vprtybd): Likewise.
1130 (vec_vprtybw): Likewise.
1131 (vec_vprtybq): Likewise.
1132 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
1133 the ISA 3.0 vector count trailing zeros and vector parity built-in
1134 functions.
1135
1136 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
1137
1138 * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
1139 when there is stmt_to_insert.
1140
1141 2016-05-24 Martin Sebor <msebor@redhat.com>
1142
1143 PR c++/71147
1144 * tree.h (complete_or_array_type_p): New inline function.
1145
1146 2016-05-24 Jakub Jelinek <jakub@redhat.com>
1147
1148 * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
1149 * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
1150 rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
1151
1152 * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
1153 Limit 1st alternative to noavx isa, split 2nd alternative into one
1154 noavx and one avx alternative, use *x and Bm in the former and
1155 x and m in the latter.
1156
1157 * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
1158 of sse4 for the first alternative, drop %v from the template
1159 and d operand modifier. Split second alternative into one sse4_noavx
1160 and one avx alternative, use *x instead of *v in the former and v
1161 instead of *v in the latter.
1162 (*sse4_1_extractps): Use noavx isa instead of * for the first
1163 alternative, drop %v from the template. Split second alternative into
1164 one noavx and one avx alternative, use *x instead of *v in the
1165 former and v instead of *v in the latter.
1166 (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
1167 with noavx and the last one with avx.
1168 (sse4_1_phminposuw): Guard first alternative with noavx isa,
1169 split the second one into one noavx and one avx alternative,
1170 use *x and Bm in the former and x and m in the latter one.
1171 (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
1172 alternatives.
1173
1174 * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
1175 first two alternatives to noavx, use *x instead of *v in the second
1176 one, add avx alternative without *.
1177 (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
1178 sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
1179 sse4_1_<code>v2siv2di2<mask_name>): Likewise.
1180
1181 2016-05-24 Jeff Law <law@redhat.com>
1182
1183 * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
1184 New function, extracted from...
1185 (fsm_find_control_statement_thread_paths): Here. Use the new function.
1186 Allow simple copies and constant initializations in the SSA chain.
1187
1188 2016-05-24 Marek Polacek <polacek@redhat.com>
1189
1190 PR c/71249
1191 * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
1192 scope.
1193
1194 2016-05-24 Jakub Jelinek <jakub@redhat.com>
1195
1196 PR c++/71257
1197 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
1198 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
1199 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP. Add
1200 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
1201 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
1202
1203 2016-05-24 Richard Biener <rguenther@suse.de>
1204
1205 PR tree-optimization/71240
1206 * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
1207 has integral type.
1208
1209 2016-05-24 Richard Biener <rguenther@suse.de>
1210
1211 PR tree-optimization/71230
1212 * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
1213
1214 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
1215
1216 * tree-vectorizer.h (vectorizable_comparison): Delete.
1217 * tree-vect-loop.c (vectorizable_reduction): Remove redundant
1218 PURE_SLP_STMT check.
1219 * tree-vect-stmts.c (vectorizable_call): Likewise.
1220 (vectorizable_simd_clone_call): Likewise.
1221 (vectorizable_conversion): Likewise.
1222 (vectorizable_assignment): Likewise.
1223 (vectorizable_shift): Likewise.
1224 (vectorizable_operation): Likewise.
1225 (vectorizable_load): Likewise.
1226 (vectorizable_condition): Likewise.
1227 (vectorizable_store): Likewise. Assert that we don't have
1228 hybrid SLP.
1229 (vectorizable_comparison): Make static. Remove redundant
1230 PURE_SLP_STMT check.
1231 (vect_transform_stmt): Assert that we always have an slp_node
1232 if PURE_SLP_STMT.
1233
1234 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1235
1236 * config/arm/neon.md (ashldi3_neon): Replace comparison of INTVAL of
1237 operands[2] against 1 with comparison against CONST1_RTX.
1238 (<shift>di3_neon): Likewise.
1239 * config/arm/predicates.md (const0_operand): Replace with comparison
1240 against CONST0_RTX.
1241
1242 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1243
1244 * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
1245 operands[2] against 1 with comparison against CONST1_RTX.
1246 (ashrdi3): Likewise.
1247 (lshrdi3): Likewise.
1248 (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
1249 UINTVAL.
1250 (ashrsi3): Likewise.
1251 (lshrsi3): Likewise.
1252 (rotrsi3): Likewise.
1253 (define_split above *compareqi_eq0): Likewise.
1254 (define_split above "prologue"): Likewise.
1255 * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
1256 * config/arm/predicates.md (shift_operator): Likewise.
1257 (shift_nomul_operator): Likewise.
1258 (sat_shift_operator): Likewise.
1259 (thumb1_cmp_operand): Likewise.
1260 (const_neon_scalar_shift_amount_operand): Replace manual range
1261 check with IN_RANGE.
1262 * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
1263 Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
1264
1265 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1266
1267 * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
1268 with HOST_WIDE_INT_1.
1269 (insv): Likewise.
1270 * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
1271 1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
1272 (arm_canonicalize_comparison): Likewise.
1273 (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
1274 HOST_WIDE_INT_1.
1275 (thumb1_size_rtx_costs): Likewise.
1276 (vfp_const_double_index): Replace cast of 1 to unsigned
1277 HOST_WIDE_INT with HOST_WIDE_INT_1U.
1278 (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
1279 HOST_WIDE_INT_1.
1280 (arm_asan_shadow_offset): Replace cast of 1 to unsigned
1281 HOST_WIDE_INT with HOST_WIDE_INT_1U.
1282 * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
1283 HOST_WIDE_INT with HOST_WIDE_INT_1.
1284
1285 2016-05-24 Marek Polacek <polacek@redhat.com>
1286
1287 * tree-cfg.h (should_remove_lhs_p): New predicate.
1288 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
1289 * gimplify.c (gimplify_modify_expr): Likewise.
1290 * tree-cfg.c (verify_gimple_call): Likewise.
1291 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
1292 * gimple-fold.c: Include "tree-cfg.h".
1293 (gimple_fold_call): Use should_remove_lhs_p.
1294
1295 2016-05-24 Richard Biener <rguenther@suse.de>
1296
1297 PR tree-optimization/71253
1298 * cfganal.h (control_dependences): Make robust against edge
1299 and BB removal.
1300 (control_dependences::control_dependences): Remove edge_list argument.
1301 (control_dependences::get_edge): Remove.
1302 (control_dependences::get_edge_src): Add.
1303 (control_dependences::get_edge_dest): Likewise.
1304 (control_dependences::m_el): Make a vector of edge src/dest index.
1305 * cfganal.c (control_dependences::find_control_dependence): Adjust.
1306 (control_dependences::control_dependences): Likewise.
1307 (control_dependences::~control_dependence): Likewise.
1308 (control_dependences::get_edge): Remove.
1309 (control_dependences::get_edge_src): Add.
1310 (control_dependences::get_edge_dest): Likewise.
1311 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
1312 get_edge_src.
1313 (perform_tree_ssa_dce): Adjust.
1314 * tree-loop-distribution.c (create_edge_for_control_dependence): Use
1315 get_edge_src.
1316 (pass_loop_distribution::execute): Adjust. Do loop destroying
1317 conditional on changed.
1318
1319 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1320
1321 PR target/69857
1322 * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
1323 return. Reindent transformation comment and mention the ARM state
1324 behavior.
1325
1326 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
1327
1328 PR middle-end/71252
1329 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
1330 after build_and_add_sum creates new use stmt.
1331
1332 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
1333
1334 * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
1335 load_lanes/grouped_load classification comes first. Don't check
1336 whether the vectorization factor is a multiple of the group size
1337 for load_lanes.
1338
1339 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
1340
1341 * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
1342 GROUP_GAP for single-element interleaving.
1343 * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
1344 variable.
1345
1346 2016-05-24 Richard Biener <rguenther@suse.de>
1347
1348 PR middle-end/70434
1349 PR c/69504
1350 * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
1351 bases which are accessed with non-invariant indices.
1352 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
1353 constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
1354
1355 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
1356
1357 PR middle-end/71170
1358 * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
1359 (add_to_ops_vec): Add stmt_to_insert.
1360 (add_repeat_to_ops_vec): Init stmt_to_insert.
1361 (insert_stmt_before_use): New.
1362 (transform_add_to_multiply): Remove mult_stmt insertion and add it
1363 to ops vector.
1364 (get_ops): Init stmt_to_insert.
1365 (maybe_optimize_range_tests): Likewise.
1366 (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
1367 (rewrite_expr_tree_parallel): Likewise.
1368 (reassociate_bb): Likewise.
1369
1370 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
1371
1372 PR target/71201
1373 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
1374 ISA 3.0 xxperm fusion alternative.
1375 (altivec_vperm_v8hiv16qi): Likewise.
1376 (altivec_vperm_<mode>_uns_internal): Likewise.
1377 (vperm_v8hiv4si): Likewise.
1378 (vperm_v16qiv8hi): Likewise.
1379
1380 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
1381 Kelvin Nilsen <kelvin@gcc.gnu.org>
1382
1383 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
1384 vpermr/xxpermr on ISA 3.0.
1385 (altivec_expand_vec_perm_le): Likewise.
1386 * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
1387 (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
1388 ISA 3.0.
1389
1390 2016-05-23 Uros Bizjak <ubizjak@gmail.com>
1391
1392 * config/i386/i386.h (IS_STACK_MODE): Enable for
1393 TARGET_MIX_SSE_I387. Rewrite using X87_FLOAT_MODE_P and
1394 SSE_FLOAT_MODE_P macros.
1395 * config/i386/i386.c (ix86_preferred_reload_class): Use
1396 IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
1397 Cleanup regclass processing for CONST_DOUBLE_P.
1398 (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
1399 (ix86_rtx_costs): Remove redundant TARGET_80387 check
1400 with IS_STACK_MODE macro.
1401 * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
1402 with TARGET_SSE2.
1403 (*movdf_internal): Use IS_STACK_MODE macro.
1404 (*movsf_internal): Ditto.
1405
1406 2016-05-23 Marc Glisse <marc.glisse@inria.fr>
1407
1408 * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
1409 ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
1410
1411 2016-05-23 Jeff Law <law@redhat.com>
1412
1413 * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
1414 extracted from ...
1415 (fsm_find_control_statement_thread_paths): Call it.
1416
1417 2016-05-23 Martin Jambor <mjambor@suse.cz>
1418
1419 PR ipa/71234
1420 * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
1421 from_global_constant if t is not NULL.
1422
1423 2016-05-23 Marek Polacek <polacek@redhat.com>
1424
1425 PR c/49859
1426 * common.opt (Wswitch-unreachable): New option.
1427 * doc/invoke.texi: Document -Wswitch-unreachable.
1428 * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
1429 warning.
1430
1431 2016-05-23 Bin Cheng <bin.cheng@arm.com>
1432
1433 * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
1434 TMR_INDEX is non-NULL.
1435
1436 2016-05-23 Richard Biener <rguenther@suse.de>
1437
1438 PR tree-optimization/71230
1439 * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
1440 (try_special_add_to_ops): ... here. Always test for single-use.
1441
1442 2016-05-23 Martin Jambor <mjambor@suse.cz>
1443
1444 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
1445 default block if a PHI node in the original one would be resized.
1446
1447 2016-05-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
1448
1449 PR tree-optimization/58135
1450 * tree-vect-slp.c: When group size is not multiple
1451 of vector size, allow splitting of store group at
1452 vector boundary.
1453
1454 2016-05-23 Christophe Lyon <christophe.lyon@linaro.org>
1455
1456 * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
1457
1458 2016-05-22 Jakub Jelinek <jakub@redhat.com>
1459
1460 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
1461 vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
1462 condition. For !TARGET_AVX512DQ, emit 32x4 instruction instead
1463 of 64x2.
1464
1465 * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
1466 vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
1467 v constraint instead of x and vinserti32x4 insn.
1468
1469 * config/i386/sse.md (i128vldq): New mode iterator.
1470 (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
1471 avx512dq and avx512vl alternatives.
1472
1473 * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
1474 constraint, use maybe_evex prefix instead of vex.
1475 (vec_dupv4sf): Use v constraint instead of x for output
1476 operand except for noavx alternative, use Yv constraint
1477 instead of x for input. Use maybe_evex prefix instead of vex.
1478 (*vec_dupv4si): Likewise.
1479 (*vec_dupv2di): Likewise.
1480
1481 2016-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
1482
1483 PR middle-end/40921
1484 * tree-ssa-reassoc.c (try_special_add_to_ops): New.
1485 (linearize_expr_tree): Call try_special_add_to_ops.
1486 (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
1487
1488 2016-05-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1489
1490 * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
1491 to computed stack_usage.
1492
1493 2016-05-21 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
1494
1495 PR target/71103
1496 * config/avr/avr.md (define_expand "mov<mode>"): If the source
1497 operand is subreg (symbol_ref) then move the symbol ref to register.
1498
1499 2016-05-21 Jan Hubicka <hubicka@ucw.cz>
1500
1501 * tree.c (array_at_struct_end_p): Look through MEM_REF.
1502
1503 2016-05-21 Kugan Vivekanandarajah <kuganv@linaro.org>
1504
1505 PR middle-end/71179
1506 * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
1507 VECTOR type.
1508
1509 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
1510
1511 * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
1512 ranges by calling get_single_symbol and tidy up. Look more closely
1513 into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
1514
1515 2016-05-20 Jeff Law <law@redhat.com>
1516
1517 * bitmap.c (bitmap_find_bit): Remove useless test.
1518
1519 2016-05-20 Segher Boessenkool <segher@kernel.crashing.org>
1520
1521 * function.c (thread_prologue_and_epilogue_insns): Commit the
1522 insertion of the epilogue.
1523
1524 2016-05-20 Martin Jambor <mjambor@suse.cz>
1525
1526 PR tree-optimization/70884
1527 * tree-sra.c (initialize_constant_pool_replacements): Do not check
1528 should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
1529 (sort_and_splice_var_accesses): Do not consider multiple scalar reads
1530 of constant pool data as a reason for scalarization.
1531
1532 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
1533
1534 * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
1535 for naked functions.
1536 (thumb1_expand_prologue): Likewise.
1537
1538 2016-05-20 Nathan Sidwell <nathan@acm.org>
1539
1540 * config/nvptx/nptx.c (nvptx_option_override): Only set
1541 flag_toplevel_reorder, if not explicitly specified. Set
1542 flag_no_common, unless explicitly specified.
1543
1544 2016-05-20 David Malcolm <dmalcolm@redhat.com>
1545
1546 * calls.c (can_implement_as_sibling_call_p): Mark param
1547 reg_parm_stack_space with ATTRIBUTE_UNUSED.
1548
1549 2016-05-20 Uros Bizjak <ubizjak@gmail.com>
1550
1551 * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
1552 Use IS_STACK_MODE when calculating cost of standard 80387 constants.
1553 Fallthru to CONST_VECTOR case to calculate cost of standard SSE
1554 constants.
1555 <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
1556 (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
1557 and CASE_CONST_ANY.
1558
1559 2016-05-20 Cesar Philippidis <cesar@codesourcery.com>
1560
1561 * config/nvptx/nvptx.md (sincossf3): New pattern.
1562
1563 2016-05-20 David Malcolm <dmalcolm@redhat.com>
1564
1565 * calls.c (maybe_complain_about_tail_call): New function.
1566 (initialize_argument_information): Call
1567 maybe_complain_about_tail_call when clearing *may_tailcall.
1568 (can_implement_as_sibling_call_p): Call
1569 maybe_complain_about_tail_call when returning false.
1570 (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
1571 ensure try_tail_call is set. Call maybe_complain_about_tail_call
1572 if tail-call optimization fails.
1573 * cfgexpand.c (expand_call_stmt): Initialize
1574 CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
1575 * gimple-pretty-print.c (dump_gimple_call): Dump
1576 gimple_call_must_tail_p.
1577 * gimple.c (gimple_build_call_from_tree): Call
1578 gimple_call_set_must_tail with the value of
1579 CALL_EXPR_MUST_TAIL_CALL.
1580 * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
1581 (gimple_call_set_must_tail): New function.
1582 (gimple_call_must_tail_p): New function.
1583 * print-tree.c (print_node): Update printing of TREE_STATIC
1584 to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
1585 * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
1586 trailing comment listing applicable flags.
1587 * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
1588
1589 2016-05-20 David Malcolm <dmalcolm@redhat.com>
1590
1591 * calls.c (expand_call): Move "Rest of purposes for tail call
1592 optimizations to fail" to...
1593 (can_implement_as_sibling_call_p): ...this new function, and
1594 split into multiple "if" statements.
1595
1596 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
1597
1598 * cfgloop.h (expected_loop_iterations_unbounded,
1599 expected_loop_iterations): Unconstify.
1600 * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
1601 profile with known upper bound; return 3 when profile is absent.
1602 (expected_loop_iterations): Update.
1603
1604 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
1605
1606 * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
1607 and get_max_loop_iterations_int.
1608
1609 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
1610
1611 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
1612 realistic upper bounds here.
1613
1614 2016-05-20 Jakub Jelinek <jakub@redhat.com>
1615
1616 PR c++/71210
1617 * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
1618 calls if the LHS is variable length or has addressable type.
1619 If targets[0]->decl is a noreturn call with void return type and
1620 zero arguments, adjust fntype and remove lhs in that case.
1621
1622 2016-05-20 Marc Glisse <marc.glisse@inria.fr>
1623
1624 PR tree-optimization/71079
1625 PR tree-optimization/71206
1626 * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
1627
1628 2016-05-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1629
1630 * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
1631 (get_vec_alignment_for_array_decl): Likewise.
1632 (get_vec_alignment_for_record_decl): Likewise.
1633 (increase_alignment::execute): Move code to find alignment to
1634 get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
1635 (type_align_map): New hash_map.
1636
1637 2016-05-20 Richard Guenther <rguenther@suse.de>
1638
1639 PR tree-optimization/29756
1640 * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
1641 * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
1642 * fold-const.c (operand_equal_p): Likewise.
1643 (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
1644 * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
1645 * tree-inline.c (estimate_operator_cost): Likewise.
1646 * tree-pretty-print.c (dump_generic_node): Likewise.
1647 * tree-ssa-operands.c (get_expr_operands): Likewise.
1648 * cfgexpand.c (expand_debug_expr): Likewise.
1649 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
1650 * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
1651 * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
1652 * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
1653 vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
1654 (execute_update_addresses_taken): Do it.
1655
1656 2016-05-20 Richard Biener <rguenther@suse.de>
1657
1658 PR tree-optimization/71185
1659 * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
1660 register operations.
1661
1662 2016-05-20 Richard Biener <rguenther@suse.de>
1663
1664 * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
1665 gimple_seq_add_seq_without_update.
1666 (release_bb_predicate): Assert we have no operands to free.
1667 (if_convertible_loop_p_1): Calculate post dominators later.
1668 Do not free BB predicates here.
1669 (combine_blocks): Do not recompute BB predicates.
1670 (version_loop_for_if_conversion): Save BB predicates around
1671 loop versioning.
1672
1673 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
1674
1675 * function.c (make_epilogue_seq): Remove epilogue_end parameter.
1676 (thread_prologue_and_epilogue_insns): Remove bb_flags. Restructure
1677 code. Ignore sibcalls on EDGE_IGNORE edges.
1678 * shrink-wrap.c (handle_simple_exit): New function. Set EDGE_IGNORE
1679 on edges for sibcalls that run without prologue. The rest of the
1680 function is combined from...
1681 (fix_fake_fallthrough_edge): ... this, and ...
1682 (try_shrink_wrapping): ... a part of this. Remove the bb_with
1683 function argument, make it a local variable.
1684
1685 2016-05-19 Sandra Loosemore <sandra@codesourcery.com>
1686
1687 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
1688 --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
1689 for 32-bit mode and SEH for 64-bit.
1690 * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
1691 TARGET_64BIT_DEFAULT.
1692
1693 2016-05-19 Ryan Burn <contact@rnburn.com>
1694
1695 * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
1696 * gengtype.c (open_base_files): Add cilk.h to ifiles.
1697
1698 2016-05-19 Uros Bizjak <ubizjak@gmail.com>
1699
1700 * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
1701 force pending loads from memory.
1702
1703 2016-05-19 Kelvin Nilsen <kelvin@gcc.gnu.org>
1704
1705 * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
1706 (UNSPEC_DARN_32): New unspec constant.
1707 (UNSPEC_DARN_RAW): New unspec constant.
1708 (darn_32): New instruction.
1709 (darn_raw): New instruction.
1710 (darn): New instruction.
1711 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
1712 support and documentation for this macro.
1713 (BU_P9_MISC_1): New macro definition.
1714 (BU_P9_64BIT_MISC_0): New macro definition.
1715 (BU_P9_MISC_0): New macro definition.
1716 (darn_32): New builtin definition.
1717 (darn_raw): New builtin definition.
1718 (darn): New builtin definition.
1719 * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
1720 RS6000_BUILTIN_0 directives to surround each occurrence of
1721 #include "rs6000-builtin.def".
1722 (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
1723 RS6000_BTM_64BIT flags to the returned mask, depending on
1724 configuration.
1725 (def_builtin): Correct an error in the assignments made to the
1726 debugging variable attr_string.
1727 (rs6000_expand_builtin): Add support for no-operand built-in
1728 functions.
1729 (builtin_function_type): Remove fatal_error assertion that is no
1730 longer valid.
1731 (rs6000_common_init_builtins): Add support for no-operand built-in
1732 functions.
1733 * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
1734 definition.
1735 (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
1736 definition.
1737 (RS6000_BTM_64BIT): New macro definition.
1738 * doc/extend.texi: Document __builtin_darn (void),
1739 __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
1740 functions.
1741
1742 2016-05-19 Jan Hubicka <hubicka@ucw.cz>
1743
1744 * tree-vect-loop.c (vect_analyze_loop_2): Use also
1745 max_loop_iterations_int.
1746
1747 2016-05-19 Marek Polacek <polacek@redhat.com>
1748
1749 PR tree-optimization/71031
1750 * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
1751 condition and adjust the code a bit.
1752
1753 2016-05-19 Martin Liska <mliska@suse.cz>
1754
1755 * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
1756 auto_vec instead of vec.
1757
1758 2016-05-19 Martin Liska <mliska@suse.cz>
1759
1760 * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
1761
1762 2016-05-19 Martin Liska <mliska@suse.cz>
1763
1764 * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
1765
1766 2016-05-19 Martin Liska <mliska@suse.cz>
1767
1768 * ipa-pure-const.c (set_function_state): Remove an existing
1769 funct_state.
1770 (remove_node_data): Do not free it as it's released
1771 in set_function_state.
1772
1773 2016-05-19 Martin Liska <mliska@suse.cz>
1774
1775 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
1776 bitmap.
1777
1778 2016-05-19 Martin Liska <mliska@suse.cz>
1779
1780 * omp-simd-clone.c (simd_clone_adjust): Release vector.
1781
1782 2016-05-19 Martin Liska <mliska@suse.cz>
1783
1784 * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
1785 an auto_vec instead of re-creating it.
1786
1787 2016-05-19 Martin Liska <mliska@suse.cz>
1788
1789 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
1790 auto_vec instead of vec.
1791
1792 2016-05-19 Martin Liska <mliska@suse.cz>
1793
1794 * lto-section-in.c (lto_get_section_data): Call
1795 lto_check_version with additional argument.
1796 * lto-streamer.c (lto_check_version): Add new argument.
1797 * lto-streamer.h (lto_check_version): Likewise.
1798
1799 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1800
1801 * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
1802 Don't add cost of inner memory when handling sign-extended loads.
1803
1804 2016-05-19 Ilya Enkovich <ilya.enkovich@intel.com>
1805
1806 PR rtl-optimization/71148
1807 * cse.c (cse_main): Free dominance info.
1808 (rest_of_handle_cse): Don't free dominance info.
1809 (rest_of_handle_cse2): Likewise.
1810 (rest_of_handle_cse_after_global_opts): Likewise.
1811
1812 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1813
1814 PR target/71056
1815 * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
1816 NULL_TREE early if NEON is not available. Remove now redundant check
1817 in ARM_CHECK_BUILTIN_MODE.
1818
1819 2016-05-19 Maxim Ostapenko <m.ostapenko@samsung.com>
1820
1821 PR sanitizer/64354
1822 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
1823 builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
1824 * doc/cpp.texi: Document new macros.
1825
1826 2016-05-19 Bin Cheng <bin.cheng@arm.com>
1827
1828 PR tree-optimization/69848
1829 * tree-vect-loop.c (vectorizable_reduction): Don't factor
1830 comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
1831
1832 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
1833
1834 * function.c (thread_prologue_and_epilogue_insn): Move the
1835 "goto epilogue_done" one block later.
1836
1837 2016-05-19 Richard Biener <rguenther@suse.de>
1838
1839 PR tree-optimization/70729
1840 * passes.def: Move LIM pass before PRE. Remove no longer
1841 required copyprop and move first DCE out of the loop pipeline.
1842
1843 2016-05-18 David Malcolm <dmalcolm@redhat.com>
1844
1845 PR driver/69265
1846 * Makefile.in (GCC_OBJS): Move spellcheck.o to...
1847 (OBJS-libcommon-target): ...here.
1848 * opts-common.c: Include spellcheck.h.
1849 (cmdline_handle_error): Build a vec of valid options and use it
1850 to suggest provide hints for misspelled arguments.
1851
1852 2016-05-18 Jakub Jelinek <jakub@redhat.com>
1853
1854 PR c++/71100
1855 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
1856 lhs if it has TREE_ADDRESSABLE type.
1857
1858 2016-05-18 Uros Bizjak <ubizjak@gmail.com>
1859
1860 PR target/71145
1861 * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
1862 (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
1863
1864 2016-05-18 Martin Jambor <mjambor@suse.cz>
1865
1866 PR ipa/69708
1867 * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
1868 input for NOP_EXPR pass-through functions.
1869 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
1870 aggregate global constant VAR_DECLs in constant jump functions.
1871
1872 2016-05-18 Martin Jambor <mjambor@suse.cz>
1873
1874 PR ipa/69708
1875 * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
1876 from TREE_READONLY parameters.
1877
1878 2016-05-18 Martin Jambor <mjambor@suse.cz>
1879
1880 PR ipa/69708
1881 * cgraph.h (cgraph_indirect_call_info): New field
1882 guaranteed_unmodified.
1883 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
1884 to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
1885 appropriate.
1886 * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
1887 pass the parameter value to ipa_find_agg_cst_for_param.
1888 * ipa-prop.c (ipa_load_from_parm_agg): New parameter
1889 guaranteed_unmodified, store AA results there instead of bailing out
1890 if present.
1891 (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
1892 (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
1893 (find_constructor_constant_at_offset): New function.
1894 (ipa_find_agg_cst_from_init): Likewise.
1895 (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
1896 static initializers of contants, report back through a new paameter
1897 from_global_constant if that was the case.
1898 (try_make_edge_direct_simple_call): Also pass parameter value to
1899 ipa_find_agg_cst_for_param, check guaranteed_unmodified when
1900 appropriate.
1901 (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
1902 (ipa_read_indirect_edge_info): Likewise.
1903 * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
1904 (ipa_load_from_parm_agg): Likewise.
1905
1906 2016-05-18 Jiong Wang <jiong.wang@arm.com>
1907
1908 PR rtl-optimization/71150
1909 * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
1910 check.
1911
1912 2016-05-18 Michael Meissner <meissner@linux.vnet.ibm.com>
1913
1914 PR target/70915
1915 * config/rs6000/constraints.md (wE constraint): New constraint
1916 for a vector constant that can be loaded with XXSPLTIB.
1917 (wM constraint): New constraint for a vector constant of a 1's.
1918 (wS constraint): New constraint for a vector constant that can be
1919 loaded with XXSPLTIB and a vector sign extend instruction.
1920 * config/rs6000/predicates.md (xxspltib_constant_split): New
1921 predicates for wE/wS constraints.
1922 (xxspltib_constant_nosplit): Likewise.
1923 (easy_vector_constant): Add support for constants that can be
1924 loaded via XXSPLTIB.
1925 (all_ones_constant): New predicate for vector constant with all
1926 1's set.
1927 (splat_input_operand): Add support for ISA 3.0 word splat operations.
1928 * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
1929 return if a constant can be loaded with the ISA 3.0 XXSPLTIB
1930 instruction and possibly with a sign extension.
1931 (output_vec_const_move): Add support for XXSPLTIB. If we are
1932 loading up 0/-1 into Altivec registers, prefer using VSPLTISW
1933 instead of XXLXOR/XXLORC.
1934 (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
1935 operations.
1936 (rs6000_legitimize_reload_address): Likewise.
1937 (rs6000_output_move_128bit): Use output_vec_const_move to emit
1938 constants.
1939 * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
1940 combine VSX_M and VSX_M2 into one iterator.
1941 (VSX_M2): Likewise.
1942 (VSINT_84): New iterators for loading constants with XXSPLTIB.
1943 (VSINT_842): Likewise.
1944 (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
1945 (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
1946 XXSPLTIB instruction.
1947 (xxspltib_<mode>_nosplit): Likewise.
1948 (xxspltib_<mode>_split): New insn to load up constants with
1949 XXSPLTIB and a sign extend instruction.
1950 (vsx_mov<mode>): Replace single move that handled all vector types
1951 with separate 32-bit and 64-bit moves. Combine the movti_<bit>
1952 moves (when -mvsx-timode is in effect) into the main vector
1953 moves. Eliminate separate moves for <VSr> <VSa>, where the
1954 preferred register class (<VSr>) is listed first, and the
1955 secondary register class (<VSa>) is listed second with a '?' to
1956 discourage use. Prefer loading 0/-1 in any VSX register for ISA
1957 3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
1958 that if the register was involved in a slow operation, the
1959 clear/set operation does not wait for the slow operation to
1960 finish. Adjust the length attributes for 32-bit mode. Use
1961 rs6000_output_move_128bit and drop the use of the string
1962 instructions for 32-bit movti when -mvsx-timode is in effect. Use
1963 spacing so that the alternatives and attributes don't generate
1964 long lines, and put things in columns, so that it is easier to
1965 match up the operands and attributes with the insn alternatives.
1966 (vsx_mov<mode>_64bit): Likewise.
1967 (vsx_mov<mode>_32bit): Likewise.
1968 (vsx_movti_64bit): Fold movti into normal vector moves.
1969 (vsx_movti_32bit): Likewise.
1970 (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
1971 splat instructions.
1972 (vsx_splat_v4si_internal): Likewise.
1973 (vsx_splat_v4sf_internal): Likewise.
1974 (vector fusion peepholes): Use VSX_M instead of VSX_M2.
1975 (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
1976 extend vector elements.
1977 (vsx_sign_extend_hi_<mode>): Likewise.
1978 (vsx_sign_extend_si_v2di): Likewise.
1979 * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
1980 declaration.
1981 * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
1982 constraints. Add trailing period to wL documentation.
1983
1984 2016-05-18 Richard Sandiford <richard.sandiford@arm.com>
1985
1986 PR middle-end/71020
1987 * tree-dfa.h (replace_abnormal_ssa_names): Declare.
1988 * tree-dfa.c (replace_abnormal_ssa_names): New function.
1989 * tree-call-cdce.c: Include tree-dfa.h.
1990 (can_guard_call_p): New function, extracted from...
1991 (can_use_internal_fn): ...here.
1992 (shrink_wrap_one_built_in_call_with_conds): Remove failure path
1993 and return void.
1994 (shrink_wrap_one_built_in_call): Likewise.
1995 (use_internal_fn): Likewise.
1996 (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
1997 and return void. Call replace_abnormal_ssa_names.
1998 (pass_call_cdce::execute): Check can_guard_call_p during the
1999 initial walk. Assume shrink_wrap_conditional_dead_built_in_calls
2000 will always change something.
2001
2002 2016-05-18 Martin Jambor <mjambor@suse.cz>
2003
2004 PR ipa/70646
2005 * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
2006 if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
2007
2008 2016-05-18 Martin Jambor <mjambor@suse.cz>
2009
2010 PR ipa/70646
2011 * ipa-inline.h (condition): New field size.
2012 * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
2013 for comaprison and store it into the new condition.
2014 (evaluate_conditions_for_known_args): Use condition size to check
2015 access sizes for all but CHANGED conditions.
2016 (unmodified_parm_1): New parameter size_p, store access size into it.
2017 (unmodified_parm): Likewise.
2018 (unmodified_parm_or_parm_agg_item): Likewise.
2019 (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
2020 (set_cond_stmt_execution_predicate): Extract access sizes and store
2021 them to conditions.
2022 (set_switch_stmt_execution_predicate): Likewise.
2023 (will_be_nonconstant_expr_predicate): Likewise.
2024 (will_be_nonconstant_predicate): Likewise.
2025 (inline_read_section): Stream condition size.
2026 (inline_write_summary): Likewise.
2027
2028 2016-05-18 Richard Biener <rguenther@suse.de>
2029
2030 * tree-ssa-loop-im.c (determine_max_movement): Properly add
2031 condition cost to PHI cost instead of total_cost.
2032
2033 2016-05-18 Martin Liska <mliska@suse.cz>
2034
2035 PR fortran/70856
2036 * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
2037 merged variables.
2038
2039 2016-05-18 Richard Biener <rguenther@suse.de>
2040
2041 * lto-streamer.h (LTO_major_version): Bump to 6.
2042
2043 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
2044
2045 * function.c (make_split_prologue_seq, make_prologue_seq,
2046 make_epilogue_seq): New functions, factored out from...
2047 (thread_prologue_and_epilogue_insns): Here.
2048
2049 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
2050
2051 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
2052 cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
2053 of before. Add a comment.
2054
2055 2016-05-18 Bin Cheng <bin.cheng@arm.com>
2056
2057 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
2058 expression pointer, not pointer to the pointer.
2059
2060 2016-05-18 Jakub Jelinek <jakub@redhat.com>
2061
2062 * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
2063 (avx2_pbroadcast<mode>): Add another alternative with v instead
2064 of x constraints in it, using <pbroadcast_evex_isa> isa.
2065 (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
2066
2067 * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
2068 constraint x instead of v in second alternative, add avx512bw
2069 alternative.
2070
2071 * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
2072 constraint x instead of v in second alternative, add avx512bw
2073 alternative.
2074
2075 * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
2076 constraint x instead of v in second alternative, add avx512bw
2077 alternative.
2078
2079 * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
2080 avx512bw alternative.
2081
2082 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
2083
2084 * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
2085 array to 128 chars.
2086 (define_insn "*andnottf3"): Ditto.
2087 (define_insn "*<code><mode>3"/any_logic): Ditto.
2088 (define_insn "*<code>tf3"/any_logic): Ditto.
2089 (define_insn "sse2_storehpd"): Use Yv constraint for scalar
2090 operand to block AVX-512VL insn variant emit when it is not enabled.
2091
2092 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
2093
2094 * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
2095 constraint fot SF mode.
2096
2097 2016-05-18 Petr Murzin <petr.murzin@intel.com>
2098 Kirill Yukhin <kirill.yukhin@intel.com>
2099
2100 * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
2101 modifiers.
2102 (define_insn "rsqrt14<mode>"): Ditto.
2103 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
2104 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
2105 (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
2106 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
2107 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
2108 Ditto.
2109 (define_insn "*avx512f_gatherdi<mode>"): Ditto.
2110 (define_insn "*avx512f_scatterdi<mode>"): Ditto.
2111 * config/i386/i386.c (ix86_print_operand): Expand check for size
2112 override codes for Intel syntax.
2113
2114 2016-05-18 Richard Biener <rguenther@suse.de>
2115
2116 PR tree-optimization/71168
2117 * tree-loop-distribution.c (distribute_loop): Move *destroy_p
2118 initialization earlier.
2119
2120 2016-05-18 James Greenhalgh <james.greenhalgh@arm.com>
2121
2122 * config/aarch64/aarch64-simd.md
2123 (aarch64_reduc_plus_internal<mode>): Rename to...
2124 (reduc_plus_scal): ...This, and remove previous implementation.
2125
2126 2016-05-18 Richard Biener <rguenther@suse.de>
2127
2128 * passes.def: Put late dse and cd_dce in canonical order.
2129
2130 2016-05-17 Jan Hubicka <hubicka@ucw.cz>
2131
2132 * ipa-inline-transform.c (preserve_function_body_p): Look for
2133 first non-thunk clone.
2134 (save_function_body): Save into first non-thunk.
2135 * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
2136 up call stmt id.
2137 (lto_output_node): Inline thunks don't need body in every
2138 partition.
2139 * lto-streamer-in.c: Do not fixup thunk clones.
2140 * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
2141 thunks.
2142 * tree-inline.c (copy_bb): Be prepared for target node to be new after
2143 folding suceeds.
2144
2145 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
2146
2147 PR middle-end/63586
2148 * tree-ssa-reassoc.c (transform_add_to_multiply): New.
2149 (reassociate_bb): Call transform_add_to_multiply.
2150
2151 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
2152
2153 * config/aarch64/aarch64.c (all_extensions): Removed unused
2154 static variable.
2155
2156 2016-05-17 Nathan Sidwell <nathan@acm.org>
2157
2158 * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
2159 (TARGET_FUNCTION_ARG_BOUNDARY): Override.
2160
2161 2016-05-17 Mikhail Maltsev <maltsevm@gmail.com>
2162
2163 PR tree-optimization/54579
2164 PR middle-end/55299
2165 * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
2166
2167 2016-05-17 Marek Polacek <polacek@redhat.com>
2168
2169 PR ipa/71146
2170 * tree-inline.c (expand_call_inline): Call
2171 maybe_remove_unused_call_args.
2172
2173 2016-05-17 Jim Wilson <jim.wilson@linaro.org>
2174
2175 * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
2176 * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
2177 * doc/md.texi (fmin@var{m}3): Likewise.
2178
2179 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
2180
2181 * match.pd (X & C): New transformation.
2182
2183 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
2184
2185 * match.pd (~X & Y): New transformation.
2186
2187 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
2188
2189 * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
2190 information for new SSA_NAME.
2191 (simplify_conversion_using_ranges): Get range through get_range_info
2192 instead of get_value_range.
2193
2194 2016-05-17 Jiong Wang <jiong.wang@arm.com>
2195
2196 * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
2197 Remove inline assembly.
2198 (vmvn_s16): Likewise.
2199 (vmvn_s32): Likewise.
2200 (vmvn_u8): Likewise.
2201 (vmvn_u16): Likewise.
2202 (vmvn_u32): Likewise.
2203 (vmvnq_s8): Likewise.
2204 (vmvnq_s16): Likewise.
2205 (vmvnq_s32): Likewise.
2206 (vmvnq_u8): Likewise.
2207 (vmvnq_u16): Likewise.
2208 (vmvnq_u32): Likewise.
2209 (vmvn_p8): Likewise.
2210 (vmvnq_p16): Likewise.
2211
2212 2016-05-17 Jiong Wang <jiong.wang@arm.com>
2213
2214 * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
2215 Use builtin.
2216 (vmul_n_s16): Likewise.
2217 (vmul_n_s32): Likewise.
2218 (vmul_n_u16): Likewise.
2219 (vmul_n_u32): Likewise.
2220 (vmulq_n_f32): Likewise.
2221 (vmulq_n_f64): Likewise.
2222 (vmulq_n_s16): Likewise.
2223 (vmulq_n_s32): Likewise.
2224 (vmulq_n_u16): Likewise.
2225 (vmulq_n_u32): Likewise.
2226
2227 2016-05-17 Jiong Wang <jiong.wang@arm.com>
2228
2229 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
2230 to all supported modes. Rename to "*aarch64_mul3_elt_from_dup".
2231
2232 2016-05-17 Jiong Wang <jiong.wang@arm.com>
2233
2234 * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
2235 to *aarch64_fma4_elt_from_dup<mode>.
2236 (*aarch64_fnma4_elt_to_128df): Rename to
2237 *aarch64_fnma4_elt_from_dup<mode>.
2238 * config/aarch64/arm_neon.h (vfma_n_f64): New.
2239 (vfms_n_f32): Likewise.
2240 (vfms_n_f64): Likewise.
2241 (vfmsq_n_f32): Likewise.
2242 (vfmsq_n_f64): Likewise.
2243
2244 2016-05-17 Gerald Pfeifer <gerald@pfeifer.com>
2245
2246 * wide-int.h: Change fixed_wide_int_storage from class to struct.
2247
2248 2016-05-17 Richard Biener <rguenther@suse.de>
2249
2250 PR tree-optimization/71132
2251 * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
2252 Only add control dependences for blocks in the loop.
2253 (build_rdg): Adjust.
2254 (generate_code_for_partition): Return whether loop should
2255 be destroyed and delay that.
2256 (distribute_loop): Likewise.
2257 (pass_loop_distribution::execute): Record loops to be destroyed
2258 and perform delayed destroying of loops.
2259
2260 2016-05-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2261
2262 PR target/70809
2263 * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
2264
2265 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
2266
2267 * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
2268
2269 2016-05-17 Ilya Enkovich <ilya.enkovich@intel.com>
2270
2271 PR target/71114
2272 * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
2273 insertion point for instructions generated by validize_mem.
2274
2275 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
2276
2277 * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
2278 in brackets.
2279
2280 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
2281
2282 * config/aarch64/aarch64.c
2283 (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
2284 rather than a macro.
2285
2286 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
2287
2288 * doc/invoke.texi (AArch64 Options): Various updates.
2289
2290 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
2291
2292 * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
2293 into instrumentation thunks.
2294 * cif-code.def (CIF_CHKP): New.
2295
2296 2016-05-16 Uros Bizjak <ubizjak@gmail.com>
2297
2298 * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
2299
2300 2016-05-16 Martin Jambor <mjambor@suse.cz>
2301
2302 * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
2303 (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
2304
2305 2016-05-16 Marek Polacek <polacek@redhat.com>
2306
2307 * gimple.c (maybe_remove_unused_call_args): Fix typos in the
2308 commentary.
2309
2310 2016-05-16 Martin Jambor <mjambor@suse.cz>
2311
2312 PR hsa/70857
2313 * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
2314 the outlined kernel function.
2315
2316 2016-05-16 Robert Suchanek <robert.suchanek@imgtec.com>
2317
2318 * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
2319 (ISA_HAS_DLSA): Ditto.
2320
2321 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
2322
2323 * config/mips/m5100.md (m51_int_load): Update the latency to 2.
2324
2325 2016-05-16 Nathan Sidwell <nathan@acm.org>
2326
2327 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
2328 (nvptx_name_replacement): Restore. Add comment.
2329 (write_fn_proto, write_fn_proto_from_insn,
2330 nvptx_output_call_insn): Restore
2331 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
2332
2333 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
2334
2335 * config/aarch64/aarch64.md
2336 (add<mode>3_compareC_cconly_imm): Remove use of %w.
2337 (add<mode>3_compareC_imm): Likewise.
2338 (<optab>si3_uxtw): Split into register and immediate variants.
2339 (andsi3_compare0_uxtw): Likewise.
2340 (and<mode>3_compare0): Likewise.
2341 (and<mode>3nr_compare0): Likewise.
2342 (stack_protect_test_<mode>): Don't use %x for memory operands.
2343
2344 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
2345
2346 * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
2347
2348 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
2349
2350 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
2351 Split integer shifts into shift_reg and bfm.
2352 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
2353 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
2354 (ror<mode>3_insn): Likewise.
2355 (<optab>si3_insn_uxtw): Likewise.
2356 (<optab><mode>3_insn): Change to rotate_imm.
2357 (extr<mode>5_insn_alt): Likewise.
2358 (extrsi5_insn_uxtw): Likewise.
2359 (extrsi5_insn_uxtw_alt): Likewise.
2360
2361 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
2362
2363 * doc/tm.texi: Regenerate.
2364 * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
2365 (TARGET_INVALID_RETURN_TYPE): Remove.
2366 * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
2367 TARGET_INVALID_RETURN_TYPE.
2368 * target.def (invalid_parameter_type): Remove.
2369 (invalid_return_type): Remove.
2370
2371 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
2372
2373 * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
2374 on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
2375 calls from thunk.
2376 * ipa-inline-transform.c (inline_call): When inlining into thunk produce
2377 gimple body.
2378 (preserve_function_body_p): No need to preserve function body
2379 * cif-codes.def (CIF_THUNK): Remove.
2380 * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
2381
2382 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
2383
2384 * tree-inline.c (expand_call_inline): recurse after inlining thunk.
2385
2386 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
2387
2388 * tree.c (free_lang_data_in_decl): Also set target/optimization flags
2389 for thunks.
2390
2391 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
2392
2393 * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
2394 (inline_small_functions): Do not look for function symbol when
2395 resetting caches.
2396
2397 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
2398
2399 * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
2400 of inline thunks
2401
2402 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
2403 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2404 Jiong Wang <jiong.wang@arm.com>
2405
2406 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
2407 for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
2408 Define __ARM_FP16_ARGS when appropriate.
2409 * config/arm/arm.c (arm_invalid_parameter_type): Remove
2410 declaration.
2411 (arm_invalid_return_type): Likewise.
2412 (TARGET_INVALID_PARAMETER_TYPE): Remove.
2413 (TARGET_INVALID_RETURN_TYPE): Remove.
2414 (aapcs_vfp_sub_candidate): Allow HFmode.
2415 (aapcs_vfp_allocate): Add comment. Support HFmode.
2416 (aapcs_vfp_allocate_return_reg): Likewise.
2417 (struct aapcs_cp_arg_layout): Slightly reword comments for
2418 is_return_candidate and allocate_return_reg.
2419 (output_mov_vfp): Update assert.
2420 (arm_hard_regno_mode_ok): Remove comment, update HF-mode
2421 condition.
2422 (arm_invalid_parameter_type): Remove.
2423 (amr_invalid_return_type): Remove.
2424 * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
2425 * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
2426 * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
2427
2428 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
2429
2430 * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
2431 * config/aarch64/arch64-protos.h
2432 (aarch64_legitimize_reload_address): Remove.
2433 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
2434 Remove.
2435
2436 2016-05-16 Eric Botcazou <ebotcazou@adacore.com>
2437
2438 * configure.ac: Add ACX_NONCANONICAL_HOST.
2439 * configure: Regenerate.
2440 * Makefile.in: Set host_noncanonical.
2441
2442 2016-05-14 Uros Bizjak <ubizjak@gmail.com>
2443
2444 PR target/71097
2445 * config/i386/i386.md (*movtf_internal): Before register allocation,
2446 do not allow FP constants for CM_MEDIUM memory model, allow only
2447 standard FP constants for CM_LARGE and CM_LARGE_PIC models.
2448 (*movxf_internal): Ditto.
2449 (*movdf_internal): Ditto.
2450 (*movsf_internal): Ditto.
2451
2452 2016-05-13 Segher Boessenkool <segher@kernel.crashing.org>
2453
2454 PR rtl-optimization/67483
2455 * combine.c (make_compound_operation): Don't call extract_left_shift
2456 with negative shift amounts.
2457
2458 2016-05-13 Jakub Jelinek <jakub@redhat.com>
2459
2460 PR bootstrap/71071
2461 * fold-const.c (fold_checksum_tree): Allow modification
2462 of TYPE_ALIAS_SET during folding.
2463
2464 * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
2465 ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
2466 (ix86_split_to_parts): Likewise. Fix up formatting.
2467
2468 2016-05-13 H.J. Lu <hongjiu.lu@intel.com>
2469
2470 * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
2471 unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
2472 printf format.
2473
2474 2016-05-13 Nathan Sidwell <nathan@acm.org>
2475
2476 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
2477 (nvptx_name_replacement): Delete.
2478 (write_fn_proto, write_fn_proto_from_insn,
2479 nvptx_output_call_insn): Remove nvptx_name_replacement call.
2480 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
2481 * langhooks.c (add_builtin_funcction_common): Call
2482 targetm.mangle_decl_assembler_name.
2483
2484 * config/nvptx/nvptx.c (write_fn_proto): Handle
2485 BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
2486
2487 2016-05-13 Martin Liska <mliska@suse.cz>
2488
2489 * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
2490 and PRIu64 in printf format.
2491
2492 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2493
2494 * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
2495 comment.
2496
2497 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2498
2499 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
2500 Change --param max-completely-peeled-times to
2501 --param max-completely-peel-times in dump file printing.
2502
2503 2016-05-13 Richard Biener <rguenther@suse.de>
2504
2505 PR tree-optimization/42587
2506 * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
2507 (find_bswap_or_nop_1): Likewise.
2508 (bswap_replace): Likewise.
2509
2510 2016-05-13 Martin Liska <mliska@suse.cz>
2511
2512 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
2513 Initialize a variable with default value.
2514
2515 2016-05-13 Martin Liska <mliska@suse.cz>
2516
2517 * doc/invoke.texi: Enhance explanation of error recovery
2518 of sanitizers.
2519
2520 2016-05-13 Martin Liska <mliska@suse.cz>
2521
2522 * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
2523 (struct cost_pair): Change inv_expr_id (int) to inv_expr
2524 (iv_inv_expr_ent *).
2525 (struct iv_inv_expr_ent): Comment struct fields.
2526 (sort_iv_inv_expr_ent): New function.
2527 (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
2528 (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
2529 a hash_map between iv_inv_expr_ent and number of usages.
2530 (niter_for_exit): Fix coding style.
2531 (tree_ssa_iv_optimize_init): Use renamed variable.
2532 (determine_base_object): Fix coding style.
2533 (alloc_iv): Likewise.
2534 (find_interesting_uses_outside): Likewise.
2535 (add_candidate_1): Likewise.
2536 (add_standard_iv_candidates): Likewise.
2537 (set_group_iv_cost): Replace inv_expr_id with inv_expr.
2538 (prepare_decl_rtl): Fix coding style.
2539 (get_address_cost): Likewise.
2540 (get_shiftadd_cost): Likewise.
2541 (force_expr_to_var_cost): Likewise.
2542 (compare_aff_trees): Likewise.
2543 (get_expr_id): Restructure the function.
2544 (get_loop_invariant_expr_id): Renamed to
2545 get_loop_invariant_expr.
2546 (get_computation_cost_at): Replace usage of inv_expr_id with
2547 inv_expr.
2548 (get_computation_cost): Likewise.
2549 (determine_group_iv_cost_generic): Likewise.
2550 (determine_group_iv_cost_address): Likewise.
2551 (iv_period): Fix coding style.
2552 (iv_elimination_compare_lt): Likewise.
2553 (may_eliminate_iv): Likewise.
2554 (determine_group_iv_cost_cond): Replace usage of inv_expr_id with
2555 inv_expr.
2556 (determine_group_iv_costs): Dump invariant expressions.
2557 (iv_ca_recount_cost): Use the newly added hash_map.
2558 (iv_ca_set_remove_invariants): Fix coding style.
2559 (iv_ca_set_add_invariants): Fix coding style.
2560 (iv_ca_set_no_cp): Utilize the newly added hash_map for used
2561 invariants.
2562 (iv_ca_set_cp): Likewise.
2563 (iv_ca_new): Initialize the newly added hash_map and remove
2564 initialization of fields.
2565 (iv_ca_free): Delete the hash_map.
2566 (iv_ca_dump): Dump invariant expressions.
2567 (iv_ca_extend): Fix coding style.
2568 (try_add_cand_for): Likewise.
2569 (create_new_ivs): Dump information about # of avg iterations and
2570 # of used invariant expressions.
2571 (rewrite_use_compare): Fix coding style.
2572 (free_loop_data): Set default value for max_inv_expr_id.
2573
2574 2016-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
2575
2576 * cse.c (rest_of_handle_cse): Use cleanup_cfg
2577 returned value cse_cfg_altered computation.
2578 (rest_of_handle_cse2): Likewise.
2579 (rest_of_handle_cse_after_global_opts): Likewise.
2580
2581 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2582
2583 PR target/53440
2584 * config/arm/arm.c (arm32_output_mi_thunk): New.
2585 (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
2586 to split Thumb1 vs TARGET_32BIT functionality.
2587 (arm_thumb1_mi_thunk): New.
2588
2589 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2590
2591 * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
2592 to true.
2593
2594 2016-05-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2595
2596 PR target/71080
2597 * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
2598
2599 2016-05-13 Eric Botcazou <ebotcazou@adacore.com>
2600
2601 * builtins.c (expand_builtin_memcmp): Do not emit the call here.
2602 (expand_builtin_trap): Emit a regular call.
2603 (set_builtin_user_assembler_name): Remove obsolete cases.
2604 * dse.c (scan_insn): Adjust.
2605 * except.c: Include calls.h.
2606 (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
2607 emit a regular call to setjmp.
2608 * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
2609 (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
2610 (emit_block_move_via_libcall): Delete.
2611 (block_move_fn): Delete.
2612 (init_block_move_fn): Likewise.
2613 (emit_block_move_libcall_fn): Likewise.
2614 (emit_block_op_via_libcall): New function.
2615 (set_storage_via_libcall): Tidy up and use memset builtin.
2616 (block_clear_fn): Delete.
2617 (init_block_clear_fn): Likewise.
2618 (clear_storage_libcall_fn): Likewise.
2619 (expand_assignment): Call emit_block_move_via_libcall.
2620 Do not include gt-expr.h.
2621 * expr.h (emit_block_op_via_libcall): Declare.
2622 (emit_block_copy_via_libcall): New inline function.
2623 (emit_block_move_via_libcall): Likewise.
2624 (emit_block_comp_via_libcall): Likewise.
2625 (block_clear_fn): Delete.
2626 (init_block_move_fn): Likewise.
2627 (init_block_clear_fn): Likewise.
2628 (emit_block_move_via_libcall): Likewise.
2629 (set_storage_via_libcall): Add default parameter value.
2630 * libfuncs.h (enum libfunc_index): Remove obsolete values.
2631 (abort_libfunc): Delete.
2632 (memcpy_libfunc): Likewise.
2633 (memmove_libfunc): Likewise.
2634 (memcmp_libfunc): Likewise.
2635 (memset_libfunc): Likewise.
2636 (setbits_libfunc): Likewise.
2637 (setjmp_libfunc): Likewise.
2638 (longjmp_libfunc): Likewise.
2639 (profile_function_entry_libfunc): Likewise.
2640 (profile_function_exit_libfunc): Likewise.
2641 (gcov_flush_libfunc): Likewise.
2642 * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
2643 and DECL_VISIBILITY on the declaration.
2644 (init_optabs): Do not initialize obsolete libfuncs.
2645 * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
2646 * tree-core.h (ECF_RET1): Define.
2647 (ECF_TM_PURE): Adjust.
2648 (ECF_TM_BUILTIN): Likewise.
2649 * tree.c (set_call_expr_flags): Deal with ECF_RET1.
2650 (build_common_builtin_nodes): Initialize abort builtin.
2651 Add ECF_RET1 on memcpy, memmove and memset builtins.
2652 Pass final flags for alloca and alloca_with_align builtins.
2653 * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
2654 obsolete builtins.
2655 * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
2656 * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
2657 set_storage_via_libcall and call emit_block_copy_via_libcall.
2658
2659 2016-05-12 Uros Bizjak <ubizjak@gmail.com>
2660
2661 * config/i386/i386.md (*call_got_x32): Change operand 0 to
2662 DImode before it is passed to ix86_output_call_operand.
2663 (*call_value_got_x32): Ditto for operand 1.
2664
2665 2016-05-12 Jiong Wang <jiong.wang@arm.com>
2666
2667 PR rtl-optimization/70904
2668 * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
2669 reload for wide mode.
2670
2671 2016-05-12 Marek Polacek <polacek@redhat.com>
2672
2673 PR c/70756
2674 * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
2675 * langhooks.c (lhd_incomplete_type_error): Add location parameter.
2676 * langhooks.h (incomplete_type_error): Likewise.
2677 * tree.c (size_in_bytes_loc): Renamed from size_in_bytes. Add location
2678 parameter, pass it down to incomplete_type_error.
2679 * tree.h (size_in_bytes): New inline overload.
2680 (size_in_bytes_loc): Renamed from size_in_bytes.
2681
2682 2016-05-12 Richard Biener <rguenther@suse.de>
2683
2684 PR tree-optimization/71059
2685 * tree-ssa-pre.c (phi_translate_1): Fully fold translated
2686 nary before looking up or entering the expression into the VN
2687 hashes.
2688 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
2689 Make sure to re-use NARYs without result as inserted by
2690 phi-translation.
2691
2692 2016-05-12 Richard Biener <rguenther@suse.de>
2693
2694 PR tree-optimization/71062
2695 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
2696 field.
2697 * tree-ssa-structalias.c (set_uids_in_ptset): Set
2698 vars_contains_restrict if the var is a restrict tag.
2699 * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
2700 do not disambiguate pointers against it.
2701 (dump_points_to_solution): Re-structure and adjust for new
2702 vars_contains_restrict flag.
2703 * gimple-pretty-print.c (pp_points_to_solution): Likewise.
2704
2705 2016-05-12 Martin Liska <mliska@suse.cz>
2706
2707 * doc/invoke.texi: Explain connection between
2708 -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
2709
2710 2016-05-12 Ilya Enkovich <ilya.enkovich@intel.com>
2711
2712 PR tree-optimization/71006
2713 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
2714 consider COND_EXPR as a mask producer.
2715
2716 2016-05-12 Marek Polacek <polacek@redhat.com>
2717
2718 PR driver/71063
2719 * opts.c (common_handle_option): Detect missing argument for --help^.
2720
2721 2016-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2722
2723 PR target/70830
2724 * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
2725 when popping the PC and within an interrupt handler routine.
2726 Add missing tab to output of "ldmfd".
2727 (output_return_instruction): Output LDMFD with SP update rather
2728 than POP when returning from interrupt handler.
2729
2730 2016-05-12 Jakub Jelinek <jakub@redhat.com>
2731
2732 * config/i386/i386.md (isa): Add x64_avx512dq, enable if
2733 TARGET_64BIT && TARGET_AVX512DQ.
2734 * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
2735 (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
2736 (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
2737 *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
2738 (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
2739 (*vec_extractv4si_zext): Add avx512dq alternative.
2740 (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
2741 use v instead of x constraint in other alternatives where possible.
2742
2743 * config/i386/sse.md (sse2_loadld): Use v instead of x
2744 constraint in alternatives 0,1,4.
2745
2746 * config/i386/sse.md (pinsr_evex_isa): New mode attr.
2747 (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
2748 v constraints instead of x and <pinsr_evex_isa> isa attribute.
2749
2750 PR target/71019
2751 * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
2752 <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
2753 is not emitted unless TARGET_AVX512BW.
2754 (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
2755 Likewise. For TARGET_AVX512BW, use "=v" constraint instead of "=x"
2756 for the result operand.
2757
2758 * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
2759 constraint instead of x in avx alternatives. Use maybe_evex instead
2760 of vex prefix.
2761
2762 * config/i386/constraints.md (Yv): New constraint.
2763 * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
2764 TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
2765 * config/i386/i386.md (avx512fvecmode): New mode attr.
2766 (*pushtf): Use v constraint instead of x.
2767 (*movtf_internal): Likewise. For TARGET_AVX512VL and
2768 xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
2769 (*absneg<mode>2): Use Yv constraint instead of x constraint.
2770 (*absnegtf2_sse): Likewise.
2771 (copysign<mode>3_const, copysign<mode>3_var): Likewise.
2772 * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
2773 avx512f alternatives.
2774 (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
2775
2776 2016-05-12 Richard Biener <rguenther@suse.de>
2777
2778 PR tree-optimization/71060
2779 * tree-data-ref.c (initialize_data_dependence_relation): Do not
2780 require exact match of DR_BASE_OBJECT but only matching address and
2781 type.
2782
2783 2016-05-12 Richard Biener <rguenther@suse.de>
2784
2785 PR tree-optimization/70986
2786 * cfganal.c: Include cfgloop.h.
2787 (dfs_find_deadend): Prefer to take edges exiting loops.
2788
2789 2016-05-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2790
2791 * gcc.target/powerpc/pr70963.c: Require at least power8 at both
2792 compile and run time.
2793
2794 2016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
2795
2796 PR c/43651
2797 * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
2798
2799 2016-05-11 Uros Bizjak <ubizjak@gmail.com>
2800
2801 * config/i386/i386.c (legitimize_pic_address): Use
2802 copy_to_suggested_reg instead of gen_movsi.
2803
2804 2016-05-11 Michael Meissner <meissner@linux.vnet.ibm.com>
2805
2806 * config/rs6000/predicates.md (quad_memory_operand): Move most of
2807 the code into quad_address_p and call it to share code with
2808 vsx_quad_dform_memory_operand.
2809 (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
2810 d-form support.
2811 * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
2812 bit instead of being a separate word. Split -mpower9-dform into
2813 two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
2814 * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
2815 for the register class supporting 128-bit quad word memory offsets.
2816 (mode_supports_vsx_dform_quad): Helper function to return if the
2817 register class uses quad word memory offsets.
2818 (rs6000_debug_addr_mask): Add support for quad word memory offsets.
2819 (rs6000_debug_reg_global): Always print if we are using LRA or not.
2820 (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
2821 instructions are enabled, set up the appropriate addr_masks for
2822 128-bit types.
2823 (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
2824 -mpower9-dform-scalar, instead of -mpower9-dform.
2825 (rs6000_option_override_internal): Split -mpower9-dform into two
2826 switches, -mpower9-dform-scalar and -mpower9-dform-vector. The
2827 -mpower9-dform switch sets or clears both. If we are not using
2828 the LRA register allocator, do not enable -mpower9-dform-vector by
2829 default. If we are using LRA, enable -mpower9-dform-vector and
2830 -mvsx-timode if it is appropriate. Issue a warning if either
2831 -mpower9-dform-vector or -mvsx-timode are explicitly used without
2832 enabling LRA.
2833 (quad_address_offset_p): New helper function to return if the
2834 offset is legal for quad word memory instructions.
2835 (quad_address_p): New function to determin if GPR or vector
2836 register quad word memory addresses are legal.
2837 (mem_operand_gpr): Validate quad word address offsets.
2838 (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
2839 d-form (register + offset) instructions.
2840 (offsettable_ok_by_alignment): Likewise.
2841 (rs6000_legitimate_offset_address_p): Likewise.
2842 (legitimate_lo_sum_address_p): Likewise.
2843 (rs6000_legitimize_address): Likewise.
2844 (rs6000_legitimize_reload_address): Add more debug statements for
2845 -mdebug=addr.
2846 (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
2847 d-form instructions.
2848 (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
2849 d-form instructions. Distinguish different cases in debug
2850 output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
2851 d-form instructions.
2852 (rs6000_preferred_reload_class): Likewise.
2853 (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
2854 instructions. If ISA 3.0 is available, generate lxvx/stxvx instead
2855 of the ISA 2.06 indexed memory instructions.
2856 (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
2857 use them to save/restore the saved vector registers instead of
2858 using Altivec instructions.
2859 (rs6000_emit_epilogue): Likewise.
2860 (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
2861 (rs6000_opt_masks): Split -mpower9-dform into
2862 -mpower9-dform-scalar and -mpower9-dform-vector.
2863 (rs6000_print_options_internal): Print -mno-<switch> if <switch>
2864 was not selected.
2865 * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
2866 ISA 3.0 vector indexed memory instructions, and fold the code into
2867 the normal mov<mode> patterns.
2868 (p9_vecstore_<mode>): Likewise.
2869 (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
2870 instructions.
2871 (vsx_movti_64bit): Likewise.
2872 (vsx_movti_32bit): Likewise.
2873 * config/rs6000/constraints.md (wO constraint): New constraint for
2874 ISA 3.0 vector d-form support.
2875 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
2876 -mpower9-dform-scalar instead of -mpower9-dform. Add note not to
2877 include -mpower9-dform-vector until we switch over to LRA.
2878 (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
2879 switches, -mpower9-dform-scalar and -mpower9-dform-vector.
2880 * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
2881 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
2882 for -mpower9-dform and -mlra.
2883 * doc/md.texi (wO constraint): Document wO constraint.
2884
2885 2016-05-11 Alexander Monakov <amonakov@ispras.ru>
2886
2887 * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
2888 'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
2889 * genautomata.c (output_internal_insn_code_evaluation): Simplify.
2890 Move handling of non-insn arguments inline into the sole user:
2891 (output_trans_func): ...here.
2892 (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
2893 in emitted function prototype.
2894 (output_internal_insn_latency_func): Ditto. Simplify.
2895 (output_internal_maximal_insn_latency_func): Ditto. Delete
2896 always-unused argument.
2897 (output_insn_latency_func): Ditto.
2898 (output_maximal_insn_latency_func): Ditto.
2899
2900 2016-05-11 Richard Biener <rguenther@suse.de>
2901
2902 PR tree-optimization/71055
2903 * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
2904 sth with precision not equal to access size verify we don't chop
2905 off bits.
2906
2907 2016-05-11 Richard Biener <rguenther@suse.de>
2908
2909 PR debug/71057
2910 * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
2911 (dwarf2out_finish): Move retry_incomplete_types call ...
2912 (dwarf2out_early_finish): ... here.
2913
2914 2016-05-11 Richard Biener <rguenther@suse.de>
2915
2916 PR middle-end/71002
2917 * alias.c (reference_alias_ptr_type): Preserve alias-set zero
2918 if the langhook insists on it.
2919 * fold-const.c (make_bit_field_ref): Add arg for the original
2920 reference and preserve its alias-set.
2921 (decode_field_reference): Take exp by reference and adjust it
2922 to the original memory reference.
2923 (optimize_bit_field_compare): Adjust callers.
2924 (fold_truth_andor_1): Likewise.
2925 * gimplify.c (gimplify_expr): Adjust in-SSA form test.
2926
2927 2016-05-11 Ilya Enkovich <ilya.enkovich@intel.com>
2928
2929 PR middle-end/70807
2930 * cfgrtl.h (delete_insn_and_edges): Now return bool.
2931 * cfgrtl.c (delete_insn_and_edges): Likewise.
2932 * config/i386/i386.c (convert_scalars_to_vector): Remove
2933 redundant code.
2934 * cse.c (cse_insn): Compute cse_cfg_altered.
2935 (delete_trivially_dead_insns): Likewise.
2936 (cse_cc_succs): Likewise.
2937 (rest_of_handle_cse): Free dominance info if required.
2938 (rest_of_handle_cse2): Likewise.
2939 (rest_of_handle_cse_after_global_opts): Likewise.
2940
2941 2016-05-11 Alan Modra <amodra@gmail.com>
2942
2943 * config/rs6000/rs6000.c (is_complex_IBM_long_double,
2944 abi_v4_pass_in_fpr): New functions.
2945 (rs6000_function_arg_boundary): Exclude complex IBM long double
2946 from 64-bit alignment when ABI_V4.
2947 (rs6000_function_arg, rs6000_function_arg_advance_1,
2948 rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
2949
2950 2016-05-10 Segher Boessenkool <segher@kernel.crashing.org>
2951
2952 PR rtl-optimization/71028
2953 * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
2954 jump with just a return in the fallthrough block if the branch
2955 block contains just a return as well.
2956
2957 2016-05-10 Marc Glisse <marc.glisse@inria.fr>
2958
2959 * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
2960 * match.pd ((X & Y) ^ Y): ... this.
2961 ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
2962 | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
2963
2964 2016-05-10 David Malcolm <dmalcolm@redhat.com>
2965
2966 * read-md.c (require_char_ws): New function.
2967 (read_string): Simplify using require_char_ws.
2968 (handle_constants): Likewise.
2969 (handle_enum): Likewise.
2970 (handle_file): Likewise.
2971 * read-md.h (require_char_ws): New declaration.
2972 * read-rtl.c (read_conditions): Simplify using require_char_ws.
2973 (read_mapping): Likewise.
2974 (read_rtx_code): Likewise.
2975 (read_nested_rtx): Likewise.
2976
2977 2016-05-10 James Norris <jnorris@codesourcery.com>
2978
2979 * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
2980 if offloading is enabled and -fopenacc or -fopenmp is specified.
2981 (CRTOFFLOADEND): Likewise.
2982 (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
2983 (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
2984
2985 2016-05-10 Uros Bizjak <ubizjak@gmail.com>
2986
2987 * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
2988 gotoff_operand code paths. Use copy_to_suggested_regs and
2989 expand_simple_binop where appropriate. Cleanup.
2990
2991 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
2992
2993 PR target/70799
2994 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
2995 integer constants.
2996 (dimode_scalar_chain::vector_const_cost): New.
2997 (dimode_scalar_chain::compute_convert_gain): Handle constants.
2998 (dimode_scalar_chain::convert_op): Likewise.
2999 (dimode_scalar_chain::convert_insn): Likewise.
3000
3001 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
3002
3003 * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
3004 unary operation, not a binary one.
3005
3006 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
3007
3008 PR middle-end/70877
3009 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
3010 calls with type casted fndecl.
3011
3012 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
3013
3014 PR tree-optimization/70786
3015 * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
3016 * calls.c (initialize_argument_information): Bind bounds
3017 with corresponding args passed by reference.
3018
3019 2016-05-10 Jakub Jelinek <jakub@redhat.com>
3020
3021 PR target/70927
3022 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
3023 *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
3024 use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
3025 accordingly.
3026
3027 2016-05-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3028
3029 PR target/70963
3030 * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
3031 code for a zero scale factor.
3032 (vsx_xvcvdpuxds_scale): Likewise.
3033
3034 2016-05-10 David Malcolm <dmalcolm@redhat.com>
3035
3036 * diagnostic-show-locus.c (layout::layout): Call show_ruler
3037 if show_ruler_p was set on the context.
3038 (layout::show_ruler): New method.
3039 * diagnostic.h (struct diagnostic_context): Add field
3040 "show_ruler_p".
3041
3042 2016-05-10 Richard Biener <rguenther@suse.de>
3043
3044 PR tree-optimization/71039
3045 * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
3046 (chk_uses): New function.
3047 (propagate_with_phi): Verify we can safely replicate the lhs of an
3048 aggregate assignment on all incoming edges.
3049
3050 2016-05-10 Oleg Endo <olegendo@gcc.gnu.org>
3051
3052 * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
3053 Forward declare.
3054 (rx_atomic_sequence): New class.
3055 * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
3056 (is_interrupt_func, is_fast_interrupt_func): Make non-static and
3057 non-inline.
3058 (rx_atomic_sequence::rx_atomic_sequence,
3059 rx_atomic_sequence::~rx_atomic_sequence): New functions.
3060 * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
3061 CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
3062 CTRLREG_INTB): New constants.
3063 (FETCHOP): New code iterator.
3064 (fethcop_name, fetchop_name2): New iterator code attributes.
3065 (QIHI): New mode iterator.
3066 (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
3067 atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
3068 atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
3069
3070 2016-05-10 Martin Liska <mliska@suse.cz>
3071
3072 * tree-inline.c (remap_dependence_clique): Do not remap
3073 debugging statements.
3074
3075 2016-05-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3076
3077 * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
3078 ("*fixuns_truncdfdi2_z13")
3079 ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
3080 ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
3081 ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
3082
3083 2016-05-10 Richard Biener <rguenther@suse.de>
3084
3085 PR tree-optimization/70497
3086 PR tree-optimization/28367
3087 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
3088 split out from ...
3089 (visit_reference_op_load): ... here.
3090 (vn_reference_lookup_3): Use it to handle subreg-like accesses
3091 with simplified BIT_FIELD_REFs.
3092 * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
3093 * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
3094 correctly.
3095
3096 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
3097
3098 * dwarf2out.c (add_abstract_origin_attribute): Adjust
3099 documentation comment. For BLOCK nodes, add a
3100 DW_AT_abstract_origin attribute that points to the DIE generated
3101 for the origin BLOCK.
3102 (gen_lexical_block_die): Call add_abstract_origin_attribute for
3103 blocks from inlined functions.
3104
3105 2016-05-10 Alan Modra <amodra@gmail.com>
3106
3107 PR target/70947
3108 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
3109 regrename modifying insns saving lr before __morestack call.
3110 * config/rs6000/rs6000.md (split_stack_return): Similarly for
3111 insns restoring lr after __morestack call.
3112
3113 2016-05-09 Jakub Jelinek <jakub@redhat.com>
3114
3115 * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
3116 lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
3117 expanders.
3118 * config/i386/sse.md (vec_interleave_high<mode>,
3119 vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
3120 <avx512>_vpermt2var<mode>3_maskz): Likewise.
3121
3122 2016-05-04 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
3123
3124 * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
3125 function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
3126 parallel reassociation for power8 and forward.
3127
3128 2016-05-09 Uros Bizjak <ubizjak@gmail.com>
3129
3130 * config/i386/i386.md (absneg splitters with general regs): Use
3131 general_reg_operand predicate.
3132 (btsq peephole2): Use x86_64_immediate_operand to check if new
3133 value is suitable for immediate operand. Generate emitted insn
3134 using RTL expressions.
3135 (btcq peephole2): Ditto.
3136 (btrq peephole2): Ditto. Generate correct immediate operand
3137 for AND masking.
3138
3139 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
3140
3141 * cfgexpand.c (expand_debug_expr): Fix address offset for negative
3142 bitpos.
3143
3144 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
3145
3146 * tree-affine.c (wide_int_constant_multiple_p): Add missing
3147 pointer dereference.
3148
3149 2016-05-09 Richard Biener <rguenther@suse.de>
3150
3151 PR tree-optimization/70985
3152 * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
3153 op0 isn't a gimple register.
3154
3155 2016-05-09 Prachi Godbole <prachi.godbole@imgtec.com>
3156
3157 * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
3158 (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
3159 (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
3160 (i6400_fpu_mult): New cpu units.
3161 (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
3162 (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
3163 (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
3164 (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
3165 (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
3166 (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
3167 (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
3168 (i6400_msa_long_float4, i6400_msa_long_float5)
3169 (i6400_msa_long_float8, i6400_msa_fdiv_df)
3170 (i6400_msa_fdiv_sf): New reservations.
3171 * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
3172 (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
3173 (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
3174 (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
3175 (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
3176 (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
3177 (msa_short_cmp, msa_short_float2, msa_short_logic3)
3178 (msa_short_store4, msa_long_load, msa_short_store)
3179 (msa_long_logic, msa_long_float2, msa_long_float4)
3180 (msa_long_float5, msa_long_float8, msa_long_mult)
3181 (msa_long_fdiv, msa_long_div): New reservations.
3182
3183 2016-05-09 Robert Suchanek <robert.suchanek@imgtec.com>
3184 Sameera Deshpande <sameera.deshpande@imgtec.com>
3185 Matthew Fortune <matthew.fortune@imgtec.com>
3186 Graham Stott <graham.stott@imgtec.com>
3187 Chao-ying Fu <chao-ying.fu@imgtec.com>
3188
3189 * config.gcc: Add MSA header file for mips*-*-* target.
3190 * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
3191 (Ubv8i, Urv8): New constraints.
3192 * config/mips/mips-ftypes.def: Add function types for MSA
3193 builtins.
3194 * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
3195 (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
3196 * config/mips/mips-msa.md: New file.
3197 * config/mips/mips-protos.h
3198 (mips_split_128bit_const_insns): New prototype.
3199 (mips_msa_idiv_insns): Likewise.
3200 (mips_split_128bit_move): Likewise.
3201 (mips_split_128bit_move_p): Likewise.
3202 (mips_split_msa_copy_d): Likewise.
3203 (mips_split_msa_insert_d): Likewise.
3204 (mips_split_msa_fill_d): Likewise.
3205 (mips_expand_msa_branch): Likewise.
3206 (mips_const_vector_same_val_p): Likewise.
3207 (mips_const_vector_same_bytes_p): Likewise.
3208 (mips_const_vector_same_int_p): Likewise.
3209 (mips_const_vector_shuffle_set_p): Likewise.
3210 (mips_const_vector_bitimm_set_p): Likewise.
3211 (mips_const_vector_bitimm_clr_p): Likewise.
3212 (mips_msa_vec_parallel_const_half): Likewise.
3213 (mips_msa_output_division): Likewise.
3214 (mips_ldst_scaled_shift): Likewise.
3215 (mips_expand_vec_cond_expr): Likewise.
3216 * config/mips/mips.c (enum mips_builtin_type): Add
3217 MIPS_BUILTIN_MSA_TEST_BRANCH.
3218 (mips_gen_const_int_vector_shuffle): New prototype.
3219 (mips_const_vector_bitimm_set_p): New function.
3220 (mips_const_vector_bitimm_clr_p): Likewise.
3221 (mips_const_vector_same_val_p): Likewise.
3222 (mips_const_vector_same_bytes_p): Likewise.
3223 (mips_const_vector_same_int_p): Likewise.
3224 (mips_const_vector_shuffle_set_p): Likewise.
3225 (mips_symbol_insns): Forbid loading symbols via immediate for
3226 MSA.
3227 (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
3228 stores.
3229 (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
3230 MSA.
3231 (mips_lx_address_p): Add support load indexed address for MSA.
3232 (mips_address_insns): Add calculation of instructions needed for
3233 stores and loads for MSA.
3234 (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR. Handle
3235 CONST_VECTOR for MSA and let it fall through.
3236 (mips_ldst_scaled_shift): New function.
3237 (mips_subword_at_byte): Likewise.
3238 (mips_msa_idiv_insns): Likewise.
3239 (mips_legitimize_move): Validate MSA moves.
3240 (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases. Add
3241 calculation of costs for MSA division.
3242 (mips_split_move_p): Check if MSA moves need splitting.
3243 (mips_split_move): Split MSA moves if necessary.
3244 (mips_split_128bit_move_p): New function.
3245 (mips_split_128bit_move): Likewise.
3246 (mips_split_msa_copy_d): Likewise.
3247 (mips_split_msa_insert_d): Likewise.
3248 (mips_split_msa_fill_d): Likewise.
3249 (mips_output_move): Handle MSA moves.
3250 (mips_expand_msa_branch): New function.
3251 (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
3252 Reinstate 'y' modifier.
3253 (mips_file_start): Add MSA .gnu_attribute.
3254 (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
3255 FPRs.
3256 (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
3257 (mips_class_max_nregs): Add register size for MSA supported mode.
3258 (mips_cannot_change_mode_class): Allow conversion between MSA
3259 vector modes and TImode.
3260 (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
3261 instruction.
3262 (mips_secondary_reload_class): Force MSA loads/stores via memory.
3263 (mips_preferred_simd_mode): Add preffered modes for MSA.
3264 (mips_vector_mode_supported_p): Add MSA supported modes.
3265 (mips_autovectorize_vector_sizes): New function.
3266 (mips_msa_output_division): Likewise.
3267 (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
3268 (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
3269 (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
3270 (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
3271 (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
3272 (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
3273 (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
3274 (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
3275 (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
3276 (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
3277 (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
3278 (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
3279 (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
3280 (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
3281 (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
3282 (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
3283 (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
3284 (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
3285 (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
3286 (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
3287 (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
3288 (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
3289 (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
3290 (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
3291 (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
3292 (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
3293 (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
3294 (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
3295 (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
3296 (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
3297 (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
3298 (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
3299 (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
3300 (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
3301 (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
3302 (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
3303 (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
3304 (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
3305 (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
3306 (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
3307 (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
3308 (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
3309 (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
3310 (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
3311 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
3312 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
3313 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
3314 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
3315 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
3316 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
3317 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
3318 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
3319 (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
3320 (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
3321 (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
3322 (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
3323 (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
3324 (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
3325 (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
3326 (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
3327 (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
3328 (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
3329 (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
3330 (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
3331 (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
3332 (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
3333 (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
3334 (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
3335 (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
3336 (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
3337 (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
3338 (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
3339 (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
3340 (CODE_FOR_msa_ldi_d): New code_aliasing macros.
3341 (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
3342 slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
3343 srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
3344 srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
3345 srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
3346 srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
3347 bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
3348 bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
3349 bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
3350 binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
3351 binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
3352 binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
3353 addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
3354 subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
3355 max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
3356 max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
3357 maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
3358 mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
3359 mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
3360 min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
3361 ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
3362 clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
3363 clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
3364 clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
3365 clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
3366 clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
3367 st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
3368 sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
3369 adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
3370 adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
3371 ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
3372 aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
3373 aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
3374 subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
3375 subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
3376 subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
3377 asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
3378 maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
3379 msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
3380 div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
3381 hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
3382 hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
3383 mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
3384 dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
3385 dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
3386 dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
3387 sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
3388 splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
3389 pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
3390 ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
3391 ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
3392 ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
3393 ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
3394 bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
3395 fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
3396 pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
3397 nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
3398 copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
3399 insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
3400 bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
3401 fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
3402 fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
3403 fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
3404 fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
3405 fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
3406 fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
3407 fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
3408 fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
3409 fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
3410 fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
3411 mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
3412 msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
3413 fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
3414 flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
3415 ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
3416 ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
3417 ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
3418 move_v builtins.
3419 (mips_get_builtin_decl_index): New array.
3420 (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
3421 (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
3422 (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
3423 (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
3424 (mips_init_builtins): Initialize mips_get_builtin_decl_index
3425 array.
3426 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
3427 hook.
3428 (mips_expand_builtin_insn): Prepare operands for
3429 CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
3430 CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
3431 CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
3432 CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
3433 CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
3434 CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
3435 CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
3436 CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
3437 CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
3438 CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
3439 CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
3440 CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
3441 CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
3442 CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
3443 CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
3444 CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
3445 CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
3446 CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
3447 CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
3448 CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
3449 CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
3450 CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
3451 CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
3452 CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
3453 CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
3454 CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
3455 CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
3456 CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
3457 CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
3458 CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
3459 CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
3460 CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
3461 CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
3462 CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
3463 CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
3464 CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
3465 CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
3466 CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
3467 CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
3468 CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
3469 CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
3470 (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
3471 (mips_set_compression_mode): Disallow MSA with MIPS16 code.
3472 (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
3473 These are set implicitly and an error is reported if overridden.
3474 (mips_expand_builtin_msa_test_branch): New function.
3475 (mips_expand_msa_shuffle): Likewise.
3476 (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
3477 (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
3478 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
3479 (mips_expand_vec_unpack): Add support for MSA.
3480 (mips_expand_vector_init): Likewise.
3481 (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
3482 instead of const0_rtx.
3483 (mips_msa_vec_parallel_const_half): New function.
3484 (mips_gen_const_int_vector): Likewise.
3485 (mips_gen_const_int_vector_shuffle): Likewise.
3486 (mips_expand_msa_cmp): Likewise.
3487 (mips_expand_vec_cond_expr): Likewise.
3488 * config/mips/mips.h
3489 (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
3490 (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
3491 specified.
3492 (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
3493 (ISA_HAS_MSA): New macro.
3494 (UNITS_PER_MSA_REG): Likewise.
3495 (BITS_PER_MSA_REG): Likewise.
3496 (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
3497 (MSA_REG_FIRST): New macro.
3498 (MSA_REG_LAST): Likewise.
3499 (MSA_REG_NUM): Likewise.
3500 (MSA_REG_P): Likewise.
3501 (MSA_REG_RTX_P): Likewise.
3502 (MSA_SUPPORTED_MODE_P): Likewise.
3503 (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
3504 (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
3505 * config/mips/mips.md: Include mips-msa.md.
3506 (alu_type): Add simd_add.
3507 (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
3508 (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
3509 simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
3510 simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
3511 simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
3512 simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
3513 simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
3514 simd_move, simd_load, simd_store. Choose "multi" for moves
3515 for "qword_mode".
3516 (qword_mode): New attribute.
3517 (insn_count): Add instruction count for quad moves.
3518 Increase the count for MIPS SIMD division.
3519 (UNITMODE): Add UNITMODEs for vector types.
3520 (addsub): New code iterator.
3521 * config/mips/mips.opt (mmsa): New option.
3522 * config/mips/msa.h: New file.
3523 * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
3524 specified.
3525 * config/mips/mti-linux.h: Likewise.
3526 * config/mips/predicates.md
3527 (const_msa_branch_operand): New constraint.
3528 (const_uimm3_operand): Likewise.
3529 (const_uimm4_operand): Likewise.
3530 (const_uimm5_operand): Likewise.
3531 (const_uimm8_operand): Likewise.
3532 (const_imm5_operand): Likewise.
3533 (aq10b_operand): Likewise.
3534 (aq10h_operand): Likewise.
3535 (aq10w_operand): Likewise.
3536 (aq10d_operand): Likewise.
3537 (const_m1_operand): Likewise.
3538 (reg_or_m1_operand): Likewise.
3539 (const_exp_2_operand): Likewise.
3540 (const_exp_4_operand): Likewise.
3541 (const_exp_8_operand): Likewise.
3542 (const_exp_16_operand): Likewise.
3543 (const_vector_same_val_operand): Likewise.
3544 (const_vector_same_simm5_operand): Likewise.
3545 (const_vector_same_uimm5_operand): Likewise.
3546 (const_vector_same_uimm6_operand): Likewise.
3547 (const_vector_same_uimm8_operand): Likewise.
3548 (par_const_vector_shf_set_operand): Likewise.
3549 (reg_or_vector_same_val_operand): Likewise.
3550 (reg_or_vector_same_simm5_operand): Likewise.
3551 (reg_or_vector_same_uimm6_operand): Likewise.
3552 * doc/extend.texi (MIPS SIMD Architecture Functions): New
3553 section.
3554 * doc/invoke.texi (-mmsa): Document new option.
3555
3556 2016-05-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3557
3558 * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
3559 * configure: Regenerate.
3560 * config.in: Regenerate.
3561 * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
3562 on -fvtable-verify.
3563 * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
3564 (ENDFILE_VTV_SPEC): Define.
3565
3566 2016-05-09 Kaushik Phatak <kaushik.phatak@kpit.com>
3567
3568 * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
3569 registers in all interrupt handlers if necessary.
3570 (rl78_option_override): Add warning.
3571 (MUST_SAVE_MDUC_REGISTERS): New macro.
3572 (rl78_expand_epilogue): Restore the MDUC registers if necessary.
3573 * config/rl78/rl78.c (check_mduc_usage): New function.
3574 (mduc_regs): New structure to hold MDUC register data.
3575 * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
3576 (mulsi3_g13): Add is_g13_muldiv_insn attribute.
3577 (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
3578 (mulhi3_g13): Add is_g13_muldiv_insn attribute.
3579 * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
3580 * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
3581
3582 2016-05-09 Bin Cheng <bin.cheng@arm.com>
3583
3584 * tree-if-conv.c (tree-ssa-loop.h): Include header file.
3585 (tree-ssa-loop-niter.h): Ditto.
3586 (idx_within_array_bound, ref_within_array_bound): New functions.
3587 (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
3588 Factor out check on writable base object to ...
3589 (base_object_writable): ... here.
3590
3591 2016-05-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3592
3593 * config/arm/arm.md (probe_stack): Add modes to set source
3594 and destination.
3595
3596 2016-05-09 Bernd Schmidt <bschmidt@redhat.com>
3597
3598 * regrename.c (base_reg_class_for_rename): New static function.
3599 (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
3600
3601 2016-05-08 Jan Hubicka <hubicka@ucw.cz>
3602
3603 * cgraph.c (thunk_adjust): Export.
3604 * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
3605 * cgraphunit.c (thunk_adjust): Export.
3606 (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
3607 thunks.
3608 * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
3609 inlinable.
3610 * tree-inline.c (expand_call_inline): Expand thunks inline.
3611
3612 2016-05-08 Uros Bizjak <ubizjak@gmail.com>
3613
3614 PR target/70998
3615 * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
3616 (*sse2_vd_cvtss2sd): Ditto.
3617 * config/i386/i386.md
3618 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
3619 Generate *sse2_vd_cvtsd2ss pattern.
3620 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
3621 Generate *sse2_vd_cvtss2sd pattern.
3622
3623 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
3624
3625 * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
3626 * config/sh/sh.c (get_sh_arg_class): ... this new function. Update its
3627 users.
3628
3629 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
3630
3631 * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
3632 * config/sh/sh.c: Define and declare variables on first use throughout
3633 the file.
3634 (current_function_interrupt): Change to bool type.
3635 (frame_insn): Rename to emit_frame_insn and update users.
3636 (push_regs): Use bool for 'interrupt_handler' argument.
3637 (save_schedule_s): Remove.
3638 (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
3639 (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
3640 targetm.asm_out.unaligned_op.di.
3641 (gen_far_branch): Remove redundant forward declaration.
3642 (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
3643 MAX_TEMPS, save_schedule_ssave_schedule): Remove.
3644 (sh_set_return_address, sh_function_ok_for_sibcall,
3645 scavenge_reg): Update comments.
3646 (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
3647 (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
3648 (sh_attr_renesas_p): Remove unnecessary parentheses.
3649 (branch_dest): Simplify.
3650 * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
3651 Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
3652 (CUMULATIVE_ARGS): Change macro to typedef.
3653 (current_function_interrupt): Change to bool type.
3654 (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
3655 Surround with __cplusplus ifdef.
3656 (sh_compare_op0, sh_compare_op1): Remove.
3657 (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
3658
3659 2016-05-07 Jim Wilson <jim.wilson@linaro.org>
3660
3661 * config/arm/arm.md: (arch): Add neon.
3662 (arch_enabled): Return yes for arch neon when TARGET_NEON.
3663 * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3. Add
3664 neon_move as type for alt 3. Add arch attr enabling alt 3 for neon.
3665 Emit vmov.i64 for alt 3. Renumber alternatives 3 to 8. Adjust
3666 attributes for alt renumbering. Mark alt 3 as non-predicable.
3667 (thumb2_movdf_vfp): Likewise.
3668
3669 2016-05-07 Uros Bizjak <ubizjak@gmail.com>
3670
3671 * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
3672 to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
3673 (*andqi_1): Add preferred_for_speed attribute to disparage
3674 alternative 2 for TARGET_PARTIAL_REG_STALL targets.
3675 (*<code>qi_1): Ditto.
3676 (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
3677 alternative 1 for TARGET_PARTIAL_REG_STALL targets.
3678 (*ashlqi3_1): Ditto.
3679 (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
3680 Add preferred_for_size attribute to disparage alternative 0 and
3681 preferred_for_speed attribute to disparage alternative 1 for
3682 TARGET_PARTIAL_REG_STALL targets.
3683
3684 2016-05-07 Tom de Vries <tom@codesourcery.com>
3685
3686 PR tree-optimization/70956
3687 * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
3688 def.
3689
3690 2016-05-07 Oleg Endo <olegendo@gcc.gnu.org>
3691
3692 * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
3693 * config/sh/sh.c (sh_cbranch_distance): Implement it.
3694 * config/sh/sh.md (branch_zero): Remove define_attr.
3695 (define_delay): Disable delay slot if branch distance is one insn.
3696
3697 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
3698
3699 * config/i386/i386.md (LEAMODE): New mode attribute.
3700 (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
3701 (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
3702 and LEAMODE mode attribute. Use VOIDmode const_0_to_3_operand as
3703 operand 2 predicate.
3704 (*lea<mode>_general_2): Use VOIDmode for const248_operand.
3705 (*lea<mode>_general_3): Ditto.
3706 (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
3707
3708 2016-05-06 Jakub Jelinek <jakub@redhat.com>
3709
3710 * genmddump.c (main): Convert argv from char ** to const char **.
3711
3712 2016-05-06 David Malcolm <dmalcolm@redhat.com>
3713
3714 * coretypes.h (OVERRIDE): New macro.
3715 (FINAL): New macro.
3716
3717 2016-05-06 Eric Botcazou <ebotcazou@adacore.com>
3718
3719 * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
3720 allow coalescing if the types are compatible.
3721
3722 2016-05-06 David Malcolm <dmalcolm@redhat.com>
3723
3724 * pass_manager.h (pass_manager::register_pass_name): New method.
3725 (pass_manager::get_pass_by_name): New method.
3726 (pass_manager::create_pass_tab): New method.
3727 (pass_manager::m_name_to_pass_map): New field.
3728 * passes.c (name_to_pass_map): Delete global in favor of field
3729 "m_name_to_pass_map" of pass_manager.
3730 (register_pass_name): Rename from a function to...
3731 (pass_manager::register_pass_name): ...this method, updating
3732 for renaming of global "name_to_pass_map" to field
3733 "m_name_to_pass_map".
3734 (create_pass_tab): Rename from a function to...
3735 (pass_manager::create_pass_tab): ...this method, updating
3736 for renaming of global "name_to_pass_map" to field.
3737 (get_pass_by_name): Rename from a function to...
3738 (pass_manager::get_pass_by_name): ...this method.
3739 (enable_disable_pass): Convert use of get_pass_by_name to
3740 a method call, locating the pass_manager singleton.
3741
3742 2016-05-06 David Malcolm <dmalcolm@redhat.com>
3743
3744 * genattr-common.c (main): Convert argv from char ** to const char **.
3745 * genattr.c (main): Likewise.
3746 * genattrtab.c (main): Likewise.
3747 * genautomata.c (initiate_automaton_gen): Likewise.
3748 (main): Likewise.
3749 * gencodes.c (main): Likewise.
3750 * genconditions.c (main): Likewise.
3751 * genconfig.c (main): Likewise.
3752 * genconstants.c (main): Likewise.
3753 * genemit.c (main): Likewise.
3754 * genenums.c (main): Likewise.
3755 * genextract.c (main): Likewise.
3756 * genflags.c (main): Likewise.
3757 * genmddeps.c (main): Likewise.
3758 * genopinit.c (main): Likewise.
3759 * genoutput.c (main): Likewise.
3760 * genpeep.c (main): Likewise.
3761 * genpreds.c (main): Likewise.
3762 * genrecog.c (main): Likewise.
3763 * gensupport.c (init_rtx_reader_args_cb): Likewise.
3764 (init_rtx_reader_args): Likewise.
3765 * gensupport.h (init_rtx_reader_args_cb): Likewise.
3766 (init_rtx_reader_args): Likewise.
3767 * gentarget-def.c (main): Likewise.
3768 * read-md.c (read_md_files): Likewise.
3769 * read-md.h (read_md_files): Likewise.
3770
3771 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
3772
3773 * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
3774 instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
3775 * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
3776 Remove unused predicate.
3777 (register_and_not_fp_reg_operand): Ditto.
3778
3779 2016-05-06 Martin Liska <mliska@suse.cz>
3780
3781 * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
3782 instead of vec as the vector is local to the function.
3783
3784 2016-05-06 Jakub Jelinek <jakub@redhat.com>
3785
3786 * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
3787 avx512bw alternative.
3788
3789 * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
3790 before the ashr<mode>3 pattern.
3791
3792 * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
3793 v instead of x in vex or maybe_vex alternatives, use
3794 maybe_evex instead of vex in prefix.
3795
3796 * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
3797 *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
3798 vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
3799 in vex or maybe_vex alternatives, use maybe_evex instead of vex
3800 in prefix.
3801
3802 * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
3803 v instead of x in vex or maybe_vex alternatives, use
3804 maybe_evex instead of vex in prefix.
3805
3806 * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
3807 sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
3808 sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
3809 sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
3810 alternatives, use maybe_evex instead of vex in prefix.
3811
3812 * config/i386/sse.md (vec_interleave_lowv4sf,
3813 *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
3814 v instead of x in vex or maybe_vex alternatives, use
3815 maybe_evex instead of vex in prefix.
3816
3817 * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
3818 v instead of x in vex or maybe_vex alternatives, use
3819 maybe_evex instead of vex in prefix.
3820
3821 * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
3822 v constraint instead of x.
3823
3824 2016-05-06 Nathan Sidwell <nathan@codesourcery.com>
3825
3826 * gimple.c (gimple_call_same_target_p): Unique functions are eq.
3827 * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
3828 equality first.
3829
3830 2016-05-06 Richard Biener <rguenther@suse.de>
3831
3832 PR tree-optimization/70948
3833 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
3834 Properly clobber all fields of va_list for __builtin_va_start.
3835
3836 2016-05-06 Yuri Rumyantsev <ysrumyan@gmail.com>
3837
3838 PR debug/70935
3839 * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
3840 loop latch destination.
3841
3842 2016-05-06 Martin Liska <mliska@suse.cz>
3843
3844 * tree-ssa-uninit.c: Apply manual changes
3845 to the GNU coding style.
3846 (prune_uninit_phi_opnds): Rename from
3847 prune_uninit_phi_opnds_in_unrealizable_paths.
3848
3849 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
3850
3851 * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
3852 mspace): Remove deprecated options.
3853 * doc/invoke.texi (SH options): Remove -mspace.
3854
3855 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
3856
3857 * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
3858
3859 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
3860
3861 * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
3862 corresponding combine split pattern.
3863
3864 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
3865
3866 PR target/58219
3867 * config/sh/predicates.md (long_displacement_mem_operand): New.
3868 * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
3869 Add movi20, movi20s alternatives. Adjust length attribute for
3870 alternatives.
3871 (movsi_ie): Allow for any FPU. Adjust length attribute for
3872 alternatives.
3873 (movsi_i_lowpart): Add movi20, movi20s alternatives. Adjust length
3874 attribute for alternatives.
3875 (*mov<mode>): Use long_displacement_mem_operand for length attribute.
3876 (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
3877 length attribute for alternatives.
3878
3879 2016-05-06 Richard Biener <rguenther@suse.de>
3880
3881 PR tree-optimization/70960
3882 * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
3883
3884 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
3885
3886 PR target/52933
3887 * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
3888 * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
3889
3890 2016-05-06 Marek Polacek <polacek@redhat.com>
3891
3892 PR sanitizer/70875
3893 * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
3894
3895 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
3896
3897 PR target/54089
3898 * config/sh/sh.md (*rotcr): Add another variant.
3899
3900 2016-05-06 Richard Biener <rguenther@suse.de>
3901
3902 PR middle-end/70931
3903 * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
3904
3905 2016-05-06 Richard Biener <rguenther@suse.de>
3906
3907 PR middle-end/70941
3908 * fold-const.c (split_tree): Always convert to the original type
3909 before negating.
3910
3911 2016-05-06 Richard Biener <rguenther@suse.de>
3912
3913 * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
3914 (fwprop_addr): Likewise.
3915
3916 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
3917
3918 PR target/70873
3919 * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
3920 New prototype.
3921 * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
3922 * config/i386/i386.md (push mem splitter): Use find_constant_src in
3923 the splitter condition.
3924 (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
3925 the splitter condition.
3926 (FP float_extend load splitter): Ditto.
3927
3928 2016-05-05 Uros Bizjak <ubizjak@gmail.com>
3929
3930 * config/i386/i386.md (peehole2 patterns): Change true_regnum
3931 to REGNO in all peephole2 patterns.
3932 (post-reload splitters): Change true_regnum to REGNO in
3933 post-reload splitters.
3934 (zero_extend splitters): Use general_reg_operand and
3935 nonimmediate_gr_operand predicates.
3936
3937 2016-05-05 Jakub Jelinek <jakub@redhat.com>
3938
3939 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
3940 v constraint instead of x.
3941
3942 2016-05-05 Alan Modra <amodra@gmail.com>
3943
3944 PR target/68662
3945 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
3946 set OPTION_MASK_RELOCATABLE when flag_pic == 2. Set
3947 TARGET_NO_FP_IN_TOC for -mrelocatable.
3948 (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
3949 TARGET_RELOCATABLE test.
3950 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
3951 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
3952 * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
3953 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
3954 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
3955 * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
3956 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
3957 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
3958 * config/rs6000/predicates.md (easy_fp_constant): Likewise.
3959 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
3960 Likewise.
3961 (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
3962 (rs6000_stack_info): Likewise.
3963 (rs6000_elf_asm_out_constructor): Likewise.
3964 (rs6000_elf_asm_out_destructor): Likewise.
3965 (rs6000_elf_declare_function_name): Likewise.
3966 * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
3967 * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
3968 Don't define.
3969
3970 2016-05-05 Alan Modra <amodra@gmail.com>
3971
3972 * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
3973
3974 2016-05-05 Alan Modra <amodra@gmail.com>
3975
3976 * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
3977 out-of-line gpr restore for one or two regs if that would add
3978 a save of lr.
3979
3980 2016-05-04 Uros Bizjak <ubizjak@gmail.com>
3981
3982 PR target/70873
3983 * config/i386/i386.md
3984 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
3985 Change to post-epilogue_completed late splitter. Use sse_reg_operand
3986 as operand 0 predicate.
3987 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
3988 Ditto.
3989 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
3990 Ditto. Emit the pattern using RTX.
3991
3992 (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
3993 Use sse_reg_opreand as operand 0 predicate. Do not use true_regnum in
3994 the post-reload splitter. Use lowpart_subreg instead of gen_rtx_REG.
3995 (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
3996 Ditto.
3997 (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
3998 sse_reg_operand as operand 0 predicate.
3999
4000 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
4001 Use sse_reg_opreand as operand 0 predicate. Use lowpart_subreg
4002 instead of gen_rtx_REG.
4003 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
4004 Ditto.
4005
4006 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
4007
4008 * function.c (emit_use_return_register_into_block): Delete.
4009 (gen_return_pattern): Delete.
4010 (emit_return_into_block): Delete.
4011 (active_insn_between): Delete.
4012 (convert_jumps_to_returns): Delete.
4013 (emit_return_for_exit): Delete.
4014 (thread_prologue_and_epilogue_insns): Delete all code dealing with
4015 simple_return for shrink-wrapped blocks.
4016 * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
4017 end of blocks that need one.
4018 (get_unconverted_simple_return): Delete.
4019 (convert_to_simple_return): Delete.
4020 * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
4021 (convert_to_simple_return): Ditto.
4022
4023 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
4024
4025 * cfgcleanup.c (bb_is_just_return): New function.
4026 (try_optimize_cfg): Simplify jumps to return, branches to return,
4027 and branches around return.
4028
4029 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
4030
4031 * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
4032 branch to a return.
4033
4034 2016-05-04 Jakub Jelinek <jakub@redhat.com>
4035
4036 PR c++/70906
4037 PR c++/70933
4038 * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
4039 * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
4040 assert flags & OEP_HASH_CHECK, instead of asserting it
4041 never happens. Handle TARGET_EXPR.
4042 * fold-const.c (operand_equal_p): For hash verification,
4043 or in OEP_HASH_CHECK into flags.
4044
4045 2016-05-04 Eric Botcazou <ebotcazou@adacore.com>
4046
4047 * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
4048 comment.
4049 (compute_samebase_partition_bases): Fix typo.
4050
4051 2016-05-04 Jakub Jelinek <jakub@redhat.com>
4052
4053 * config/i386/sse.md (vec_interleave_highv8sf,
4054 vec_interleave_lowv8sf, vec_interleave_highv4df,
4055 vec_interleave_lowv4df): Remove constraints from expanders.
4056
4057 * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
4058
4059 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
4060
4061 * tree-inline.c (expand_call_inline): Fix path dealing with
4062 making lhs of call statement undefined.
4063
4064 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
4065
4066 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
4067 Check availability on NODE, too.
4068 * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
4069 (cgraph_node::call_for_symbol_and_aliases): Likewise.
4070 (varpool_node::call_for_symbol_and_aliase): Likewise.
4071 * ipa-pure-const.c (add_new_function): Analyze all bodies.
4072 (propagate_pure_const): Propagate across interposable functions, too.
4073 (skip_function_for_local_pure_const): Do not skip interposable bodies
4074 with aliases.
4075 (pass_local_pure_const::execute): Update.
4076
4077 2016-05-04 Marek Polacek <polacek@redhat.com>
4078
4079 * doc/invoke.texi: Document -Wdangling-else.
4080
4081 2016-05-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
4082
4083 * config.gcc: Error out when conflicting multilib is detected. Do not
4084 loop over multilibs since no combination is legal.
4085
4086 2016-05-04 Alan Modra <amodra@gmail.com>
4087
4088 * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
4089 * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
4090 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
4091 Align .toc.
4092
4093 2016-05-04 Matthew Fortune <matthew.fortune@imgtec.com>
4094
4095 * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
4096 Clean up p5600 comments.
4097
4098 2016-05-04 Richard Biener <rguenther@suse.de>
4099
4100 * match.pd: Add BIT_FIELD_REF canonicalizations and vector
4101 constructor simplifications.
4102 * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
4103
4104 2016-05-04 Oleg Endo <olegendo@gcc.gnu.org>
4105
4106 * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
4107 * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
4108 result.set_rtx is null instead of aborting.
4109 * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
4110 Always enable.
4111 (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
4112 * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
4113 *mov<mode>_store_postinc): New patterns.
4114
4115 2016-05-04 Marc Glisse <marc.glisse@inria.fr>
4116
4117 * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR. Mark
4118 as commutative. Check both conversions are NOP.
4119 ((A & B) OP (C & B)): Remove.
4120
4121 2016-05-04 Alan Modra <amodra@gmail.com>
4122
4123 * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
4124
4125 2016-05-04 Alan Modra <amodra@gmail.com>
4126
4127 PR target/70866
4128 * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
4129 when cr2,3,4 are all fixed regs.
4130
4131 2016-05-04 Bernd Schmidt <bschmidt@redhat.com>
4132
4133 PR rtl-optimization/57193
4134 * opts.c (default_options_table): Revert OPT_frename_registers change.
4135 * doc/invoke.texi (-frename-registers, -O2): Likewise.
4136
4137 2016-05-03 Martin Sebor <msebor@redhat.com>
4138
4139 PR c++/66561
4140 * builtins.c (fold_builtin_FILE): New function.
4141 (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
4142 (fold_builtin_0): Call them.
4143 * gimplify.c (gimplify_call_expr): Remove the handling of
4144 BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
4145
4146 PR c++/66561
4147 * doc/extend.texi (Other Builtins): Update __builtin_FILE,
4148 __builtin_FUNCTION, and __builtin_LINE to reflect they yield
4149 constants.
4150
4151 PR c++/66639
4152 * doc/extend.texi (Function Names as Strings): Update __func__,
4153 __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
4154 constants.
4155
4156 2016-05-03 Jakub Jelinek <jakub@redhat.com>
4157 Richard Biener <rguenther@suse.de>
4158
4159 PR tree-optimization/70916
4160 * tree-if-conv.c: Include cfganal.h.
4161 (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
4162 and remove_fake_exit_edges around the optimization pass.
4163
4164 2016-05-03 Jan Hubicka <hubicka@ucw.cz>
4165
4166 * cgraph.c (symbol_table::create_edge): Set inline_failed.
4167 (cgraph_edge::make_direct): Likewise.
4168 (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
4169 * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
4170 * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
4171 (CIF_THUNK): New code.
4172 * ipa-inline-analysis.c (initialize_inline_failed): Preserve
4173 CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
4174 (compute_inline_parameters): Set inline_failed for thunks.
4175 (inline_analyze_function): Cleanup.
4176 * ipa-inline.c (can_inline_edge_p): Do not deal with
4177 call_stmt_cannot_inline_p.
4178 (can_early_inline_edge_p): Likewise.
4179 (early_inliner): Initialize inline_failed.
4180 * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
4181
4182 2016-05-03 Uros Bizjak <ubizjak@gmail.com>
4183
4184 * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
4185 from nonimm_ssenomem_operand.
4186 (nonimm_ssenomem_operand): New predicate.
4187 * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
4188 as operand 0 predicate.
4189 (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
4190 Disable unsupported alternatives using "enabled" attribute.
4191 Use register_ssemem_operand as operand 0 predicate.
4192 (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
4193
4194 2016-05-03 Marek Polacek <polacek@redhat.com>
4195
4196 PR c/70859
4197 * input.c (expansion_point_location): New function.
4198 * input.h (expansion_point_location): Declare.
4199
4200 2016-05-03 Pierre-Marie de Rodat <derodat@adacore.com>
4201
4202 * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
4203 occurence with frame_offset_ ones.
4204
4205 2016-05-03 Alan Modra <amodra@gmail.com>
4206
4207 PR rtl-optimization/70890
4208 * ira.c (combine_and_move_insns): When moving def_insn, remove
4209 equivs on use_insn.
4210
4211 2016-05-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
4212
4213 * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
4214 ("*r<noxa>sbg_<mode>_srl"): New define_insns.
4215 ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
4216 ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
4217
4218 2016-05-03 Alan Modra <amodra@gmail.com>
4219
4220 * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
4221 for SAVE_MULTIPLE/STORE_MULTIPLE.
4222
4223 2016-05-03 Jakub Jelinek <jakub@redhat.com>
4224
4225 * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
4226 *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
4227
4228 2016-05-03 Richard Biener <rguenther@suse.de>
4229
4230 * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
4231 default true.
4232 (gimplify_arg): Likewise.
4233 * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
4234 re-writing the result to a decl if required.
4235 (internal_get_tmp_var): Add allow_ssa parameter
4236 and override into_ssa with it.
4237 (get_formal_tmp_var): Adjust.
4238 (get_initialized_tmp_var): Add allow_ssa parameter.
4239 (gimplify_arg): Add allow_ssa parameter and avoid generating
4240 SSA names for the result false.
4241 (gimplify_call_expr): If the call may return twice do not
4242 gimplify parameters into SSA.
4243 (prepare_gimple_addressable): Do not allow an SSA name as temporary.
4244 (gimplify_modify_expr): Adjust assert. For noreturn calls
4245 with a SSA name LHS adjust its def.
4246 (gimplify_save_expr): Do not allow an SSA name as save-expr result.
4247 (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
4248 (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
4249 (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
4250 an SSA name. Likewise for OMP_CLAUSE_REDUCTION operands.
4251 (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL. Likewise
4252 for OMP_FOR_COND, OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
4253 (optimize_target_teams): Do not allow SSA names for clause operands.
4254 (gimplify_expr): Likewise for where we mark the result addressable.
4255 * passes.def (pass_init_datastructures): Remove.
4256 * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
4257 (rewrite_stmt): Likewise.
4258 * tree-inline.c (initialize_cfun): Properly transfer SSA state.
4259 (replace_locals_op): Replace SSA names.
4260 (copy_gimple_seq_and_replace_locals): Init src_cfun.
4261 * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
4262 * cgraph.c (release_function_body): Free CFG annotations only
4263 when we have a CFG. Simplify.
4264 * gimple-fold.c (gimplify_and_update_call_from_tree): Use
4265 force_gimple_operand instead of get_initialized_tmp_var.
4266 * tree-pass.h (make_pass_init_datastructures): Remove.
4267 * tree-ssa.c (execute_init_datastructures): Remove.
4268 (pass_data_init_datastructures): Likewise.
4269 (class pass_init_datastructures): Likewise.
4270 (make_pass_init_datastructures): Likewise.
4271 * omp-low.c (create_omp_child_function): Init SSA data structures.
4272 (grid_expand_target_grid_body): Likewise.
4273 * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
4274 name before adding it to names_to_release.
4275 (remove_bb): Always release SSA defs.
4276 * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
4277 before dereferencing it.
4278 * cgraphunit.c (init_lowered_empty_function): Always
4279 int SSA data structures.
4280 * tree-ssanames.c (release_defs): Remove assert that we are in
4281 SSA form.
4282 * trans-mem.c (diagnose_tm_1): Handle SSA name function.
4283
4284 2016-05-03 Jakub Jelinek <jakub@redhat.com>
4285 Uros Bizjak <ubizjak@gmail.com>
4286
4287 PR rtl-optimization/70467
4288 * config/i386/predicates.md (x86_64_hilo_int_operand,
4289 x86_64_hilo_general_operand): New predicates.
4290 * config/i386/constraints.md (Wd): New constraint.
4291 * config/i386/i386.md (mode attr di): Use Wd instead of e.
4292 (general_hilo_operand): New mode attr.
4293 (add<mode>3, sub<mode>3): Use <general_hilo_operand>
4294 instead of <general_operand>.
4295 (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
4296 x86_64_hilo_general_operand instead of <general_operand>.
4297
4298 2016-05-03 Jakub Jelinek <jakub@redhat.com>
4299
4300 PR tree-optimization/70916
4301 * tree-if-conv.c (constant_or_ssa_name): Removed.
4302 (fold_build_cond_expr): Use is_gimple_val instead of
4303 constant_or_ssa_name.
4304
4305 PR tree-optimization/70916
4306 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
4307 if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
4308
4309 PR target/49244
4310 * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
4311 (optimize_atomic_bit_test_and): New function.
4312 (pass_fold_builtins::execute): Use it.
4313 * optabs.def (atomic_bit_test_and_set_optab,
4314 atomic_bit_test_and_complement_optab,
4315 atomic_bit_test_and_reset_optab): New optabs.
4316 * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
4317 ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
4318 * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
4319 * builtins.c (expand_ifn_atomic_bit_test_and): New function.
4320 * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
4321 expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
4322 expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
4323 * doc/md.texi (atomic_bit_test_and_set@var{mode},
4324 atomic_bit_test_and_complement@var{mode},
4325 atomic_bit_test_and_reset@var{mode}): Document.
4326 * config/i386/sync.md (atomic_bit_test_and_set<mode>,
4327 atomic_bit_test_and_complement<mode>,
4328 atomic_bit_test_and_reset<mode>): New expanders.
4329 (atomic_bit_test_and_set<mode>_1,
4330 atomic_bit_test_and_complement<mode>_1,
4331 atomic_bit_test_and_reset<mode>_1): New insns.
4332
4333 2016-05-03 Richard Sandiford <richard.sandiford@arm.com>
4334
4335 PR rtl-optimization/70687
4336 * combine.c (change_zero_ext): Check for scalar modes. Use wide_int
4337 instead of unsigned HOST_WIDE_INT.
4338
4339 2016-05-03 Bernd Schmidt <bschmidt@redhat.com>
4340
4341 PR rtl-optimization/44281
4342 * hard-reg-set.h (struct target_hard_regs): New field
4343 x_fixed_nonglobal_reg_set.
4344 (fixed_nonglobal_reg_set): New macro.
4345 * reginfo.c (init_reg_sets_1): Initialize it.
4346 * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
4347 of fixed_reg_set.
4348 * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
4349
4350 2016-05-03 Bin Cheng <bin.cheng@arm.com>
4351
4352 PR tree-optimization/56541
4353 * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
4354 * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
4355 * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
4356 (any_complicated_phi): new static variable.
4357 (aggressive_if_conv): delete.
4358 (if_convertible_phi_p): support phis with more than two arguments.
4359 (if_convertible_bb_p): remvoe check on aggressive_if_conv and
4360 critical pred edges.
4361 (ifcvt_split_critical_edges): support phis with more than two
4362 arguments by checking new parameter. only split critical edges
4363 if needed.
4364 (tree_if_conversion): handle simd pragma marked loop using new
4365 local variable aggressive_if_conv. check any_complicated_phi.
4366
4367 2016-05-03 Bin Cheng <bin.cheng@arm.com>
4368
4369 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
4370 before using it.
4371
4372 2016-05-03 Bin Cheng <bin.cheng@arm.com>
4373
4374 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
4375 cbase.
4376
4377 2016-05-03 Oleg Endo <olegendo@gcc.gnu.org>
4378
4379 * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
4380 (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
4381 define_insn_and_split.
4382 (mulsi3_i): New define_insn_and_split.
4383 (mulsi3_call): Convert to define_insn.
4384 (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
4385 Remove constraints.
4386
4387 2016-05-02 Michael Meissner <meissner@linux.vnet.ibm.com>
4388
4389 * machmode.h (mode_complex): Add support to give the complex mode
4390 for a given mode.
4391 (GET_MODE_COMPLEX_MODE): Likewise.
4392 * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
4393 stored by build_complex_type and gfc_build_complex_type instead of
4394 trying to figure out the appropriate mode based on the size. Raise
4395 an assertion error, if the type was not set.
4396 * genmodes.c (struct mode_data): Add field for the complex type of
4397 the given type.
4398 (blank_mode): Likewise.
4399 (make_complex_modes): Remember the complex mode created in the
4400 base type.
4401 (emit_mode_complex): Write out the mode_complex array to map a
4402 type mode to the complex version.
4403 (emit_insn_modes_c): Likewise.
4404 * tree.c (build_complex_type): Set the complex type to use before
4405 calling layout_type.
4406 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
4407 support for __float128 complex datatypes.
4408 (rs6000_hard_regno_mode_ok): Likewise.
4409 (rs6000_setup_reg_addr_masks): Likewise.
4410 (rs6000_complex_function_value): Likewise.
4411 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
4412 __float128 and __ibm128 complex.
4413 (FLOAT128_IBM_P): Likewise.
4414 (ALTIVEC_ARG_MAX_RETURN): Likewise.
4415 * doc/extend.texi (Additional Floating Types): Document that
4416 -mfloat128 must be used to enable __float128. Document complex
4417 __float128 and __ibm128 support.
4418
4419 2016-05-02 Jakub Jelinek <jakub@redhat.com>
4420
4421 PR target/49244
4422 * gimple.c (gimple_builtin_call_types_compatible_p): Allow
4423 char/short arguments promoted to int because of promote_prototypes.
4424
4425 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
4426
4427 * config/i386/predicates.md (register_ssemem_operand): New predicate.
4428 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
4429 *cmpi<FPCMP:unord><MODEF:mode>_mixed and
4430 *cmpi<FPCMP:unord><X87MODEF:mode>_i387. Disable unsupported
4431 alternatives using "enabled" attribute. Use register_ssemem_operand
4432 as operand 1 predicate.
4433 (*cmpi<unord>xf_i387): Split XFmode pattern from
4434 *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
4435 (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
4436 *absneg<mode>2_i387. Disable unsupported alternatives using
4437 "enabled" attribute.
4438 (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
4439
4440 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
4441
4442 * omp-low.c (lower_oacc_head_tail): Assert there is at least one
4443 marker.
4444 (oacc_loop_process): Check mask for loop termination.
4445
4446 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
4447
4448 * cif-code.def (CIF_THUNK): Add.
4449 * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
4450 accidental change.
4451
4452 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
4453
4454 * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
4455 (dump_inline_summary): Dump it.
4456 (fp_expression_p): New predicate.
4457 (estimate_function_body_sizes): Use it.
4458 (inline_merge_summary): Merge fp_expressions.
4459 (inline_read_section): Read fp_expressions.
4460 (inline_write_summary): Write fp_expressions.
4461 * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
4462 codegen boundary if either caller or callee is !fp_expressions.
4463 * ipa-inline.h (inline_summary): Add fp_expressions.
4464 * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
4465 to fp_expressions be sure the fp generation flags are updated.
4466
4467 2016-05-02 Jakub Jelinek <jakub@redhat.com>
4468
4469 PR rtl-optimization/70467
4470 * cse.c (cse_insn): Handle no-op MEM moves after folding.
4471
4472 PR rtl-optimization/70467
4473 * ipa-pure-const.c (check_call): Handle internal calls even in
4474 ipa mode like in local mode.
4475
4476 2016-05-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
4477
4478 * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
4479
4480 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
4481
4482 * match.pd (X u< X, X u> X): New transformations.
4483
4484 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
4485
4486 * flag-types.h (enum warn_strict_overflow_code): Move ...
4487 * coretypes.h: ... here.
4488 * fold-const.h (fold_overflow_warning): Declare.
4489 * fold-const.c (fold_overflow_warning): Make non-static.
4490 (fold_comparison): Move the transformation of X +- C1 CMP C2
4491 into X CMP C2 -+ C1 ...
4492 * match.pd: ... here.
4493 * gimple-fold.c (fold_stmt_1): Protect with
4494 fold_defer_overflow_warnings.
4495
4496 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
4497
4498 * omp-low.c (struct oacc_loop): Add 'inner' field.
4499 (new_oacc_loop_raw): Initialize it to zero.
4500 (oacc_loop_fixed_partitions): Initialize it.
4501 (oacc_loop_auto_partitions): Partition outermost loop to outermost
4502 available partitioning.
4503
4504 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
4505
4506 * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
4507 register_operand.
4508 (umulsidi3): Likewise.
4509 (indirect_jump): Fix jump instruction assembly patterns.
4510
4511 2016-05-02 Thomas Schwinge <thomas@codesourcery.com>
4512
4513 PR target/70860
4514 * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
4515 (nvptx_function_value): Assert non-NULL cfun.
4516
4517 2016-05-02 Eric Botcazou <ebotcazou@adacore.com>
4518
4519 PR rtl-optimization/70886
4520 * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
4521
4522 * cselib.h (rtx_equal_for_cselib_1): Declare.
4523 (rtx_equal_for_cselib_p: New inline function.
4524 * cselib.c (rtx_equal_for_cselib_p): Delete.
4525 (rtx_equal_for_cselib_1): Make public.
4526
4527 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
4528
4529 * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
4530 (register_mixssei387nonimm_operand): Remove predicate.
4531 * config/i386/i386.md (*fop_<mode>_comm): Merge from
4532 *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387. Disable unsupported
4533 alternatives using "enabled" attribute. Also check X87_ENABLE_ARITH
4534 for TARGET_MIX_SSE_I387 alternatives.
4535 (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
4536 Disable unsupported alternatives using "enabled" attribute. Use
4537 nonimm_ssenomem_operand as operand 1 predicate. Also check
4538 X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
4539
4540 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
4541
4542 * tree.c (cst_and_fits_in_hwi): Simplify.
4543
4544 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
4545
4546 * tree.h (wi::to_wide): New function.
4547 * expr.c (expand_expr_real_1): Use wi::to_wide.
4548 * fold-const.c (int_const_binop_1): Likewise.
4549 (extract_muldiv_1): Likewise.
4550
4551 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
4552
4553 * wide-int.h: Update offset_int and widest_int documentation.
4554 (WI_SIGNED_SHIFT_RESULT): New macro.
4555 (wi::binary_shift): Define signed_shift_result_type for
4556 shifts on offset_int- and widest_int-like types.
4557 (generic_wide_int): Support <<= and >>= if << and >> are supported.
4558 * tree.h (int_bit_position): Use shift operators instead of wi::
4559 shifts.
4560 * alias.c (adjust_offset_for_component_ref): Likewise.
4561 * expr.c (get_inner_reference): Likewise.
4562 * fold-const.c (fold_comparison): Likewise.
4563 * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
4564 * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
4565 * tree-dfa.c (get_ref_base_and_extent): Likewise.
4566 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
4567 (stmt_kills_ref_p): Likewise.
4568 * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
4569 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
4570 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
4571 (ao_ref_init_from_vn_reference): Likewise.
4572
4573 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
4574
4575 * wide-int.h: Update offset_int and widest_int documentation.
4576 (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
4577 (wi::binary_traits): Allow ordered comparisons between offset_int and
4578 offset_int, between widest_int and widest_int, and between either
4579 of these types and basic C types.
4580 (operator <, <=, >, >=): Define for the same combinations.
4581 * tree.h (tree_int_cst_lt): Use comparison operators instead
4582 of wi:: comparisons.
4583 (tree_int_cst_le): Likewise.
4584 * gimple-fold.c (fold_array_ctor_reference): Likewise.
4585 (fold_nonarray_ctor_reference): Likewise.
4586 * gimple-ssa-strength-reduction.c (record_increment): Likewise.
4587 * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
4588 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
4589 * tree-sra.c (completely_scalarize): Likewise.
4590 * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
4591 * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
4592 * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
4593 (check_for_binary_op_overflow): Likewise.
4594 (search_for_addr_array): Likewise.
4595 * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
4596
4597 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
4598
4599 * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
4600 (arc_save_restore): Likewise.
4601 (arc_dwarf_register_span): Likewise.
4602 (arc_output_pic_addr_const): Initialize suffix variable.
4603
4604 2016-05-02 Martin Liska <mliska@suse.cz>
4605
4606 * symbol-summary.h (function_summary::function_summary):
4607 Remove checking assert for all cgraph nodes.
4608 (function_summary::get): Check summary_uid.
4609 (symtab_insertion): Check summary_uid.
4610
4611 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
4612
4613 * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
4614 * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
4615 bmaskn instruction.
4616 (arc_dwarf_register_span): Remove enum keyword.
4617 (compact_memory_operand_p): New function.
4618 * config/arc/arc.h (reg_class): Add code density register classes.
4619 (REG_CLASS_NAMES): Likewise.
4620 (REG_CLASS_CONTENTS): Likewise.
4621 * config/arc/arc.md (*movqi_insn): Add code density instructions.
4622 (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
4623 (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
4624 (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
4625 * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
4626 constraints.
4627 (h, Rcd, Rsd, Rzd): New register constraints.
4628 (T): Use compact_memory_operand_p function.
4629 * config/arc/predicates.md (compact_load_memory_operand): Remove.
4630
4631 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
4632
4633 * config/sh/sh.md (*negnegt, *movtt): Remove.
4634
4635 2016-05-02 Marek Polacek <polacek@redhat.com>
4636 Tom de Vries <tom@codesourcery.com>
4637
4638 PR tree-optimization/70700
4639 * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
4640 bigger than FIRST_REF_NODE.
4641
4642 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
4643
4644 PR target/52898
4645 * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
4646 TARGET_CMPEQDI_T.
4647 (prepare_cbranch_operands): Don't use scratch register. Assume that
4648 function is used when pseudos can be created.
4649 (expand_cbranchdi4): Likewise. Remove unused TARGET_CMPEQDI_T paths.
4650 * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
4651 (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
4652 define_expand. Allow it only when pseudos can be created.
4653 * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
4654
4655 2016-05-01 Uros Bizjak <ubizjak@gmail.com>
4656
4657 * config/i386/constraints.md (BC): Only allow -1 operands.
4658 * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
4659 Add "enabled" attribute. Update XI mode attribute calculation.
4660 * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
4661 (*movoi_internal_avx): Update XI mode attribute calculation.
4662 (*movti_internal): Ditto.
4663
4664 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
4665
4666 * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
4667 cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
4668
4669 2016-05-01 Eric Botcazou <ebotcazou@adacore.com>
4670
4671 * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
4672 statement on instruction code. Remove trailing spaces.
4673 (altivec_expand_stv_builtin): Likewise.
4674
4675 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
4676
4677 * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
4678 (TARGET_FPU_DOUBLE): Simplify.
4679 (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
4680 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
4681 * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
4682 with 'TARGET_FPU_DOUBLE'.
4683 * config/sh/sh.md: Likewise.
4684
4685 2016-05-01 Yoshinori Sato <ysato@users.sourceforge.jp>
4686
4687 * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
4688 SH_DIV_STR_FOR_SIZE): Remove.
4689 * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
4690 SH_DIV_STR_FOR_SIZE): Remove.
4691
4692 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
4693
4694 * config/sh/predicates.md (any_register_operand, zero_extend_operand,
4695 logical_reg_operand): Delete.
4696 (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
4697 arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
4698 logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
4699 match_operand and match_test.
4700 (sh_const_vec, sh_1el_vec): Remove redundant checks. Declare local
4701 variables on their first use. Return bool values.
4702 * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
4703 * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
4704 arith_reg_operand for input operand. Remove empty constraints.
4705 (xorsi3): Delete.
4706 (*xorsi3_compact): Rename to xorsi3.
4707 (zero_extend<mode>si2): Use arith_reg_operand for input operand.
4708 (*zero_extend<mode>si2_disp_mem): Update comment.
4709 (mov_nop): Delete.
4710
4711 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
4712
4713 * config/sh/t-sh: Remove SH5 support.
4714 * config.gcc: Likewise.
4715 * configure: Likewise.
4716
4717 2016-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4718
4719 * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
4720
4721 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
4722
4723 * config/sh/sh.c (register_sh_passes, sh_option_override,
4724 sh_print_operand, prepare_move_operands,
4725 sh_can_follow_jump): Remove TARGET_SH1 checks.
4726 * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
4727 PROMOTE_MODE): Likewise.
4728 * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
4729 movdi): Likewise.
4730
4731 2016-04-30 Alan Modra <amodra@gmail.com>
4732
4733 * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
4734 restoring when fixed_reg_p, but allow out-of-line or stmw save.
4735 Check for user regs later to avoid unnecessary looping over regs.
4736 Merge user reg check with non-saved reg check. Don't force
4737 inline VR restore when static chain used.
4738 (rs6000_frame_related): Omit eh_frame info for user regs when
4739 saving.
4740 (fixed_regs_p): Delete.
4741
4742 2016-04-30 Alan Modra <amodra@gmail.com>
4743
4744 * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
4745 (SAVE_STRATEGY, REST_STRATEGY): ..this. Renumber and sort enum.
4746 Update all uses.
4747
4748 2016-04-30 Alan Modra <amodra@gmail.com>
4749
4750 PR target/69645
4751 * config/rs6000/rs6000.c (fixed_reg_p): New function.
4752 (fixed_regs_p): Rename from global_regs_p. Call fixed_reg_p.
4753 Update all uses.
4754
4755 2016-04-30 Alan Modra <amodra@gmail.com>
4756
4757 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
4758 Remove redundant PIC_OFFSET_TABLE_REGNUM test. Replace with
4759 flag_pic test for Darwin.
4760
4761 2016-04-30 Alan Modra <amodra@gmail.com>
4762
4763 * regs.h (struct reg_info_t): Delete freq_calls_crossed and
4764 throw_calls_crossed.
4765 (REG_FREQ_CALLS_CROSSED): Delete.
4766 (REG_N_THROWING_CALLS_CROSSED): Delete.
4767 * regstat.c (regstat_bb_compute_ri): Don't calculate
4768 REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
4769 (dump_reg_info): Don't print call cross frequency.
4770 * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
4771 and REG_N_THROWING_CALLS_CROSSED.
4772
4773 2016-04-30 Alan Modra <amodra@gmail.com>
4774
4775 * regs.h (struct reg_info_t): Delete live_length.
4776 (REG_LIVE_LENGTH): Delete macro.
4777 * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
4778 local_live, local_processed and local_live_last_luid params.
4779 Replace bb_index param with bb. Don't set REG_LIVE_LENGTH.
4780 Formatting fixes.
4781 (regstat_compute_ri): Adjust for above. Don't set
4782 REG_LIVE_LENGTH.
4783 (dump_reg_info): Don't print live length.
4784 * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
4785 with test of setjmp_crosses. Don't set REG_LIVE_LENGTH.
4786 Localize loop_depth var.
4787
4788 2016-04-30 Alan Modra <amodra@gmail.com>
4789
4790 * ira.c (enum valid_equiv): New.
4791 (validate_equiv_mem): Return enum.
4792 (update_equiv_mem): Create replacement in more cases.
4793 (add_store_equivs): Update validate_equiv_mem call.
4794
4795 2016-04-30 Alan Modra <amodra@gmail.com>
4796
4797 * ira.c (combine_and_move_insns): Rather than scanning insns,
4798 use DF infrastucture to find use and def insns.
4799
4800 2016-04-30 Alan Modra <amodra@gmail.com>
4801
4802 ira.c (combine_and_move_insns): Move invariant conditions..
4803 (ira.c): ..to here. Call combine_and_move_insns before
4804 add_store_equivs. Call grow_reg_equivs later. Allocate
4805 req_equiv later using max_reg_num() rather than global max_regno.
4806 (contains_replace_regs): Delete.
4807 (add_store_equivs): Remove contains_replace_regs test.
4808
4809 2016-04-30 Alan Modra <amodra@gmail.com>
4810
4811 * ira.c (struct equiv_mem_data): New.
4812 (equiv_mem, equiv_mem_modified): Delete static vars.
4813 (validate_equiv_mem_from_store): Use "data" param to communicate..
4814 (validate_equiv_mem): ..from here.
4815
4816 2016-04-30 Alan Modra <amodra@gmail.com>
4817
4818 * ira.c (add_store_equivs, combine_and_move_insns): New functions,
4819 split out from..
4820 (update_reg_equivs): ..here. Move allocation and freeing of
4821 reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
4822 end_alias_analysis to..
4823 (ira): ..here.
4824
4825 2016-04-30 Alan Modra <amodra@gmail.com>
4826
4827 * ira.c (pdx_subregs): Delete.
4828 (struct equivalence): Add pdx_subregs field.
4829 (set_paradoxical_subreg): Remove pdx_subregs param. Update
4830 pdx_subregs access.
4831 (update_equiv_regs): Don't create or free pdx_subregs. Update
4832 pdx_subregs access.
4833
4834 2016-04-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4835
4836 * config/rs6000/altivec.h: Change definitions of vec_xl and
4837 vec_xst.
4838 * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
4839 (LD_ELEMREV_V2DI): New.
4840 (LD_ELEMREV_V4SF): New.
4841 (LD_ELEMREV_V4SI): New.
4842 (LD_ELEMREV_V8HI): New.
4843 (LD_ELEMREV_V16QI): New.
4844 (ST_ELEMREV_V2DF): New.
4845 (ST_ELEMREV_V2DI): New.
4846 (ST_ELEMREV_V4SF): New.
4847 (ST_ELEMREV_V4SI): New.
4848 (ST_ELEMREV_V8HI): New.
4849 (ST_ELEMREV_V16QI): New.
4850 (XL): New.
4851 (XST): New.
4852 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
4853 descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
4854 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
4855 TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
4856 (altivec_expand_builtin): Add handling for
4857 VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
4858 (rs6000_invalid_builtin): Add error-checking for
4859 RS6000_BTM_P9_VECTOR.
4860 (altivec_init_builtins): Define builtins used to implement vec_xl
4861 and vec_xst.
4862 (rs6000_builtin_mask_names): Define power9-vector.
4863 * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
4864 (RS6000_BTM_P9_VECTOR): Define.
4865 (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
4866 * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
4867 (vsx_ld_elemrev_v2df): Likewise.
4868 (vsx_ld_elemrev_v4sf): Likewise.
4869 (vsx_ld_elemrev_v4si): Likewise.
4870 (vsx_ld_elemrev_v8hi): Likewise.
4871 (vsx_ld_elemrev_v16qi): Likewise.
4872 (vsx_st_elemrev_v2df): Likewise.
4873 (vsx_st_elemrev_v2di): Likewise.
4874 (vsx_st_elemrev_v4sf): Likewise.
4875 (vsx_st_elemrev_v4si): Likewise.
4876 (vsx_st_elemrev_v8hi): Likewise.
4877 (vsx_st_elemrev_v16qi): Likewise.
4878 * doc/extend.texi: Add prototypes for vec_xl and vec_xst. Correct
4879 grammar.
4880
4881 2016-04-29 Patrick Palka <ppalka@gcc.gnu.org>
4882
4883 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
4884 out into ...
4885 (simplify_control_stmt_condition_1): ... here. Recurse into
4886 BIT_AND_EXPRs and BIT_IOR_EXPRs.
4887
4888 2016-04-29 David Edelsohn <dje.gcc@gmail.com>
4889
4890 PR target/69810
4891 * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
4892 (zero_extendqi<mode>2_dot): Revert earlier conversion from
4893 define_insn_and_split to define_insn.
4894 (zero_extendqi<mode>2_dot2): Same.
4895 (extendqi<mode>2_dot): Same.
4896 (extendqi<mode>2_dot2): Same.
4897
4898 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
4899
4900 * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
4901 (probe_stack): New expander.
4902 (probe_stack_<mode>): New insn pattern.
4903
4904 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
4905
4906 * config/i386/i386.md
4907 (operations with memory inputs setting flags peephole2):
4908 Remove uneeded REG_P checks. Cleanup pattern generation.
4909
4910 2016-04-29 Ilya Enkovich <ilya.enkovich@intel.com>
4911
4912 * tree-vect-loop.c (vect_transform_loop): Fix
4913 nb_iterations_upper_bound computation for vectorized loop.
4914
4915 2016-04-29 Marek Polacek <polacek@redhat.com>
4916 Jakub Jelinek <jakub@redhat.com>
4917
4918 PR sanitizer/70342
4919 * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
4920 TARGET_EXPR_SLOT as a base.
4921
4922 2016-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
4923
4924 * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
4925 with 'rCm2' constraints to limit possible immediate size.
4926 (*load_zeroextendqisi_update): Likewise.
4927 (*load_signextendqisi_update): Likewise.
4928 (*loadhi_update): Likewise.
4929 (*load_zeroextendhisi_update): Likewise.
4930 (*load_signextendhisi_update): Likewise.
4931 (*loadsi_update): Likewise.
4932 (*loadsf_update): Likewise.
4933
4934 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
4935
4936 * config/i386/predicates.md (constm1_operand): Fix comparison.
4937
4938 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
4939
4940 * testsuite/gcc.target/arc/ieee_eq.c: New test.
4941
4942 2016-04-29 Oleg Endo <olegendo@gcc.gnu.org>
4943
4944 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
4945 remaining SH5 related settings.
4946 * config/sh/sh-protos.h (shmedia_cleanup_truncate,
4947 shmedia_prepare_call_address): Delete.
4948 * config/sh/sh.c (sh_print_operand, output_stack_adjust,
4949 DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
4950 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
4951 UNSUPPORTED_SH2A): Remove m5 checks.
4952 (sh_divide_strategy_e): Remove SH5 division strategies.
4953 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
4954 * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
4955
4956 2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
4957
4958 * config/s390/s390.c (s390_rtx_costs): Update documentation.
4959
4960 2016-04-29 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4961
4962 * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
4963 * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
4964 Change lder to ldr.
4965 * config/s390/vector.md ("mov<mode>"): Likewise.
4966
4967 2016-04-29 Ulrich Weigand <uweigand@de.ibm.com>
4968
4969 * config/s390/constraints.md ("U", "W"): Invoke
4970 s390_mem_constraint with "ZR" and "ZT".
4971 * config/s390/s390.c (s390_check_qrst_address): Reject invalid
4972 addresses when using LRA. Accept also short displacements for S
4973 and T constraints. Do not check for long displacement target for
4974 S and T constraints.
4975 (s390_mem_constraint): Remove handling of U and W constraints.
4976 * config/s390/s390.md (various patterns): Remove the short
4977 displacement constraints (Q and R) if a long displacement
4978 constraint is present. Add longdisp as required CPU capability.
4979 * config/s390/vector.md: Likewise.
4980 * config/s390/vx-builtins.md: Likewise.
4981
4982 2016-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
4983
4984 PR target/60040
4985 * reload1.c (reload): Call finish_spills before
4986 restarting reload loop. Skip select_reload_regs
4987 if update_eliminables_and_spill returns true.
4988
4989 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
4990
4991 * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
4992 * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
4993 (umulhisi3_imm): Update predicates and constraint letters.
4994 (umulhisi3_reg): Declare instruction as commutative.
4995 * config/arc/constraints.md (J12, J16): New constraints.
4996 * config/arc/predicates.md (short_unsigned_const_operand): New
4997 predicate.
4998 (arc_short_operand): Likewise.
4999 * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
5000
5001 2016-04-29 Richard Biener <rguenther@suse.de>
5002
5003 PR tree-optimization/13962
5004 PR tree-optimization/65686
5005 * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
5006 * tree-ssa-alias.c (ptrs_compare_unequal): New function
5007 using PTA to compare pointers.
5008 * match.pd: Add pattern for pointer equality compare simplification
5009 using ptrs_compare_unequal.
5010
5011 2016-04-29 Richard Biener <rguenther@suse.de>
5012
5013 * stor-layout.c (layout_type): Do not build a pointer-to-element
5014 type for arrays.
5015
5016 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
5017
5018 * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
5019 Use SWI mode iterator. Use general_reg_operand predicate.
5020 (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
5021 peephole to MMX and SSE part. Use mmx_reg_operand and sse_reg_operand
5022 predicates.
5023
5024 2016-04-29 Jakub Jelinek <jakub@redhat.com>
5025
5026 PR middle-end/70843
5027 * fold-const.c (operand_equal_p): Don't verify hash value equality
5028 if arg0 == arg1.
5029 * tree.c (inchash::add_expr): Handle STATEMENT_LIST. Ignore BLOCK
5030 and OMP_CLAUSE.
5031
5032 2016-04-28 Jakub Jelinek <jakub@redhat.com>
5033
5034 PR target/70858
5035 * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
5036 to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
5037 (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
5038 __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
5039 __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
5040
5041 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
5042
5043 * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
5044 to info. Don't initialize separate fields to 0. Clean up
5045 formatting a bit.
5046
5047 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
5048
5049 * config/i386/i386.md (peephole2s for operations with memory inputs):
5050 Use SWI mode iterator.
5051 (peephole2s for operations with memory outputs): Ditto.
5052 Do not check for stack checking probe.
5053
5054 (probe_stack): Remove expander.
5055
5056 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
5057 Andrew Burgess <andrew.burgess@embecosm.com>
5058
5059 * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
5060 operands as 32-bits.
5061
5062 2016-04-28 Jason Merrill <jason@redhat.com>
5063
5064 * gdbinit.in: Skip line-map.h.
5065
5066 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
5067 Andrew Burgess <andrew.burgess@embecosm.com>
5068
5069 * config/arc/arc.c (arc_conditional_register_usage): Take
5070 TARGET_RRQ_CLASS into account.
5071 (arc_print_operand): Support printing 'p' and 's' operands.
5072 * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
5073 as 0.
5074 (TARGET_RRQ_CLASS): Define.
5075 (IS_POWEROF2_OR_0_P): Define.
5076 * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
5077 alternatives.
5078 (*tst_movb): New define_insn.
5079 (*tst): Avoid recognition if it could prevent '*tst_movb'
5080 combination; replace c/CnL with c/Chs alternative.
5081 (*tst_bitfield_tst): New define_insn.
5082 (*tst_bitfield_asr): New define_insn.
5083 (*tst_bitfield): New define_insn.
5084 (andsi3_i): Add Rrq variant.
5085 (extzv): New define_expand.
5086 (insv): New define_expand.
5087 (*insv_i): New define_insn.
5088 (*movb): New define_insn.
5089 (*movb_signed): New define_insn.
5090 (*movb_high): New define_insn.
5091 (*movb_high_signed): New define_insn.
5092 (*movb_high_signed + 1): New define_split pattern.
5093 (*mrgb): New define_insn.
5094 (*mrgb + 1): New define_peephole2 pattern.
5095 (*mrgb + 2): New define_peephole2 pattern.
5096 * config/arc/arc.opt (mbitops): New option for nps400, uses
5097 TARGET_NPS_BITOPS_DEFAULT.
5098 * config/arc/constraints.md (q): Make register class conditional.
5099 (Rrq): New register constraint.
5100 (Chs): New constraint.
5101 (Clo): New constraint.
5102 (Chi): New constraint.
5103 (Cbf): New constraint.
5104 (Cbn): New constraint.
5105 (C18): New constraint.
5106 (Cbi): New constraint.
5107
5108 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
5109
5110 * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
5111 dst->popcount.
5112 (bitmap_intersection_of_preds): Ditto.
5113 (bitmap_union_of_succs): Ditto.
5114 (bitmap_union_of_preds): Ditto.
5115 * sbitmap.c (do_popcount): Delete.
5116 (BITMAP_DEBUGGING): Delete.
5117 (sbitmap_verify_popcount): Delete.
5118 (sbitmap_alloc): Don't initialize the popcount field.
5119 (sbitmap_alloc_with_popcount): Delete.
5120 (sbitmap_resize): Don't resize the popcount array.
5121 (sbitmap_vector_alloc): Don't initialize the popcount field.
5122 (bitmap_copy): Don't copy the popcount array.
5123 (bitmap_clear): Don't clear the popcount array.
5124 (bitmap_clear): Delete the popcount array handling.
5125 (bitmap_ior_and_compl): Delete the popcount assert.
5126 (bitmap_not): Ditto.
5127 (bitmap_and_compl): Ditto.
5128 (bitmap_and): Delete the popcount array handling.
5129 (bitmap_xor): Ditto.
5130 (bitmap_ior): Ditto.
5131 (bitmap_or_and): Delete the popcount assert.
5132 (bitmap_and_or): Ditto.
5133 (popcount_table): Delete.
5134 (sbitmap_elt_popcount): Delete.
5135 * sbitmap.h (simple_bitmap_def): Delete the popcount field.
5136 (bitmap_set_bit): Delete the popcount assert.
5137 (bitmap_clear_bit): Ditto.
5138 (sbitmap_free): Don't free the popcount array.
5139 (sbitmap_alloc_with_popcount): Delete declaration.
5140 (sbitmap_popcount): Ditto.
5141
5142 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
5143 Andrew Burgess <andrew.burgess@embecosm.com>
5144
5145 * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
5146 (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
5147 * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
5148 (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
5149 * config/arc/arc.opt (mcmem): New option.
5150 * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
5151 supply length for r/m alternative.
5152 (*extendqisi2_ac): Likewise.
5153 (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
5154 r/Uex alternative.
5155 (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
5156 (movhi_insn): Likewise.
5157 (movsi_insn): Add r/Ucm,Ucm/w alternatives.
5158 (*zero_extendqihi2_i): Add r/Ucm alternative.
5159 (*zero_extendqisi2_ac): Likewise.
5160 (*zero_extendhisi2_i): Likewise.
5161 * config/arc/constraints.md (Uex): New memory constraint.
5162 (Ucm): New define_constraint.
5163 * config/arc/predicates.md (long_immediate_loadstore_operand):
5164 Return 0 for MEM with cmem_address address.
5165 (cmem_address_0): New predicates.
5166 (cmem_address_1): Likewise.
5167 (cmem_address_2): Likewise.
5168 (cmem_address): Likewise.
5169
5170 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
5171
5172 * config/rs6000/rs6000.c (machine_function): Rename
5173 insn_chain_scanned_p to spe_insn_chain_scanned_p.
5174 (rs6000_stack_info): Adjust.
5175
5176 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
5177 Andrew Burgess <andrew.burgess@embecosm.com>
5178
5179 * config/arc/constraints.md (Usd): Convert to define_constraint.
5180 (Us<): Likewise.
5181 (Us>): Likewise.
5182
5183 2016-04-28 Jakub Jelinek <jakub@redhat.com>
5184
5185 PR target/70821
5186 * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
5187 Add new peephole2 where the first insn is *mov<mode>_or instead of
5188 *mov<mode>_internal.
5189
5190 2016-04-28 Segher Boesssenkool <segher@kernel.crashing.org>
5191
5192 * tracer.c (bb_seen): Make static.
5193
5194 2016-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
5195
5196 * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
5197 support, setup defaults.
5198 * config/arc/arc-opts.h (enum processor_type): Add NPS400.
5199 * config/arc/arc.c (arc_init): Add NPS400 support.
5200 * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
5201 (TARGET_ARC700): NPS400 is also an ARC700.
5202 * config/arc/arc.opt: Add NPS400 options to -mcpu=.
5203
5204 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
5205
5206 PR target/70668
5207 * config/nds32/nds32.md (casesi): Don't access the operands array
5208 out of bounds.
5209
5210 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
5211
5212 * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
5213 (or $-1,reg peephole2): Ditto.
5214 (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
5215
5216 2016-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
5217
5218 * doc/extend.texi (Common Function Attributes) [optimize]:
5219 Discourage use of the optimize attribute.
5220
5221 2016-04-28 Bill Seurer <seurer@linux.vnet.ibm.com>
5222
5223 * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
5224 special case builtin.
5225 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
5226 ALTIVEC_BUILTIN_VEC_ADDE.
5227 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
5228 support for ALTIVEC_BUILTIN_VEC_ADDE.
5229 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
5230 for __builtin_vec_adde.
5231
5232 2016-04-28 Jakub Jelinek <jakub@redhat.com>
5233
5234 * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
5235 * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
5236
5237 2016-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5238
5239 PR testsuite/70595
5240 * doc/sourcebuild.texi (Effective-Target Keywords, Other
5241 attributes): Document cilkplus_runtime.
5242
5243 2016-04-28 Martin Jambor <mjambor@suse.cz>
5244
5245 * tree-cfg.c (verify_expr): Verify that local declarations belong to
5246 this function. Call verify_expr on MEM_REFs and bases of other
5247 handled_components.
5248
5249 2016-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5250
5251 * internal-fn.c (expand_arith_overflow): Convert preprocessor check
5252 for WORD_REGISTER_OPERATIONS to runtime check.
5253
5254 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
5255
5256 * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
5257
5258 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
5259
5260 * config/arc/arc.c (arc_process_double_reg_moves): Fix for
5261 big-endian compilation.
5262 * config/arc/arc.md (addf3): Likewise.
5263 (subdf3): Likewise.
5264 (muldf3): Likewise.
5265
5266 2016-04-28 Richard Biener <rguenther@suse.de>
5267
5268 PR tree-optimization/70840
5269 * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
5270 Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
5271 Mark x * pow(x,c) -> pow(x,c+1) commutative.
5272 Add powi(x,y) * powi(z,y) -> powi(x*z,y).
5273
5274 2015-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5275
5276 * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
5277 and explain why in a comment.
5278
5279 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
5280
5281 * config/arc/arc.md (cpu_facility): Add fpx variant.
5282 (subdf3): Prohibit use reverse sub when assist operations option
5283 is enabled.
5284 * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
5285 instructions only when FPX is enabled.
5286 * testsuite/gcc.target/arc/trsub.c: New test.
5287
5288 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
5289
5290 * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
5291 mult_operator when calculating "type" attribute.
5292 (*fop_<mode>_1_i387): Ditto.
5293 (*fop_xf_1_i387): Ditto.
5294 (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
5295 Use std::swap to swap operands. Use RTL expressions to generate
5296 converted pattern.
5297
5298 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
5299 Joern Rennecke <joern.rennecke@embecosm.com>
5300
5301 * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
5302 declaration.
5303 (emit_pic_move): Remove.
5304 (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
5305 * config/arc/arc.c (emit_pic_move): Removed.
5306 (TARGET_HAVE_TLS): Define.
5307 (arc_conditional_register_usage): Test for arc_tp_regno.
5308 (arc_print_operand, arc_print_operand_address): Handle TLS
5309 unspecs.
5310 (arc_needs_pcl_p): New function.
5311 (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
5312 (arc_legitimate_pic_addr_p): Handle TLS unspecs.
5313 (arc_raw_symbolic_reference_mentioned_p): Likewise.
5314 (arc_get_tp, arc_emit_call_tls_get_addr): New function.
5315 (arc_legitimize_tls_address): Likewise.
5316 (DTPOFF_ZERO_SYM): Define.
5317 (arc_legitimize_pic_address): Make it static, handle TLS cases.
5318 (arc_output_pic_addr_const): Print TLS unspecs.
5319 (prepare_pic_move): New function, replaces emit_pic_move.
5320 (arc_legitimate_constant_p): Handle TLS unspecs.
5321 (arc_legitimate_address_p): Likewise.
5322 (arc_rewrite_small_data_p): Use assert for TLS constants.
5323 (prepare_move_operands): Use prepare_pic_move.
5324 (arc_legitimize_address): Legitimize tls addresses.
5325 (arc_epilogue_uses): Check for arc_tp_regno.
5326 (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
5327 * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
5328 Define.
5329 [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
5330 Likewise.
5331 [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
5332 %(arc_tls_extra_start_spec).
5333 (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
5334 (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
5335 (EH_USES): Define.
5336 (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
5337 * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
5338 (UNSPEC_TLS_OFF): Add.
5339 (R10_REG): Define.
5340 (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
5341 (get_thread_pointersi): New patterns.
5342 * config/arc/arc.opt (mtp-regno): New option.
5343 * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
5344 (move_dest_operand): Likewise.
5345 * configure: Regenerate.
5346 * configure.ac: Add arc*-*-* case to test for tls.
5347 * doc/invoke.texi (ARC options): Document mtp-regno.
5348
5349 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
5350
5351 * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
5352 the new ARC HS SIMD instructions.
5353 (arc_preferred_simd_mode): New function.
5354 (arc_autovectorize_vector_sizes): Likewise.
5355 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
5356 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
5357 (arc_init_reg_tables): Accept new ARC HS SIMD modes.
5358 (arc_init_builtins): Add new SIMD builtin types.
5359 (arc_split_move): Handle 64 bit vector moves.
5360 * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
5361 (TARGET_PLUS_QMACW): Define.
5362 * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
5363 (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
5364 (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
5365 (VSUBADD4H): New builtins.
5366 * config/arc/simdext.md: Add new ARC HS SIMD instructions.
5367 * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
5368
5369 2016-04-28 Eduard Sanou <dhole@openmailbox.org>
5370 Matthias Klose <doko@debian.org>
5371
5372 * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
5373
5374 2016-04-28 Richard Biener <rguenther@suse.de>
5375
5376 PR middle-end/70777
5377 * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
5378 canonicalization.
5379
5380 2016-04-28 Oleg Endo <olegendo@gcc.gnu.org>
5381
5382 * common/config/sh/sh-common.c: Remove SH5 support.
5383 * config/sh/constraints.md: Likewise.
5384 * config/sh/config/sh/elf.h: Likewise.
5385 * config/sh/linux.h: Likewise.
5386 * config/sh/netbsd-elf.h: Likewise.
5387 * config/sh/predicates.md: Likewise.
5388 * config/sh/sh-c.c: Likewise.
5389 * config/sh/sh-protos.h: Likewise.
5390 * config/sh/sh.c: Likewise.
5391 * config/sh/sh.h: Likewise.
5392 * config/sh/sh.md: Likewise.
5393 * config/sh/sh.opt: Likewise.
5394 * config/sh/sync.md: Likewise.
5395 * config/sh/sh64.h: Delete.
5396 * config/sh/shmedia.h: Likewise.
5397 * config/sh/shmedia.md: Likewise.
5398 * config/sh/sshmedia.h: Likewise.
5399 * config/sh/t-netbsd-sh5-64: Likewise.
5400 * config/sh/t-sh64: Likewise.
5401 * config/sh/ushmedia.h: Likewise.
5402
5403 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
5404
5405 * config/i386/i386.md (sign_extend to memory peephole2s): Use
5406 general_reg_operand instead of register_operand predicate.
5407
5408 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5409
5410 * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
5411
5412 2016-04-27 Marc Glisse <marc.glisse@inria.fr>
5413
5414 * match.pd (A - B > A, A + B < A): New transformations.
5415
5416 2016-04-27 Patrick Palka <ppalka@gcc.gnu.org>
5417
5418 * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
5419 which defaults to true. Emit an outer pair of parentheses only if
5420 EMIT_PARENS. When continuing a chain of && or || (or & or |),
5421 don't emit parentheses for the right-hand operand.
5422
5423 2016-04-27 Jeff Law <law@redhat.com>
5424
5425 * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
5426
5427 2016-04-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5428
5429 * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
5430 (altivec_lvx_<mode>_internal): Document.
5431 (altivec_lvx_<mode>_2op): New define_insn.
5432 (altivec_lvx_<mode>_1op): Likewise.
5433 (altivec_lvx_<mode>_2op_si): Likewise.
5434 (altivec_lvx_<mode>_1op_si): Likewise.
5435 (altivec_stvx_<mode>): Remove.
5436 (altivec_stvx_<mode>_internal): Document.
5437 (altivec_stvx_<mode>_2op): New define_insn.
5438 (altivec_stvx_<mode>_1op): Likewise.
5439 (altivec_stvx_<mode>_2op_si): Likewise.
5440 (altivec_stvx_<mode>_1op_si): Likewise.
5441 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
5442 Expand vec_ld and vec_st during parsing.
5443 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
5444 changes.
5445 (altivec_expand_stvx_be): Likewise.
5446 (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
5447 address-masking behavior in RTL.
5448 (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
5449 address-masking behavior in RTL.
5450 (altivec_expand_builtin): Change builtin code arguments for calls
5451 to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
5452 (insn_is_swappable_p): Avoid incorrect swap optimization in the
5453 presence of lvx/stvx patterns.
5454 (alignment_with_canonical_addr): New function.
5455 (alignment_mask): Likewise.
5456 (find_alignment_op): Likewise.
5457 (recombine_lvx_pattern): Likewise.
5458 (recombine_stvx_pattern): Likewise.
5459 (recombine_lvx_stvx_patterns): Likewise.
5460 (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
5461 stvx patterns from expand.
5462 * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
5463 expansions.
5464 (vector_altivec_store_<mode>): Likewise.
5465
5466 2016-04-26 Evandro Menezes <e.menezes@samsung.com>
5467
5468 * config/aarch64/aarch64.md
5469 (*movhf_aarch64): Add "movi %0, #0" to zero up register and
5470 remove the "fp" attributes.
5471 (*movsf_aarch64): Add "movi %0, #0" to zero up register and
5472 add the "simd" attributes.
5473 (*movdf_aarch64): Likewise.
5474 (*movtf_aarch64): Remove the "fp" attributes.
5475 * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
5476 * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
5477
5478 2016-04-27 David Malcolm <dmalcolm@redhat.com>
5479
5480 * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
5481 rtx to rtx_code_label *.
5482 * rtl.h (maybe_set_first_label_num): Likewise.
5483
5484 2016-04-27 David Malcolm <dmalcolm@redhat.com>
5485
5486 * df-core.c (df_add_problem): Make the problem param be const.
5487 (df_remove_problem): Make local "problem" be const.
5488 * df-problems.c (problem_RD): Make const.
5489 (problem_LR): Likewise.
5490 (problem_LIVE): Likewise.
5491 (problem_MIR): Likewise.
5492 (problem_CHAIN): Likewise.
5493 (problem_WORD_LR): Likewise.
5494 (problem_NOTE): Likewise.
5495 (problem_MD): Likewise.
5496 * df-scan.c (problem_SCAN): Likewise.
5497 * df.h (struct df_problem): Make field "dependent_problem" be
5498 const.
5499 (struct dataflow): Likewise for field "problem".
5500 (df_add_problem): Make param const.
5501
5502 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
5503
5504 * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
5505 inter-unit moves to/from vector registers are enabled. Do not disable
5506 for TARGET_MMX.
5507
5508 2016-04-27 David Malcolm <dmalcolm@redhat.com>
5509
5510 * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
5511 DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
5512 #define to...
5513 (enum df_problem_id): ...this new enum.
5514 (struct df_problem): Convert field "id" from "int" to
5515 enum df_problem_id.
5516
5517 2016-04-27 David Malcolm <dmalcolm@redhat.com>
5518
5519 * rtl.def: Update comment for "things in the instruction chain" to
5520 reflect the removal of the leading "i" field for INSN_UID in
5521 r210360. Fix bogus apostrophe.
5522
5523 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
5524
5525 * config/i386/i386.md
5526 (lea arith with mem operand + setcc peephole2): Set operator mode.
5527
5528 2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
5529
5530 PR target/70155
5531 * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
5532 (dimode_scalar_to_vector_candidate_p): This.
5533 (timode_scalar_to_vector_candidate_p): New function.
5534 (scalar_to_vector_candidate_p): Likewise.
5535 (timode_check_non_convertible_regs): Likewise.
5536 (timode_remove_non_convertible_regs): Likewise.
5537 (remove_non_convertible_regs): Likewise.
5538 (remove_non_convertible_regs): Renamed to ...
5539 (dimode_remove_non_convertible_regs): This.
5540 (scalar_chain::~scalar_chain): Make it virtual.
5541 (scalar_chain::compute_convert_gain): Make it pure virtual.
5542 (scalar_chain::mark_dual_mode_def): Likewise.
5543 (scalar_chain::convert_insn): Likewise.
5544 (scalar_chain::convert_registers): Likewise.
5545 (scalar_chain::add_to_queue): Make it protected.
5546 (scalar_chain::emit_conversion_insns): Likewise.
5547 (scalar_chain::replace_with_subreg): Likewise.
5548 (scalar_chain::replace_with_subreg_in_insn): Likewise.
5549 (scalar_chain::convert_op): Likewise.
5550 (scalar_chain::convert_reg): Likewise.
5551 (scalar_chain::make_vector_copies): Likewise.
5552 (scalar_chain::convert_registers): New pure virtual function.
5553 (class dimode_scalar_chain): New class.
5554 (class timode_scalar_chain): Likewise.
5555 (scalar_chain::mark_dual_mode_def): Renamed to ...
5556 (dimode_scalar_chain::mark_dual_mode_def): This.
5557 (timode_scalar_chain::mark_dual_mode_def): New function.
5558 (timode_scalar_chain::convert_insn): Likewise.
5559 (dimode_scalar_chain::convert_registers): Likewise.
5560 (scalar_chain::compute_convert_gain): Renamed to ...
5561 (dimode_scalar_chain::compute_convert_gain): This.
5562 (scalar_chain::replace_with_subreg): Renamed to ...
5563 (dimode_scalar_chain::replace_with_subreg): This.
5564 (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
5565 (dimode_scalar_chain::replace_with_subreg_in_insn): This.
5566 (scalar_chain::make_vector_copies): Renamed to ...
5567 (dimode_scalar_chain::make_vector_copies): This.
5568 (scalar_chain::convert_reg): Renamed to ...
5569 (dimode_scalar_chain::convert_reg ): This.
5570 (scalar_chain::convert_op): Renamed to ...
5571 (dimode_scalar_chain::convert_op): This.
5572 (scalar_chain::convert_insn): Renamed to ...
5573 (dimode_scalar_chain::convert_insn): This.
5574 (scalar_chain::convert): Call convert_registers.
5575 (convert_scalars_to_vector): Change to scalar_chain pointer to
5576 use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
5577 in 32-bit mode. Delete scalar_chain pointer. Call
5578 free_dominance_info in 64-bit mode.
5579 (pass_stv::gate): Remove TARGET_64BIT check.
5580 (ix86_option_override): Put the 64-bit STV pass before the CSE
5581 pass.
5582
5583 2016-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
5584
5585 * dwarf2out.h (struct dw_loc_descr_node): Remove the
5586 dw_loc_frame_offset field.
5587 * dwarf2out.c (new_loc_descr): Likewise.
5588 (resolve_args_picking_1): Turn the VISITED hash set into a
5589 FRAME_OFFSET hash map. Use it to associate a frame offset to
5590 visited nodes. Remove uses of the CHECKING_P macro.
5591 (resolve_args_picking): Update call to resolve_args_picking_1.
5592
5593 2016-04-27 Martin Liska <mliska@suse.cz>
5594
5595 * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
5596 (free_loop_data): Release vuses of groups.
5597
5598 2016-04-27 Bin Cheng <bin.cheng@arm.com>
5599
5600 * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
5601 instead of redundant use_id and boolean have_use_for.
5602 (struct iv_use): Change sub_id into group_id. Remove field next.
5603 Move fields: related_cands, n_map_members, cost_map and selected
5604 to ...
5605 (struct iv_group): ... here. New structure.
5606 (struct iv_common_cand): Use structure declaration directly.
5607 (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
5608 (MAX_CONSIDERED_USES): Rename macro to ...
5609 (MAX_CONSIDERED_GROUPS): ... here.
5610 (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
5611 (dump_iv, dump_use, dump_cand): Refactor format of dump information.
5612 (dump_uses): Rename to ...
5613 (dump_groups): ... here. Update all uses.
5614 (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
5615 (find_induction_variables): Refactor format of dump information.
5616 (record_sub_use): Delete.
5617 (record_use): Update all uses.
5618 (record_group): New function.
5619 (record_group_use, find_interesting_uses_op): Call above functions.
5620 Update all uses.
5621 (find_interesting_uses_cond): Ditto.
5622 (group_compare_offset): New function.
5623 (split_all_small_groups): Rename to ...
5624 (split_small_address_groups_p): ... here. Update all uses.
5625 (split_address_groups): Update all uses.
5626 (find_interesting_uses): Refactor format of dump information.
5627 (add_candidate_1): Update all uses. Remove redundant check on iv,
5628 base and step.
5629 (add_candidate, record_common_cand): Remove redundant assert.
5630 (add_iv_candidate_for_biv): Update use.
5631 (add_iv_candidate_derived_from_uses): Update all uses.
5632 (add_iv_candidate_for_groups, record_important_candidates): Ditto.
5633 (alloc_use_cost_map): Ditto.
5634 (set_use_iv_cost, get_use_iv_cost): Rename to ...
5635 (set_group_iv_cost, get_group_iv_cost): ... here. Update all uses.
5636 (determine_use_iv_cost_generic): Ditto.
5637 (determine_group_iv_cost_generic): Ditto.
5638 (determine_use_iv_cost_address): Ditto.
5639 (determine_group_iv_cost_address): Ditto.
5640 (determine_use_iv_cost_condition): Ditto.
5641 (determine_group_iv_cost_cond): Ditto.
5642 (determine_use_iv_cost): Ditto.
5643 (determine_group_iv_cost): Ditto.
5644 (set_autoinc_for_original_candidates): Update all uses.
5645 (find_iv_candidates): Update all uses. Refactor dump information.
5646 (determine_use_iv_costs): Ditto.
5647 (determine_iv_costs): Ditto.
5648 (iv_ca_cand_for_use): Rename to ...
5649 (iv_ca_cand_for_group): ... here. Update all uses.
5650 (iv_ca_add_use, iv_ca_add_group): Ditto.
5651 (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
5652 (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
5653 (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
5654 (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
5655 (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
5656 (create_new_iv, adjust_iv_update_pos): Ditto.
5657 (rewrite_use_address): Delete.
5658 (rewrite_use_address_1): Rename to ...
5659 (rewrite_use_address): ... here.
5660 (rewrite_use_compare): Update all uses.
5661 (rewrite_use): Delete.
5662 (rewrite_uses): Rename to ...
5663 (rewrite_groups): ... here. Update all uses.
5664 (remove_unused_ivs, free_loop_data): Update all uses.
5665 (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
5666
5667 2016-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5668
5669 * rtlanal.c (nonzero_bits1): Convert preprocessor check
5670 for WORD_REGISTER_OPERATIONS to runtime check.
5671
5672 2016-04-27 Richard Biener <rguenther@suse.de>
5673
5674 PR ipa/70760
5675 * tree-ssa-structalias.c (find_func_aliases_for_call): Use
5676 aggregate_value_p to determine if a function result is
5677 returned by reference.
5678 (ipa_pta_execute): Functions having their address taken are
5679 not automatically nonlocal.
5680
5681 2016-04-27 Jakub Jelinek <jakub@redhat.com>
5682
5683 PR sanitizer/70683
5684 * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
5685 * fold-const.c (operand_equal_p): If flag_checking and
5686 OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
5687 and if it returns non-zero, assert iterative_hash_expr on both
5688 args is the same.
5689
5690 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
5691
5692 * doc/invoke.texi (-frename-registers): Also enabled at -Os.
5693
5694 2016-04-27 Nick Clifton <nickc@redhat.com>
5695
5696 PR middle-end/49889
5697 * varasm.c (merge_weak): Generate an error if an attempt is made
5698 to convert a non-weak static function into a weak, public function.
5699
5700 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5701
5702 * params.def (MAX_PARTITION_SIZE): New param.
5703 * doc/invoke.texi: Document lto-max-partition.
5704
5705 2016-04-27 Richard Biener <rguenther@suse.de>
5706
5707 PR ipa/70785
5708 * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
5709 function cummulating used_from_other_partition, externally_visible
5710 and force_output from aliases.
5711 (refered_from_nonlocal_var): Likewise.
5712 (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
5713 node flags properly.
5714
5715 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
5716
5717 * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
5718 (-Wmemset-elt-size): New item.
5719
5720 2016-04-27 Eric Botcazou <ebotcazou@adacore.com>
5721
5722 PR ada/70759
5723 * stor-layout.h (internal_reference_types): Delete.
5724 * stor-layout.c (reference_types_internal): Likewise.
5725 (internal_reference_types): Likewise.
5726 (layout_type) <REFERENCE_TYPE>: Adjust.
5727
5728 2016-04-27 Jakub Jelinek <jakub@redhat.com>
5729
5730 PR sanitizer/70683
5731 * tree.h (inchash::add_expr): Add FLAGS argument.
5732 * tree.c (inchash::add_expr): Likewise. If not OEP_ADDRESS_OF,
5733 use STRIP_NOPS first. For INTEGER_CST assert not OEP_ADDRESS_OF.
5734 For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
5735 Formatting fix. Adjust recursive calls. For tcc_comparison,
5736 if swap_tree_comparison (code) is smaller than code, hash that
5737 and arguments in the other order. Hash CONVERT_EXPR the same
5738 as NOP_EXPR. For OEP_ADDRESS_OF hash MEM_REF with 0 offset
5739 of ADDR_EXPR of decl as the decl itself. Add or remove
5740 OEP_ADDRESS_OF from recursive flags as needed. For
5741 FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
5742 operands commutatively and only the third one normally.
5743 For internal CALL_EXPR hash in CALL_EXPR_IFN.
5744
5745 2016-04-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
5746
5747 * config/rtems.h (LIB_SPEC): Add -latomic.
5748
5749 2016-04-27 Joel Sherrill <joel@rtems.org>
5750
5751 * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
5752 xilink.ld and flags not relevant to RTEMS.
5753
5754 2016-04-26 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
5755
5756 * toplev.c (backend_init_target): Avoid calling init_reload when using
5757 LRA.
5758
5759 2016-04-26 Jakub Jelinek <jakub@redhat.com>
5760
5761 * reorg.c (try_merge_delay_insns): Declare i and j inside the
5762 for loops rather than one for the whole function.
5763
5764 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
5765
5766 * match.pd (X + CST CMP X): New transformation.
5767
5768 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
5769
5770 * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
5771 * fold-const.c (fold_binary_loc): Remove 2 transformations
5772 superseded by match.pd.
5773 * match.pd (x+x -> x*2): Generalize to integers.
5774
5775 2016-04-26 Bernd Schmidt <bschmidt@redhat.com>
5776
5777 * config/i386/i386.md (operation on memory peephole): Duplicate an
5778 existing peephole and adapt it to match lea rather than an operation
5779 that clobbers CC.
5780
5781 PR rtl-optimization/57193
5782 * opts.c (default_options_table): Add OPT_frename_registers at -O2
5783 and above.
5784 * doc/invoke.texi (-frename-registers, -O2): Update documentation.
5785
5786 2016-04-26 Bin Cheng <bin.cheng@arm.com>
5787
5788 * tree-if-conv.c (any_pred_load_store): New static variable.
5789 (if_convertible_gimple_assign_stmt_p): Remove parameter. Use
5790 any_pred_load_store instead of and_mask_load_store.
5791 (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
5792 (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
5793 (combine_blocks, tree_if_conversion): Ditto.
5794
5795 2016-04-26 Bin Cheng <bin.cheng@arm.com>
5796
5797 PR tree-optimization/70771
5798 PR tree-optimization/70775
5799 * tree-if-conv.c (if_convertible_phi_p): Remove check on special
5800 virtual PHI nodes. Delete parameter.
5801 (if_convertible_loop_p_1): Delete argument to above function.
5802 (predicate_all_scalar_phis): Delete code handling single-argument
5803 PHIs.
5804 (tree_if_conversion): Mark and update virtual SSA.
5805
5806 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5807
5808 PR target/61821
5809 * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
5810 (x86_elf_aligned_common): Rename to ...
5811 (x86_elf_aligned_decl_common): ... this.
5812 Add decl arg. Switch to .lbss for largecomm object. Use
5813 LARGECOMM_SECTION_ASM_OP.
5814 * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
5815 renaming.
5816 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
5817 (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
5818 Pass new decl arg.
5819 * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
5820 [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
5821
5822 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5823
5824 PR target/59407
5825 * config/i386/i386.c (SECTION_LARGE): Define.
5826 (x86_64_elf_select_section): Set it for large data/bss sections.
5827 Only clear SECTION_WRITE for .lrodata.
5828 (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
5829 data/bss sections.
5830 * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
5831 * varasm.c (default_elf_asm_named_section): Grow flagchars.
5832 [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
5833 SECTION_MACH_DEP.
5834 * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
5835 * doc/tm.texi: Regenerate.
5836
5837 2016-04-26 Jakub Jelinek <jakub@redhat.com>
5838
5839 PR bootstrap/70704
5840 * configure.ac (--enable-checking): Document extra flag, for
5841 non-release builds default to --enable-checking=yes,extra.
5842 If misc checking and extra checking, define CHECKING_P to 2 instead
5843 of 1.
5844 * common.opt (fchecking=): Add.
5845 * doc/invoke.texi (-fchecking=): Document.
5846 * doc/install.texi: Document --enable-checking changes.
5847 * configure: Regenerated.
5848 * config.in: Regenerated.
5849
5850 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
5851
5852 * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
5853 attribute instead of which_alternative.
5854 * config/i386/sse.md (*mov<mode>_internal): Ditto.
5855 Use EXT_REX_SSE_REG_P where appropriate.
5856
5857 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
5858
5859 * config/i386/predicates.md (const0_operand): Do not match
5860 const_wide_int code.
5861 (const1_operand): Ditto.
5862
5863 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
5864
5865 * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
5866 for SSE constm1 operands and TARGET_AVX512VL.
5867 (*movti_internal): Ditto.
5868 (*mov<mode>_or): Use constm1_operand predicate.
5869 * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
5870 for SSE vector_all_ones operands and TARGET_AVX512VL.
5871 * config/i386/predicates.md (constm1_operand): New predicate.
5872 * config/i386/i386.c (standard_sse_constant_opcode): Simplify
5873 emission of constant -1 load.
5874
5875 2016-04-25 Jason Merrill <jason@redhat.com>
5876
5877 * gdbinit.in: Skip is-a.h.
5878
5879 * attribs.c (register_scoped_attributes): Fix logic.
5880 * attribs.h: Declare register_scoped_attributes.
5881
5882 2016-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5883
5884 * config/rs6000/rs6000-builtin.def: Correct pasto error for
5885 stxvd2x and stxvw4x built-in functions.
5886
5887 2016-04-25 DJ Delorie <dj@redhat.com>
5888
5889 * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
5890 (ashrhi3): Likewise.
5891 (lshrhi3): Likewise.
5892
5893 2016-04-25 Richard Biener <rguenther@suse.de>
5894
5895 PR tree-optimization/70780
5896 * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
5897 wasn't visited yet.
5898 (compute_antic): Mark blocks with abnormal preds as visited as
5899 they have a final empty antic-in solution already.
5900
5901 2016-04-25 Michael Collison <michael.collison@linaro.org>
5902
5903 * ChangeLog(2016-04-25): Fix ChangeLog formatting.
5904
5905 2016-04-25 Michael Collison <michael.collison@linaro.org>
5906
5907 * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
5908 mode is VQI to improve mixed mode vectorization.
5909 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
5910 define_insn to match low half of signed vaddw.
5911 * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
5912 define_insn to match high half of signed vaddw.
5913 * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
5914 define_insn to match low half of unsigned vaddw.
5915 * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
5916 define_insn to match high half of unsigned vaddw.
5917 * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
5918 (arm_simd_check_vect_par_cnst_half_p): Likewise.
5919 * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
5920 for new function.
5921 (arm_simd_check_vect_par_cnst_half_p): Likewise.
5922 * config/arm/predicates.md (vect_par_constant_high): Support
5923 big endian and simplify by calling
5924 arm_simd_check_vect_par_cnst_half
5925 (vect_par_constant_low): Likewise.
5926
5927 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
5928
5929 * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
5930 predicate for operand 2.
5931
5932 2016-04-24 Uros Bizjak <ubizjak@gmail.com>
5933 H.J. Lu <hongjiu.lu@intel.com>
5934
5935 * config/i386/i386-protos.h (standard_sse_constant_p): Add
5936 machine_mode argument.
5937 * config/i386/i386.c (standard_sse_constant_p): Return 2 for
5938 constm1_rtx operands. For VOIDmode constants, get mode from
5939 pred_mode. Check mode size if the mode is supported by ABI.
5940 (standard_sse_constant_opcode): Do not use standard_constant_p.
5941 Strictly check ABI support for all-ones operands.
5942 (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
5943 immediates. Update calls to standard_sse_constant_p.
5944 (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
5945 (ix86_rtx_costs): Ditto.
5946 * config/i386/i386.md (*movxi_internal_avx512f): Use
5947 nonimmediate_or_sse_const_operand instead of vector_move_operand.
5948 Use (v,BC) alternative instead of (v,C). Use register_operand
5949 checks instead of MEM_P.
5950 (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
5951 of vector_move_operand. Add (v,BC) alternative and corresponding avx2
5952 isa attribute. Use register_operand checks instead of MEM_P.
5953 (*movti_internal): Use nonimmediate_or_sse_const_operand for
5954 TARGET_SSE. Improve TARGET_SSE insn constraint. Add (v,BC)
5955 alternative and corresponding sse2 isa attribute.
5956 (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
5957 to standard_sse_constant_p.
5958 (FP constant splitters): Ditto.
5959 * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
5960 (C): Ditto.
5961 * config/i386/predicates.md (constm1_operand): Remove.
5962 (nonimmediate_or_sse_const_operand): Rewrite using RTX.
5963 * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
5964 vector_all_ones_operand instead of constm1_operand.
5965
5966 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5967
5968 * print-rtl.c (print_rtx_insn_vec): New function.
5969 * print-rtl.h: New prototype.
5970 * store-motion.c (struct st_expr): Make avail_stores a vector.
5971 (st_expr_entry): Adjust.
5972 (free_st_expr_entry): Likewise.
5973 (print_store_motion_mems): Likewise.
5974 (find_moveable_store): Likewise.
5975 (compute_store_table): Likewise.
5976 (delete_store): Likewise.
5977 (build_store_vectors): Likewise.
5978
5979 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5980
5981 * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
5982
5983 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5984
5985 * vec.h (vec_safe_contains): New function.
5986 (vec::contains): Likewise.
5987 (vec::begin): Likewise.
5988 (vec::end): Likewise.
5989
5990 2016-04-23 Jakub Jelinek <jakub@redhat.com>
5991
5992 PR sanitizer/70712
5993 * cfgexpand.c (expand_stack_vars): Fix typo.
5994
5995 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
5996
5997 * system.h (list, map, set, vector): Include conditionally.
5998 * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
5999 * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
6000 * ipa-icf.c (INCLUDE_LIST): Define.
6001 * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
6002 * config/sh/sh.c (INCLUDE_VECTOR): Define.
6003 * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
6004 (INCLUDE_LIST, INCLUDE_VECTOR): Define.
6005 * cp/logic.cc (INCLUDE_LIST): Define.
6006 * fortran/trans-common.c (INCLUDE_MAP): Define.
6007
6008 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
6009
6010 * auto-profile.c: Remove <string.h> include.
6011 * ipa-icf-gimple.c: Remove <list> include.
6012 * diagnostic.c: Remove <new> include.
6013 * genmatch.c: Likewise.
6014 * pretty-print.c: Likewise.
6015 * toplev.c: Likewise
6016 * c/c-objc-common.c: Likewise.
6017 * cp/error.c: Likewise.
6018 * fortran/error.c: Likewise.
6019
6020 2016-04-22 Richard Biener <rguenther@suse.de>
6021
6022 * lto-streamer-in.c (input_ssa_names): Do not allocate
6023 GIMPLE_NOP for all SSA names.
6024 * lto-streamer-out.c (output_ssa_names): Do not output
6025 SSA names that should have been released.
6026
6027 2016-04-22 Richard Biener <rguenther@suse.de>
6028
6029 PR tree-optimization/70740
6030 * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
6031 VDEF.
6032
6033 2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
6034
6035 PR target/70750
6036 * config/i386/predicates.md (call_insn_operand): Replace
6037 sibcall_memory_operand with memory_operand.
6038
6039 2016-04-21 Patrick Palka <ppalka@gcc.gnu.org>
6040
6041 * tree-vrp.c (register_edge_assert_for_2): Remove redundant
6042 has_single_use() tests.
6043 (register_edge_assert_for_1): Likewise.
6044 (find_assert_locations_1): Check the liveness bitmap instead of
6045 checking has_single_use().
6046
6047 2016-04-21 Kirill Yukhin <kirill.yukhin@intel.com>
6048
6049 PR target/70728
6050 * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
6051 Extract AVX-512BW constraint from AVX.
6052
6053 2016-04-21 Richard Biener <rguenther@suse.de>
6054
6055 PR tree-optimization/70725
6056 * tree-if-conv.c (if_convertible_phi_p): Adjust guard
6057 for phi_convertible_by_degenerating_args.
6058 (predicate_all_scalar_phis): Handle single-argument PHIs.
6059
6060 2016-04-21 Richard Biener <rguenther@suse.de>
6061
6062 PR middle-end/70747
6063 * fold-const.c (fold_comparison): Return properly typed
6064 constant boolean.
6065
6066 2016-04-21 Bin Cheng <bin.cheng@arm.com>
6067
6068 PR tree-optimization/70715
6069 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
6070 after expanding BASE using expand_simple_operations.
6071
6072 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
6073
6074 * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
6075 New transformations.
6076
6077 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
6078
6079 * match.pd (min(int_max, x), max(int_min, x)): New transformations.
6080
6081 2016-04-20 Jan Hubicka <jh@suse.cz>
6082
6083 * ipa-inline.c (can_inline_edge_p): Pass caller info to
6084 ultiimate_alias_target.
6085 (update_callee_keys): Likewise.
6086 (lookup_recursive_calls): Likewise.
6087 (speculation_useful_p): Likewise.
6088
6089 2016-04-20 Jan Hubicka <jh@suse.cz>
6090
6091 PR ipa/70018
6092 * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
6093 (set_nothrow_flag_1): ... this; handle interposition correctly;
6094 recurse on aliases and thunks.
6095 (cgraph_node::set_nothrow_flag): New.
6096 * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
6097 functions compiled with non-call exceptions that binds to current
6098 def.
6099 (propagate_nothrow): Be safe WRT interposition.
6100 * cgraph.h (set_nothrow_flag): Update prototype.
6101
6102 2016-04-18 Jan Hubicka <jh@suse.cz>
6103
6104 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
6105 max_loop_iterations_int.
6106 (tree_unswitch_outer_loop): Likewise.
6107
6108 2016-04-20 Bin Cheng <bin.cheng@arm.com>
6109
6110 PR tree-optimization/69489
6111 * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
6112 (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
6113 Revise dump message.
6114 (if_convertible_bb_p): Remove check on edge count of basic block's
6115 predecessors.
6116
6117 2016-04-20 Bin Cheng <bin.cheng@arm.com>
6118
6119 PR tree-optimization/56625
6120 PR tree-optimization/69489
6121 * tree-data-ref.h (DR_INNERMOST): New macro.
6122 * tree-if-conv.c (innermost_loop_behavior_hash): New class for
6123 hashing struct innermost_loop_behavior.
6124 (ref_DR_map): Remove.
6125 (innermost_DR_map): New map.
6126 (baseref_DR_map): Revise comment.
6127 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
6128 to innermost_DR_map accroding to its innermost loop behavior.
6129 (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
6130 to its innermost loop behavior.
6131 (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
6132 Add initialization for innermost_DR_map. Record memory reference
6133 in DR_BASE_ADDRESS if the reference is compound one or it doesn't
6134 have innermost loop behavior.
6135 (if_convertible_loop_p): Remove release for ref_DR_map. Release
6136 innermost_DR_map.
6137
6138 2016-04-20 Uros Bizjak <ubizjak@gmail.com>
6139
6140 * config/i386/i386.md (*lea<mode>_general_1): Rename from
6141 *lea_general_1. Use explicit SWI12 mode interator.
6142 (*lea<mode>_general_2): Rename from *lea_general_2.
6143 Use explicit SWI12 mode interator.
6144 (*lea<mode>_general_3): Rename from *lea_general_3.
6145 Use explicit SWI12 mode interator.
6146 (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
6147 Use explicit SWI12 mode interator.
6148 (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
6149 Use explicit SWI48 mode interator.
6150
6151 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
6152
6153 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
6154 Short-cut unaligned load and store cases. Handle all integer
6155 vector modes.
6156 (ix86_expand_vector_move_misalign): Short-cut unaligned load
6157 and store cases. Call ix86_avx256_split_vector_move_misalign
6158 directly without checking mode class.
6159
6160 2016-04-20 Andrew Pinski <apinski@cavium.com>
6161 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6162
6163 PR target/64971
6164 * config/aarch64/aarch64.md (sibcall): Force call
6165 address to be DImode for ILP32.
6166 (sibcall_value): Likewise.
6167
6168 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
6169
6170 * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
6171
6172 2016-04-20 Richard Biener <rguenther@suse.de>
6173
6174 * gimple-match.h (maybe_build_generic_op): Adjust prototype.
6175 * gimple-match-head.c (maybe_build_generic_op): Pass all ops
6176 by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
6177 (maybe_push_res_to_seq): Adjust.
6178 * gimple-fold.c (maybe_build_generic_op): Likewise.
6179
6180 2016-04-20 Marek Polacek <polacek@redhat.com>
6181
6182 * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
6183 rather than true.
6184
6185 2016-04-20 Ilya Enkovich <ilya.enkovich@intel.com>
6186
6187 * config/i386/sse.md (vec_unpacks_lo_hi): Always
6188 use kmovw to support AVX512F target.
6189
6190 2016-04-20 Bin Cheng <bin.cheng@arm.com>
6191
6192 * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
6193
6194 2016-04-20 Marek Polacek <polacek@redhat.com>
6195
6196 PR tree-optimization/70725
6197 * tree-if-conv.c (is_false_predicate): New function.
6198 (predicate_mem_writes): Use it.
6199
6200 2016-04-20 Richard Biener <rguenther@suse.de>
6201
6202 PR tree-optimization/70726
6203 * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
6204 shift amounts from a pattern stmt operand.
6205
6206 2016-04-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6207
6208 PR target/70674
6209 * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
6210 stack_restore_from_fpr pattern when restoring r15.
6211 (s390_optimize_prologue): Strip away the memory barrier in the
6212 parallel when trying to get rid of restore insns.
6213 * config/s390/s390.md ("stack_restore_from_fpr"): New insn
6214 definition for loading the stack pointer from an FPR. Compared to
6215 the normal move insn this pattern includes a full memory barrier.
6216
6217 2016-04-19 Jakub Jelinek <jakub@redhat.com>
6218
6219 PR middle-end/70680
6220 * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
6221 implicitly linear or lastprivate iterator on the outer context.
6222
6223 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
6224
6225 * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
6226 alignment check.
6227 * config/i386/i386.md (ssememalign): Removed.
6228 * config/i386/sse.md: Remove ssememalign attribute from patterns.
6229
6230 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
6231
6232 PR target/69201
6233 * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
6234 const short * to __builtin_ia32_loaddquhi512_mask.
6235 (_mm512_maskz_loadu_epi16): Likewise.
6236 (_mm512_mask_storeu_epi16): Pass short * to
6237 __builtin_ia32_storedquhi512_mask.
6238 (_mm512_mask_loadu_epi8): Pass const char * to
6239 __builtin_ia32_loaddquqi512_mask.
6240 (_mm512_maskz_loadu_epi8): Likewise.
6241 (_mm512_mask_storeu_epi8): Pass char * to
6242 __builtin_ia32_storedquqi512_mask.
6243 * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
6244 const double * to __builtin_ia32_loadupd512_mask.
6245 (_mm512_mask_loadu_pd): Likewise.
6246 (_mm512_maskz_loadu_pd): Likewise.
6247 (_mm512_storeu_pd): Pass double * to
6248 __builtin_ia32_storeupd512_mask.
6249 (_mm512_mask_storeu_pd): Likewise.
6250 (_mm512_loadu_ps): Pass const float * to
6251 __builtin_ia32_loadups512_mask.
6252 (_mm512_mask_loadu_ps): Likewise.
6253 (_mm512_maskz_loadu_ps): Likewise.
6254 (_mm512_storeu_ps): Pass float * to
6255 __builtin_ia32_storeups512_mask.
6256 (_mm512_mask_storeu_ps): Likewise.
6257 (_mm512_mask_loadu_epi64): Pass const long long * to
6258 __builtin_ia32_loaddqudi512_mask.
6259 (_mm512_maskz_loadu_epi64): Likewise.
6260 (_mm512_mask_storeu_epi64): Pass long long *
6261 to __builtin_ia32_storedqudi512_mask.
6262 (_mm512_loadu_si512): Pass const int * to
6263 __builtin_ia32_loaddqusi512_mask.
6264 (_mm512_mask_loadu_epi32): Likewise.
6265 (_mm512_maskz_loadu_epi32): Likewise.
6266 (_mm512_storeu_si512): Pass int * to
6267 __builtin_ia32_storedqusi512_mask.
6268 (_mm512_mask_storeu_epi32): Likewise.
6269 * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
6270 char * to __builtin_ia32_storedquqi256_mask.
6271 (_mm_mask_storeu_epi8): Likewise.
6272 (_mm256_mask_loadu_epi16): Pass const short * to
6273 __builtin_ia32_loaddquhi256_mask.
6274 (_mm256_maskz_loadu_epi16): Likewise.
6275 (_mm_mask_loadu_epi16): Pass const short * to
6276 __builtin_ia32_loaddquhi128_mask.
6277 (_mm_maskz_loadu_epi16): Likewise.
6278 (_mm256_mask_loadu_epi8): Pass const char * to
6279 __builtin_ia32_loaddquqi256_mask.
6280 (_mm256_maskz_loadu_epi8): Likewise.
6281 (_mm_mask_loadu_epi8): Pass const char * to
6282 __builtin_ia32_loaddquqi128_mask.
6283 (_mm_maskz_loadu_epi8): Likewise.
6284 (_mm256_mask_storeu_epi16): Pass short * to.
6285 __builtin_ia32_storedquhi256_mask.
6286 (_mm_mask_storeu_epi16): Pass short * to.
6287 __builtin_ia32_storedquhi128_mask.
6288 * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
6289 const double * to __builtin_ia32_loadupd256_mask.
6290 (_mm256_maskz_loadu_pd): Likewise.
6291 (_mm_mask_loadu_pd): Pass onst double * to
6292 __builtin_ia32_loadupd128_mask.
6293 (_mm_maskz_loadu_pd): Likewise.
6294 (_mm256_mask_storeu_pd): Pass double * to
6295 __builtin_ia32_storeupd256_mask.
6296 (_mm_mask_storeu_pd): Pass double * to
6297 __builtin_ia32_storeupd128_mask.
6298 (_mm256_mask_loadu_ps): Pass const float * to
6299 __builtin_ia32_loadups256_mask.
6300 (_mm256_maskz_loadu_ps): Likewise.
6301 (_mm_mask_loadu_ps): Pass const float * to
6302 __builtin_ia32_loadups128_mask.
6303 (_mm_maskz_loadu_ps): Likewise.
6304 (_mm256_mask_storeu_ps): Pass float * to
6305 __builtin_ia32_storeups256_mask.
6306 (_mm_mask_storeu_ps): ass float * to
6307 __builtin_ia32_storeups128_mask.
6308 (_mm256_mask_loadu_epi64): Pass const long long * to
6309 __builtin_ia32_loaddqudi256_mask.
6310 (_mm256_maskz_loadu_epi64): Likewise.
6311 (_mm_mask_loadu_epi64): Pass const long long * to
6312 __builtin_ia32_loaddqudi128_mask.
6313 (_mm_maskz_loadu_epi64): Likewise.
6314 (_mm256_mask_storeu_epi64): Pass long long * to
6315 __builtin_ia32_storedqudi256_mask.
6316 (_mm_mask_storeu_epi64): Pass long long * to
6317 __builtin_ia32_storedqudi128_mask.
6318 (_mm256_mask_loadu_epi32): Pass const int * to
6319 __builtin_ia32_loaddqusi256_mask.
6320 (_mm256_maskz_loadu_epi32): Likewise.
6321 (_mm_mask_loadu_epi32): Pass const int * to
6322 __builtin_ia32_loaddqusi128_mask.
6323 (_mm_maskz_loadu_epi32): Likewise.
6324 (_mm256_mask_storeu_epi32): Pass int * to
6325 __builtin_ia32_storedqusi256_mask.
6326 (_mm_mask_storeu_epi32): Pass int * to
6327 __builtin_ia32_storedqusi128_mask.
6328 * config/i386/i386-builtin-types.def (PCSHORT): New.
6329 (PINT64): Likewise.
6330 (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
6331 (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
6332 (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
6333 (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
6334 (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
6335 (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
6336 (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
6337 (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
6338 (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
6339 (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
6340 (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
6341 (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
6342 (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
6343 (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
6344 (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
6345 (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
6346 (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
6347 (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
6348 (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
6349 (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
6350 (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
6351 (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
6352 (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
6353 (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
6354 (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
6355 (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
6356 (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
6357 (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
6358 (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
6359 (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
6360 (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
6361 (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
6362 (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
6363 (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
6364 (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
6365 (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
6366 (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
6367 (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
6368 (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
6369 (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
6370 (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
6371 (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
6372 (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
6373 (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
6374 (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
6375 (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
6376 (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
6377 (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
6378 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
6379 use UNSPEC_STOREU.
6380 (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
6381 (ix86_avx256_split_vector_move_misalign): Don't use unaligned
6382 load nor store.
6383 (ix86_expand_vector_move_misalign): Likewise.
6384 (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
6385 to scalar function prototype for unaligned load/store builtins.
6386 (ix86_expand_special_args_builtin): Updated.
6387 * config/i386/sse.md (UNSPEC_LOADU): Removed.
6388 (UNSPEC_STOREU): Likewise.
6389 (VI_ULOADSTORE_BW_AVX512VL): Likewise.
6390 (VI_ULOADSTORE_F_AVX512VL): Likewise.
6391 (ssescalarsize): Handle V4TI, V2TI and V1TI.
6392 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
6393 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
6394 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
6395 (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
6396 (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
6397 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
6398 (sse2_avx_avx512f>_storedqu<mode>): Likewise.
6399 (<avx512>_storedqu<mode>_mask): Likewise.
6400 (*sse4_2_pcmpestr_unaligned): Likewise.
6401 (*sse4_2_pcmpistr_unaligned): Likewise.
6402 (*mov<mode>_internal): Renamed to ...
6403 (mov<mode>_internal): This. Remove check of AVX and IAMCU on
6404 misaligned operand. Replace vmovdqu64 with vmovdqu<ssescalarsize>.
6405 (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
6406 (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
6407
6408 2016-04-19 Richard Biener <rguenther@suse.de>
6409
6410 PR tree-optimization/70171
6411 * tree-ssa-phiprop.c: Include stor-layout.h.
6412 (phiprop_insert_phi): Handle the aggregate copy case.
6413 (propagate_with_phi): Likewise.
6414
6415 2016-04-19 Uros Bizjak <ubizjak@gmail.com>
6416
6417 * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
6418 instead of simplify_gen_subreg (... , 0).
6419 (ix86_delegitimize_address): Ditto.
6420 (ix86_split_divmod): Ditto.
6421 (ix86_split_copysign_const): Ditto.
6422 (ix86_split_copysign_var): Ditto.
6423 (ix86_expand_args_builtin): Ditto.
6424 (ix86_expand_round_builtin): Ditto.
6425 (ix86_expand_special_args_builtin): Ditto.
6426 * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
6427 (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
6428 (udivmodqi4): Ditto.
6429 (absneg splitters): Ditto.
6430 (*jcc_bt<mode>_1): Ditto.
6431
6432 2016-04-19 Richard Biener <rguenther@suse.de>
6433
6434 PR tree-optimization/70724
6435 * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
6436 restoring out from ...
6437 (free_scc_vn): ... here.
6438 * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
6439 * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
6440 tail merging.
6441 (pass_fre::execute): Restore SSA info.
6442
6443 2016-04-19 Richard Biener <rguenther@suse.de>
6444
6445 * gimple-walk.h (struct walk_stmt_info): Add stmt member.
6446 * gimple-walk.c (walk_gimple_op): Initialize it.
6447 (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
6448 * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
6449 remapping SSA names of defs.
6450 (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
6451 adjustment.
6452
6453 2016-04-18 Vladimir Makarov <vmakarov@redhat.com>
6454
6455 PR middle-end/70689
6456 * lra-constraints.c (equiv_substition_p): New.
6457 (process_alt_operands): Use it.
6458 (swap_operands): Swap it.
6459 (curr_insn_transform): Update it.
6460
6461 2016-04-18 Michael Matz <matz@suse.de>
6462
6463 * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
6464 (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
6465 * tree-core.h (tree_type_common.align): Use bit-field.
6466 (tree_type_common.spare): New.
6467 (tree_decl_common.off_align): Make smaller.
6468 (tree_decl_common.align): Use bit-field.
6469
6470 * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
6471 * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
6472 (scan_sharing_clauses): Ditto.
6473 (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
6474 (omp_finish_file): Ditto.
6475 * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
6476 (layout_decl): Ditto.
6477 (relayout_decl): Ditto.
6478 (finalize_record_size): Use SET_TYPE_ALIGN.
6479 (finalize_type_size): Ditto.
6480 (finish_builtin_struct): Ditto.
6481 (layout_type): Ditto.
6482 (initialize_sizetypes): Ditto.
6483 * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
6484 * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
6485 (lookup_field_for_decl): Use SET_DECL_ALIGN.
6486 (get_chain_field): Ditto.
6487 (get_trampoline_type): Ditto.
6488 (get_nl_goto_field): Ditto.
6489 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
6490 SET_DECL_ALIGN.
6491 (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
6492 * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
6493 * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
6494 (build_qualified_type): Use SET_TYPE_ALIGN.
6495 (build_aligned_type, build_range_type_1): Ditto.
6496 (build_atomic_base): Ditto.
6497 (build_common_tree_nodes): Ditto.
6498 * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
6499 (expand_one_stack_var_at): Ditto.
6500 * coverage.c (build_var): Use SET_DECL_ALIGN.
6501 * except.c (init_eh): Ditto.
6502 * function.c (assign_parm_setup_block): Ditto.
6503 * symtab.c (increase_alignment_1): Ditto.
6504 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
6505 * tree-vect-stmts.c (ensure_base_align): Ditto.
6506 * varasm.c (align_variable): Ditto.
6507 (assemble_variable): Ditto.
6508 (build_constant_desc): Ditto.
6509 (output_constant_def_contents): Ditto.
6510
6511 * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
6512 * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
6513 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
6514 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
6515 * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
6516
6517 2016-04-18 H.J. Lu <hongjiu.lu@intel.com>
6518
6519 PR target/70708
6520 * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
6521 replace %vmovsd with "%vmovq".
6522 (vec_concatv2df): Likewise.
6523
6524 2016-04-18 Uros Bizjak <ubizjak@gmail.com>
6525
6526 * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
6527 (*vec_extractv2si_0): Ditto.
6528 * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
6529 (zero_extended_scalar_load_operand splitters): Ditto.
6530 (vec_extract splitters): Ditto.
6531 (*vec_extractv4si_0_zext): Ditto.
6532 (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
6533 and lowpart_subreg.
6534 (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
6535 (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
6536 (*sse4_1_extractps): Use lowpart_subreg.
6537 * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
6538
6539 2016-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6540
6541 * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
6542 gld requirements.
6543 (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
6544 Mention Solaris 11 packaging changes.
6545 Update gas and gld requirements.
6546 Remove reference to pre-Solaris 10 bug.
6547 (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
6548 systems and bugs.
6549 (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
6550 with cc.
6551
6552 2016-04-17 Jan Hubicka <jh@suse.cz>
6553
6554 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
6555 max_loop_iterations_int.
6556
6557 2016-04-18 Richard Biener <rguenther@suse.de>
6558
6559 PR tree-optimization/43434
6560 * tree-ssa-structalias.c (struct vls_data): New.
6561 (visit_loadstore): Handle all pointer-based accesses.
6562 (compute_dependence_clique): Compute a bitmap of restrict tags
6563 assigned bases and pass it to visit_loadstore.
6564
6565 2016-04-18 Matthew Wahab <matthew.wahab@arm.com>
6566
6567 PR target/70711
6568 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
6569 armv8.1-a and armv8.1-a+crc.
6570
6571 2016-04-18 Richard Biener <rguenther@suse.de>
6572
6573 PR tree-optimization/70701
6574 * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
6575 references after translating through a memcpy.
6576
6577 2016-04-18 Richard Biener <rguenther@suse.de>
6578
6579 * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
6580 (compute_antic): ... here. For partial antic use regular
6581 postorder and scrap iteration.
6582 (compute_partial_antic_aux): Remove unused return value.
6583 (init_pre): Do not allocate postorder.
6584 (fini_pre): Do not free postorder.
6585
6586 2016-04-18 Richard Biener <rguenther@suse.de>
6587
6588 PR middle-end/37870
6589 * expmed.c (extract_bit_field_1): Remove broken case
6590 using a wider MODE_INT mode.
6591
6592 2016-04-18 Segher Boessenkool <segher@kernel.crashing.org>
6593
6594 * has-brig.c (lendian16): Don't try to use __builtin_bswap16
6595 unless compiling with at least GCC-4.8.
6596
6597 2016-04-17 Jan Hubicka <jh@suse.cz>
6598
6599 PR bootstrap/70706
6600 * graphite.c (graphite_finalize): Update call to
6601 tree_estimate_probability.
6602 * predict.h (tree_estimate_probability): Update prototype.
6603
6604 2016-04-17 Jan Hubicka <jh@suse.cz>
6605
6606 * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
6607 (tree_estimate_probability): Likewise.
6608 (pass_profile::execute): Update.
6609 (report_predictor_hitrates): New function.
6610 * profile.c (compute_branch_probabilities): Use it.
6611 * predict.h (report_predictor_hitrates): Declare.
6612
6613 2016-04-17 Jan Hubicka <jh@suse.cz>
6614
6615 PR ipa/70018
6616 * cgraph.h (cgraph_node::set_const_flag,
6617 cgraph_node::set_pure_flag): Update prototype to return bool;
6618 update comment.
6619 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
6620 of interposable symbol are interposable, too.
6621 (cgraph_set_const_flag_1): Rename to ...
6622 (set_const_flag_1): ... this one; change to self recursive function
6623 instead of call_for_symbol_thunks_and_aliases. Handle correctly
6624 clearnig the flag in all variants and also virtual thunks of const
6625 functions are pure; track if any change was done.
6626 (cgraph_node::set_const_flag): Update.
6627 (struct set_pure_flag_info): New struct.
6628 (cgraph_set_pure_flag_1): Rename to ...
6629 (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
6630 rather than pointer encoded flags; track if any changes was done;
6631 handle correctly clearning flag and setting flag of aliases already
6632 declared const.
6633 (cgraph_node::set_pure_flag): Update.
6634 (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
6635
6636 2016-04-17 Tom de Vries <tom@codesourcery.com>
6637
6638 PR other/70433
6639 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
6640 backslash in label.
6641
6642 2016-04-17 Tom de Vries <tom@codesourcery.com>
6643
6644 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
6645 '{}<> ' as escape-for-record.
6646
6647 2016-04-17 Tom de Vries <tom@codesourcery.com>
6648
6649 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
6650 structure.
6651
6652 2016-04-17 Tom de Vries <tom@codesourcery.com>
6653
6654 PR other/70185
6655 * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
6656 * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
6657 * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
6658 * passes.c (finish_optimization_passes): Only call
6659 finish_graph_dump_file if dfi->graph_dump_initialized.
6660 (execute_function_dump, pass_init_dump_file): Use
6661 dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
6662
6663 2016-04-17 Tom de Vries <tom@codesourcery.com>
6664
6665 PR tree-optimization/70256
6666 * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
6667 (debug_varmap): New function.
6668
6669 2016-04-17 Tom de Vries <tom@codesourcery.com>
6670
6671 PR other/70183
6672 * passes.c (pass_manager::register_pass): Propagate pflags.
6673
6674 2016-04-17 Tom de Vries <tom@codesourcery.com>
6675
6676 PR other/68875
6677 * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
6678 * passes.c (pass_manager::pass_manager): Declare and init p_start in
6679 INSERT_PASSES_AFTER. Add pass parameter to TERMINATE_PASS_LIST, and
6680 check if it's equal to p_start.
6681 * passes.def: Add arguments to TERMINATE_PASS_LISTs.
6682
6683 2016-04-15 Jan Hubicka <jh@suse.cz>
6684
6685 PR ipa/70018
6686 * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
6687 function does not bind to current def.
6688 * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
6689 handle conservatively calls to functions that does not need to bind
6690 to current def.
6691 (check_call): Update call of worse_state.
6692 (ignore_edge_for_nothrow): Update.
6693 (ignore_edge_for_pure_const): Likewise.
6694 (propagate_pure_const): Update calls to worse_state.
6695 (skip_function_for_local_pure_const): Reformat comments.
6696
6697 2016-04-15 Jan Hubicka <jh@suse.cz>
6698
6699 PR ipa/70018
6700 * cgraph.c (cgraph_node::get_availability): Add REF parameter.
6701 (cgraph_node::function_symbol): Likewise.
6702 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
6703 * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
6704 (symtab_node::ultimate_alias_target): Add REF parameter.
6705 (symtab_node::binds_to_current_def_p): Declare.
6706 (symtab_node;:ultimate_alias_target_1): Add REF parameter.
6707 (cgraph_node::function_symbol): Likewise.
6708 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
6709 (cgraph_node::get_availability): Likewise.
6710 (cgraph_edge::binds_to_current_def_p): New inline function.
6711 (varpool_node::get_availability): Add REF parameter.
6712 (varpool_node::ultimate_alias_target): Likewise.
6713 * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
6714 (symtab_node::binds_to_current_def_p): Likewise.
6715 * varpool.c (varpool_node::get_availability): Likewise.
6716
6717 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
6718
6719 PR target/70662
6720 * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
6721 Fix mode size check.
6722
6723 2016-04-15 Jakub Jelinek <jakub@redhat.com>
6724
6725 * BASE-VER: Set to 7.0.0.
6726
6727 2016-04-15 Alexander Monakov <amonakov@ispras.ru>
6728
6729 * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
6730
6731 2016-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6732
6733 * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
6734 architecture revisions.
6735
6736 2016-04-15 Bernd Schmidt <bschmidt@redhat.com>
6737
6738 * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
6739 * config/i386/i386.c (ix86_using_red_zone): No longer static.
6740 * config/i386/i386.md (stack decrement to push peepholes): Guard
6741 with !x86_using_red_zone ().
6742
6743 2016-04-15 Jakub Jelinek <jakub@redhat.com>
6744
6745 PR c++/70675
6746 * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
6747 to dump_generic_node.
6748 (NIY): Pass also flags to do_niy.
6749
6750 2016-04-15 Thomas Schwinge <thomas@codesourcery.com>
6751
6752 * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
6753 (simd_clone_vector_of_formal_parm_types)
6754 (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
6755 (simd_clone_mangle, simd_clone_create)
6756 (simd_clone_adjust_return_type, create_tmp_simd_array)
6757 (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
6758 (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
6759 (ipa_simd_modify_function_body, simd_clone_linear_addend)
6760 (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
6761 (pass_data_omp_simd_clone, class pass_omp_simd_clone)
6762 (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
6763 * omp-simd-clone.c: ... this new file.
6764 (simd_clone_vector_of_formal_parm_types): Make it static.
6765 * Makefile.in (OBJS): Add omp-simd-clone.o.
6766
6767 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
6768
6769 PR target/70662
6770 * config/i386/sse.md: Use proper memory operand modifiers.
6771
6772
6773 2016-04-15 Richard Biener <rguenther@suse.de>
6774 Alan Modra <amodra@gmail.com>
6775
6776 PR tree-optimization/70130
6777 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
6778 when alignment stays not the same and no not use the realign
6779 scheme then.
6780
6781 2016-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
6782
6783 PR target/70669
6784 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
6785 direct move handlers for KFmode. Change TFmode handlers test from
6786 FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
6787
6788 2016-04-14 Jakub Jelinek <jakub@redhat.com>
6789
6790 PR c++/70594
6791 * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
6792 * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
6793 (inlined_polymorphic_ctor_dtor_block_p): Use it.
6794 * tree-ssa-live.c (remove_unused_scope_block_p): When
6795 in_ctor_dtor_block, avoid discarding not just BLOCKs with
6796 BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
6797 block_ultimate_origin is FUNCTION_DECL.
6798 (remove_unused_locals): If current_function_decl is
6799 polymorphic_ctor_dtor_p, pass initial true to
6800 remove_unused_scope_block_p' is_ctor_dtor_block.
6801
6802 2016-04-14 Martin Sebor <msebor@redhat.com>
6803
6804 PR c++/69517
6805 PR c++/70019
6806 PR c++/70588
6807 * doc/extend.texi (Variable Length): Revert.
6808
6809 2016-04-14 Marek Polacek <polacek@redhat.com>
6810 Jan Hubicka <hubicka@ucw.cz>
6811
6812 PR c++/70029
6813 * tree.c (verify_type): Disable the canonical type of main variant
6814 check.
6815
6816 2016-04-14 Jason Merrill <jason@redhat.com>
6817
6818 * cfgexpand.c, expr.c: Revert previous change.
6819
6820 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
6821
6822 PR middle-end/70643
6823 * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
6824 when building a mem ref for the incoming reduction variable.
6825
6826 2016-04-14 Richard Biener <rguenther@suse.de>
6827
6828 PR tree-optimization/70614
6829 * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
6830 loop if the evolution dropped to chrec_dont_know.
6831 (interpret_condition_phi): Likewise.
6832
6833 2016-04-14 Richard Biener <rguenther@suse.de>
6834
6835 PR tree-optimization/70623
6836 * tree-ssa-pre.c (changed_blocks): Make global ...
6837 (compute_antic): ... local here. Move and fix worklist
6838 handling here. Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
6839 (compute_antic_aux): Add dumping for MAX assumed succs. Remove
6840 worklist handling, dump when ANTIC_IN changed.
6841 (compute_partial_antic_aux): Remove worklist handling.
6842 (init_pre): Do not compute post dominators. Add a comment about
6843 the CFG order chosen.
6844 (fini_pre): Do not free post dominators.
6845
6846 2016-04-13 Martin Sebor <msebor@redhat.com>
6847
6848 PR c++/69517
6849 PR c++/70019
6850 PR c++/70588
6851 * doc/extend.texi (Variable Length): Document C++ specifics.
6852
6853 2016-04-13 Jakub Jelinek <jakub@redhat.com>
6854
6855 PR c++/70641
6856 * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
6857 on all recursive call stmts. Return TODO_cleanup_cfg if any dead
6858 eh edges have been purged.
6859
6860 PR c++/70594
6861 * tree-sra.c (create_access_replacement,
6862 get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
6863 gets fancy name.
6864 * tree-pretty-print.c (dump_fancy_name): New function.
6865 (dump_decl_name, dump_generic_node): Use it.
6866
6867 2016-04-13 Jason Merrill <jason@redhat.com>
6868
6869 * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
6870 * expr.c (expand_expr_real_1): Likewise.
6871
6872 2016-04-13 Ilya Enkovich <ilya.enkovich@intel.com>
6873
6874 * config/i386/i386.md (kunpckhi): Swap operands.
6875 (kunpcksi): Likewise.
6876 (kunpckdi): Likewise.
6877 * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
6878 (vec_pack_trunc_<mode>): Likewise.
6879
6880 2016-04-13 Jakub Jelinek <jakub@redhat.com>
6881
6882 PR debug/70628
6883 * explow.c (convert_memory_address_addr_space_1): Formatting fix.
6884
6885 PR middle-end/70633
6886 * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
6887 gimplification turns some element into non-constant.
6888
6889 PR debug/70628
6890 * rtl.h (convert_memory_address_addr_space_1): New prototype.
6891 * explow.c (convert_memory_address_addr_space_1): No longer static,
6892 add NO_EMIT argument and don't call convert_modes if true, pass
6893 it down recursively, remove break after return.
6894 (convert_memory_address_addr_space): Adjust caller.
6895 * simplify-rtx.c (simplify_unary_operation_1): Call
6896 convert_memory_address_addr_space_1 instead of convert_memory_address,
6897 if it returns NULL, don't simplify.
6898
6899 2016-04-12 Eric Botcazou <ebotcazou@adacore.com>
6900
6901 PR target/70630
6902 * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
6903
6904 2016-04-12 Jakub Jelinek <jakub@redhat.com>
6905
6906 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
6907 Bump the upper SIMDLEN limits, so that if the return type or
6908 characteristic type if the return type is void can be passed in
6909 all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
6910 allowed.
6911
6912 2016-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
6913
6914 PR target/70640
6915 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
6916 Do not use "=" constraint on an input constraint.
6917 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
6918 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
6919 (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
6920 generates (neg (abs ...)) instead of (abs ...).
6921
6922 2016-04-12 Jakub Jelinek <jakub@redhat.com>
6923
6924 PR rtl-optimization/70596
6925 * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
6926 just invalidate LRA data and reset them. Adjust dump wording.
6927
6928 2016-04-12 Martin Liska <mliska@suse.cz>
6929
6930 Revert
6931 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
6932
6933 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
6934 estimates here.
6935 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
6936 max_loop_iterations_int.
6937 (tree_unswitch_outer_loop): Likewise.
6938 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
6939 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
6940
6941 2016-04-12 Tom de Vries <tom@codesourcery.com>
6942
6943 PR tree-optimization/68756
6944 * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
6945 instead of new_name.
6946
6947 2016-04-12 Jakub Jelinek <jakub@redhat.com>
6948
6949 PR tree-optimization/70602
6950 * tree-sra.c (generate_subtree_copies): Don't write anything into
6951 constant pool decls.
6952
6953 * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
6954 regardless whether there are depend clauses or not.
6955
6956 2016-04-11 Michael Meissner <meissner@linux.vnet.ibm.com>
6957
6958 PR target/70381
6959 * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
6960 target attribute and pragma from changing the -mfloat128
6961 and -mfloat128-hardware options.
6962
6963 * doc/extend.texi (Additional Floating Types): Document PowerPC
6964 __float128 restrictions.
6965
6966 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
6967
6968 PR target/70133
6969 * config/aarch64/driver-aarch64.c
6970 (aarch64_get_extension_string_for_isa_flags): New.
6971 (arch_extension): Rename to...
6972 (aarch64_arch_extension): ...This.
6973 (ext_to_feat_string): Rename to...
6974 (aarch64_extensions): ...This.
6975 (aarch64_core_data): Keep track of architecture extension flags.
6976 (cpu_data): Rename to...
6977 (aarch64_cpu_data): ...This.
6978 (aarch64_arch_driver_info): Keep track of architecture extension
6979 flags.
6980 (get_arch_name_from_id): Rename to...
6981 (get_arch_from_id): ...This, change return type.
6982 (host_detect_local_cpu): Update and reformat for renames, handle
6983 extensions through common infrastructure.
6984
6985 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
6986
6987 PR target/70133
6988 * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
6989 track of a canonical flag name.
6990 (all_extensions): Likewise.
6991 (arch_to_arch_name): Also track extension flags enabled by the arch.
6992 (all_architectures): Likewise.
6993 (aarch64_parse_extension): Move to here.
6994 (aarch64_get_extension_string_for_isa_flags): Take a new argument,
6995 rework.
6996 (aarch64_rewrite_selected_cpu): Update for above change.
6997 * config/aarch64/aarch64-option-extensions.def: Rework the way flags
6998 are handled, such that the single explicit value enabled by an
6999 extension is kept seperate from the implicit values it also enables.
7000 * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
7001 to here.
7002 (aarch64_parse_extension): New.
7003 * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
7004 here to config/aarch64/aarch64-protos.h.
7005 (aarch64_parse_extension): Move from here to
7006 common/config/aarch64/aarch64-common.c.
7007 (aarch64_option_print): Update.
7008 (aarch64_declare_function_name): Likewise.
7009 (aarch64_start_file): Likewise.
7010 * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
7011 the canonical flag for extensions.
7012 * config.gcc (aarch64*-*-*): Extend regex for capturing extension
7013 flags.
7014
7015 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
7016
7017 * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
7018 AARCH64_FL_CRC.
7019
7020 2016-04-09 Tom de Vries <tom@codesourcery.com>
7021
7022 PR tree-optimization/68953
7023 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
7024 first to last subscript.
7025
7026 2016-04-09 Jakub Jelinek <jakub@redhat.com>
7027
7028 PR tree-optimization/70586
7029 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
7030 for any calls.
7031
7032 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
7033
7034 PR lto/70289
7035 PR ipa/70348
7036 PR tree-optimization/70373
7037 PR middle-end/70533
7038 PR middle-end/70534
7039 PR middle-end/70535
7040 * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
7041 clauses for acc parallel reductions as necessary. Error on those
7042 that are private.
7043 * omp-low.c (scan_sharing_clauses): Don't install variables which
7044 are used in acc parallel reductions.
7045 (lower_rec_input_clauses): Remove dead code.
7046 (lower_oacc_reductions): Add support for reference reductions.
7047 (lower_reduction_clauses): Remove dead code.
7048 (lower_omp_target): Don't remap variables appearing in acc parallel
7049 reductions.
7050 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
7051
7052 2016-04-08 Jakub Jelinek <jakub@redhat.com>
7053
7054 PR middle-end/70593
7055 * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
7056 with multiple SSA_NAME defs, force the outputs other than first
7057 to be live before calling live_track_process_def on each output.
7058
7059 PR rtl-optimization/70574
7060 * fwprop.c (forward_propagate_and_simplify): Don't add
7061 REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
7062 (try_fwprop_subst): Don't add REG_EQUAL note if there are any
7063 paradoxical subregs within *loc.
7064
7065 2016-04-08 Thomas Schwinge <thomas@codesourcery.com>
7066
7067 * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
7068 -ftree-parallelize-loops={0,1}.
7069 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
7070 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
7071 * config/ia64/hpux.h (LIB_SPEC): Likewise.
7072 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
7073 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
7074
7075 2016-04-08 Maxim Ostapenko <m.ostapenko@samsung.com>
7076
7077 PR sanitizer/70541
7078 * asan.c (instrument_derefs): If we get unknown location, extract it
7079 with EXPR_LOCATION.
7080 (maybe_instrument_call): Instrument gimple_call's arguments if needed.
7081
7082 2016-04-08 Tom de Vries <tom@codesourcery.com>
7083
7084 * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
7085 implicit firstprivate clause.
7086
7087 2016-04-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7088
7089 PR target/70566
7090 * config/arm/thumb2.md (tst + branch-> lsls + branch
7091 peephole below *orsi_not_shiftsi_si): Require that condition
7092 register is dead after the peephole.
7093 (second peephole after the above): Likewise.
7094
7095 2016-04-08 Alan Modra <amodra@gmail.com>
7096
7097 PR target/70117
7098 * builtins.c (fold_builtin_classify): For IBM extended precision,
7099 look at just the high-order double to test for NaN.
7100 (fold_builtin_interclass_mathfn): Similarly for Inf. For isnormal
7101 test just the high double for Inf but both doubles for subnormal
7102 limit.
7103
7104 2016-04-07 Jakub Jelinek <jakub@redhat.com>
7105
7106 * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
7107 * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
7108 node->simdclone->mask_mode != VOIDmode masks.
7109 (simd_clone_adjust_argument_types): Likewise. Move sc var definition
7110 earlier, use it instead of node->simdclone.
7111 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
7112 Set clonei->mask_mode.
7113
7114 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
7115
7116 PR c/70436
7117 * parser.c (cp_parser_iteration_statement): New parameter IF_P.
7118 Pass it through to cp_parser_already_scoped_statement.
7119 (cp_parser_already_scoped_statement): New parameter IF_P. Pass
7120 it through to cp_parser_statement.
7121 (cp_parser_statement): Pass IF_P through to
7122 cp_parser_iteration_statement.
7123 (cp_parser_pragma): Adjust call to
7124 cp_parser_iteration_statement.
7125
7126 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
7127
7128 PR c/70436
7129 * gimplify.c (gimplify_omp_ordered): Add explicit braces to
7130 resolve a future -Wparentheses warning.
7131 * omp-low.c (scan_sharing_clauses): Likewise.
7132 * tree-parloops.c (eliminate_local_variables): Likewise.
7133
7134 2016-04-06 Vladimir Makarov <vmakarov@redhat.com>
7135
7136 PR rtl-optimization/70398
7137 * lra-constraints.c (process_address_1): Check zero scale and code
7138 for reloading with zero scale.
7139
7140 2016-04-06 Uros Bizjak <ubizjak@gmail.com>
7141
7142 * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
7143 (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
7144
7145 2016-04-06 Jakub Jelinek <jakub@redhat.com>
7146
7147 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
7148 Add support for AVX512F clones, include them by default for
7149 exported OpenMP declare simd functions. For AVX2 allow simdlen 32
7150 and use it if charasteric type is 8-bit, for AVX512F allow simdlen
7151 up to 128.
7152
7153 PR middle-end/70550
7154 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
7155 * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
7156 firstprivate clauses.
7157 * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
7158 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
7159 (lower_omp_target): Set TREE_NO_WARNING for
7160 non-addressable possibly uninitialized vars which are copied into
7161 addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
7162
7163 2016-04-05 John David Anglin <danglin@gcc.gnu.org>
7164
7165 * config/pa/predicates.md (integer_store_memory_operand): Accept
7166 REG+D operands with a large offset when reload_in_progress is true.
7167 (floating_point_store_memory_operand): Likewise.
7168
7169 2016-04-05 Jakub Jelinek <jakub@redhat.com>
7170
7171 PR c++/70336
7172 * match.pd (nested int casts): Limit to GIMPLE.
7173
7174 2016-04-05 Jan Hubicka <hubicka@ucw.cz>
7175
7176 PR ipa/66223
7177 * ipa-devirt.c (maybe_record_node): Fix comment; use
7178 SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
7179
7180 2016-04-05 Jakub Jelinek <jakub@redhat.com>
7181
7182 PR rtl-optimization/70542
7183 * ree.c (add_removable_extension): For VECTOR_MODE_P punt
7184 if there are any uses other than insn or debug insns.
7185
7186 2016-04-05 Marc Glisse <marc.glisse@inria.fr>
7187 Jakub Jelinek <jakub@redhat.com>
7188
7189 PR tree-optimization/70509
7190 * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
7191 Shift HOST_WIDE_INT_1U instead of 1.
7192
7193 2016-04-05 Zdenek Sojka <zsojka@seznam.cz>
7194
7195 PR tree-optimization/70509
7196 * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
7197 of the vector base type for index.
7198
7199 2016-04-05 Uros Bizjak <ubizjak@gmail.com>
7200
7201 PR target/70510
7202 * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
7203
7204 2016-04-05 Richard Biener <rguenther@suse.de>
7205
7206 PR tree-optimization/70526
7207 * tree-sra.c (build_ref_for_offset): Use prev_base to
7208 extract the alias pointer type.
7209
7210 2016-04-05 Richard Biener <rguenther@suse.de>
7211
7212 * dse.c (struct store_info): Remove alias_set member.
7213 (struct read_info_type): Likewise.
7214 (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
7215 spill_deleted, clear_alias_set_lookup): Remove.
7216 (get_group_info): Remove dead base == NULL_RTX case.
7217 (dse_step0): Remove initialization of removed variables.
7218 (delete_dead_store_insn): Reomve alias set dumping.
7219 (free_read_records): Remove alias_set handling.
7220 (canon_address): Remove alias_set_out parameter.
7221 (record_store): Remove spill_alias_set, it's always zero.
7222 (check_mem_read_rtx): Likewise.
7223 (dse_step2): Rename from ...
7224 (dse_step2_nospill): ... this. Adjust.
7225 (scan_stores): Rename from ...
7226 (scan_stores_nospill): ... this.
7227 (scan_reads): Rename from ...
7228 (scan_reads_nospill): ... this.
7229 (scan_stores_spill, scan_reads_spill): Remove.
7230 (dse_step3_scan): Remove for_spills argument which is always false.
7231 (dse_step3): Likewise.
7232 (dse_step5): Rename from ...
7233 (dse_step5_nospill): ... this. Remove alias_set handling.
7234 (rest_of_handle_dse): Adjust.
7235
7236 2016-04-05 Jakub Jelinek <jakub@redhat.com>
7237
7238 PR target/70525
7239 * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
7240 Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
7241 V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
7242 (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
7243
7244 2016-04-05 Richard Biener <rguenther@suse.de>
7245
7246 PR middle-end/70499
7247 * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
7248 non-register type temporaries into SSA.
7249
7250 2016-04-04 Jan Hubicka <hubicka@ucw.cz>
7251
7252 PR ipa/66223
7253 * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
7254 calls when sanitizing.
7255 (possible_polymorphic_call_target_p): Fix formatting.
7256
7257 2016-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7258 Jakub Jelinek <jakub@redhat.com>
7259
7260 PR middle-end/70457
7261 * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
7262 to ensure a call statement is compatible with a built-in's
7263 prototype.
7264 * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
7265 Likewise.
7266
7267 2016-04-04 Richard Biener <rguenther@suse.de>
7268
7269 PR rtl-optimization/70484
7270 * rtl.h (canon_output_dependence): Declare.
7271 * alias.c (canon_output_dependence): New function.
7272 * dse.c (record_store): Use canon_output_dependence rather
7273 than canon_true_dependence.
7274
7275 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
7276
7277 PR ipa/68881
7278 * cgraph.h (symtab_node::copy_visibility_from): New function.
7279 * symtab.c (symtab_node::copy_visibility_from): New function.
7280 * ipa-visibility.c (optimize_weakref): New function.
7281 (function_and_variable_visibility): Use it.
7282
7283 2016-04-04 Martin Liska <mliska@suse.cz>
7284
7285 PR hsa/70402
7286 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
7287 value that is really in range handled by SBR instruction.
7288 * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
7289 * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
7290 * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
7291
7292 2016-04-03 Oleg Endo <olegendo@gcc.gnu.org>
7293
7294 PR target/70416
7295 PR target/67391
7296 * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
7297 set, but not for SP_REG operands.
7298
7299 2016-04-02 Martin Sebor <msebor@redhat.com>
7300
7301 PR c++/67376
7302 * fold-const.c (maybe_nonzero_address): New function.
7303 (fold_comparison): Call it. Fold equality and relational
7304 expressions involving null pointers.
7305 (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
7306
7307 2016-03-31 Evandro Menezes <e.menezes@samsung.com>
7308
7309 Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
7310 the "Y" constraint (scalar FP 0.0 immediate).
7311
7312 * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
7313 Add the "const_double" to the list of operand constraints.
7314
7315 2016-04-01 Jakub Jelinek <jakub@redhat.com>
7316
7317 PR rtl-optimization/70467
7318 * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
7319 If low word of the last operand is 0, just emit addition/subtraction
7320 for the high word.
7321
7322 2016-04-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7323
7324 PR target/70404
7325 * config/s390/s390.c (s390_expand_insv): Check for everything
7326 constant instead of just VOIDmode stuff.
7327
7328 2016-04-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7329
7330 PR target/70496
7331 * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
7332
7333 2016-04-01 Nathan Sidwell <nathan@acm.org>
7334
7335 * tree.def (TRY_CATCH_EXPR): Correct documentation.
7336
7337 2016-03-31 Vladimir Makarov <vmakarov@redhat.com>
7338
7339 PR rtl-optimization/70461
7340 * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
7341 is necessary.
7342
7343 2016-03-31 Martin Liska <mliska@suse.cz>
7344
7345 PR hsa/70399
7346 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
7347 a tree value or an immediate integer value to a buffer
7348 that is eventually copied to a BRIG section.
7349 (emit_immediate_operand): Call the function here.
7350 * hsa-dump.c (dump_hsa_immed): Remove checking assert.
7351 * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
7352 of class' fields that are removed.
7353 (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
7354 * hsa.h (class hsa_op_immed): Remove m_brig_repr and
7355 m_brig_repr_size fields.
7356
7357 2016-03-31 Martin Liska <mliska@suse.cz>
7358
7359 PR hsa/70391
7360 * hsa-gen.c (hsa_function_representation::update_dominance): New
7361 function.
7362 (convert_addr_to_flat_segment): Likewise.
7363 (gen_hsa_memory_set): New alignment argument.
7364 (gen_hsa_ctor_assignment): Likewise.
7365 (gen_hsa_insns_for_single_assignment): Provide alignment
7366 to gen_hsa_ctor_assignment.
7367 (gen_hsa_insns_for_direct_call): Add new argument.
7368 (expand_lhs_of_string_op): New function.
7369 (expand_string_operation_builtin): Likewise.
7370 (expand_memory_copy): New function.
7371 (expand_memory_set): New function.
7372 (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
7373 (convert_switch_statements): Change signature.
7374 (generate_hsa): Use a return value of the function.
7375 (pass_gen_hsail::execute): Do not call
7376 convert_switch_statements here.
7377 * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
7378 * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
7379 (hsa_function_representation::update_dominance): New function.
7380
7381 2016-03-31 Martin Liska <mliska@suse.cz>
7382
7383 PR hsa/70391
7384 * hsa-brig.c (emit_directive_variable): Emit alignment
7385 according to hsa_symbol::m_align.
7386 * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
7387 (dump_hsa_symbol): Dump alignment of HSA symbols.
7388 * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
7389 (gen_hsa_addr_with_align): New function.
7390 (hsa_bitmemref_alignment): Use newly added function.
7391 (gen_hsa_insns_for_load): Likewise.
7392 (gen_hsa_insns_for_store): Likewise.
7393 (gen_hsa_memory_copy): New argument added.
7394 (gen_hsa_insns_for_single_assignment): Respect
7395 alignment for assignments processed via gen_hsa_memory_copy.
7396 (gen_hsa_insns_for_direct_call): Likewise.
7397 (gen_hsa_insns_for_return): Likewise.
7398 (gen_function_def_parameters): Set default alignment.
7399 * hsa.c (hsa_object_alignment): New function.
7400 (hsa_byte_alignment): Pasted function.
7401 * hsa.h (hsa_symbol::m_align): New field.
7402
7403 2016-03-31 Bin Cheng <bin.cheng@arm.com>
7404
7405 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
7406 scratch field for goto case.
7407
7408 2016-03-31 James Greenhalgh <james.greenhalgh@arm.com>
7409
7410 * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
7411
7412 2016-03-31 Ilya Enkovich <enkovich.gnu@gmail.com>
7413
7414 PR target/70442
7415 * config/i386/i386.c (scalar_chain::convert_op): Fix description.
7416 (scalar_chain::convert_insn): Call convert_op for reg
7417 moves to handle undefined registers.
7418
7419 2016-03-31 Nathan Sidwell <nathan@acm.org>
7420
7421 PR c++/70393
7422 * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
7423 Assert we don't want to move backwards.
7424
7425 2016-03-31 Kirill Yukhin <kirill.yukhin@intel.com>
7426
7427 PR target/70453
7428 * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
7429
7430 2016-03-31 Jakub Jelinek <jakub@redhat.com>
7431
7432 PR rtl-optimization/70460
7433 * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
7434 with operand from REG_LABEL_OPERAND, instead substitute
7435 SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
7436 Don't do anything for REG_NON_LOCAL_GOTO jumps.
7437
7438 2016-03-31 Martin Liska <mliska@suse.cz>
7439
7440 * passes.c (execute_one_pass): Do not call
7441 todo_after for a discarded function.
7442
7443 2016-03-31 Bin Cheng <bin.cheng@arm.com>
7444
7445 * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
7446 (no_cost, infinite_cost): Initialize the new field.
7447 (get_computation_cost_at): Record setup cost.
7448 (determine_use_iv_cost_address): Skip cost computation for sub
7449 uses if we can estimate it without losing accuracy.
7450
7451 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
7452
7453 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
7454 estimates here.
7455 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
7456 max_loop_iterations_int.
7457 (tree_unswitch_outer_loop): Likewise.
7458 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
7459 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
7460
7461 2016-03-30 Richard Biener <rguenther@suse.de>
7462
7463 PR middle-end/70450
7464 * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
7465
7466 2016-03-30 Jakub Jelinek <jakub@redhat.com>
7467
7468 PR target/70421
7469 * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
7470 in gen_blendm expander.
7471
7472 2016-03-30 Nick Clifton <nickc@redhat.com>
7473
7474 PR target/62254
7475 * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
7476 case where we are already provided with an SImode SUBREG.
7477
7478 2016-03-30 H.J. Lu <hongjiu.lu@intel.com>
7479
7480 PR target/70439
7481 * config/i386/i386.c (ix86_expand_epilogue): Properly check
7482 conflict between DRAP register and __builtin_eh_return.
7483
7484 2016-03-30 Michael Matz <matz@suse.de>
7485 Richard Biener <rguenther@suse.de>
7486
7487 PR ipa/12392
7488 * ipa-polymorphic-call.c (struct type_change_info): Change
7489 speculative to an unsigned allowing to limit the work we do.
7490 (csftc_abort_walking_p): New inline function..
7491 (check_stmt_for_type_change): Limit the number of may-defs
7492 skipped for speculative devirtualization to
7493 max-speculative-devirt-maydefs.
7494 * params.def (max-speculative-devirt-maydefs): New param.
7495 * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
7496
7497 2016-03-30 Mike Stump <mrs@gcc.gnu.org>
7498
7499 PR target/63890
7500 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
7501 and TARGET_MACHO.
7502
7503 2016-03-30 Patrick Palka <ppalka@gcc.gnu.org>
7504
7505 PR tree-optimization/59124
7506 * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
7507 where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
7508
7509 2016-03-29 Jeff Law <law@redhat.com>
7510
7511 * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
7512
7513 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
7514
7515 * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
7516 to HOST_WIDE_INT.
7517
7518 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
7519
7520 * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
7521 * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
7522 gcrt0.o if linking dynamically.
7523
7524 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
7525
7526 PR ipa/70283
7527 * ipa-devirt.c (methods_equal_p): New function.
7528 (compare_virtual_tables): Use it.
7529 * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
7530 * cgraphclones.c (clone_function_name_1): Use
7531 symbol_table::symbol_suffix_separator.
7532 * coverage.c (build_var): Likewise.
7533 * symtab.c (symbol_table::symbol_suffix_separator): New.
7534
7535 2016-03-29 Jakub Jelinek <jakub@redhat.com>
7536
7537 PR rtl-optimization/70429
7538 * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
7539 (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
7540 mode != result_mode.
7541
7542 PR c++/70353
7543 * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
7544
7545 PR tree-optimization/70405
7546 * ssa-iterators.h (num_imm_uses): Add missing braces.
7547
7548 2016-03-29 Vladimir Makarov <vmakarov@redhat.com>
7549
7550 PR rtl-optimization/68695
7551 * ira-color.c (allocno_copy_cost_saving): New.
7552 (improve_allocation): Use it.
7553
7554 2016-03-29 Richard Henderson <rth@redhat.com>
7555
7556 PR middle-end/70355
7557 * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
7558
7559 2016-03-29 Richard Biener <rguenther@suse.de>
7560
7561 PR middle-end/70424
7562 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
7563 use alignment returned by get_pointer_alignment_1 if it is
7564 bigger than BITS_PER_UNIT.
7565 * builtins.c (get_pointer_alignment_1): Do not return true
7566 for alignment extracted from SSA info.
7567
7568 2016-03-28 James Bowman <james.bowman@ftdichip.com>
7569
7570 * config/ft32/ft32.opt (mnodiv): New.
7571 * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
7572 * doc/invoke.texi (FT32 Options -mnodiv): New.
7573
7574 2016-03-28 Kirill Yukhin <kirill.yukhin@intel.com>
7575
7576 PR target/70406
7577 * config/i386/i386.md (define_split, andn): Fix modes.
7578
7579 2016-03-26 Richard Biener <rguenther@suse.de>
7580 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7581
7582 PR ipa/70366
7583 * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
7584 instead of
7585 TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
7586 as 2nd argument to cl_optimization_restore().
7587
7588 2016-03-25 Richard Henderson <rth@redhat.com>
7589
7590 PR target/70120
7591 * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
7592 * config/aarch64/aarch64-protos.h: Declare it.
7593 * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
7594
7595 2016-03-25 Alan Modra <amodra@gmail.com>
7596
7597 PR target/70052
7598 * config/rs6000/constraints.md (j): Simplify.
7599 * config/rs6000/predicates.md (easy_fp_constant): Exclude
7600 decimal float 0.D.
7601 * config/rs6000/rs6000.md (zero_fp): New mode_attr.
7602 (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
7603 mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
7604 in all constraint alternatives.
7605 (movtd_64bit_nodm): Delete "j" constraint alternative.
7606
7607 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
7608
7609 * tree-ssa-propagate.c: Enhance docs for
7610 SSA_PROP_NOT_INTERESTING.
7611
7612 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
7613
7614 * doc/extend.texi: Fix typo in documentation to pure attribute.
7615
7616 2016-03-24 John David Anglin <danglin@gcc.gnu.org>
7617
7618 PR target/70319
7619 * config/pa/pa.md (bswapdi2): Use a scratch register.
7620
7621 2016-03-24 Richard Henderson <rth@redhat.com>
7622
7623 PR middle-end/69845
7624 * fold-const.c (extract_muldiv_1): Correct test for multiplication
7625 overflow.
7626
7627 2016-03-24 Uros Bizjak <ubizjak@gmail.com>
7628
7629 * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
7630 using ix86_expand_binary_operator instead of gen_andsi3.
7631
7632 2016-03-24 Richard Biener <rguenther@suse.de>
7633
7634 PR tree-optimization/70396
7635 * tree-vect-stmts.c (vectorizable_comparison): Use
7636 get_vectype_for_scalar_type.
7637
7638 2016-03-24 Richard Biener <rguenther@suse.de>
7639
7640 PR middle-end/70370
7641 * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
7642 with register bases.
7643
7644 2016-03-24 Richard Biener <rguenther@suse.de>
7645
7646 PR tree-optimization/70372
7647 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
7648 build_all_ones_cst to also handle vector types correctly.
7649
7650 2016-03-23 Michael Meissner <meissner@linux.vnet.ibm.com>
7651
7652 PR target/70381
7653 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
7654 -mfloat128 here.
7655
7656 2016-03-23 Marek Polacek <polacek@redhat.com>
7657
7658 PR c++/69884
7659 * doc/invoke.texi: Document -Wignored-attributes.
7660
7661 2016-03-23 Bin Cheng <bin.cheng@arm.com>
7662
7663 PR tree-optimization/69042
7664 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
7665 parameter from 30 to 40.
7666
7667 2016-03-23 Bin Cheng <bin.cheng@arm.com>
7668
7669 PR tree-optimization/69042
7670 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
7671 for use with constant offset stripped in base.
7672
7673 2016-03-23 Richard Biener <rguenther@suse.de>
7674
7675 PR middle-end/70251
7676 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
7677 mode compatibility check.
7678 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
7679
7680 2016-03-23 Jeff Law <law@redhat.com>
7681
7682 PR tree-optimization/64058
7683 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
7684 CONFLICT_COUNT.
7685 (struct ssa_conflicts): Move up earlier in the file.
7686 (conflicts_, var_map_): New static variables.
7687 (initialize_conflict_count): New function to initialize the
7688 CONFLICT_COUNT field for each conflict pair.
7689 (compare_pairs): Lazily initialize the conflict count and use it
7690 as the first tie-breaker.
7691 (sort_coalesce_list): Add new arguments conflicts, map. Initialize
7692 and wipe conflicts_ and map_ around the call to qsort. Remove
7693 special case for 2 coalesce pairs.
7694 * bitmap.c (bitmap_count_unique_bits): New function.
7695 (bitmap_count_bits_in_word): New function, extracted from
7696 bitmap_count_bits.
7697 (bitmap_count_bits): Use bitmap_count_bits_in_word.
7698 * bitmap.h (bitmap_count_unique_bits): Declare it.
7699
7700 2016-03-23 Ilya Enkovich <enkovich.gnu@gmail.com>
7701
7702 PR target/69917
7703 * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
7704 transparent alias chain for decl assembler name.
7705 * config/sol2.c (solaris_assemble_visibility): Likewise.
7706
7707 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7708
7709 * config/arm/arm1020e.md (1020call_op): Reduce reservation
7710 duration.
7711 (v10_fdivs): Likewise.
7712 (v10_fdivd): Likewise.
7713
7714 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7715
7716 PR driver/70132
7717 * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
7718 to not call fclose twice on file.
7719
7720 2016-03-23 Jakub Jelinek <jakub@redhat.com>
7721
7722 PR tree-optimization/70354
7723 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
7724 oprnd0 is wider than oprnd1 and there is a cast from the wider
7725 type to oprnd1, mask it with the mask of the narrower type.
7726
7727 PR target/70321
7728 * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
7729 Optimize TARGET_STV splitters, if high or low word of last argument
7730 is 0 or -1.
7731
7732 2016-03-22 Jeff Law <law@redhat.com>
7733
7734 PR target/70232
7735 tree-ssa-threadbackward.c
7736 (fsm_find_control_statement_thread_paths): Correctly distinguish
7737 between old style jump threads vs FSM jump threads.
7738
7739 2016-03-22 Ilya Enkovich <enkovich.gnu@gmail.com>
7740
7741 PR target/70302
7742 * config/i386/i386.c (scalar_chain::convert_op): Support
7743 uninitialized register usage case.
7744
7745 2016-03-22 Richard Biener <rguenther@suse.de>
7746
7747 PR middle-end/70251
7748 * genmatch.c (gen_transform): Adjust last parameter to a three-state
7749 int...
7750 (capture::gen_transform): ... to change behavior when substituting
7751 a condition into cond or not-cond expr context.
7752 (dt_simplify::gen_1): Adjust.
7753 * gimple-match-head.c: Include gimplify.h for unshare_expr.
7754 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
7755 last change and instead change to
7756 A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
7757 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
7758
7759 2016-03-22 Anthony Green <green@moxielogic.com>
7760
7761 * config/moxie/moxiebox.h (CC1_SPEC): Define. Fix endianness
7762 issue for moxiebox targets.
7763 (CC1PLUS_SPEC): Ditto.
7764
7765 2016-03-22 Richard Biener <rguenther@suse.de>
7766
7767 PR middle-end/70333
7768 * fold-const.c (extract_muldiv_1): Properly perform multiplication
7769 in the wide type.
7770
7771 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
7772
7773 * config/i386/i386.c (def_builtin): Remove duplicated functionality.
7774
7775 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
7776
7777 PR target/70325
7778 * config/i386/i386.c (def_builtin): Handle
7779 OPTION_MASK_ISA_AVX512VL to be and-ed with other
7780 bits.
7781 (const struct builtin_description bdesc_special_args[]):
7782 Remove duplicate ISA bits.
7783
7784 2016-03-22 Jakub Jelinek <jakub@redhat.com>
7785
7786 PR target/70329
7787 * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
7788 d.perm[i] for i >= d.nelt. If not full_interleave, compute d.perm[i]
7789 in a way that works also for AVX512BW.
7790
7791 PR target/70300
7792 * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
7793 instead of source if operands[1] is xmm16 and above and
7794 !TARGET_AVX512VL. Use avx512f_vec_dupv16sf_1 instead of
7795 vec_interleave_lowv4sf if we need to unpack xmm16 and above.
7796
7797 PR c++/70295
7798 * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
7799 on assign if (*from_p) is a comparison, set it to
7800 TREE_NO_WARNING (*from_p).
7801
7802 2016-03-21 Jakub Jelinek <jakub@redhat.com>
7803
7804 PR middle-end/70326
7805 * lra.c (restore_scratches): Ignore deleted insns.
7806
7807 2016-03-21 Marc Glisse <marc.glisse@inria.fr>
7808 Jakub Jelinek <jakub@redhat.com>
7809
7810 PR tree-optimization/70317
7811 * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
7812 to HONOR_NANS.
7813
7814 2016-03-21 Uros Bizjak <ubizjak@gmail.com>
7815
7816 PR target/70327
7817 * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
7818 of ix86_expand_move.
7819 (movoi): Ditto.
7820 (movti): Use general_operand for operand 1 predicate.
7821
7822 2016-03-21 Martin Liska <mliska@suse.cz>
7823
7824 * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
7825 insns.
7826 (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
7827
7828 2016-03-21 Martin Liska <mliska@suse.cz>
7829
7830 PR ipa/70306
7831 * ipa-icf.c (sem_function::parse): Skip static
7832 constructors and destructors.
7833
7834 2016-03-21 Jakub Jelinek <jakub@redhat.com>
7835
7836 PR target/70296
7837 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
7838 function-like macro, peek following token(s) if it is followed
7839 by CPP_OPEN_PAREN token with optional padding in between, and
7840 if not, don't treat it like a macro.
7841
7842 2016-03-21 Thomas Schwinge <thomas@codesourcery.com>
7843 Alexander Monakov <amonakov@ispras.ru>
7844
7845 * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
7846 for the stabs debug format.
7847
7848 2016-03-21 Richard Biener <rguenther@suse.de>
7849
7850 PR tree-optimization/70310
7851 * tree-vect-generic.c (expand_vector_condition): Fold the built
7852 condition.
7853
7854 2016-03-21 Kirill Yukhin <kirill.yukhin@intel.com>
7855
7856 PR target/70293
7857 * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
7858 Block third alternative for AVX-512VL target,
7859
7860 2016-03-21 Martin Liska <mliska@suse.cz>
7861
7862 PR hsa/70234
7863 * hsa-brig.c (emit_function_directives): Mark unemitted
7864 global variables for emission.
7865 * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
7866 (get_symbol_for_decl): Likewise.
7867 * hsa.h (struct hsa_symbol): New flag.
7868
7869 2016-03-21 Richard Biener <rguenther@suse.de>
7870
7871 PR tree-optimization/70288
7872 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
7873 we do not estimate unsimplified all-constant conditionals or
7874 switches as optimized away.
7875
7876 2016-03-21 Andrey Belevantsev <abel@ispras.ru>
7877
7878 PR rtl-optimization/69102
7879 * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
7880 when we have a readonly dependency context.
7881
7882 2016-03-18 Jeff Law <law@redhat.com>
7883
7884 PR rtl-optimization/70263
7885 * ira.c (memref_used_between_p): Assert we found END in the insn chain.
7886 (update_equiv_regs): When trying to move a store to after the insn
7887 that sets the source of the store, make sure the store occurs after
7888 the insn that sets the source of the store. When successful note
7889 the REG_EQUIV note created in the dump file.
7890
7891 2016-03-16 David Wohlferd <dw@LimeGreenSocks.com>
7892 Bernd Schmidt <bschmidt@redhat.com>
7893
7894 * doc/extend.texi: Document more potential problems with basic asms.
7895
7896 2016-03-18 Bernd Schmidt <bschmidt@redhat.com>
7897
7898 PR rtl-optimization/70278
7899 * lra-constraints.c (split_reg): Handle the case where biggest_mode is
7900 VOIDmode.
7901
7902 2016-03-18 Jason Merrill <jason@redhat.com>
7903
7904 * calls.c (load_register_parameters): Fix zero size sibcall logic.
7905
7906 2016-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
7907
7908 * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
7909 values to 128b regs.
7910
7911 2016-03-18 Ilya Enkovich <enkovich.gnu@gmail.com>
7912
7913 PR tree-optimization/70252
7914 * tree-vect-stmts.c (supportable_widening_operation): Check resulting
7915 boolean vector has a proper number of elements.
7916 (supportable_narrowing_operation): Likewise.
7917
7918 2016-03-18 Tom de Vries <tom@codesourcery.com>
7919
7920 PR ipa/70269
7921 * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
7922
7923 2016-03-18 Jakub Jelinek <jakub@redhat.com>
7924
7925 * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
7926 instead of replace_rtx for DEBUG_INSNs.
7927
7928 2016-03-18 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
7929
7930 * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
7931 load type reservations.
7932
7933 2016-03-17 John David Anglin <danglin@gcc.gnu.org>
7934
7935 PR target/70188
7936 * config/pa/constraints.md: Revert 2015-02-13 change. Use
7937 define_constraint for "Q" and "T" constraints.
7938
7939 2016-03-17 Evandro Menezes <e.menezes@samsung.com>
7940
7941 Tweak the pipeline model for Exynos M1
7942
7943 * config/aarch64/aarch64.c (exynosm1_tunings): Enable weak prefetching
7944 model.
7945
7946 2016-03-17 David Malcolm <dmalcolm@redhat.com>
7947
7948 PR c/70264
7949 * diagnostic-show-locus.c (compatible_locations_p): Handle the case
7950 where one or both locations aren't within a line_map.
7951
7952 2016-03-17 H.J. Lu <hongjiu.lu@intel.com>
7953
7954 PR driver/70192
7955 * opts.c (finish_options): Don't set flag_pie to the default if
7956 -fpic, -fPIC, -fno-pic or -fno-PIC is used. Set flag_pic to 0
7957 if it is -1.
7958
7959 2016-03-17 Joern Rennecke <joern.rennecke@embecosm.com>
7960
7961 * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
7962 true as ALL_REGS argument to replace_rtx.
7963
7964 2016-03-17 Richard Biener <rguenther@suse.de>
7965
7966 PR debug/70271
7967 * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
7968 last.
7969
7970 2016-03-17 Jakub Jelinek <jakub@redhat.com>
7971
7972 PR target/70245
7973 * rtl.h (replace_rtx): Add ALL_REGS argument.
7974 * rtlanal.c (replace_rtx): Likewise. If true, use REGNO
7975 equality and assert mode is the same, instead of just rtx pointer
7976 equality.
7977 * config/i386/i386.md (mov + arithmetics with load peephole): Pass
7978 true as ALL_REGS argument to replace_rtx.
7979
7980 2016-03-17 Ilya Enkovich <enkovich.gnu@gmail.com>
7981
7982 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
7983 for boolean vector with vector mode only.
7984 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
7985
7986 2016-03-17 Nick Clifton <nickc@redhat.com>
7987
7988 PR target/70162
7989 * config/rx/rx.c (rx_print_integer): Print negative constants in
7990 decimal.
7991
7992 2016-03-17 Jakub Jelinek <jakub@redhat.com>
7993
7994 PR target/70261
7995 * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
7996
7997 2016-03-16 Richard Henderson <rth@redhat.com>
7998 Richard Biener <rguenth@suse.de>
7999
8000 PR middle-end/70240
8001 PR middle-end/68215
8002 PR tree-opt/68714
8003 * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
8004 first operand as is_gimple_condexpr.
8005
8006 PR middle-end/70240
8007 PR middle-end/68215
8008 Revert r231575
8009 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
8010 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
8011 Do not gimplify the result.
8012 (do_unop): Adjust call to tree_vec_extract.
8013 (do_binop): Likewise.
8014 (do_compare): Likewise.
8015 (do_plus_minus): Likewise.
8016 (do_negate): Likewise.
8017 (expand_vector_condition): Likewise.
8018 (do_cond): Likewise.
8019
8020 2016-03-16 Richard Henderson <rth@redhat.com>
8021
8022 PR target/70048
8023 * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
8024 (aarch64_classify_address): Use it.
8025 (aarch64_legitimize_address): Force all subexpressions of PLUS
8026 into registers. Simplify as (sfp+const)+reg or (reg+reg)+const.
8027
8028 2016-03-16 Jakub Jelinek <jakub@redhat.com>
8029 Richard Biener <rguenth@suse.de>
8030
8031 PR target/70245
8032 * rtlanal.c (replace_rtx): For REG, if from is a REG,
8033 return to even if only REGNO is equal, and assert
8034 mode is the same.
8035
8036 2016-03-11 Jeff Law <law@redhat.com>
8037
8038 PR rtl-optimization/70224
8039 * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
8040
8041 2016-03-16 Richard Henderson <rth@redhat.com>
8042
8043 PR middle-end/70199
8044 * function.h (struct function): Add has_forced_label_in_static.
8045 * gimplify.c (force_labels_r): Set it.
8046 * lto-streamer-in.c (input_struct_function_base): Read it.
8047 * lto-streamer-out.c (output_struct_function_base): Write it.
8048 * tree-inline.c (has_label_address_in_static_1): Remove.
8049 (copy_forbidden): Remove fndecl parameter; test
8050 has_forced_label_in_static.
8051 (inline_forbidden_p): Update call to copy_forbidden.
8052 (tree_versionable_function_p): Likewise.
8053 * ipa-chkp.c (chkp_instrumentable_p): Likewise.
8054 (chkp_versioning): Likewise.
8055 * tree-inline.h (copy_forbidden): Update decl.
8056
8057 2016-03-16 Marek Polacek <polacek@redhat.com>
8058
8059 PR c/70093
8060 * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
8061 function being thunked if the result type doesn't have fixed size.
8062 * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
8063 doesn't have fixed size.
8064
8065 2016-03-16 Bin Cheng <bin.cheng@arm.com>
8066
8067 * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
8068 reporting malformed loop nest.
8069
8070 2016-03-16 Tom de Vries <tom@codesourcery.com>
8071
8072 PR lto/70187
8073 * ipa-devirt.c (possible_polymorphic_call_targets): Move
8074 nodes.length () == 1 test to before first nodes[0] access.
8075
8076 2016-03-16 Tom de Vries <tom@codesourcery.com>
8077
8078 PR tree-optimization/68715
8079 * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
8080 single_pred_p test.
8081
8082 2016-03-16 Tom de Vries <tom@codesourcery.com>
8083
8084 PR tree-optimization/68809
8085 * graphite-scop-detection.c (same_close_phi_node): Test if result types
8086 are the same.
8087
8088 2016-03-16 Carlos O'Donell <carlos@redhat.com>
8089 Sandra Loosemore <sandra@codesourcery.com>
8090
8091 * doc/extend.texi (Common Function Attributes): Describe ifunc impact
8092 on leaf attribute. Mention ELF interposition problems.
8093
8094 2016-03-16 Alan Modra <amodra@gmail.com>
8095
8096 PR rtl-optimization/69195
8097 PR rtl-optimization/47992
8098 * ira.c (indirect_jump_optimize): Ignore artificial defs.
8099 Add comments.
8100
8101 2016-03-15 Eric Botcazou <ebotcazou@adacore.com>
8102
8103 PR bootstrap/69513
8104 * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
8105
8106 2016-03-15 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8107
8108 * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
8109
8110 2016-03-15 Jakub Jelinek <jakub@redhat.com>
8111
8112 PR rtl-optimization/70222
8113 * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
8114 optimization if mode is different from result_mode, queue up masking
8115 of the result in outer_op. Formatting fix.
8116
8117 PR middle-end/70239
8118 * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
8119 of safe_grow.
8120
8121 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
8122
8123 PR rtl-optimization/69032
8124 * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
8125 looping backwards over basic block insns.
8126
8127 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
8128
8129 PR target/66660
8130 * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
8131 to non-speculative when propagating trap bits.
8132
8133 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
8134
8135 PR rtl-optimization/63384
8136 * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
8137 DEBUG_INSN_P insns.
8138
8139 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
8140
8141 PR target/64411
8142 * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
8143 factored out from ...
8144 (sched_analyze_insn): ... here.
8145 * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
8146 * sel-sched-ir.c (setup_id_implicit_regs): New function, use
8147 get_implicit_reg_pending_clobbers in it.
8148 (setup_id_reg_sets): Use setup_id_implicit_regs.
8149 (deps_init_id): Ditto.
8150
8151 2016-03-15 Tom de Vries <tom@codesourcery.com>
8152
8153 PR ipa/70161
8154 * cgraph.c (cgraph_node::get_body): Save, reset and restore
8155 dump_file_name.
8156 * passes.c (execute_one_ipa_transform_pass): Add missing argument to
8157 execute_function_dump.
8158 (execute_one_pass): Don't dump function if it will be dumped after ipa
8159 transform.
8160
8161 2016-03-15 Segher Boessenkool <segher@kernel.crashing.org>
8162
8163 * genrecog.c (match_pattern_2): If pred is NULL don't call
8164 safe_predicate_mode on it.
8165
8166 2016-03-14 Jakub Jelinek <jakub@redhat.com>
8167
8168 PR middle-end/70219
8169 * lra-constraints.c (delete_move_and_clobber): Change assertion
8170 to also allow dregno == 0.
8171
8172 2016-03-14 Richard Henderson <rth@redhat.com>
8173
8174 PR tree-opt/68714
8175 * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
8176 (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
8177 (reassociate_bb): Use optimize_vec_cond_expr; avoid
8178 optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
8179 on vectors.
8180
8181 2016-03-14 Bernd Schmidt <bschmidt@redhat.com>
8182
8183 PR target/70083
8184 * lra-lives.c (process_bb_lives): Also update biggest mode for hard
8185 regs.
8186 (lra_create_live_ranges_1): initialize hard register biggest_mode to
8187 VOIDmode.
8188 * lra-constraints.c (split_reg): For hard regs, try to find the
8189 biggest single-register mode used in the function.
8190
8191 2016-03-14 Richard Biener <rguenther@suse.de>
8192
8193 PR tree-optimization/56365
8194 * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
8195 constants to compare against.
8196
8197 2016-03-14 Segher Boessenkool <segher@kernel.crashing.org>
8198
8199 PR target/70098
8200 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
8201 *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
8202 (define_split for the GPR case): Use int_reg_operand instead of
8203 gpc_reg_operand for the output.
8204
8205 2016-03-14 Tom de Vries <tom@codesourcery.com>
8206
8207 PR tree-optimization/70045
8208 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
8209 create_empty_if_region_on_edge argument.
8210
8211 2016-03-13 Eric Botcazou <ebotcazou@adacore.com>
8212
8213 * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
8214 (STACK_CHECK_PROTECT): Likewise.
8215 * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
8216 (STACK_CHECK_PROTECT): Likewise.
8217 * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
8218 (STACK_CHECK_PROTECT): Likewise.
8219 * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
8220 * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
8221 (STACK_CHECK_PROTECT): Likewise.
8222
8223 2016-03-12 Andrey Belevantsev <abel@ispras.ru>
8224
8225 PR rtl-optimization/69307
8226 * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
8227 registers in modes that span more than one register.
8228
8229 2016-03-12 Vladimir Makarov <vmakarov@redhat.com>
8230
8231 PR target/69614
8232 * lra-constraints.c (delete_move_and_clobber): New.
8233 (remove_inheritance_pseudos): Use it.
8234
8235 2016-03-12 Eric Botcazou <ebotcazou@adacore.com>
8236
8237 PR ada/70017
8238 * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
8239 the libcall is LCT_THROW.
8240 * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
8241 for the checking routine.
8242
8243 2016-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
8244
8245 PR target/70131
8246 * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
8247 optimization if we have direct move.
8248 (roundu32<mode>2_fprs): Likewise.
8249
8250 2016-03-11 Bernd Schmidt <bschmidt@redhat.com>
8251
8252 PR target/70123
8253 * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
8254 be rematerialized.
8255 (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
8256 Arguments swapped. All callers changed. Take reg_renumber into
8257 account, and Calculate and compare register ranges for hard regs.
8258
8259 2016-03-11 Jeff Law <law@redhat.com>
8260
8261 PR tree-optimization/70190
8262 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
8263 Handle cases where we can not extract the taken edge, even though we
8264 found a constant value.
8265
8266 PR tree-optimization/64058
8267 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
8268 (num_coalesce_pairs): Move up earlier in file.
8269 (find_coalesce_pair): Initialize the INDEX field for each pair
8270 discovered.
8271 (compare_pairs): No longer sort on the elements in each pair.
8272 Instead break ties with the index of the coalesce pair.
8273
8274 2016-03-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8275
8276 PR target/70002
8277 * config/aarch64/aarch64-protos.h
8278 (aarch64_save_restore_target_globals): New prototype.
8279 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
8280 Call the above when popping pragma.
8281 * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
8282 New function.
8283 (aarch64_set_current_function): Rewrite using the above.
8284
8285 2016-03-11 Jakub Jelinek <jakub@redhat.com>
8286
8287 PR tree-optimization/70177
8288 * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
8289 (extract_ops_from_tree): ... this. In the 2 argument
8290 overload remove _1 suffix.
8291 * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
8292 (extract_ops_from_tree): ... this.
8293 * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
8294 Adjust callers.
8295 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
8296 * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
8297 extract_ops_from_tree instead of 2 operand one.
8298
8299 2016-03-11 Alan Lawrence <alan.lawrence@arm.com>
8300
8301 PR tree-optimization/70013
8302 * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
8303 for constant-pool entries.
8304
8305 2016-03-11 Jakub Jelinek <jakub@redhat.com>
8306
8307 PR rtl-optimization/70174
8308 * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
8309 followed by gen_lowpart on force_reg instead of just gen_lowpart.
8310
8311 PR tree-optimization/70169
8312 * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
8313 LABEL_DECL like VAR_DECL. Emit nothing instead of gcc_unreachable
8314 for unknown codes.
8315
8316 2016-03-11 Ilya Enkovich <enkovich.gnu@gmail.com>
8317 Jakub Jelinek <jakub@redhat.com>
8318
8319 PR target/70160
8320 * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
8321 of uninitialized values.
8322
8323 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8324
8325 * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
8326 define_expand.
8327 ("*trunctddd2"): New pattern definition.
8328 ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
8329 TD->DD truncation.
8330
8331 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8332
8333 * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
8334 definitions for BFP and DFP rounding modes.
8335 ("fixuns_truncdddi2", "fixuns_trunctddi2")
8336 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
8337 ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
8338 ("fix_trunctf<mode>2"): Use the new constants instead of magic
8339 numbers.
8340
8341 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8342
8343 * config/s390/constraints.md: Adjust comment.
8344 ("Y"): Adjust comment. Rename s390_decompose_shift_count to
8345 s390_decompose_addrstyle_without_index.
8346 * config/s390/predicates.md (shift_count_or_setmem_operand):
8347 Rename to setmem_operand.
8348 * config/s390/s390-protos.h
8349 (s390_decompose_shift_count): Rename to
8350 s390_decompose_addrstyle_without_index.
8351 * config/s390/s390.c (s390_decompose_shift_count)
8352 (s390_mem_constraint, print_shift_count_operand)
8353 (print_operand_address, print_operand): Rename
8354 s390_decompose_shift_count to
8355 s390_decompose_addrstyle_without_index and rename
8356 print_shift_count_operand to print_addrstyle_operand troughout the
8357 file.
8358 * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
8359 ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
8360 Rename shift_count_or_setmem_operand to setmem_operand.
8361 * config/s390/vx-builtins.md ("vec_insert<mode>")
8362 ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
8363 nonmemory_operand.
8364
8365 2016-03-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8366
8367 PR target/70168
8368 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
8369 Handle overlapping retval and newval.
8370
8371 2016-03-10 Nick Clifton <nickc@redhat.com>
8372
8373 PR target/7044
8374 * config/aarch64/aarch64.c
8375 (aarch64_override_options_after_change_1): When forcing
8376 flag_omit_frame_pointer to be true, use a special value that can
8377 be detected if this function is called again, thus preventing
8378 flag_omit_leaf_frame_pointer from being forced to be false.
8379
8380 2016-03-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8381
8382 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
8383 Set x_flag_omit_leaf_frame_pointer when handling
8384 -momit-leaf-frame-pointer.
8385
8386 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
8387
8388 PR lto/69589
8389 * cgraph.c (cgraph_node::dump): Dump split_part and
8390 indirect_call_target.
8391 * cgraph.h (cgraph_node): Add indirect_call_target flag.
8392 * ipa.c (has_addr_references_p): Cleanup.
8393 (is_indirect_call_target_p): New.
8394 (walk_polymorphic_call_targets): Do not mark virtuals that may be
8395 called indirectly as local.
8396 (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
8397
8398 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
8399
8400 PR ipa/69630
8401 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
8402 on cxa_pure_virtual.
8403
8404 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
8405
8406 PR lto/69589
8407 * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
8408
8409 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
8410
8411 PR lto/69589
8412 * tree.c (need_assembler_name_p): Only record main variant type names.
8413
8414 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
8415
8416 PR target/70113.
8417 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
8418 Always define to 0 or 1.
8419 (TARGET_FIX_ERR_A53_843419): New macro.
8420 * config/aarch64/aarch64-elf-raw.h
8421 (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
8422 * config/aarch64/aarch64-linux.h: Likewise.
8423 * config/aarch64/aarch64.c
8424 (aarch64_override_options_after_change_1): Do not default
8425 aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
8426 843419 is on.
8427 (aarch64_attributes): Handle fix-cortex-a53-843419.
8428 (aarch64_can_inline_p): Likewise.
8429 * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
8430
8431 2016-03-10 Alan Lawrence <alan.lawrence@arm.com>
8432 Jakub Jelinek <jakub@redhat.com>
8433
8434 * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
8435 * tree.c (array_at_struct_end_p): Do not limit to size of decl for
8436 DECL_COMMONS if flag_unconstrained_commons is set.
8437 * tree-dfa.c (get_ref_base_and_extent): Likewise.
8438 * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
8439 (funconstrained-commons): Document.
8440
8441 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
8442
8443 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
8444 aarch64-fusion-pairs.def and aarch64-tuning-flags.def
8445
8446 2016-03-10 Ilya Enkovich <enkovich.gnu@gmail.com>
8447
8448 * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
8449 has a proper number of elements.
8450
8451 2016-03-10 Alan Modra <amodra@gmail.com>
8452
8453 PR rtl-optimization/69195
8454 PR rtl-optimization/47992
8455 * ira.c (recorded_label_ref): Delete.
8456 (update_equiv_regs): Return void.
8457 (indirect_jump_optimize): New function.
8458 (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
8459 before regstat_compute_ri. Don't rebuild_jump_labels here.
8460 Delete update_regstat.
8461
8462 2016-03-10 Richard Biener <rguenther@suse.de>
8463
8464 PR tree-optimization/70128
8465 * tree-ssa-structalias.c (set_uids_in_ptset): Set
8466 vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
8467
8468 2016-03-09 Jakub Jelinek <jakub@redhat.com>
8469
8470 PR tree-optimization/70152
8471 * tree-sra.c (replace_removed_params_ssa_names): Copy over
8472 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
8473
8474 PR target/70086
8475 * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
8476 instead of gen_sse2_loadlpd.
8477 * config/i386/sse.md (*vec_concatv2df): Rename to...
8478 (vec_concatv2df): ... this.
8479
8480 PR tree-optimization/70127
8481 * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
8482
8483 2016-03-09 David Malcolm <dmalcolm@redhat.com>
8484
8485 PR c/68473
8486 PR c++/70105
8487 * diagnostic-show-locus.c (compatible_locations_p): New function.
8488 (layout::layout): Sanitize ranges using compatible_locations_p.
8489
8490 2016-03-09 David Malcolm <dmalcolm@redhat.com>
8491
8492 PR c/68473
8493 PR c++/70105
8494 * diagnostic-show-locus.c (layout_range::layout_range): Replace
8495 location_range param with three const expanded_locations * and a
8496 bool.
8497 (layout::layout): Replace call to
8498 rich_location::lazily_expand_location with get_expanded_location.
8499 Extract the range and perform location expansion here, passing
8500 the results to the layout_range ctor.
8501 * diagnostic.c (source_range::debug): Delete.
8502 * diagnostic.h (diagnostic_expand_location): Reimplement in terms
8503 of rich_location::get_expanded_location.
8504 * gcc-rich-location.c (get_range_for_expr): Delete.
8505 (gcc_rich_location::add_expr): Reimplement to avoid the
8506 rich_location::add_range overload that took a location_range,
8507 passing a location_t instead.
8508
8509 2016-03-09 Richard Biener <rguenther@suse.de>
8510 Jakub Jelinek <jakub@redhat.com>
8511
8512 PR tree-optimization/70138
8513 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
8514 Also skip vect_double_reduction_def.
8515
8516 2016-03-09 Jakub Jelinek <jakub@redhat.com>
8517
8518 PR target/70049
8519 * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
8520 if the operand is "m".
8521
8522 2016-03-09 Nathan Sidwell <nathan@acm.org>
8523
8524 * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
8525
8526 2016-03-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
8527
8528 * config/i386/i386.c (processor_target_table): Fix cost table
8529 intialization order for znver1.
8530
8531 2016-03-08 Jakub Jelinek <jakub@redhat.com>
8532
8533 * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
8534 - becuase -> because.
8535 * ipa-reference.c (ignore_module_statics): Likewise.
8536 * cgraph.c (cgraph_node::get_body): Likewise.
8537 * ipa-inline.c (early_inliner): Likewise.
8538 * ipa-devirt.c (types_same_for_odr): Likewise.
8539 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
8540 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
8541
8542 2016-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8543
8544 * tree-ssa-math-opts.c: Fix typo in comment.
8545
8546 2016-03-08 Jakub Jelinek <jakub@redhat.com>
8547
8548 PR target/70110
8549 * config/i386/i386.c (scalar_chain::make_vector_copies,
8550 scalar_chain::convert_reg): Call end_sequence in between
8551 get_insns and emit_conversion_insns rather than after both
8552 calls.
8553
8554 2016-03-07 Uros Bizjak <ubizjak@gmail.com>
8555
8556 PR target/70064
8557 * config/i386/i386.h (machine_function): Add
8558 pc_thunk_call_expanded flag.
8559 (ix86_pc_thunk_call_expanded): New define.
8560 * config/i386/i386.md (set_got, set_got_labelled): New expanders.
8561 (*set_got): Rename insn pattern from set_got.
8562 (*set_got_labelled): Rename inst pattern from set_got_labelled.
8563 * config/i386/i386.c (ix86_compute_frame_layout): Use
8564 ix86_pc_thunk_call_expanded to prevent red-zone.
8565
8566 2016-03-07 Martin Jambor <mjambor@suse.cz>
8567
8568 * hsa.h (hsa_get_ctor_statements): Declare.
8569 (hsa_get_dtor_statements): Likewise.
8570 (hsa_get_kernel_dispatch_type): Likewise.
8571 * hsa.c (hsa_get_ctor_statements): New function.
8572 (hsa_get_dtor_statements): Likewise.
8573 (hsa_get_kernel_dispatch_type): Likewise.
8574 * hsa-brig.c (hsa_cdtor_statements): Removed.
8575 (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
8576 hsa_get_dtor_statements.
8577 * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
8578 (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
8579
8580 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
8581
8582 * config/arm/arm-cores.def (cortex-r8): New.
8583 * config/arm/arm-tables.opt (cortex-r8): Regenerate.
8584 * config/arm/arm-tune.md: Likewise.
8585 * doc/invoke.texi: Add cortex-r8 to list of cpu values.
8586
8587 2016-03-07 Martin Sebor <msebor@redhat.com>
8588
8589 PR rtl-optimization/19705
8590 * doc/invoke.texi (Options That Control Optimization): Clarify
8591 -fno-branch-count-reg.
8592
8593 2016-02-26 Richard Biener <rguenther@suse.de>
8594 Jeff Law <law@redhat.com>
8595
8596 PR tree-optimization/69740
8597 * cfghooks.c (remove_edge): Request loop fixups if we delete
8598 an edge that might turn an irreducible loop into a natural
8599 loop.
8600 * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
8601 Move after definition of loops_state_clear.
8602
8603 2016-03-07 Bin Cheng <bin.cheng@arm.com>
8604
8605 PR rtl-optimization/69052
8606 * rtlanal.c (commutative_operand_precedence): Set higher precedence
8607 to CONST_WIDE_INT.
8608
8609 2016-03-07 Tom de Vries <tom@codesourcery.com>
8610
8611 PR tree-optimization/70116
8612 * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
8613 is_tm_ending stmts and ubsan/asan internal functions.
8614 (find_duplicate): Use it. Don't test is_tm_ending here.
8615
8616 2016-03-07 Richard Biener <rguenther@suse.de>
8617
8618 PR tree-optimization/70115
8619 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
8620 (propagate_constants_for_unrolling): Use replace_uses_by.
8621
8622 2016-03-07 Nathan Sidwell <nathan@codesourcery.com>
8623
8624 PR middle-end/69916
8625 * omp-low.c (struct oacc_loop): Add ifns.
8626 (new_oacc_loop_raw): Initialize it.
8627 (finish_oacc_loop): Clear mask & flags if no ifns.
8628 (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
8629 (oacc_loop_xform_loop): Add ifns arg & adjust.
8630 (oacc_loop_process): Adjust oacc_loop_xform_loop call.
8631
8632 2016-03-07 Richard Henderson <rth@redhat.com>
8633
8634 PR rtl-opt/70061
8635 * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
8636 (insert_value_copy_on_edge): Likewise.
8637
8638 2016-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8639
8640 * config/arm/arm_neon.h: Show error if using with soft-float ABI.
8641
8642 2016-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8643
8644 PR target/62281
8645 * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
8646
8647 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
8648
8649 * config/i386/i386.c (znver1_cost): Fix Multiply cost.
8650
8651 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
8652
8653 Fix sseimul type attribute.
8654 * config/i386/znver1.md
8655 (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
8656 znver1_sseimul_avx256_load) : Fix the type attribute.
8657 (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
8658 pipe usage and latency.
8659
8660 2016-03-05 Jakub Jelinek <jakub@redhat.com>
8661
8662 PR c++/70084
8663 * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
8664 of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
8665 to the right type.
8666
8667 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
8668
8669 PR c/69973
8670 * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
8671
8672 PR rtl-optimization/69941
8673 * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
8674 the reg share its mode.
8675
8676 2016-03-04 Jeff Law <law@redhat.com>
8677
8678 PR tree-optimization/69196
8679 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
8680 If the both SSA_NAMEs are anonymous, then consider them unassociated
8681 and include the PHI in the statement count.
8682
8683 2016-03-05 Tom de Vries <tom@codesourcery.com>
8684
8685 * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
8686 construct in oacc routine. Check for oacc region in oacc routine.
8687
8688 2016-03-04 Jakub Jelinek <jakub@redhat.com>
8689
8690 PR target/70062
8691 * config/i386/i386.c (decide_alg): Add RECUR argument. Revert
8692 2016-02-22 changes, instead don't recurse if RECUR is already true.
8693 Don't change *dynamic_check if RECUR. Adjust recursive caller
8694 to pass true to the new argument.
8695 (ix86_expand_set_or_movmem): Adjust decide_alg caller.
8696
8697 PR target/70059
8698 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
8699 <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
8700 fixes.
8701 (vec_set_hi_<mode><mask_name>): Likewise. Swap VEC_CONCAT operands.
8702
8703 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
8704
8705 PR rtl-optimization/57676
8706 * lra-assigns.c (lra_assign): Guard test for maximum iterations
8707 with flag_checking.
8708
8709 2016-03-04 Ilya Enkovich <enkovich.gnu@gmail.com>
8710
8711 * tree-vect-patterns.c (search_type_for_mask): Handle
8712 comparison of booleans.
8713
8714 2016-03-04 Jakub Jelinek <jakub@redhat.com>
8715
8716 * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
8717 Fix @xref usage.
8718
8719 PR debug/69947
8720 * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
8721 all other ops that have dw_val_class_die_ref operands,
8722 and DW_OP_GNU_entry_value.
8723
8724 2016-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8725
8726 PR rtl-optimization/69904
8727 * config/arm/arm.c (arm_cannot_copy_insn_p):
8728 Return true for load-exclusive instructions.
8729
8730 2016-03-03 Jakub Jelinek <jakub@redhat.com>
8731
8732 PR target/70021
8733 * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
8734 argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
8735 the pattern no matter if it is used just by non-pattern, pattern
8736 or mix thereof.
8737 (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
8738 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
8739 oprnd1 def_stmt is in pattern, don't look through it.
8740
8741 2016-03-03 Marek Polacek <polacek@redhat.com>
8742
8743 PR middle-end/70050
8744 * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
8745
8746 2016-03-03 Martin Liska <mliska@suse.cz>
8747
8748 PR tree-optimization/70043
8749 * tree-vect-loop.c (optimize_mask_stores): Move iterator to
8750 previous statement if we see a debug statement.
8751
8752 2016-03-03 Richard Biener <rguenther@suse.de>
8753
8754 PR tree-optimization/55936
8755 * tree-vrp.c (compare_name_with_value): Add use_equiv_p
8756 parameter and guard unsafe equivalence use.
8757 (vrp_evaluate_conditional_warnv_with_ops): Always use
8758 safe equivalences but not via the quadratic compare_names
8759 helper.
8760
8761 2016-03-03 Michael Collison <michael.collison@linaro.org>
8762
8763 PR target/70014
8764 * config/arm/arm.md (*subsi3_carryin_const): Change predicate
8765 for operand 1 to s_register_operand. Change predicate for operand
8766 2 to arm_not_immediate_operand.
8767
8768 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
8769
8770 * doc/tm.texi: Regenerated.
8771
8772 2016-03-02 Richard Henderson <rth@redhat.com>
8773
8774 PR rtl-opt/67145
8775 * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
8776 simplification when all args are positive non-fixed registers.
8777
8778 2016-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
8779
8780 * target.def (lra_p): Specify that new ports should use LRA.
8781
8782 2016-03-02 Jakub Jelinek <jakub@redhat.com>
8783
8784 PR libgomp/69555
8785 * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
8786 gimplify_type_sizes the type they refer to.
8787 (omp_notice_variable): Handle reference vars to VLAs.
8788 * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
8789 reference to VLA decls in the second pass instead of first pass.
8790
8791 2016-03-02 Tom de Vries <tom@codesourcery.com>
8792
8793 PR tree-optimization/68659
8794 * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
8795 new_expr == NULL_TREE.
8796 (get_new_name): Handle ADDR_EXPR.
8797
8798 2016-03-02 Bin Cheng <bin.cheng@arm.com>
8799
8800 PR rtl-optimization/69052
8801 * loop-invariant.c (canonicalize_address): New function.
8802 (inv_can_prop_to_addr_use): Check validity of address expression
8803 which is canonicalized by above function.
8804
8805 2016-03-02 Alan Modra <amodra@gmail.com>
8806
8807 PR ipa/69990
8808 * ipa-icf.c (sem_variable::merge): Do not merge an alias with
8809 larger alignment.
8810
8811 2016-03-02 Jakub Jelinek <jakub@redhat.com>
8812
8813 PR target/70028
8814 * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
8815 (*movhi_internal): Put mask moves from and to memory separately
8816 from moves from/to GPRs.
8817
8818 2016-03-02 Richard Biener <rguenther@suse.de>
8819
8820 * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
8821 GENERIC expressions in GIMPLE.
8822
8823 2016-03-02 Richard Biener <rguenther@suse.de>
8824
8825 * config/i386/i386.c (type_natural_mode): Fix typo.
8826
8827 2016-03-02 Nick Clifton <nickc@redhat.com>
8828
8829 * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
8830
8831 2016-03-02 Richard Biener <rguenther@suse.de>
8832 Uros Bizjak <ubizjak@gmail.com>
8833
8834 PR target/67278
8835 * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
8836
8837 2016-03-02 Richard Biener <rguenther@suse.de>
8838
8839 PR middle-end/67278
8840 * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
8841
8842 2016-03-02 Marek Polacek <polacek@redhat.com>
8843
8844 PR c/67854
8845 * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
8846 "is promoted to" warning.
8847
8848 2016-03-01 DJ Delorie <dj@redhat.com>
8849
8850 * config.gcc: Deprecate mep-*.
8851
8852 2016-03-01 Vladimir Makarov <vmakarov@redhat.com>
8853
8854 PR middle-end/70025
8855 * lra-constraints.c (regno_val_use_in): New.
8856 (match_reload): Use it instead of regno_use_in.
8857
8858 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
8859
8860 PR rtl-optimization/70007
8861 * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
8862 references present in REG_EQUAL notes attached to non-SET patterns.
8863
8864 2016-03-01 Jeff Law <law@redhat.com>
8865
8866 PR tree-optimization/69196
8867 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
8868 Appropriately clamp the number of statements to copy when the
8869 thread path does not traverse a loop backedge.
8870
8871 PR tree-optimization/69196
8872 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
8873 Do count some PHIs in the thread path against the insn count. Decrease
8874 final statement count by one as the control statement in the last
8875 block will get removed. Remove special cased code for handling PHIs
8876 in the last block.
8877
8878 2016-03-01 Uros Bizjak <ubizjak@gmail.com>
8879
8880 PR target/70027
8881 * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
8882 asm dialect alternatives to explicit GOTPCREL calls.
8883
8884 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
8885
8886 PR ada/70017
8887 * ira.c (do_reload): Issue warning for generic stack checking here...
8888 * reload1.c (reload): ...instead of here and streamline it.
8889
8890 2016-03-01 Nick Clifton <nickc@redhat.com>
8891
8892 * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
8893
8894 2016-03-01 Richard Biener <rguenther@suse.de>
8895
8896 PR tree-optimization/69983
8897 * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
8898 types and fall back to operand_equal_p.
8899
8900 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8901
8902 Revert
8903 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8904
8905 * config/s390/constraints.md ("jm8"): New constraint.
8906 * config/s390/predicates.md ("const_int_8bitset_operand"): New
8907 predicate.
8908 * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
8909 into ...
8910 ("*setmem_long<setmem_and>"): New pattern.
8911 ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
8912 into ...
8913 ("*setmem_long_31z<setmem_and>"): New pattern.
8914 * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
8915 New substitution rules with the required attributes.
8916
8917
8918 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8919
8920 Revert
8921 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8922
8923 * gensupport.c (process_substs_on_one_elem): Split loop to
8924 complete mark_operands_used_in_match_dup on all expressions in the
8925 vector first.
8926 (adjust_operands_numbers): Inline into process_substs_on_one_elem
8927 and remove function.
8928
8929 2016-03-01 Richard Biener <rguenther@suse.de>
8930
8931 PR middle-end/70022
8932 * fold-const.c (fold_indirect_ref_1): Fix range checking for
8933 vector BIT_FIELD_REF extract.
8934
8935 2016-03-01 Richard Biener <rguenther@suse.de>
8936
8937 PR tree-optimization/69994
8938 * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
8939
8940 2016-03-01 Ilya Enkovich <enkovich.gnu@gmail.com>
8941
8942 PR tree-optimization/69956
8943 * tree-vect-stmts.c (supportable_widening_operation): Support
8944 multi-step conversion of boolean vectors.
8945 (supportable_narrowing_operation): Likewise.
8946
8947 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8948
8949 * config/s390/s390.c (s390_decompose_address): Don't accept SImode
8950 anymore.
8951
8952 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8953
8954 * config/s390/subst.md (DSI_VI): New mode iterator.
8955 ("addr_style_op_subst"): Use DSI_VI instead of DSI.
8956 * config/s390/vector.md ("vec_set<mode>"): Move expander before
8957 the insn definition.
8958 ("*vec_set<mode>"): Change predicate and add alternative to
8959 support only either register or const_int operands as element
8960 selector.
8961 ("*vec_set<mode>_plus"): New pattern to support reg + const_int
8962 operands.
8963 ("vec_extract<mode>"): New expander.
8964 ("*vec_extract<mode>"): New insn definition supporting reg and
8965 const_int element selectors.
8966 ("*vec_extract<mode>_plus"): New insn definition supporting
8967 reg+const_int element selectors.
8968 ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
8969 following expander+insn definition.
8970 ("<vec_shifts_name><mode>3"): New expander.
8971 ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
8972
8973 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8974
8975 * config/s390/s390.md ("*tabort_1"): Change predicate to
8976 nonmemory_operand. Add a second alternative to cover
8977 register as well as const int operands.
8978 ("*tabort_1_plus"): New pattern definition.
8979
8980 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8981
8982 * config/s390/s390.md ("*ashrdi3_cc_31")
8983 ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
8984 ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
8985 Merge insn definitions into ...
8986 ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
8987 New pattern definition.
8988 ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
8989 ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
8990 ("*ashr<mode>3_and"): Merge insn definitions into ...
8991 ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
8992 New pattern definition.
8993 * config/s390/subst.md ("addr_style_op_cc_subst")
8994 ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
8995 substitutions patterns plus attributes.
8996 Add ashiftrt to SUBST iterator.
8997
8998 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8999
9000 * config/s390/s390.md ("<shift><mode>3"): Change predicate of
9001 op2 to nonmemory_operand.
9002 ("*<shift>di3_31", "*<shift>di3_31_and"):
9003 Merge into single pattern definition ...
9004 ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
9005 ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
9006 pattern definition ...
9007 ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
9008 * config/s390/subst.md: Add ashift and lshiftrt to SUBST
9009 iterator.
9010
9011 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9012
9013 * config/s390/predicates.md (const_int_6bitset_operand): New
9014 predicate.
9015 * config/s390/s390.md: Include subst.md.
9016 ("rotl<mode>3"): New expander.
9017 ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
9018 ...
9019 ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
9020 * config/s390/subst.md: New file.
9021
9022 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9023
9024 * config/s390/s390.md ("op_type", "atype", "length" attributes):
9025 Remove RRR type. It doesn't really exist.
9026 ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
9027 attributes.
9028 ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
9029 ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
9030 ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
9031 ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
9032 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
9033 ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
9034 `enabled' attribute.
9035
9036 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9037
9038 * gensupport.c (process_substs_on_one_elem): Split loop to
9039 complete mark_operands_used_in_match_dup on all expressions in the
9040 vector first.
9041 (adjust_operands_numbers): Inline into process_substs_on_one_elem
9042 and remove function.
9043
9044 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
9045
9046 PR target/69706
9047 * config/sparc/sparc.c (NWORDS_UP): Rename to...
9048 (CEIL_NWORDS): ...this. Use CEIL macro.
9049 (compute_fp_layout): Adjust to above renaming.
9050 (function_arg_union_value): Likewise.
9051 (sparc_arg_partial_bytes): Likewise.
9052 (sparc_function_arg_advance): Likewise.
9053
9054 2016-02-29 Jeff Law <law@redhat.com>
9055
9056 PR tree-optimization/70005
9057 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
9058 where an object with a boolean range is compared against a value
9059 outside [0..1].
9060
9061 PR tree-optimization/69999
9062 * gimple-ssa-split-paths.c (split_paths): When duplicating a block
9063 with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
9064 loop cleanups.
9065
9066 2016-02-29 Richard Biener <rguenther@suse.de>
9067
9068 PR tree-optimization/69994
9069 * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
9070 (get_unary_op): Look through nop conversions.
9071 (ops_equal_values_p): New function, look for equality diregarding
9072 nop conversions.
9073 (eliminate_plus_minus_pair): Use ops_equal_values_p
9074 (repropagate_negates): Do not use get_unary_op here.
9075
9076 2016-02-29 Martin Liska <mliska@suse.cz>
9077
9078 * system.h: Poison ENABLE_CHECKING macro.
9079
9080 2016-02-29 Martin Liska <mliska@suse.cz>
9081
9082 * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
9083 is presented in dump flags.
9084 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
9085 (hsa_regalloc): Likewise.
9086
9087 2016-02-19 Richard Biener <rguenther@suse.de>
9088
9089 PR tree-optimization/69980
9090 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
9091 permutation of those we need to keep.
9092
9093 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
9094
9095 PR target/69706
9096 * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
9097 (NWORDS_UP): ...this
9098 (init_cumulative_args): Minor tweaks.
9099 (sparc_promote_function_mode): Likewise.
9100 (scan_record_type): Delete.
9101 (traverse_record_type): New function template.
9102 (classify_data_t): New structure type.
9103 (classify_registers): New inline function.
9104 (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
9105 exhausted. Instantiate traverse_record_type on classify_registers and
9106 deal with the case of a structure passed in slot #15 with no FP field
9107 in the first word.
9108 (assign_data_t): New structure type.
9109 (compute_int_layout): New static function.
9110 (compute_fp_layout): Likewise.
9111 (count_registers): New inline function.
9112 (assign_int_registers): New static function.
9113 (assign_fp_registers): Likewise.
9114 (assign_registers): New inline function.
9115 (function_arg_record_value_1): Delete.
9116 (function_arg_record_value_2): Likewise.
9117 (function_arg_record_value_3): Likewise.
9118 (function_arg_record_value): Adjust to above changes. Instantiate
9119 traverse_record_type on count_registers to first count the number of
9120 registers to be used and then on assign_registers to assign them.
9121 (function_arg_union_value): Adjust to above renaming.
9122 (sparc_function_arg_1); Minor tweaks. Remove commented out code.
9123 (sparc_arg_partial_bytes): Adjust to above renaming. Deal with the
9124 case of a structure passed in slot #15
9125 (sparc_function_arg_advance): Likewise.
9126 (function_arg_padding): Minor tweak.
9127
9128 2016-02-29 Richard Biener <rguenther@suse.de>
9129
9130 PR tree-optimization/69720
9131 * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
9132 the adjustment_def path for possibly vectorized defs.
9133 (vect_create_epilog_for_reduction): Handle vectorized initial
9134 defs properly.
9135
9136 2016-02-28 Eric Botcazou <ebotcazou@adacore.com>
9137
9138 * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
9139
9140 2016-02-27 Jeff Law <law@redhat.com>
9141
9142 Revert
9143 2016-02-26 Richard Biener <rguenther@suse.de>
9144 Jeff Law <law@redhat.com>
9145
9146 PR tree-optimization/69740
9147 * cfghooks.c (remove_edge): Request loop fixups if we delete
9148 an edge that might turn an irreducible loop into a natural
9149 loop.
9150
9151 2016-02-27 Jakub Jelinek <jakub@redhat.com>
9152
9153 PR rtl-optimization/69896
9154 * tree-vect-generic.c (get_compute_type): Avoid single element
9155 vector types.
9156
9157 2016-02-26 Evandro Menezes <e.menezes@samsung.com>
9158
9159 Rename the AArch64 tuning option and related functions to enable the
9160 Newton series for the reciprocal square root to reflect its
9161 approximative characteristic.
9162
9163 * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
9164 function to "aarch64_emit_approx_rsqrt".
9165 * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
9166 AARCH64_EXTRA_TUNE_APPROX_RSQRT.
9167 * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
9168 (xgene1_tunings): Likewise.
9169 (use_rsqrt_p): Likewise.
9170 (aarch64_emit_swrsqrt): Use new function name.
9171 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
9172 * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
9173 text explaining this option.
9174 * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
9175
9176 2016-02-26 Jakub Jelinek <jakub@redhat.com>
9177
9178 PR target/69969
9179 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
9180 complain about -mallow-movmisalign without -mvsx if
9181 TARGET_ALLOW_MOVMISALIGN was not set explicitly.
9182
9183 2016-02-26 Joel Sherrill <joel@rtems.org>
9184
9185 * config.gcc: Add x86_64-*-rtems*.
9186 * config/i386/rtems-64.h: New file.
9187
9188 2016-02-26 Joel Sherrill <joel@rtems.org>
9189
9190 * config.gcc: Add aarch64-*-rtems*.
9191 * config/aarch64/rtems.h: New file.
9192
9193 2016-02-26 Segher Boessenkool <segher@kernel.crashing.org>
9194
9195 PR target/69946
9196 * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
9197 shift amount using %h. Add comment.
9198
9199 2016-02-26 Richard Biener <rguenther@suse.de>
9200 Jeff Law <law@redhat.com>
9201
9202 PR tree-optimization/69740
9203 * cfghooks.c (remove_edge): Request loop fixups if we delete
9204 an edge that might turn an irreducible loop into a natural
9205 loop.
9206
9207 2016-02-26 Martin Jambor <mjambor@suse.cz>
9208
9209 PR middle-end/69920
9210 * tree-sra.c (sra_modify_assign): Do not remove loads of
9211 uninitialized aggregates to SSA_NAMEs.
9212
9213 2016-02-26 Richard Henderson <rth@redhat.com>
9214
9215 PR target/69709
9216 * config/s390/s390.md (risbg and risbgn splitters): Allocate new
9217 pseudo in case the target rtx matches the source of the left
9218 shift.
9219
9220 2016-02-26 Martin Jambor <mjambor@suse.cz>
9221
9222 PR hsa/69568
9223 * hsa.h (hsa_type_packed_p): Declare.
9224 * hsa.c (hsa_type_packed_p): New function.
9225 * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
9226 loads.
9227 (gen_hsa_insns_for_store): Use hsa_type_packed_p.
9228 * hsa-brig.c (emit_basic_insn): Likewise.
9229
9230 2016-02-26 Martin Jambor <mjambor@suse.cz>
9231
9232 pr hsa/69674
9233 * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
9234 pointers.
9235 (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
9236
9237 2016-02-26 Martin Jambor <mjambor@suse.cz>
9238
9239 * hsa.h (is_a_helper): New overload for hsa_op_immed for
9240 hsa_op_with_type operands.
9241 (hsa_unsigned_type_for_type): Declare.
9242 * hsa.c (hsa_unsigned_type_for_type): New function.
9243 * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
9244 (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
9245 the finalizer. Do not emit extra move.
9246
9247 2016-02-26 Martin Jambor <mjambor@suse.cz>
9248
9249 * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
9250 atomic operations in private segment.
9251
9252 2016-02-26 Martin Jambor <mjambor@suse.cz>
9253
9254 * omp-low.c (grid_find_ungridifiable_statement): Store problematic
9255 statements to wi->info. Also disallow omp simd constructs.
9256 (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
9257 for not gridifying. Dump special string for omp_for.
9258
9259 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9260
9261 PR target/69245
9262 * config/aarch64/aarch64.c (aarch64_set_current_function):
9263 Save/restore target globals when switching to
9264 target_option_default_node.
9265
9266 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9267
9268 PR target/69613
9269 * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
9270 Return 0 if !SHIFT_COUNT_TRUNCATED.
9271
9272 2016-02-26 Jakub Jelinek <jakub@redhat.com>
9273 Eric Botcazou <ebotcazou@adacore.com>
9274
9275 PR rtl-optimization/69891
9276 * dse.c (scan_insn): If we can't figure out memset arguments
9277 or they are non-constant, call clear_rhs_from_active_local_stores.
9278
9279 2016-02-26 Martin Liska <mliska@suse.cz>
9280
9281 * doc/extend.texi: Mention clog10, clog10f an clog10l
9282 in Builtins section.
9283
9284 2016-02-26 Martin Liska <mliska@suse.cz>
9285
9286 * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
9287 CHECKING_P.
9288 (resolve_args_picking_1): Likewise.
9289 * dwarf2out.h (struct GTY): Likewise.
9290
9291 2016-02-26 Martin Liska <mliska@suse.cz>
9292
9293 * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
9294 with flag_checking.
9295 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
9296
9297 2016-02-26 Markus Trippelsdorf <markus@trippelsdorf.de>
9298 Martin Liska <mliska@suse.cz>
9299
9300 * doc/install.texi: Mention --enable-valgrind-annotations.
9301
9302 2016-02-26 Richard Biener <rguenther@suse.de>
9303
9304 PR tree-optimization/69551
9305 * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
9306 looking through aliases adjust DECL_PT_UID to refer to the
9307 ultimate alias target.
9308
9309 2016-02-25 Martin Liska <mliska@suse.cz>
9310
9311 PR middle-end/69919
9312 * alloc-pool.c (after_memory_report): New variable.
9313 * alloc-pool.h (base_pool_allocator ::release): Do not use
9314 the infrastructure if after_memory_report.
9315 * toplev.c (toplev::main): Mark after memory report.
9316
9317 2016-02-25 Richard Biener <rguenther@suse.de>
9318
9319 PR tree-optimization/48795
9320 * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
9321
9322 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
9323
9324 PR driver/68463
9325 * config/gnu-user.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o if
9326 offloading is enabled and -fopenacc or -fopenmp is specified.
9327 (CRTOFFLOADEND): Likewise.
9328 (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
9329 (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
9330 * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
9331 (offload_objects_file_name): New static var.
9332 (tool_cleanup): Remove offload_objects_file_name file.
9333 (find_offloadbeginend): Replace with ...
9334 (find_crtoffloadtable): ... this.
9335 (run_gcc): Remove offload_argc and offload_argv.
9336 Get offload_objects_file_name from -foffload-objects=... option.
9337 Read names of object files with offload from this file, pass them to
9338 compile_images_for_offload_targets. Don't call find_offloadbeginend and
9339 don't pass offloadbegin and offloadend to the linker. Don't pass
9340 offload non-LTO files to the linker, because now they're not claimed.
9341
9342 2016-02-25 Jan Hubicka <hubicka@ucw.cz>
9343
9344 PR ipa/69630
9345 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
9346 on builtin_unreachable.
9347
9348 2016-02-25 Jakub Jelinek <jakub@redhat.com>
9349
9350 PR rtl-optimization/69896
9351 * regcprop.c: Include cfgrtl.h.
9352 (copyprop_hardreg_forward_1): If noop_p insn uses narrower
9353 than remembered mode, either delete it (if noop_move_p), or
9354 treat like copy_p but not noop_p instruction.
9355
9356 2016-02-24 Jakub Jelinek <jakub@redhat.com>
9357
9358 PR debug/69705
9359 * dwarf2out.c (gen_variable_die): Work around buggy LTO
9360 - allow NULL decl for Fortran DW_TAG_common_block variables.
9361
9362 2016-02-24 Jason Merrill <jason@redhat.com>
9363
9364 * common.opt (flifetime-dse): Add -flifetime-dse=1.
9365
9366 2016-02-24 Richard Biener <rguenther@suse.de>
9367 Jakub Jelinek <jakub@redhat.com>
9368
9369 PR middle-end/69760
9370 * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
9371 conditionally executed ops to well-defined overflow behavior.
9372
9373 2016-02-24 Jakub Jelinek <jakub@redhat.com>
9374
9375 PR middle-end/69915
9376 * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
9377 elements.
9378
9379 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9380
9381 PR rtl-optimization/69886
9382 * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
9383 argument. Use it when checking validity of set instructions.
9384 (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
9385 (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
9386 callsite.
9387 * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
9388 * store-motion.c (find_moveable_store): Update
9389 can_assign_to_reg_without_clobbers_p callsite.
9390
9391 2016-02-24 Richard Biener <rguenther@suse.de>
9392
9393 PR middle-end/68963
9394 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
9395 bogus check.
9396 (record_nonwrapping_iv): Do not fall back to the low/high bound
9397 for non-constant IV bases if the stmt is not always executed.
9398
9399 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9400
9401 * config/arm/arm-cores.def (cortex-a32): New entry.
9402 * config/arm/arm-tables.opt: Regenerate.
9403 * config/arm/arm-tune.md: Regenerate.
9404 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
9405 * config/arm/t-aprofile: Handle mcpu=cortex-a32.
9406 * doc/invoke.texi (ARM Options): Document cortex-a32 as value
9407 for -mcpu and -mtune.
9408
9409 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9410
9411 PR target/69875
9412 * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
9413 * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
9414 * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
9415 (atomic_loaddi_1): Delete.
9416 (atomic_loaddi): Rewrite expander using the above changes.
9417
9418 2016-02-24 Jakub Jelinek <jakub@redhat.com>
9419
9420 PR c/69918
9421 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
9422 2 to 3.
9423
9424 2016-02-24 Jakub Jelinek <jakub@redhat.com>
9425 Richard Biener <rguenth@suse.de>
9426
9427 PR middle-end/69909
9428 * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
9429 set_mem_attributes if tem is SSA_NAME which got expanded
9430 as a MEM.
9431
9432 2016-02-24 Richard Biener <rguenther@suse.de>
9433
9434 PR tree-optimization/69907
9435 * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
9436 end of permutations for BB vectorization.
9437
9438 2016-02-24 Christian Bruel <christian.bruel@st.com>
9439
9440 * config/arm/arm-c.c (arm_option_override): Initialize
9441 target_option_current_node.
9442 * config/arm/arm.c (arm_pragma_target_parse): Replace
9443 build_target_option_node call by target_option_current_node.
9444 Set target_option_current_node.
9445 Fix comments.
9446
9447 2016-02-23 David Edelsohn <dje.gcc@gmail.com>
9448
9449 PR target/69810
9450 * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
9451 define_insn_and_split to define_insn.
9452 (zero_extendqi<mode>2_dot2): Same.
9453 (extendqi<mode>2_dot): Same.
9454 (extendqi<mode>2_dot2): Same.
9455
9456 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
9457
9458 * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
9459 and add bypass for AES{D,E} and AESMC pairs.
9460 * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
9461 and AESMC pairs.
9462
9463 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
9464
9465 * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
9466 series for reciprocal square root in Exynos M1.
9467
9468 2016-02-23 Martin Sebor <msebor@redhat.com>
9469
9470 PR c/69759
9471 * doc/extend.texi (Other Builtins): Document __builtin_alloca and
9472 __builtin_alloca_with_align.
9473
9474 2016-02-23 Richard Henderson <rth@redhat.com>
9475
9476 * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
9477 (ix86_register_pragmas): Remove __seg_tls.
9478 * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
9479 * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
9480 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
9481 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
9482 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
9483 * doc/extend.texi (__seg_tls): Remove item.
9484
9485 2016-02-23 Richard Biener <rguenther@suse.de>
9486
9487 * alloc-pool.h (struct allocation_object): Make id member
9488 conditional on CHECKING_P again.
9489 (get_instance): Adjust.
9490 (base_pool_allocator): Likewise.
9491
9492 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
9493
9494 * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
9495 (parallelize_loops): In OpenACC kernels mode, set n_threads to
9496 zero.
9497 (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
9498 flag_openacc.
9499 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
9500
9501 2016-02-23 Richard Biener <rguenther@suse.de>
9502
9503 * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
9504 * bitmap.h (struct bitmap_usage): Likewise.
9505 (bitmap_move): Declare.
9506 * bitmap.c (register_overhead): Take size_t argument.
9507 (bitmap_move): New function.
9508 * df-problems.c (df_rd_transfer_function): Use bitmap_move
9509 to properly account overhead.
9510 * tree.c (free_node): Use tree_size.
9511
9512 2016-02-23 Jakub Jelinek <jakub@redhat.com>
9513
9514 PR c++/69902
9515 * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
9516 when inverting comparison.
9517
9518 PR c/69900
9519 * common.opt (Wunreachable-code): Add Warning flag.
9520
9521 2016-02-23 Mark Wielaard <mjw@redhat.com>
9522 Jakub Jelinek <jakub@redhat.com>
9523
9524 PR c/69911
9525 * cgraphunit.c (check_global_declaration): Check main_input_filename
9526 and DECL_SOURCE_FILE are not NULL.
9527
9528 2016-02-23 Martin Jambor <mjambor@suse.cz>
9529
9530 PR tree-optimization/69666
9531 * tree-sra.c (sra_modify_assign): Do not attempt to create
9532 default_def replacements for unscalarizable regions.
9533
9534 2016-02-20 Mark Wielaard <mjw@redhat.com>
9535
9536 PR c/28901
9537 * cgraphunit.c (check_global_declaration): Check level of
9538 warn_unused_const_variable and main_input_filename.
9539 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
9540 (-Wunused-variable): For C implies -Wunused-const-variable=1.
9541 (-Wunused-const-variable): Explain levels 1 and 2.
9542
9543 2016-02-22 Jakub Jelinek <jakub@redhat.com>
9544
9545 PR target/69888
9546 * config/i386/i386.c (decide_alg): Ensure we don't recurse with
9547 identical arguments. Formatting and spelling fixes.
9548
9549 PR target/69885
9550 * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
9551 be specified.
9552
9553 PR target/69894
9554 PR target/69895
9555 * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
9556 and m68k-devices.def.
9557 * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
9558 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
9559
9560 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
9561
9562 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
9563 and HImode registers.
9564
9565 2016-02-22 Richard Biener <rguenther@suse.de>
9566
9567 PR tree-optimization/69882
9568 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
9569 preserve permutations present because of gaps.
9570 (vect_supported_load_permutation_p): Always continue checking
9571 permutations after vect_attempt_slp_rearrange_stmts.
9572
9573 2016-02-22 Bin Cheng <bin.cheng@arm.com>
9574
9575 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
9576 min_profitable_estimate, rather than min_profitable_iters.
9577
9578 2016-02-22 Jakub Jelinek <jakub@redhat.com>
9579
9580 PR target/69885
9581 * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
9582 SImode for last match_operand.
9583
9584 2016-02-22 Martin Liska <mliska@suse.cz>
9585
9586 * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
9587 return bitsize - 1 as the return value.
9588
9589 2016-02-22 Oleg Endo <olegendo@gcc.gnu.org>
9590
9591 PR target/69806
9592 PR target/54089
9593 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
9594 Handle negative shift counts.
9595 * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
9596 force_reg on the shift constant.
9597 (lshrsi3): Likewise. Expand into lshrsi3_n* instead of lshrsi3_d.
9598 (lshrsi3_d): Handle negative shift counts.
9599
9600 2016-02-22 Richard Biener <rguenther@suse.de>
9601 Tom de Vries <tom@codesourcery.com>
9602
9603 * graph.c: Include dumpfile.h.
9604 (print_graph_cfg): Split into three overloads.
9605 * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
9606
9607 2016-02-22 Tom de Vries <tom@codesourcery.com>
9608
9609 * gdbhooks.py (class DumpFn): Add and instantiate, adding command
9610 dump-fn.
9611
9612 2016-02-22 Richard Biener <rguenther@suse.de>
9613
9614 PR ipa/37448
9615 * ipa-inline-transform.c (inline_call): When not updating
9616 overall summaries adjust self size by the growth estimate.
9617 * ipa-inline.c (inline_to_all_callers_1): Add to the callers
9618 hash-set, do not update overall summaries here. Renamed from ...
9619 (inline_to_all_callers): ... this which is now wrapping the
9620 above and performing delayed overall summary update.
9621 (early_inline_small_functions): Delay updating of the overall
9622 summary.
9623
9624 2016-02-21 Markus Trippelsdorf <markus@trippelsdorf.de>
9625
9626 * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
9627 variable.
9628
9629 2016-02-19 Jakub Jelinek <jakub@redhat.com>
9630
9631 PR driver/69805
9632 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
9633 :%* in %:gt() argument.
9634 (greater_than_spec_func): Adjust for expecting only numbers,
9635 if there are more than two numbers, compare the last two.
9636
9637 2016-02-19 Jonathan Wakely <jwakely@redhat.com>
9638
9639 * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
9640 -Wnarrowing with -std.
9641
9642 2016-02-19 Jakub Jelinek <jakub@redhat.com>
9643
9644 PR c++/69851
9645 * expr.c (store_field): Don't use bit-field path if exp is
9646 COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
9647 different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
9648 and the assignment can be performed by bitwise copy. Formatting
9649 fix.
9650
9651 PR middle-end/69838
9652 * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
9653 call copy_reg_eh_region_note_forward on before and/or after sequences
9654 and remove note from insn if it no longer can throw.
9655
9656 PR target/69820
9657 * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
9658 if TARGET_AVX512BW.
9659
9660 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9661
9662 * config/s390/vector.md: Add missing commutative operand markers
9663 to the patterns which qualify for one.
9664 * config/s390/vx-builtins.md: Likewise.
9665
9666 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9667
9668 * config/s390/vector.md (VI, VI_QHS): Add single element vector
9669 types to mode iterators.
9670 (vec_double): ... and mode attribute.
9671 * config/s390/vx-builtins.md (non_vec_int): Likewise.
9672
9673 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9674
9675 * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
9676 Change the predicate of op2 from nonimmediate to general and let
9677 reload fix it if necessary.
9678
9679 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9680
9681 * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
9682
9683 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9684
9685 * config/s390/s390.c (s390_expand_vcond): Use the compare operand
9686 mode.
9687
9688 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9689
9690 * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
9691 * config/s390/s390.c (s390_expand_vec_movstr): New function.
9692 * config/s390/s390.md ("movstr<P:mode>"): Call
9693 s390_expand_vec_movstr.
9694
9695 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9696
9697 * config/s390/s390.md: Add missing output modifier for operand 1
9698 to print it as address properly.
9699
9700 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9701
9702 * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
9703 * config/s390/2964.md: New file.
9704 * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
9705 of insn grouping attributes depending on the CPU level.
9706 (s390_get_unit_mask): New function.
9707 (s390_sched_score): Remove the OOO from the scheduling macros.
9708 Add loop to calculate a score for the instruction mix.
9709 (s390_sched_reorder): Likewise plus improve debug output.
9710 (s390_sched_variable_issue): Rename macros as above. Calculate
9711 the unit distances after actually scheduling an insn. Improve
9712 debug output.
9713 (s390_sched_init): Clear last_scheduled_unit_distance array.
9714 * config/s390/s390.md: Include 2964.md.
9715
9716 2016-02-18 Jakub Jelinek <jakub@redhat.com>
9717
9718 PR target/69671
9719 * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
9720 *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
9721 *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
9722 *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
9723 *avx512f_<code>v8div16qi2_mask_1): New insns.
9724
9725 2016-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
9726
9727 PR target/68404
9728 * config/rs6000/predicates.md (fusion_gpr_addis): Revert
9729 2016-02-09 change.
9730
9731 * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
9732 earlyclobber from target. Use wF constraint for fused memory
9733 address.
9734 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
9735
9736 2016-02-18 Jakub Jelinek <jakub@redhat.com>
9737 Martin Liska <mliska@suse.cz>
9738
9739 PR sanitizer/69863
9740 * cfgexpand.c (asan_sanitize_stack_p): New function.
9741 (partition_stack_vars): Use the function.
9742 (expand_stack_vars): Likewise.
9743 (defer_stack_allocation): Likewise.
9744 (expand_used_vars): Likewise.
9745
9746 2016-02-18 Richard Biener <rguenther@suse.de>
9747
9748 PR middle-end/69553
9749 * fold-const.c (operand_equal_p): Properly compare offsets for
9750 IMAGPART_EXPR and ARRAY_REF.
9751
9752 2016-02-18 Nick Clifton <nickc@redhat.com>
9753
9754 PR target/62254
9755 PR target/69610
9756 * config/arm/arm.c (arm_option_override_internal): Disable
9757 interworking if the target does not support thumb instructions.
9758 (arm_reload_in_hi): Handle the case where a register to register
9759 move needs reloading because there is no simple pattern to handle
9760 it.
9761 (arm_reload_out_hi): Likewise.
9762
9763 2016-02-18 Richard Biener <rguenther@suse.de>
9764
9765 PR middle-end/69854
9766 * match.pd: Don't use fold_binary or fold_unary for folding
9767 constants.
9768
9769 2016-02-17 Jakub Jelinek <jakub@redhat.com>
9770
9771 PR c++/69850
9772 * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
9773 on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
9774 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
9775 warn on gimple_no_warning_p statements.
9776
9777 2016-02-17 Jonathan Wakely <jwakely@redhat.com>
9778
9779 * doc/extend.texi (C++ Attributes): Correct description of
9780 warn_unused type attribute.
9781
9782 2016-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9783
9784 * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
9785 correct instruction.
9786
9787 2016-02-17 Richard Biener <rguenther@suse.de>
9788
9789 PR rtl-optimization/69609
9790 * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
9791 (find_traces_1_round): When ending a trace update cached priority
9792 of successors.
9793 (bb_to_key): Use cached priority when available.
9794 (copy_bb): Initialize cached priority.
9795 (reorder_basic_blocks_software_trace_cache): Likewise.
9796
9797 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9798
9799 PR target/69161
9800 * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
9801 New predicate.
9802 (aarch64_comparison_operator): Break overly long line into two.
9803 (aarch64_comparison_operation): Likewise.
9804 * config/aarch64/aarch64.md (cstorecc4): Use
9805 aarch64_comparison_operator_mode instead of
9806 aarch64_comparison_operator.
9807 (cstore<mode>4): Likewise.
9808 (aarch64_cstore<mode>): Likewise.
9809 (*cstoresi_insn_uxtw): Likewise.
9810 (cstore<mode>_neg): Likewise.
9811 (*cstoresi_neg_uxtw): Likewise.
9812
9813 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9814
9815 PR target/69161
9816 * config/arm/predicates.md (arm_comparison_operator_mode):
9817 New predicate.
9818 * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
9819 instead of arm_comparison_operator.
9820 (*mov_negscc): Likewise.
9821 (*mov_notscc): Likewise.
9822 * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
9823 (*thumb2_mov_negscc): Likewise.
9824 (*thumb2_mov_negscc_strict_it): Likewise.
9825 (*thumb2_mov_notscc): Likewise.
9826 (*thumb2_mov_notscc_strict_it): Likewise.
9827
9828 2016-02-17 Wilco Dijkstra <wdijkstr@arm.com>
9829
9830 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
9831 Add missing return.
9832
9833 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
9834
9835 * config/visium/visium.c (machine_libfunc_index): New enum.
9836 (machine_libfuncs): New structure.
9837 (visium_libfuncs): New static variable.
9838 (TARGET_INIT_LIBFUNCS): Define to...
9839 (visium_init_libfuncs): ...this. New function.
9840 (expand_block_move_4): Use the appropriate libfunc.
9841 (expand_block_move_2): Likewise.
9842 (expand_block_move_1): Likewise.
9843 (expand_block_set_4): Likewise.
9844 (expand_block_set_2): Likewise.
9845 (expand_block_set_1): Likewise.
9846 (visium_trampoline_init): Likewise.
9847
9848 2016-02-17 Nick Clifton <nickc@redhat.com>
9849
9850 * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
9851 TI's devices.csv file as of March 2016.
9852
9853 2016-02-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
9854
9855 PR Target/48344
9856 * opts-global.c (handle_common_deferred_options): Introduce and
9857 initialize two global variables to remember command-line options
9858 specifying a stack-limiting register.
9859 * opts.h: Add extern declarations of the two new global variables.
9860 * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
9861 variable based on the values of the two new global variables.
9862
9863 2016-02-16 Jakub Jelinek <jakub@redhat.com>
9864
9865 PR c/69835
9866 * common.opt (Wnonnull-compare): New warning.
9867 * doc/invoke.texi (-Wnonnull): Remove text about comparison
9868 of arguments against NULL.
9869 (-Wnonnull-compare): Document.
9870 * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
9871 * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
9872 * passes.def (pass_warn_nonnull_compare): Add.
9873 * gimple-ssa-nonnull-compare.c: New file.
9874
9875 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
9876
9877 * config/aarch64/aarch64.c (cortexa57_tunings): Remove
9878 AARCH64_EXTRA_TUNE_RECIP_SQRT.
9879
9880 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
9881
9882 * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
9883 reciprocal sqrt for -mlow-precision-recip-sqrt.
9884
9885 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
9886 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9887
9888 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
9889 always use lane loads to construct non-constant vectors.
9890
9891 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
9892
9893 * config/aarch64/aarch64.md
9894 (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
9895 constraints for operand 3.
9896 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
9897
9898 2016-02-16 Jakub Jelinek <jakub@redhat.com>
9899 Richard Biener <rguenther@suse.de>
9900
9901 PR tree-optimization/69820
9902 * tree-vect-patterns.c (type_conversion_p): Return false if
9903 *orig_type is unsigned single precision or boolean.
9904 (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
9905 Formatting fix.
9906
9907 2016-02-16 Jakub Jelinek <jakub@redhat.com>
9908
9909 PR rtl-optimization/69764
9910 PR rtl-optimization/69771
9911 * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
9912 op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
9913
9914 2016-02-16 Richard Biener <rguenther@suse.de>
9915
9916 PR tree-optimization/69776
9917 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
9918 sets from caller.
9919 (indirect_refs_may_alias_p): Likewise.
9920 (refs_may_alias_p_1): Pass alias sets as from ao_ref.
9921 * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
9922 according to tbaa_p.
9923 * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
9924 (optimize_stmt): For redundant store discovery do not allow tbaa.
9925
9926 2016-02-16 Bernd Schmidt <bschmidt@redhat.com>
9927
9928 PR tree-optimization/69714
9929 * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
9930 Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
9931
9932 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
9933
9934 * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
9935 * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
9936 (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
9937 * config/arc/arc.c (arc_init): Check FPU options.
9938 (get_arc_condition_code): Handle new CC_FPU* modes.
9939 (arc_select_cc_mode): Likewise.
9940 (arc_conditional_register_usage): Allow 64 bit datum into even-odd
9941 register pair only. Allow access for ARCv2 accumulator.
9942 (gen_compare_reg): Whenever we have FPU support use FPU compare
9943 instructions.
9944 (arc_reorg): Don't generate brcc insns when FPU compare
9945 instructions are involved.
9946 * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
9947 (TARGET_OPTFPE): Add condition when ARC EM can use optimized
9948 floating point emulation.
9949 (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
9950 (REVERSE_CONDITION): Add new CC_FPU* modes.
9951 (TARGET_FP_SP_BASE): Define.
9952 (TARGET_FP_DP_BASE): Likewise.
9953 (TARGET_FP_SP_FUSED): Likewise.
9954 (TARGET_FP_DP_FUSED): Likewise.
9955 (TARGET_FP_SP_CONV): Likewise.
9956 (TARGET_FP_DP_CONV): Likewise.
9957 (TARGET_FP_SP_SQRT): Likewise.
9958 (TARGET_FP_DP_SQRT): Likewise.
9959 (TARGET_FP_DP_AX): Likewise.
9960 * config/arc/arc.md (ARCV2_ACC): New constant.
9961 (type): New fpu type attribute.
9962 (SDF): Conditional iterator.
9963 (cstore<mode>, cbranch<mode>): Change expand condition.
9964 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
9965 handles FPU/FPX cases as well.
9966 * config/arc/arc.opt (mfpu): New option.
9967 * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
9968 Renamed.
9969 (adddf3, muldf3, subdf3): Removed.
9970 * config/arc/predicates.md (proper_comparison_operator): Recognize
9971 CC_FPU* modes.
9972 * config/arc/fpu.md: New file.
9973 * doc/invoke.texi (ARC Options): Document mfpu option.
9974
9975 2016-02-16 Richard Biener <rguenther@suse.de>
9976
9977 PR rtl-optimization/69291
9978 * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
9979 noce_operand_ok check.
9980
9981 2016-02-16 Tom de Vries <tom@codesourcery.com>
9982
9983 PR lto/67709
9984 * omp-low.c (simd_clone_create): Remove call to
9985 symtab->call_cgraph_insertion_hooks.
9986
9987 2016-02-16 Jakub Jelinek <jakub@redhat.com>
9988
9989 PR tree-optimization/69802
9990 * tree-ssa-reassoc.c (update_range_test): If op is
9991 SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
9992 op == 1 test of precision 1 integral op, otherwise handle
9993 that case as op itself. Fix up formatting.
9994 (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
9995 up formatting.
9996
9997 2016-02-16 Richard Biener <rguenther@suse.de>
9998
9999 PR tree-optimization/69586
10000 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
10001 types for conversion sources.
10002
10003 2016-02-16 Richard Biener <rguenther@suse.de>
10004
10005 PR middle-end/69801
10006 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
10007 mask OEP_ADDRESS_OF.
10008
10009 2016-02-16 Alan Modra <amodra@gmail.com>
10010
10011 PR target/68973
10012 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
10013 (p8_mtvsrd_df, p8_mtvsrd_sf): New.
10014 (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
10015 (p8_mtvsrwz): New.
10016 (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
10017 (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
10018 (p8_fmrgow_<mode>): Likewise.
10019 (reload_vsx_from_gpr<mode>): Make clobber IF. Adjust for above
10020 changes.
10021 (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
10022 (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
10023 to use movdi_internal64. Remove op0_di.
10024 * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
10025
10026 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
10027
10028 Add support for the FCCMP insn types
10029
10030 * config/aarch64/aarch64.md (fccmp): Change insn type.
10031 (fccmpe): Likewise.
10032 * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
10033 * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
10034 * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
10035 * config/arm/xgene1.md (xgene1_fcmp): Likewise.
10036 * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
10037 * config/arm/types.md (fccmps): Add new insn type.
10038 (fccmpd): Likewise.
10039
10040 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
10041
10042 * alias.c (get_alias_set): Fix a typo in comment.
10043
10044 2016-02-15 Richard Biener <rguenther@suse.de>
10045
10046 PR tree-optimization/69595
10047 * match.pd: Complete range test simplification to true.
10048
10049 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
10050
10051 PR rtl-optimization/69648
10052 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
10053 pic_offset_table_rtx.
10054
10055 PR rtl-optimization/69752
10056 * ira.c (update_equiv_regs): When looking for more than a single SET,
10057 also take other side effects into account.
10058
10059 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
10060
10061 * config/s390/s390.c (s390_function_profiler): Add a new sequence
10062 for z900+ CPUs in 31-bit mode.
10063
10064 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
10065
10066 * common/config/s390/s390-common.c (s390_supports_split_stack):
10067 New function.
10068 (TARGET_SUPPORTS_SPLIT_STACK): New macro.
10069 * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
10070 * config/s390/s390.c (struct machine_function): New field
10071 split_stack_varargs_pointer.
10072 (s390_register_info): Mark r12 as clobbered if it'll be used as temp
10073 in s390_emit_prologue.
10074 (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
10075 vararg pointer.
10076 (morestack_ref): New global.
10077 (SPLIT_STACK_AVAILABLE): New macro.
10078 (s390_expand_split_stack_prologue): New function.
10079 (s390_live_on_entry): New function.
10080 (s390_va_start): Use split-stack vararg pointer if appropriate.
10081 (s390_asm_file_end): Emit the split-stack note sections.
10082 (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
10083 * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
10084 (UNSPECV_SPLIT_STACK_CALL): New unspec.
10085 (UNSPECV_SPLIT_STACK_DATA): New unspec.
10086 (split_stack_prologue): New expand.
10087 (split_stack_space_check): New expand.
10088 (split_stack_data): New insn.
10089 (split_stack_call): New expand.
10090 (split_stack_call_*): New insn.
10091 (split_stack_cond_call): New expand.
10092 (split_stack_cond_call_*): New insn.
10093
10094 2016-02-15 Richard Biener <rguenther@suse.de>
10095
10096 PR tree-optimization/69783
10097 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
10098 Add trivially correct cases.
10099
10100 2016-02-15 Tom de Vries <tom@codesourcery.com>
10101
10102 PR lto/69655
10103 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
10104 do_force_output.
10105 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
10106
10107 2016-02-15 Richard Biener <rguenther@suse.de>
10108
10109 PR tree-optimization/69776
10110 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
10111 * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
10112 indicate whether we can use TBAA to disambiguate against stores.
10113 Use alias-set zero if not.
10114 (visit_reference_op_store): Do not use TBAA when looking up
10115 redundant stores.
10116 * tree-ssa-pre.c (compute_avail): Use TBAA here.
10117 (eliminate_dom_walker::before_dom_children): But not when looking
10118 up redundant stores.
10119
10120 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
10121
10122 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
10123
10124 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
10125
10126 * config/i386/znver1.md
10127 (znver1_pop, znver1_pop_mem,
10128 znver1_load_imov_double_store,
10129 znver1_load_imov_direct_store,
10130 znver1_load_imov_direct_load,
10131 znver1_load_imov_double_load): Add new.
10132 (znver1_insn, znver1_insn_load): Add icmov type.
10133 (znver1_sseavx_fma,
10134 znver1_sseavx_fma_load,
10135 znver1_avx256_fma,
10136 znver1_avx256_fma_load): Fix pipe usage.
10137
10138 2016-02-14 Alan Modra <amodra@gmail.com>
10139
10140 PR target/68973
10141 * reloads.c (find_reloads_address_1): For pre/post-inc/dec
10142 with an invalid hard reg, reload just the reg not the entire
10143 pre/post-inc/dec address expression.
10144
10145 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
10146
10147 PR target/67260
10148 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
10149 fixed R1_REG scratch reg.
10150 (sibcall_value_pcrel_fdpic): Likewise.
10151
10152 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
10153
10154 PR target/67636
10155 PR target/64345
10156 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
10157
10158 2016-02-12 Walter Lee <walt@tilera.com>
10159
10160 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
10161 * config/tilegx/t-tilegx: Likewise.
10162
10163 2016-02-12 David Malcolm <dmalcolm@redhat.com>
10164
10165 PR other/69554
10166 * diagnostic-show-locus.c (struct line_span): New struct.
10167 (layout::get_first_line): Delete.
10168 (layout::get_last_line): Delete.
10169 (layout::get_num_line_spans): New member function.
10170 (layout::get_line_span): Likewise.
10171 (layout::print_heading_for_line_span_index_p): Likewise.
10172 (layout::get_expanded_location): Likewise.
10173 (layout::calculate_line_spans): Likewise.
10174 (layout::m_first_line): Delete.
10175 (layout::m_last_line): Delete.
10176 (layout::m_line_spans): New field.
10177 (layout::layout): Update comment. Replace m_first_line and
10178 m_last_line with m_line_spans, replacing their initialization
10179 with a call to calculate_line_spans.
10180 (diagnostic_show_locus): When printing source lines and
10181 annotations, rather than looping over a single span
10182 of lines, instead loop over each line_span within
10183 the layout, with an inner loop over the lines within them.
10184 Call the context's start_span callback when changing line spans.
10185 * diagnostic.c (diagnostic_initialize): Initialize start_span.
10186 (diagnostic_build_prefix): Break out the building of the location
10187 part of the string into...
10188 (diagnostic_get_location_text): ...this new function, rewriting
10189 it from nested ternary expressions to a sequence of "if"
10190 statements.
10191 (default_diagnostic_start_span_fn): New function.
10192 * diagnostic.h (diagnostic_start_span_fn): New typedef.
10193 (diagnostic_context::start_span): New field.
10194 (default_diagnostic_start_span_fn): New prototype.
10195
10196 2016-02-12 David Malcolm <dmalcolm@redhat.com>
10197
10198 PR driver/69779
10199 * gcc.c (driver::finalize): Fix cleanup of "specs".
10200
10201 2016-02-12 David Malcolm <dmalcolm@redhat.com>
10202
10203 PR driver/69265
10204 PR driver/69453
10205 * gcc.c (driver::driver): Initialize m_option_suggestions.
10206 (driver::~driver): Clean up m_option_suggestions.
10207 (suggest_option): Convert to...
10208 (driver::suggest_option): ...this, and split out into
10209 driver::build_option_suggestions and find_closest_string.
10210 (driver::build_option_suggestions): New function, from
10211 first half of suggest_option. Special-case
10212 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
10213 the sanitizer_opts array. For options of enum types, add the
10214 various enum values to the candidate strings.
10215 (driver::handle_unrecognized_options): Remove "const".
10216 * gcc.h (driver::handle_unrecognized_options): Likewise.
10217 (driver::build_option_suggestions): New decl.
10218 (driver::suggest_option): New decl.
10219 (driver::m_option_suggestions): New field.
10220 * opts-common.c (add_misspelling_candidates): New function.
10221 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
10222 and make non-static.
10223 * opts.h (sanitizer_opts): New array decl.
10224 (add_misspelling_candidates): New function decl.
10225 * spellcheck.c (find_closest_string): New function.
10226 * spellcheck.h (find_closest_string): New function decl.
10227
10228 2016-02-12 Jakub Jelinek <jakub@redhat.com>
10229
10230 PR rtl-optimization/69764
10231 PR rtl-optimization/69771
10232 * optabs.c (expand_binop_directly): For shift_optab_p, force
10233 convert_modes with VOIDmode if xop1 has VOIDmode.
10234
10235 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
10236
10237 PR target/69729
10238 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
10239 to correctly determine instrumentation thunks.
10240
10241 2016-02-12 Jakub Jelinek <jakub@redhat.com>
10242
10243 PR ipa/69241
10244 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
10245 type by reference, force lhs on the call.
10246
10247 PR ipa/68672
10248 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
10249 Compute retval and retbnd early in all cases if split_part_return_p
10250 and return_bb is not EXIT. Remove all clobber stmts and reset
10251 all debug stmts that refer to SSA_NAMEs defined in split part,
10252 except if it is retval, in that case replace the old retval with the
10253 lhs of the call to the split part.
10254
10255 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
10256
10257 revert:
10258 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
10259
10260 PR middle-end/66726
10261 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
10262 whose result is used in PHI.
10263 (maybe_optimize_range_tests): Likewise.
10264 (final_range_test_p): Likweise.
10265
10266 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
10267
10268 PR middle-end/66726
10269 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
10270 whose result is used in PHI.
10271 (maybe_optimize_range_tests): Likewise.
10272 (final_range_test_p): Likweise.
10273
10274 2016-02-12 Jakub Jelinek <jakub@redhat.com>
10275
10276 * cgraph.c: Spelling fixes - behaviour -> behavior and
10277 neighbour -> neighbor.
10278 * target.def: Likewise.
10279 * sel-sched.c: Likewise.
10280 * config/mips/mips.c: Likewise.
10281 * config/arc/arc.md: Likewise.
10282 * config/arm/cortex-a57.md: Likewise.
10283 * config/arm/arm.c: Likewise.
10284 * config/arm/neon.md: Likewise.
10285 * config/arm/arm-c.c: Likewise.
10286 * config/vms/vms-c.c: Likewise.
10287 * config/s390/s390.c: Likewise.
10288 * config/i386/znver1.md: Likewise.
10289 * config/i386/i386.c: Likewise.
10290 * config/ia64/hpux-unix2003.h: Likewise.
10291 * config/msp430/msp430.md: Likewise.
10292 * config/rx/rx.c: Likewise.
10293 * config/rx/rx.md: Likewise.
10294 * config/aarch64/aarch64-simd.md: Likewise.
10295 * config/aarch64/aarch64.c: Likewise.
10296 * config/nvptx/nvptx.c: Likewise.
10297 * config/bfin/bfin.c: Likewise.
10298 * config/cris/cris.opt: Likewise.
10299 * config/rs6000/rs6000.c: Likewise.
10300 * target.h: Likewise.
10301 * spellcheck.c: Likewise.
10302 * ira-build.c: Likewise.
10303 * tree-inline.c: Likewise.
10304 * builtins.c: Likewise.
10305 * lra-constraints.c: Likewise.
10306 * explow.c: Likewise.
10307 * hwint.h: Likewise.
10308 * targhooks.c: Likewise.
10309 * tree-vect-data-refs.c: Likewise.
10310 * expr.c: Likewise.
10311 * doc/tm.texi: Likewise.
10312 * doc/extend.texi: Likewise.
10313 * doc/install.texi: Likewise.
10314 * doc/md.texi: Likewise.
10315 * tree-ssa-tail-merge.c: Likewise.
10316 * sched-int.h: Likewise.
10317 * match.pd: Likewise.
10318 * sched-ebb.c: Likewise.
10319 * target.def (omit_struct_return_reg): Likewise.
10320 * gimple-ssa-isolate-paths.c: Likewise.
10321 (find_implicit_erroneous_behaviour): Renamed to...
10322 (find_implicit_erroneous_behavior): ... this.
10323 (find_explicit_erroneous_behaviour): Renamed to...
10324 (find_explicit_erroneous_behavior): ... this.
10325 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
10326
10327 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
10328
10329 PR rtl-optimization/64682
10330 PR rtl-optimization/69567
10331 PR rtl-optimization/69737
10332 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
10333 in I2 as well, just lose it.
10334
10335 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10336
10337 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
10338 New variable.
10339 (aarch64_last_printed_tune_string): Likewise.
10340 (aarch64_declare_function_name): Only output .arch assembler
10341 directive if it will be different from the previously output
10342 directive. Same for .tune comment but only if -dA is set.
10343 (aarch64_start_file): New function.
10344 (TARGET_ASM_FILE_START): Define.
10345
10346 2016-02-11 David Malcolm <dmalcolm@redhat.com>
10347
10348 PR plugins/69758
10349 * Makefile.in (PLUGIN_HEADERS): Add params.list.
10350
10351 2016-02-11 Jakub Jelinek <jakub@redhat.com>
10352
10353 PR target/65313
10354 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
10355 -Wmaybe-uninitialized warning.
10356
10357 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
10358
10359 PR target/69713
10360 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
10361
10362 2016-02-11 Richard Biener <rguenther@suse.de>
10363
10364 PR rtl-optimization/69291
10365 * ifcvt.c (noce_try_store_flag_constants): Do not allow
10366 subexpressions affected by changing the result.
10367
10368 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
10369
10370 PR target/69148
10371 * lra-constraints.c (curr_insn_transform): Find in/out operands
10372 for secondary memory moves. Update dups.
10373
10374 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
10375
10376 PR tree-optimization/69652
10377 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
10378 to nested loop, did source re-formatting, skip debug statements,
10379 add check on statement with volatile operand, remove dead scalar
10380 statements.
10381
10382 2016-02-10 Jakub Jelinek <jakub@redhat.com>
10383 Patrick Palka <ppalka@gcc.gnu.org>
10384
10385 PR ipa/69241
10386 PR c++/69649
10387 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
10388 calls if the return type is TREE_ADDRESSABLE.
10389 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
10390 * ipa-split.c (split_function): Fix doubled "we" in comment.
10391 Use void return type for the split part even if
10392 !split_point->split_part_set_retval.
10393
10394 2016-02-10 Bin Cheng <bin.cheng@arm.com>
10395
10396 PR tree-optimization/68021
10397 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
10398 when computing the value of biv cand by itself.
10399
10400 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
10401
10402 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
10403 (cortexa57_tunings): Likewise.
10404 (cortexa72_tunings): Likewise.
10405 (arch_macro_fusion_pair_p): Add support for AES fusion.
10406 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
10407 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
10408 Allow virtual registers before reload so early scheduling works.
10409 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
10410 correct latency and pipeline.
10411 (cortex_a57_crypto_complex): Likewise.
10412 (cortex_a57_crypto_xor): Likewise.
10413 (define_bypass): Add AES bypass.
10414
10415 2016-02-10 Richard Biener <rguenther@suse.de>
10416
10417 PR tree-optimization/69726
10418 * passes.def: Add DCE pass before late uninit.
10419 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
10420 really fixup if-conversions job.
10421
10422 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
10423
10424 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
10425 (arm_cortex_a57_tune): Likewise.
10426 (aarch_macro_fusion_pair_p): Add support for AES fusion.
10427 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
10428
10429 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
10430
10431 * timevar.def (TV_PHASE_DBGINFO): Delete.
10432 (TV_PHASE_CHECK_DBGINFO): Likewise.
10433 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
10434
10435 2016-02-10 Richard Biener <rguenther@suse.de>
10436
10437 PR tree-optimization/69719
10438 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
10439 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
10440
10441 2016-02-09 Andrew Pinski <apinski@cavium.com>
10442
10443 PR tree-opt/69282
10444 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
10445 get_vcond_mask_icode returns false.
10446
10447 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
10448
10449 PR target/68404
10450 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
10451 an ADDIS that adds a pointer to a large constant that sets the
10452 upper16 bits with a load operation.
10453
10454 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
10455
10456 PR target/68532
10457 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
10458 order.
10459 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
10460 endian.
10461 (vzipq_s16): Likewise.
10462 (vzipq_s32): Likewise.
10463 (vzipq_f32): Likewise.
10464 (vzipq_u8): Likewise.
10465 (vzipq_u16): Likewise.
10466 (vzipq_u32): Likewise.
10467 (vzipq_p8): Likewise.
10468 (vzipq_p16): Likewise.
10469
10470 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
10471
10472 PR target/68532
10473 * config/arm/arm.c (neon_endian_lane_map): New function.
10474 (neon_vector_pair_endian_lane_map): New function.
10475 (arm_evpc_neon_vuzp): Allow for big endian lane order.
10476 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
10477 endian.
10478 (vuzpq_s16): Likewise.
10479 (vuzpq_s32): Likewise.
10480 (vuzpq_f32): Likewise.
10481 (vuzpq_u8): Likewise.
10482 (vuzpq_u16): Likewise.
10483 (vuzpq_u32): Likewise.
10484 (vuzpq_p8): Likewise.
10485 (vuzpq_p16): Likewise.
10486
10487 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
10488
10489 PR target/69634
10490 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
10491 debug insns.
10492
10493 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
10494
10495 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
10496 truncate const_int operand 1 to QImode.
10497
10498 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
10499
10500 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
10501 corresponding to an abnormal edge.
10502
10503 2016-02-09 Tom de Vries <tom@codesourcery.com>
10504
10505 PR tree-optimization/69599
10506 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
10507 function.
10508 (find_func_aliases_for_builtin_call, find_func_clobbers)
10509 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
10510 partition.
10511
10512 2016-02-09 Richard Biener <rguenther@suse.de>
10513
10514 PR tree-optimization/69715
10515 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
10516 LHS on calls as non-rewritable.
10517
10518 2016-02-09 Tom de Vries <tom@codesourcery.com>
10519
10520 PR lto/69707
10521 * lto-wrapper.c (append_diag_options): New function.
10522 (compile_offload_image): Call append_diag_options.
10523
10524 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
10525
10526 PR other/69722
10527 * doc/extend.texi (Flag Output Operands): Correct sectioning.
10528 Minor copy-edit to fix verb tenses.
10529
10530 2016-02-08 Jakub Jelinek <jakub@redhat.com>
10531
10532 PR tree-optimization/69209
10533 * ipa-split.c (split_function): If split part is not
10534 returning retval, retval has gimple type but is not
10535 gimple value, force it into a SSA_NAME first.
10536
10537 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
10538
10539 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
10540 outdated section.
10541
10542 2016-02-08 Jason Merrill <jason@redhat.com>
10543
10544 PR c++/69631
10545 * convert.c (convert_to_integer_1): Check dofold on truncation
10546 distribution.
10547 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
10548 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
10549 Rename from *_nofold.
10550 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
10551 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
10552
10553 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
10554
10555 PR target/60410
10556 * tree.c (build_common_tree_nodes): Remove short_double argument.
10557 All callers changed.
10558 * tree.h (build_common_tree_nodes): Adjust declaration.
10559 * doc/invoke.texi (-fshort-double): Remove documentation.
10560 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
10561 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
10562 * lto-wrapper.c (merge_and_complain, append_compiler_options)
10563 (append_linker_options): Don't handle OPT_fshort_double.
10564
10565 PR rtl-optimization/68730
10566 * lra-remat.c (insn_to_cand_activation): New static variable.
10567 (lra_remat): Allocate and free it.
10568 (create_cand): New arg activation. Initialize a field in
10569 insn_to_cand_activation if it is nonnull.
10570 (create_cands): Pass the activation insn to create_cand when making
10571 a candidate involving an output reload. Reorganize code a little.
10572 (do_remat): Keep track of active status of candidates in a separate
10573 bitmap.
10574
10575 2016-02-08 Richard Biener <rguenther@suse.de>
10576
10577 PR tree-optimization/69719
10578 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
10579 Properly use absolute of the difference of the two offsets to
10580 compare or adjust the segment length.
10581
10582 2016-02-08 Richard Biener <rguenther@suse.de>
10583 Jeff Law <law@redhat.com>
10584
10585 PR target/68273
10586 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
10587 types for anonymous SSA names.
10588
10589 2016-02-08 Richard Biener <rguenther@suse.de>
10590
10591 PR rtl-optimization/69274
10592 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
10593
10594 2016-02-08 Jeff Law <law@redhat.com>
10595
10596 PR tree-optimization/65917
10597 * tree-ssa-dom.c (record_temporary_equivalences): Record both
10598 equivalences from if (x == y) style conditionals.
10599 (loop_depth_of_name): Remove.
10600 (record_equality): Remove loop depth check.
10601 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
10602 (const_and_copies::record_const_or_copy_raw): New member function.
10603 * tree-ssa-scopedtables.c
10604 (const_and_copies::record_const_or_copy_raw): New, factored out of
10605 (const_and_copies::record_const_or_copy): Call new member function.
10606
10607 2016-02-05 Jeff Law <law@redhat.com>
10608
10609 PR tree-optimization/68541
10610 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
10611 (count_stmts_in_block): New function.
10612 (poor_ifcvt_candidate_code): Likewise.
10613 (is_feasible_trace): Add some heuristics to determine when path
10614 splitting is profitable.
10615 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
10616 is a diamond with a single exit.
10617
10618 2016-02-05 Martin Sebor <msebor@redhat.com>
10619
10620 PR c++/69662
10621 * doc/invoke.texi: Update -Wplacement-new to take an optional
10622 argument.
10623
10624 2016-02-06 Richard Henderson <rth@redhat.com>
10625
10626 PR c/69643
10627 * tree.c (tree_nop_conversion_p): Do not strip casts into or
10628 out of non-standard address spaces.
10629
10630 2016-02-05 Jakub Jelinek <jakub@redhat.com>
10631
10632 PR rtl-optimization/69691
10633 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
10634
10635 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
10636
10637 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
10638 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
10639 (*ieee128_mfvsrd_64bit): Likewise.
10640 (*ieee128_mfvsrd_32bit): Likewise.
10641
10642 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
10643
10644 PR target/69369
10645 Revert r232560:
10646 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
10647
10648 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
10649 instrumented_version.
10650
10651 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
10652
10653 * doc/invoke.texi (Optimize Options): In table of --param options
10654 rename second occurrence of tracer-min-branch-ratio to
10655 tracer-min-branch-probability, rename
10656 tracer-min-branch-ratio-feedback to
10657 tracer-min-branch-probability-feedback and clarify description,
10658 rename sched-spec-state-edge-prob-cutoff to
10659 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
10660 to selsched-insns-to-rename, rename lto-minpartition to
10661 lto-min-partition, delete reorder-blocks-duplicate and
10662 reorder-blocks-duplicate-feedback.
10663
10664 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10665
10666 * config/s390/s390.c (s390_register_info_set_ranges): Remove
10667 superfluous loops.
10668
10669 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
10670
10671 * doc/extend.texi: S/390: Correct some typos.
10672
10673 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10674
10675 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
10676
10677 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10678
10679 PR target/69625
10680 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
10681 (s390_register_info_gprtofpr): Use new macros above.
10682 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
10683 its name.
10684 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
10685 its name. Adjust restore and save gpr ranges.
10686 (s390_register_info_set_ranges): New function.
10687 (s390_register_info): Use new macros above. Call
10688 s390_register_info_set_ranges.
10689 (s390_optimize_register_info): Likewise.
10690 (s390_hard_regno_rename_ok): Use new macros.
10691 (s390_hard_regno_scratch_ok): Likewise.
10692 (s390_emit_epilogue): Likewise.
10693 (s390_can_use_return_insn): Likewise.
10694 (s390_optimize_prologue): Likewise.
10695 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
10696
10697 2016-02-05 Jakub Jelinek <jakub@redhat.com>
10698
10699 PR bootstrap/69677
10700 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
10701 alignment fixes.
10702 (ix86_option_override_internal): Disable TARGET_STV even for
10703 -m{incoming,preferred}-stack-boundary=3.
10704
10705 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10706
10707 * config.gcc: Mark deprecated rtems targets as obsolete.
10708
10709 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
10710
10711 PR rtl-optimization/64682
10712 PR rtl-optimization/69567
10713 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
10714 before I2 only if the register is both used and set in I2.
10715
10716 2016-02-04 DJ Delorie <dj@redhat.com>
10717
10718 * config/msp430/msp430.c (msp430_start_function): Add function type.
10719
10720 2016-02-04 Jakub Jelinek <jakub@redhat.com>
10721
10722 PR fortran/69368
10723 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
10724
10725 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
10726
10727 PR rtl-optimization/69577
10728 Revert:
10729 2015-10-29 Richard Henderson <rth@redhat.com>
10730
10731 PR target/68124
10732 PR rtl-opt/67609
10733 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
10734 sse check to the exact conditions of PR 67609.
10735
10736 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
10737
10738 PR target/69667
10739 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
10740 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
10741 not allowed into the traditional Altivec registers.
10742 (movtd_64bit_nodm): Likewise.
10743 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
10744
10745 2016-02-04 David Malcolm <dmalcolm@redhat.com>
10746
10747 * config/aarch64/cortex-a57-fma-steering.c
10748 (aarch64_register_fma_steering): Remove "static" from arguments
10749 to register_pass.
10750
10751 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
10752
10753 PR target/69619
10754 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
10755 twice when complex.
10756
10757 2016-02-04 Mike Frysinger <vapier@gentoo.org>
10758
10759 * doc/invoke.texi: Delete -mno-fma4.
10760
10761 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
10762
10763 PR rtl-optimization/69577
10764 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
10765 (find_subregs_of_mode): Update accordingly. Iterate over partial
10766 definitions.
10767
10768 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
10769
10770 * config/arm/arm-protos.h (neon_reinterpret): Remove.
10771 * config/arm/arm.c (neon_reinterpret): Remove.
10772 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
10773 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
10774 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
10775 vreinterpretti): Remove.
10776 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
10777 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
10778 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
10779 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
10780 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
10781 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
10782 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
10783 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
10784 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
10785 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
10786 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
10787 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
10788 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
10789 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
10790 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
10791 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
10792 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
10793 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
10794 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
10795 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
10796 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
10797 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
10798 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
10799 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
10800 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
10801 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
10802 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
10803 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
10804 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
10805 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
10806 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
10807 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
10808 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
10809 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
10810 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
10811 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
10812 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
10813 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
10814 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
10815 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
10816 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
10817 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
10818 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
10819 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
10820 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
10821 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
10822 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
10823 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
10824 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
10825 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
10826 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
10827 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
10828 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
10829 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
10830 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
10831 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
10832 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
10833 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
10834 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
10835 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
10836 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
10837 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
10838 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
10839 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
10840 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
10841 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
10842 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
10843 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
10844 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
10845 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
10846 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
10847 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
10848 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
10849 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
10850 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
10851 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
10852 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
10853 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
10854 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
10855 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
10856 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
10857 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
10858 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
10859 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
10860 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
10861 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
10862 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
10863 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
10864 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
10865 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
10866 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
10867 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
10868 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
10869 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
10870 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
10871 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
10872 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
10873 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
10874 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
10875 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
10876 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
10877 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
10878 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
10879
10880 2016-02-04 Martin Liska <mliska@suse.cz>
10881
10882 PR sanitizer/69276
10883 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
10884 that are gimple_store_p.
10885 (maybe_instrument_call): Likewise.
10886
10887 2016-02-04 Bin Cheng <bin.cheng@arm.com>
10888
10889 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
10890 register scaling out of memory reference and comment why.
10891
10892 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10893
10894 PR target/65932
10895 PR target/67714
10896 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
10897 folding the source of a SET.
10898
10899 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10900
10901 PR target/65932
10902 PR target/67714
10903 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
10904 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
10905
10906 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
10907
10908 PR target/65932
10909 PR target/67714
10910 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
10911 HImode.
10912
10913 2016-02-04 Christian Bruel <christian.bruel@st.com>
10914
10915 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
10916 * config/arm/arm.c (arm_set_current_function): Likewise.
10917
10918 2016-02-04 Jakub Jelinek <jakub@redhat.com>
10919 Ilya Enkovich <enkovich.gnu@gmail.com>
10920 H.J. Lu <hongjiu.lu@intel.com>
10921
10922 PR target/69454
10923 * config/i386/i386.c (convert_scalars_to_vector): Remove
10924 stack alignment fixes.
10925 (ix86_option_override_internal): Disable TARGET_STV if stack
10926 might not be aligned enough.
10927 (ix86_minimum_alignment): Assert that TARGET_STV is false.
10928
10929 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
10930
10931 * config/i386/x86-tune.def: Disable default prefetching
10932 for -march=znver1.
10933
10934 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
10935 Vladimir Makarov <vmakarov@redhat.com>
10936
10937 PR target/69461
10938 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
10939 in validating fused toc addresses.
10940
10941 2016-02-03 Jakub Jelinek <jakub@redhat.com>
10942
10943 PR c/69627
10944 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
10945 range->m_caret fields if range->m_show_caret_p is false.
10946
10947 PR target/69644
10948 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
10949 Force oldval into register if it does not satisfy reg_or_short_operand
10950 predicate. Fix up formatting.
10951
10952 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
10953 Alexandre Oliva <aoliva@redhat.com>
10954
10955 PR target/69461
10956 * lra-constraints.c (simplify_operand_subreg): Check additionally
10957 address validity after potential reloading.
10958 (process_address_1): Check insns validity. In case of failure do
10959 nothing.
10960
10961 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
10962
10963 PR target/69118
10964 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
10965 Fix target.
10966
10967 2016-02-02 Jakub Jelinek <jakub@redhat.com>
10968
10969 * wide-int.cc (canonize_uhwi): New function.
10970 (wi::divmod_internal): Use it.
10971
10972 2016-02-02 James Norris <jnorris@codesourcery.com
10973
10974 * gimplify.c (omp_notice_variable): Add usage check.
10975
10976 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
10977
10978 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
10979 like LE, GE, LT, GT when emitting relational operator.
10980
10981 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
10982
10983 * ira-costs.c (find_costs_and_classes): Add extra argument.
10984 * target.def (ira_change_pseudo_allocno_class): Add parameter.
10985 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
10986 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
10987 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
10988 Add best_class parameter, and return it if not ALL_REGS.
10989 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
10990 Add parameter.
10991 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
10992 Update target hook.
10993
10994 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
10995
10996 * config/aarch64/aarch64.c
10997 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
10998 (aarch64_ira_change_pseudo_allocno_class): New function.
10999
11000 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
11001
11002 PR target/67032
11003 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
11004
11005 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
11006
11007 * config/avr/avr.c (avr_option_override): Set
11008 PARAM_ALLOW_STORE_DATA_RACES to 1.
11009
11010 2016-02-02 Richard Biener <rguenther@suse.de>
11011
11012 PR tree-optimization/69595
11013 * match.pd: Add range test simplifications to true/false.
11014
11015 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
11016
11017 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
11018 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
11019 instead.
11020
11021 2016-02-02 Richard Biener <rguenther@suse.de>
11022
11023 PR tree-optimization/69606
11024 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
11025 info on the result before moving a stmt.
11026
11027 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
11028
11029 PR middle-end/68542
11030 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
11031 branch with vector comparison.
11032 * config/i386/sse.md (VI48_AVX): New mode iterator.
11033 (define_expand "cbranch<mode>4): Add support for conditional branch
11034 with vector comparison.
11035 * tree-vect-loop.c (optimize_mask_stores): New function.
11036 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
11037 has_mask_store field of vect_info.
11038 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
11039 vectorized loops having masked stores after vec_info destroy.
11040 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
11041 correspondent macros.
11042 (optimize_mask_stores): Add prototype.
11043
11044 2016-02-02 Alan Modra <amodra@gmail.com>
11045
11046 PR target/69548
11047 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
11048 allow subregs.
11049
11050 2016-02-02 Alan Modra <amodra@gmail.com>
11051
11052 PR target/68662
11053 * config/rs6000/rs6000.c (need_toc_init): New var, set it
11054 whenever toc_label_name used.
11055 (rs6000_file_start): Don't set up toc section here,
11056 (rs6000_output_function_epilogue): do so here instead,
11057 (rs6000_xcoff_file_start): and here.
11058 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
11059 (load_toc_aix_di): Likewise.
11060
11061 2016-02-01 Jakub Jelinek <jakub@redhat.com>
11062
11063 PR rtl-optimization/69592
11064 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
11065 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
11066 (num_sign_bit_copies_binary_arith_p): New inline function.
11067 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
11068
11069 2016-02-01 Jeff Law <law@redhat.com>
11070
11071 PR tree-optimization/69580
11072 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
11073 * tree-ssa-threadbackward.c
11074 (fsm_find_control_statement_thread_paths): Do not try to walk
11075 through large PHI nodes.
11076
11077 2016-02-01 Jakub Jelinek <jakub@redhat.com>
11078
11079 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
11080 when count is incremented above limit, don't analyze further
11081 insns afterwards.
11082
11083 * omp-low.c (oacc_parse_default_dims): Avoid
11084 -Wsign-compare warning, make sure value fits into int
11085 rather than just unsigned int.
11086
11087 2016-02-01 Bin Cheng <bin.cheng@arm.com>
11088
11089 PR tree-optimization/67921
11090 * fold-const.c (split_tree): New parameters. Convert pointer
11091 type variable part to proper type before negating.
11092 (fold_binary_loc): Pass new arguments to split_tree.
11093
11094 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
11095
11096 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
11097 (nvptx_goacc_validate_dims): Extend to handle global defaults.
11098 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
11099 * doc/tm.texti: Rebuilt.
11100 * doc/invoke.texi (fopenacc-dim): Document.
11101 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
11102 (append_compiler_options): Likewise.
11103 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
11104 (oacc_parse_default_dims): New.
11105 (oacc_validate_dims): Add USED arg. Select non-unity default when
11106 possible.
11107 (oacc_loop_fixed_partitions): Return mask of used partitions.
11108 (oacc_loop_auto_partitions): Emit dump info.
11109 (oacc_loop_partition): Return mask of used partitions.
11110 (execute_oacc_device_lower): Parse default dimension arg. Adjust
11111 loop partitioning and validation calls.
11112
11113 2016-02-01 Richard Biener <rguenther@suse.de>
11114
11115 PR middle-end/69556
11116 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
11117
11118 2016-02-01 Richard Biener <rguenther@suse.de>
11119
11120 PR tree-optimization/69574
11121 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
11122 of asserting return chrec_dont_know.
11123
11124 2016-02-01 Martin Liska <mliska@suse.cz>
11125
11126 * mem-stats-traits.h: Add copyright header.
11127 * mem-stats.h: Likewise.
11128
11129 2016-02-01 Richard Biener <rguenther@suse.de>
11130
11131 PR tree-optimization/69579
11132 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
11133 Do not propagate through abnormal PHI results.
11134
11135 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
11136
11137 * postreload.c (reload_cse_simplify): Remove dead code.
11138
11139 2016-02-01 Jakub Jelinek <jakub@redhat.com>
11140
11141 PR rtl-optimization/69570
11142 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
11143 if there is more than one set, not if there is a single set.
11144
11145 2016-02-01 Richard Henderson <rth@redhat.com>
11146
11147 PR rtl-opt/69535
11148 * combine.c (make_compound_operation): When looking through a
11149 subreg, make sure to re-extend to the width of the outer mode.
11150
11151 2016-01-30 Jakub Jelinek <jakub@redhat.com>
11152
11153 PR tree-optimization/69546
11154 * wide-int.cc (wi::divmod_internal): For unsigned division
11155 where both operands fit into uhwi, if o1 is 1 and o0 has
11156 msb set, if divident_prec is larger than bits per hwi,
11157 clear another quotient word and return 2 instead of 1.
11158 Similarly for remainder with msb in HWI set, if dividend_prec
11159 is larger than bits per hwi.
11160
11161 2016-01-29 Martin Jambor <mjambor@suse.cz>
11162
11163 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
11164 Use short lowercase names.
11165 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
11166 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
11167 acq_rel one. Protect warning agains segfaults if
11168 get_memory_order_name returns NULL.
11169 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
11170 with release semantics. Do not warn if get_memory_order already did.
11171 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
11172 semantics. Fix check for relaxed or acquire semantics. Do not warn
11173 if get_memory_order already did.
11174
11175 2016-01-29 Sebastian Pop <s.pop@samsung.com>
11176
11177 * doc/install.texi: Document that isl-0.16 is supported.
11178
11179 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
11180
11181 PR target/69299
11182 * config/i386/constraints.md (Bm): Describe as special memory
11183 constraint.
11184 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
11185 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
11186 * genpreds.c (struct constraint_data): Add is_special_memory.
11187 (have_special_memory_constraints, special_memory_start): New
11188 static vars.
11189 (special_memory_end): Ditto.
11190 (add_constraint): Add new arg is_special_memory. Add code to
11191 process its true value. Update have_special_memory_constraints.
11192 (process_define_constraint): Pass the new arg.
11193 (process_define_register_constraint): Ditto.
11194 (choose_enum_order): Process special memory.
11195 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
11196 function insn_extra_special_memory_constraint.
11197 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
11198 * gensupport.c (process_rtx): Process
11199 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
11200 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
11201 * ira-lives.c (single_reg_class): Use
11202 insn_extra_special_memory_constraint.
11203 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
11204 * lra-constraints.c (process_alt_operands): Ditto.
11205 (curr_insn_transform): Use insn_extra_special_memory_constraint.
11206 * recog.c (asm_operand_ok, preprocess_constraints): Process
11207 CT_SPECIAL_MEMORY.
11208 * reload.c (find_reloads): Ditto.
11209 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
11210 * stmt.c (parse_input_constraint): Use
11211 insn_extra_special_memory_constraint.
11212
11213 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
11214
11215 PR target/69530
11216 * lra-splill.c (lra_final_code_change): Revert r229087 by
11217 removing all sub-registers.
11218
11219 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
11220
11221 PR target/65604
11222 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
11223
11224 2016-01-29 Jakub Jelinek <jakub@redhat.com>
11225
11226 PR target/69551
11227 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
11228 SSE1, copy target into the temporary reg first before recursing
11229 on it.
11230
11231 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
11232
11233 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
11234 with vm.
11235
11236 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
11237
11238 * ginclude/stdarg.h: Test __cplusplus instead of
11239 __GXX_EXPERIMENTAL_CXX0X__.
11240
11241 2016-01-29 Richard Biener <rguenther@suse.de>
11242
11243 PR tree-optimization/69547
11244 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
11245 Do not mark clobbers necessary.
11246 (mark_all_reaching_defs_necessary_1): Likewise.
11247
11248 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
11249
11250 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
11251 declaration name with %qs and print it in both error messages.
11252 Also fix indentation.
11253
11254 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
11255
11256 PR other/69006
11257 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
11258 trailing blank line from error message.
11259
11260 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
11261
11262 PR c++/69462
11263 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
11264 for C++-11.
11265
11266 2016-01-29 Richard Biener <rguenther@suse.de>
11267
11268 PR middle-end/69537
11269 * match.pd: Allow all integral types when simplifying a
11270 widening or sign-changing conversion.
11271
11272 2016-01-28 Sebastian Pop <s.pop@samsung.com>
11273
11274 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
11275 back to setting codegen_error to fail codegen.
11276
11277 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
11278
11279 PR target/69459
11280 * config/i386/constraints.md (C): Only accept constant zero operand.
11281 (BC): New constraint.
11282 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
11283 instead of C constraint.
11284 * doc/md.texi (Machine Constraints): Update description
11285 of C constraint.
11286
11287 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
11288
11289 PR target/68400
11290 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
11291
11292 2016-01-28 Jakub Jelinek <jakub@redhat.com>
11293
11294 PR middle-end/69542
11295 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
11296 non-debug insns.
11297
11298 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
11299
11300 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
11301 branches if using guessed profile.
11302
11303 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
11304
11305 * graphite-optimize-isl.c (optimize_isl): Fix dump.
11306
11307 2016-01-28 Richard Henderson <rth@redhat.com>
11308
11309 PR target/69305
11310 * config/aarch64/aarch64-modes.def (CC_Cmode): New
11311 * config/aarch64/aarch64-protos.h: Update.
11312 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
11313 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
11314 (aarch64_get_condition_code_1): Handle CC_Cmode.
11315 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
11316 (*add<mode>3_compareC_cconly_imm): New.
11317 (*add<mode>3_compareC_cconly): New.
11318 (*add<mode>3_compareC_imm): New.
11319 (add<mode>3_compareC): New.
11320 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
11321 to be first. Use aarch64_carry_operation.
11322 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
11323 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
11324 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
11325 (subti3): Use subdi3_compare1.
11326 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
11327 (sub<mode>3_compare1): New.
11328 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
11329 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
11330 (*subsi3_carryin_uxtw): Likewise.
11331 (*ngc<mode>, *ngcsi_uxtw): Likewise.
11332 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
11333 * config/aarch64/iterators.md (DWI): New.
11334 * config/aarch64/predicates.md (aarch64_carry_operation): New.
11335 (aarch64_borrow_operation): New.
11336
11337 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
11338
11339 * graphite-optimize-isl.c (optimize_isl): Print a different debug
11340 message when isl does not return a valid schedule.
11341
11342 2016-01-28 Sebastian Pop <s.pop@samsung.com>
11343
11344 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
11345 Remove comments from class declarations: they are already in the code
11346 close by the defs.
11347
11348 2016-01-28 Sebastian Pop <s.pop@samsung.com>
11349
11350 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
11351 codegen_error_p.
11352 (ternary_op_to_tree): Same.
11353 (unary_op_to_tree): Same.
11354 (nary_op_to_tree): Same.
11355 (gcc_expression_from_isl_expr_op): Same.
11356 (gcc_expression_from_isl_expression): Same.
11357 (graphite_create_new_loop): Same.
11358 (graphite_create_new_loop_guard): Same.
11359 (build_iv_mapping): Same.
11360 (graphite_create_new_guard): Same.
11361 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
11362 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
11363
11364 2016-01-28 Sebastian Pop <s.pop@samsung.com>
11365
11366 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
11367 instead of setting codegen_error to fail codegen.
11368
11369 2016-01-28 Jason Merrill <jason@redhat.com>
11370
11371 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
11372
11373 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
11374
11375 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
11376 Remove CONST_INT_P check in CCMP cost calculation.
11377
11378 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
11379
11380 * config/aarch64/aarch64.c (generic_vector_cost):
11381 Set vec_permute_cost.
11382 (cortexa57_vector_cost): Likewise.
11383 (exynosm1_vector_cost): Likewise.
11384 (xgene1_vector_cost): Likewise.
11385 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
11386 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
11387 Add vec_permute_cost entry.
11388
11389 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
11390
11391 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
11392 immediate as %1.
11393 (add<mode>3_compare0): Likewise.
11394 (addsi3_compare0_uxtw): Likewise.
11395 (add<mode>3nr_compare0): Likewise.
11396 (compare_neg<mode>): Likewise.
11397 (<optab><mode>3): Likewise.
11398
11399 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
11400
11401 * tree-vect-stmts.c (vectorizable_comparison): Add
11402 NULL check for vectype.
11403
11404 2016-01-28 Richard Biener <rguenther@suse.de>
11405
11406 PR tree-optimization/69466
11407 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
11408 Account for PHIs we couldn't duplicate.
11409
11410 2016-01-28 Martin Liska <mliska@suse.cz>
11411
11412 PR pch/68758
11413 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
11414 instead of ENABLE_VALGRIND_CHECKING.
11415
11416 2016-01-27 Richard Henderson <rth@redhat.com>
11417
11418 PR rtl-opt/69447
11419 * lra-remat.c (subreg_regs): New.
11420 (dump_candidates_and_remat_bb_data): Dump it.
11421 (operand_to_remat): Reject if operand in subreg_regs.
11422 (set_bb_regs): Collect subreg_regs.
11423 (lra_remat): Init and free subreg_regs. Compute
11424 calculate_local_reg_remat_bb_data before create_cands.
11425
11426 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
11427
11428 PR target/68986
11429 * config/i386/i386.c (ix86_update_stack_boundary): Don't
11430 change stack_alignment_needed for __tls_get_addr call.
11431
11432 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
11433
11434 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
11435
11436 2016-01-27 Jeff Law <law@redhat.com>
11437
11438 PR tree-optimization/68398
11439 PR tree-optimization/69196
11440 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
11441 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
11442 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
11443 Only count PHIs in the last block in the path. The others will
11444 const/copy propagate away. Add heuristic to allow more irreducible
11445 subloops to be created when it is likely profitable to do so.
11446
11447 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
11448 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
11449 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
11450
11451 2016-01-27 Jakub Jelinek <jakub@redhat.com>
11452
11453 PR lto/69254
11454 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
11455 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
11456 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
11457 * tree-streamer-in.c: Include asan.h.
11458 (streamer_get_builtin_tree): For builtins in sanitizer
11459 range call initialize_sanitizer_builtins and retry.
11460
11461 2016-01-27 Ian Lance Taylor <iant@google.com>
11462
11463 * common.opt (fkeep-gc-roots-live): New undocumented option.
11464 * tree-ssa-loop-ivopts.c (add_candidate_1): If
11465 -fkeep-gc-roots-live, skip pointers.
11466 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
11467 NULL.
11468
11469 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
11470
11471 PR target/69512
11472 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
11473 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
11474
11475 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
11476
11477 PR target/68380
11478 * configure.ac: NetBSD provides SSP in its C library.
11479 * configure: Updated.
11480
11481 2016-01-27 Richard Biener <rguenther@suse.de>
11482
11483 PR tree-optimization/69166
11484 * tree-vect-loop.c (vect_is_simple_reduction): Always check
11485 reduction code for commutativity / associativity.
11486
11487 2016-01-27 Martin Jambor <mjambor@suse.cz>
11488
11489 PR tree-optimization/69355
11490 * tree-sra.c (analyze_access_subtree): Correct hole detection when
11491 total_scalarization fails.
11492
11493 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
11494
11495 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
11496 power9.
11497
11498 2016-01-27 Christian Bruel <christian.bruel@st.com>
11499
11500 PR target/69245
11501 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
11502 Move arm_reset_previous_fndecl and set_target_option_current_node in
11503 the conditional part. Call save_restore_target_globals.
11504 * config/arm/arm.c (arm_set_current_function):
11505 Refactor to better support #pragma target and attribute mix.
11506 Call save_restore_target_globals.
11507 * config/arm/arm-protos.h (save_restore_target_globals): New function.
11508
11509 2016-01-27 Martin Liska <mliska@suse.cz>
11510
11511 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
11512 reference for an HSA kernel and its host function.
11513
11514 2016-01-27 Jakub Jelinek <jakub@redhat.com>
11515
11516 PR tree-optimization/69399
11517 * wide-int.h (wi::lrshift): For larger precisions, only
11518 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
11519
11520 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
11521
11522 * config/arc/predicates.md (proper_comparison_operator): Reject
11523 constant-constant comparison.
11524
11525 2016-01-26 Tom de Vries <tom@codesourcery.com>
11526
11527 PR tree-optimization/69110
11528 * tree-data-ref.c (initialize_data_dependence_relation): Handle
11529 DR_NUM_DIMENSIONS == 0.
11530
11531 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
11532 Sebastian Pop <s.pop@samsung.com>
11533
11534 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
11535 isl_ast_op_cond and isl_ast_op_select.
11536 (gcc_expression_from_isl_expr_op): Same.
11537
11538 2016-01-26 Jason Merrill <jason@redhat.com>
11539
11540 PR c++/68782
11541 * tree.c (recompute_constructor_flags): Split out from
11542 build_constructor.
11543 (verify_constructor_flags): New.
11544 * tree.h: Declare them.
11545
11546 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
11547
11548 PR rtl-optimization/69217
11549 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
11550 are no TYPE_FIELDS set for the record type.
11551
11552 2016-01-26 Jakub Jelinek <jakub@redhat.com>
11553
11554 PR target/68662
11555 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
11556 toc_label_name unconditionally.
11557 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
11558 SYMBOL_REF string. Use toc_label_name instead of constructing
11559 LCTOC1.
11560 (rs6000_elf_declare_function_name): Use toc_label_name instead of
11561 constructing LCTOC1.
11562
11563 2016-01-26 Martin Sebor <msebor@redhat.com>
11564
11565 PR other/69477
11566 * doc/extend.texi (Common Type Attributes): Move text that talks about
11567 attribute packed from attribute aligned to the section discussing
11568 the former attribute for clarity.
11569
11570 2016-01-26 Richard Henderson <rth@redhat.com>
11571
11572 PR middle-end/60908
11573 * trans-mem.c (tm_region_init): Mark entry block as visited.
11574
11575 2016-01-26 David Malcolm <dmalcolm@redhat.com>
11576
11577 PR other/69006
11578 * diagnostic-show-locus.c (layout::print_source_line): Replace
11579 call to pp_newline with call to layout::print_newline.
11580 (layout::print_annotation_line): Likewise.
11581 (layout::move_to_column): Likewise.
11582 (layout::print_any_fixits): After printing any fixits, print a
11583 trailing newline, if necessary.
11584 (layout::print_newline): New method, resetting any colorization
11585 before a newline.
11586 (diagnostic_show_locus): Move the pp_newline to before the
11587 early bailout. Remove dummy block enclosing the layout instance.
11588 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
11589 of pp_newline_and_flush with pp_flush.
11590 (diagnostic_append_note): Delete use of pp_newline.
11591 (diagnostic_append_note_at_rich_loc): Delete.
11592 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
11593 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
11594 when newline characters are added to the buffer.
11595
11596 2016-01-26 Michael Matz <matz@suse.de>
11597
11598 * configure.ac (ac_cv_std_swap_in_utility): New test.
11599 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
11600 * configure: Regenerate.
11601 * config.in: Regenerate.
11602
11603 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
11604
11605 * config/arc/arc.md (cstoresi4): Force operand into register.
11606 (arcset<code>): Fix predicate.
11607 (arcsetltu): Likewise.
11608 (arcsetgeu): Likewise.
11609 (arcsethi): Likewise.
11610 (arcsetls): Likewise.
11611
11612 2016-01-26 Jakub Jelinek <jakub@redhat.com>
11613
11614 PR tree-optimization/69483
11615 * gimple-fold.c (canonicalize_constructor_val): Return NULL
11616 if base has error_mark_node type.
11617
11618 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
11619
11620 PR target/68620
11621 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
11622 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
11623 New helper macros.
11624 (vget_lane_f16): Handle big-endian.
11625 (vgetq_lane_f16): Likewise.
11626 (vset_lane_f16): Likewise.
11627 (vsetq_lane_f16): Likewise.
11628 * config/arm/iterators.md (VQXMOV): Add V8HF.
11629 (VDQ): Add V4HF and V8HF.
11630 (V_reg): Handle V4HF and V8HF.
11631 (Is_float_mode): Likewise.
11632 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
11633 neon_vdup_nv8hf): New patterns.
11634 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
11635 Use VD_LANE iterator.
11636 (neon_vld1_dup<mode>): Use VQ2 iterator.
11637
11638 2016-01-26 Nathan Sidwell <nathan@acm.org>
11639
11640 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
11641 (set_oacc_fn_attrib): Add IS_KERNEL arg.
11642 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
11643 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
11644 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
11645 (oacc_validate_dims): Add LEVEL arg, don't return level.
11646 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
11647 oacc_validate_dims.
11648 (execute_oacc_device_lower): Adjust, add more dump output.
11649 * tree-ssa-loop.c (gate_oacc_kernels): Use
11650 oacc_fn_attrib_kernels_p.
11651 * tree-parloops.c (create_parallel_loop): Adjust
11652 set_oacc_fn_attrib call.
11653
11654 2016-01-26 Jakub Jelinek <jakub@redhat.com>
11655
11656 PR lto/69254
11657 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
11658 (append_compiler_options): Handle -fcilkplus.
11659 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
11660
11661 2016-01-26 Nick Clifton <nickc@redhat.com>
11662
11663 PR target/66655
11664 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
11665 been marked as DECL_ONE_ONLY but we do not the means to make it
11666 so, then do not allow it to bind locally.
11667
11668 2016-01-26 Jakub Jelinek <jakub@redhat.com>
11669
11670 PR lto/69254
11671 * opts.h (parse_sanitizer_options): New prototype.
11672 * opts.c (sanitizer_opts): New array.
11673 (parse_sanitizer_options): New function.
11674 (common_handle_option): Use parse_sanitizer_options.
11675
11676 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
11677
11678 PR target/68986
11679 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
11680 alignment adjustment to ...
11681 (ix86_update_stack_boundary): Here. Don't over-align stack for
11682 __tls_get_addr.
11683 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
11684 if __tls_get_addr is called.
11685
11686 2016-01-26 Christian Bruel <christian.bruel@st.com>
11687
11688 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
11689
11690 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
11691
11692 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
11693
11694 2016-01-26 Richard Biener <rguenther@suse.de>
11695
11696 PR middle-end/69467
11697 * match.pd: Guard X * CST CMP 0 pattern with single_use.
11698
11699 2016-01-26 Richard Biener <rguenther@suse.de>
11700
11701 PR tree-optimization/69452
11702 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
11703 (move_computations_dom_walker::before_dom_children): Rename
11704 to ...
11705 (move_computations_worker): This.
11706 (move_computations): Perform an RPO rather than a DOM walk.
11707
11708 2016-01-26 Jakub Jelinek <jakub@redhat.com>
11709
11710 PR target/69442
11711 * combine.c (combine_instructions): For REG_EQUAL note with
11712 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
11713 to the underlying register.
11714 * doc/rtl.texi (REG_EQUAL): Document the behavior of
11715 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
11716
11717 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
11718
11719 PR target/67896
11720 * config/aarch64/aarch64-builtins.c
11721 (aarch64_init_simd_builtin_types): Do not set structural
11722 equality to __Poly{8,16,64,128}_t types.
11723
11724 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
11725
11726 PR tree-optimization/69400
11727 * wide-int.cc (wi_pack): Take the precision as argument and
11728 perform canonicalization here rather than in the callers.
11729 Use the main loop to handle all full-width HWIs. Add a
11730 zero HWI if in_len isn't a full result.
11731 (wi::divmod_internal): Update accordingly.
11732 (wi::mul_internal): Likewise. Simplify.
11733
11734 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
11735 Sebastian Pop <s.pop@samsung.com>
11736
11737 * graphite-poly.c (apply_poly_transforms): Simplify.
11738 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
11739 (print_isl_map): Same.
11740 (print_isl_union_map): Same.
11741 (print_isl_schedule): New.
11742 (debug_isl_schedule): New.
11743 * graphite-dependences.c (scop_get_reads): Do not call
11744 isl_union_map_add_map that is undocumented isl functionality.
11745 (scop_get_must_writes): Same.
11746 (scop_get_may_writes): Same.
11747 (scop_get_original_schedule): Remove.
11748 (scop_get_dependences): Do not call isl_union_map_compute_flow that
11749 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
11750 (compute_deps): Remove.
11751 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
11752 (debug_schedule_ast): New.
11753 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
11754 set_separate_option.
11755 (graphite_regenerate_ast_isl): Add dump.
11756 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
11757 from scop->transformed_schedule.
11758 (graphite_regenerate_ast_isl): Add more dump.
11759 * graphite-optimize-isl.c (optimize_isl): Set
11760 scop->transformed_schedule. Check whether schedules are equal.
11761 (apply_poly_transforms): Move here.
11762 * graphite-poly.c (apply_poly_transforms): ... from here.
11763 (free_poly_bb): Static.
11764 (free_scop): Static.
11765 (pbb_number_of_iterations_at_time): Remove.
11766 (print_isl_ast): New.
11767 (debug_isl_ast): New.
11768 (debug_scop_pbb): New.
11769 * graphite-scop-detection.c (print_edge): Move.
11770 (print_sese): Move.
11771 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
11772 (build_scop_scattering): Remove.
11773 (create_pw_aff_from_tree): Assert instead of bailing out.
11774 (add_condition_to_pbb): Remove unused code, do not fail.
11775 (add_conditions_to_domain): Same.
11776 (add_conditions_to_constraints): Remove.
11777 (build_scop_context): New.
11778 (add_iter_domain_dimension): New.
11779 (build_iteration_domains): Initialize pbb->iterators.
11780 Call add_conditions_to_domain.
11781 (nested_in): New.
11782 (loop_at): New.
11783 (index_outermost_in_loop): New.
11784 (index_pbb_in_loop): New.
11785 (outermost_pbb_in): New.
11786 (add_in_sequence): New.
11787 (add_outer_projection): New.
11788 (outer_projection_mupa): New.
11789 (add_loop_schedule): New.
11790 (build_schedule_pbb): New.
11791 (build_schedule_loop): New.
11792 (embed_in_surrounding_loops): New.
11793 (build_schedule_loop_nest): New.
11794 (build_original_schedule): New.
11795 (build_poly_scop): Call build_original_schedule.
11796 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
11797 (free_poly_dr): Remove.
11798 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
11799 (free_poly_bb): Remove.
11800 (debug_loop_vec): Remove.
11801 (print_isl_ast): Declare.
11802 (debug_isl_ast): Declare.
11803 (scop_do_interchange): Remove.
11804 (scop_do_strip_mine): Remove.
11805 (scop_do_block): Remove.
11806 (flatten_all_loops): Remove.
11807 (optimize_isl): Remove.
11808 (pbb_number_of_iterations_at_time): Remove.
11809 (debug_scop_pbb): Declare.
11810 (print_schedule_ast): Declare.
11811 (debug_schedule_ast): Declare.
11812 (struct scop): Remove schedule. Add original_schedule,
11813 transformed_schedule.
11814 (free_gimple_poly_bb): Remove.
11815 (print_generated_program): Remove.
11816 (debug_generated_program): Remove.
11817 (unify_scattering_dimensions): Remove.
11818 * sese.c (print_edge): ... here.
11819 (print_sese): ... here.
11820 (debug_edge): ... here.
11821 (debug_sese): ... here.
11822 * sese.h (print_edge): Declare.
11823 (print_sese): Declare.
11824 (dump_edge): Declare.
11825 (dump_sese): Declare.
11826
11827 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
11828 Sebastian Pop <s.pop@samsung.com>
11829
11830 * Makefile.in: Set ISLVER in site.exp.
11831
11832 2016-01-25 Jakub Jelinek <jakub@redhat.com>
11833
11834 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
11835 DECL_VALUE_EXPR of new_var even for the non-array case. Look
11836 through DECL_VALUE_EXPR for expansion.
11837
11838 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
11839
11840 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
11841 the frame info after reload completed.
11842
11843 2016-01-25 Jeff Law <law@redhat.com>
11844
11845 PR tree-optimization/69196
11846 PR tree-optimization/68398
11847 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
11848 tree-ssa-threadupdate.c.
11849 (determine_bb_domination_status): Prototype
11850 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
11851 (determine_bb_domination_status): No longer static.
11852 (valid_jump_thread_path): Remove code to detect characteristics
11853 of the jump thread path not associated with correctness.
11854 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
11855 Correct test for thread path length. Count PHIs for real operands as
11856 statements that need to be copied. Do not count ASSERT_EXPRs.
11857 Look at all the blocks in the thread path. Compute and selectively
11858 filter thread paths based on threading through the latch, threading
11859 a multiway branch or crossing a multiway branch.
11860
11861 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11862
11863 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
11864 decl with __attribute__ ((unused)) annotation.
11865
11866 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
11867
11868 PR target/69421
11869 * tree-vect-stmts.c (vectorizable_condition): Check vectype
11870 of operands is compatible with a statement vectype.
11871
11872 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
11873
11874 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
11875 improve wording for mixed storage order support.
11876
11877 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
11878
11879 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
11880 (vcvt_u64_f64): Likewise.
11881 (vcvta_s64_f64): Likewise.
11882 (vcvta_u64_f64): Likewise.
11883 (vcvtm_s64_f64): Likewise.
11884 (vcvtm_u64_f64): Likewise.
11885 (vcvtn_s64_f64): Likewise.
11886 (vcvtn_u64_f64): Likewise.
11887 (vcvtp_s64_f64): Likewise.
11888 (vcvtp_u64_f64): Likewise.
11889
11890 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
11891
11892 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
11893 (arc_init): Check validity mll64 option.
11894 (arc_save_restore): Use double load/store instruction.
11895 (arc_expand_movmem): Likewise.
11896 (arc_split_move): Don't split if we have double load/store
11897 instructions. Returns a boolean.
11898 (arc_process_double_reg_moves): Change function to return boolean
11899 instead of a sequence of instructions.
11900 (arc_dwarf_register_span): New function.
11901 * config/arc/arc-protos.h (arc_split_move): Change prototype.
11902 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
11903 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
11904 (*movdf_insn): Likewise.
11905 * config/arc/arc.opt (mll64): New option.
11906 * config/arc/predicates.md (even_register_operand): New predicate.
11907 * doc/invoke.texi (ARC Options): Add mll64 documentation.
11908
11909 2016-01-25 Richard Biener <rguenther@suse.de>
11910
11911 PR lto/69393
11912 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
11913 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
11914 DECL_NAMELESS.
11915 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
11916
11917 2016-01-25 Richard Biener <rguenther@suse.de>
11918
11919 PR tree-optimization/69376
11920 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
11921 flag.
11922 (VN_INFO_ANTI_RANGE_P): New inline.
11923 (VN_INFO_RANGE_TYPE): Likewise.
11924 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
11925 SSA_NAME_ANTI_RANGE_P.
11926 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
11927 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11928 Properly query VN_INFO_RANGE_TYPE.
11929
11930 2016-01-25 Nick Clifton <nickc@redhat.com>
11931
11932 PR target/66655
11933 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
11934
11935 2016-01-23 Tom de Vries <tom@codesourcery.com>
11936
11937 PR tree-optimization/69426
11938 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
11939 removed clobber.
11940
11941 2016-01-23 Jakub Jelinek <jakub@redhat.com>
11942
11943 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
11944 "the the" with "the" in the comments.
11945 * ipa-devirt.c (build_type_inheritance_graph,
11946 update_type_inheritance_graph): Likewise.
11947 * tree.c (build_function_type_list_1): Likewise.
11948 * cfgloopmanip.c (scale_loop_profile): Likewise.
11949 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
11950 * gimple-ssa-split-paths.c
11951 (find_block_to_duplicate_for_splitting_paths): Likewise.
11952 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
11953 * expr.c (convert_move): Likewise.
11954 * var-tracking.c (vt_stack_adjustments): Likewise.
11955 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
11956 * tree-vrp.c (test_for_singularity): Likewise.
11957
11958 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
11959 directly instead of building a temporary tree.
11960
11961 PR bootstrap/69434
11962 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
11963 remove <algorithm> include.
11964
11965 2016-01-22 Jakub Jelinek <jakub@redhat.com>
11966
11967 PR target/69432
11968 * config/i386/i386.c: Include dojump.h.
11969 (expand_small_movmem_or_setmem,
11970 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
11971 fixes.
11972 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
11973 if dynamic_check != -1.
11974
11975 2016-01-21 Jeff Law <law@redhat.com>
11976
11977 PR middle-end/69347
11978 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
11979 record_temporary_equivalences. Rewritten to avoid unnecessary calls
11980 into dominated_by_p.
11981 (cprop_into_successor_phis): Avoid unnecessary tests.
11982
11983 2016-01-22 Richard Henderson <rth@redhat.com>
11984
11985 PR target/69416
11986 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
11987 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
11988
11989 2016-01-22 Michael Matz <matz@suse.de>
11990
11991 * system.h (string, algorithm): Include only conditionally.
11992 (new): Include always under C++.
11993 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
11994 * final.c (toplevel): Ditto.
11995 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
11996 * genconditions.c (write_header): Make gencondmd.c define
11997 INCLUDE_STRING.
11998 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
11999
12000 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
12001 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
12002
12003 2016-01-22 Christian Bruel <christian.bruel@st.com>
12004
12005 PR target/68674
12006 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
12007
12008 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12009
12010 PR target/69403
12011 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
12012 define_insn_and_split. Ensure operands[1] and operands[0] do not
12013 get assigned the same register.
12014
12015 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
12016
12017 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
12018
12019 2016-01-22 Christian Bruel <christian.bruel@st.com>
12020
12021 * config/arm/arm-c.c (arm_pragma_target_parse):
12022 Remove warn_builtin_macro_redefined overwrite.
12023
12024 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
12025
12026 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
12027 flag_non_call_exceptions compatibility.
12028
12029 2016-01-22 Jakub Jelinek <jakub@redhat.com>
12030
12031 PR debug/66668
12032 * dwarf2out.c (add_child_die_after): New function.
12033 (dwarf_qual_info_t): New type.
12034 (dwarf_qual_info): New variable.
12035 (qualified_die_p): New function.
12036 (modified_type_die): For -fdebug-types-section, ensure
12037 canonical order of qualifiers. Put qualified DIEs adjacent
12038 to the corresponding non-qualified type DIE and search there
12039 for existing qualified DIEs.
12040
12041 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
12042
12043 * doc/extend.texi (scalar_storage_order type attribute): Document
12044 restriction on type punning and aliasing, and remove future tense.
12045
12046 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
12047
12048 PR target/69252
12049 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
12050 first stage.
12051
12052 2016-01-21 Jeff Law <law@redhat.com>
12053
12054 PR middle-end/69347
12055 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
12056 useless call to record_temporary_equivalences.
12057 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
12058 allocate 10 slots in the bb_path vector and let it grow as needed.
12059 (fsm_find_control_statement_thread_paths): Similarly for the next_path
12060 vector.
12061
12062 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
12063
12064 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
12065 Detangle.
12066 * configure: Regenerate.
12067
12068 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
12069
12070 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
12071 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
12072
12073 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
12074
12075 PR middle-end/66178
12076 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
12077 drop EXPAND_INITIALIZER.
12078 * rtl.h (contains_symbolic_reference_p): Declare.
12079 * rtlanal.c (contains_symbolic_reference_p): New function.
12080 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
12081 a subtraction into a NOT if symbolic constants are involved.
12082
12083 2016-01-21 Anton Blanchard <anton@samba.org>
12084 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12085
12086 PR target/63354
12087 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
12088 #define.
12089 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
12090 function.
12091
12092 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
12093
12094 * config/microblaze/microblaze.c
12095 (get_branch_target): New.
12096 (insert_wic_for_ilb_runout): New.
12097 (insert_wic): New.
12098 (microblaze_machine_dependent_reorg): New.
12099 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
12100 * config/microblaze/microblaze.md
12101 (UNSPEC_IPREFETCH): Define.
12102 (iprefetch): New pattern
12103 * config/microblaze/microblaze.opt
12104 (mxl-prefetch): New flag.
12105
12106 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
12107
12108 * config/microblaze/microblaze.h
12109 (FIXED_REGISTERS): Update in macro.
12110 (CALL_USED_REGISTERS): Update in macro.
12111
12112 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
12113
12114 PR rtl-optimization/68920
12115 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
12116 moves.
12117
12118 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
12119
12120 PR rtl-optimization/68990
12121 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
12122 pseudo instead of inheritance ones.
12123
12124 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
12125 Nick Clifton <nickc@redhat.com>
12126
12127 PR target/69129
12128 PR target/69012
12129 * config/mips/mips.c (mips_compute_frame_info): Initialise
12130 args_size and hard_frame_pointer_offset fields of the frame
12131 structure before calling mips_global_pointer.
12132
12133 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
12134
12135 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
12136 label reference.
12137 * configure: Regenerate.
12138
12139 2016-01-21 Richard Biener <rguenther@suse.de>
12140
12141 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
12142
12143 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
12144
12145 * config/s390/s390.c (s390_asm_declare_function_size): Add code
12146 to actually emit the .size directive.
12147
12148 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
12149 Jakub Jelinek <jakub@redhat.com>
12150
12151 PR target/69187
12152 PR target/65624
12153 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
12154 args array size by one to avoid buffer overflow.
12155
12156 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
12157
12158 * config/s390/s390.md (pool_section_start): Use switch_to_section
12159 to select proper read-only data section instead of hardcoding
12160 .rodata.
12161 (pool_section_end): Use switch_to_section to match the above.
12162
12163 2016-01-21 Richard Biener <rguenther@suse.de>
12164
12165 PR tree-optimization/69378
12166 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
12167 (set_ssa_val_to): Use it for dominance checks taking into
12168 account not executable edges.
12169
12170 2016-01-21 Jakub Jelinek <jakub@redhat.com>
12171
12172 PR c++/69355
12173 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
12174 for bitsize instead of GET_MODE_PRECISION (mode).
12175
12176 2016-01-20 Martin Sebor <msebor@redhat.com>
12177
12178 PR c/52291
12179 * extend.texi (__sync Builtins): Clarify the semantics of
12180 __sync_fetch_and_OP built-ins on pointers.
12181 (__atomic Builtins): Same.
12182
12183 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
12184 Sebastian Pop <s.pop@samsung.com>
12185
12186 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
12187 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
12188 (is_valid_rename): Same.
12189 (translate_isl_ast_to_gimple::get_rename): Same.
12190 (translate_isl_ast_to_gimple::rename_all_uses): Same.
12191 (translate_isl_ast_to_gimple::rename_uses): Same.
12192 (get_new_name): Check for close_phi nodes.
12193 (copy_loop_phi_args): Use phi_node_kind.
12194 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
12195 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
12196
12197 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
12198 Sebastian Pop <s.pop@samsung.com>
12199
12200 Revert commit r229783.
12201 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
12202 Remove use of parameter_rename_map.
12203 (copy_def): Remove.
12204 (copy_internal_parameters): Remove.
12205 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
12206 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
12207 (free_sese_info): Do not free parameter_rename_map.
12208 (set_rename): Do not use parameter_rename_map.
12209 (rename_uses): Update call to set_rename.
12210 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
12211 * sese.h (parameter_rename_map_t): Remove.
12212 (struct sese_info_t): Remove field parameter_rename_map.
12213
12214 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
12215 Sebastian Pop <s.pop@samsung.com>
12216
12217 * graphite-isl-ast-to-gimple.c: Fix comment.
12218 * graphite-scop-detection.c (defined_in_loop_p): New.
12219 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
12220 names defined in loop.
12221
12222 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
12223 Sebastian Pop <s.pop@samsung.com>
12224
12225 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
12226 Discard unstructured if-then-else regions.
12227
12228 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
12229 Sebastian Pop <s.pop@samsung.com>
12230
12231 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
12232 (cleanup_loop_iter_dom): Remove.
12233 (build_loop_iteration_domains): Remove.
12234 (build_scop_context): Remove.
12235 (build_scop_iteration_domain): Remove.
12236 (add_loop_constraints): New.
12237 (build_iteration_domains): New.
12238 (build_poly_scop): Call build_iteration_domains.
12239
12240 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
12241 Sebastian Pop <s.pop@samsung.com>
12242
12243 * graphite-scop-detection.c
12244 (scop_detection::harmful_loop_in_region): Free dom and loops.
12245 (scop_detection::loop_body_is_valid_scop): Free bbs.
12246
12247 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
12248 Sebastian Pop <s.pop@samsung.com>
12249
12250 * graphite-scop-detection.c (record_loop_in_sese): New.
12251 (gather_bbs::before_dom_children): Call record_loop_in_sese.
12252 (build_scops): Remove call to build_sese_loop_nests.
12253 * sese.c (sese_record_loop): Remove.
12254 (build_sese_loop_nests): Remove.
12255 (new_sese_info): Remove region->loops.
12256 (free_sese_info): Same.
12257 * sese.h (sese_contains_loop): Same.
12258 (build_sese_loop_nests): Remove.
12259 (sese_contains_loop): Remove.
12260
12261 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
12262 Sebastian Pop <s.pop@samsung.com>
12263
12264 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
12265 loop_is_valid_in_scop.
12266 (scop_detection::harmful_stmt_in_region): Renamed
12267 harmful_loop_in_region.
12268 Call loop_is_valid_in_scop.
12269
12270 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
12271 Sebastian Pop <s.pop@samsung.com>
12272
12273 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
12274 isl_ast_node_mark.
12275
12276 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
12277 Sebastian Pop <s.pop@samsung.com>
12278
12279 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
12280 * graphite.h (struct poly_bb): Remove field is_reduction.
12281 (PBB_IS_REDUCTION): Remove.
12282
12283 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
12284 Sebastian Pop <s.pop@samsung.com>
12285
12286 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
12287 (add_pdr_constraints): Same.
12288 (scop_get_reads): Same.
12289 (scop_get_must_writes): Same.
12290 (scop_get_may_writes): Same.
12291 (scop_get_original_schedule): Same.
12292 (extend_schedule): Same.
12293 (apply_schedule_on_deps): Same.
12294 (carries_deps): Same.
12295 (compute_deps): Same.
12296 (scop_get_dependences): Same.
12297 * graphite-isl-ast-to-gimple.c
12298 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
12299 * graphite-optimize-isl.c (get_schedule_for_band): Same.
12300 (get_schedule_for_band_list): Same.
12301 (get_schedule_map): Same.
12302 (apply_schedule_map_to_scop): Same.
12303 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
12304 (build_loop_iteration_domains): Same.
12305 (add_condition_to_pbb): Same.
12306 (add_param_constraints): Same.
12307 (pdr_add_memory_accesses): Same.
12308 (pdr_add_data_dimensions): Same.
12309
12310 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
12311
12312 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
12313 requirements.
12314
12315 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
12316
12317 * common.opt (feliminate-dwarf2-dups): Replace references to
12318 "DWARF 2" with just "DWARF".
12319 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
12320 * doc/extend.texi: Likewise.
12321 * doc/cpp.texi: Likewise.
12322 * doc/invoke.texi: Likewise.
12323 (Option Summary): Add -gdwarf to list of Debugging Options.
12324 (Debugging Options): Document -gdwarf.
12325 * doc/contrib.texi: Spell "DWARF" like that.
12326
12327 2016-01-21 Jakub Jelinek <jakub@redhat.com>
12328
12329 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
12330 warning. Fix up formatting.
12331
12332 PR middle-end/67653
12333 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
12334 attempt to mark memory input operand addressable and
12335 call prepare_gimple_addressable in that case. Don't adjust
12336 input_location for diagnostics, use error_at instead.
12337
12338 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
12339
12340 * config/rs6000/ppc-auxv.h: New file.
12341 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
12342 (cpu_is): Likewise.
12343 (cpu_supports): Likewise.
12344 * config/rs6000/rs6000.c: include "ppc-auxv.h".
12345 (cpu_is_info): New variable.
12346 (cpu_supports_info): Likewise.
12347 (tcb_verification_symbol): Likewise.
12348 (cpu_builtin_p): Likewise.
12349 (cpu_expand_builtin): New function.
12350 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
12351 (rs6000_init_builtins): Likewise.
12352 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
12353 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
12354 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
12355 * configure: Regenerate.
12356 * config.in: Likewise.
12357 * doc/extend.texi (PowerPC Built-in Functions): Document
12358 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
12359
12360 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
12361
12362 PR target/68609
12363 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
12364 domain check.
12365 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
12366 for V4SFmode.
12367
12368 2016-01-20 Richard Henderson <rth@redhat.com>
12369
12370 PR bootstrap/69343
12371 PR bootstrap/69339
12372 PR tree-opt/68964
12373 Revert:
12374 * tree.c (tm_define_builtin): New.
12375 (find_tm_vector_type): New.
12376 (build_tm_vector_builtins): New.
12377 (build_common_builtin_nodes): Call it.
12378
12379 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
12380
12381 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
12382 (arm_fp_ok): Likewise.
12383 (arm_fp): Likewise.
12384 (arm_crypto): Likewise.
12385
12386 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
12387 Richard Biener <rguenther@suse.de>
12388
12389 PR tree-optimization/69328
12390 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
12391 vectors have same number of elements.
12392 (vectorizable_condition): Fix masked version recognition.
12393
12394 2016-01-20 Richard Biener <rguenther@suse.de>
12395
12396 PR tree-optimization/69345
12397 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
12398 (VN_INFO_PTR_INFO): Likewise.
12399 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
12400 info when it is equal between non-dominating SSA names.
12401 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
12402 Make sure to look at original SSA infos.
12403
12404 2016-01-20 Jeff Law <law@redhat.com>
12405
12406 PR target/25114
12407 * config/m68k/predicates.md (pow2_m1_operand): New predicate
12408 extracted from ...
12409 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
12410 (pc_or_label_operand): New predicate.
12411 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
12412 tests for small integers that are 2^n - 1.
12413
12414 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
12415
12416 * doc/invoke.texi (Options Summary): Add '.' after @xref.
12417
12418 2016-01-19 Jeff Law <law@redhat.com>
12419
12420 PR middle-end/69347
12421 * tree-ssa-threadbackwards.c
12422 (fsm_find_control_statement_thread_paths): Do not try to lookup
12423 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
12424
12425 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
12426
12427 * doc/lto.texi: Remove text that says only Gold has linker plugin
12428 support.
12429
12430 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
12431
12432 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
12433 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
12434 the DIE accordingly.
12435 (modified_type_die): Add REVERSE parameter and pass it recursively,
12436 as well as to base_type_die. Adjust presence check accordingly.
12437 (base_type_for_mode): Adjust call to modified_type_die.
12438 (add_type_attribute): Add REVERSE parameter and pass it to
12439 modified_type_die.
12440 (generic_parameter_die): Adjust call to add_type_attribute.
12441 (add_scalar_info): Likewise.
12442 (add_subscript_info): Likewise.
12443 (gen_array_type_die): Likewise.
12444 (gen_descr_array_type_die): Likewise.
12445 (gen_entry_point_die): Likewise.
12446 (gen_enumeration_type_die): Likewise.
12447 (gen_formal_parameter_die): Likewise.
12448 (gen_subprogram_die): Likewise.
12449 (gen_variable_die ): Likewise.
12450 (gen_const_die): Likewise.
12451 (gen_field_die): Likewise.
12452 (gen_pointer_type_die): Likewise.
12453 (gen_reference_type_die): Likewise.
12454 (gen_ptr_to_mbr_type_die): Likewise.
12455 (gen_inheritance_die): Likewise.
12456 (gen_subroutine_type_die): Likewise.
12457 (gen_typedef_die): Likewise.
12458 (force_type_die): Adjust call to modified_type_die.
12459
12460 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
12461
12462 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
12463 flow throughout the file. Fix broken link to Objective-C 2.0
12464 documentation.
12465 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
12466 errors.
12467
12468 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
12469
12470 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
12471
12472 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
12473
12474 PR ipa/66223
12475 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
12476 (maybe_record_node): Record cxa_pure_virtual as the only possible
12477 target if there are not ohter candidates.
12478 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
12479
12480 2016-01-19 Richard Biener <rguenther@suse.de>
12481
12482 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
12483 (get_memory_order): Likewise.
12484
12485 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
12486
12487 * tree-vect-stmts.c (vectorizable_store): Check
12488 rhs vectype.
12489
12490 2016-01-19 David Malcolm <dmalcolm@redhat.com>
12491
12492 PR jit/68446
12493 * gcc.c (driver::decode_argv): Add call to
12494 init_opts_obstack before init_options_struct.
12495 * opts.c (init_opts_obstack): Remove idempotency.
12496 (init_options_struct): Replace call to init_opts_obstack
12497 with a gcc_assert to verify that it has already been called.
12498 * toplev.c (toplev::main): Add call to init_opts_obstack before
12499 calls to init_options_struct.
12500 (toplev::finalize): Move cleanup of opts_obstack next to
12501 cleanup of save_decoded_options, clearing the latter, and
12502 save_decoded_options_count.
12503
12504 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12505
12506 PR target/69135
12507 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
12508 attribute to unconditional. Remove %? from output template.
12509
12510 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
12511 Jiong Wang <jiong.wang@arm.com>
12512
12513 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
12514 generated from different expand order.
12515
12516 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
12517
12518 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
12519 Add support for CCMP costing.
12520
12521 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
12522
12523 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
12524 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
12525 (fccmpe<mode>): Likewise.
12526 (fcmp): Rename to fcmp and globalize pattern.
12527 (fcmpe): Likewise.
12528 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
12529 (aarch64_gen_ccmp_next): Add FP support.
12530
12531 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
12532
12533 * target.def (gen_ccmp_first): Update documentation.
12534 (gen_ccmp_next): Likewise.
12535 * doc/tm.texi (gen_ccmp_first): Update documentation.
12536 (gen_ccmp_next): Likewise.
12537 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
12538 expand_ccmp_expr_1. Improve comments.
12539 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
12540 (ccmp_ior<mode>): Remove pattern.
12541 (cmp<mode>): Remove expand.
12542 (cmp): Globalize pattern.
12543 (cstorecc4): Use cc_register.
12544 (mov<mode>cc): Remove ccmp_cc_register check.
12545 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
12546 Simplify after removal of CC_DNE/* modes.
12547 (aarch64_ccmp_mode_to_code): Remove.
12548 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
12549 In 'k' case use integer as condition.
12550 (aarch64_nzcv_codes): Remove inverted cases.
12551 (aarch64_code_to_ccmode): Remove.
12552 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
12553 comparison with CC register to be used in folowing CCMP/branch/CSEL.
12554 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
12555 pattern. Return the comparison with CC register. Invert conditions
12556 when bitcode is OR.
12557 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
12558 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
12559
12560 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
12561
12562 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
12563 instrumented_version.
12564
12565 2016-01-19 Richard Biener <rguenther@suse.de>
12566
12567 PR tree-optimization/69336
12568 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
12569 handled components with get_ref_base_and_extent.
12570 (equal_mem_array_ref_p): Adjust.
12571
12572 2016-01-19 Jakub Jelinek <jakub@redhat.com>
12573
12574 PR debug/65779
12575 * shrink-wrap.c: Include valtrack.h.
12576 (move_insn_for_shrink_wrap): Add DEBUG argument. If
12577 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
12578 in between insn and where it will be moved to. Call
12579 dead_debug_insert_temp.
12580 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
12581 first and dead_debug_local_finish at the end.
12582 For uses and defs bitmap, handle all regs in between REGNO and
12583 END_REGNO, not just the first one.
12584
12585 2016-01-19 Richard Biener <rguenther@suse.de>
12586
12587 PR tree-optimization/69352
12588 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
12589 (equal_mem_array_ref_p): Constrain size and max size properly.
12590 Compare the reverse flag.
12591
12592 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
12593
12594 * ira.c (ira): Update regstat data if we deleted insns.
12595
12596 2016-01-19 Jakub Jelinek <jakub@redhat.com>
12597
12598 PR rtl-optimization/68955
12599 PR rtl-optimization/64557
12600 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
12601 here. Fix up formatting.
12602 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
12603
12604 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
12605
12606 PR lto/69133
12607 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
12608 assume that the node has body.
12609 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
12610 check.
12611
12612 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
12613
12614 * lto-streamer-out.c (lto_output): Do not stream instrumentation
12615 thunks.
12616
12617 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
12618
12619 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
12620 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
12621
12622 2016-01-19 Martin Jambor <mjambor@suse.cz>
12623 Martin Liska <mliska@suse.cz>
12624 Michael Matz <matz@suse.de>
12625
12626 * Makefile.in (OBJS): Add new source files.
12627 (GTFILES): Add hsa.c.
12628 * common.opt (disable_hsa): New variable.
12629 (-Whsa): New warning.
12630 * config.in (ENABLE_HSA): New.
12631 * configure.ac: Treat hsa differently from other accelerators.
12632 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
12633 $enable_offloading.
12634 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
12635 * doc/install.texi (Configuration): Document --with-hsa-runtime,
12636 --with-hsa-runtime-include, --with-hsa-runtime-lib and
12637 --with-hsa-kmt-lib.
12638 * doc/invoke.texi (-Whsa): Document.
12639 (hsa-gen-debug-stores): Likewise.
12640 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
12641 to invoke offload compiler for hsa acclerator.
12642 * opts.c (common_handle_option): Determine whether HSA offloading
12643 should be performed.
12644 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
12645 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
12646 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
12647 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
12648 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
12649 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
12650 GF_OMP_FOR_KIND_GRID_LOOP.
12651 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
12652 (pp_gimple_stmt_1): Likewise.
12653 * gimple-walk.c (walk_gimple_stmt): Likewise.
12654 * gimple.c (gimple_build_omp_grid_body): New function.
12655 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
12656 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
12657 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
12658 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
12659 GF_OMP_TEAMS_GRID_PHONY.
12660 (gimple_statement_omp_single_layout): Updated comments.
12661 (gimple_build_omp_grid_body): New function.
12662 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
12663 (gimple_omp_for_grid_phony): New function.
12664 (gimple_omp_for_set_grid_phony): Likewise.
12665 (gimple_omp_parallel_grid_phony): Likewise.
12666 (gimple_omp_parallel_set_grid_phony): Likewise.
12667 (gimple_omp_teams_grid_phony): Likewise.
12668 (gimple_omp_teams_set_grid_phony): Likewise.
12669 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
12670 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
12671 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
12672 (BUILT_IN_GOMP_TARGET): Updated type.
12673 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
12674 (adjust_for_condition): New function.
12675 (get_omp_for_step_from_incr): Likewise.
12676 (extract_omp_for_data): Moved parts to adjust_for_condition and
12677 get_omp_for_step_from_incr.
12678 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
12679 (fixup_child_record_type): Bail out if receiver_decl is NULL.
12680 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
12681 (scan_omp_parallel): Do not create child functions for phony
12682 constructs.
12683 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
12684 (scan_omp_1_op): Checking assert we are not remapping to
12685 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
12686 (parallel_needs_hsa_kernel_p): New function.
12687 (expand_parallel_call): Register apprpriate parallel child
12688 functions as HSA kernels.
12689 (grid_launch_attributes_trees): New type.
12690 (grid_attr_trees): New variable.
12691 (grid_create_kernel_launch_attr_types): New function.
12692 (grid_insert_store_range_dim): Likewise.
12693 (grid_get_kernel_launch_attributes): Likewise.
12694 (get_target_argument_identifier_1): Likewise.
12695 (get_target_argument_identifier): Likewise.
12696 (get_target_argument_value): Likewise.
12697 (push_target_argument_according_to_value): Likewise.
12698 (get_target_arguments): Likewise.
12699 (expand_omp_target): Call get_target_arguments instead of looking
12700 up for teams and thread limit.
12701 (grid_expand_omp_for_loop): New function.
12702 (grid_arg_decl_map): New type.
12703 (grid_remap_kernel_arg_accesses): New function.
12704 (grid_expand_target_kernel_body): New function.
12705 (expand_omp): Call it.
12706 (lower_omp_for): Do not emit phony constructs.
12707 (lower_omp_taskreg): Do not emit phony constructs but create for them
12708 a temporary variable receiver_decl.
12709 (lower_omp_taskreg): Do not emit phony constructs.
12710 (lower_omp_teams): Likewise.
12711 (lower_omp_grid_body): New function.
12712 (lower_omp_1): Call it.
12713 (grid_reg_assignment_to_local_var_p): New function.
12714 (grid_seq_only_contains_local_assignments): Likewise.
12715 (grid_find_single_omp_among_assignments_1): Likewise.
12716 (grid_find_single_omp_among_assignments): Likewise.
12717 (grid_find_ungridifiable_statement): Likewise.
12718 (grid_target_follows_gridifiable_pattern): Likewise.
12719 (grid_remap_prebody_decls): Likewise.
12720 (grid_copy_leading_local_assignments): Likewise.
12721 (grid_process_kernel_body_copy): Likewise.
12722 (grid_attempt_target_gridification): Likewise.
12723 (grid_gridify_all_targets_stmt): Likewise.
12724 (grid_gridify_all_targets): Likewise.
12725 (execute_lower_omp): Call grid_gridify_all_targets.
12726 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
12727 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
12728 (tree_omp_clause): Added union field dimension.
12729 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
12730 * tree.c (omp_clause_num_ops): Added number of arguments of
12731 OMP_CLAUSE__GRIDDIM_.
12732 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
12733 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
12734 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
12735 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
12736 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
12737 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
12738 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
12739 * tree-pass.h (make_pass_gen_hsail): Declare.
12740 (make_pass_ipa_hsa): Likewise.
12741 * ipa-hsa.c: New file.
12742 * lto-section-in.c (lto_section_name): Add hsa section name.
12743 * lto-streamer.h (lto_section_type): Add hsa section.
12744 * timevar.def (TV_IPA_HSA): New.
12745 * hsa-brig-format.h: New file.
12746 * hsa-brig.c: New file.
12747 * hsa-dump.c: Likewise.
12748 * hsa-gen.c: Likewise.
12749 * hsa.c: Likewise.
12750 * hsa.h: Likewise.
12751 * toplev.c (compile_file): Call hsa_output_brig.
12752 * hsa-regalloc.c: New file.
12753
12754 2016-01-18 Jeff Law <law@redhat.com>
12755
12756 PR tree-optimization/69320
12757 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
12758 ranged object, do nothing if the RHS constant is not [0..1].
12759 (optimize_stmt): Comparing a boolean ranged object against a
12760 constant outside [0..1] results in a compile-time constant.
12761
12762 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
12763 test.
12764
12765 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
12766
12767 * doc/invoke.texi (Invoking GCC): Add new section to menu.
12768 (Option Summary): Update to reflect new section and moved options.
12769 (C++ Dialect Options): Move -fstats to new section.
12770 (Debugging Options): Move all dump, statistics, and other GCC
12771 developer options to new section. Rewrite section introduction
12772 and re-order remaining options to put the more basic ones first.
12773 (Optimization Options): Move -fira-verbose and -flto-report* to
12774 new section.
12775 (Developer Options): New section incorporating moved options.
12776 * doc/cppopts.texi (-dM): Update cross-reference.
12777
12778 2016-01-18 Richard Henderson <rth@redhat.com>
12779
12780 PR target/69176
12781 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
12782 operands to pseudo only if CSE is expected. Split long immediate
12783 operands only after reload, and for the stack pointer.
12784 (*add<GPI>3_pluslong): Remove.
12785 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
12786 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
12787 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
12788 (*add<GPI>3 peepholes): New.
12789 (*add<GPI>3 splitters): New.
12790 * config/aarch64/constraints.md (Upl): New.
12791 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
12792
12793 2016-01-18 Richard Biener <rguenther@suse.de>
12794
12795 PR tree-optimization/69297
12796 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
12797 stmt at most once.
12798 (vect_bb_vectorization_profitable_p): Clear visited flag again.
12799
12800 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
12801
12802 PR middle-end/68542
12803 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
12804 of mixind vector and scalar types.
12805 (fold_relational_const): Add handling of vector
12806 comparison with boolean result.
12807 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
12808 comparison of vector operands with boolean result for EQ/NE only.
12809 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
12810 (verify_gimple_cond): Likewise.
12811 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
12812 valid type of VAL.
12813
12814 2016-01-18 Joseph Myers <joseph@codesourcery.com>
12815
12816 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
12817 !TARGET_OCTEON.
12818
12819 2016-01-18 Richard Biener <rguenther@suse.de>
12820
12821 PR middle-end/69308
12822 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
12823
12824 2016-01-18 Tom de Vries <tom@codesourcery.com>
12825
12826 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
12827
12828 2016-01-18 Tom de Vries <tom@codesourcery.com>
12829
12830 * omp-low.c (set_oacc_fn_attrib): Make extern.
12831 * omp-low.h (set_oacc_fn_attrib): Declare.
12832 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
12833 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
12834 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
12835 Add and handle function parameter oacc_kernels_p.
12836 (find_reduc_addr, get_omp_data_i_param): New function.
12837 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
12838 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
12839 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
12840 Calculate dominance info. Skip loops that are not in a kernels region
12841 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
12842 (pass_parallelize_loops::execute): Call parallelize_loops with
12843 oacc_kernels_p argument.
12844 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
12845 New member function.
12846 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
12847 * passes.def: Add argument to pass_parallelize_loops instantation.
12848
12849 2016-01-18 Tom de Vries <tom@codesourcery.com>
12850
12851 * tree-parloops.c (pass_parallelize_loops::execute): Allow
12852 pass_parallelize_loops to be run outside the loop pipeline.
12853
12854 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
12855
12856 * tree-scalar-evolution.c (follow_copies_to_constant): New.
12857 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
12858
12859 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
12860
12861 PR target/63679
12862 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
12863 using get_ref_base_and_extent.
12864 (equal_mem_array_ref_p): New.
12865 (hashable_expr_equal_p): Add call to previous.
12866
12867 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
12868
12869 PR target/63679
12870 * tree-sra.c (disqualified_constants, constant_decl_p): New.
12871 (sra_initialize): Allocate disqualified_constants.
12872 (sra_deinitialize): Free disqualified_constants.
12873 (disqualify_candidate): Update disqualified_constants when appropriate.
12874 (create_access): Scan for constant-pool entries as we go along.
12875 (scalarizable_type_p): Add check against type_contains_placeholder_p.
12876 (maybe_add_sra_candidate): Allow constant-pool entries.
12877 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
12878 (initialize_constant_pool_replacements): New.
12879 (sra_modify_assign): Avoid mangling assignments created by previous,
12880 and don't generate writes into constant pool.
12881 (sra_modify_function_body): Call initialize_constant_pool_replacements.
12882
12883 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
12884
12885 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
12886 andnot instruction.
12887 (scalar_chain::convert_op): Likewise.
12888 * config/i386/i386.md (*andndi3_doubleword): New.
12889
12890 2016-01-18 Richard Biener <rguenther@suse.de>
12891
12892 PR tree-optimization/69170
12893 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
12894 building a vector from scalar results of a pattern stmt.
12895
12896 2016-01-18 Jakub Jelinek <jakub@redhat.com>
12897
12898 * haifa-sched.c (autopref_multipass_init): Work around
12899 -Wmaybe-uninitialized warning.
12900
12901 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
12902
12903 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
12904 against the constant 0.
12905
12906 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12907
12908 PR tree-optimization/68799
12909 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
12910 look up phi candidates in the statement-candidate map.
12911 (phi_add_costs): Likewise.
12912 (record_phi_increments): Likewise.
12913 (phi_incr_cost): Likewise.
12914 (ncd_with_phi): Likewise.
12915 (all_phi_incrs_profitable): Likewise.
12916
12917 2016-01-17 Jakub Jelinek <jakub@redhat.com>
12918
12919 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
12920 -Wmaybe-uninitialized warning.
12921
12922 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
12923
12924 * doc/invoke.texi (Invoking GCC): Add new section to menu.
12925 (Option Summary): Update to reflect new section and moved options.
12926 (C++ Dialect Options): Move -fvtable-verify and related options.
12927 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
12928 and profiling-related options.
12929 (Optimization Options): Move profile generation options and
12930 -fstack-protector and related options.
12931 (Instrumentation Options): New section incorporating moved options.
12932 (Code Generation Options): Move -finstrument-functions and
12933 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
12934
12935 2016-01-16 Tom de Vries <tom@codesourcery.com>
12936
12937 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
12938
12939 2016-01-16 Tom de Vries <tom@codesourcery.com>
12940
12941 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
12942
12943 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
12944
12945 * hash-table.h (hash_table::empty): Turn into an inline wrapper
12946 that checks whether the table is already empty. Rename the
12947 original implementation to...
12948 (hash_table::empty_slot): ...this new private function.
12949
12950 2016-01-15 David Malcolm <dmalcolm@redhat.com>
12951
12952 PR diagnostic/68899
12953 * diagnostic-show-locus.c (layout::print_source_line): Move x
12954 offset of line until after call to
12955 get_line_width_without_trailing_whitespace.
12956
12957 2016-01-15 Jeff Law <law@redhat.com>
12958
12959 PR tree-optimization/69270
12960 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
12961 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
12962 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
12963 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
12964 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
12965 ssa_name_has_boolean_range and constant_boolean_node.
12966
12967 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
12968
12969 PR rtl-optimization/69030
12970 * lra-spills.c (remove_pseudos): Check nrefs and make the function
12971 returning bool.
12972 (spill_pseudos): Delete debug insn for dead pseudo.
12973 (lra_spill): Initiate spill_hard_reg and slots memory separately.
12974
12975 2016-01-15 Jiong Wang <jiong.wang@arm.com>
12976
12977 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
12978 New.
12979 (TYPES_UNOPUS): Likewise.
12980 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
12981 builtin type, from UNOP to UNOPUS.
12982 (lbtruncuv4sf): Likewise.
12983 (lbtruncuv2df): Likewise.
12984 (lrounduv2sf): Likewise.
12985 (lrounduv4sf): Likewise.
12986 (lrounduv2df): Likewise.
12987 (lroundusf): Likewise.
12988 (lroundusf): Likewise.
12989 (lceiluv2sf): Likewise.
12990 (lceiluv4sf): Likewise.
12991 (lceiluv2df): Likewise.
12992 (lceilusf): Likewise.
12993 (lceiludf): Likewise.
12994 (lflooruv2sf): Likewise.
12995 (lflooruv4sf): Likewise.
12996 (lflooruv2df): Likewise.
12997 (lfloorusf): Likewise.
12998 (lfloorudf): Likewise.
12999 (lfrintnuv2sf): Likewise.
13000 (lfrintnuv4sf): Likewise.
13001 (lfrintnuv2df): Likewise.
13002 (lfrintnusf): Likewise.
13003 (lfrintnudf): Likewise.
13004 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
13005 conversion.
13006 (vcvtq_u32_f32): Likewise.
13007 (vcvtq_u64_f64): Likewise.
13008 (vcvta_u32_f32): Likewise.
13009 (vcvtaq_u32_f32): Likewise.
13010 (vcvtaq_u64_f64): Likewise.
13011 (vcvtm_u32_f32): Likewise.
13012 (vcvtmq_u32_f32): Likewise.
13013 (vcvtmq_u64_f64): Likewise.
13014 (vcvtn_u32_f32): Likwise.
13015 (vcvtnq_u32_f32): Likewise.
13016 (vcvtnq_u64_f64): Likewise.
13017 (vcvtp_u32_f32): Likewise.
13018 (vcvtpq_u32_f32): Likewise.
13019 (vcvtpq_u64_f64): Likewise.
13020 (vcvtmd_u64_f64): Likewise.
13021 (vcvtms_u32_f32): Likewise.
13022 (vcvtad_u64_f64): Likewise.
13023 (vcvtas_u32_f32): Likewise.
13024 (vcvtnd_u64_f64): Likewise.
13025 (vcvtns_u32_f32): Likewise.
13026 (vcvtpd_u64_f64): Likewise.
13027 (vcvtps_u32_f32): Likewise.
13028
13029 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13030
13031 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
13032 CSEL of zero_extended registers.
13033
13034 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13035
13036 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
13037 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
13038
13039 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13040
13041 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
13042 false when argument string is not found in the attributes table
13043 at all.
13044
13045 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
13046
13047 PR target/68609
13048 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
13049 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
13050 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
13051 precision estimate.
13052
13053 2016-01-15 Richard Biener <rguenther@suse.de>
13054
13055 PR tree-optimization/66856
13056 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
13057 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
13058 (vect_create_new_slp_node): Increment stmt reference count.
13059 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
13060 an SLP tree before swapping operands.
13061 (vect_build_slp_tree): Likewise.
13062 (destroy_bb_vec_info): Free stmt info after SLP instances.
13063 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
13064 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
13065 (STMT_VINFO_NUM_SLP_USES): New macro.
13066
13067 2016-01-15 Richard Biener <rguenther@suse.de>
13068
13069 PR debug/69137
13070 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
13071 (add_linkage_name): ... here.
13072 (gen_typedef_die): Use add_linkage_name_raw instead of
13073 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
13074 if necessary.
13075
13076 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
13077
13078 * gimplify.c (oacc_default_clause): Decode reference and pointer
13079 types for both kernels and parallel regions.
13080
13081 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
13082
13083 PR middle-end/69246
13084 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
13085
13086 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
13087
13088 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
13089 (convert_scalars_to_vector): Likewise.
13090
13091 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
13092
13093 * doc/extend.texi (Type Traits): Fix grammar.
13094
13095 2016-01-15 Martin Jambor <mjambor@suse.cz>
13096
13097 * tree-inline.c (remap_decl): Use existing dclarations if
13098 remapping a type and prevent_decl_creation_for_types.
13099 (replace_locals_stmt): Do an initial remapping of non-VLA typed
13100 decls first. Do real remapping with
13101 prevent_decl_creation_for_types set.
13102 * tree-inline.h (copy_body_data): New field
13103 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
13104 padding.
13105
13106 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
13107
13108 * config/s390/s390.opt (mmvcle): More verbose help text.
13109
13110 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
13111
13112 * config/s390/s390.opt: Add period to -mzvector option text.
13113
13114 2016-01-15 Richard Biener <rguenther@suse.de>
13115
13116 PR tree-optimization/68961
13117 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
13118 of invariants in stores again.
13119
13120 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
13121
13122 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
13123
13124 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
13125
13126 * config/i386/i386.c (ix86_expand_branch): Don't split
13127 DI mode xor instruction to SI mode.
13128
13129 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
13130
13131 PR ipa/68148
13132 * ipa-icf.c (sem_function::merge): Virtual functions may become
13133 reachable even if they address is not taken and there are no
13134 idrect calls.
13135
13136 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
13137
13138 * lto-streamer-out.c (subtract_estimated_size): New function.
13139 (get_symbol_initial_value): Use it.
13140
13141 2016-01-15 Christian Bruel <christian.bruel@st.com>
13142
13143 PR target/65837
13144 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
13145 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
13146 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
13147 use add_builtin_function_ext_scope instead of add_builtin_function.
13148 (neon_set_p, neon_crypto_set_p): Remove.
13149 (arm_init_builtins): Always call arm_init_neon_builtins and
13150 arm_init_crypto_builtins.
13151 (arm_expand_builtin): Check that builtins are allowed for the arch.
13152 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
13153 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
13154 arm_init_neon_builtins call.
13155
13156 2016-01-15 Richard Biener <rguenther@suse.de>
13157
13158 PR tree-optimization/69117
13159 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
13160 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
13161 of the leader conservatively.
13162 (free_scc_vn): Restore original SSA name infos.
13163
13164 2016-01-14 Jeff Law <law@redhat.com>
13165
13166 PR tree-optimization/69270
13167 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
13168 single bit of precision, verify it's also unsigned.
13169 (record_edge_info): Use constant_boolean_node rather than fold_convert
13170 to convert boolean_true/boolean_false to the right type.
13171
13172 2016-01-14 Richard Henderson <rth@redhat.com>
13173
13174 PR rtl-opt/69014
13175 * loop-doloop.c (record_reg_sets): New.
13176 (doloop_optimize): Reject the transform if the sequence
13177 clobbers registers live at the end of the loop block.
13178 (doloop_optimize_loops): Enable df_live if needed.
13179
13180 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
13181
13182 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
13183 * config/rs6000/rs6000.c: Likewise.
13184 * config/rs6000/rs6000.h: Likewise.
13185 * config/rs6000/rs6000.md: Likewise.
13186 * doc/extend.texi: Likewsie.
13187
13188 2016-01-14 Jeff Law <law@redhat.com>
13189
13190 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
13191 typo.
13192
13193 2016-01-14 Richard Henderson <rth@redhat.com>
13194
13195 PR c/69272
13196 PR tree-opt/68964
13197 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
13198 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
13199 instead of builtin_decl_declared_p to test for declaration.
13200
13201 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
13202
13203 * doc/loop.texi (Loop Analysis and Representation): Document
13204 loop_depth function.
13205
13206 2016-01-14 Tom de Vries <tom@codesourcery.com>
13207
13208 PR tree-optimization/68773
13209 * omp-low.c (expand_omp_target): Don't set force_output.
13210 * varpool.c (varpool_node::get_create): Same.
13211 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
13212 offload_funcs with force_output.
13213
13214 2016-01-14 Jakub Jelinek <jakub@redhat.com>
13215
13216 PR debug/69244
13217 * lra-eliminations.c (move_plus_up): Don't change anything if either
13218 the outer or inner subreg mode is not MODE_INT.
13219 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
13220 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
13221
13222 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
13223
13224 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
13225 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
13226 reduc_uplus_@var{m}): Remove.
13227 * expr.c (expand_expr_real_2): Remove expansion path for
13228 reduc_[us](min|max|plus) optabs.
13229 * optabs-tree.c (scalar_reduc_to_vector): Remove.
13230 * optabs-tree.h (scalar_reduc_to_vector): Remove.
13231 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
13232 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
13233 * tree-vect-loop.c (vectorizable_reduction): Remove test for
13234 reduc_[us](min|max|plus) optabs.
13235
13236 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
13237
13238 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
13239 (reduc_plus_scal_v2sf): New.
13240 (reduc_smax_v2sf): Rename to...
13241 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
13242 (reduc_smin_v2sf): Rename to...
13243 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
13244
13245 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
13246
13247 * alias.c (compare_base_symbol_refs): New function.
13248 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
13249 it.
13250
13251 2016-01-14 Jakub Jelinek <jakub@redhat.com>
13252
13253 PR middle-end/68146
13254 PR tree-optimization/69155
13255 * tree-complex.c: Include cfganal.h.
13256 (phis_to_revisit): New variable.
13257 (extract_component): Add phiarg_p argument. Assert that returned
13258 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
13259 (update_phi_components): Partly rewrite to use loop over real/imag
13260 components instead of code duplication. If extract_component returns
13261 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
13262 create_tmp_reg into the PHI node instead, and mention the phi triplet
13263 in phis_to_revisit.
13264 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
13265 in phis_to_revisit at the end.
13266
13267 2016-01-14 Richard Biener <rguenther@suse.de>
13268
13269 PR tree-optimization/68060
13270 * tree-vect-loop.c (vect_is_simple_reduction): Check the
13271 outer loop reduction is only used in the inner loop before
13272 detecting a double reduction.
13273
13274 2016-01-14 Jakub Jelinek <jakub@redhat.com>
13275
13276 PR target/68269
13277 * combine.c (expand_field_assignment): Punt if compute_mode is
13278 unsupported scalar mode.
13279
13280 2016-01-14 Richard Biener <rguenther@suse.de>
13281
13282 PR tree-optimization/66856
13283 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
13284 SLP node only if it built successfully.
13285 (vect_analyze_slp_instance): Adjust.
13286
13287 2016-01-14 Jeff Law <law@redhat.com>
13288
13289 PR tree-optimization/69270
13290 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
13291 (record_edge_info): Use it. Convert boolean_{true,false}_node
13292 to the type of op0.
13293
13294 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
13295
13296 PR ipa/66487
13297 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
13298 use block_ultimate_origin
13299 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
13300
13301 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
13302
13303 * doc/invoke.texi (Submodel Options): Rename section to
13304 "Machine-Dependent Options" to better reflect its content.
13305 Rewrite introductory text to remove archaic CPU names.
13306 Update references.
13307
13308 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
13309
13310 * doc/invoke.texi (Code Gen Options): Move section up in file,
13311 before target-specific options. Update menu and option summary
13312 to reflect the new section ordering.
13313
13314 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
13315
13316 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
13317 (C++ Dialect Options): Add cross-reference to -std option.
13318 * doc/standards.texi (C++ Language): Document C++14 support.
13319
13320 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
13321
13322 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
13323 for pack/unpack functions for __ibm128.
13324 (PACK_IF): Likewise.
13325 (UNPACK_IF): Likewise.
13326
13327 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
13328 support for __ibm128 pack/unpack functions.
13329 (rs6000_invalid_builtin): Likewise.
13330 (rs6000_init_builtins): Likewise.
13331 (rs6000_opt_masks): Likewise.
13332
13333 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
13334 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
13335 functions
13336 (RS6000_BTM_COMMON): Likewise.
13337
13338 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
13339 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
13340 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
13341 128-bit floating point. Add support for the double values to be
13342 in Altivec registers for TF/IF packing and unpacking, but restrict
13343 TD packing sub-fields to be FPR registers. Don't allow overlapped
13344 register support for packing. Allow pack inputs to be memory
13345 locations. Don't build generator functions for unpack<mode>_dm
13346 and unpack<mode>_nodm.
13347 (unpack<mode>_dm): Likewise.
13348 (unpack<mode>_nodm): Likewise.
13349 (pack<mode>): Likewise.
13350
13351 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
13352 built-in functions to pack/unpack explicit __ibm128 values.
13353 (__builtin_unpack_ibm128): Likewise.
13354
13355 * doc/extend.texi (PowerPC Built-in Functions): Document
13356 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
13357
13358 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
13359
13360 PR c/66208
13361 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
13362 Add new arg loc and pass it down as context.
13363 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
13364 to the location to use for the warning.
13365 (check_function_arguments): New arg loc. All callers changed. Pass
13366 it to check_function_nonnull.
13367 * c-common.h (check_function_arguments): Adjust declaration.
13368
13369 2016-01-13 Jakub Jelinek <jakub@redhat.com>
13370
13371 PR tree-optimization/69156
13372 * gimple.c (validate_type): Removed.
13373 (gimple_builtin_call_types_compatible_p): Use
13374 useless_type_conversion_p instead of validate_type.
13375 * value-prof.c (gimple_stringop_fixed_value): Fold
13376 icall_size to correct type.
13377
13378 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
13379
13380 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
13381 effects.
13382
13383 2016-01-13 Richard Henderson <rth@redhat.com>
13384
13385 PR tree-opt/68964
13386 * target.def (builtin_tm_load, builtin_tm_store): Remove.
13387 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
13388 (ix86_builtin_tm_store): Remove.
13389 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
13390 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
13391 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
13392 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
13393 * doc/tm.texi: Rebuild.
13394
13395 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
13396 (BUILT_IN_TM_MEMCPY_RTWN): New.
13397 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
13398 fallback from vector to integer helpers.
13399 (build_tm_load): Handle vector types directly, instead of
13400 via target hook.
13401 (build_tm_store): Likewise.
13402 (expand_assign_tm): Prepare for register types not handled by
13403 the above. Copy them to memory and use memcpy.
13404 * tree.c (tm_define_builtin): New.
13405 (find_tm_vector_type): New.
13406 (build_tm_vector_builtins): New.
13407 (build_common_builtin_nodes): Call it.
13408
13409 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
13410
13411 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
13412 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
13413
13414 2016-01-13 Tom de Vries <tom@codesourcery.com>
13415
13416 PR tree-optimization/69169
13417 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
13418 handled_struct_type param.
13419 (create_variable_info_for, intra_create_variable_infos): Call
13420 create_variable_info_for_1 with extra arg.
13421
13422 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
13423
13424 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
13425 and "armv8.1-a+crc" entries.
13426
13427 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
13428
13429 PR target/69228
13430 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
13431 Change first operand predicate from register_or_constm1_operand
13432 to register_operand.
13433 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
13434 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
13435 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
13436 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
13437 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
13438 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
13439 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
13440 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
13441 comparison with constm1_rtx from vec_prefetch_gen part.
13442
13443 2016-01-13 Richard Biener <rguenther@suse.de>
13444
13445 PR tree-optimization/69013
13446 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
13447 Exchange assert for a test.
13448
13449 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13450
13451 PR target/69247
13452 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
13453
13454 2016-01-13 Richard Biener <rguenther@suse.de>
13455
13456 PR tree-optimization/69242
13457 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
13458 assert with a check.
13459
13460 2016-01-13 Richard Biener <rguenther@suse.de>
13461
13462 PR tree-optimization/69186
13463 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
13464 Properly guard vect_update_misalignment_for_peel call.
13465
13466 2016-01-12 Jeff Law <law@redhat.com>
13467
13468 PR tree-optimization/pr67755
13469 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
13470 "need_profile_correction".
13471 (thread_block_1): Initialize new field to false by default. If we
13472 have multiple thread paths through a common joiner to different
13473 final targets, then set new field to true.
13474 (compute_path_counts): Only do count adjustment when it's really
13475 needed.
13476
13477 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
13478
13479 * doc/invoke.texi (Spec Files): Move section down in file, past
13480 all command-line option descriptions.
13481
13482 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13483
13484 PR middle-end/54809
13485 * doc/gty.texi: Remove documentation of mark_hook.
13486 * gengtype.c (struct write_types_data): Remove code to support
13487 mark_hook attribute.
13488 (walk_type): Likewise.
13489 (write_func_for_structure): Likewise.
13490
13491 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
13492
13493 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
13494 Directory Options, and -specs= to Overall Options.
13495 (Overall Options): Adjust similarly. Reorder to group related
13496 options together. Make -specs= cross-reference the spec file details.
13497 (Directory Options): Adjust similarly.
13498
13499 2016-01-12 Jeff Law <law@redhat.com>
13500
13501 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
13502
13503 2016-01-12 Olivier Hainque <hainque@adacore.com>
13504
13505 * gcc.c (spec_undefvar_allowed): New global.
13506 (process_command): Set to true when running for --version or --help,
13507 alone or together.
13508 (getenv_spec_function): When the variable is not defined, use the
13509 variable name as the variable value if we're allowed not to issue
13510 a fatal error.
13511
13512 2016-01-12 Bin Cheng <bin.cheng@arm.com>
13513
13514 PR tree-optimization/68911
13515 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
13516 information computed for expression "init + nit * step".
13517
13518 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
13519
13520 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
13521 about name of GCC executable. Remove deleted node from menu.
13522 (Directory Options) <-B>: Remove cross-reference to deleted node.
13523 (Target Options): Delete section.
13524
13525 2016-01-12 Christian Bruel <christian.bruel@st.com>
13526
13527 PR target/69180
13528 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
13529 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
13530
13531 2016-01-12 Jakub Jelinek <jakub@redhat.com>
13532
13533 PR target/69198
13534 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
13535 aligned_mem is properly set for AVX512-VL floating point masked
13536 stores.
13537
13538 PR target/69175
13539 * ifcvt.c (cond_exec_process_if_block): When removing the last
13540 insn from then_bb, remove also any possible barriers that follow it.
13541
13542 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
13543
13544 PR target/68456
13545 PR target/69226
13546 * config/i386/iamcu.h (SIZE_TYPE): New macro.
13547 (PTRDIFF_TYPE): Likewise.
13548 (WCHAR_TYPE): Likewise.
13549 (WCHAR_TYPE_SIZE): Likewise.
13550 (STDINT_LONG32): Likewise.
13551
13552 2016-01-12 Richard Biener <rguenther@suse.de>
13553
13554 PR tree-optimization/69053
13555 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
13556 convert initial value for cond reductions.
13557
13558 2016-01-12 Richard Biener <rguenther@suse.de>
13559
13560 PR tree-optimization/69007
13561 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
13562 widen_sum after dot_prod and sad.
13563
13564 2016-01-12 Richard Biener <rguenther@suse.de>
13565
13566 PR tree-optimization/69168
13567 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
13568 pattern stmt SLP type.
13569 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
13570 end up unused so cope with that case.
13571
13572 2016-01-12 Richard Biener <rguenther@suse.de>
13573
13574 PR tree-optimization/69157
13575 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
13576 stmts def type only during analyze phase.
13577 (vectorizable_call): Likewise.
13578 (vectorizable_simd_clone_call): Likewise.
13579 (vectorizable_conversion): Likewise.
13580 (vectorizable_assignment): Likewise.
13581 (vectorizable_shift): Likewise.
13582 (vectorizable_operation): Likewise.
13583 (vectorizable_store): Likewise.
13584 (vectorizable_load): Likewise.
13585
13586 2016-01-12 Richard Biener <rguenther@suse.de>
13587
13588 PR tree-optimization/69174
13589 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
13590 space.
13591 (vectorizable_load): Properly compute the number of loads needed
13592 for permuted strided SLP loads and do not spuriously assign
13593 to SLP_TREE_VEC_STMTS.
13594
13595 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
13596
13597 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
13598 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
13599 (MD_EXEC_PREFIX): Remove.
13600 (MD_STARTFILE_PREFIX) Removee.
13601 (FILE_NAME_ABSOLUTE_P): Remove.
13602 (CPP_SPEC): Do not read macros from sys/version.h.
13603 (LINK_COMMAND_SPEC): Remove.
13604 (LOCAL_INCLUDE_DIR): Remove.
13605 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
13606 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
13607 (POST_LINK_SPEC): Define to invoke stubify after linker
13608 (LIBSTDCXX): Remove define
13609 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
13610 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
13611 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
13612 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
13613 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
13614 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
13615 (i386_djgpp_asm_named_section): Add propotype of new procedure
13616
13617 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
13618 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
13619 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
13620 in config/i386/djgpp.h).
13621 (STANDARD_STARTFILE_PREFIX_2): Define identical to
13622 STANDARD_STARTFILE_PREFIX_1.
13623 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
13624 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
13625 installation errors.
13626 (MAX_OFILE_ALIGNMENT): Define to 128.
13627 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
13628
13629 * config/i386/djgpp.c: New file. Add implementation of
13630 i386_djgpp_asm_named_section.
13631
13632 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
13633
13634 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
13635 Add rule for building djgpp.o.
13636
13637 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13638
13639 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
13640 (rtx_is_swappable_p): Reductions are swappable.
13641 (insn_is_swappable_p): V2DF reductions are swappable.
13642
13643 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
13644
13645 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
13646 reloads for other unsupported memory operands.
13647
13648 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
13649 Jim Wilson <jim.wilson@linaro.org>
13650
13651 PR target/69194
13652 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
13653 copy_to_mode_reg instead of force_reg.
13654
13655 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
13656
13657 PR target/69225
13658 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
13659 TARGET_80387 is true.
13660
13661 2016-01-11 Jakub Jelinek <jakub@redhat.com>
13662
13663 PR target/69071
13664 * lra-eliminations.c (move_plus_up): Only move plus up
13665 if subreg of the constant can be simplified into constant
13666 and use the simplified subreg of the constant instead of
13667 the original constant.
13668
13669 * fold-const.c (fold_convertible_p): Don't return true
13670 for conversion of VECTOR_TYPE to same sized integral type.
13671 (fold_convert_loc): Fix up formatting. Fold conversion of
13672 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
13673 instead of NOP_EXPR.
13674
13675 PR tree-optimization/69214
13676 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
13677 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
13678 Formatting fix.
13679
13680 PR tree-optimization/69207
13681 * tree-vect-slp.c (vect_get_constant_vectors): For
13682 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
13683 fold_convertible_p to vector_type's element type, and always
13684 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
13685
13686 2016-01-11 Richard Biener <rguenther@suse.de>
13687
13688 PR tree-optimization/69173
13689 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
13690 fixup the cycle if all stmts are in a pattern.
13691
13692 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
13693
13694 PR middle-end/68999
13695 * alias.c (base_alias_check): Move check for addresses with
13696 alignment ANDs before the call for compare_base_decls.
13697 (memrefs_conflict_p): Return -1 for different decls
13698 that went through alignment adjustments.
13699
13700 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13701
13702 PR rtl-optimization/68796
13703 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
13704 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
13705 and QImode comparisons against zero with CC_NZmode.
13706 * config/aarch64/iterators.md (short_mask): New mode_attr.
13707
13708 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
13709
13710 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
13711 (<avx512>_store<mode>_mask): Likewise.
13712
13713 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
13714 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13715
13716 PR rtl-optimization/68841
13717 * ifcvt.c (struct noce_if_info): Add orig_x field.
13718 (bbs_ok_for_cmove_arith): Add to_rename parameter.
13719 Don't record conflicts on to_rename if it's present.
13720 Allow memory destinations in sets.
13721 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
13722 blocks, passing orig_x to the checks.
13723 (noce_process_if_block): Set if_info->orig_x appropriately.
13724
13725 2016-01-11 Tom de Vries <tom@codesourcery.com>
13726
13727 PR tree-optimization/69069
13728 * tree-parloops.c (create_parallel_loop): Add missing phi args.
13729
13730 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
13731
13732 PR rtl-optimization/68920
13733 * config/i386/i386.c (ix86_option_override_internal): Restrict number
13734 of conditional moves for RTL if-conversion to 1 for
13735 TARGET_ONE_IF_CONV_INSN.
13736 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
13737 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
13738 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
13739 parameter to restirct number of conditional moves for
13740 RTL if-conversion.
13741 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
13742 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
13743 conditionl moves.
13744
13745 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
13746
13747 PR bootstrap/69123
13748 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
13749 onepart vars. Fix typo in comment. Fix reversed condition in
13750 unshare test.
13751 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
13752
13753 PR bootstrap/69123
13754 * var-tracking.c (dump_onepart_variable_differences): New.
13755 (dataflow_set_different): If a detailed dump is requested,
13756 delay early returns and dump differences between onepart
13757 variables present before and after, and added variables.
13758
13759 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
13760
13761 PR target/69010
13762 * expr.c (expand_expr_real_1): For boolean vector constants
13763 with a scalar mode use const_scalar_mask_from_tree.
13764 (const_scalar_mask_from_tree): New.
13765 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
13766 assigned to a mask type to handle constants.
13767
13768 2016-01-11 Martin Jambor <mjambor@suse.cz>
13769
13770 PR ipa/69044
13771 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
13772 useless parameters if we cannot change function signature.
13773
13774 2016-01-11 Martin Jambor <mjambor@suse.cz>
13775
13776 PR ipa/66616
13777 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
13778 flag.
13779
13780 2016-01-11 Tom de Vries <tom@codesourcery.com>
13781
13782 PR tree-optimization/69109
13783 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
13784 latch with phi.
13785
13786 2016-01-11 Tom de Vries <tom@codesourcery.com>
13787
13788 PR tree-optimization/69108
13789 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
13790 res is not used in a phi.
13791
13792 2016-01-11 Yury Gribov <y.gribov@samsung.com>
13793
13794 PR 67425
13795 * common.opt (frandom-seed): Fix parameter name.
13796 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
13797
13798 2016-01-11 Tom de Vries <tom@codesourcery.com>
13799
13800 PR tree-optimization/69058
13801 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
13802 not supported.
13803
13804 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
13805
13806 * config/arc/arc.opt (mdiv-rem): Add period to the end.
13807 (mcode-density): Likewise.
13808
13809 2016-01-10 Tom de Vries <tom@codesourcery.com>
13810
13811 PR tree-optimization/69062
13812 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
13813 (parallelize_loops): Don't paralelize loop that has phi with address
13814 arg.
13815
13816 2016-01-10 Tom de Vries <tom@codesourcery.com>
13817
13818 PR tree-optimization/69039
13819 * tree-parloops.c (try_create_reduction_list): Only allow single exit
13820 phi for reduction.
13821
13822 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
13823
13824 PR middle-end/68743
13825 * match.pd: Require target has function_c99_misc before doing
13826 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
13827
13828 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
13829
13830 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
13831 use GMPINC.
13832 * configure: Regenerate.
13833
13834 2016-01-09 Jakub Jelinek <jakub@redhat.com>
13835
13836 PR middle-end/50865
13837 PR tree-optimization/69097
13838 * fold-const.h (expr_not_equal_to): New prototype.
13839 * fold-const.c: Include stringpool.h and tree-ssanames.h.
13840 (expr_not_equal_to): New function.
13841 * match.pd (X % -Y is the same as X % Y): Don't optimize
13842 unless X is known not to be equal to minimum or Y is known
13843 not to be equal to -1.
13844 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
13845 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
13846 (simplify_stmt_using_ranges): Adjust caller.
13847 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
13848 substitute_and_fold.
13849
13850 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
13851
13852 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
13853 w/o DECL_NAME.
13854
13855 2016-01-08 Jakub Jelinek <jakub@redhat.com>
13856
13857 PR tree-optimization/69167
13858 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
13859 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
13860 ops[0] comparison.
13861 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
13862
13863 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
13864 Richard Biener <rguenther@suse.de>
13865
13866 PR tree-optimization/68707
13867 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
13868 instances that can be handled via vect_load_lanes.
13869
13870 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
13871
13872 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
13873 if we can't determine address equivalence.
13874 * alias.c (compare_base_decl): Update for changed return value of
13875 symtab_node::equal_address_to.
13876
13877 2016-01-08 Jason Merrill <jason@redhat.com>
13878
13879 PR c++/68983
13880 PR c++/67557
13881 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
13882 * expr.c (store_field): Not here.
13883 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
13884 call with TREE_ADDRESSABLE type.
13885 * tree-cfg.c (verify_gimple_call): Adjust.
13886
13887 2016-01-08 Olivier Hainque <hainque@adacore.com>
13888
13889 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
13890 libc_internal.
13891
13892 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
13893
13894 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
13895 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
13896 (reduc_smin_v2sf): Rename to...
13897 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
13898 (reduc_splus_v2sf): Rename to...
13899 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
13900
13901 2016-01-08 Jakub Jelinek <jakub@redhat.com>
13902
13903 PR tree-optimization/69162
13904 * gimplify.c (gimplify_va_arg_expr): Encode original type of
13905 valist argument in another argument.
13906 (gimplify_modify_expr): Adjust for the above change. Cleanup.
13907 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
13908 to determine the va_list type, build a MEM_REF instead of
13909 build_fold_indirect_ref.
13910
13911 PR tree-optimization/69172
13912 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
13913 gimple_build.
13914
13915 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
13916
13917 PR tree-optimization/67781
13918 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
13919 and cmpnop in two steps: first the ones not accessed in original
13920 gimple expression in a endian independent way and then the ones not
13921 accessed in the final result in an endian-specific way.
13922
13923 2016-01-08 Jakub Jelinek <jakub@redhat.com>
13924
13925 PR tree-optimization/69083
13926 * tree-vect-slp.c (vect_get_constant_vectors): For
13927 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
13928 element type. If op is fold_convertible_p to vector_type's element
13929 type, use NOP_EXPR instead of VCE.
13930
13931 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
13932
13933 PR rtl-optimization/67778
13934 PR rtl-optimization/68634
13935 PR rtl-optimization/68909
13936 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
13937 block from the stack until done with it. Remove a superfluous
13938 bitmap set. Remove a superfluous bitmap test.
13939
13940 2016-01-07 Martin Sebor <msebor@redhat.com>
13941
13942 PR c/68966
13943 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
13944 constraint on the type of arguments.
13945
13946 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
13947
13948 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
13949 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
13950 unaligned_access on the gcc_options set.
13951 * config/arm/arm.c (arm_option_override_internal): Use
13952 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
13953
13954 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
13955
13956 PR target/69140
13957 * config/i386/i386.c (ix86_frame_pointer_required): Enable
13958 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
13959
13960 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
13961
13962 Revert
13963 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
13964
13965 PR target/69140
13966 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
13967 depending on frame_pointer_needed before remaining integer and SSE
13968 registers are saved.
13969
13970 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
13971
13972 PR 1078
13973 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
13974
13975 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
13976
13977 PR target/69171
13978 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
13979 Use the "xBm" constraint.
13980 (float<sseintvecmodelower><mode>2<mask_name><round_name):
13981 Likewise.
13982 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
13983 (sse_cvtsi2ssq<round_name>): Likewise.
13984 (sse_cvtss2si<round_name>): Likewise.
13985 (sse_cvtss2siq<round_name>): Likewise.
13986 (sse2_cvtsi2sdq<round_name>): Likewise.
13987 (sse2_cvtsd2si<round_name>): Likewise.
13988 (sse2_cvtsd2siq<round_name>): Likewise.
13989 * config/i386/subst.md (round_nimm_scalar_predicate): New
13990 predicate.
13991
13992 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
13993
13994 PR middle-end/67639
13995 * varasm.c (make_decl_rtl): Mark invalid register vars as
13996 DECL_EXTERNAL.
13997
13998 PR rtl-optimization/66206
13999 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
14000 All callers changed.
14001
14002 2016-01-07 Jakub Jelinek <jakub@redhat.com>
14003
14004 PR tree-optimization/69141
14005 * tree-ssa-pre.c: Include langhooks.h.
14006 (eliminate_dom_walker::before_dom_children): Use
14007 lang_hooks.decl_printable_name instead of
14008 cgraph_node::get ()->name ().
14009
14010 PR middle-end/68960
14011 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
14012 it and DECL_ALIGN too.
14013
14014 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
14015
14016 * config/mips/mips-ftypes.def: Sort to lexicographical order.
14017
14018 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
14019
14020 PR target/69140
14021 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
14022 depending on frame_pointer_needed before remaining integer and SSE
14023 registers are saved.
14024
14025 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14026
14027 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
14028 mode iterator with VSX_M2.
14029 (*p9_vecstore_<mode>): Likewise.
14030 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
14031 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
14032 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
14033 (define_split for VSX_LE128 stores): Likewise.
14034 (define_peephole2 for TImode LE swaps): Likewise.
14035 (define_split for VSX_LE128 post-reload stores): Likewise.
14036
14037 2016-01-06 Marek Polacek <polacek@redhat.com>
14038
14039 PR sanitizer/69099
14040 * convert.c (convert_to_integer_1): Adjust call to
14041 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
14042 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
14043 EXPR instead of ARG.
14044 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
14045
14046 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
14047
14048 PR 1078
14049 * doc/extend.texi (RL78 Variable Attributes): New section.
14050
14051 2016-01-05 Marek Polacek <polacek@redhat.com>
14052
14053 PR c/69104
14054 * builtins.c (get_memmodel): Use expansion point location rather than
14055 the input location. Call warning_at rather than warning.
14056 (expand_builtin_atomic_compare_exchange): Likewise.
14057 (expand_builtin_atomic_load): Likewise.
14058 (expand_builtin_atomic_store): Likewise.
14059 (expand_builtin_atomic_clear): Likewise.
14060
14061 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
14062
14063 PR target/68991
14064 * config/i386/i386.c (ix86_expand_vector_logical_operator):
14065 Replace nonimmediate_operand with vector_operand.
14066 * config/i386/predicates.md (vector_operand): New predicate.
14067 (general_vector_operand): Replace nonimmediate_operand with
14068 vector_operand.
14069 * config/i386/sse.md: Replace nonimmediate_operand with
14070 vector_operand and m constraint with Bm constraint on SSE
14071 patterns with 16-byte memory operand.
14072 * config/i386/subst.md (round_nimm_predicate): Replace
14073 nonimmediate_operand with vector_operand.
14074 (round_saeonly_nimm_predicate): Likewise.
14075 (round_saeonly_nimm_scalar_predicate): New.
14076
14077 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
14078
14079 PR target/68991
14080 * config/i386/constraints.md (Bm): New constraint.
14081 * config/i386/predicates.md (vector_memory_operand): New
14082 predicate.
14083 * config/i386/sse.md: Replace xm with xBm in plusminus and
14084 any_logic patterns.
14085
14086 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
14087
14088 PR 1078
14089 * doc/extend.texi (V850 Function Attributes): New section.
14090 (V850 Variable Attributes): New section.
14091
14092 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
14093
14094 PR 1078
14095 * doc/extend.texi (MicroBlaze Function Attributes): Document
14096 interrupt_handler and fast_interrupt attributes.
14097
14098 2016-01-05 Sergei Trofimovich <siarheit@google.com>
14099
14100 PR other/60465
14101 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
14102 for local symbolic operands.
14103 * config/ia64/predicates.md (local_symbolic_operand64): New
14104 predicate.
14105
14106 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14107
14108 PR rtl-optimization/68651
14109 * combine.c (combine_simplify_rtx): Canonicalize x + x into
14110 x << 1.
14111
14112 2016-01-05 Nathan Sidwell <nathan@acm.org>
14113
14114 * alias.c (compare_base_decls): Use symtab_node::get.
14115
14116 2016-01-05 Nick Clifton <nickc@redhat.com>
14117
14118 PR target/68770
14119 * ira-costs.c (copy_cost): Initialise the t_icode field of the
14120 secondary_reload_info structure.
14121
14122 PR target/66655
14123 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
14124 decls if weak support is available.
14125
14126 2016-01-04 Martin Sebor <msebor@redhat.com>
14127
14128 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
14129
14130 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
14131
14132 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
14133 OPTION_MASK_P9_DFORM.
14134
14135 * config/rs6000/constraints.md (wo constraint): New constraint for
14136 ISA 3.0 (power9).
14137
14138 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
14139 for wo constraint.
14140 (rs6000_init_hard_regno_mode_ok): Likewise.
14141
14142 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
14143 wo constraint.
14144
14145 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
14146 expanders not to have constraints. Add support for ISA 3.0 xxperm
14147 instruction. Add support for fusing xxlor with xxperm.
14148 (altivec_vperm_<mode>_internal): Likewise.
14149 (altivec_vperm_v8hiv16qi): Likewise.
14150 (altivec_vperm_<mode>v16q): Likewise.
14151 (altivec_vperm_<mode>_uns): Likewise.
14152 (vperm_v8hiv4si): Likewise.
14153 (vperm_v16qiv8hi): Likewise.
14154
14155 * doc/md.texi (RS/6000 constraints): Document wo constraint.
14156
14157 2016-01-04 Jakub Jelinek <jakub@redhat.com>
14158
14159 Update copyright years.
14160
14161 * gcc.c (process_command): Update copyright notice dates.
14162 * gcov-dump.c (print_version): Ditto.
14163 * gcov.c (print_version): Ditto.
14164 * gcov-tool.c (print_version): Ditto.
14165 * gengtype.c (create_file): Ditto.
14166 * doc/cpp.texi: Bump @copying's copyright year.
14167 * doc/cppinternals.texi: Ditto.
14168 * doc/gcc.texi: Ditto.
14169 * doc/gccint.texi: Ditto.
14170 * doc/gcov.texi: Ditto.
14171 * doc/install.texi: Ditto.
14172 * doc/invoke.texi: Ditto.
14173
14174 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
14175
14176 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
14177 modes larger than TImode as TImode if NEON is not enabled.
14178
14179 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
14180
14181 PR target/69100
14182 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
14183 mode for %f0-%f31 only if TARGET_FPU.
14184
14185 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
14186
14187 PR target/69072
14188 * config/sparc/sparc.c (scan_record_type): Take into account subfields
14189 to compute the PACKED_P predicate.
14190 (function_arg_record_value): Minor tweaks.
14191
14192 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
14193
14194 * doc/install.texi (--with-multilib-list): Describe the meaning of the
14195 option for arm*-*-* targets.
14196
14197 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
14198
14199 * doc/extend.texi (Common Function Attributes): Move docs for
14200 MSP430-specific attributes to....
14201 (MSP430 Function Attributes): ...here. Delete the redundant
14202 entries and copy-edit the remaining text.
14203 (MSP430 Variable Attributes): Use uniform format for index
14204 entries and add a cross-reference to the corresponding function
14205 attribute docs.
14206
14207 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
14208
14209 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
14210 -finite-math typo.
14211 (x86 Options): Likewise.
14212
14213 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
14214
14215 PR 1078
14216
14217 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
14218 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
14219 to corresponding attribute.
14220
14221 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
14222
14223 * doc/extend.texi (Common Function Attributes) <noplt>: Move
14224 to correct alphabetization of table. Copy-edit and correct
14225 markup.
14226 <stack_protect>: Likewise.
14227 <target_clones>: Likewise.
14228 <simd>: Likewise.
14229 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
14230 Correct punctuation.
14231 (Code Gen Options) <-fno-plt>: Copy-edit.
14232
14233 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
14234
14235 PR target/68917
14236 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
14237 SI values. Explicitly convert SI to DI and vice-versa.
14238
14239 2016-01-01 Jakub Jelinek <jakub@redhat.com>
14240
14241 PR tree-optimization/69070
14242 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
14243 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
14244
14245 PR sanitizer/69055
14246 * ubsan.c (ubsan_instrument_float_cast): Call
14247 initialize_sanitizer_builtins.
14248
14249 PR target/69015
14250 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
14251 \f
14252 Copyright (C) 2016 Free Software Foundation, Inc.
14253
14254 Copying and distribution of this file, with or without modification,
14255 are permitted in any medium without royalty provided the copyright
14256 notice and this notice are preserved.