loop-unroll.c (decide_unroll_constant_iterations, [...]): Use likely upper bounds.
[gcc.git] / gcc / ChangeLog
1 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
2
3 * loop-unroll.c (decide_unroll_constant_iterations,
4 decide_unroll_runtime_iterations, decide_unroll_stupid): Use
5 likely upper bounds.
6 * loop-iv.c (find_simple_exit): Dump likely upper bounds.
7
8 2016-06-01 Thomas Schwinge <thomas@codesourcery.com>
9
10 * tree-core.h (enum omp_clause_code): Remove
11 OMP_CLAUSE_DEVICE_RESIDENT. Adjust all users.
12
13 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14
15 * config/arm/sync.md (arm_store_exclusive<mode>):
16 Use 'H' output modifier on operands[2] rather than creating a new
17 entry in out-of-bounds memory of the operands array.
18 (arm_store_release_exclusivedi): Likewise.
19
20 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21
22 * config/arm/arm.c (arm_fusion_enabled_p): New function.
23 * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
24 * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
25 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
26
27 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
28
29 * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
30 into account live statements for mask producers.
31
32 2016-06-01 Richard Biener <rguenther@suse.de>
33
34 PR tree-optimization/71311
35 * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
36 restrict to non-INTEGER_CST @0.
37
38 2016-06-01 Richard Biener <rguenther@suse.de>
39
40 * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
41 (relational patterns): Use :c to avoid pattern duplications.
42
43 2016-06-01 Richard Biener <rguenther@suse.de>
44
45 * genmatch.c (comparison_code_p): New predicate.
46 (swap_tree_comparison): New function.
47 (commutate): Add for_vec parameter to append new for entries.
48 Support commutating relational operators by swapping it alongside
49 operands.
50 (lower_commutative): Adjust.
51 (dt_simplify::gen): Do not pass artificial operators to gen
52 functions.
53 (decision_tree::gen): Do not add artificial operators as parameters.
54 (parser::parse_expr): Verify operator commutativity when :c is
55 applied. Allow :C to override this.
56 * match.pd: Adjust patterns to use :C instead of :c where required.
57
58 2016-06-01 Patrick Palka <ppalka@gcc.gnu.org>
59
60 PR tree-optimization/71077
61 * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
62 the combining step, use boolean_false_node and boolean_true_node
63 as the designated false/true return values.
64
65 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
66
67 * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
68 * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
69 (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
70 PRED_LOOP_EXIT.
71
72 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
73
74 * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
75 of flags impliying the register renaming.
76 * toplev.c (process_options): Do not imply flag_rename_registers with
77 loop peeling.
78
79 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
80
81 * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
82 default implementation.
83
84 2016-05-31 Nathan Sidwell <nathan@acm.org>
85
86 * dwarf2out.c (cur_line_info_table): Add GTY marker.
87
88 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
89
90 * config/sh/constraints.md (b): Remove constraint.
91 * config/sh/predicates.md (arith_reg_operand): Remove TARGET_REGISTER_P.
92 * config/sh/sh-modes.def (PDI): Remove.
93 * config/sh/sh.c (sh_target_reg_class,
94 sh_optimize_target_register_callee_saved): Remove functions.
95 (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
96 (sh_expand_epilogue): Update comment.
97 (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
98 sh_secondary_reload): Remove TARGET_REGS related code.
99 * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
100 TARGET_REGISTER_P): Remove macros.
101 (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
102 * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
103 TR1_REG, TR2_REG): Remove constants.
104 * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
105
106 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
107
108 * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
109 define_expand patterns.
110 (adddi3_compact): Rename to adddi3.
111 (subdi3_compact): Rename to subdi3.
112 (*negdi2): Rename to negdi2.
113 (*abs<mode>2): Rename to abs<mode>2.
114
115 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
116
117 * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
118 (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
119 (atomic_sub_fetchsi): ... this new pattern.
120 (mvtc): Add CC_REG clobber.
121
122 2016-05-31 Marek Polacek <polacek@redhat.com>
123
124 * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
125
126 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
127
128 * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
129 aarch64_fusion_enabled_p to check for fusion capabilities.
130
131 2016-05-31 Richard Biener <rguenther@suse.de>
132
133 PR tree-optimization/71352
134 * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
135 minus one and a negate.
136
137 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
138
139 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
140 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
141 Delete prototype.
142 * config/aarch64/iterators.md (insn_count): Add descriptive comment.
143 * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
144 Remove use of aarch64_simd_attr_length_move, set length attribute
145 directly.
146 (*aarch64_be_movoi): Likewise.
147 (*aarch64_be_movci): Likewise.
148 (*aarch64_be_movxi): Likewise.
149
150 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
151
152 * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
153 It no longer does that.
154 * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
155
156 2016-05-31 Wladimir J. van der Laan <laanwj@gmail.com>
157
158 * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
159 attribute __unused__.
160
161 2016-05-31 Thomas Preud'homme <thomas.preudhomme@arm.com>
162
163 * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
164 * config/arm/arm.c (arm_arch_thumb1): Define.
165 (arm_option_override): Initialize arm_arch_thumb1.
166 * config/arm/arm.h (arm_arch_thumb1): Declare.
167 (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
168 support Thumb-1 ISA.
169
170 2016-05-31 Kirill Yukhin <kirill.yukhin@intel.com>
171
172 PR target/71346
173 * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
174 `Yv' for scalar operand.
175
176 2016-05-31 Tom de Vries <tom@codesourcery.com>
177
178 PR tree-optimization/69068
179 * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
180 phis with more than two args.
181
182 2016-05-30 Andreas Tobler <andreast@gcc.gnu.org>
183
184 * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
185 armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
186 target.
187
188 2016-05-30 Jose E. Marchesi <jose.marchesi@oracle.com>
189
190 * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
191 tune_64.
192 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
193 support on SPARC.
194 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
195 cpu_32, cpu_64, tune_32 and tune_64.
196 * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
197
198 2016-05-30 Uros Bizjak <ubizjak@gmail.com>
199
200 * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
201
202 2016-05-30 Andi Kleen <ak@linux.intel.com>
203
204 * auto-profile.c (read_profile): Replace asserts with errors
205 when file does not exist.
206 * gcov-io.c (gcov_read_words): Dito.
207
208 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
209
210 * tree-cfg.c (print_loop): Print likely upper bounds.
211
212 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
213
214 * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
215 * opts.c (default_options): Enable peel loops at -O3.
216 * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
217 (try_peel_loop): Do not re-peel already peeled loops;
218 use likely upper bounds; fix profile updating.
219 (pass_complete_unroll::execute): Initialize peeled_loops.
220
221 2016-05-30 Martin Liska <mliska@suse.cz>
222
223 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
224 computed costs by frequency of BB they belong to.
225 (get_scaled_computation_cost_at): New function.
226
227 2016-05-30 Alexander Monakov <amonakov@ispras.ru>
228 Marc Glisse <marc.glisse@inria.fr>
229
230 PR tree-optimization/71289
231 * match.pd (-1 / B < A, A > -1 / B): New transformations.
232
233 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
234
235 * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
236
237 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
238
239 * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
240 for peeled copies; avoid underflow when updating estimates; correctly
241 scale loop profile.
242
243 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
244
245 * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
246 r236875. Corrected oe3 to oe2 as obvious.
247
248 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
249
250 PR middle-end/71269
251 PR middle-end/71252
252 * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
253 that inserted stmt will not dominate stmts that defines its operand.
254 (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
255 (rewrite_expr_tree_parallel): Likewise.
256
257 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
258
259 PR middle-end/71252
260 * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
261 all fields including stmt_to_insert are swapped.
262
263 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
264
265 * predict.h (force_edge_cold): Declare.
266 * predict.c (force_edge_cold): New function.
267 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
268 updating.
269 (canonicalize_loop_induction_variables): Fix formating.
270
271 2016-05-30 Eric Botcazou <ebotcazou@adacore.com>
272
273 * config/visium/visium.c (visium_split_double_add): Minor tweaks.
274 (visium_expand_copysign): Use gen_int_mode directly.
275 (visium_compute_frame_size): Minor tweaks.
276
277 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
278
279 * tree-vect-loop.c (vect_analyze_loop_2): Use
280 likely_max_stmt_executions_int.
281
282 2016-05-30 Tom de Vries <tom@codesourcery.com>
283
284 PR tree-optimization/69067
285 * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
286
287 2016-05-29 Uros Bizjak <ubizjak@gmail.com>
288
289 PR target/71245
290 * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
291 New peepholes to remove unneeded fild/fistp pairs.
292 (define_peephole2 atomic_loaddi_fpu): Ditto.
293
294 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
295
296 * predict.c (maybe_hot_frequency_p): Avoid division.
297
298 2016-05-28 Gerald Pfeifer <gerald@pfeifer.com>
299
300 * doc/install.texi: Use https for shop.fsf.org.
301
302 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
303
304 * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
305 likely_max_stmt_executions_int.
306
307 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
308
309 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
310 likely_max_stmt_executions_int.
311
312 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
313
314 * profile.c (compute_branch_probabilities): Do not report hitrates
315 here.
316 (branch_prob): Report hitrates here.
317 * predict.c (gimple_predict_edge): Do not assert profile status;
318 fix formatting issues.
319
320 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
321
322 * predict.c (edge_predicted_by_p): New function.
323 (predict_paths_for_bb): Do not put multiple predictions of the same type
324 on one edge.
325
326 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
327
328 * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
329 commit.
330
331 2016-05-28 Alan Modra <amodra@gmail.com>
332
333 * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
334
335 2016-05-28 Alan Modra <amodra@gmail.com>
336
337 PR rtl-optimization/71275
338 * ira.c (ira): Free dominance info.
339
340 2016-05-27 Gerald Pfeifer <gerald@pfeifer.com>
341
342 * doc/sourcebuild.texi: New address for upstream Go repository.
343
344 2016-05-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
345
346 * config/arm/arm.h (TARGET_ARM_V6M): Remove.
347 (TARGET_ARM_V7M): Likewise.
348
349 2016-05-26 Jeff Law <law@redhat.com>
350
351 * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
352 (thread_across_edge): Remove calls to find_jump_threads_backwards.
353 * passes.def: Add jump threading passes before DOM/VRP.
354 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
355 argument to a basic block from an edge. Remove tests which are
356 handled elsewhere.
357 (pass_data_thread_jumps, class pass_thread_jumps): New.
358 (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
359 (make_pass_thread_jumps): Likewise.
360 * tree-pass.h (make_pass_thread_jumps): Declare.
361
362 2016-05-27 Eric Botcazou <ebotcazou@adacore.com>
363
364 * config/visium/visium-protos.h (split_double_move): Rename into...
365 (visium_split_double_move): ...this.
366 (visium_split_double_add): Declare.
367 * config/visium/visium.c (split_double_move): Rename into...
368 (visium_split_double_move): ...this.
369 (visium_split_double_add): New function.
370 (visium_expand_copysign): Renumber operands for consistency.
371 * config/visium/visium.md (DImode move splitter): Adjust to renaming.
372 (DFmode move splitter): Likewise.
373 (*addi3_insn): Split by means of visium_split_double_add.
374 (*adddi3_insn_flags): Delete.
375 (*plus_plus_sltu<subst_arith>): New insn.
376 (*subdi3_insn): Split by means of visium_split_double_add.
377 (subdi3_insn_flags): Delete.
378 (*minus_minus_sltu<subst_arith>): New insn.
379 (*negdi2_insn): Split by means of visium_split_double_add.
380 (*negdi2_insn_flags): Delete.
381
382 2016-05-27 Ulrich Weigand <uweigand@de.ibm.com>
383
384 * configure.ac: Treat a --with-headers option without argument
385 the same as the default (i.e. consult sys-include directory).
386 * configure: Regenerate.
387
388 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
389
390 * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
391 * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
392 prototype.
393 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
394 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
395
396 2016-05-27 Jiong Wang <jiong.wang@arm.com>
397
398 PR target/63596
399 * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
400 tree-stdarg analysis results.
401 (aarch64_setup_incoming_varargs): Likewise.
402
403 2016-05-27 Jiong Wang <jiong.wang@arm.com>
404
405 * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
406 va_list_gpr_counter_field and va_list_fpr_counter_field.
407
408 2016-05-27 Wilco Dijkstra <wdijkstr@arm.com>
409
410 PR67609
411 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
412 * config/aarch64/aarch64.c
413 (aarch64_cannot_change_mode_class): Remove function.
414 * config/aarch64/aarch64-protos.h
415 (aarch64_cannot_change_mode_class): Remove.
416
417 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
418
419 * cfgloop.c (record_niter_bound): Record likely upper bounds.
420 (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
421 get_likely_max_loop_iterations_int): New.
422 * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
423 any_likely_upper_bound.
424 (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
425 Declare.
426 * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
427 * loop-unroll.c (unroll_loop_constant_iterations): Update likely
428 upper bound.
429 (unroll_loop_constant_iterations): Likewise.
430 (unroll_loop_runtime_iterations): Likewise.
431 * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
432 * lto-streamer-out.c (output_cfg): Likewise.
433 * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
434 bounds.
435 (canonicalize_loop_induction_variables): Dump likely upper bounds.
436 * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
437 (likely_max_loop_iterations): New.
438 (likely_max_loop_iterations_int): New.
439 (likely_max_stmt_executions): New.
440 * tree-ssa-loop-niter.h (likely_max_loop_iterations,
441 likely_max_loop_iterations_int, likely_max_stmt_executions_int,
442 likely_max_stmt_executions): Declare.
443
444 2016-05-27 Marek Polacek <polacek@redhat.com>
445
446 PR middle-end/71308
447 * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
448
449 2016-05-27 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
450
451 * config/s390/s390.md (2x risbg splitters): Use
452 reg_overlap_mentioned_p instead of rtx_equal_p.
453
454 2016-05-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
455
456 * combine.c (make_compound_operation): Take known zero bits into
457 account when checking for possible zero_extend.
458
459 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
460
461 * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
462 Use const_int_operand for operand 2 predicate. Simplify expand code
463 as a result.
464
465 2016-05-27 Ilya Enkovich <ilya.enkovich@intel.com>
466
467 PR middle-end/71279
468 * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
469 into comparison.
470
471 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
472
473 * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
474 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
475 that returns CC_SESWPmode and CC_ZESWPmode.
476 (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
477 and CC_SESWPmode.
478 (aarch64_rtx_costs): Likewise.
479
480 2016-05-26 Michael Meissner <meissner@linux.vnet.ibm.com>
481
482 * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
483 for ISA 3.0 min/max support.
484 (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
485 conditional move support.
486 (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
487 rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
488 available.
489 * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
490 conditional moves where the comparison type is different from move
491 type.
492 (fp_minmax): New code iterator for smin/smax.
493 (minmax): New code attributes for min/max.
494 (SMINMAX): Likewise.
495 (smax<mode>3): Combine min, max insns into one insn using the
496 fp_minmax code iterator. Add support for ISA 3.0 min/max
497 instructions that don't need -ffast-math.
498 (s<minmax><mode>3): Likewise.
499 (smax<mode>3_vsx): Likewise.
500 (smin<mode>3): Likewise.
501 (s<minmax><mode>3_vsx): Likewise.
502 (smin<mode>3_vsx): Likewise.
503 (pre-VSX min/max splitters): Likewise.
504 (s<minmax><mode>3_fpr): Likewise.
505 (movsfcc): Rewrite floating point conditional moves to combine
506 SFmode/DFmode into a single insn.
507 (mov<mode>cc): Likewise.
508 (movdfcc): Likewise.
509 (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
510 SFDF2 iterators to handle all combinations.
511 (fseldfsf4): Likewise.
512 (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
513 (fseldfdf4): Likewise.
514 (fselsfdf4): Likewise.
515 (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
516 comparison instructions that set a 0/-1 mask, and use it for
517 floating point conditional move via XXSEL.
518 (fpmask<mode>): Likewise.
519 (xxsel<mode>): Likewise.
520 * config/rs6000/predicates.md (min_max_operator): Delete, no
521 longer used.
522 (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
523 instructions that generate a 0/-1 mask for use with XXSEL.
524 * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
525 say whether floating point min/max is available, either through
526 FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
527 (TARGET_MINMAX_DF): Likewise.
528
529 2016-05-27 Alan Modra <amodra@gmail.com>
530
531 PR rtl-optimization/71275
532 * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
533 for update_equiv_regs and combine_and_move_insns.
534
535 2016-05-26 Uros Bizjak <ubizjak@gmail.com>
536
537 * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
538 if_then_else or cond RTXes to calculate attribute value.
539 * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
540 <attr "length_immediate>: Ditto.
541 (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
542 * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
543 (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
544 <attr "type">: Ditto.
545 <attr "prefix_data16">: Ditto.
546 <attr "prefix_extra">: Ditto.
547 <attr "length_immediate">: Ditto.
548 <attr "prefix">: Ditto.
549 (vec_set<mode>_0) <attr "isa">: Ditto.
550 <attr "prefix_extra">: Ditto.
551 <attr "length_immediate">: Ditto.
552 <attr "prefix">: Ditto.
553 (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
554 (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
555 (sse2_storelpd) <attr "prefix_data16">: Ditto.
556 (sse2_loadhpd) <attr "prefix_data16">: Ditto.
557 (sse2_loadlpd) <attr "prefix_data16">: Ditto.
558 <attr "length_immediate">: Ditto.
559 <attr "prefix">: Ditto.
560 (sse2_movsd) <attr "length_immediate">: Ditto.
561 <attr "prefix">: Ditto.
562 (vec_concatv2df) <attr "isa">: Ditto.
563 <attr "prefix">: Ditto.
564 (*vec_extractv4si) <attr "prefix_extra">: Ditto.
565 (*vec_extractv2di_1) <attr "isa">: Ditto.
566 <attr "type">: Ditto.
567 <attr "length_immediate">: Ditto.
568 <attr "prefix_rex">: Ditto.
569 <attr "prefix_extra">: Ditto.
570 (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
571 <attr "prefix_extra">: Ditto.
572 <attr "length_immediate">: Ditto.
573 (vec_concatv2di) <attr "isa">: Ditto.
574 <attr "prefix_extra">: Ditto.
575 <attr "length_immediate">: Ditto.
576 <attr "prefix">: Ditto.
577
578 2016-05-26 Martin Liska <mliska@suse.cz>
579
580 * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
581 function.
582 (operator+): Likewise.
583 (operator-): Likewise.
584 (comp_cost::operator+=): Likewise.
585 (comp_cost::operator-=): Likewise.
586 (comp_cost::operator/=): Likewise.
587 (comp_cost::operator*=): Likewise.
588 (operator<): Likewise.
589 (operator==): Likewise.
590 (operator<=): Likewise.
591 (new_cost): Remove.
592 (infinite_cost_p): Likewise.
593 (add_costs): Likewise.
594 (sub_costs): Likewise.
595 (compare_costs): Likewise.
596 (set_group_iv_cost): Use the newly introduced functions.
597 (get_address_cost): Likewise.
598 (get_shiftadd_cost): Likewise.
599 (force_expr_to_var_cost): Likewise.
600 (split_address_cost): Likewise.
601 (ptr_difference_cost): Likewise.
602 (difference_cost): Likewise.
603 (get_computation_cost_at): Likewise.
604 (determine_group_iv_cost_generic): Likewise.
605 (determine_group_iv_cost_address): Likewise.
606 (determine_group_iv_cost_cond): Likewise.
607 (autoinc_possible_for_pair): Likewise.
608 (determine_group_iv_costs): Likewise.
609 (cheaper_cost_pair): Likewise.
610 (iv_ca_recount_cost): Likewise.
611 (iv_ca_set_no_cp): Likewise.
612 (iv_ca_set_cp): Likewise.
613 (iv_ca_cost): Likewise.
614 (iv_ca_new): Likewise.
615 (iv_ca_dump): Likewise.
616 (iv_ca_narrow): Likewise.
617 (iv_ca_prune): Likewise.
618 (iv_ca_replace): Likewise.
619 (try_add_cand_for): Likewise.
620 (try_improve_iv_set): Likewise.
621 (find_optimal_iv_set): Likewise.
622
623 2016-05-26 Richard Sandiford <richard.sandiford@arm.com>
624
625 * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
626 that internal functions will clobber all caller-saved registers.
627
628 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
629
630 * config/aarch64/aarch64.c (aarch64_case_values_threshold):
631 Return a better case_values_threshold when optimizing.
632
633 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
634
635 * config/aarch64/aarch64-simd.md (aarch64_combinez):
636 Add ? to integer variant.
637 (aarch64_combinez_be): Likewise.
638
639 2016-05-26 Jakub Jelinek <jakub@redhat.com>
640
641 * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
642 instead of x constraint.
643 (vcvtps2ph256<mask_name>): Likewise.
644
645 * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
646 alternative. Formatting fix.
647
648 * config/i386/sse.md
649 (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
650 to ...
651 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
652 (*avx_vperm_broadcast_v4sf): Use v constraint instead of x. Use
653 maybe_evex prefix instead of vex.
654 (*avx_vperm_broadcast_<mode>): Use v constraint instead of x. Handle
655 EXT_REX_SSE_REG_P (op0) case in the splitter.
656
657 2016-05-25 Jeff Law <law@redhat.com>
658
659 PR tree-optimization/71272
660 * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
661 Update comments. Add test for empty path.
662
663 2016-05-25 Bill Seurer <seurer@linux.vnet.ibm.com>
664
665 * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
666 * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
667 special case builtin.
668 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
669 code for ALTIVEC_BUILTIN_VEC_CMPNE.
670 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
671 for __builtin_vec_cmpne.
672
673 2016-05-25 Eric Botcazou <ebotcazou@adacore.com>
674
675 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
676 redundant test and bail out if the type of the new operand is not
677 a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
678
679 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
680
681 * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
682 (x_ix86_target_flags_explicit): Remove.
683 * config/i386/i386.c (ix86_function_specific_save): Do not copy
684 x_ix86_target_flags_explicit.
685 (ix86_function_specific_restore): Ditto.
686
687 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
688 H.J. Lu <hongjiu.lu@intel.com>
689
690 PR target/70738
691 * common/config/i386/i386-common.c
692 (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
693 (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
694 MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
695 * config/i386/i386.opt (ix86_target_flags): Add new Variable.
696 (-mgeneral-regs-only): Add new option.
697 * config/i386/i386.c (ix86_option_override_internal): Don't enable
698 x87 instructions if only general registers are allowed.
699 (ix86_target_string): Add ix86_flags argument. Handle additional
700 flags options through ix86_flags argument. Update all callers.
701 * doc/invoke.texi: Document -mgeneral-regs-only.
702
703 2016-05-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
704
705 PR rtl-optimization/66940
706 * ifcvt.c (noce_get_alt_condition): Check that incrementing or
707 decrementing desired_val will not overflow before performing these
708 operations.
709
710 2016-05-25 Ilya Verbin <ilya.verbin@intel.com>
711
712 * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
713 V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
714 * config/i386/i386.c (enum ix86_builtins): Add
715 IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
716 IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
717 IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
718 IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
719 IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
720 IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
721 (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
722 __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
723 __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
724 __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
725 __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
726 __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
727 Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
728 __builtin_ia32_cvtps2dq512_mask.
729 (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
730 V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
731 (ix86_builtin_vectorized_function): Handle builtins mentioned above.
732 * config/i386/sse.md
733 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
734 Rename to ...
735 (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
736 (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
737 to ...
738 (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
739 (avx512f_vec_pack_sfix_v8df): New define_expand.
740 (avx512f_roundpd512): Rename to ...
741 (avx512f_round<castmode>512): ... this. Change iterator.
742 (avx512f_roundps512_sfix): New define_expand.
743 (round<mode>2_sfix): Change iterator.
744
745 2016-05-25 Nick Clifton <nickc@redhat.com>
746
747 * config/msp430/msp430.c (msp430_attr): Produce an error if a
748 static interrupt handler is detected.
749 * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
750 default linker script.
751 * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
752 the low part of a symbolic pointer.
753
754 2016-05-25 Richard Biener <rguenther@suse.de>
755
756 PR tree-optimization/71261
757 * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
758 interesting stmt instead of immediate uses when looking
759 for the use operand to replace.
760
761 2016-05-25 Martin Liska <mliska@suse.cz>
762
763 * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
764
765 2016-05-25 Richard Biener <rguenther@suse.de>
766
767 PR tree-optimization/71264
768 * tree-vect-stmts.c (vect_init_vector): Properly deal with
769 vector type val.
770
771 2016-05-25 Martin Liska <mliska@suse.cz>
772
773 PR tree-optimization/71239
774 * tree.c (array_at_struct_end_p): Do not call operand_equal_p
775 if DECL_SIZE is NULL.
776
777 2016-05-25 Richard Biener <rguenther@suse.de>
778
779 * timevar.def (TV_TREE_LOOP_IFCVT): Add.
780 * tree-if-conv.c (pass_data_if_conversion): Use it.
781
782 2016-05-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
783
784 * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
785 * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
786 * varpool.c (varpool_node::get_availability): Likewise.
787
788 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
789
790 * config/rs6000/altivec.md (VNEG iterator): New iterator for
791 VNEGW/VNEGD instructions.
792 (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
793 (neg<mode>2): Add expander for V2DImode added in ISA 2.06, and
794 support for ISA 3.0 VNEGW/VNEGD instructions.
795
796 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
797
798 * gimplify.c (omp_notice_variable): Use zero-length arrays for data
799 pointers inside OACC_DATA regions.
800 (gimplify_scan_omp_clauses): Prune firstprivate clause associated
801 with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
802 (gimplify_adjust_omp_clauses): Fix typo in comment.
803
804 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
805
806 * config/rs6000/altivec.md (VParity): New mode iterator for vector
807 parity built-in functions.
808 (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
809 zeros.
810 (p9v_parity<mode>2): Likewise.
811 * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
812 parity.
813 (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
814 (parity<mode>2): ISA 3.0 expander for vector parity.
815 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
816 power9 built-ins.
817 (BU_P9_64BIT_MISC_0): Likewise.
818 (BU_P9_MISC_0): Likewise.
819 (BU_P9V_AV_1): Likewise.
820 (BU_P9V_AV_2): Likewise.
821 (BU_P9V_AV_3): Likewise.
822 (BU_P9V_AV_P): Likewise.
823 (BU_P9V_VSX_1): Likewise.
824 (BU_P9V_OVERLOAD_1): Likewise.
825 (BU_P9V_OVERLOAD_2): Likewise.
826 (BU_P9V_OVERLOAD_3): Likewise.
827 (VCTZB): Add vector count trailing zeros support.
828 (VCTZH): Likewise.
829 (VCTZW): Likewise.
830 (VCTZD): Likewise.
831 (VPRTYBD): Add vector parity support.
832 (VPRTYBQ): Likewise.
833 (VPRTYBW): Likewise.
834 (VCTZ): Add overloaded vector count trailing zeros support.
835 (VPRTYB): Add overloaded vector parity support.
836 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
837 overloaded vector count trailing zeros and parity instructions.
838 * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
839 vector parity support.
840 * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
841 trailing zeros support.
842 (vec_cntlz): Likewise.
843 (vec_vctzb): Likewise.
844 (vec_vctzd): Likewise.
845 (vec_vctzh): Likewise.
846 (vec_vctzw): Likewise.
847 (vec_vprtyb): Add ISA 3.0 vector parity support.
848 (vec_vprtybd): Likewise.
849 (vec_vprtybw): Likewise.
850 (vec_vprtybq): Likewise.
851 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
852 the ISA 3.0 vector count trailing zeros and vector parity built-in
853 functions.
854
855 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
856
857 * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
858 when there is stmt_to_insert.
859
860 2016-05-24 Martin Sebor <msebor@redhat.com>
861
862 PR c++/71147
863 * tree.h (complete_or_array_type_p): New inline function.
864
865 2016-05-24 Jakub Jelinek <jakub@redhat.com>
866
867 * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
868 * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
869 rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
870
871 * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
872 Limit 1st alternative to noavx isa, split 2nd alternative into one
873 noavx and one avx alternative, use *x and Bm in the former and
874 x and m in the latter.
875
876 * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
877 of sse4 for the first alternative, drop %v from the template
878 and d operand modifier. Split second alternative into one sse4_noavx
879 and one avx alternative, use *x instead of *v in the former and v
880 instead of *v in the latter.
881 (*sse4_1_extractps): Use noavx isa instead of * for the first
882 alternative, drop %v from the template. Split second alternative into
883 one noavx and one avx alternative, use *x instead of *v in the
884 former and v instead of *v in the latter.
885 (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
886 with noavx and the last one with avx.
887 (sse4_1_phminposuw): Guard first alternative with noavx isa,
888 split the second one into one noavx and one avx alternative,
889 use *x and Bm in the former and x and m in the latter one.
890 (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
891 alternatives.
892
893 * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
894 first two alternatives to noavx, use *x instead of *v in the second
895 one, add avx alternative without *.
896 (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
897 sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
898 sse4_1_<code>v2siv2di2<mask_name>): Likewise.
899
900 2016-05-24 Jeff Law <law@redhat.com>
901
902 * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
903 New function, extracted from...
904 (fsm_find_control_statement_thread_paths): Here. Use the new function.
905 Allow simple copies and constant initializations in the SSA chain.
906
907 2016-05-24 Marek Polacek <polacek@redhat.com>
908
909 PR c/71249
910 * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
911 scope.
912
913 2016-05-24 Jakub Jelinek <jakub@redhat.com>
914
915 PR c++/71257
916 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
917 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
918 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP. Add
919 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
920 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
921
922 2016-05-24 Richard Biener <rguenther@suse.de>
923
924 PR tree-optimization/71240
925 * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
926 has integral type.
927
928 2016-05-24 Richard Biener <rguenther@suse.de>
929
930 PR tree-optimization/71230
931 * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
932
933 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
934
935 * tree-vectorizer.h (vectorizable_comparison): Delete.
936 * tree-vect-loop.c (vectorizable_reduction): Remove redundant
937 PURE_SLP_STMT check.
938 * tree-vect-stmts.c (vectorizable_call): Likewise.
939 (vectorizable_simd_clone_call): Likewise.
940 (vectorizable_conversion): Likewise.
941 (vectorizable_assignment): Likewise.
942 (vectorizable_shift): Likewise.
943 (vectorizable_operation): Likewise.
944 (vectorizable_load): Likewise.
945 (vectorizable_condition): Likewise.
946 (vectorizable_store): Likewise. Assert that we don't have
947 hybrid SLP.
948 (vectorizable_comparison): Make static. Remove redundant
949 PURE_SLP_STMT check.
950 (vect_transform_stmt): Assert that we always have an slp_node
951 if PURE_SLP_STMT.
952
953 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
954
955 * config/arm/neon.md (ashldi3_neon): Replace comparison of INTVAL of
956 operands[2] against 1 with comparison against CONST1_RTX.
957 (<shift>di3_neon): Likewise.
958 * config/arm/predicates.md (const0_operand): Replace with comparison
959 against CONST0_RTX.
960
961 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
962
963 * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
964 operands[2] against 1 with comparison against CONST1_RTX.
965 (ashrdi3): Likewise.
966 (lshrdi3): Likewise.
967 (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
968 UINTVAL.
969 (ashrsi3): Likewise.
970 (lshrsi3): Likewise.
971 (rotrsi3): Likewise.
972 (define_split above *compareqi_eq0): Likewise.
973 (define_split above "prologue"): Likewise.
974 * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
975 * config/arm/predicates.md (shift_operator): Likewise.
976 (shift_nomul_operator): Likewise.
977 (sat_shift_operator): Likewise.
978 (thumb1_cmp_operand): Likewise.
979 (const_neon_scalar_shift_amount_operand): Replace manual range
980 check with IN_RANGE.
981 * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
982 Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
983
984 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
985
986 * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
987 with HOST_WIDE_INT_1.
988 (insv): Likewise.
989 * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
990 1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
991 (arm_canonicalize_comparison): Likewise.
992 (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
993 HOST_WIDE_INT_1.
994 (thumb1_size_rtx_costs): Likewise.
995 (vfp_const_double_index): Replace cast of 1 to unsigned
996 HOST_WIDE_INT with HOST_WIDE_INT_1U.
997 (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
998 HOST_WIDE_INT_1.
999 (arm_asan_shadow_offset): Replace cast of 1 to unsigned
1000 HOST_WIDE_INT with HOST_WIDE_INT_1U.
1001 * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
1002 HOST_WIDE_INT with HOST_WIDE_INT_1.
1003
1004 2016-05-24 Marek Polacek <polacek@redhat.com>
1005
1006 * tree-cfg.h (should_remove_lhs_p): New predicate.
1007 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
1008 * gimplify.c (gimplify_modify_expr): Likewise.
1009 * tree-cfg.c (verify_gimple_call): Likewise.
1010 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
1011 * gimple-fold.c: Include "tree-cfg.h".
1012 (gimple_fold_call): Use should_remove_lhs_p.
1013
1014 2016-05-24 Richard Biener <rguenther@suse.de>
1015
1016 PR tree-optimization/71253
1017 * cfganal.h (control_dependences): Make robust against edge
1018 and BB removal.
1019 (control_dependences::control_dependences): Remove edge_list argument.
1020 (control_dependences::get_edge): Remove.
1021 (control_dependences::get_edge_src): Add.
1022 (control_dependences::get_edge_dest): Likewise.
1023 (control_dependences::m_el): Make a vector of edge src/dest index.
1024 * cfganal.c (control_dependences::find_control_dependence): Adjust.
1025 (control_dependences::control_dependences): Likewise.
1026 (control_dependences::~control_dependence): Likewise.
1027 (control_dependences::get_edge): Remove.
1028 (control_dependences::get_edge_src): Add.
1029 (control_dependences::get_edge_dest): Likewise.
1030 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
1031 get_edge_src.
1032 (perform_tree_ssa_dce): Adjust.
1033 * tree-loop-distribution.c (create_edge_for_control_dependence): Use
1034 get_edge_src.
1035 (pass_loop_distribution::execute): Adjust. Do loop destroying
1036 conditional on changed.
1037
1038 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1039
1040 PR target/69857
1041 * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
1042 return. Reindent transformation comment and mention the ARM state
1043 behavior.
1044
1045 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
1046
1047 PR middle-end/71252
1048 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
1049 after build_and_add_sum creates new use stmt.
1050
1051 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
1052
1053 * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
1054 load_lanes/grouped_load classification comes first. Don't check
1055 whether the vectorization factor is a multiple of the group size
1056 for load_lanes.
1057
1058 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
1059
1060 * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
1061 GROUP_GAP for single-element interleaving.
1062 * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
1063 variable.
1064
1065 2016-05-24 Richard Biener <rguenther@suse.de>
1066
1067 PR middle-end/70434
1068 PR c/69504
1069 * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
1070 bases which are accessed with non-invariant indices.
1071 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
1072 constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
1073
1074 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
1075
1076 PR middle-end/71170
1077 * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
1078 (add_to_ops_vec): Add stmt_to_insert.
1079 (add_repeat_to_ops_vec): Init stmt_to_insert.
1080 (insert_stmt_before_use): New.
1081 (transform_add_to_multiply): Remove mult_stmt insertion and add it
1082 to ops vector.
1083 (get_ops): Init stmt_to_insert.
1084 (maybe_optimize_range_tests): Likewise.
1085 (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
1086 (rewrite_expr_tree_parallel): Likewise.
1087 (reassociate_bb): Likewise.
1088
1089 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
1090
1091 PR target/71201
1092 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
1093 ISA 3.0 xxperm fusion alternative.
1094 (altivec_vperm_v8hiv16qi): Likewise.
1095 (altivec_vperm_<mode>_uns_internal): Likewise.
1096 (vperm_v8hiv4si): Likewise.
1097 (vperm_v16qiv8hi): Likewise.
1098
1099 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
1100 Kelvin Nilsen <kelvin@gcc.gnu.org>
1101
1102 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
1103 vpermr/xxpermr on ISA 3.0.
1104 (altivec_expand_vec_perm_le): Likewise.
1105 * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
1106 (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
1107 ISA 3.0.
1108
1109 2016-05-23 Uros Bizjak <ubizjak@gmail.com>
1110
1111 * config/i386/i386.h (IS_STACK_MODE): Enable for
1112 TARGET_MIX_SSE_I387. Rewrite using X87_FLOAT_MODE_P and
1113 SSE_FLOAT_MODE_P macros.
1114 * config/i386/i386.c (ix86_preferred_reload_class): Use
1115 IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
1116 Cleanup regclass processing for CONST_DOUBLE_P.
1117 (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
1118 (ix86_rtx_costs): Remove redundant TARGET_80387 check
1119 with IS_STACK_MODE macro.
1120 * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
1121 with TARGET_SSE2.
1122 (*movdf_internal): Use IS_STACK_MODE macro.
1123 (*movsf_internal): Ditto.
1124
1125 2016-05-23 Marc Glisse <marc.glisse@inria.fr>
1126
1127 * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
1128 ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
1129
1130 2016-05-23 Jeff Law <law@redhat.com>
1131
1132 * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
1133 extracted from ...
1134 (fsm_find_control_statement_thread_paths): Call it.
1135
1136 2016-05-23 Martin Jambor <mjambor@suse.cz>
1137
1138 PR ipa/71234
1139 * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
1140 from_global_constant if t is not NULL.
1141
1142 2016-05-23 Marek Polacek <polacek@redhat.com>
1143
1144 PR c/49859
1145 * common.opt (Wswitch-unreachable): New option.
1146 * doc/invoke.texi: Document -Wswitch-unreachable.
1147 * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
1148 warning.
1149
1150 2016-05-23 Bin Cheng <bin.cheng@arm.com>
1151
1152 * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
1153 TMR_INDEX is non-NULL.
1154
1155 2016-05-23 Richard Biener <rguenther@suse.de>
1156
1157 PR tree-optimization/71230
1158 * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
1159 (try_special_add_to_ops): ... here. Always test for single-use.
1160
1161 2016-05-23 Martin Jambor <mjambor@suse.cz>
1162
1163 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
1164 default block if a PHI node in the original one would be resized.
1165
1166 2016-05-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
1167
1168 PR tree-optimization/58135
1169 * tree-vect-slp.c: When group size is not multiple
1170 of vector size, allow splitting of store group at
1171 vector boundary.
1172
1173 2016-05-23 Christophe Lyon <christophe.lyon@linaro.org>
1174
1175 * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
1176
1177 2016-05-22 Jakub Jelinek <jakub@redhat.com>
1178
1179 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
1180 vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
1181 condition. For !TARGET_AVX512DQ, emit 32x4 instruction instead
1182 of 64x2.
1183
1184 * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
1185 vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
1186 v constraint instead of x and vinserti32x4 insn.
1187
1188 * config/i386/sse.md (i128vldq): New mode iterator.
1189 (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
1190 avx512dq and avx512vl alternatives.
1191
1192 * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
1193 constraint, use maybe_evex prefix instead of vex.
1194 (vec_dupv4sf): Use v constraint instead of x for output
1195 operand except for noavx alternative, use Yv constraint
1196 instead of x for input. Use maybe_evex prefix instead of vex.
1197 (*vec_dupv4si): Likewise.
1198 (*vec_dupv2di): Likewise.
1199
1200 2016-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
1201
1202 PR middle-end/40921
1203 * tree-ssa-reassoc.c (try_special_add_to_ops): New.
1204 (linearize_expr_tree): Call try_special_add_to_ops.
1205 (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
1206
1207 2016-05-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1208
1209 * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
1210 to computed stack_usage.
1211
1212 2016-05-21 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
1213
1214 PR target/71103
1215 * config/avr/avr.md (define_expand "mov<mode>"): If the source
1216 operand is subreg (symbol_ref) then move the symbol ref to register.
1217
1218 2016-05-21 Jan Hubicka <hubicka@ucw.cz>
1219
1220 * tree.c (array_at_struct_end_p): Look through MEM_REF.
1221
1222 2016-05-21 Kugan Vivekanandarajah <kuganv@linaro.org>
1223
1224 PR middle-end/71179
1225 * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
1226 VECTOR type.
1227
1228 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
1229
1230 * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
1231 ranges by calling get_single_symbol and tidy up. Look more closely
1232 into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
1233
1234 2016-05-20 Jeff Law <law@redhat.com>
1235
1236 * bitmap.c (bitmap_find_bit): Remove useless test.
1237
1238 2016-05-20 Segher Boessenkool <segher@kernel.crashing.org>
1239
1240 * function.c (thread_prologue_and_epilogue_insns): Commit the
1241 insertion of the epilogue.
1242
1243 2016-05-20 Martin Jambor <mjambor@suse.cz>
1244
1245 PR tree-optimization/70884
1246 * tree-sra.c (initialize_constant_pool_replacements): Do not check
1247 should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
1248 (sort_and_splice_var_accesses): Do not consider multiple scalar reads
1249 of constant pool data as a reason for scalarization.
1250
1251 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
1252
1253 * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
1254 for naked functions.
1255 (thumb1_expand_prologue): Likewise.
1256
1257 2016-05-20 Nathan Sidwell <nathan@acm.org>
1258
1259 * config/nvptx/nptx.c (nvptx_option_override): Only set
1260 flag_toplevel_reorder, if not explicitly specified. Set
1261 flag_no_common, unless explicitly specified.
1262
1263 2016-05-20 David Malcolm <dmalcolm@redhat.com>
1264
1265 * calls.c (can_implement_as_sibling_call_p): Mark param
1266 reg_parm_stack_space with ATTRIBUTE_UNUSED.
1267
1268 2016-05-20 Uros Bizjak <ubizjak@gmail.com>
1269
1270 * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
1271 Use IS_STACK_MODE when calculating cost of standard 80387 constants.
1272 Fallthru to CONST_VECTOR case to calculate cost of standard SSE
1273 constants.
1274 <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
1275 (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
1276 and CASE_CONST_ANY.
1277
1278 2016-05-20 Cesar Philippidis <cesar@codesourcery.com>
1279
1280 * config/nvptx/nvptx.md (sincossf3): New pattern.
1281
1282 2016-05-20 David Malcolm <dmalcolm@redhat.com>
1283
1284 * calls.c (maybe_complain_about_tail_call): New function.
1285 (initialize_argument_information): Call
1286 maybe_complain_about_tail_call when clearing *may_tailcall.
1287 (can_implement_as_sibling_call_p): Call
1288 maybe_complain_about_tail_call when returning false.
1289 (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
1290 ensure try_tail_call is set. Call maybe_complain_about_tail_call
1291 if tail-call optimization fails.
1292 * cfgexpand.c (expand_call_stmt): Initialize
1293 CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
1294 * gimple-pretty-print.c (dump_gimple_call): Dump
1295 gimple_call_must_tail_p.
1296 * gimple.c (gimple_build_call_from_tree): Call
1297 gimple_call_set_must_tail with the value of
1298 CALL_EXPR_MUST_TAIL_CALL.
1299 * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
1300 (gimple_call_set_must_tail): New function.
1301 (gimple_call_must_tail_p): New function.
1302 * print-tree.c (print_node): Update printing of TREE_STATIC
1303 to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
1304 * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
1305 trailing comment listing applicable flags.
1306 * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
1307
1308 2016-05-20 David Malcolm <dmalcolm@redhat.com>
1309
1310 * calls.c (expand_call): Move "Rest of purposes for tail call
1311 optimizations to fail" to...
1312 (can_implement_as_sibling_call_p): ...this new function, and
1313 split into multiple "if" statements.
1314
1315 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
1316
1317 * cfgloop.h (expected_loop_iterations_unbounded,
1318 expected_loop_iterations): Unconstify.
1319 * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
1320 profile with known upper bound; return 3 when profile is absent.
1321 (expected_loop_iterations): Update.
1322
1323 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
1324
1325 * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
1326 and get_max_loop_iterations_int.
1327
1328 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
1329
1330 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
1331 realistic upper bounds here.
1332
1333 2016-05-20 Jakub Jelinek <jakub@redhat.com>
1334
1335 PR c++/71210
1336 * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
1337 calls if the LHS is variable length or has addressable type.
1338 If targets[0]->decl is a noreturn call with void return type and
1339 zero arguments, adjust fntype and remove lhs in that case.
1340
1341 2016-05-20 Marc Glisse <marc.glisse@inria.fr>
1342
1343 PR tree-optimization/71079
1344 PR tree-optimization/71206
1345 * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
1346
1347 2016-05-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1348
1349 * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
1350 (get_vec_alignment_for_array_decl): Likewise.
1351 (get_vec_alignment_for_record_decl): Likewise.
1352 (increase_alignment::execute): Move code to find alignment to
1353 get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
1354 (type_align_map): New hash_map.
1355
1356 2016-05-20 Richard Guenther <rguenther@suse.de>
1357
1358 PR tree-optimization/29756
1359 * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
1360 * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
1361 * fold-const.c (operand_equal_p): Likewise.
1362 (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
1363 * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
1364 * tree-inline.c (estimate_operator_cost): Likewise.
1365 * tree-pretty-print.c (dump_generic_node): Likewise.
1366 * tree-ssa-operands.c (get_expr_operands): Likewise.
1367 * cfgexpand.c (expand_debug_expr): Likewise.
1368 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
1369 * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
1370 * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
1371 * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
1372 vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
1373 (execute_update_addresses_taken): Do it.
1374
1375 2016-05-20 Richard Biener <rguenther@suse.de>
1376
1377 PR tree-optimization/71185
1378 * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
1379 register operations.
1380
1381 2016-05-20 Richard Biener <rguenther@suse.de>
1382
1383 * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
1384 gimple_seq_add_seq_without_update.
1385 (release_bb_predicate): Assert we have no operands to free.
1386 (if_convertible_loop_p_1): Calculate post dominators later.
1387 Do not free BB predicates here.
1388 (combine_blocks): Do not recompute BB predicates.
1389 (version_loop_for_if_conversion): Save BB predicates around
1390 loop versioning.
1391
1392 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
1393
1394 * function.c (make_epilogue_seq): Remove epilogue_end parameter.
1395 (thread_prologue_and_epilogue_insns): Remove bb_flags. Restructure
1396 code. Ignore sibcalls on EDGE_IGNORE edges.
1397 * shrink-wrap.c (handle_simple_exit): New function. Set EDGE_IGNORE
1398 on edges for sibcalls that run without prologue. The rest of the
1399 function is combined from...
1400 (fix_fake_fallthrough_edge): ... this, and ...
1401 (try_shrink_wrapping): ... a part of this. Remove the bb_with
1402 function argument, make it a local variable.
1403
1404 2016-05-19 Sandra Loosemore <sandra@codesourcery.com>
1405
1406 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
1407 --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
1408 for 32-bit mode and SEH for 64-bit.
1409 * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
1410 TARGET_64BIT_DEFAULT.
1411
1412 2016-05-19 Ryan Burn <contact@rnburn.com>
1413
1414 * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
1415 * gengtype.c (open_base_files): Add cilk.h to ifiles.
1416
1417 2016-05-19 Uros Bizjak <ubizjak@gmail.com>
1418
1419 * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
1420 force pending loads from memory.
1421
1422 2016-05-19 Kelvin Nilsen <kelvin@gcc.gnu.org>
1423
1424 * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
1425 (UNSPEC_DARN_32): New unspec constant.
1426 (UNSPEC_DARN_RAW): New unspec constant.
1427 (darn_32): New instruction.
1428 (darn_raw): New instruction.
1429 (darn): New instruction.
1430 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
1431 support and documentation for this macro.
1432 (BU_P9_MISC_1): New macro definition.
1433 (BU_P9_64BIT_MISC_0): New macro definition.
1434 (BU_P9_MISC_0): New macro definition.
1435 (darn_32): New builtin definition.
1436 (darn_raw): New builtin definition.
1437 (darn): New builtin definition.
1438 * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
1439 RS6000_BUILTIN_0 directives to surround each occurrence of
1440 #include "rs6000-builtin.def".
1441 (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
1442 RS6000_BTM_64BIT flags to the returned mask, depending on
1443 configuration.
1444 (def_builtin): Correct an error in the assignments made to the
1445 debugging variable attr_string.
1446 (rs6000_expand_builtin): Add support for no-operand built-in
1447 functions.
1448 (builtin_function_type): Remove fatal_error assertion that is no
1449 longer valid.
1450 (rs6000_common_init_builtins): Add support for no-operand built-in
1451 functions.
1452 * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
1453 definition.
1454 (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
1455 definition.
1456 (RS6000_BTM_64BIT): New macro definition.
1457 * doc/extend.texi: Document __builtin_darn (void),
1458 __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
1459 functions.
1460
1461 2016-05-19 Jan Hubicka <hubicka@ucw.cz>
1462
1463 * tree-vect-loop.c (vect_analyze_loop_2): Use also
1464 max_loop_iterations_int.
1465
1466 2016-05-19 Marek Polacek <polacek@redhat.com>
1467
1468 PR tree-optimization/71031
1469 * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
1470 condition and adjust the code a bit.
1471
1472 2016-05-19 Martin Liska <mliska@suse.cz>
1473
1474 * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
1475 auto_vec instead of vec.
1476
1477 2016-05-19 Martin Liska <mliska@suse.cz>
1478
1479 * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
1480
1481 2016-05-19 Martin Liska <mliska@suse.cz>
1482
1483 * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
1484
1485 2016-05-19 Martin Liska <mliska@suse.cz>
1486
1487 * ipa-pure-const.c (set_function_state): Remove an existing
1488 funct_state.
1489 (remove_node_data): Do not free it as it's released
1490 in set_function_state.
1491
1492 2016-05-19 Martin Liska <mliska@suse.cz>
1493
1494 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
1495 bitmap.
1496
1497 2016-05-19 Martin Liska <mliska@suse.cz>
1498
1499 * omp-simd-clone.c (simd_clone_adjust): Release vector.
1500
1501 2016-05-19 Martin Liska <mliska@suse.cz>
1502
1503 * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
1504 an auto_vec instead of re-creating it.
1505
1506 2016-05-19 Martin Liska <mliska@suse.cz>
1507
1508 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
1509 auto_vec instead of vec.
1510
1511 2016-05-19 Martin Liska <mliska@suse.cz>
1512
1513 * lto-section-in.c (lto_get_section_data): Call
1514 lto_check_version with additional argument.
1515 * lto-streamer.c (lto_check_version): Add new argument.
1516 * lto-streamer.h (lto_check_version): Likewise.
1517
1518 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1519
1520 * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
1521 Don't add cost of inner memory when handling sign-extended loads.
1522
1523 2016-05-19 Ilya Enkovich <ilya.enkovich@intel.com>
1524
1525 PR rtl-optimization/71148
1526 * cse.c (cse_main): Free dominance info.
1527 (rest_of_handle_cse): Don't free dominance info.
1528 (rest_of_handle_cse2): Likewise.
1529 (rest_of_handle_cse_after_global_opts): Likewise.
1530
1531 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1532
1533 PR target/71056
1534 * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
1535 NULL_TREE early if NEON is not available. Remove now redundant check
1536 in ARM_CHECK_BUILTIN_MODE.
1537
1538 2016-05-19 Maxim Ostapenko <m.ostapenko@samsung.com>
1539
1540 PR sanitizer/64354
1541 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
1542 builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
1543 * doc/cpp.texi: Document new macros.
1544
1545 2016-05-19 Bin Cheng <bin.cheng@arm.com>
1546
1547 PR tree-optimization/69848
1548 * tree-vect-loop.c (vectorizable_reduction): Don't factor
1549 comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
1550
1551 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
1552
1553 * function.c (thread_prologue_and_epilogue_insn): Move the
1554 "goto epilogue_done" one block later.
1555
1556 2016-05-19 Richard Biener <rguenther@suse.de>
1557
1558 PR tree-optimization/70729
1559 * passes.def: Move LIM pass before PRE. Remove no longer
1560 required copyprop and move first DCE out of the loop pipeline.
1561
1562 2016-05-18 David Malcolm <dmalcolm@redhat.com>
1563
1564 PR driver/69265
1565 * Makefile.in (GCC_OBJS): Move spellcheck.o to...
1566 (OBJS-libcommon-target): ...here.
1567 * opts-common.c: Include spellcheck.h.
1568 (cmdline_handle_error): Build a vec of valid options and use it
1569 to suggest provide hints for misspelled arguments.
1570
1571 2016-05-18 Jakub Jelinek <jakub@redhat.com>
1572
1573 PR c++/71100
1574 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
1575 lhs if it has TREE_ADDRESSABLE type.
1576
1577 2016-05-18 Uros Bizjak <ubizjak@gmail.com>
1578
1579 PR target/71145
1580 * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
1581 (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
1582
1583 2016-05-18 Martin Jambor <mjambor@suse.cz>
1584
1585 PR ipa/69708
1586 * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
1587 input for NOP_EXPR pass-through functions.
1588 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
1589 aggregate global constant VAR_DECLs in constant jump functions.
1590
1591 2016-05-18 Martin Jambor <mjambor@suse.cz>
1592
1593 PR ipa/69708
1594 * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
1595 from TREE_READONLY parameters.
1596
1597 2016-05-18 Martin Jambor <mjambor@suse.cz>
1598
1599 PR ipa/69708
1600 * cgraph.h (cgraph_indirect_call_info): New field
1601 guaranteed_unmodified.
1602 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
1603 to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
1604 appropriate.
1605 * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
1606 pass the parameter value to ipa_find_agg_cst_for_param.
1607 * ipa-prop.c (ipa_load_from_parm_agg): New parameter
1608 guaranteed_unmodified, store AA results there instead of bailing out
1609 if present.
1610 (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
1611 (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
1612 (find_constructor_constant_at_offset): New function.
1613 (ipa_find_agg_cst_from_init): Likewise.
1614 (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
1615 static initializers of contants, report back through a new paameter
1616 from_global_constant if that was the case.
1617 (try_make_edge_direct_simple_call): Also pass parameter value to
1618 ipa_find_agg_cst_for_param, check guaranteed_unmodified when
1619 appropriate.
1620 (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
1621 (ipa_read_indirect_edge_info): Likewise.
1622 * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
1623 (ipa_load_from_parm_agg): Likewise.
1624
1625 2016-05-18 Jiong Wang <jiong.wang@arm.com>
1626
1627 PR rtl-optimization/71150
1628 * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
1629 check.
1630
1631 2016-05-18 Michael Meissner <meissner@linux.vnet.ibm.com>
1632
1633 PR target/70915
1634 * config/rs6000/constraints.md (wE constraint): New constraint
1635 for a vector constant that can be loaded with XXSPLTIB.
1636 (wM constraint): New constraint for a vector constant of a 1's.
1637 (wS constraint): New constraint for a vector constant that can be
1638 loaded with XXSPLTIB and a vector sign extend instruction.
1639 * config/rs6000/predicates.md (xxspltib_constant_split): New
1640 predicates for wE/wS constraints.
1641 (xxspltib_constant_nosplit): Likewise.
1642 (easy_vector_constant): Add support for constants that can be
1643 loaded via XXSPLTIB.
1644 (all_ones_constant): New predicate for vector constant with all
1645 1's set.
1646 (splat_input_operand): Add support for ISA 3.0 word splat operations.
1647 * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
1648 return if a constant can be loaded with the ISA 3.0 XXSPLTIB
1649 instruction and possibly with a sign extension.
1650 (output_vec_const_move): Add support for XXSPLTIB. If we are
1651 loading up 0/-1 into Altivec registers, prefer using VSPLTISW
1652 instead of XXLXOR/XXLORC.
1653 (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
1654 operations.
1655 (rs6000_legitimize_reload_address): Likewise.
1656 (rs6000_output_move_128bit): Use output_vec_const_move to emit
1657 constants.
1658 * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
1659 combine VSX_M and VSX_M2 into one iterator.
1660 (VSX_M2): Likewise.
1661 (VSINT_84): New iterators for loading constants with XXSPLTIB.
1662 (VSINT_842): Likewise.
1663 (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
1664 (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
1665 XXSPLTIB instruction.
1666 (xxspltib_<mode>_nosplit): Likewise.
1667 (xxspltib_<mode>_split): New insn to load up constants with
1668 XXSPLTIB and a sign extend instruction.
1669 (vsx_mov<mode>): Replace single move that handled all vector types
1670 with separate 32-bit and 64-bit moves. Combine the movti_<bit>
1671 moves (when -mvsx-timode is in effect) into the main vector
1672 moves. Eliminate separate moves for <VSr> <VSa>, where the
1673 preferred register class (<VSr>) is listed first, and the
1674 secondary register class (<VSa>) is listed second with a '?' to
1675 discourage use. Prefer loading 0/-1 in any VSX register for ISA
1676 3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
1677 that if the register was involved in a slow operation, the
1678 clear/set operation does not wait for the slow operation to
1679 finish. Adjust the length attributes for 32-bit mode. Use
1680 rs6000_output_move_128bit and drop the use of the string
1681 instructions for 32-bit movti when -mvsx-timode is in effect. Use
1682 spacing so that the alternatives and attributes don't generate
1683 long lines, and put things in columns, so that it is easier to
1684 match up the operands and attributes with the insn alternatives.
1685 (vsx_mov<mode>_64bit): Likewise.
1686 (vsx_mov<mode>_32bit): Likewise.
1687 (vsx_movti_64bit): Fold movti into normal vector moves.
1688 (vsx_movti_32bit): Likewise.
1689 (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
1690 splat instructions.
1691 (vsx_splat_v4si_internal): Likewise.
1692 (vsx_splat_v4sf_internal): Likewise.
1693 (vector fusion peepholes): Use VSX_M instead of VSX_M2.
1694 (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
1695 extend vector elements.
1696 (vsx_sign_extend_hi_<mode>): Likewise.
1697 (vsx_sign_extend_si_v2di): Likewise.
1698 * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
1699 declaration.
1700 * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
1701 constraints. Add trailing period to wL documentation.
1702
1703 2016-05-18 Richard Sandiford <richard.sandiford@arm.com>
1704
1705 PR middle-end/71020
1706 * tree-dfa.h (replace_abnormal_ssa_names): Declare.
1707 * tree-dfa.c (replace_abnormal_ssa_names): New function.
1708 * tree-call-cdce.c: Include tree-dfa.h.
1709 (can_guard_call_p): New function, extracted from...
1710 (can_use_internal_fn): ...here.
1711 (shrink_wrap_one_built_in_call_with_conds): Remove failure path
1712 and return void.
1713 (shrink_wrap_one_built_in_call): Likewise.
1714 (use_internal_fn): Likewise.
1715 (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
1716 and return void. Call replace_abnormal_ssa_names.
1717 (pass_call_cdce::execute): Check can_guard_call_p during the
1718 initial walk. Assume shrink_wrap_conditional_dead_built_in_calls
1719 will always change something.
1720
1721 2016-05-18 Martin Jambor <mjambor@suse.cz>
1722
1723 PR ipa/70646
1724 * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
1725 if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
1726
1727 2016-05-18 Martin Jambor <mjambor@suse.cz>
1728
1729 PR ipa/70646
1730 * ipa-inline.h (condition): New field size.
1731 * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
1732 for comaprison and store it into the new condition.
1733 (evaluate_conditions_for_known_args): Use condition size to check
1734 access sizes for all but CHANGED conditions.
1735 (unmodified_parm_1): New parameter size_p, store access size into it.
1736 (unmodified_parm): Likewise.
1737 (unmodified_parm_or_parm_agg_item): Likewise.
1738 (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
1739 (set_cond_stmt_execution_predicate): Extract access sizes and store
1740 them to conditions.
1741 (set_switch_stmt_execution_predicate): Likewise.
1742 (will_be_nonconstant_expr_predicate): Likewise.
1743 (will_be_nonconstant_predicate): Likewise.
1744 (inline_read_section): Stream condition size.
1745 (inline_write_summary): Likewise.
1746
1747 2016-05-18 Richard Biener <rguenther@suse.de>
1748
1749 * tree-ssa-loop-im.c (determine_max_movement): Properly add
1750 condition cost to PHI cost instead of total_cost.
1751
1752 2016-05-18 Martin Liska <mliska@suse.cz>
1753
1754 PR fortran/70856
1755 * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
1756 merged variables.
1757
1758 2016-05-18 Richard Biener <rguenther@suse.de>
1759
1760 * lto-streamer.h (LTO_major_version): Bump to 6.
1761
1762 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
1763
1764 * function.c (make_split_prologue_seq, make_prologue_seq,
1765 make_epilogue_seq): New functions, factored out from...
1766 (thread_prologue_and_epilogue_insns): Here.
1767
1768 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
1769
1770 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
1771 cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
1772 of before. Add a comment.
1773
1774 2016-05-18 Bin Cheng <bin.cheng@arm.com>
1775
1776 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
1777 expression pointer, not pointer to the pointer.
1778
1779 2016-05-18 Jakub Jelinek <jakub@redhat.com>
1780
1781 * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
1782 (avx2_pbroadcast<mode>): Add another alternative with v instead
1783 of x constraints in it, using <pbroadcast_evex_isa> isa.
1784 (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
1785
1786 * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
1787 constraint x instead of v in second alternative, add avx512bw
1788 alternative.
1789
1790 * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
1791 constraint x instead of v in second alternative, add avx512bw
1792 alternative.
1793
1794 * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
1795 constraint x instead of v in second alternative, add avx512bw
1796 alternative.
1797
1798 * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
1799 avx512bw alternative.
1800
1801 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
1802
1803 * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
1804 array to 128 chars.
1805 (define_insn "*andnottf3"): Ditto.
1806 (define_insn "*<code><mode>3"/any_logic): Ditto.
1807 (define_insn "*<code>tf3"/any_logic): Ditto.
1808 (define_insn "sse2_storehpd"): Use Yv constraint for scalar
1809 operand to block AVX-512VL insn variant emit when it is not enabled.
1810
1811 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
1812
1813 * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
1814 constraint fot SF mode.
1815
1816 2016-05-18 Petr Murzin <petr.murzin@intel.com>
1817 Kirill Yukhin <kirill.yukhin@intel.com>
1818
1819 * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
1820 modifiers.
1821 (define_insn "rsqrt14<mode>"): Ditto.
1822 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
1823 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
1824 (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
1825 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
1826 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
1827 Ditto.
1828 (define_insn "*avx512f_gatherdi<mode>"): Ditto.
1829 (define_insn "*avx512f_scatterdi<mode>"): Ditto.
1830 * config/i386/i386.c (ix86_print_operand): Expand check for size
1831 override codes for Intel syntax.
1832
1833 2016-05-18 Richard Biener <rguenther@suse.de>
1834
1835 PR tree-optimization/71168
1836 * tree-loop-distribution.c (distribute_loop): Move *destroy_p
1837 initialization earlier.
1838
1839 2016-05-18 James Greenhalgh <james.greenhalgh@arm.com>
1840
1841 * config/aarch64/aarch64-simd.md
1842 (aarch64_reduc_plus_internal<mode>): Rename to...
1843 (reduc_plus_scal): ...This, and remove previous implementation.
1844
1845 2016-05-18 Richard Biener <rguenther@suse.de>
1846
1847 * passes.def: Put late dse and cd_dce in canonical order.
1848
1849 2016-05-17 Jan Hubicka <hubicka@ucw.cz>
1850
1851 * ipa-inline-transform.c (preserve_function_body_p): Look for
1852 first non-thunk clone.
1853 (save_function_body): Save into first non-thunk.
1854 * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
1855 up call stmt id.
1856 (lto_output_node): Inline thunks don't need body in every
1857 partition.
1858 * lto-streamer-in.c: Do not fixup thunk clones.
1859 * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
1860 thunks.
1861 * tree-inline.c (copy_bb): Be prepared for target node to be new after
1862 folding suceeds.
1863
1864 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
1865
1866 PR middle-end/63586
1867 * tree-ssa-reassoc.c (transform_add_to_multiply): New.
1868 (reassociate_bb): Call transform_add_to_multiply.
1869
1870 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
1871
1872 * config/aarch64/aarch64.c (all_extensions): Removed unused
1873 static variable.
1874
1875 2016-05-17 Nathan Sidwell <nathan@acm.org>
1876
1877 * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
1878 (TARGET_FUNCTION_ARG_BOUNDARY): Override.
1879
1880 2016-05-17 Mikhail Maltsev <maltsevm@gmail.com>
1881
1882 PR tree-optimization/54579
1883 PR middle-end/55299
1884 * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
1885
1886 2016-05-17 Marek Polacek <polacek@redhat.com>
1887
1888 PR ipa/71146
1889 * tree-inline.c (expand_call_inline): Call
1890 maybe_remove_unused_call_args.
1891
1892 2016-05-17 Jim Wilson <jim.wilson@linaro.org>
1893
1894 * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
1895 * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
1896 * doc/md.texi (fmin@var{m}3): Likewise.
1897
1898 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
1899
1900 * match.pd (X & C): New transformation.
1901
1902 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
1903
1904 * match.pd (~X & Y): New transformation.
1905
1906 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
1907
1908 * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
1909 information for new SSA_NAME.
1910 (simplify_conversion_using_ranges): Get range through get_range_info
1911 instead of get_value_range.
1912
1913 2016-05-17 Jiong Wang <jiong.wang@arm.com>
1914
1915 * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
1916 Remove inline assembly.
1917 (vmvn_s16): Likewise.
1918 (vmvn_s32): Likewise.
1919 (vmvn_u8): Likewise.
1920 (vmvn_u16): Likewise.
1921 (vmvn_u32): Likewise.
1922 (vmvnq_s8): Likewise.
1923 (vmvnq_s16): Likewise.
1924 (vmvnq_s32): Likewise.
1925 (vmvnq_u8): Likewise.
1926 (vmvnq_u16): Likewise.
1927 (vmvnq_u32): Likewise.
1928 (vmvn_p8): Likewise.
1929 (vmvnq_p16): Likewise.
1930
1931 2016-05-17 Jiong Wang <jiong.wang@arm.com>
1932
1933 * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
1934 Use builtin.
1935 (vmul_n_s16): Likewise.
1936 (vmul_n_s32): Likewise.
1937 (vmul_n_u16): Likewise.
1938 (vmul_n_u32): Likewise.
1939 (vmulq_n_f32): Likewise.
1940 (vmulq_n_f64): Likewise.
1941 (vmulq_n_s16): Likewise.
1942 (vmulq_n_s32): Likewise.
1943 (vmulq_n_u16): Likewise.
1944 (vmulq_n_u32): Likewise.
1945
1946 2016-05-17 Jiong Wang <jiong.wang@arm.com>
1947
1948 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
1949 to all supported modes. Rename to "*aarch64_mul3_elt_from_dup".
1950
1951 2016-05-17 Jiong Wang <jiong.wang@arm.com>
1952
1953 * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
1954 to *aarch64_fma4_elt_from_dup<mode>.
1955 (*aarch64_fnma4_elt_to_128df): Rename to
1956 *aarch64_fnma4_elt_from_dup<mode>.
1957 * config/aarch64/arm_neon.h (vfma_n_f64): New.
1958 (vfms_n_f32): Likewise.
1959 (vfms_n_f64): Likewise.
1960 (vfmsq_n_f32): Likewise.
1961 (vfmsq_n_f64): Likewise.
1962
1963 2016-05-17 Gerald Pfeifer <gerald@pfeifer.com>
1964
1965 * wide-int.h: Change fixed_wide_int_storage from class to struct.
1966
1967 2016-05-17 Richard Biener <rguenther@suse.de>
1968
1969 PR tree-optimization/71132
1970 * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
1971 Only add control dependences for blocks in the loop.
1972 (build_rdg): Adjust.
1973 (generate_code_for_partition): Return whether loop should
1974 be destroyed and delay that.
1975 (distribute_loop): Likewise.
1976 (pass_loop_distribution::execute): Record loops to be destroyed
1977 and perform delayed destroying of loops.
1978
1979 2016-05-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1980
1981 PR target/70809
1982 * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
1983
1984 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
1985
1986 * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
1987
1988 2016-05-17 Ilya Enkovich <ilya.enkovich@intel.com>
1989
1990 PR target/71114
1991 * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
1992 insertion point for instructions generated by validize_mem.
1993
1994 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
1995
1996 * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
1997 in brackets.
1998
1999 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
2000
2001 * config/aarch64/aarch64.c
2002 (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
2003 rather than a macro.
2004
2005 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
2006
2007 * doc/invoke.texi (AArch64 Options): Various updates.
2008
2009 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
2010
2011 * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
2012 into instrumentation thunks.
2013 * cif-code.def (CIF_CHKP): New.
2014
2015 2016-05-16 Uros Bizjak <ubizjak@gmail.com>
2016
2017 * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
2018
2019 2016-05-16 Martin Jambor <mjambor@suse.cz>
2020
2021 * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
2022 (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
2023
2024 2016-05-16 Marek Polacek <polacek@redhat.com>
2025
2026 * gimple.c (maybe_remove_unused_call_args): Fix typos in the
2027 commentary.
2028
2029 2016-05-16 Martin Jambor <mjambor@suse.cz>
2030
2031 PR hsa/70857
2032 * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
2033 the outlined kernel function.
2034
2035 2016-05-16 Robert Suchanek <robert.suchanek@imgtec.com>
2036
2037 * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
2038 (ISA_HAS_DLSA): Ditto.
2039
2040 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
2041
2042 * config/mips/m5100.md (m51_int_load): Update the latency to 2.
2043
2044 2016-05-16 Nathan Sidwell <nathan@acm.org>
2045
2046 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
2047 (nvptx_name_replacement): Restore. Add comment.
2048 (write_fn_proto, write_fn_proto_from_insn,
2049 nvptx_output_call_insn): Restore
2050 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
2051
2052 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
2053
2054 * config/aarch64/aarch64.md
2055 (add<mode>3_compareC_cconly_imm): Remove use of %w.
2056 (add<mode>3_compareC_imm): Likewise.
2057 (<optab>si3_uxtw): Split into register and immediate variants.
2058 (andsi3_compare0_uxtw): Likewise.
2059 (and<mode>3_compare0): Likewise.
2060 (and<mode>3nr_compare0): Likewise.
2061 (stack_protect_test_<mode>): Don't use %x for memory operands.
2062
2063 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
2064
2065 * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
2066
2067 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
2068
2069 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
2070 Split integer shifts into shift_reg and bfm.
2071 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
2072 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
2073 (ror<mode>3_insn): Likewise.
2074 (<optab>si3_insn_uxtw): Likewise.
2075 (<optab><mode>3_insn): Change to rotate_imm.
2076 (extr<mode>5_insn_alt): Likewise.
2077 (extrsi5_insn_uxtw): Likewise.
2078 (extrsi5_insn_uxtw_alt): Likewise.
2079
2080 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
2081
2082 * doc/tm.texi: Regenerate.
2083 * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
2084 (TARGET_INVALID_RETURN_TYPE): Remove.
2085 * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
2086 TARGET_INVALID_RETURN_TYPE.
2087 * target.def (invalid_parameter_type): Remove.
2088 (invalid_return_type): Remove.
2089
2090 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
2091
2092 * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
2093 on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
2094 calls from thunk.
2095 * ipa-inline-transform.c (inline_call): When inlining into thunk produce
2096 gimple body.
2097 (preserve_function_body_p): No need to preserve function body
2098 * cif-codes.def (CIF_THUNK): Remove.
2099 * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
2100
2101 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
2102
2103 * tree-inline.c (expand_call_inline): recurse after inlining thunk.
2104
2105 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
2106
2107 * tree.c (free_lang_data_in_decl): Also set target/optimization flags
2108 for thunks.
2109
2110 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
2111
2112 * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
2113 (inline_small_functions): Do not look for function symbol when
2114 resetting caches.
2115
2116 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
2117
2118 * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
2119 of inline thunks
2120
2121 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
2122 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2123 Jiong Wang <jiong.wang@arm.com>
2124
2125 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
2126 for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
2127 Define __ARM_FP16_ARGS when appropriate.
2128 * config/arm/arm.c (arm_invalid_parameter_type): Remove
2129 declaration.
2130 (arm_invalid_return_type): Likewise.
2131 (TARGET_INVALID_PARAMETER_TYPE): Remove.
2132 (TARGET_INVALID_RETURN_TYPE): Remove.
2133 (aapcs_vfp_sub_candidate): Allow HFmode.
2134 (aapcs_vfp_allocate): Add comment. Support HFmode.
2135 (aapcs_vfp_allocate_return_reg): Likewise.
2136 (struct aapcs_cp_arg_layout): Slightly reword comments for
2137 is_return_candidate and allocate_return_reg.
2138 (output_mov_vfp): Update assert.
2139 (arm_hard_regno_mode_ok): Remove comment, update HF-mode
2140 condition.
2141 (arm_invalid_parameter_type): Remove.
2142 (amr_invalid_return_type): Remove.
2143 * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
2144 * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
2145 * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
2146
2147 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
2148
2149 * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
2150 * config/aarch64/arch64-protos.h
2151 (aarch64_legitimize_reload_address): Remove.
2152 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
2153 Remove.
2154
2155 2016-05-16 Eric Botcazou <ebotcazou@adacore.com>
2156
2157 * configure.ac: Add ACX_NONCANONICAL_HOST.
2158 * configure: Regenerate.
2159 * Makefile.in: Set host_noncanonical.
2160
2161 2016-05-14 Uros Bizjak <ubizjak@gmail.com>
2162
2163 PR target/71097
2164 * config/i386/i386.md (*movtf_internal): Before register allocation,
2165 do not allow FP constants for CM_MEDIUM memory model, allow only
2166 standard FP constants for CM_LARGE and CM_LARGE_PIC models.
2167 (*movxf_internal): Ditto.
2168 (*movdf_internal): Ditto.
2169 (*movsf_internal): Ditto.
2170
2171 2016-05-13 Segher Boessenkool <segher@kernel.crashing.org>
2172
2173 PR rtl-optimization/67483
2174 * combine.c (make_compound_operation): Don't call extract_left_shift
2175 with negative shift amounts.
2176
2177 2016-05-13 Jakub Jelinek <jakub@redhat.com>
2178
2179 PR bootstrap/71071
2180 * fold-const.c (fold_checksum_tree): Allow modification
2181 of TYPE_ALIAS_SET during folding.
2182
2183 * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
2184 ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
2185 (ix86_split_to_parts): Likewise. Fix up formatting.
2186
2187 2016-05-13 H.J. Lu <hongjiu.lu@intel.com>
2188
2189 * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
2190 unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
2191 printf format.
2192
2193 2016-05-13 Nathan Sidwell <nathan@acm.org>
2194
2195 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
2196 (nvptx_name_replacement): Delete.
2197 (write_fn_proto, write_fn_proto_from_insn,
2198 nvptx_output_call_insn): Remove nvptx_name_replacement call.
2199 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
2200 * langhooks.c (add_builtin_funcction_common): Call
2201 targetm.mangle_decl_assembler_name.
2202
2203 * config/nvptx/nvptx.c (write_fn_proto): Handle
2204 BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
2205
2206 2016-05-13 Martin Liska <mliska@suse.cz>
2207
2208 * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
2209 and PRIu64 in printf format.
2210
2211 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2212
2213 * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
2214 comment.
2215
2216 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2217
2218 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
2219 Change --param max-completely-peeled-times to
2220 --param max-completely-peel-times in dump file printing.
2221
2222 2016-05-13 Richard Biener <rguenther@suse.de>
2223
2224 PR tree-optimization/42587
2225 * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
2226 (find_bswap_or_nop_1): Likewise.
2227 (bswap_replace): Likewise.
2228
2229 2016-05-13 Martin Liska <mliska@suse.cz>
2230
2231 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
2232 Initialize a variable with default value.
2233
2234 2016-05-13 Martin Liska <mliska@suse.cz>
2235
2236 * doc/invoke.texi: Enhance explanation of error recovery
2237 of sanitizers.
2238
2239 2016-05-13 Martin Liska <mliska@suse.cz>
2240
2241 * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
2242 (struct cost_pair): Change inv_expr_id (int) to inv_expr
2243 (iv_inv_expr_ent *).
2244 (struct iv_inv_expr_ent): Comment struct fields.
2245 (sort_iv_inv_expr_ent): New function.
2246 (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
2247 (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
2248 a hash_map between iv_inv_expr_ent and number of usages.
2249 (niter_for_exit): Fix coding style.
2250 (tree_ssa_iv_optimize_init): Use renamed variable.
2251 (determine_base_object): Fix coding style.
2252 (alloc_iv): Likewise.
2253 (find_interesting_uses_outside): Likewise.
2254 (add_candidate_1): Likewise.
2255 (add_standard_iv_candidates): Likewise.
2256 (set_group_iv_cost): Replace inv_expr_id with inv_expr.
2257 (prepare_decl_rtl): Fix coding style.
2258 (get_address_cost): Likewise.
2259 (get_shiftadd_cost): Likewise.
2260 (force_expr_to_var_cost): Likewise.
2261 (compare_aff_trees): Likewise.
2262 (get_expr_id): Restructure the function.
2263 (get_loop_invariant_expr_id): Renamed to
2264 get_loop_invariant_expr.
2265 (get_computation_cost_at): Replace usage of inv_expr_id with
2266 inv_expr.
2267 (get_computation_cost): Likewise.
2268 (determine_group_iv_cost_generic): Likewise.
2269 (determine_group_iv_cost_address): Likewise.
2270 (iv_period): Fix coding style.
2271 (iv_elimination_compare_lt): Likewise.
2272 (may_eliminate_iv): Likewise.
2273 (determine_group_iv_cost_cond): Replace usage of inv_expr_id with
2274 inv_expr.
2275 (determine_group_iv_costs): Dump invariant expressions.
2276 (iv_ca_recount_cost): Use the newly added hash_map.
2277 (iv_ca_set_remove_invariants): Fix coding style.
2278 (iv_ca_set_add_invariants): Fix coding style.
2279 (iv_ca_set_no_cp): Utilize the newly added hash_map for used
2280 invariants.
2281 (iv_ca_set_cp): Likewise.
2282 (iv_ca_new): Initialize the newly added hash_map and remove
2283 initialization of fields.
2284 (iv_ca_free): Delete the hash_map.
2285 (iv_ca_dump): Dump invariant expressions.
2286 (iv_ca_extend): Fix coding style.
2287 (try_add_cand_for): Likewise.
2288 (create_new_ivs): Dump information about # of avg iterations and
2289 # of used invariant expressions.
2290 (rewrite_use_compare): Fix coding style.
2291 (free_loop_data): Set default value for max_inv_expr_id.
2292
2293 2016-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
2294
2295 * cse.c (rest_of_handle_cse): Use cleanup_cfg
2296 returned value cse_cfg_altered computation.
2297 (rest_of_handle_cse2): Likewise.
2298 (rest_of_handle_cse_after_global_opts): Likewise.
2299
2300 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2301
2302 PR target/53440
2303 * config/arm/arm.c (arm32_output_mi_thunk): New.
2304 (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
2305 to split Thumb1 vs TARGET_32BIT functionality.
2306 (arm_thumb1_mi_thunk): New.
2307
2308 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2309
2310 * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
2311 to true.
2312
2313 2016-05-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2314
2315 PR target/71080
2316 * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
2317
2318 2016-05-13 Eric Botcazou <ebotcazou@adacore.com>
2319
2320 * builtins.c (expand_builtin_memcmp): Do not emit the call here.
2321 (expand_builtin_trap): Emit a regular call.
2322 (set_builtin_user_assembler_name): Remove obsolete cases.
2323 * dse.c (scan_insn): Adjust.
2324 * except.c: Include calls.h.
2325 (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
2326 emit a regular call to setjmp.
2327 * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
2328 (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
2329 (emit_block_move_via_libcall): Delete.
2330 (block_move_fn): Delete.
2331 (init_block_move_fn): Likewise.
2332 (emit_block_move_libcall_fn): Likewise.
2333 (emit_block_op_via_libcall): New function.
2334 (set_storage_via_libcall): Tidy up and use memset builtin.
2335 (block_clear_fn): Delete.
2336 (init_block_clear_fn): Likewise.
2337 (clear_storage_libcall_fn): Likewise.
2338 (expand_assignment): Call emit_block_move_via_libcall.
2339 Do not include gt-expr.h.
2340 * expr.h (emit_block_op_via_libcall): Declare.
2341 (emit_block_copy_via_libcall): New inline function.
2342 (emit_block_move_via_libcall): Likewise.
2343 (emit_block_comp_via_libcall): Likewise.
2344 (block_clear_fn): Delete.
2345 (init_block_move_fn): Likewise.
2346 (init_block_clear_fn): Likewise.
2347 (emit_block_move_via_libcall): Likewise.
2348 (set_storage_via_libcall): Add default parameter value.
2349 * libfuncs.h (enum libfunc_index): Remove obsolete values.
2350 (abort_libfunc): Delete.
2351 (memcpy_libfunc): Likewise.
2352 (memmove_libfunc): Likewise.
2353 (memcmp_libfunc): Likewise.
2354 (memset_libfunc): Likewise.
2355 (setbits_libfunc): Likewise.
2356 (setjmp_libfunc): Likewise.
2357 (longjmp_libfunc): Likewise.
2358 (profile_function_entry_libfunc): Likewise.
2359 (profile_function_exit_libfunc): Likewise.
2360 (gcov_flush_libfunc): Likewise.
2361 * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
2362 and DECL_VISIBILITY on the declaration.
2363 (init_optabs): Do not initialize obsolete libfuncs.
2364 * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
2365 * tree-core.h (ECF_RET1): Define.
2366 (ECF_TM_PURE): Adjust.
2367 (ECF_TM_BUILTIN): Likewise.
2368 * tree.c (set_call_expr_flags): Deal with ECF_RET1.
2369 (build_common_builtin_nodes): Initialize abort builtin.
2370 Add ECF_RET1 on memcpy, memmove and memset builtins.
2371 Pass final flags for alloca and alloca_with_align builtins.
2372 * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
2373 obsolete builtins.
2374 * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
2375 * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
2376 set_storage_via_libcall and call emit_block_copy_via_libcall.
2377
2378 2016-05-12 Uros Bizjak <ubizjak@gmail.com>
2379
2380 * config/i386/i386.md (*call_got_x32): Change operand 0 to
2381 DImode before it is passed to ix86_output_call_operand.
2382 (*call_value_got_x32): Ditto for operand 1.
2383
2384 2016-05-12 Jiong Wang <jiong.wang@arm.com>
2385
2386 PR rtl-optimization/70904
2387 * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
2388 reload for wide mode.
2389
2390 2016-05-12 Marek Polacek <polacek@redhat.com>
2391
2392 PR c/70756
2393 * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
2394 * langhooks.c (lhd_incomplete_type_error): Add location parameter.
2395 * langhooks.h (incomplete_type_error): Likewise.
2396 * tree.c (size_in_bytes_loc): Renamed from size_in_bytes. Add location
2397 parameter, pass it down to incomplete_type_error.
2398 * tree.h (size_in_bytes): New inline overload.
2399 (size_in_bytes_loc): Renamed from size_in_bytes.
2400
2401 2016-05-12 Richard Biener <rguenther@suse.de>
2402
2403 PR tree-optimization/71059
2404 * tree-ssa-pre.c (phi_translate_1): Fully fold translated
2405 nary before looking up or entering the expression into the VN
2406 hashes.
2407 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
2408 Make sure to re-use NARYs without result as inserted by
2409 phi-translation.
2410
2411 2016-05-12 Richard Biener <rguenther@suse.de>
2412
2413 PR tree-optimization/71062
2414 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
2415 field.
2416 * tree-ssa-structalias.c (set_uids_in_ptset): Set
2417 vars_contains_restrict if the var is a restrict tag.
2418 * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
2419 do not disambiguate pointers against it.
2420 (dump_points_to_solution): Re-structure and adjust for new
2421 vars_contains_restrict flag.
2422 * gimple-pretty-print.c (pp_points_to_solution): Likewise.
2423
2424 2016-05-12 Martin Liska <mliska@suse.cz>
2425
2426 * doc/invoke.texi: Explain connection between
2427 -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
2428
2429 2016-05-12 Ilya Enkovich <ilya.enkovich@intel.com>
2430
2431 PR tree-optimization/71006
2432 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
2433 consider COND_EXPR as a mask producer.
2434
2435 2016-05-12 Marek Polacek <polacek@redhat.com>
2436
2437 PR driver/71063
2438 * opts.c (common_handle_option): Detect missing argument for --help^.
2439
2440 2016-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2441
2442 PR target/70830
2443 * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
2444 when popping the PC and within an interrupt handler routine.
2445 Add missing tab to output of "ldmfd".
2446 (output_return_instruction): Output LDMFD with SP update rather
2447 than POP when returning from interrupt handler.
2448
2449 2016-05-12 Jakub Jelinek <jakub@redhat.com>
2450
2451 * config/i386/i386.md (isa): Add x64_avx512dq, enable if
2452 TARGET_64BIT && TARGET_AVX512DQ.
2453 * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
2454 (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
2455 (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
2456 *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
2457 (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
2458 (*vec_extractv4si_zext): Add avx512dq alternative.
2459 (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
2460 use v instead of x constraint in other alternatives where possible.
2461
2462 * config/i386/sse.md (sse2_loadld): Use v instead of x
2463 constraint in alternatives 0,1,4.
2464
2465 * config/i386/sse.md (pinsr_evex_isa): New mode attr.
2466 (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
2467 v constraints instead of x and <pinsr_evex_isa> isa attribute.
2468
2469 PR target/71019
2470 * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
2471 <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
2472 is not emitted unless TARGET_AVX512BW.
2473 (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
2474 Likewise. For TARGET_AVX512BW, use "=v" constraint instead of "=x"
2475 for the result operand.
2476
2477 * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
2478 constraint instead of x in avx alternatives. Use maybe_evex instead
2479 of vex prefix.
2480
2481 * config/i386/constraints.md (Yv): New constraint.
2482 * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
2483 TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
2484 * config/i386/i386.md (avx512fvecmode): New mode attr.
2485 (*pushtf): Use v constraint instead of x.
2486 (*movtf_internal): Likewise. For TARGET_AVX512VL and
2487 xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
2488 (*absneg<mode>2): Use Yv constraint instead of x constraint.
2489 (*absnegtf2_sse): Likewise.
2490 (copysign<mode>3_const, copysign<mode>3_var): Likewise.
2491 * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
2492 avx512f alternatives.
2493 (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
2494
2495 2016-05-12 Richard Biener <rguenther@suse.de>
2496
2497 PR tree-optimization/71060
2498 * tree-data-ref.c (initialize_data_dependence_relation): Do not
2499 require exact match of DR_BASE_OBJECT but only matching address and
2500 type.
2501
2502 2016-05-12 Richard Biener <rguenther@suse.de>
2503
2504 PR tree-optimization/70986
2505 * cfganal.c: Include cfgloop.h.
2506 (dfs_find_deadend): Prefer to take edges exiting loops.
2507
2508 2016-05-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2509
2510 * gcc.target/powerpc/pr70963.c: Require at least power8 at both
2511 compile and run time.
2512
2513 2016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
2514
2515 PR c/43651
2516 * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
2517
2518 2016-05-11 Uros Bizjak <ubizjak@gmail.com>
2519
2520 * config/i386/i386.c (legitimize_pic_address): Use
2521 copy_to_suggested_reg instead of gen_movsi.
2522
2523 2016-05-11 Michael Meissner <meissner@linux.vnet.ibm.com>
2524
2525 * config/rs6000/predicates.md (quad_memory_operand): Move most of
2526 the code into quad_address_p and call it to share code with
2527 vsx_quad_dform_memory_operand.
2528 (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
2529 d-form support.
2530 * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
2531 bit instead of being a separate word. Split -mpower9-dform into
2532 two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
2533 * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
2534 for the register class supporting 128-bit quad word memory offsets.
2535 (mode_supports_vsx_dform_quad): Helper function to return if the
2536 register class uses quad word memory offsets.
2537 (rs6000_debug_addr_mask): Add support for quad word memory offsets.
2538 (rs6000_debug_reg_global): Always print if we are using LRA or not.
2539 (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
2540 instructions are enabled, set up the appropriate addr_masks for
2541 128-bit types.
2542 (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
2543 -mpower9-dform-scalar, instead of -mpower9-dform.
2544 (rs6000_option_override_internal): Split -mpower9-dform into two
2545 switches, -mpower9-dform-scalar and -mpower9-dform-vector. The
2546 -mpower9-dform switch sets or clears both. If we are not using
2547 the LRA register allocator, do not enable -mpower9-dform-vector by
2548 default. If we are using LRA, enable -mpower9-dform-vector and
2549 -mvsx-timode if it is appropriate. Issue a warning if either
2550 -mpower9-dform-vector or -mvsx-timode are explicitly used without
2551 enabling LRA.
2552 (quad_address_offset_p): New helper function to return if the
2553 offset is legal for quad word memory instructions.
2554 (quad_address_p): New function to determin if GPR or vector
2555 register quad word memory addresses are legal.
2556 (mem_operand_gpr): Validate quad word address offsets.
2557 (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
2558 d-form (register + offset) instructions.
2559 (offsettable_ok_by_alignment): Likewise.
2560 (rs6000_legitimate_offset_address_p): Likewise.
2561 (legitimate_lo_sum_address_p): Likewise.
2562 (rs6000_legitimize_address): Likewise.
2563 (rs6000_legitimize_reload_address): Add more debug statements for
2564 -mdebug=addr.
2565 (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
2566 d-form instructions.
2567 (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
2568 d-form instructions. Distinguish different cases in debug
2569 output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
2570 d-form instructions.
2571 (rs6000_preferred_reload_class): Likewise.
2572 (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
2573 instructions. If ISA 3.0 is available, generate lxvx/stxvx instead
2574 of the ISA 2.06 indexed memory instructions.
2575 (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
2576 use them to save/restore the saved vector registers instead of
2577 using Altivec instructions.
2578 (rs6000_emit_epilogue): Likewise.
2579 (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
2580 (rs6000_opt_masks): Split -mpower9-dform into
2581 -mpower9-dform-scalar and -mpower9-dform-vector.
2582 (rs6000_print_options_internal): Print -mno-<switch> if <switch>
2583 was not selected.
2584 * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
2585 ISA 3.0 vector indexed memory instructions, and fold the code into
2586 the normal mov<mode> patterns.
2587 (p9_vecstore_<mode>): Likewise.
2588 (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
2589 instructions.
2590 (vsx_movti_64bit): Likewise.
2591 (vsx_movti_32bit): Likewise.
2592 * config/rs6000/constraints.md (wO constraint): New constraint for
2593 ISA 3.0 vector d-form support.
2594 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
2595 -mpower9-dform-scalar instead of -mpower9-dform. Add note not to
2596 include -mpower9-dform-vector until we switch over to LRA.
2597 (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
2598 switches, -mpower9-dform-scalar and -mpower9-dform-vector.
2599 * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
2600 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
2601 for -mpower9-dform and -mlra.
2602 * doc/md.texi (wO constraint): Document wO constraint.
2603
2604 2016-05-11 Alexander Monakov <amonakov@ispras.ru>
2605
2606 * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
2607 'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
2608 * genautomata.c (output_internal_insn_code_evaluation): Simplify.
2609 Move handling of non-insn arguments inline into the sole user:
2610 (output_trans_func): ...here.
2611 (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
2612 in emitted function prototype.
2613 (output_internal_insn_latency_func): Ditto. Simplify.
2614 (output_internal_maximal_insn_latency_func): Ditto. Delete
2615 always-unused argument.
2616 (output_insn_latency_func): Ditto.
2617 (output_maximal_insn_latency_func): Ditto.
2618
2619 2016-05-11 Richard Biener <rguenther@suse.de>
2620
2621 PR tree-optimization/71055
2622 * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
2623 sth with precision not equal to access size verify we don't chop
2624 off bits.
2625
2626 2016-05-11 Richard Biener <rguenther@suse.de>
2627
2628 PR debug/71057
2629 * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
2630 (dwarf2out_finish): Move retry_incomplete_types call ...
2631 (dwarf2out_early_finish): ... here.
2632
2633 2016-05-11 Richard Biener <rguenther@suse.de>
2634
2635 PR middle-end/71002
2636 * alias.c (reference_alias_ptr_type): Preserve alias-set zero
2637 if the langhook insists on it.
2638 * fold-const.c (make_bit_field_ref): Add arg for the original
2639 reference and preserve its alias-set.
2640 (decode_field_reference): Take exp by reference and adjust it
2641 to the original memory reference.
2642 (optimize_bit_field_compare): Adjust callers.
2643 (fold_truth_andor_1): Likewise.
2644 * gimplify.c (gimplify_expr): Adjust in-SSA form test.
2645
2646 2016-05-11 Ilya Enkovich <ilya.enkovich@intel.com>
2647
2648 PR middle-end/70807
2649 * cfgrtl.h (delete_insn_and_edges): Now return bool.
2650 * cfgrtl.c (delete_insn_and_edges): Likewise.
2651 * config/i386/i386.c (convert_scalars_to_vector): Remove
2652 redundant code.
2653 * cse.c (cse_insn): Compute cse_cfg_altered.
2654 (delete_trivially_dead_insns): Likewise.
2655 (cse_cc_succs): Likewise.
2656 (rest_of_handle_cse): Free dominance info if required.
2657 (rest_of_handle_cse2): Likewise.
2658 (rest_of_handle_cse_after_global_opts): Likewise.
2659
2660 2016-05-11 Alan Modra <amodra@gmail.com>
2661
2662 * config/rs6000/rs6000.c (is_complex_IBM_long_double,
2663 abi_v4_pass_in_fpr): New functions.
2664 (rs6000_function_arg_boundary): Exclude complex IBM long double
2665 from 64-bit alignment when ABI_V4.
2666 (rs6000_function_arg, rs6000_function_arg_advance_1,
2667 rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
2668
2669 2016-05-10 Segher Boessenkool <segher@kernel.crashing.org>
2670
2671 PR rtl-optimization/71028
2672 * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
2673 jump with just a return in the fallthrough block if the branch
2674 block contains just a return as well.
2675
2676 2016-05-10 Marc Glisse <marc.glisse@inria.fr>
2677
2678 * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
2679 * match.pd ((X & Y) ^ Y): ... this.
2680 ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
2681 | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
2682
2683 2016-05-10 David Malcolm <dmalcolm@redhat.com>
2684
2685 * read-md.c (require_char_ws): New function.
2686 (read_string): Simplify using require_char_ws.
2687 (handle_constants): Likewise.
2688 (handle_enum): Likewise.
2689 (handle_file): Likewise.
2690 * read-md.h (require_char_ws): New declaration.
2691 * read-rtl.c (read_conditions): Simplify using require_char_ws.
2692 (read_mapping): Likewise.
2693 (read_rtx_code): Likewise.
2694 (read_nested_rtx): Likewise.
2695
2696 2016-05-10 James Norris <jnorris@codesourcery.com>
2697
2698 * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
2699 if offloading is enabled and -fopenacc or -fopenmp is specified.
2700 (CRTOFFLOADEND): Likewise.
2701 (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
2702 (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
2703
2704 2016-05-10 Uros Bizjak <ubizjak@gmail.com>
2705
2706 * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
2707 gotoff_operand code paths. Use copy_to_suggested_regs and
2708 expand_simple_binop where appropriate. Cleanup.
2709
2710 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
2711
2712 PR target/70799
2713 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
2714 integer constants.
2715 (dimode_scalar_chain::vector_const_cost): New.
2716 (dimode_scalar_chain::compute_convert_gain): Handle constants.
2717 (dimode_scalar_chain::convert_op): Likewise.
2718 (dimode_scalar_chain::convert_insn): Likewise.
2719
2720 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
2721
2722 * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
2723 unary operation, not a binary one.
2724
2725 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
2726
2727 PR middle-end/70877
2728 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
2729 calls with type casted fndecl.
2730
2731 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
2732
2733 PR tree-optimization/70786
2734 * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
2735 * calls.c (initialize_argument_information): Bind bounds
2736 with corresponding args passed by reference.
2737
2738 2016-05-10 Jakub Jelinek <jakub@redhat.com>
2739
2740 PR target/70927
2741 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
2742 *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
2743 use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
2744 accordingly.
2745
2746 2016-05-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2747
2748 PR target/70963
2749 * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
2750 code for a zero scale factor.
2751 (vsx_xvcvdpuxds_scale): Likewise.
2752
2753 2016-05-10 David Malcolm <dmalcolm@redhat.com>
2754
2755 * diagnostic-show-locus.c (layout::layout): Call show_ruler
2756 if show_ruler_p was set on the context.
2757 (layout::show_ruler): New method.
2758 * diagnostic.h (struct diagnostic_context): Add field
2759 "show_ruler_p".
2760
2761 2016-05-10 Richard Biener <rguenther@suse.de>
2762
2763 PR tree-optimization/71039
2764 * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
2765 (chk_uses): New function.
2766 (propagate_with_phi): Verify we can safely replicate the lhs of an
2767 aggregate assignment on all incoming edges.
2768
2769 2016-05-10 Oleg Endo <olegendo@gcc.gnu.org>
2770
2771 * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
2772 Forward declare.
2773 (rx_atomic_sequence): New class.
2774 * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
2775 (is_interrupt_func, is_fast_interrupt_func): Make non-static and
2776 non-inline.
2777 (rx_atomic_sequence::rx_atomic_sequence,
2778 rx_atomic_sequence::~rx_atomic_sequence): New functions.
2779 * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
2780 CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
2781 CTRLREG_INTB): New constants.
2782 (FETCHOP): New code iterator.
2783 (fethcop_name, fetchop_name2): New iterator code attributes.
2784 (QIHI): New mode iterator.
2785 (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
2786 atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
2787 atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
2788
2789 2016-05-10 Martin Liska <mliska@suse.cz>
2790
2791 * tree-inline.c (remap_dependence_clique): Do not remap
2792 debugging statements.
2793
2794 2016-05-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2795
2796 * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
2797 ("*fixuns_truncdfdi2_z13")
2798 ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
2799 ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
2800 ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
2801
2802 2016-05-10 Richard Biener <rguenther@suse.de>
2803
2804 PR tree-optimization/70497
2805 PR tree-optimization/28367
2806 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
2807 split out from ...
2808 (visit_reference_op_load): ... here.
2809 (vn_reference_lookup_3): Use it to handle subreg-like accesses
2810 with simplified BIT_FIELD_REFs.
2811 * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
2812 * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
2813 correctly.
2814
2815 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
2816
2817 * dwarf2out.c (add_abstract_origin_attribute): Adjust
2818 documentation comment. For BLOCK nodes, add a
2819 DW_AT_abstract_origin attribute that points to the DIE generated
2820 for the origin BLOCK.
2821 (gen_lexical_block_die): Call add_abstract_origin_attribute for
2822 blocks from inlined functions.
2823
2824 2016-05-10 Alan Modra <amodra@gmail.com>
2825
2826 PR target/70947
2827 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
2828 regrename modifying insns saving lr before __morestack call.
2829 * config/rs6000/rs6000.md (split_stack_return): Similarly for
2830 insns restoring lr after __morestack call.
2831
2832 2016-05-09 Jakub Jelinek <jakub@redhat.com>
2833
2834 * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
2835 lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
2836 expanders.
2837 * config/i386/sse.md (vec_interleave_high<mode>,
2838 vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
2839 <avx512>_vpermt2var<mode>3_maskz): Likewise.
2840
2841 2016-05-04 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
2842
2843 * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
2844 function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
2845 parallel reassociation for power8 and forward.
2846
2847 2016-05-09 Uros Bizjak <ubizjak@gmail.com>
2848
2849 * config/i386/i386.md (absneg splitters with general regs): Use
2850 general_reg_operand predicate.
2851 (btsq peephole2): Use x86_64_immediate_operand to check if new
2852 value is suitable for immediate operand. Generate emitted insn
2853 using RTL expressions.
2854 (btcq peephole2): Ditto.
2855 (btrq peephole2): Ditto. Generate correct immediate operand
2856 for AND masking.
2857
2858 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
2859
2860 * cfgexpand.c (expand_debug_expr): Fix address offset for negative
2861 bitpos.
2862
2863 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
2864
2865 * tree-affine.c (wide_int_constant_multiple_p): Add missing
2866 pointer dereference.
2867
2868 2016-05-09 Richard Biener <rguenther@suse.de>
2869
2870 PR tree-optimization/70985
2871 * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
2872 op0 isn't a gimple register.
2873
2874 2016-05-09 Prachi Godbole <prachi.godbole@imgtec.com>
2875
2876 * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
2877 (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
2878 (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
2879 (i6400_fpu_mult): New cpu units.
2880 (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
2881 (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
2882 (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
2883 (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
2884 (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
2885 (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
2886 (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
2887 (i6400_msa_long_float4, i6400_msa_long_float5)
2888 (i6400_msa_long_float8, i6400_msa_fdiv_df)
2889 (i6400_msa_fdiv_sf): New reservations.
2890 * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
2891 (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
2892 (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
2893 (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
2894 (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
2895 (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
2896 (msa_short_cmp, msa_short_float2, msa_short_logic3)
2897 (msa_short_store4, msa_long_load, msa_short_store)
2898 (msa_long_logic, msa_long_float2, msa_long_float4)
2899 (msa_long_float5, msa_long_float8, msa_long_mult)
2900 (msa_long_fdiv, msa_long_div): New reservations.
2901
2902 2016-05-09 Robert Suchanek <robert.suchanek@imgtec.com>
2903 Sameera Deshpande <sameera.deshpande@imgtec.com>
2904 Matthew Fortune <matthew.fortune@imgtec.com>
2905 Graham Stott <graham.stott@imgtec.com>
2906 Chao-ying Fu <chao-ying.fu@imgtec.com>
2907
2908 * config.gcc: Add MSA header file for mips*-*-* target.
2909 * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
2910 (Ubv8i, Urv8): New constraints.
2911 * config/mips/mips-ftypes.def: Add function types for MSA
2912 builtins.
2913 * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
2914 (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
2915 * config/mips/mips-msa.md: New file.
2916 * config/mips/mips-protos.h
2917 (mips_split_128bit_const_insns): New prototype.
2918 (mips_msa_idiv_insns): Likewise.
2919 (mips_split_128bit_move): Likewise.
2920 (mips_split_128bit_move_p): Likewise.
2921 (mips_split_msa_copy_d): Likewise.
2922 (mips_split_msa_insert_d): Likewise.
2923 (mips_split_msa_fill_d): Likewise.
2924 (mips_expand_msa_branch): Likewise.
2925 (mips_const_vector_same_val_p): Likewise.
2926 (mips_const_vector_same_bytes_p): Likewise.
2927 (mips_const_vector_same_int_p): Likewise.
2928 (mips_const_vector_shuffle_set_p): Likewise.
2929 (mips_const_vector_bitimm_set_p): Likewise.
2930 (mips_const_vector_bitimm_clr_p): Likewise.
2931 (mips_msa_vec_parallel_const_half): Likewise.
2932 (mips_msa_output_division): Likewise.
2933 (mips_ldst_scaled_shift): Likewise.
2934 (mips_expand_vec_cond_expr): Likewise.
2935 * config/mips/mips.c (enum mips_builtin_type): Add
2936 MIPS_BUILTIN_MSA_TEST_BRANCH.
2937 (mips_gen_const_int_vector_shuffle): New prototype.
2938 (mips_const_vector_bitimm_set_p): New function.
2939 (mips_const_vector_bitimm_clr_p): Likewise.
2940 (mips_const_vector_same_val_p): Likewise.
2941 (mips_const_vector_same_bytes_p): Likewise.
2942 (mips_const_vector_same_int_p): Likewise.
2943 (mips_const_vector_shuffle_set_p): Likewise.
2944 (mips_symbol_insns): Forbid loading symbols via immediate for
2945 MSA.
2946 (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
2947 stores.
2948 (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
2949 MSA.
2950 (mips_lx_address_p): Add support load indexed address for MSA.
2951 (mips_address_insns): Add calculation of instructions needed for
2952 stores and loads for MSA.
2953 (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR. Handle
2954 CONST_VECTOR for MSA and let it fall through.
2955 (mips_ldst_scaled_shift): New function.
2956 (mips_subword_at_byte): Likewise.
2957 (mips_msa_idiv_insns): Likewise.
2958 (mips_legitimize_move): Validate MSA moves.
2959 (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases. Add
2960 calculation of costs for MSA division.
2961 (mips_split_move_p): Check if MSA moves need splitting.
2962 (mips_split_move): Split MSA moves if necessary.
2963 (mips_split_128bit_move_p): New function.
2964 (mips_split_128bit_move): Likewise.
2965 (mips_split_msa_copy_d): Likewise.
2966 (mips_split_msa_insert_d): Likewise.
2967 (mips_split_msa_fill_d): Likewise.
2968 (mips_output_move): Handle MSA moves.
2969 (mips_expand_msa_branch): New function.
2970 (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
2971 Reinstate 'y' modifier.
2972 (mips_file_start): Add MSA .gnu_attribute.
2973 (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
2974 FPRs.
2975 (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
2976 (mips_class_max_nregs): Add register size for MSA supported mode.
2977 (mips_cannot_change_mode_class): Allow conversion between MSA
2978 vector modes and TImode.
2979 (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
2980 instruction.
2981 (mips_secondary_reload_class): Force MSA loads/stores via memory.
2982 (mips_preferred_simd_mode): Add preffered modes for MSA.
2983 (mips_vector_mode_supported_p): Add MSA supported modes.
2984 (mips_autovectorize_vector_sizes): New function.
2985 (mips_msa_output_division): Likewise.
2986 (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
2987 (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
2988 (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
2989 (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
2990 (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
2991 (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
2992 (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
2993 (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
2994 (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
2995 (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
2996 (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
2997 (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
2998 (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
2999 (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
3000 (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
3001 (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
3002 (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
3003 (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
3004 (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
3005 (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
3006 (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
3007 (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
3008 (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
3009 (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
3010 (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
3011 (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
3012 (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
3013 (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
3014 (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
3015 (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
3016 (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
3017 (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
3018 (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
3019 (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
3020 (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
3021 (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
3022 (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
3023 (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
3024 (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
3025 (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
3026 (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
3027 (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
3028 (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
3029 (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
3030 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
3031 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
3032 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
3033 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
3034 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
3035 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
3036 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
3037 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
3038 (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
3039 (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
3040 (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
3041 (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
3042 (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
3043 (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
3044 (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
3045 (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
3046 (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
3047 (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
3048 (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
3049 (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
3050 (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
3051 (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
3052 (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
3053 (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
3054 (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
3055 (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
3056 (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
3057 (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
3058 (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
3059 (CODE_FOR_msa_ldi_d): New code_aliasing macros.
3060 (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
3061 slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
3062 srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
3063 srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
3064 srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
3065 srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
3066 bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
3067 bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
3068 bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
3069 binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
3070 binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
3071 binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
3072 addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
3073 subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
3074 max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
3075 max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
3076 maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
3077 mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
3078 mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
3079 min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
3080 ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
3081 clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
3082 clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
3083 clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
3084 clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
3085 clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
3086 st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
3087 sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
3088 adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
3089 adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
3090 ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
3091 aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
3092 aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
3093 subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
3094 subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
3095 subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
3096 asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
3097 maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
3098 msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
3099 div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
3100 hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
3101 hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
3102 mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
3103 dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
3104 dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
3105 dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
3106 sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
3107 splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
3108 pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
3109 ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
3110 ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
3111 ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
3112 ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
3113 bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
3114 fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
3115 pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
3116 nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
3117 copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
3118 insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
3119 bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
3120 fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
3121 fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
3122 fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
3123 fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
3124 fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
3125 fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
3126 fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
3127 fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
3128 fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
3129 fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
3130 mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
3131 msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
3132 fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
3133 flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
3134 ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
3135 ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
3136 ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
3137 move_v builtins.
3138 (mips_get_builtin_decl_index): New array.
3139 (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
3140 (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
3141 (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
3142 (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
3143 (mips_init_builtins): Initialize mips_get_builtin_decl_index
3144 array.
3145 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
3146 hook.
3147 (mips_expand_builtin_insn): Prepare operands for
3148 CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
3149 CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
3150 CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
3151 CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
3152 CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
3153 CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
3154 CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
3155 CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
3156 CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
3157 CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
3158 CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
3159 CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
3160 CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
3161 CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
3162 CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
3163 CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
3164 CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
3165 CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
3166 CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
3167 CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
3168 CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
3169 CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
3170 CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
3171 CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
3172 CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
3173 CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
3174 CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
3175 CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
3176 CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
3177 CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
3178 CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
3179 CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
3180 CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
3181 CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
3182 CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
3183 CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
3184 CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
3185 CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
3186 CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
3187 CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
3188 CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
3189 (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
3190 (mips_set_compression_mode): Disallow MSA with MIPS16 code.
3191 (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
3192 These are set implicitly and an error is reported if overridden.
3193 (mips_expand_builtin_msa_test_branch): New function.
3194 (mips_expand_msa_shuffle): Likewise.
3195 (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
3196 (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
3197 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
3198 (mips_expand_vec_unpack): Add support for MSA.
3199 (mips_expand_vector_init): Likewise.
3200 (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
3201 instead of const0_rtx.
3202 (mips_msa_vec_parallel_const_half): New function.
3203 (mips_gen_const_int_vector): Likewise.
3204 (mips_gen_const_int_vector_shuffle): Likewise.
3205 (mips_expand_msa_cmp): Likewise.
3206 (mips_expand_vec_cond_expr): Likewise.
3207 * config/mips/mips.h
3208 (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
3209 (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
3210 specified.
3211 (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
3212 (ISA_HAS_MSA): New macro.
3213 (UNITS_PER_MSA_REG): Likewise.
3214 (BITS_PER_MSA_REG): Likewise.
3215 (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
3216 (MSA_REG_FIRST): New macro.
3217 (MSA_REG_LAST): Likewise.
3218 (MSA_REG_NUM): Likewise.
3219 (MSA_REG_P): Likewise.
3220 (MSA_REG_RTX_P): Likewise.
3221 (MSA_SUPPORTED_MODE_P): Likewise.
3222 (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
3223 (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
3224 * config/mips/mips.md: Include mips-msa.md.
3225 (alu_type): Add simd_add.
3226 (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
3227 (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
3228 simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
3229 simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
3230 simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
3231 simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
3232 simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
3233 simd_move, simd_load, simd_store. Choose "multi" for moves
3234 for "qword_mode".
3235 (qword_mode): New attribute.
3236 (insn_count): Add instruction count for quad moves.
3237 Increase the count for MIPS SIMD division.
3238 (UNITMODE): Add UNITMODEs for vector types.
3239 (addsub): New code iterator.
3240 * config/mips/mips.opt (mmsa): New option.
3241 * config/mips/msa.h: New file.
3242 * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
3243 specified.
3244 * config/mips/mti-linux.h: Likewise.
3245 * config/mips/predicates.md
3246 (const_msa_branch_operand): New constraint.
3247 (const_uimm3_operand): Likewise.
3248 (const_uimm4_operand): Likewise.
3249 (const_uimm5_operand): Likewise.
3250 (const_uimm8_operand): Likewise.
3251 (const_imm5_operand): Likewise.
3252 (aq10b_operand): Likewise.
3253 (aq10h_operand): Likewise.
3254 (aq10w_operand): Likewise.
3255 (aq10d_operand): Likewise.
3256 (const_m1_operand): Likewise.
3257 (reg_or_m1_operand): Likewise.
3258 (const_exp_2_operand): Likewise.
3259 (const_exp_4_operand): Likewise.
3260 (const_exp_8_operand): Likewise.
3261 (const_exp_16_operand): Likewise.
3262 (const_vector_same_val_operand): Likewise.
3263 (const_vector_same_simm5_operand): Likewise.
3264 (const_vector_same_uimm5_operand): Likewise.
3265 (const_vector_same_uimm6_operand): Likewise.
3266 (const_vector_same_uimm8_operand): Likewise.
3267 (par_const_vector_shf_set_operand): Likewise.
3268 (reg_or_vector_same_val_operand): Likewise.
3269 (reg_or_vector_same_simm5_operand): Likewise.
3270 (reg_or_vector_same_uimm6_operand): Likewise.
3271 * doc/extend.texi (MIPS SIMD Architecture Functions): New
3272 section.
3273 * doc/invoke.texi (-mmsa): Document new option.
3274
3275 2016-05-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3276
3277 * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
3278 * configure: Regenerate.
3279 * config.in: Regenerate.
3280 * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
3281 on -fvtable-verify.
3282 * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
3283 (ENDFILE_VTV_SPEC): Define.
3284
3285 2016-05-09 Kaushik Phatak <kaushik.phatak@kpit.com>
3286
3287 * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
3288 registers in all interrupt handlers if necessary.
3289 (rl78_option_override): Add warning.
3290 (MUST_SAVE_MDUC_REGISTERS): New macro.
3291 (rl78_expand_epilogue): Restore the MDUC registers if necessary.
3292 * config/rl78/rl78.c (check_mduc_usage): New function.
3293 (mduc_regs): New structure to hold MDUC register data.
3294 * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
3295 (mulsi3_g13): Add is_g13_muldiv_insn attribute.
3296 (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
3297 (mulhi3_g13): Add is_g13_muldiv_insn attribute.
3298 * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
3299 * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
3300
3301 2016-05-09 Bin Cheng <bin.cheng@arm.com>
3302
3303 * tree-if-conv.c (tree-ssa-loop.h): Include header file.
3304 (tree-ssa-loop-niter.h): Ditto.
3305 (idx_within_array_bound, ref_within_array_bound): New functions.
3306 (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
3307 Factor out check on writable base object to ...
3308 (base_object_writable): ... here.
3309
3310 2016-05-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3311
3312 * config/arm/arm.md (probe_stack): Add modes to set source
3313 and destination.
3314
3315 2016-05-09 Bernd Schmidt <bschmidt@redhat.com>
3316
3317 * regrename.c (base_reg_class_for_rename): New static function.
3318 (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
3319
3320 2016-05-08 Jan Hubicka <hubicka@ucw.cz>
3321
3322 * cgraph.c (thunk_adjust): Export.
3323 * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
3324 * cgraphunit.c (thunk_adjust): Export.
3325 (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
3326 thunks.
3327 * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
3328 inlinable.
3329 * tree-inline.c (expand_call_inline): Expand thunks inline.
3330
3331 2016-05-08 Uros Bizjak <ubizjak@gmail.com>
3332
3333 PR target/70998
3334 * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
3335 (*sse2_vd_cvtss2sd): Ditto.
3336 * config/i386/i386.md
3337 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
3338 Generate *sse2_vd_cvtsd2ss pattern.
3339 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
3340 Generate *sse2_vd_cvtss2sd pattern.
3341
3342 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
3343
3344 * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
3345 * config/sh/sh.c (get_sh_arg_class): ... this new function. Update its
3346 users.
3347
3348 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
3349
3350 * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
3351 * config/sh/sh.c: Define and declare variables on first use throughout
3352 the file.
3353 (current_function_interrupt): Change to bool type.
3354 (frame_insn): Rename to emit_frame_insn and update users.
3355 (push_regs): Use bool for 'interrupt_handler' argument.
3356 (save_schedule_s): Remove.
3357 (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
3358 (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
3359 targetm.asm_out.unaligned_op.di.
3360 (gen_far_branch): Remove redundant forward declaration.
3361 (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
3362 MAX_TEMPS, save_schedule_ssave_schedule): Remove.
3363 (sh_set_return_address, sh_function_ok_for_sibcall,
3364 scavenge_reg): Update comments.
3365 (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
3366 (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
3367 (sh_attr_renesas_p): Remove unnecessary parentheses.
3368 (branch_dest): Simplify.
3369 * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
3370 Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
3371 (CUMULATIVE_ARGS): Change macro to typedef.
3372 (current_function_interrupt): Change to bool type.
3373 (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
3374 Surround with __cplusplus ifdef.
3375 (sh_compare_op0, sh_compare_op1): Remove.
3376 (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
3377
3378 2016-05-07 Jim Wilson <jim.wilson@linaro.org>
3379
3380 * config/arm/arm.md: (arch): Add neon.
3381 (arch_enabled): Return yes for arch neon when TARGET_NEON.
3382 * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3. Add
3383 neon_move as type for alt 3. Add arch attr enabling alt 3 for neon.
3384 Emit vmov.i64 for alt 3. Renumber alternatives 3 to 8. Adjust
3385 attributes for alt renumbering. Mark alt 3 as non-predicable.
3386 (thumb2_movdf_vfp): Likewise.
3387
3388 2016-05-07 Uros Bizjak <ubizjak@gmail.com>
3389
3390 * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
3391 to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
3392 (*andqi_1): Add preferred_for_speed attribute to disparage
3393 alternative 2 for TARGET_PARTIAL_REG_STALL targets.
3394 (*<code>qi_1): Ditto.
3395 (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
3396 alternative 1 for TARGET_PARTIAL_REG_STALL targets.
3397 (*ashlqi3_1): Ditto.
3398 (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
3399 Add preferred_for_size attribute to disparage alternative 0 and
3400 preferred_for_speed attribute to disparage alternative 1 for
3401 TARGET_PARTIAL_REG_STALL targets.
3402
3403 2016-05-07 Tom de Vries <tom@codesourcery.com>
3404
3405 PR tree-optimization/70956
3406 * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
3407 def.
3408
3409 2016-05-07 Oleg Endo <olegendo@gcc.gnu.org>
3410
3411 * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
3412 * config/sh/sh.c (sh_cbranch_distance): Implement it.
3413 * config/sh/sh.md (branch_zero): Remove define_attr.
3414 (define_delay): Disable delay slot if branch distance is one insn.
3415
3416 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
3417
3418 * config/i386/i386.md (LEAMODE): New mode attribute.
3419 (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
3420 (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
3421 and LEAMODE mode attribute. Use VOIDmode const_0_to_3_operand as
3422 operand 2 predicate.
3423 (*lea<mode>_general_2): Use VOIDmode for const248_operand.
3424 (*lea<mode>_general_3): Ditto.
3425 (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
3426
3427 2016-05-06 Jakub Jelinek <jakub@redhat.com>
3428
3429 * genmddump.c (main): Convert argv from char ** to const char **.
3430
3431 2016-05-06 David Malcolm <dmalcolm@redhat.com>
3432
3433 * coretypes.h (OVERRIDE): New macro.
3434 (FINAL): New macro.
3435
3436 2016-05-06 Eric Botcazou <ebotcazou@adacore.com>
3437
3438 * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
3439 allow coalescing if the types are compatible.
3440
3441 2016-05-06 David Malcolm <dmalcolm@redhat.com>
3442
3443 * pass_manager.h (pass_manager::register_pass_name): New method.
3444 (pass_manager::get_pass_by_name): New method.
3445 (pass_manager::create_pass_tab): New method.
3446 (pass_manager::m_name_to_pass_map): New field.
3447 * passes.c (name_to_pass_map): Delete global in favor of field
3448 "m_name_to_pass_map" of pass_manager.
3449 (register_pass_name): Rename from a function to...
3450 (pass_manager::register_pass_name): ...this method, updating
3451 for renaming of global "name_to_pass_map" to field
3452 "m_name_to_pass_map".
3453 (create_pass_tab): Rename from a function to...
3454 (pass_manager::create_pass_tab): ...this method, updating
3455 for renaming of global "name_to_pass_map" to field.
3456 (get_pass_by_name): Rename from a function to...
3457 (pass_manager::get_pass_by_name): ...this method.
3458 (enable_disable_pass): Convert use of get_pass_by_name to
3459 a method call, locating the pass_manager singleton.
3460
3461 2016-05-06 David Malcolm <dmalcolm@redhat.com>
3462
3463 * genattr-common.c (main): Convert argv from char ** to const char **.
3464 * genattr.c (main): Likewise.
3465 * genattrtab.c (main): Likewise.
3466 * genautomata.c (initiate_automaton_gen): Likewise.
3467 (main): Likewise.
3468 * gencodes.c (main): Likewise.
3469 * genconditions.c (main): Likewise.
3470 * genconfig.c (main): Likewise.
3471 * genconstants.c (main): Likewise.
3472 * genemit.c (main): Likewise.
3473 * genenums.c (main): Likewise.
3474 * genextract.c (main): Likewise.
3475 * genflags.c (main): Likewise.
3476 * genmddeps.c (main): Likewise.
3477 * genopinit.c (main): Likewise.
3478 * genoutput.c (main): Likewise.
3479 * genpeep.c (main): Likewise.
3480 * genpreds.c (main): Likewise.
3481 * genrecog.c (main): Likewise.
3482 * gensupport.c (init_rtx_reader_args_cb): Likewise.
3483 (init_rtx_reader_args): Likewise.
3484 * gensupport.h (init_rtx_reader_args_cb): Likewise.
3485 (init_rtx_reader_args): Likewise.
3486 * gentarget-def.c (main): Likewise.
3487 * read-md.c (read_md_files): Likewise.
3488 * read-md.h (read_md_files): Likewise.
3489
3490 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
3491
3492 * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
3493 instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
3494 * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
3495 Remove unused predicate.
3496 (register_and_not_fp_reg_operand): Ditto.
3497
3498 2016-05-06 Martin Liska <mliska@suse.cz>
3499
3500 * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
3501 instead of vec as the vector is local to the function.
3502
3503 2016-05-06 Jakub Jelinek <jakub@redhat.com>
3504
3505 * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
3506 avx512bw alternative.
3507
3508 * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
3509 before the ashr<mode>3 pattern.
3510
3511 * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
3512 v instead of x in vex or maybe_vex alternatives, use
3513 maybe_evex instead of vex in prefix.
3514
3515 * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
3516 *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
3517 vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
3518 in vex or maybe_vex alternatives, use maybe_evex instead of vex
3519 in prefix.
3520
3521 * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
3522 v instead of x in vex or maybe_vex alternatives, use
3523 maybe_evex instead of vex in prefix.
3524
3525 * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
3526 sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
3527 sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
3528 sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
3529 alternatives, use maybe_evex instead of vex in prefix.
3530
3531 * config/i386/sse.md (vec_interleave_lowv4sf,
3532 *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
3533 v instead of x in vex or maybe_vex alternatives, use
3534 maybe_evex instead of vex in prefix.
3535
3536 * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
3537 v instead of x in vex or maybe_vex alternatives, use
3538 maybe_evex instead of vex in prefix.
3539
3540 * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
3541 v constraint instead of x.
3542
3543 2016-05-06 Nathan Sidwell <nathan@codesourcery.com>
3544
3545 * gimple.c (gimple_call_same_target_p): Unique functions are eq.
3546 * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
3547 equality first.
3548
3549 2016-05-06 Richard Biener <rguenther@suse.de>
3550
3551 PR tree-optimization/70948
3552 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
3553 Properly clobber all fields of va_list for __builtin_va_start.
3554
3555 2016-05-06 Yuri Rumyantsev <ysrumyan@gmail.com>
3556
3557 PR debug/70935
3558 * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
3559 loop latch destination.
3560
3561 2016-05-06 Martin Liska <mliska@suse.cz>
3562
3563 * tree-ssa-uninit.c: Apply manual changes
3564 to the GNU coding style.
3565 (prune_uninit_phi_opnds): Rename from
3566 prune_uninit_phi_opnds_in_unrealizable_paths.
3567
3568 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
3569
3570 * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
3571 mspace): Remove deprecated options.
3572 * doc/invoke.texi (SH options): Remove -mspace.
3573
3574 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
3575
3576 * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
3577
3578 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
3579
3580 * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
3581 corresponding combine split pattern.
3582
3583 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
3584
3585 PR target/58219
3586 * config/sh/predicates.md (long_displacement_mem_operand): New.
3587 * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
3588 Add movi20, movi20s alternatives. Adjust length attribute for
3589 alternatives.
3590 (movsi_ie): Allow for any FPU. Adjust length attribute for
3591 alternatives.
3592 (movsi_i_lowpart): Add movi20, movi20s alternatives. Adjust length
3593 attribute for alternatives.
3594 (*mov<mode>): Use long_displacement_mem_operand for length attribute.
3595 (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
3596 length attribute for alternatives.
3597
3598 2016-05-06 Richard Biener <rguenther@suse.de>
3599
3600 PR tree-optimization/70960
3601 * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
3602
3603 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
3604
3605 PR target/52933
3606 * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
3607 * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
3608
3609 2016-05-06 Marek Polacek <polacek@redhat.com>
3610
3611 PR sanitizer/70875
3612 * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
3613
3614 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
3615
3616 PR target/54089
3617 * config/sh/sh.md (*rotcr): Add another variant.
3618
3619 2016-05-06 Richard Biener <rguenther@suse.de>
3620
3621 PR middle-end/70931
3622 * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
3623
3624 2016-05-06 Richard Biener <rguenther@suse.de>
3625
3626 PR middle-end/70941
3627 * fold-const.c (split_tree): Always convert to the original type
3628 before negating.
3629
3630 2016-05-06 Richard Biener <rguenther@suse.de>
3631
3632 * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
3633 (fwprop_addr): Likewise.
3634
3635 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
3636
3637 PR target/70873
3638 * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
3639 New prototype.
3640 * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
3641 * config/i386/i386.md (push mem splitter): Use find_constant_src in
3642 the splitter condition.
3643 (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
3644 the splitter condition.
3645 (FP float_extend load splitter): Ditto.
3646
3647 2016-05-05 Uros Bizjak <ubizjak@gmail.com>
3648
3649 * config/i386/i386.md (peehole2 patterns): Change true_regnum
3650 to REGNO in all peephole2 patterns.
3651 (post-reload splitters): Change true_regnum to REGNO in
3652 post-reload splitters.
3653 (zero_extend splitters): Use general_reg_operand and
3654 nonimmediate_gr_operand predicates.
3655
3656 2016-05-05 Jakub Jelinek <jakub@redhat.com>
3657
3658 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
3659 v constraint instead of x.
3660
3661 2016-05-05 Alan Modra <amodra@gmail.com>
3662
3663 PR target/68662
3664 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
3665 set OPTION_MASK_RELOCATABLE when flag_pic == 2. Set
3666 TARGET_NO_FP_IN_TOC for -mrelocatable.
3667 (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
3668 TARGET_RELOCATABLE test.
3669 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
3670 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
3671 * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
3672 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
3673 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
3674 * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
3675 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
3676 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
3677 * config/rs6000/predicates.md (easy_fp_constant): Likewise.
3678 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
3679 Likewise.
3680 (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
3681 (rs6000_stack_info): Likewise.
3682 (rs6000_elf_asm_out_constructor): Likewise.
3683 (rs6000_elf_asm_out_destructor): Likewise.
3684 (rs6000_elf_declare_function_name): Likewise.
3685 * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
3686 * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
3687 Don't define.
3688
3689 2016-05-05 Alan Modra <amodra@gmail.com>
3690
3691 * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
3692
3693 2016-05-05 Alan Modra <amodra@gmail.com>
3694
3695 * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
3696 out-of-line gpr restore for one or two regs if that would add
3697 a save of lr.
3698
3699 2016-05-04 Uros Bizjak <ubizjak@gmail.com>
3700
3701 PR target/70873
3702 * config/i386/i386.md
3703 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
3704 Change to post-epilogue_completed late splitter. Use sse_reg_operand
3705 as operand 0 predicate.
3706 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
3707 Ditto.
3708 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
3709 Ditto. Emit the pattern using RTX.
3710
3711 (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
3712 Use sse_reg_opreand as operand 0 predicate. Do not use true_regnum in
3713 the post-reload splitter. Use lowpart_subreg instead of gen_rtx_REG.
3714 (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
3715 Ditto.
3716 (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
3717 sse_reg_operand as operand 0 predicate.
3718
3719 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
3720 Use sse_reg_opreand as operand 0 predicate. Use lowpart_subreg
3721 instead of gen_rtx_REG.
3722 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
3723 Ditto.
3724
3725 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
3726
3727 * function.c (emit_use_return_register_into_block): Delete.
3728 (gen_return_pattern): Delete.
3729 (emit_return_into_block): Delete.
3730 (active_insn_between): Delete.
3731 (convert_jumps_to_returns): Delete.
3732 (emit_return_for_exit): Delete.
3733 (thread_prologue_and_epilogue_insns): Delete all code dealing with
3734 simple_return for shrink-wrapped blocks.
3735 * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
3736 end of blocks that need one.
3737 (get_unconverted_simple_return): Delete.
3738 (convert_to_simple_return): Delete.
3739 * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
3740 (convert_to_simple_return): Ditto.
3741
3742 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
3743
3744 * cfgcleanup.c (bb_is_just_return): New function.
3745 (try_optimize_cfg): Simplify jumps to return, branches to return,
3746 and branches around return.
3747
3748 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
3749
3750 * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
3751 branch to a return.
3752
3753 2016-05-04 Jakub Jelinek <jakub@redhat.com>
3754
3755 PR c++/70906
3756 PR c++/70933
3757 * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
3758 * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
3759 assert flags & OEP_HASH_CHECK, instead of asserting it
3760 never happens. Handle TARGET_EXPR.
3761 * fold-const.c (operand_equal_p): For hash verification,
3762 or in OEP_HASH_CHECK into flags.
3763
3764 2016-05-04 Eric Botcazou <ebotcazou@adacore.com>
3765
3766 * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
3767 comment.
3768 (compute_samebase_partition_bases): Fix typo.
3769
3770 2016-05-04 Jakub Jelinek <jakub@redhat.com>
3771
3772 * config/i386/sse.md (vec_interleave_highv8sf,
3773 vec_interleave_lowv8sf, vec_interleave_highv4df,
3774 vec_interleave_lowv4df): Remove constraints from expanders.
3775
3776 * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
3777
3778 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
3779
3780 * tree-inline.c (expand_call_inline): Fix path dealing with
3781 making lhs of call statement undefined.
3782
3783 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
3784
3785 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
3786 Check availability on NODE, too.
3787 * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
3788 (cgraph_node::call_for_symbol_and_aliases): Likewise.
3789 (varpool_node::call_for_symbol_and_aliase): Likewise.
3790 * ipa-pure-const.c (add_new_function): Analyze all bodies.
3791 (propagate_pure_const): Propagate across interposable functions, too.
3792 (skip_function_for_local_pure_const): Do not skip interposable bodies
3793 with aliases.
3794 (pass_local_pure_const::execute): Update.
3795
3796 2016-05-04 Marek Polacek <polacek@redhat.com>
3797
3798 * doc/invoke.texi: Document -Wdangling-else.
3799
3800 2016-05-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
3801
3802 * config.gcc: Error out when conflicting multilib is detected. Do not
3803 loop over multilibs since no combination is legal.
3804
3805 2016-05-04 Alan Modra <amodra@gmail.com>
3806
3807 * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
3808 * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
3809 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
3810 Align .toc.
3811
3812 2016-05-04 Matthew Fortune <matthew.fortune@imgtec.com>
3813
3814 * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
3815 Clean up p5600 comments.
3816
3817 2016-05-04 Richard Biener <rguenther@suse.de>
3818
3819 * match.pd: Add BIT_FIELD_REF canonicalizations and vector
3820 constructor simplifications.
3821 * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
3822
3823 2016-05-04 Oleg Endo <olegendo@gcc.gnu.org>
3824
3825 * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
3826 * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
3827 result.set_rtx is null instead of aborting.
3828 * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
3829 Always enable.
3830 (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
3831 * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
3832 *mov<mode>_store_postinc): New patterns.
3833
3834 2016-05-04 Marc Glisse <marc.glisse@inria.fr>
3835
3836 * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR. Mark
3837 as commutative. Check both conversions are NOP.
3838 ((A & B) OP (C & B)): Remove.
3839
3840 2016-05-04 Alan Modra <amodra@gmail.com>
3841
3842 * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
3843
3844 2016-05-04 Alan Modra <amodra@gmail.com>
3845
3846 PR target/70866
3847 * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
3848 when cr2,3,4 are all fixed regs.
3849
3850 2016-05-04 Bernd Schmidt <bschmidt@redhat.com>
3851
3852 PR rtl-optimization/57193
3853 * opts.c (default_options_table): Revert OPT_frename_registers change.
3854 * doc/invoke.texi (-frename-registers, -O2): Likewise.
3855
3856 2016-05-03 Martin Sebor <msebor@redhat.com>
3857
3858 PR c++/66561
3859 * builtins.c (fold_builtin_FILE): New function.
3860 (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
3861 (fold_builtin_0): Call them.
3862 * gimplify.c (gimplify_call_expr): Remove the handling of
3863 BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
3864
3865 PR c++/66561
3866 * doc/extend.texi (Other Builtins): Update __builtin_FILE,
3867 __builtin_FUNCTION, and __builtin_LINE to reflect they yield
3868 constants.
3869
3870 PR c++/66639
3871 * doc/extend.texi (Function Names as Strings): Update __func__,
3872 __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
3873 constants.
3874
3875 2016-05-03 Jakub Jelinek <jakub@redhat.com>
3876 Richard Biener <rguenther@suse.de>
3877
3878 PR tree-optimization/70916
3879 * tree-if-conv.c: Include cfganal.h.
3880 (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
3881 and remove_fake_exit_edges around the optimization pass.
3882
3883 2016-05-03 Jan Hubicka <hubicka@ucw.cz>
3884
3885 * cgraph.c (symbol_table::create_edge): Set inline_failed.
3886 (cgraph_edge::make_direct): Likewise.
3887 (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
3888 * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
3889 * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
3890 (CIF_THUNK): New code.
3891 * ipa-inline-analysis.c (initialize_inline_failed): Preserve
3892 CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
3893 (compute_inline_parameters): Set inline_failed for thunks.
3894 (inline_analyze_function): Cleanup.
3895 * ipa-inline.c (can_inline_edge_p): Do not deal with
3896 call_stmt_cannot_inline_p.
3897 (can_early_inline_edge_p): Likewise.
3898 (early_inliner): Initialize inline_failed.
3899 * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
3900
3901 2016-05-03 Uros Bizjak <ubizjak@gmail.com>
3902
3903 * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
3904 from nonimm_ssenomem_operand.
3905 (nonimm_ssenomem_operand): New predicate.
3906 * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
3907 as operand 0 predicate.
3908 (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
3909 Disable unsupported alternatives using "enabled" attribute.
3910 Use register_ssemem_operand as operand 0 predicate.
3911 (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
3912
3913 2016-05-03 Marek Polacek <polacek@redhat.com>
3914
3915 PR c/70859
3916 * input.c (expansion_point_location): New function.
3917 * input.h (expansion_point_location): Declare.
3918
3919 2016-05-03 Pierre-Marie de Rodat <derodat@adacore.com>
3920
3921 * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
3922 occurence with frame_offset_ ones.
3923
3924 2016-05-03 Alan Modra <amodra@gmail.com>
3925
3926 PR rtl-optimization/70890
3927 * ira.c (combine_and_move_insns): When moving def_insn, remove
3928 equivs on use_insn.
3929
3930 2016-05-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
3931
3932 * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
3933 ("*r<noxa>sbg_<mode>_srl"): New define_insns.
3934 ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
3935 ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
3936
3937 2016-05-03 Alan Modra <amodra@gmail.com>
3938
3939 * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
3940 for SAVE_MULTIPLE/STORE_MULTIPLE.
3941
3942 2016-05-03 Jakub Jelinek <jakub@redhat.com>
3943
3944 * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
3945 *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
3946
3947 2016-05-03 Richard Biener <rguenther@suse.de>
3948
3949 * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
3950 default true.
3951 (gimplify_arg): Likewise.
3952 * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
3953 re-writing the result to a decl if required.
3954 (internal_get_tmp_var): Add allow_ssa parameter
3955 and override into_ssa with it.
3956 (get_formal_tmp_var): Adjust.
3957 (get_initialized_tmp_var): Add allow_ssa parameter.
3958 (gimplify_arg): Add allow_ssa parameter and avoid generating
3959 SSA names for the result false.
3960 (gimplify_call_expr): If the call may return twice do not
3961 gimplify parameters into SSA.
3962 (prepare_gimple_addressable): Do not allow an SSA name as temporary.
3963 (gimplify_modify_expr): Adjust assert. For noreturn calls
3964 with a SSA name LHS adjust its def.
3965 (gimplify_save_expr): Do not allow an SSA name as save-expr result.
3966 (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
3967 (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
3968 (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
3969 an SSA name. Likewise for OMP_CLAUSE_REDUCTION operands.
3970 (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL. Likewise
3971 for OMP_FOR_COND, OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
3972 (optimize_target_teams): Do not allow SSA names for clause operands.
3973 (gimplify_expr): Likewise for where we mark the result addressable.
3974 * passes.def (pass_init_datastructures): Remove.
3975 * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
3976 (rewrite_stmt): Likewise.
3977 * tree-inline.c (initialize_cfun): Properly transfer SSA state.
3978 (replace_locals_op): Replace SSA names.
3979 (copy_gimple_seq_and_replace_locals): Init src_cfun.
3980 * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
3981 * cgraph.c (release_function_body): Free CFG annotations only
3982 when we have a CFG. Simplify.
3983 * gimple-fold.c (gimplify_and_update_call_from_tree): Use
3984 force_gimple_operand instead of get_initialized_tmp_var.
3985 * tree-pass.h (make_pass_init_datastructures): Remove.
3986 * tree-ssa.c (execute_init_datastructures): Remove.
3987 (pass_data_init_datastructures): Likewise.
3988 (class pass_init_datastructures): Likewise.
3989 (make_pass_init_datastructures): Likewise.
3990 * omp-low.c (create_omp_child_function): Init SSA data structures.
3991 (grid_expand_target_grid_body): Likewise.
3992 * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
3993 name before adding it to names_to_release.
3994 (remove_bb): Always release SSA defs.
3995 * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
3996 before dereferencing it.
3997 * cgraphunit.c (init_lowered_empty_function): Always
3998 int SSA data structures.
3999 * tree-ssanames.c (release_defs): Remove assert that we are in
4000 SSA form.
4001 * trans-mem.c (diagnose_tm_1): Handle SSA name function.
4002
4003 2016-05-03 Jakub Jelinek <jakub@redhat.com>
4004 Uros Bizjak <ubizjak@gmail.com>
4005
4006 PR rtl-optimization/70467
4007 * config/i386/predicates.md (x86_64_hilo_int_operand,
4008 x86_64_hilo_general_operand): New predicates.
4009 * config/i386/constraints.md (Wd): New constraint.
4010 * config/i386/i386.md (mode attr di): Use Wd instead of e.
4011 (general_hilo_operand): New mode attr.
4012 (add<mode>3, sub<mode>3): Use <general_hilo_operand>
4013 instead of <general_operand>.
4014 (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
4015 x86_64_hilo_general_operand instead of <general_operand>.
4016
4017 2016-05-03 Jakub Jelinek <jakub@redhat.com>
4018
4019 PR tree-optimization/70916
4020 * tree-if-conv.c (constant_or_ssa_name): Removed.
4021 (fold_build_cond_expr): Use is_gimple_val instead of
4022 constant_or_ssa_name.
4023
4024 PR tree-optimization/70916
4025 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
4026 if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
4027
4028 PR target/49244
4029 * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
4030 (optimize_atomic_bit_test_and): New function.
4031 (pass_fold_builtins::execute): Use it.
4032 * optabs.def (atomic_bit_test_and_set_optab,
4033 atomic_bit_test_and_complement_optab,
4034 atomic_bit_test_and_reset_optab): New optabs.
4035 * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
4036 ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
4037 * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
4038 * builtins.c (expand_ifn_atomic_bit_test_and): New function.
4039 * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
4040 expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
4041 expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
4042 * doc/md.texi (atomic_bit_test_and_set@var{mode},
4043 atomic_bit_test_and_complement@var{mode},
4044 atomic_bit_test_and_reset@var{mode}): Document.
4045 * config/i386/sync.md (atomic_bit_test_and_set<mode>,
4046 atomic_bit_test_and_complement<mode>,
4047 atomic_bit_test_and_reset<mode>): New expanders.
4048 (atomic_bit_test_and_set<mode>_1,
4049 atomic_bit_test_and_complement<mode>_1,
4050 atomic_bit_test_and_reset<mode>_1): New insns.
4051
4052 2016-05-03 Richard Sandiford <richard.sandiford@arm.com>
4053
4054 PR rtl-optimization/70687
4055 * combine.c (change_zero_ext): Check for scalar modes. Use wide_int
4056 instead of unsigned HOST_WIDE_INT.
4057
4058 2016-05-03 Bernd Schmidt <bschmidt@redhat.com>
4059
4060 PR rtl-optimization/44281
4061 * hard-reg-set.h (struct target_hard_regs): New field
4062 x_fixed_nonglobal_reg_set.
4063 (fixed_nonglobal_reg_set): New macro.
4064 * reginfo.c (init_reg_sets_1): Initialize it.
4065 * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
4066 of fixed_reg_set.
4067 * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
4068
4069 2016-05-03 Bin Cheng <bin.cheng@arm.com>
4070
4071 PR tree-optimization/56541
4072 * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
4073 * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
4074 * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
4075 (any_complicated_phi): new static variable.
4076 (aggressive_if_conv): delete.
4077 (if_convertible_phi_p): support phis with more than two arguments.
4078 (if_convertible_bb_p): remvoe check on aggressive_if_conv and
4079 critical pred edges.
4080 (ifcvt_split_critical_edges): support phis with more than two
4081 arguments by checking new parameter. only split critical edges
4082 if needed.
4083 (tree_if_conversion): handle simd pragma marked loop using new
4084 local variable aggressive_if_conv. check any_complicated_phi.
4085
4086 2016-05-03 Bin Cheng <bin.cheng@arm.com>
4087
4088 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
4089 before using it.
4090
4091 2016-05-03 Bin Cheng <bin.cheng@arm.com>
4092
4093 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
4094 cbase.
4095
4096 2016-05-03 Oleg Endo <olegendo@gcc.gnu.org>
4097
4098 * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
4099 (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
4100 define_insn_and_split.
4101 (mulsi3_i): New define_insn_and_split.
4102 (mulsi3_call): Convert to define_insn.
4103 (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
4104 Remove constraints.
4105
4106 2016-05-02 Michael Meissner <meissner@linux.vnet.ibm.com>
4107
4108 * machmode.h (mode_complex): Add support to give the complex mode
4109 for a given mode.
4110 (GET_MODE_COMPLEX_MODE): Likewise.
4111 * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
4112 stored by build_complex_type and gfc_build_complex_type instead of
4113 trying to figure out the appropriate mode based on the size. Raise
4114 an assertion error, if the type was not set.
4115 * genmodes.c (struct mode_data): Add field for the complex type of
4116 the given type.
4117 (blank_mode): Likewise.
4118 (make_complex_modes): Remember the complex mode created in the
4119 base type.
4120 (emit_mode_complex): Write out the mode_complex array to map a
4121 type mode to the complex version.
4122 (emit_insn_modes_c): Likewise.
4123 * tree.c (build_complex_type): Set the complex type to use before
4124 calling layout_type.
4125 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
4126 support for __float128 complex datatypes.
4127 (rs6000_hard_regno_mode_ok): Likewise.
4128 (rs6000_setup_reg_addr_masks): Likewise.
4129 (rs6000_complex_function_value): Likewise.
4130 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
4131 __float128 and __ibm128 complex.
4132 (FLOAT128_IBM_P): Likewise.
4133 (ALTIVEC_ARG_MAX_RETURN): Likewise.
4134 * doc/extend.texi (Additional Floating Types): Document that
4135 -mfloat128 must be used to enable __float128. Document complex
4136 __float128 and __ibm128 support.
4137
4138 2016-05-02 Jakub Jelinek <jakub@redhat.com>
4139
4140 PR target/49244
4141 * gimple.c (gimple_builtin_call_types_compatible_p): Allow
4142 char/short arguments promoted to int because of promote_prototypes.
4143
4144 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
4145
4146 * config/i386/predicates.md (register_ssemem_operand): New predicate.
4147 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
4148 *cmpi<FPCMP:unord><MODEF:mode>_mixed and
4149 *cmpi<FPCMP:unord><X87MODEF:mode>_i387. Disable unsupported
4150 alternatives using "enabled" attribute. Use register_ssemem_operand
4151 as operand 1 predicate.
4152 (*cmpi<unord>xf_i387): Split XFmode pattern from
4153 *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
4154 (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
4155 *absneg<mode>2_i387. Disable unsupported alternatives using
4156 "enabled" attribute.
4157 (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
4158
4159 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
4160
4161 * omp-low.c (lower_oacc_head_tail): Assert there is at least one
4162 marker.
4163 (oacc_loop_process): Check mask for loop termination.
4164
4165 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
4166
4167 * cif-code.def (CIF_THUNK): Add.
4168 * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
4169 accidental change.
4170
4171 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
4172
4173 * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
4174 (dump_inline_summary): Dump it.
4175 (fp_expression_p): New predicate.
4176 (estimate_function_body_sizes): Use it.
4177 (inline_merge_summary): Merge fp_expressions.
4178 (inline_read_section): Read fp_expressions.
4179 (inline_write_summary): Write fp_expressions.
4180 * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
4181 codegen boundary if either caller or callee is !fp_expressions.
4182 * ipa-inline.h (inline_summary): Add fp_expressions.
4183 * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
4184 to fp_expressions be sure the fp generation flags are updated.
4185
4186 2016-05-02 Jakub Jelinek <jakub@redhat.com>
4187
4188 PR rtl-optimization/70467
4189 * cse.c (cse_insn): Handle no-op MEM moves after folding.
4190
4191 PR rtl-optimization/70467
4192 * ipa-pure-const.c (check_call): Handle internal calls even in
4193 ipa mode like in local mode.
4194
4195 2016-05-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
4196
4197 * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
4198
4199 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
4200
4201 * match.pd (X u< X, X u> X): New transformations.
4202
4203 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
4204
4205 * flag-types.h (enum warn_strict_overflow_code): Move ...
4206 * coretypes.h: ... here.
4207 * fold-const.h (fold_overflow_warning): Declare.
4208 * fold-const.c (fold_overflow_warning): Make non-static.
4209 (fold_comparison): Move the transformation of X +- C1 CMP C2
4210 into X CMP C2 -+ C1 ...
4211 * match.pd: ... here.
4212 * gimple-fold.c (fold_stmt_1): Protect with
4213 fold_defer_overflow_warnings.
4214
4215 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
4216
4217 * omp-low.c (struct oacc_loop): Add 'inner' field.
4218 (new_oacc_loop_raw): Initialize it to zero.
4219 (oacc_loop_fixed_partitions): Initialize it.
4220 (oacc_loop_auto_partitions): Partition outermost loop to outermost
4221 available partitioning.
4222
4223 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
4224
4225 * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
4226 register_operand.
4227 (umulsidi3): Likewise.
4228 (indirect_jump): Fix jump instruction assembly patterns.
4229
4230 2016-05-02 Thomas Schwinge <thomas@codesourcery.com>
4231
4232 PR target/70860
4233 * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
4234 (nvptx_function_value): Assert non-NULL cfun.
4235
4236 2016-05-02 Eric Botcazou <ebotcazou@adacore.com>
4237
4238 PR rtl-optimization/70886
4239 * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
4240
4241 * cselib.h (rtx_equal_for_cselib_1): Declare.
4242 (rtx_equal_for_cselib_p: New inline function.
4243 * cselib.c (rtx_equal_for_cselib_p): Delete.
4244 (rtx_equal_for_cselib_1): Make public.
4245
4246 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
4247
4248 * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
4249 (register_mixssei387nonimm_operand): Remove predicate.
4250 * config/i386/i386.md (*fop_<mode>_comm): Merge from
4251 *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387. Disable unsupported
4252 alternatives using "enabled" attribute. Also check X87_ENABLE_ARITH
4253 for TARGET_MIX_SSE_I387 alternatives.
4254 (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
4255 Disable unsupported alternatives using "enabled" attribute. Use
4256 nonimm_ssenomem_operand as operand 1 predicate. Also check
4257 X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
4258
4259 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
4260
4261 * tree.c (cst_and_fits_in_hwi): Simplify.
4262
4263 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
4264
4265 * tree.h (wi::to_wide): New function.
4266 * expr.c (expand_expr_real_1): Use wi::to_wide.
4267 * fold-const.c (int_const_binop_1): Likewise.
4268 (extract_muldiv_1): Likewise.
4269
4270 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
4271
4272 * wide-int.h: Update offset_int and widest_int documentation.
4273 (WI_SIGNED_SHIFT_RESULT): New macro.
4274 (wi::binary_shift): Define signed_shift_result_type for
4275 shifts on offset_int- and widest_int-like types.
4276 (generic_wide_int): Support <<= and >>= if << and >> are supported.
4277 * tree.h (int_bit_position): Use shift operators instead of wi::
4278 shifts.
4279 * alias.c (adjust_offset_for_component_ref): Likewise.
4280 * expr.c (get_inner_reference): Likewise.
4281 * fold-const.c (fold_comparison): Likewise.
4282 * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
4283 * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
4284 * tree-dfa.c (get_ref_base_and_extent): Likewise.
4285 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
4286 (stmt_kills_ref_p): Likewise.
4287 * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
4288 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
4289 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
4290 (ao_ref_init_from_vn_reference): Likewise.
4291
4292 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
4293
4294 * wide-int.h: Update offset_int and widest_int documentation.
4295 (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
4296 (wi::binary_traits): Allow ordered comparisons between offset_int and
4297 offset_int, between widest_int and widest_int, and between either
4298 of these types and basic C types.
4299 (operator <, <=, >, >=): Define for the same combinations.
4300 * tree.h (tree_int_cst_lt): Use comparison operators instead
4301 of wi:: comparisons.
4302 (tree_int_cst_le): Likewise.
4303 * gimple-fold.c (fold_array_ctor_reference): Likewise.
4304 (fold_nonarray_ctor_reference): Likewise.
4305 * gimple-ssa-strength-reduction.c (record_increment): Likewise.
4306 * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
4307 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
4308 * tree-sra.c (completely_scalarize): Likewise.
4309 * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
4310 * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
4311 * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
4312 (check_for_binary_op_overflow): Likewise.
4313 (search_for_addr_array): Likewise.
4314 * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
4315
4316 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
4317
4318 * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
4319 (arc_save_restore): Likewise.
4320 (arc_dwarf_register_span): Likewise.
4321 (arc_output_pic_addr_const): Initialize suffix variable.
4322
4323 2016-05-02 Martin Liska <mliska@suse.cz>
4324
4325 * symbol-summary.h (function_summary::function_summary):
4326 Remove checking assert for all cgraph nodes.
4327 (function_summary::get): Check summary_uid.
4328 (symtab_insertion): Check summary_uid.
4329
4330 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
4331
4332 * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
4333 * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
4334 bmaskn instruction.
4335 (arc_dwarf_register_span): Remove enum keyword.
4336 (compact_memory_operand_p): New function.
4337 * config/arc/arc.h (reg_class): Add code density register classes.
4338 (REG_CLASS_NAMES): Likewise.
4339 (REG_CLASS_CONTENTS): Likewise.
4340 * config/arc/arc.md (*movqi_insn): Add code density instructions.
4341 (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
4342 (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
4343 (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
4344 * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
4345 constraints.
4346 (h, Rcd, Rsd, Rzd): New register constraints.
4347 (T): Use compact_memory_operand_p function.
4348 * config/arc/predicates.md (compact_load_memory_operand): Remove.
4349
4350 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
4351
4352 * config/sh/sh.md (*negnegt, *movtt): Remove.
4353
4354 2016-05-02 Marek Polacek <polacek@redhat.com>
4355 Tom de Vries <tom@codesourcery.com>
4356
4357 PR tree-optimization/70700
4358 * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
4359 bigger than FIRST_REF_NODE.
4360
4361 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
4362
4363 PR target/52898
4364 * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
4365 TARGET_CMPEQDI_T.
4366 (prepare_cbranch_operands): Don't use scratch register. Assume that
4367 function is used when pseudos can be created.
4368 (expand_cbranchdi4): Likewise. Remove unused TARGET_CMPEQDI_T paths.
4369 * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
4370 (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
4371 define_expand. Allow it only when pseudos can be created.
4372 * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
4373
4374 2016-05-01 Uros Bizjak <ubizjak@gmail.com>
4375
4376 * config/i386/constraints.md (BC): Only allow -1 operands.
4377 * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
4378 Add "enabled" attribute. Update XI mode attribute calculation.
4379 * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
4380 (*movoi_internal_avx): Update XI mode attribute calculation.
4381 (*movti_internal): Ditto.
4382
4383 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
4384
4385 * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
4386 cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
4387
4388 2016-05-01 Eric Botcazou <ebotcazou@adacore.com>
4389
4390 * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
4391 statement on instruction code. Remove trailing spaces.
4392 (altivec_expand_stv_builtin): Likewise.
4393
4394 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
4395
4396 * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
4397 (TARGET_FPU_DOUBLE): Simplify.
4398 (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
4399 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
4400 * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
4401 with 'TARGET_FPU_DOUBLE'.
4402 * config/sh/sh.md: Likewise.
4403
4404 2016-05-01 Yoshinori Sato <ysato@users.sourceforge.jp>
4405
4406 * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
4407 SH_DIV_STR_FOR_SIZE): Remove.
4408 * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
4409 SH_DIV_STR_FOR_SIZE): Remove.
4410
4411 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
4412
4413 * config/sh/predicates.md (any_register_operand, zero_extend_operand,
4414 logical_reg_operand): Delete.
4415 (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
4416 arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
4417 logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
4418 match_operand and match_test.
4419 (sh_const_vec, sh_1el_vec): Remove redundant checks. Declare local
4420 variables on their first use. Return bool values.
4421 * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
4422 * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
4423 arith_reg_operand for input operand. Remove empty constraints.
4424 (xorsi3): Delete.
4425 (*xorsi3_compact): Rename to xorsi3.
4426 (zero_extend<mode>si2): Use arith_reg_operand for input operand.
4427 (*zero_extend<mode>si2_disp_mem): Update comment.
4428 (mov_nop): Delete.
4429
4430 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
4431
4432 * config/sh/t-sh: Remove SH5 support.
4433 * config.gcc: Likewise.
4434 * configure: Likewise.
4435
4436 2016-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4437
4438 * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
4439
4440 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
4441
4442 * config/sh/sh.c (register_sh_passes, sh_option_override,
4443 sh_print_operand, prepare_move_operands,
4444 sh_can_follow_jump): Remove TARGET_SH1 checks.
4445 * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
4446 PROMOTE_MODE): Likewise.
4447 * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
4448 movdi): Likewise.
4449
4450 2016-04-30 Alan Modra <amodra@gmail.com>
4451
4452 * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
4453 restoring when fixed_reg_p, but allow out-of-line or stmw save.
4454 Check for user regs later to avoid unnecessary looping over regs.
4455 Merge user reg check with non-saved reg check. Don't force
4456 inline VR restore when static chain used.
4457 (rs6000_frame_related): Omit eh_frame info for user regs when
4458 saving.
4459 (fixed_regs_p): Delete.
4460
4461 2016-04-30 Alan Modra <amodra@gmail.com>
4462
4463 * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
4464 (SAVE_STRATEGY, REST_STRATEGY): ..this. Renumber and sort enum.
4465 Update all uses.
4466
4467 2016-04-30 Alan Modra <amodra@gmail.com>
4468
4469 PR target/69645
4470 * config/rs6000/rs6000.c (fixed_reg_p): New function.
4471 (fixed_regs_p): Rename from global_regs_p. Call fixed_reg_p.
4472 Update all uses.
4473
4474 2016-04-30 Alan Modra <amodra@gmail.com>
4475
4476 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
4477 Remove redundant PIC_OFFSET_TABLE_REGNUM test. Replace with
4478 flag_pic test for Darwin.
4479
4480 2016-04-30 Alan Modra <amodra@gmail.com>
4481
4482 * regs.h (struct reg_info_t): Delete freq_calls_crossed and
4483 throw_calls_crossed.
4484 (REG_FREQ_CALLS_CROSSED): Delete.
4485 (REG_N_THROWING_CALLS_CROSSED): Delete.
4486 * regstat.c (regstat_bb_compute_ri): Don't calculate
4487 REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
4488 (dump_reg_info): Don't print call cross frequency.
4489 * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
4490 and REG_N_THROWING_CALLS_CROSSED.
4491
4492 2016-04-30 Alan Modra <amodra@gmail.com>
4493
4494 * regs.h (struct reg_info_t): Delete live_length.
4495 (REG_LIVE_LENGTH): Delete macro.
4496 * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
4497 local_live, local_processed and local_live_last_luid params.
4498 Replace bb_index param with bb. Don't set REG_LIVE_LENGTH.
4499 Formatting fixes.
4500 (regstat_compute_ri): Adjust for above. Don't set
4501 REG_LIVE_LENGTH.
4502 (dump_reg_info): Don't print live length.
4503 * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
4504 with test of setjmp_crosses. Don't set REG_LIVE_LENGTH.
4505 Localize loop_depth var.
4506
4507 2016-04-30 Alan Modra <amodra@gmail.com>
4508
4509 * ira.c (enum valid_equiv): New.
4510 (validate_equiv_mem): Return enum.
4511 (update_equiv_mem): Create replacement in more cases.
4512 (add_store_equivs): Update validate_equiv_mem call.
4513
4514 2016-04-30 Alan Modra <amodra@gmail.com>
4515
4516 * ira.c (combine_and_move_insns): Rather than scanning insns,
4517 use DF infrastucture to find use and def insns.
4518
4519 2016-04-30 Alan Modra <amodra@gmail.com>
4520
4521 ira.c (combine_and_move_insns): Move invariant conditions..
4522 (ira.c): ..to here. Call combine_and_move_insns before
4523 add_store_equivs. Call grow_reg_equivs later. Allocate
4524 req_equiv later using max_reg_num() rather than global max_regno.
4525 (contains_replace_regs): Delete.
4526 (add_store_equivs): Remove contains_replace_regs test.
4527
4528 2016-04-30 Alan Modra <amodra@gmail.com>
4529
4530 * ira.c (struct equiv_mem_data): New.
4531 (equiv_mem, equiv_mem_modified): Delete static vars.
4532 (validate_equiv_mem_from_store): Use "data" param to communicate..
4533 (validate_equiv_mem): ..from here.
4534
4535 2016-04-30 Alan Modra <amodra@gmail.com>
4536
4537 * ira.c (add_store_equivs, combine_and_move_insns): New functions,
4538 split out from..
4539 (update_reg_equivs): ..here. Move allocation and freeing of
4540 reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
4541 end_alias_analysis to..
4542 (ira): ..here.
4543
4544 2016-04-30 Alan Modra <amodra@gmail.com>
4545
4546 * ira.c (pdx_subregs): Delete.
4547 (struct equivalence): Add pdx_subregs field.
4548 (set_paradoxical_subreg): Remove pdx_subregs param. Update
4549 pdx_subregs access.
4550 (update_equiv_regs): Don't create or free pdx_subregs. Update
4551 pdx_subregs access.
4552
4553 2016-04-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4554
4555 * config/rs6000/altivec.h: Change definitions of vec_xl and
4556 vec_xst.
4557 * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
4558 (LD_ELEMREV_V2DI): New.
4559 (LD_ELEMREV_V4SF): New.
4560 (LD_ELEMREV_V4SI): New.
4561 (LD_ELEMREV_V8HI): New.
4562 (LD_ELEMREV_V16QI): New.
4563 (ST_ELEMREV_V2DF): New.
4564 (ST_ELEMREV_V2DI): New.
4565 (ST_ELEMREV_V4SF): New.
4566 (ST_ELEMREV_V4SI): New.
4567 (ST_ELEMREV_V8HI): New.
4568 (ST_ELEMREV_V16QI): New.
4569 (XL): New.
4570 (XST): New.
4571 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
4572 descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
4573 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
4574 TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
4575 (altivec_expand_builtin): Add handling for
4576 VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
4577 (rs6000_invalid_builtin): Add error-checking for
4578 RS6000_BTM_P9_VECTOR.
4579 (altivec_init_builtins): Define builtins used to implement vec_xl
4580 and vec_xst.
4581 (rs6000_builtin_mask_names): Define power9-vector.
4582 * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
4583 (RS6000_BTM_P9_VECTOR): Define.
4584 (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
4585 * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
4586 (vsx_ld_elemrev_v2df): Likewise.
4587 (vsx_ld_elemrev_v4sf): Likewise.
4588 (vsx_ld_elemrev_v4si): Likewise.
4589 (vsx_ld_elemrev_v8hi): Likewise.
4590 (vsx_ld_elemrev_v16qi): Likewise.
4591 (vsx_st_elemrev_v2df): Likewise.
4592 (vsx_st_elemrev_v2di): Likewise.
4593 (vsx_st_elemrev_v4sf): Likewise.
4594 (vsx_st_elemrev_v4si): Likewise.
4595 (vsx_st_elemrev_v8hi): Likewise.
4596 (vsx_st_elemrev_v16qi): Likewise.
4597 * doc/extend.texi: Add prototypes for vec_xl and vec_xst. Correct
4598 grammar.
4599
4600 2016-04-29 Patrick Palka <ppalka@gcc.gnu.org>
4601
4602 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
4603 out into ...
4604 (simplify_control_stmt_condition_1): ... here. Recurse into
4605 BIT_AND_EXPRs and BIT_IOR_EXPRs.
4606
4607 2016-04-29 David Edelsohn <dje.gcc@gmail.com>
4608
4609 PR target/69810
4610 * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
4611 (zero_extendqi<mode>2_dot): Revert earlier conversion from
4612 define_insn_and_split to define_insn.
4613 (zero_extendqi<mode>2_dot2): Same.
4614 (extendqi<mode>2_dot): Same.
4615 (extendqi<mode>2_dot2): Same.
4616
4617 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
4618
4619 * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
4620 (probe_stack): New expander.
4621 (probe_stack_<mode>): New insn pattern.
4622
4623 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
4624
4625 * config/i386/i386.md
4626 (operations with memory inputs setting flags peephole2):
4627 Remove uneeded REG_P checks. Cleanup pattern generation.
4628
4629 2016-04-29 Ilya Enkovich <ilya.enkovich@intel.com>
4630
4631 * tree-vect-loop.c (vect_transform_loop): Fix
4632 nb_iterations_upper_bound computation for vectorized loop.
4633
4634 2016-04-29 Marek Polacek <polacek@redhat.com>
4635 Jakub Jelinek <jakub@redhat.com>
4636
4637 PR sanitizer/70342
4638 * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
4639 TARGET_EXPR_SLOT as a base.
4640
4641 2016-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
4642
4643 * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
4644 with 'rCm2' constraints to limit possible immediate size.
4645 (*load_zeroextendqisi_update): Likewise.
4646 (*load_signextendqisi_update): Likewise.
4647 (*loadhi_update): Likewise.
4648 (*load_zeroextendhisi_update): Likewise.
4649 (*load_signextendhisi_update): Likewise.
4650 (*loadsi_update): Likewise.
4651 (*loadsf_update): Likewise.
4652
4653 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
4654
4655 * config/i386/predicates.md (constm1_operand): Fix comparison.
4656
4657 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
4658
4659 * testsuite/gcc.target/arc/ieee_eq.c: New test.
4660
4661 2016-04-29 Oleg Endo <olegendo@gcc.gnu.org>
4662
4663 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
4664 remaining SH5 related settings.
4665 * config/sh/sh-protos.h (shmedia_cleanup_truncate,
4666 shmedia_prepare_call_address): Delete.
4667 * config/sh/sh.c (sh_print_operand, output_stack_adjust,
4668 DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
4669 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
4670 UNSUPPORTED_SH2A): Remove m5 checks.
4671 (sh_divide_strategy_e): Remove SH5 division strategies.
4672 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
4673 * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
4674
4675 2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
4676
4677 * config/s390/s390.c (s390_rtx_costs): Update documentation.
4678
4679 2016-04-29 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4680
4681 * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
4682 * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
4683 Change lder to ldr.
4684 * config/s390/vector.md ("mov<mode>"): Likewise.
4685
4686 2016-04-29 Ulrich Weigand <uweigand@de.ibm.com>
4687
4688 * config/s390/constraints.md ("U", "W"): Invoke
4689 s390_mem_constraint with "ZR" and "ZT".
4690 * config/s390/s390.c (s390_check_qrst_address): Reject invalid
4691 addresses when using LRA. Accept also short displacements for S
4692 and T constraints. Do not check for long displacement target for
4693 S and T constraints.
4694 (s390_mem_constraint): Remove handling of U and W constraints.
4695 * config/s390/s390.md (various patterns): Remove the short
4696 displacement constraints (Q and R) if a long displacement
4697 constraint is present. Add longdisp as required CPU capability.
4698 * config/s390/vector.md: Likewise.
4699 * config/s390/vx-builtins.md: Likewise.
4700
4701 2016-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
4702
4703 PR target/60040
4704 * reload1.c (reload): Call finish_spills before
4705 restarting reload loop. Skip select_reload_regs
4706 if update_eliminables_and_spill returns true.
4707
4708 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
4709
4710 * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
4711 * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
4712 (umulhisi3_imm): Update predicates and constraint letters.
4713 (umulhisi3_reg): Declare instruction as commutative.
4714 * config/arc/constraints.md (J12, J16): New constraints.
4715 * config/arc/predicates.md (short_unsigned_const_operand): New
4716 predicate.
4717 (arc_short_operand): Likewise.
4718 * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
4719
4720 2016-04-29 Richard Biener <rguenther@suse.de>
4721
4722 PR tree-optimization/13962
4723 PR tree-optimization/65686
4724 * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
4725 * tree-ssa-alias.c (ptrs_compare_unequal): New function
4726 using PTA to compare pointers.
4727 * match.pd: Add pattern for pointer equality compare simplification
4728 using ptrs_compare_unequal.
4729
4730 2016-04-29 Richard Biener <rguenther@suse.de>
4731
4732 * stor-layout.c (layout_type): Do not build a pointer-to-element
4733 type for arrays.
4734
4735 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
4736
4737 * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
4738 Use SWI mode iterator. Use general_reg_operand predicate.
4739 (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
4740 peephole to MMX and SSE part. Use mmx_reg_operand and sse_reg_operand
4741 predicates.
4742
4743 2016-04-29 Jakub Jelinek <jakub@redhat.com>
4744
4745 PR middle-end/70843
4746 * fold-const.c (operand_equal_p): Don't verify hash value equality
4747 if arg0 == arg1.
4748 * tree.c (inchash::add_expr): Handle STATEMENT_LIST. Ignore BLOCK
4749 and OMP_CLAUSE.
4750
4751 2016-04-28 Jakub Jelinek <jakub@redhat.com>
4752
4753 PR target/70858
4754 * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
4755 to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
4756 (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
4757 __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
4758 __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
4759
4760 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
4761
4762 * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
4763 to info. Don't initialize separate fields to 0. Clean up
4764 formatting a bit.
4765
4766 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
4767
4768 * config/i386/i386.md (peephole2s for operations with memory inputs):
4769 Use SWI mode iterator.
4770 (peephole2s for operations with memory outputs): Ditto.
4771 Do not check for stack checking probe.
4772
4773 (probe_stack): Remove expander.
4774
4775 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
4776 Andrew Burgess <andrew.burgess@embecosm.com>
4777
4778 * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
4779 operands as 32-bits.
4780
4781 2016-04-28 Jason Merrill <jason@redhat.com>
4782
4783 * gdbinit.in: Skip line-map.h.
4784
4785 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
4786 Andrew Burgess <andrew.burgess@embecosm.com>
4787
4788 * config/arc/arc.c (arc_conditional_register_usage): Take
4789 TARGET_RRQ_CLASS into account.
4790 (arc_print_operand): Support printing 'p' and 's' operands.
4791 * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
4792 as 0.
4793 (TARGET_RRQ_CLASS): Define.
4794 (IS_POWEROF2_OR_0_P): Define.
4795 * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
4796 alternatives.
4797 (*tst_movb): New define_insn.
4798 (*tst): Avoid recognition if it could prevent '*tst_movb'
4799 combination; replace c/CnL with c/Chs alternative.
4800 (*tst_bitfield_tst): New define_insn.
4801 (*tst_bitfield_asr): New define_insn.
4802 (*tst_bitfield): New define_insn.
4803 (andsi3_i): Add Rrq variant.
4804 (extzv): New define_expand.
4805 (insv): New define_expand.
4806 (*insv_i): New define_insn.
4807 (*movb): New define_insn.
4808 (*movb_signed): New define_insn.
4809 (*movb_high): New define_insn.
4810 (*movb_high_signed): New define_insn.
4811 (*movb_high_signed + 1): New define_split pattern.
4812 (*mrgb): New define_insn.
4813 (*mrgb + 1): New define_peephole2 pattern.
4814 (*mrgb + 2): New define_peephole2 pattern.
4815 * config/arc/arc.opt (mbitops): New option for nps400, uses
4816 TARGET_NPS_BITOPS_DEFAULT.
4817 * config/arc/constraints.md (q): Make register class conditional.
4818 (Rrq): New register constraint.
4819 (Chs): New constraint.
4820 (Clo): New constraint.
4821 (Chi): New constraint.
4822 (Cbf): New constraint.
4823 (Cbn): New constraint.
4824 (C18): New constraint.
4825 (Cbi): New constraint.
4826
4827 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
4828
4829 * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
4830 dst->popcount.
4831 (bitmap_intersection_of_preds): Ditto.
4832 (bitmap_union_of_succs): Ditto.
4833 (bitmap_union_of_preds): Ditto.
4834 * sbitmap.c (do_popcount): Delete.
4835 (BITMAP_DEBUGGING): Delete.
4836 (sbitmap_verify_popcount): Delete.
4837 (sbitmap_alloc): Don't initialize the popcount field.
4838 (sbitmap_alloc_with_popcount): Delete.
4839 (sbitmap_resize): Don't resize the popcount array.
4840 (sbitmap_vector_alloc): Don't initialize the popcount field.
4841 (bitmap_copy): Don't copy the popcount array.
4842 (bitmap_clear): Don't clear the popcount array.
4843 (bitmap_clear): Delete the popcount array handling.
4844 (bitmap_ior_and_compl): Delete the popcount assert.
4845 (bitmap_not): Ditto.
4846 (bitmap_and_compl): Ditto.
4847 (bitmap_and): Delete the popcount array handling.
4848 (bitmap_xor): Ditto.
4849 (bitmap_ior): Ditto.
4850 (bitmap_or_and): Delete the popcount assert.
4851 (bitmap_and_or): Ditto.
4852 (popcount_table): Delete.
4853 (sbitmap_elt_popcount): Delete.
4854 * sbitmap.h (simple_bitmap_def): Delete the popcount field.
4855 (bitmap_set_bit): Delete the popcount assert.
4856 (bitmap_clear_bit): Ditto.
4857 (sbitmap_free): Don't free the popcount array.
4858 (sbitmap_alloc_with_popcount): Delete declaration.
4859 (sbitmap_popcount): Ditto.
4860
4861 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
4862 Andrew Burgess <andrew.burgess@embecosm.com>
4863
4864 * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
4865 (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
4866 * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
4867 (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
4868 * config/arc/arc.opt (mcmem): New option.
4869 * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
4870 supply length for r/m alternative.
4871 (*extendqisi2_ac): Likewise.
4872 (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
4873 r/Uex alternative.
4874 (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
4875 (movhi_insn): Likewise.
4876 (movsi_insn): Add r/Ucm,Ucm/w alternatives.
4877 (*zero_extendqihi2_i): Add r/Ucm alternative.
4878 (*zero_extendqisi2_ac): Likewise.
4879 (*zero_extendhisi2_i): Likewise.
4880 * config/arc/constraints.md (Uex): New memory constraint.
4881 (Ucm): New define_constraint.
4882 * config/arc/predicates.md (long_immediate_loadstore_operand):
4883 Return 0 for MEM with cmem_address address.
4884 (cmem_address_0): New predicates.
4885 (cmem_address_1): Likewise.
4886 (cmem_address_2): Likewise.
4887 (cmem_address): Likewise.
4888
4889 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
4890
4891 * config/rs6000/rs6000.c (machine_function): Rename
4892 insn_chain_scanned_p to spe_insn_chain_scanned_p.
4893 (rs6000_stack_info): Adjust.
4894
4895 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
4896 Andrew Burgess <andrew.burgess@embecosm.com>
4897
4898 * config/arc/constraints.md (Usd): Convert to define_constraint.
4899 (Us<): Likewise.
4900 (Us>): Likewise.
4901
4902 2016-04-28 Jakub Jelinek <jakub@redhat.com>
4903
4904 PR target/70821
4905 * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
4906 Add new peephole2 where the first insn is *mov<mode>_or instead of
4907 *mov<mode>_internal.
4908
4909 2016-04-28 Segher Boesssenkool <segher@kernel.crashing.org>
4910
4911 * tracer.c (bb_seen): Make static.
4912
4913 2016-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
4914
4915 * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
4916 support, setup defaults.
4917 * config/arc/arc-opts.h (enum processor_type): Add NPS400.
4918 * config/arc/arc.c (arc_init): Add NPS400 support.
4919 * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
4920 (TARGET_ARC700): NPS400 is also an ARC700.
4921 * config/arc/arc.opt: Add NPS400 options to -mcpu=.
4922
4923 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
4924
4925 PR target/70668
4926 * config/nds32/nds32.md (casesi): Don't access the operands array
4927 out of bounds.
4928
4929 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
4930
4931 * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
4932 (or $-1,reg peephole2): Ditto.
4933 (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
4934
4935 2016-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
4936
4937 * doc/extend.texi (Common Function Attributes) [optimize]:
4938 Discourage use of the optimize attribute.
4939
4940 2016-04-28 Bill Seurer <seurer@linux.vnet.ibm.com>
4941
4942 * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
4943 special case builtin.
4944 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
4945 ALTIVEC_BUILTIN_VEC_ADDE.
4946 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
4947 support for ALTIVEC_BUILTIN_VEC_ADDE.
4948 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
4949 for __builtin_vec_adde.
4950
4951 2016-04-28 Jakub Jelinek <jakub@redhat.com>
4952
4953 * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
4954 * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
4955
4956 2016-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4957
4958 PR testsuite/70595
4959 * doc/sourcebuild.texi (Effective-Target Keywords, Other
4960 attributes): Document cilkplus_runtime.
4961
4962 2016-04-28 Martin Jambor <mjambor@suse.cz>
4963
4964 * tree-cfg.c (verify_expr): Verify that local declarations belong to
4965 this function. Call verify_expr on MEM_REFs and bases of other
4966 handled_components.
4967
4968 2016-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4969
4970 * internal-fn.c (expand_arith_overflow): Convert preprocessor check
4971 for WORD_REGISTER_OPERATIONS to runtime check.
4972
4973 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
4974
4975 * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
4976
4977 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
4978
4979 * config/arc/arc.c (arc_process_double_reg_moves): Fix for
4980 big-endian compilation.
4981 * config/arc/arc.md (addf3): Likewise.
4982 (subdf3): Likewise.
4983 (muldf3): Likewise.
4984
4985 2016-04-28 Richard Biener <rguenther@suse.de>
4986
4987 PR tree-optimization/70840
4988 * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
4989 Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
4990 Mark x * pow(x,c) -> pow(x,c+1) commutative.
4991 Add powi(x,y) * powi(z,y) -> powi(x*z,y).
4992
4993 2015-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4994
4995 * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
4996 and explain why in a comment.
4997
4998 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
4999
5000 * config/arc/arc.md (cpu_facility): Add fpx variant.
5001 (subdf3): Prohibit use reverse sub when assist operations option
5002 is enabled.
5003 * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
5004 instructions only when FPX is enabled.
5005 * testsuite/gcc.target/arc/trsub.c: New test.
5006
5007 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
5008
5009 * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
5010 mult_operator when calculating "type" attribute.
5011 (*fop_<mode>_1_i387): Ditto.
5012 (*fop_xf_1_i387): Ditto.
5013 (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
5014 Use std::swap to swap operands. Use RTL expressions to generate
5015 converted pattern.
5016
5017 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
5018 Joern Rennecke <joern.rennecke@embecosm.com>
5019
5020 * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
5021 declaration.
5022 (emit_pic_move): Remove.
5023 (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
5024 * config/arc/arc.c (emit_pic_move): Removed.
5025 (TARGET_HAVE_TLS): Define.
5026 (arc_conditional_register_usage): Test for arc_tp_regno.
5027 (arc_print_operand, arc_print_operand_address): Handle TLS
5028 unspecs.
5029 (arc_needs_pcl_p): New function.
5030 (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
5031 (arc_legitimate_pic_addr_p): Handle TLS unspecs.
5032 (arc_raw_symbolic_reference_mentioned_p): Likewise.
5033 (arc_get_tp, arc_emit_call_tls_get_addr): New function.
5034 (arc_legitimize_tls_address): Likewise.
5035 (DTPOFF_ZERO_SYM): Define.
5036 (arc_legitimize_pic_address): Make it static, handle TLS cases.
5037 (arc_output_pic_addr_const): Print TLS unspecs.
5038 (prepare_pic_move): New function, replaces emit_pic_move.
5039 (arc_legitimate_constant_p): Handle TLS unspecs.
5040 (arc_legitimate_address_p): Likewise.
5041 (arc_rewrite_small_data_p): Use assert for TLS constants.
5042 (prepare_move_operands): Use prepare_pic_move.
5043 (arc_legitimize_address): Legitimize tls addresses.
5044 (arc_epilogue_uses): Check for arc_tp_regno.
5045 (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
5046 * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
5047 Define.
5048 [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
5049 Likewise.
5050 [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
5051 %(arc_tls_extra_start_spec).
5052 (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
5053 (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
5054 (EH_USES): Define.
5055 (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
5056 * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
5057 (UNSPEC_TLS_OFF): Add.
5058 (R10_REG): Define.
5059 (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
5060 (get_thread_pointersi): New patterns.
5061 * config/arc/arc.opt (mtp-regno): New option.
5062 * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
5063 (move_dest_operand): Likewise.
5064 * configure: Regenerate.
5065 * configure.ac: Add arc*-*-* case to test for tls.
5066 * doc/invoke.texi (ARC options): Document mtp-regno.
5067
5068 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
5069
5070 * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
5071 the new ARC HS SIMD instructions.
5072 (arc_preferred_simd_mode): New function.
5073 (arc_autovectorize_vector_sizes): Likewise.
5074 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
5075 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
5076 (arc_init_reg_tables): Accept new ARC HS SIMD modes.
5077 (arc_init_builtins): Add new SIMD builtin types.
5078 (arc_split_move): Handle 64 bit vector moves.
5079 * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
5080 (TARGET_PLUS_QMACW): Define.
5081 * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
5082 (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
5083 (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
5084 (VSUBADD4H): New builtins.
5085 * config/arc/simdext.md: Add new ARC HS SIMD instructions.
5086 * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
5087
5088 2016-04-28 Eduard Sanou <dhole@openmailbox.org>
5089 Matthias Klose <doko@debian.org>
5090
5091 * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
5092
5093 2016-04-28 Richard Biener <rguenther@suse.de>
5094
5095 PR middle-end/70777
5096 * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
5097 canonicalization.
5098
5099 2016-04-28 Oleg Endo <olegendo@gcc.gnu.org>
5100
5101 * common/config/sh/sh-common.c: Remove SH5 support.
5102 * config/sh/constraints.md: Likewise.
5103 * config/sh/config/sh/elf.h: Likewise.
5104 * config/sh/linux.h: Likewise.
5105 * config/sh/netbsd-elf.h: Likewise.
5106 * config/sh/predicates.md: Likewise.
5107 * config/sh/sh-c.c: Likewise.
5108 * config/sh/sh-protos.h: Likewise.
5109 * config/sh/sh.c: Likewise.
5110 * config/sh/sh.h: Likewise.
5111 * config/sh/sh.md: Likewise.
5112 * config/sh/sh.opt: Likewise.
5113 * config/sh/sync.md: Likewise.
5114 * config/sh/sh64.h: Delete.
5115 * config/sh/shmedia.h: Likewise.
5116 * config/sh/shmedia.md: Likewise.
5117 * config/sh/sshmedia.h: Likewise.
5118 * config/sh/t-netbsd-sh5-64: Likewise.
5119 * config/sh/t-sh64: Likewise.
5120 * config/sh/ushmedia.h: Likewise.
5121
5122 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
5123
5124 * config/i386/i386.md (sign_extend to memory peephole2s): Use
5125 general_reg_operand instead of register_operand predicate.
5126
5127 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5128
5129 * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
5130
5131 2016-04-27 Marc Glisse <marc.glisse@inria.fr>
5132
5133 * match.pd (A - B > A, A + B < A): New transformations.
5134
5135 2016-04-27 Patrick Palka <ppalka@gcc.gnu.org>
5136
5137 * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
5138 which defaults to true. Emit an outer pair of parentheses only if
5139 EMIT_PARENS. When continuing a chain of && or || (or & or |),
5140 don't emit parentheses for the right-hand operand.
5141
5142 2016-04-27 Jeff Law <law@redhat.com>
5143
5144 * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
5145
5146 2016-04-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5147
5148 * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
5149 (altivec_lvx_<mode>_internal): Document.
5150 (altivec_lvx_<mode>_2op): New define_insn.
5151 (altivec_lvx_<mode>_1op): Likewise.
5152 (altivec_lvx_<mode>_2op_si): Likewise.
5153 (altivec_lvx_<mode>_1op_si): Likewise.
5154 (altivec_stvx_<mode>): Remove.
5155 (altivec_stvx_<mode>_internal): Document.
5156 (altivec_stvx_<mode>_2op): New define_insn.
5157 (altivec_stvx_<mode>_1op): Likewise.
5158 (altivec_stvx_<mode>_2op_si): Likewise.
5159 (altivec_stvx_<mode>_1op_si): Likewise.
5160 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
5161 Expand vec_ld and vec_st during parsing.
5162 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
5163 changes.
5164 (altivec_expand_stvx_be): Likewise.
5165 (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
5166 address-masking behavior in RTL.
5167 (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
5168 address-masking behavior in RTL.
5169 (altivec_expand_builtin): Change builtin code arguments for calls
5170 to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
5171 (insn_is_swappable_p): Avoid incorrect swap optimization in the
5172 presence of lvx/stvx patterns.
5173 (alignment_with_canonical_addr): New function.
5174 (alignment_mask): Likewise.
5175 (find_alignment_op): Likewise.
5176 (recombine_lvx_pattern): Likewise.
5177 (recombine_stvx_pattern): Likewise.
5178 (recombine_lvx_stvx_patterns): Likewise.
5179 (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
5180 stvx patterns from expand.
5181 * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
5182 expansions.
5183 (vector_altivec_store_<mode>): Likewise.
5184
5185 2016-04-26 Evandro Menezes <e.menezes@samsung.com>
5186
5187 * config/aarch64/aarch64.md
5188 (*movhf_aarch64): Add "movi %0, #0" to zero up register and
5189 remove the "fp" attributes.
5190 (*movsf_aarch64): Add "movi %0, #0" to zero up register and
5191 add the "simd" attributes.
5192 (*movdf_aarch64): Likewise.
5193 (*movtf_aarch64): Remove the "fp" attributes.
5194 * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
5195 * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
5196
5197 2016-04-27 David Malcolm <dmalcolm@redhat.com>
5198
5199 * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
5200 rtx to rtx_code_label *.
5201 * rtl.h (maybe_set_first_label_num): Likewise.
5202
5203 2016-04-27 David Malcolm <dmalcolm@redhat.com>
5204
5205 * df-core.c (df_add_problem): Make the problem param be const.
5206 (df_remove_problem): Make local "problem" be const.
5207 * df-problems.c (problem_RD): Make const.
5208 (problem_LR): Likewise.
5209 (problem_LIVE): Likewise.
5210 (problem_MIR): Likewise.
5211 (problem_CHAIN): Likewise.
5212 (problem_WORD_LR): Likewise.
5213 (problem_NOTE): Likewise.
5214 (problem_MD): Likewise.
5215 * df-scan.c (problem_SCAN): Likewise.
5216 * df.h (struct df_problem): Make field "dependent_problem" be
5217 const.
5218 (struct dataflow): Likewise for field "problem".
5219 (df_add_problem): Make param const.
5220
5221 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
5222
5223 * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
5224 inter-unit moves to/from vector registers are enabled. Do not disable
5225 for TARGET_MMX.
5226
5227 2016-04-27 David Malcolm <dmalcolm@redhat.com>
5228
5229 * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
5230 DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
5231 #define to...
5232 (enum df_problem_id): ...this new enum.
5233 (struct df_problem): Convert field "id" from "int" to
5234 enum df_problem_id.
5235
5236 2016-04-27 David Malcolm <dmalcolm@redhat.com>
5237
5238 * rtl.def: Update comment for "things in the instruction chain" to
5239 reflect the removal of the leading "i" field for INSN_UID in
5240 r210360. Fix bogus apostrophe.
5241
5242 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
5243
5244 * config/i386/i386.md
5245 (lea arith with mem operand + setcc peephole2): Set operator mode.
5246
5247 2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
5248
5249 PR target/70155
5250 * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
5251 (dimode_scalar_to_vector_candidate_p): This.
5252 (timode_scalar_to_vector_candidate_p): New function.
5253 (scalar_to_vector_candidate_p): Likewise.
5254 (timode_check_non_convertible_regs): Likewise.
5255 (timode_remove_non_convertible_regs): Likewise.
5256 (remove_non_convertible_regs): Likewise.
5257 (remove_non_convertible_regs): Renamed to ...
5258 (dimode_remove_non_convertible_regs): This.
5259 (scalar_chain::~scalar_chain): Make it virtual.
5260 (scalar_chain::compute_convert_gain): Make it pure virtual.
5261 (scalar_chain::mark_dual_mode_def): Likewise.
5262 (scalar_chain::convert_insn): Likewise.
5263 (scalar_chain::convert_registers): Likewise.
5264 (scalar_chain::add_to_queue): Make it protected.
5265 (scalar_chain::emit_conversion_insns): Likewise.
5266 (scalar_chain::replace_with_subreg): Likewise.
5267 (scalar_chain::replace_with_subreg_in_insn): Likewise.
5268 (scalar_chain::convert_op): Likewise.
5269 (scalar_chain::convert_reg): Likewise.
5270 (scalar_chain::make_vector_copies): Likewise.
5271 (scalar_chain::convert_registers): New pure virtual function.
5272 (class dimode_scalar_chain): New class.
5273 (class timode_scalar_chain): Likewise.
5274 (scalar_chain::mark_dual_mode_def): Renamed to ...
5275 (dimode_scalar_chain::mark_dual_mode_def): This.
5276 (timode_scalar_chain::mark_dual_mode_def): New function.
5277 (timode_scalar_chain::convert_insn): Likewise.
5278 (dimode_scalar_chain::convert_registers): Likewise.
5279 (scalar_chain::compute_convert_gain): Renamed to ...
5280 (dimode_scalar_chain::compute_convert_gain): This.
5281 (scalar_chain::replace_with_subreg): Renamed to ...
5282 (dimode_scalar_chain::replace_with_subreg): This.
5283 (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
5284 (dimode_scalar_chain::replace_with_subreg_in_insn): This.
5285 (scalar_chain::make_vector_copies): Renamed to ...
5286 (dimode_scalar_chain::make_vector_copies): This.
5287 (scalar_chain::convert_reg): Renamed to ...
5288 (dimode_scalar_chain::convert_reg ): This.
5289 (scalar_chain::convert_op): Renamed to ...
5290 (dimode_scalar_chain::convert_op): This.
5291 (scalar_chain::convert_insn): Renamed to ...
5292 (dimode_scalar_chain::convert_insn): This.
5293 (scalar_chain::convert): Call convert_registers.
5294 (convert_scalars_to_vector): Change to scalar_chain pointer to
5295 use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
5296 in 32-bit mode. Delete scalar_chain pointer. Call
5297 free_dominance_info in 64-bit mode.
5298 (pass_stv::gate): Remove TARGET_64BIT check.
5299 (ix86_option_override): Put the 64-bit STV pass before the CSE
5300 pass.
5301
5302 2016-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
5303
5304 * dwarf2out.h (struct dw_loc_descr_node): Remove the
5305 dw_loc_frame_offset field.
5306 * dwarf2out.c (new_loc_descr): Likewise.
5307 (resolve_args_picking_1): Turn the VISITED hash set into a
5308 FRAME_OFFSET hash map. Use it to associate a frame offset to
5309 visited nodes. Remove uses of the CHECKING_P macro.
5310 (resolve_args_picking): Update call to resolve_args_picking_1.
5311
5312 2016-04-27 Martin Liska <mliska@suse.cz>
5313
5314 * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
5315 (free_loop_data): Release vuses of groups.
5316
5317 2016-04-27 Bin Cheng <bin.cheng@arm.com>
5318
5319 * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
5320 instead of redundant use_id and boolean have_use_for.
5321 (struct iv_use): Change sub_id into group_id. Remove field next.
5322 Move fields: related_cands, n_map_members, cost_map and selected
5323 to ...
5324 (struct iv_group): ... here. New structure.
5325 (struct iv_common_cand): Use structure declaration directly.
5326 (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
5327 (MAX_CONSIDERED_USES): Rename macro to ...
5328 (MAX_CONSIDERED_GROUPS): ... here.
5329 (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
5330 (dump_iv, dump_use, dump_cand): Refactor format of dump information.
5331 (dump_uses): Rename to ...
5332 (dump_groups): ... here. Update all uses.
5333 (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
5334 (find_induction_variables): Refactor format of dump information.
5335 (record_sub_use): Delete.
5336 (record_use): Update all uses.
5337 (record_group): New function.
5338 (record_group_use, find_interesting_uses_op): Call above functions.
5339 Update all uses.
5340 (find_interesting_uses_cond): Ditto.
5341 (group_compare_offset): New function.
5342 (split_all_small_groups): Rename to ...
5343 (split_small_address_groups_p): ... here. Update all uses.
5344 (split_address_groups): Update all uses.
5345 (find_interesting_uses): Refactor format of dump information.
5346 (add_candidate_1): Update all uses. Remove redundant check on iv,
5347 base and step.
5348 (add_candidate, record_common_cand): Remove redundant assert.
5349 (add_iv_candidate_for_biv): Update use.
5350 (add_iv_candidate_derived_from_uses): Update all uses.
5351 (add_iv_candidate_for_groups, record_important_candidates): Ditto.
5352 (alloc_use_cost_map): Ditto.
5353 (set_use_iv_cost, get_use_iv_cost): Rename to ...
5354 (set_group_iv_cost, get_group_iv_cost): ... here. Update all uses.
5355 (determine_use_iv_cost_generic): Ditto.
5356 (determine_group_iv_cost_generic): Ditto.
5357 (determine_use_iv_cost_address): Ditto.
5358 (determine_group_iv_cost_address): Ditto.
5359 (determine_use_iv_cost_condition): Ditto.
5360 (determine_group_iv_cost_cond): Ditto.
5361 (determine_use_iv_cost): Ditto.
5362 (determine_group_iv_cost): Ditto.
5363 (set_autoinc_for_original_candidates): Update all uses.
5364 (find_iv_candidates): Update all uses. Refactor dump information.
5365 (determine_use_iv_costs): Ditto.
5366 (determine_iv_costs): Ditto.
5367 (iv_ca_cand_for_use): Rename to ...
5368 (iv_ca_cand_for_group): ... here. Update all uses.
5369 (iv_ca_add_use, iv_ca_add_group): Ditto.
5370 (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
5371 (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
5372 (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
5373 (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
5374 (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
5375 (create_new_iv, adjust_iv_update_pos): Ditto.
5376 (rewrite_use_address): Delete.
5377 (rewrite_use_address_1): Rename to ...
5378 (rewrite_use_address): ... here.
5379 (rewrite_use_compare): Update all uses.
5380 (rewrite_use): Delete.
5381 (rewrite_uses): Rename to ...
5382 (rewrite_groups): ... here. Update all uses.
5383 (remove_unused_ivs, free_loop_data): Update all uses.
5384 (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
5385
5386 2016-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5387
5388 * rtlanal.c (nonzero_bits1): Convert preprocessor check
5389 for WORD_REGISTER_OPERATIONS to runtime check.
5390
5391 2016-04-27 Richard Biener <rguenther@suse.de>
5392
5393 PR ipa/70760
5394 * tree-ssa-structalias.c (find_func_aliases_for_call): Use
5395 aggregate_value_p to determine if a function result is
5396 returned by reference.
5397 (ipa_pta_execute): Functions having their address taken are
5398 not automatically nonlocal.
5399
5400 2016-04-27 Jakub Jelinek <jakub@redhat.com>
5401
5402 PR sanitizer/70683
5403 * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
5404 * fold-const.c (operand_equal_p): If flag_checking and
5405 OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
5406 and if it returns non-zero, assert iterative_hash_expr on both
5407 args is the same.
5408
5409 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
5410
5411 * doc/invoke.texi (-frename-registers): Also enabled at -Os.
5412
5413 2016-04-27 Nick Clifton <nickc@redhat.com>
5414
5415 PR middle-end/49889
5416 * varasm.c (merge_weak): Generate an error if an attempt is made
5417 to convert a non-weak static function into a weak, public function.
5418
5419 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5420
5421 * params.def (MAX_PARTITION_SIZE): New param.
5422 * doc/invoke.texi: Document lto-max-partition.
5423
5424 2016-04-27 Richard Biener <rguenther@suse.de>
5425
5426 PR ipa/70785
5427 * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
5428 function cummulating used_from_other_partition, externally_visible
5429 and force_output from aliases.
5430 (refered_from_nonlocal_var): Likewise.
5431 (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
5432 node flags properly.
5433
5434 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
5435
5436 * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
5437 (-Wmemset-elt-size): New item.
5438
5439 2016-04-27 Eric Botcazou <ebotcazou@adacore.com>
5440
5441 PR ada/70759
5442 * stor-layout.h (internal_reference_types): Delete.
5443 * stor-layout.c (reference_types_internal): Likewise.
5444 (internal_reference_types): Likewise.
5445 (layout_type) <REFERENCE_TYPE>: Adjust.
5446
5447 2016-04-27 Jakub Jelinek <jakub@redhat.com>
5448
5449 PR sanitizer/70683
5450 * tree.h (inchash::add_expr): Add FLAGS argument.
5451 * tree.c (inchash::add_expr): Likewise. If not OEP_ADDRESS_OF,
5452 use STRIP_NOPS first. For INTEGER_CST assert not OEP_ADDRESS_OF.
5453 For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
5454 Formatting fix. Adjust recursive calls. For tcc_comparison,
5455 if swap_tree_comparison (code) is smaller than code, hash that
5456 and arguments in the other order. Hash CONVERT_EXPR the same
5457 as NOP_EXPR. For OEP_ADDRESS_OF hash MEM_REF with 0 offset
5458 of ADDR_EXPR of decl as the decl itself. Add or remove
5459 OEP_ADDRESS_OF from recursive flags as needed. For
5460 FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
5461 operands commutatively and only the third one normally.
5462 For internal CALL_EXPR hash in CALL_EXPR_IFN.
5463
5464 2016-04-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
5465
5466 * config/rtems.h (LIB_SPEC): Add -latomic.
5467
5468 2016-04-27 Joel Sherrill <joel@rtems.org>
5469
5470 * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
5471 xilink.ld and flags not relevant to RTEMS.
5472
5473 2016-04-26 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
5474
5475 * toplev.c (backend_init_target): Avoid calling init_reload when using
5476 LRA.
5477
5478 2016-04-26 Jakub Jelinek <jakub@redhat.com>
5479
5480 * reorg.c (try_merge_delay_insns): Declare i and j inside the
5481 for loops rather than one for the whole function.
5482
5483 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
5484
5485 * match.pd (X + CST CMP X): New transformation.
5486
5487 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
5488
5489 * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
5490 * fold-const.c (fold_binary_loc): Remove 2 transformations
5491 superseded by match.pd.
5492 * match.pd (x+x -> x*2): Generalize to integers.
5493
5494 2016-04-26 Bernd Schmidt <bschmidt@redhat.com>
5495
5496 * config/i386/i386.md (operation on memory peephole): Duplicate an
5497 existing peephole and adapt it to match lea rather than an operation
5498 that clobbers CC.
5499
5500 PR rtl-optimization/57193
5501 * opts.c (default_options_table): Add OPT_frename_registers at -O2
5502 and above.
5503 * doc/invoke.texi (-frename-registers, -O2): Update documentation.
5504
5505 2016-04-26 Bin Cheng <bin.cheng@arm.com>
5506
5507 * tree-if-conv.c (any_pred_load_store): New static variable.
5508 (if_convertible_gimple_assign_stmt_p): Remove parameter. Use
5509 any_pred_load_store instead of and_mask_load_store.
5510 (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
5511 (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
5512 (combine_blocks, tree_if_conversion): Ditto.
5513
5514 2016-04-26 Bin Cheng <bin.cheng@arm.com>
5515
5516 PR tree-optimization/70771
5517 PR tree-optimization/70775
5518 * tree-if-conv.c (if_convertible_phi_p): Remove check on special
5519 virtual PHI nodes. Delete parameter.
5520 (if_convertible_loop_p_1): Delete argument to above function.
5521 (predicate_all_scalar_phis): Delete code handling single-argument
5522 PHIs.
5523 (tree_if_conversion): Mark and update virtual SSA.
5524
5525 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5526
5527 PR target/61821
5528 * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
5529 (x86_elf_aligned_common): Rename to ...
5530 (x86_elf_aligned_decl_common): ... this.
5531 Add decl arg. Switch to .lbss for largecomm object. Use
5532 LARGECOMM_SECTION_ASM_OP.
5533 * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
5534 renaming.
5535 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
5536 (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
5537 Pass new decl arg.
5538 * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
5539 [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
5540
5541 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5542
5543 PR target/59407
5544 * config/i386/i386.c (SECTION_LARGE): Define.
5545 (x86_64_elf_select_section): Set it for large data/bss sections.
5546 Only clear SECTION_WRITE for .lrodata.
5547 (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
5548 data/bss sections.
5549 * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
5550 * varasm.c (default_elf_asm_named_section): Grow flagchars.
5551 [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
5552 SECTION_MACH_DEP.
5553 * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
5554 * doc/tm.texi: Regenerate.
5555
5556 2016-04-26 Jakub Jelinek <jakub@redhat.com>
5557
5558 PR bootstrap/70704
5559 * configure.ac (--enable-checking): Document extra flag, for
5560 non-release builds default to --enable-checking=yes,extra.
5561 If misc checking and extra checking, define CHECKING_P to 2 instead
5562 of 1.
5563 * common.opt (fchecking=): Add.
5564 * doc/invoke.texi (-fchecking=): Document.
5565 * doc/install.texi: Document --enable-checking changes.
5566 * configure: Regenerated.
5567 * config.in: Regenerated.
5568
5569 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
5570
5571 * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
5572 attribute instead of which_alternative.
5573 * config/i386/sse.md (*mov<mode>_internal): Ditto.
5574 Use EXT_REX_SSE_REG_P where appropriate.
5575
5576 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
5577
5578 * config/i386/predicates.md (const0_operand): Do not match
5579 const_wide_int code.
5580 (const1_operand): Ditto.
5581
5582 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
5583
5584 * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
5585 for SSE constm1 operands and TARGET_AVX512VL.
5586 (*movti_internal): Ditto.
5587 (*mov<mode>_or): Use constm1_operand predicate.
5588 * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
5589 for SSE vector_all_ones operands and TARGET_AVX512VL.
5590 * config/i386/predicates.md (constm1_operand): New predicate.
5591 * config/i386/i386.c (standard_sse_constant_opcode): Simplify
5592 emission of constant -1 load.
5593
5594 2016-04-25 Jason Merrill <jason@redhat.com>
5595
5596 * gdbinit.in: Skip is-a.h.
5597
5598 * attribs.c (register_scoped_attributes): Fix logic.
5599 * attribs.h: Declare register_scoped_attributes.
5600
5601 2016-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5602
5603 * config/rs6000/rs6000-builtin.def: Correct pasto error for
5604 stxvd2x and stxvw4x built-in functions.
5605
5606 2016-04-25 DJ Delorie <dj@redhat.com>
5607
5608 * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
5609 (ashrhi3): Likewise.
5610 (lshrhi3): Likewise.
5611
5612 2016-04-25 Richard Biener <rguenther@suse.de>
5613
5614 PR tree-optimization/70780
5615 * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
5616 wasn't visited yet.
5617 (compute_antic): Mark blocks with abnormal preds as visited as
5618 they have a final empty antic-in solution already.
5619
5620 2016-04-25 Michael Collison <michael.collison@linaro.org>
5621
5622 * ChangeLog(2016-04-25): Fix ChangeLog formatting.
5623
5624 2016-04-25 Michael Collison <michael.collison@linaro.org>
5625
5626 * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
5627 mode is VQI to improve mixed mode vectorization.
5628 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
5629 define_insn to match low half of signed vaddw.
5630 * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
5631 define_insn to match high half of signed vaddw.
5632 * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
5633 define_insn to match low half of unsigned vaddw.
5634 * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
5635 define_insn to match high half of unsigned vaddw.
5636 * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
5637 (arm_simd_check_vect_par_cnst_half_p): Likewise.
5638 * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
5639 for new function.
5640 (arm_simd_check_vect_par_cnst_half_p): Likewise.
5641 * config/arm/predicates.md (vect_par_constant_high): Support
5642 big endian and simplify by calling
5643 arm_simd_check_vect_par_cnst_half
5644 (vect_par_constant_low): Likewise.
5645
5646 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
5647
5648 * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
5649 predicate for operand 2.
5650
5651 2016-04-24 Uros Bizjak <ubizjak@gmail.com>
5652 H.J. Lu <hongjiu.lu@intel.com>
5653
5654 * config/i386/i386-protos.h (standard_sse_constant_p): Add
5655 machine_mode argument.
5656 * config/i386/i386.c (standard_sse_constant_p): Return 2 for
5657 constm1_rtx operands. For VOIDmode constants, get mode from
5658 pred_mode. Check mode size if the mode is supported by ABI.
5659 (standard_sse_constant_opcode): Do not use standard_constant_p.
5660 Strictly check ABI support for all-ones operands.
5661 (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
5662 immediates. Update calls to standard_sse_constant_p.
5663 (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
5664 (ix86_rtx_costs): Ditto.
5665 * config/i386/i386.md (*movxi_internal_avx512f): Use
5666 nonimmediate_or_sse_const_operand instead of vector_move_operand.
5667 Use (v,BC) alternative instead of (v,C). Use register_operand
5668 checks instead of MEM_P.
5669 (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
5670 of vector_move_operand. Add (v,BC) alternative and corresponding avx2
5671 isa attribute. Use register_operand checks instead of MEM_P.
5672 (*movti_internal): Use nonimmediate_or_sse_const_operand for
5673 TARGET_SSE. Improve TARGET_SSE insn constraint. Add (v,BC)
5674 alternative and corresponding sse2 isa attribute.
5675 (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
5676 to standard_sse_constant_p.
5677 (FP constant splitters): Ditto.
5678 * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
5679 (C): Ditto.
5680 * config/i386/predicates.md (constm1_operand): Remove.
5681 (nonimmediate_or_sse_const_operand): Rewrite using RTX.
5682 * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
5683 vector_all_ones_operand instead of constm1_operand.
5684
5685 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5686
5687 * print-rtl.c (print_rtx_insn_vec): New function.
5688 * print-rtl.h: New prototype.
5689 * store-motion.c (struct st_expr): Make avail_stores a vector.
5690 (st_expr_entry): Adjust.
5691 (free_st_expr_entry): Likewise.
5692 (print_store_motion_mems): Likewise.
5693 (find_moveable_store): Likewise.
5694 (compute_store_table): Likewise.
5695 (delete_store): Likewise.
5696 (build_store_vectors): Likewise.
5697
5698 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5699
5700 * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
5701
5702 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5703
5704 * vec.h (vec_safe_contains): New function.
5705 (vec::contains): Likewise.
5706 (vec::begin): Likewise.
5707 (vec::end): Likewise.
5708
5709 2016-04-23 Jakub Jelinek <jakub@redhat.com>
5710
5711 PR sanitizer/70712
5712 * cfgexpand.c (expand_stack_vars): Fix typo.
5713
5714 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
5715
5716 * system.h (list, map, set, vector): Include conditionally.
5717 * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
5718 * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
5719 * ipa-icf.c (INCLUDE_LIST): Define.
5720 * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
5721 * config/sh/sh.c (INCLUDE_VECTOR): Define.
5722 * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
5723 (INCLUDE_LIST, INCLUDE_VECTOR): Define.
5724 * cp/logic.cc (INCLUDE_LIST): Define.
5725 * fortran/trans-common.c (INCLUDE_MAP): Define.
5726
5727 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
5728
5729 * auto-profile.c: Remove <string.h> include.
5730 * ipa-icf-gimple.c: Remove <list> include.
5731 * diagnostic.c: Remove <new> include.
5732 * genmatch.c: Likewise.
5733 * pretty-print.c: Likewise.
5734 * toplev.c: Likewise
5735 * c/c-objc-common.c: Likewise.
5736 * cp/error.c: Likewise.
5737 * fortran/error.c: Likewise.
5738
5739 2016-04-22 Richard Biener <rguenther@suse.de>
5740
5741 * lto-streamer-in.c (input_ssa_names): Do not allocate
5742 GIMPLE_NOP for all SSA names.
5743 * lto-streamer-out.c (output_ssa_names): Do not output
5744 SSA names that should have been released.
5745
5746 2016-04-22 Richard Biener <rguenther@suse.de>
5747
5748 PR tree-optimization/70740
5749 * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
5750 VDEF.
5751
5752 2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
5753
5754 PR target/70750
5755 * config/i386/predicates.md (call_insn_operand): Replace
5756 sibcall_memory_operand with memory_operand.
5757
5758 2016-04-21 Patrick Palka <ppalka@gcc.gnu.org>
5759
5760 * tree-vrp.c (register_edge_assert_for_2): Remove redundant
5761 has_single_use() tests.
5762 (register_edge_assert_for_1): Likewise.
5763 (find_assert_locations_1): Check the liveness bitmap instead of
5764 checking has_single_use().
5765
5766 2016-04-21 Kirill Yukhin <kirill.yukhin@intel.com>
5767
5768 PR target/70728
5769 * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
5770 Extract AVX-512BW constraint from AVX.
5771
5772 2016-04-21 Richard Biener <rguenther@suse.de>
5773
5774 PR tree-optimization/70725
5775 * tree-if-conv.c (if_convertible_phi_p): Adjust guard
5776 for phi_convertible_by_degenerating_args.
5777 (predicate_all_scalar_phis): Handle single-argument PHIs.
5778
5779 2016-04-21 Richard Biener <rguenther@suse.de>
5780
5781 PR middle-end/70747
5782 * fold-const.c (fold_comparison): Return properly typed
5783 constant boolean.
5784
5785 2016-04-21 Bin Cheng <bin.cheng@arm.com>
5786
5787 PR tree-optimization/70715
5788 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
5789 after expanding BASE using expand_simple_operations.
5790
5791 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
5792
5793 * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
5794 New transformations.
5795
5796 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
5797
5798 * match.pd (min(int_max, x), max(int_min, x)): New transformations.
5799
5800 2016-04-20 Jan Hubicka <jh@suse.cz>
5801
5802 * ipa-inline.c (can_inline_edge_p): Pass caller info to
5803 ultiimate_alias_target.
5804 (update_callee_keys): Likewise.
5805 (lookup_recursive_calls): Likewise.
5806 (speculation_useful_p): Likewise.
5807
5808 2016-04-20 Jan Hubicka <jh@suse.cz>
5809
5810 PR ipa/70018
5811 * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
5812 (set_nothrow_flag_1): ... this; handle interposition correctly;
5813 recurse on aliases and thunks.
5814 (cgraph_node::set_nothrow_flag): New.
5815 * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
5816 functions compiled with non-call exceptions that binds to current
5817 def.
5818 (propagate_nothrow): Be safe WRT interposition.
5819 * cgraph.h (set_nothrow_flag): Update prototype.
5820
5821 2016-04-18 Jan Hubicka <jh@suse.cz>
5822
5823 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
5824 max_loop_iterations_int.
5825 (tree_unswitch_outer_loop): Likewise.
5826
5827 2016-04-20 Bin Cheng <bin.cheng@arm.com>
5828
5829 PR tree-optimization/69489
5830 * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
5831 (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
5832 Revise dump message.
5833 (if_convertible_bb_p): Remove check on edge count of basic block's
5834 predecessors.
5835
5836 2016-04-20 Bin Cheng <bin.cheng@arm.com>
5837
5838 PR tree-optimization/56625
5839 PR tree-optimization/69489
5840 * tree-data-ref.h (DR_INNERMOST): New macro.
5841 * tree-if-conv.c (innermost_loop_behavior_hash): New class for
5842 hashing struct innermost_loop_behavior.
5843 (ref_DR_map): Remove.
5844 (innermost_DR_map): New map.
5845 (baseref_DR_map): Revise comment.
5846 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
5847 to innermost_DR_map accroding to its innermost loop behavior.
5848 (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
5849 to its innermost loop behavior.
5850 (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
5851 Add initialization for innermost_DR_map. Record memory reference
5852 in DR_BASE_ADDRESS if the reference is compound one or it doesn't
5853 have innermost loop behavior.
5854 (if_convertible_loop_p): Remove release for ref_DR_map. Release
5855 innermost_DR_map.
5856
5857 2016-04-20 Uros Bizjak <ubizjak@gmail.com>
5858
5859 * config/i386/i386.md (*lea<mode>_general_1): Rename from
5860 *lea_general_1. Use explicit SWI12 mode interator.
5861 (*lea<mode>_general_2): Rename from *lea_general_2.
5862 Use explicit SWI12 mode interator.
5863 (*lea<mode>_general_3): Rename from *lea_general_3.
5864 Use explicit SWI12 mode interator.
5865 (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
5866 Use explicit SWI12 mode interator.
5867 (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
5868 Use explicit SWI48 mode interator.
5869
5870 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
5871
5872 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
5873 Short-cut unaligned load and store cases. Handle all integer
5874 vector modes.
5875 (ix86_expand_vector_move_misalign): Short-cut unaligned load
5876 and store cases. Call ix86_avx256_split_vector_move_misalign
5877 directly without checking mode class.
5878
5879 2016-04-20 Andrew Pinski <apinski@cavium.com>
5880 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5881
5882 PR target/64971
5883 * config/aarch64/aarch64.md (sibcall): Force call
5884 address to be DImode for ILP32.
5885 (sibcall_value): Likewise.
5886
5887 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
5888
5889 * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
5890
5891 2016-04-20 Richard Biener <rguenther@suse.de>
5892
5893 * gimple-match.h (maybe_build_generic_op): Adjust prototype.
5894 * gimple-match-head.c (maybe_build_generic_op): Pass all ops
5895 by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
5896 (maybe_push_res_to_seq): Adjust.
5897 * gimple-fold.c (maybe_build_generic_op): Likewise.
5898
5899 2016-04-20 Marek Polacek <polacek@redhat.com>
5900
5901 * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
5902 rather than true.
5903
5904 2016-04-20 Ilya Enkovich <ilya.enkovich@intel.com>
5905
5906 * config/i386/sse.md (vec_unpacks_lo_hi): Always
5907 use kmovw to support AVX512F target.
5908
5909 2016-04-20 Bin Cheng <bin.cheng@arm.com>
5910
5911 * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
5912
5913 2016-04-20 Marek Polacek <polacek@redhat.com>
5914
5915 PR tree-optimization/70725
5916 * tree-if-conv.c (is_false_predicate): New function.
5917 (predicate_mem_writes): Use it.
5918
5919 2016-04-20 Richard Biener <rguenther@suse.de>
5920
5921 PR tree-optimization/70726
5922 * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
5923 shift amounts from a pattern stmt operand.
5924
5925 2016-04-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5926
5927 PR target/70674
5928 * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
5929 stack_restore_from_fpr pattern when restoring r15.
5930 (s390_optimize_prologue): Strip away the memory barrier in the
5931 parallel when trying to get rid of restore insns.
5932 * config/s390/s390.md ("stack_restore_from_fpr"): New insn
5933 definition for loading the stack pointer from an FPR. Compared to
5934 the normal move insn this pattern includes a full memory barrier.
5935
5936 2016-04-19 Jakub Jelinek <jakub@redhat.com>
5937
5938 PR middle-end/70680
5939 * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
5940 implicitly linear or lastprivate iterator on the outer context.
5941
5942 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
5943
5944 * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
5945 alignment check.
5946 * config/i386/i386.md (ssememalign): Removed.
5947 * config/i386/sse.md: Remove ssememalign attribute from patterns.
5948
5949 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
5950
5951 PR target/69201
5952 * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
5953 const short * to __builtin_ia32_loaddquhi512_mask.
5954 (_mm512_maskz_loadu_epi16): Likewise.
5955 (_mm512_mask_storeu_epi16): Pass short * to
5956 __builtin_ia32_storedquhi512_mask.
5957 (_mm512_mask_loadu_epi8): Pass const char * to
5958 __builtin_ia32_loaddquqi512_mask.
5959 (_mm512_maskz_loadu_epi8): Likewise.
5960 (_mm512_mask_storeu_epi8): Pass char * to
5961 __builtin_ia32_storedquqi512_mask.
5962 * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
5963 const double * to __builtin_ia32_loadupd512_mask.
5964 (_mm512_mask_loadu_pd): Likewise.
5965 (_mm512_maskz_loadu_pd): Likewise.
5966 (_mm512_storeu_pd): Pass double * to
5967 __builtin_ia32_storeupd512_mask.
5968 (_mm512_mask_storeu_pd): Likewise.
5969 (_mm512_loadu_ps): Pass const float * to
5970 __builtin_ia32_loadups512_mask.
5971 (_mm512_mask_loadu_ps): Likewise.
5972 (_mm512_maskz_loadu_ps): Likewise.
5973 (_mm512_storeu_ps): Pass float * to
5974 __builtin_ia32_storeups512_mask.
5975 (_mm512_mask_storeu_ps): Likewise.
5976 (_mm512_mask_loadu_epi64): Pass const long long * to
5977 __builtin_ia32_loaddqudi512_mask.
5978 (_mm512_maskz_loadu_epi64): Likewise.
5979 (_mm512_mask_storeu_epi64): Pass long long *
5980 to __builtin_ia32_storedqudi512_mask.
5981 (_mm512_loadu_si512): Pass const int * to
5982 __builtin_ia32_loaddqusi512_mask.
5983 (_mm512_mask_loadu_epi32): Likewise.
5984 (_mm512_maskz_loadu_epi32): Likewise.
5985 (_mm512_storeu_si512): Pass int * to
5986 __builtin_ia32_storedqusi512_mask.
5987 (_mm512_mask_storeu_epi32): Likewise.
5988 * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
5989 char * to __builtin_ia32_storedquqi256_mask.
5990 (_mm_mask_storeu_epi8): Likewise.
5991 (_mm256_mask_loadu_epi16): Pass const short * to
5992 __builtin_ia32_loaddquhi256_mask.
5993 (_mm256_maskz_loadu_epi16): Likewise.
5994 (_mm_mask_loadu_epi16): Pass const short * to
5995 __builtin_ia32_loaddquhi128_mask.
5996 (_mm_maskz_loadu_epi16): Likewise.
5997 (_mm256_mask_loadu_epi8): Pass const char * to
5998 __builtin_ia32_loaddquqi256_mask.
5999 (_mm256_maskz_loadu_epi8): Likewise.
6000 (_mm_mask_loadu_epi8): Pass const char * to
6001 __builtin_ia32_loaddquqi128_mask.
6002 (_mm_maskz_loadu_epi8): Likewise.
6003 (_mm256_mask_storeu_epi16): Pass short * to.
6004 __builtin_ia32_storedquhi256_mask.
6005 (_mm_mask_storeu_epi16): Pass short * to.
6006 __builtin_ia32_storedquhi128_mask.
6007 * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
6008 const double * to __builtin_ia32_loadupd256_mask.
6009 (_mm256_maskz_loadu_pd): Likewise.
6010 (_mm_mask_loadu_pd): Pass onst double * to
6011 __builtin_ia32_loadupd128_mask.
6012 (_mm_maskz_loadu_pd): Likewise.
6013 (_mm256_mask_storeu_pd): Pass double * to
6014 __builtin_ia32_storeupd256_mask.
6015 (_mm_mask_storeu_pd): Pass double * to
6016 __builtin_ia32_storeupd128_mask.
6017 (_mm256_mask_loadu_ps): Pass const float * to
6018 __builtin_ia32_loadups256_mask.
6019 (_mm256_maskz_loadu_ps): Likewise.
6020 (_mm_mask_loadu_ps): Pass const float * to
6021 __builtin_ia32_loadups128_mask.
6022 (_mm_maskz_loadu_ps): Likewise.
6023 (_mm256_mask_storeu_ps): Pass float * to
6024 __builtin_ia32_storeups256_mask.
6025 (_mm_mask_storeu_ps): ass float * to
6026 __builtin_ia32_storeups128_mask.
6027 (_mm256_mask_loadu_epi64): Pass const long long * to
6028 __builtin_ia32_loaddqudi256_mask.
6029 (_mm256_maskz_loadu_epi64): Likewise.
6030 (_mm_mask_loadu_epi64): Pass const long long * to
6031 __builtin_ia32_loaddqudi128_mask.
6032 (_mm_maskz_loadu_epi64): Likewise.
6033 (_mm256_mask_storeu_epi64): Pass long long * to
6034 __builtin_ia32_storedqudi256_mask.
6035 (_mm_mask_storeu_epi64): Pass long long * to
6036 __builtin_ia32_storedqudi128_mask.
6037 (_mm256_mask_loadu_epi32): Pass const int * to
6038 __builtin_ia32_loaddqusi256_mask.
6039 (_mm256_maskz_loadu_epi32): Likewise.
6040 (_mm_mask_loadu_epi32): Pass const int * to
6041 __builtin_ia32_loaddqusi128_mask.
6042 (_mm_maskz_loadu_epi32): Likewise.
6043 (_mm256_mask_storeu_epi32): Pass int * to
6044 __builtin_ia32_storedqusi256_mask.
6045 (_mm_mask_storeu_epi32): Pass int * to
6046 __builtin_ia32_storedqusi128_mask.
6047 * config/i386/i386-builtin-types.def (PCSHORT): New.
6048 (PINT64): Likewise.
6049 (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
6050 (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
6051 (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
6052 (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
6053 (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
6054 (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
6055 (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
6056 (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
6057 (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
6058 (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
6059 (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
6060 (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
6061 (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
6062 (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
6063 (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
6064 (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
6065 (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
6066 (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
6067 (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
6068 (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
6069 (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
6070 (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
6071 (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
6072 (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
6073 (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
6074 (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
6075 (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
6076 (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
6077 (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
6078 (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
6079 (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
6080 (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
6081 (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
6082 (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
6083 (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
6084 (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
6085 (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
6086 (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
6087 (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
6088 (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
6089 (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
6090 (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
6091 (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
6092 (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
6093 (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
6094 (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
6095 (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
6096 (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
6097 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
6098 use UNSPEC_STOREU.
6099 (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
6100 (ix86_avx256_split_vector_move_misalign): Don't use unaligned
6101 load nor store.
6102 (ix86_expand_vector_move_misalign): Likewise.
6103 (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
6104 to scalar function prototype for unaligned load/store builtins.
6105 (ix86_expand_special_args_builtin): Updated.
6106 * config/i386/sse.md (UNSPEC_LOADU): Removed.
6107 (UNSPEC_STOREU): Likewise.
6108 (VI_ULOADSTORE_BW_AVX512VL): Likewise.
6109 (VI_ULOADSTORE_F_AVX512VL): Likewise.
6110 (ssescalarsize): Handle V4TI, V2TI and V1TI.
6111 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
6112 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
6113 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
6114 (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
6115 (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
6116 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
6117 (sse2_avx_avx512f>_storedqu<mode>): Likewise.
6118 (<avx512>_storedqu<mode>_mask): Likewise.
6119 (*sse4_2_pcmpestr_unaligned): Likewise.
6120 (*sse4_2_pcmpistr_unaligned): Likewise.
6121 (*mov<mode>_internal): Renamed to ...
6122 (mov<mode>_internal): This. Remove check of AVX and IAMCU on
6123 misaligned operand. Replace vmovdqu64 with vmovdqu<ssescalarsize>.
6124 (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
6125 (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
6126
6127 2016-04-19 Richard Biener <rguenther@suse.de>
6128
6129 PR tree-optimization/70171
6130 * tree-ssa-phiprop.c: Include stor-layout.h.
6131 (phiprop_insert_phi): Handle the aggregate copy case.
6132 (propagate_with_phi): Likewise.
6133
6134 2016-04-19 Uros Bizjak <ubizjak@gmail.com>
6135
6136 * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
6137 instead of simplify_gen_subreg (... , 0).
6138 (ix86_delegitimize_address): Ditto.
6139 (ix86_split_divmod): Ditto.
6140 (ix86_split_copysign_const): Ditto.
6141 (ix86_split_copysign_var): Ditto.
6142 (ix86_expand_args_builtin): Ditto.
6143 (ix86_expand_round_builtin): Ditto.
6144 (ix86_expand_special_args_builtin): Ditto.
6145 * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
6146 (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
6147 (udivmodqi4): Ditto.
6148 (absneg splitters): Ditto.
6149 (*jcc_bt<mode>_1): Ditto.
6150
6151 2016-04-19 Richard Biener <rguenther@suse.de>
6152
6153 PR tree-optimization/70724
6154 * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
6155 restoring out from ...
6156 (free_scc_vn): ... here.
6157 * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
6158 * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
6159 tail merging.
6160 (pass_fre::execute): Restore SSA info.
6161
6162 2016-04-19 Richard Biener <rguenther@suse.de>
6163
6164 * gimple-walk.h (struct walk_stmt_info): Add stmt member.
6165 * gimple-walk.c (walk_gimple_op): Initialize it.
6166 (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
6167 * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
6168 remapping SSA names of defs.
6169 (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
6170 adjustment.
6171
6172 2016-04-18 Vladimir Makarov <vmakarov@redhat.com>
6173
6174 PR middle-end/70689
6175 * lra-constraints.c (equiv_substition_p): New.
6176 (process_alt_operands): Use it.
6177 (swap_operands): Swap it.
6178 (curr_insn_transform): Update it.
6179
6180 2016-04-18 Michael Matz <matz@suse.de>
6181
6182 * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
6183 (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
6184 * tree-core.h (tree_type_common.align): Use bit-field.
6185 (tree_type_common.spare): New.
6186 (tree_decl_common.off_align): Make smaller.
6187 (tree_decl_common.align): Use bit-field.
6188
6189 * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
6190 * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
6191 (scan_sharing_clauses): Ditto.
6192 (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
6193 (omp_finish_file): Ditto.
6194 * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
6195 (layout_decl): Ditto.
6196 (relayout_decl): Ditto.
6197 (finalize_record_size): Use SET_TYPE_ALIGN.
6198 (finalize_type_size): Ditto.
6199 (finish_builtin_struct): Ditto.
6200 (layout_type): Ditto.
6201 (initialize_sizetypes): Ditto.
6202 * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
6203 * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
6204 (lookup_field_for_decl): Use SET_DECL_ALIGN.
6205 (get_chain_field): Ditto.
6206 (get_trampoline_type): Ditto.
6207 (get_nl_goto_field): Ditto.
6208 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
6209 SET_DECL_ALIGN.
6210 (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
6211 * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
6212 * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
6213 (build_qualified_type): Use SET_TYPE_ALIGN.
6214 (build_aligned_type, build_range_type_1): Ditto.
6215 (build_atomic_base): Ditto.
6216 (build_common_tree_nodes): Ditto.
6217 * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
6218 (expand_one_stack_var_at): Ditto.
6219 * coverage.c (build_var): Use SET_DECL_ALIGN.
6220 * except.c (init_eh): Ditto.
6221 * function.c (assign_parm_setup_block): Ditto.
6222 * symtab.c (increase_alignment_1): Ditto.
6223 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
6224 * tree-vect-stmts.c (ensure_base_align): Ditto.
6225 * varasm.c (align_variable): Ditto.
6226 (assemble_variable): Ditto.
6227 (build_constant_desc): Ditto.
6228 (output_constant_def_contents): Ditto.
6229
6230 * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
6231 * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
6232 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
6233 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
6234 * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
6235
6236 2016-04-18 H.J. Lu <hongjiu.lu@intel.com>
6237
6238 PR target/70708
6239 * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
6240 replace %vmovsd with "%vmovq".
6241 (vec_concatv2df): Likewise.
6242
6243 2016-04-18 Uros Bizjak <ubizjak@gmail.com>
6244
6245 * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
6246 (*vec_extractv2si_0): Ditto.
6247 * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
6248 (zero_extended_scalar_load_operand splitters): Ditto.
6249 (vec_extract splitters): Ditto.
6250 (*vec_extractv4si_0_zext): Ditto.
6251 (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
6252 and lowpart_subreg.
6253 (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
6254 (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
6255 (*sse4_1_extractps): Use lowpart_subreg.
6256 * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
6257
6258 2016-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6259
6260 * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
6261 gld requirements.
6262 (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
6263 Mention Solaris 11 packaging changes.
6264 Update gas and gld requirements.
6265 Remove reference to pre-Solaris 10 bug.
6266 (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
6267 systems and bugs.
6268 (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
6269 with cc.
6270
6271 2016-04-17 Jan Hubicka <jh@suse.cz>
6272
6273 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
6274 max_loop_iterations_int.
6275
6276 2016-04-18 Richard Biener <rguenther@suse.de>
6277
6278 PR tree-optimization/43434
6279 * tree-ssa-structalias.c (struct vls_data): New.
6280 (visit_loadstore): Handle all pointer-based accesses.
6281 (compute_dependence_clique): Compute a bitmap of restrict tags
6282 assigned bases and pass it to visit_loadstore.
6283
6284 2016-04-18 Matthew Wahab <matthew.wahab@arm.com>
6285
6286 PR target/70711
6287 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
6288 armv8.1-a and armv8.1-a+crc.
6289
6290 2016-04-18 Richard Biener <rguenther@suse.de>
6291
6292 PR tree-optimization/70701
6293 * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
6294 references after translating through a memcpy.
6295
6296 2016-04-18 Richard Biener <rguenther@suse.de>
6297
6298 * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
6299 (compute_antic): ... here. For partial antic use regular
6300 postorder and scrap iteration.
6301 (compute_partial_antic_aux): Remove unused return value.
6302 (init_pre): Do not allocate postorder.
6303 (fini_pre): Do not free postorder.
6304
6305 2016-04-18 Richard Biener <rguenther@suse.de>
6306
6307 PR middle-end/37870
6308 * expmed.c (extract_bit_field_1): Remove broken case
6309 using a wider MODE_INT mode.
6310
6311 2016-04-18 Segher Boessenkool <segher@kernel.crashing.org>
6312
6313 * has-brig.c (lendian16): Don't try to use __builtin_bswap16
6314 unless compiling with at least GCC-4.8.
6315
6316 2016-04-17 Jan Hubicka <jh@suse.cz>
6317
6318 PR bootstrap/70706
6319 * graphite.c (graphite_finalize): Update call to
6320 tree_estimate_probability.
6321 * predict.h (tree_estimate_probability): Update prototype.
6322
6323 2016-04-17 Jan Hubicka <jh@suse.cz>
6324
6325 * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
6326 (tree_estimate_probability): Likewise.
6327 (pass_profile::execute): Update.
6328 (report_predictor_hitrates): New function.
6329 * profile.c (compute_branch_probabilities): Use it.
6330 * predict.h (report_predictor_hitrates): Declare.
6331
6332 2016-04-17 Jan Hubicka <jh@suse.cz>
6333
6334 PR ipa/70018
6335 * cgraph.h (cgraph_node::set_const_flag,
6336 cgraph_node::set_pure_flag): Update prototype to return bool;
6337 update comment.
6338 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
6339 of interposable symbol are interposable, too.
6340 (cgraph_set_const_flag_1): Rename to ...
6341 (set_const_flag_1): ... this one; change to self recursive function
6342 instead of call_for_symbol_thunks_and_aliases. Handle correctly
6343 clearnig the flag in all variants and also virtual thunks of const
6344 functions are pure; track if any change was done.
6345 (cgraph_node::set_const_flag): Update.
6346 (struct set_pure_flag_info): New struct.
6347 (cgraph_set_pure_flag_1): Rename to ...
6348 (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
6349 rather than pointer encoded flags; track if any changes was done;
6350 handle correctly clearning flag and setting flag of aliases already
6351 declared const.
6352 (cgraph_node::set_pure_flag): Update.
6353 (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
6354
6355 2016-04-17 Tom de Vries <tom@codesourcery.com>
6356
6357 PR other/70433
6358 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
6359 backslash in label.
6360
6361 2016-04-17 Tom de Vries <tom@codesourcery.com>
6362
6363 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
6364 '{}<> ' as escape-for-record.
6365
6366 2016-04-17 Tom de Vries <tom@codesourcery.com>
6367
6368 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
6369 structure.
6370
6371 2016-04-17 Tom de Vries <tom@codesourcery.com>
6372
6373 PR other/70185
6374 * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
6375 * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
6376 * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
6377 * passes.c (finish_optimization_passes): Only call
6378 finish_graph_dump_file if dfi->graph_dump_initialized.
6379 (execute_function_dump, pass_init_dump_file): Use
6380 dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
6381
6382 2016-04-17 Tom de Vries <tom@codesourcery.com>
6383
6384 PR tree-optimization/70256
6385 * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
6386 (debug_varmap): New function.
6387
6388 2016-04-17 Tom de Vries <tom@codesourcery.com>
6389
6390 PR other/70183
6391 * passes.c (pass_manager::register_pass): Propagate pflags.
6392
6393 2016-04-17 Tom de Vries <tom@codesourcery.com>
6394
6395 PR other/68875
6396 * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
6397 * passes.c (pass_manager::pass_manager): Declare and init p_start in
6398 INSERT_PASSES_AFTER. Add pass parameter to TERMINATE_PASS_LIST, and
6399 check if it's equal to p_start.
6400 * passes.def: Add arguments to TERMINATE_PASS_LISTs.
6401
6402 2016-04-15 Jan Hubicka <jh@suse.cz>
6403
6404 PR ipa/70018
6405 * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
6406 function does not bind to current def.
6407 * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
6408 handle conservatively calls to functions that does not need to bind
6409 to current def.
6410 (check_call): Update call of worse_state.
6411 (ignore_edge_for_nothrow): Update.
6412 (ignore_edge_for_pure_const): Likewise.
6413 (propagate_pure_const): Update calls to worse_state.
6414 (skip_function_for_local_pure_const): Reformat comments.
6415
6416 2016-04-15 Jan Hubicka <jh@suse.cz>
6417
6418 PR ipa/70018
6419 * cgraph.c (cgraph_node::get_availability): Add REF parameter.
6420 (cgraph_node::function_symbol): Likewise.
6421 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
6422 * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
6423 (symtab_node::ultimate_alias_target): Add REF parameter.
6424 (symtab_node::binds_to_current_def_p): Declare.
6425 (symtab_node;:ultimate_alias_target_1): Add REF parameter.
6426 (cgraph_node::function_symbol): Likewise.
6427 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
6428 (cgraph_node::get_availability): Likewise.
6429 (cgraph_edge::binds_to_current_def_p): New inline function.
6430 (varpool_node::get_availability): Add REF parameter.
6431 (varpool_node::ultimate_alias_target): Likewise.
6432 * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
6433 (symtab_node::binds_to_current_def_p): Likewise.
6434 * varpool.c (varpool_node::get_availability): Likewise.
6435
6436 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
6437
6438 PR target/70662
6439 * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
6440 Fix mode size check.
6441
6442 2016-04-15 Jakub Jelinek <jakub@redhat.com>
6443
6444 * BASE-VER: Set to 7.0.0.
6445
6446 2016-04-15 Alexander Monakov <amonakov@ispras.ru>
6447
6448 * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
6449
6450 2016-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6451
6452 * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
6453 architecture revisions.
6454
6455 2016-04-15 Bernd Schmidt <bschmidt@redhat.com>
6456
6457 * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
6458 * config/i386/i386.c (ix86_using_red_zone): No longer static.
6459 * config/i386/i386.md (stack decrement to push peepholes): Guard
6460 with !x86_using_red_zone ().
6461
6462 2016-04-15 Jakub Jelinek <jakub@redhat.com>
6463
6464 PR c++/70675
6465 * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
6466 to dump_generic_node.
6467 (NIY): Pass also flags to do_niy.
6468
6469 2016-04-15 Thomas Schwinge <thomas@codesourcery.com>
6470
6471 * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
6472 (simd_clone_vector_of_formal_parm_types)
6473 (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
6474 (simd_clone_mangle, simd_clone_create)
6475 (simd_clone_adjust_return_type, create_tmp_simd_array)
6476 (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
6477 (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
6478 (ipa_simd_modify_function_body, simd_clone_linear_addend)
6479 (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
6480 (pass_data_omp_simd_clone, class pass_omp_simd_clone)
6481 (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
6482 * omp-simd-clone.c: ... this new file.
6483 (simd_clone_vector_of_formal_parm_types): Make it static.
6484 * Makefile.in (OBJS): Add omp-simd-clone.o.
6485
6486 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
6487
6488 PR target/70662
6489 * config/i386/sse.md: Use proper memory operand modifiers.
6490
6491
6492 2016-04-15 Richard Biener <rguenther@suse.de>
6493 Alan Modra <amodra@gmail.com>
6494
6495 PR tree-optimization/70130
6496 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
6497 when alignment stays not the same and no not use the realign
6498 scheme then.
6499
6500 2016-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
6501
6502 PR target/70669
6503 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
6504 direct move handlers for KFmode. Change TFmode handlers test from
6505 FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
6506
6507 2016-04-14 Jakub Jelinek <jakub@redhat.com>
6508
6509 PR c++/70594
6510 * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
6511 * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
6512 (inlined_polymorphic_ctor_dtor_block_p): Use it.
6513 * tree-ssa-live.c (remove_unused_scope_block_p): When
6514 in_ctor_dtor_block, avoid discarding not just BLOCKs with
6515 BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
6516 block_ultimate_origin is FUNCTION_DECL.
6517 (remove_unused_locals): If current_function_decl is
6518 polymorphic_ctor_dtor_p, pass initial true to
6519 remove_unused_scope_block_p' is_ctor_dtor_block.
6520
6521 2016-04-14 Martin Sebor <msebor@redhat.com>
6522
6523 PR c++/69517
6524 PR c++/70019
6525 PR c++/70588
6526 * doc/extend.texi (Variable Length): Revert.
6527
6528 2016-04-14 Marek Polacek <polacek@redhat.com>
6529 Jan Hubicka <hubicka@ucw.cz>
6530
6531 PR c++/70029
6532 * tree.c (verify_type): Disable the canonical type of main variant
6533 check.
6534
6535 2016-04-14 Jason Merrill <jason@redhat.com>
6536
6537 * cfgexpand.c, expr.c: Revert previous change.
6538
6539 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
6540
6541 PR middle-end/70643
6542 * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
6543 when building a mem ref for the incoming reduction variable.
6544
6545 2016-04-14 Richard Biener <rguenther@suse.de>
6546
6547 PR tree-optimization/70614
6548 * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
6549 loop if the evolution dropped to chrec_dont_know.
6550 (interpret_condition_phi): Likewise.
6551
6552 2016-04-14 Richard Biener <rguenther@suse.de>
6553
6554 PR tree-optimization/70623
6555 * tree-ssa-pre.c (changed_blocks): Make global ...
6556 (compute_antic): ... local here. Move and fix worklist
6557 handling here. Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
6558 (compute_antic_aux): Add dumping for MAX assumed succs. Remove
6559 worklist handling, dump when ANTIC_IN changed.
6560 (compute_partial_antic_aux): Remove worklist handling.
6561 (init_pre): Do not compute post dominators. Add a comment about
6562 the CFG order chosen.
6563 (fini_pre): Do not free post dominators.
6564
6565 2016-04-13 Martin Sebor <msebor@redhat.com>
6566
6567 PR c++/69517
6568 PR c++/70019
6569 PR c++/70588
6570 * doc/extend.texi (Variable Length): Document C++ specifics.
6571
6572 2016-04-13 Jakub Jelinek <jakub@redhat.com>
6573
6574 PR c++/70641
6575 * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
6576 on all recursive call stmts. Return TODO_cleanup_cfg if any dead
6577 eh edges have been purged.
6578
6579 PR c++/70594
6580 * tree-sra.c (create_access_replacement,
6581 get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
6582 gets fancy name.
6583 * tree-pretty-print.c (dump_fancy_name): New function.
6584 (dump_decl_name, dump_generic_node): Use it.
6585
6586 2016-04-13 Jason Merrill <jason@redhat.com>
6587
6588 * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
6589 * expr.c (expand_expr_real_1): Likewise.
6590
6591 2016-04-13 Ilya Enkovich <ilya.enkovich@intel.com>
6592
6593 * config/i386/i386.md (kunpckhi): Swap operands.
6594 (kunpcksi): Likewise.
6595 (kunpckdi): Likewise.
6596 * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
6597 (vec_pack_trunc_<mode>): Likewise.
6598
6599 2016-04-13 Jakub Jelinek <jakub@redhat.com>
6600
6601 PR debug/70628
6602 * explow.c (convert_memory_address_addr_space_1): Formatting fix.
6603
6604 PR middle-end/70633
6605 * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
6606 gimplification turns some element into non-constant.
6607
6608 PR debug/70628
6609 * rtl.h (convert_memory_address_addr_space_1): New prototype.
6610 * explow.c (convert_memory_address_addr_space_1): No longer static,
6611 add NO_EMIT argument and don't call convert_modes if true, pass
6612 it down recursively, remove break after return.
6613 (convert_memory_address_addr_space): Adjust caller.
6614 * simplify-rtx.c (simplify_unary_operation_1): Call
6615 convert_memory_address_addr_space_1 instead of convert_memory_address,
6616 if it returns NULL, don't simplify.
6617
6618 2016-04-12 Eric Botcazou <ebotcazou@adacore.com>
6619
6620 PR target/70630
6621 * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
6622
6623 2016-04-12 Jakub Jelinek <jakub@redhat.com>
6624
6625 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
6626 Bump the upper SIMDLEN limits, so that if the return type or
6627 characteristic type if the return type is void can be passed in
6628 all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
6629 allowed.
6630
6631 2016-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
6632
6633 PR target/70640
6634 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
6635 Do not use "=" constraint on an input constraint.
6636 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
6637 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
6638 (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
6639 generates (neg (abs ...)) instead of (abs ...).
6640
6641 2016-04-12 Jakub Jelinek <jakub@redhat.com>
6642
6643 PR rtl-optimization/70596
6644 * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
6645 just invalidate LRA data and reset them. Adjust dump wording.
6646
6647 2016-04-12 Martin Liska <mliska@suse.cz>
6648
6649 Revert
6650 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
6651
6652 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
6653 estimates here.
6654 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
6655 max_loop_iterations_int.
6656 (tree_unswitch_outer_loop): Likewise.
6657 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
6658 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
6659
6660 2016-04-12 Tom de Vries <tom@codesourcery.com>
6661
6662 PR tree-optimization/68756
6663 * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
6664 instead of new_name.
6665
6666 2016-04-12 Jakub Jelinek <jakub@redhat.com>
6667
6668 PR tree-optimization/70602
6669 * tree-sra.c (generate_subtree_copies): Don't write anything into
6670 constant pool decls.
6671
6672 * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
6673 regardless whether there are depend clauses or not.
6674
6675 2016-04-11 Michael Meissner <meissner@linux.vnet.ibm.com>
6676
6677 PR target/70381
6678 * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
6679 target attribute and pragma from changing the -mfloat128
6680 and -mfloat128-hardware options.
6681
6682 * doc/extend.texi (Additional Floating Types): Document PowerPC
6683 __float128 restrictions.
6684
6685 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
6686
6687 PR target/70133
6688 * config/aarch64/driver-aarch64.c
6689 (aarch64_get_extension_string_for_isa_flags): New.
6690 (arch_extension): Rename to...
6691 (aarch64_arch_extension): ...This.
6692 (ext_to_feat_string): Rename to...
6693 (aarch64_extensions): ...This.
6694 (aarch64_core_data): Keep track of architecture extension flags.
6695 (cpu_data): Rename to...
6696 (aarch64_cpu_data): ...This.
6697 (aarch64_arch_driver_info): Keep track of architecture extension
6698 flags.
6699 (get_arch_name_from_id): Rename to...
6700 (get_arch_from_id): ...This, change return type.
6701 (host_detect_local_cpu): Update and reformat for renames, handle
6702 extensions through common infrastructure.
6703
6704 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
6705
6706 PR target/70133
6707 * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
6708 track of a canonical flag name.
6709 (all_extensions): Likewise.
6710 (arch_to_arch_name): Also track extension flags enabled by the arch.
6711 (all_architectures): Likewise.
6712 (aarch64_parse_extension): Move to here.
6713 (aarch64_get_extension_string_for_isa_flags): Take a new argument,
6714 rework.
6715 (aarch64_rewrite_selected_cpu): Update for above change.
6716 * config/aarch64/aarch64-option-extensions.def: Rework the way flags
6717 are handled, such that the single explicit value enabled by an
6718 extension is kept seperate from the implicit values it also enables.
6719 * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
6720 to here.
6721 (aarch64_parse_extension): New.
6722 * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
6723 here to config/aarch64/aarch64-protos.h.
6724 (aarch64_parse_extension): Move from here to
6725 common/config/aarch64/aarch64-common.c.
6726 (aarch64_option_print): Update.
6727 (aarch64_declare_function_name): Likewise.
6728 (aarch64_start_file): Likewise.
6729 * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
6730 the canonical flag for extensions.
6731 * config.gcc (aarch64*-*-*): Extend regex for capturing extension
6732 flags.
6733
6734 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
6735
6736 * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
6737 AARCH64_FL_CRC.
6738
6739 2016-04-09 Tom de Vries <tom@codesourcery.com>
6740
6741 PR tree-optimization/68953
6742 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
6743 first to last subscript.
6744
6745 2016-04-09 Jakub Jelinek <jakub@redhat.com>
6746
6747 PR tree-optimization/70586
6748 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
6749 for any calls.
6750
6751 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
6752
6753 PR lto/70289
6754 PR ipa/70348
6755 PR tree-optimization/70373
6756 PR middle-end/70533
6757 PR middle-end/70534
6758 PR middle-end/70535
6759 * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
6760 clauses for acc parallel reductions as necessary. Error on those
6761 that are private.
6762 * omp-low.c (scan_sharing_clauses): Don't install variables which
6763 are used in acc parallel reductions.
6764 (lower_rec_input_clauses): Remove dead code.
6765 (lower_oacc_reductions): Add support for reference reductions.
6766 (lower_reduction_clauses): Remove dead code.
6767 (lower_omp_target): Don't remap variables appearing in acc parallel
6768 reductions.
6769 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
6770
6771 2016-04-08 Jakub Jelinek <jakub@redhat.com>
6772
6773 PR middle-end/70593
6774 * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
6775 with multiple SSA_NAME defs, force the outputs other than first
6776 to be live before calling live_track_process_def on each output.
6777
6778 PR rtl-optimization/70574
6779 * fwprop.c (forward_propagate_and_simplify): Don't add
6780 REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
6781 (try_fwprop_subst): Don't add REG_EQUAL note if there are any
6782 paradoxical subregs within *loc.
6783
6784 2016-04-08 Thomas Schwinge <thomas@codesourcery.com>
6785
6786 * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
6787 -ftree-parallelize-loops={0,1}.
6788 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
6789 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
6790 * config/ia64/hpux.h (LIB_SPEC): Likewise.
6791 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
6792 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
6793
6794 2016-04-08 Maxim Ostapenko <m.ostapenko@samsung.com>
6795
6796 PR sanitizer/70541
6797 * asan.c (instrument_derefs): If we get unknown location, extract it
6798 with EXPR_LOCATION.
6799 (maybe_instrument_call): Instrument gimple_call's arguments if needed.
6800
6801 2016-04-08 Tom de Vries <tom@codesourcery.com>
6802
6803 * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
6804 implicit firstprivate clause.
6805
6806 2016-04-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6807
6808 PR target/70566
6809 * config/arm/thumb2.md (tst + branch-> lsls + branch
6810 peephole below *orsi_not_shiftsi_si): Require that condition
6811 register is dead after the peephole.
6812 (second peephole after the above): Likewise.
6813
6814 2016-04-08 Alan Modra <amodra@gmail.com>
6815
6816 PR target/70117
6817 * builtins.c (fold_builtin_classify): For IBM extended precision,
6818 look at just the high-order double to test for NaN.
6819 (fold_builtin_interclass_mathfn): Similarly for Inf. For isnormal
6820 test just the high double for Inf but both doubles for subnormal
6821 limit.
6822
6823 2016-04-07 Jakub Jelinek <jakub@redhat.com>
6824
6825 * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
6826 * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
6827 node->simdclone->mask_mode != VOIDmode masks.
6828 (simd_clone_adjust_argument_types): Likewise. Move sc var definition
6829 earlier, use it instead of node->simdclone.
6830 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
6831 Set clonei->mask_mode.
6832
6833 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
6834
6835 PR c/70436
6836 * parser.c (cp_parser_iteration_statement): New parameter IF_P.
6837 Pass it through to cp_parser_already_scoped_statement.
6838 (cp_parser_already_scoped_statement): New parameter IF_P. Pass
6839 it through to cp_parser_statement.
6840 (cp_parser_statement): Pass IF_P through to
6841 cp_parser_iteration_statement.
6842 (cp_parser_pragma): Adjust call to
6843 cp_parser_iteration_statement.
6844
6845 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
6846
6847 PR c/70436
6848 * gimplify.c (gimplify_omp_ordered): Add explicit braces to
6849 resolve a future -Wparentheses warning.
6850 * omp-low.c (scan_sharing_clauses): Likewise.
6851 * tree-parloops.c (eliminate_local_variables): Likewise.
6852
6853 2016-04-06 Vladimir Makarov <vmakarov@redhat.com>
6854
6855 PR rtl-optimization/70398
6856 * lra-constraints.c (process_address_1): Check zero scale and code
6857 for reloading with zero scale.
6858
6859 2016-04-06 Uros Bizjak <ubizjak@gmail.com>
6860
6861 * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
6862 (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
6863
6864 2016-04-06 Jakub Jelinek <jakub@redhat.com>
6865
6866 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
6867 Add support for AVX512F clones, include them by default for
6868 exported OpenMP declare simd functions. For AVX2 allow simdlen 32
6869 and use it if charasteric type is 8-bit, for AVX512F allow simdlen
6870 up to 128.
6871
6872 PR middle-end/70550
6873 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
6874 * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
6875 firstprivate clauses.
6876 * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
6877 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
6878 (lower_omp_target): Set TREE_NO_WARNING for
6879 non-addressable possibly uninitialized vars which are copied into
6880 addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
6881
6882 2016-04-05 John David Anglin <danglin@gcc.gnu.org>
6883
6884 * config/pa/predicates.md (integer_store_memory_operand): Accept
6885 REG+D operands with a large offset when reload_in_progress is true.
6886 (floating_point_store_memory_operand): Likewise.
6887
6888 2016-04-05 Jakub Jelinek <jakub@redhat.com>
6889
6890 PR c++/70336
6891 * match.pd (nested int casts): Limit to GIMPLE.
6892
6893 2016-04-05 Jan Hubicka <hubicka@ucw.cz>
6894
6895 PR ipa/66223
6896 * ipa-devirt.c (maybe_record_node): Fix comment; use
6897 SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
6898
6899 2016-04-05 Jakub Jelinek <jakub@redhat.com>
6900
6901 PR rtl-optimization/70542
6902 * ree.c (add_removable_extension): For VECTOR_MODE_P punt
6903 if there are any uses other than insn or debug insns.
6904
6905 2016-04-05 Marc Glisse <marc.glisse@inria.fr>
6906 Jakub Jelinek <jakub@redhat.com>
6907
6908 PR tree-optimization/70509
6909 * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
6910 Shift HOST_WIDE_INT_1U instead of 1.
6911
6912 2016-04-05 Zdenek Sojka <zsojka@seznam.cz>
6913
6914 PR tree-optimization/70509
6915 * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
6916 of the vector base type for index.
6917
6918 2016-04-05 Uros Bizjak <ubizjak@gmail.com>
6919
6920 PR target/70510
6921 * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
6922
6923 2016-04-05 Richard Biener <rguenther@suse.de>
6924
6925 PR tree-optimization/70526
6926 * tree-sra.c (build_ref_for_offset): Use prev_base to
6927 extract the alias pointer type.
6928
6929 2016-04-05 Richard Biener <rguenther@suse.de>
6930
6931 * dse.c (struct store_info): Remove alias_set member.
6932 (struct read_info_type): Likewise.
6933 (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
6934 spill_deleted, clear_alias_set_lookup): Remove.
6935 (get_group_info): Remove dead base == NULL_RTX case.
6936 (dse_step0): Remove initialization of removed variables.
6937 (delete_dead_store_insn): Reomve alias set dumping.
6938 (free_read_records): Remove alias_set handling.
6939 (canon_address): Remove alias_set_out parameter.
6940 (record_store): Remove spill_alias_set, it's always zero.
6941 (check_mem_read_rtx): Likewise.
6942 (dse_step2): Rename from ...
6943 (dse_step2_nospill): ... this. Adjust.
6944 (scan_stores): Rename from ...
6945 (scan_stores_nospill): ... this.
6946 (scan_reads): Rename from ...
6947 (scan_reads_nospill): ... this.
6948 (scan_stores_spill, scan_reads_spill): Remove.
6949 (dse_step3_scan): Remove for_spills argument which is always false.
6950 (dse_step3): Likewise.
6951 (dse_step5): Rename from ...
6952 (dse_step5_nospill): ... this. Remove alias_set handling.
6953 (rest_of_handle_dse): Adjust.
6954
6955 2016-04-05 Jakub Jelinek <jakub@redhat.com>
6956
6957 PR target/70525
6958 * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
6959 Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
6960 V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
6961 (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
6962
6963 2016-04-05 Richard Biener <rguenther@suse.de>
6964
6965 PR middle-end/70499
6966 * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
6967 non-register type temporaries into SSA.
6968
6969 2016-04-04 Jan Hubicka <hubicka@ucw.cz>
6970
6971 PR ipa/66223
6972 * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
6973 calls when sanitizing.
6974 (possible_polymorphic_call_target_p): Fix formatting.
6975
6976 2016-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6977 Jakub Jelinek <jakub@redhat.com>
6978
6979 PR middle-end/70457
6980 * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
6981 to ensure a call statement is compatible with a built-in's
6982 prototype.
6983 * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
6984 Likewise.
6985
6986 2016-04-04 Richard Biener <rguenther@suse.de>
6987
6988 PR rtl-optimization/70484
6989 * rtl.h (canon_output_dependence): Declare.
6990 * alias.c (canon_output_dependence): New function.
6991 * dse.c (record_store): Use canon_output_dependence rather
6992 than canon_true_dependence.
6993
6994 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
6995
6996 PR ipa/68881
6997 * cgraph.h (symtab_node::copy_visibility_from): New function.
6998 * symtab.c (symtab_node::copy_visibility_from): New function.
6999 * ipa-visibility.c (optimize_weakref): New function.
7000 (function_and_variable_visibility): Use it.
7001
7002 2016-04-04 Martin Liska <mliska@suse.cz>
7003
7004 PR hsa/70402
7005 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
7006 value that is really in range handled by SBR instruction.
7007 * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
7008 * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
7009 * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
7010
7011 2016-04-03 Oleg Endo <olegendo@gcc.gnu.org>
7012
7013 PR target/70416
7014 PR target/67391
7015 * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
7016 set, but not for SP_REG operands.
7017
7018 2016-04-02 Martin Sebor <msebor@redhat.com>
7019
7020 PR c++/67376
7021 * fold-const.c (maybe_nonzero_address): New function.
7022 (fold_comparison): Call it. Fold equality and relational
7023 expressions involving null pointers.
7024 (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
7025
7026 2016-03-31 Evandro Menezes <e.menezes@samsung.com>
7027
7028 Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
7029 the "Y" constraint (scalar FP 0.0 immediate).
7030
7031 * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
7032 Add the "const_double" to the list of operand constraints.
7033
7034 2016-04-01 Jakub Jelinek <jakub@redhat.com>
7035
7036 PR rtl-optimization/70467
7037 * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
7038 If low word of the last operand is 0, just emit addition/subtraction
7039 for the high word.
7040
7041 2016-04-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7042
7043 PR target/70404
7044 * config/s390/s390.c (s390_expand_insv): Check for everything
7045 constant instead of just VOIDmode stuff.
7046
7047 2016-04-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7048
7049 PR target/70496
7050 * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
7051
7052 2016-04-01 Nathan Sidwell <nathan@acm.org>
7053
7054 * tree.def (TRY_CATCH_EXPR): Correct documentation.
7055
7056 2016-03-31 Vladimir Makarov <vmakarov@redhat.com>
7057
7058 PR rtl-optimization/70461
7059 * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
7060 is necessary.
7061
7062 2016-03-31 Martin Liska <mliska@suse.cz>
7063
7064 PR hsa/70399
7065 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
7066 a tree value or an immediate integer value to a buffer
7067 that is eventually copied to a BRIG section.
7068 (emit_immediate_operand): Call the function here.
7069 * hsa-dump.c (dump_hsa_immed): Remove checking assert.
7070 * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
7071 of class' fields that are removed.
7072 (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
7073 * hsa.h (class hsa_op_immed): Remove m_brig_repr and
7074 m_brig_repr_size fields.
7075
7076 2016-03-31 Martin Liska <mliska@suse.cz>
7077
7078 PR hsa/70391
7079 * hsa-gen.c (hsa_function_representation::update_dominance): New
7080 function.
7081 (convert_addr_to_flat_segment): Likewise.
7082 (gen_hsa_memory_set): New alignment argument.
7083 (gen_hsa_ctor_assignment): Likewise.
7084 (gen_hsa_insns_for_single_assignment): Provide alignment
7085 to gen_hsa_ctor_assignment.
7086 (gen_hsa_insns_for_direct_call): Add new argument.
7087 (expand_lhs_of_string_op): New function.
7088 (expand_string_operation_builtin): Likewise.
7089 (expand_memory_copy): New function.
7090 (expand_memory_set): New function.
7091 (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
7092 (convert_switch_statements): Change signature.
7093 (generate_hsa): Use a return value of the function.
7094 (pass_gen_hsail::execute): Do not call
7095 convert_switch_statements here.
7096 * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
7097 * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
7098 (hsa_function_representation::update_dominance): New function.
7099
7100 2016-03-31 Martin Liska <mliska@suse.cz>
7101
7102 PR hsa/70391
7103 * hsa-brig.c (emit_directive_variable): Emit alignment
7104 according to hsa_symbol::m_align.
7105 * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
7106 (dump_hsa_symbol): Dump alignment of HSA symbols.
7107 * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
7108 (gen_hsa_addr_with_align): New function.
7109 (hsa_bitmemref_alignment): Use newly added function.
7110 (gen_hsa_insns_for_load): Likewise.
7111 (gen_hsa_insns_for_store): Likewise.
7112 (gen_hsa_memory_copy): New argument added.
7113 (gen_hsa_insns_for_single_assignment): Respect
7114 alignment for assignments processed via gen_hsa_memory_copy.
7115 (gen_hsa_insns_for_direct_call): Likewise.
7116 (gen_hsa_insns_for_return): Likewise.
7117 (gen_function_def_parameters): Set default alignment.
7118 * hsa.c (hsa_object_alignment): New function.
7119 (hsa_byte_alignment): Pasted function.
7120 * hsa.h (hsa_symbol::m_align): New field.
7121
7122 2016-03-31 Bin Cheng <bin.cheng@arm.com>
7123
7124 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
7125 scratch field for goto case.
7126
7127 2016-03-31 James Greenhalgh <james.greenhalgh@arm.com>
7128
7129 * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
7130
7131 2016-03-31 Ilya Enkovich <enkovich.gnu@gmail.com>
7132
7133 PR target/70442
7134 * config/i386/i386.c (scalar_chain::convert_op): Fix description.
7135 (scalar_chain::convert_insn): Call convert_op for reg
7136 moves to handle undefined registers.
7137
7138 2016-03-31 Nathan Sidwell <nathan@acm.org>
7139
7140 PR c++/70393
7141 * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
7142 Assert we don't want to move backwards.
7143
7144 2016-03-31 Kirill Yukhin <kirill.yukhin@intel.com>
7145
7146 PR target/70453
7147 * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
7148
7149 2016-03-31 Jakub Jelinek <jakub@redhat.com>
7150
7151 PR rtl-optimization/70460
7152 * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
7153 with operand from REG_LABEL_OPERAND, instead substitute
7154 SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
7155 Don't do anything for REG_NON_LOCAL_GOTO jumps.
7156
7157 2016-03-31 Martin Liska <mliska@suse.cz>
7158
7159 * passes.c (execute_one_pass): Do not call
7160 todo_after for a discarded function.
7161
7162 2016-03-31 Bin Cheng <bin.cheng@arm.com>
7163
7164 * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
7165 (no_cost, infinite_cost): Initialize the new field.
7166 (get_computation_cost_at): Record setup cost.
7167 (determine_use_iv_cost_address): Skip cost computation for sub
7168 uses if we can estimate it without losing accuracy.
7169
7170 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
7171
7172 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
7173 estimates here.
7174 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
7175 max_loop_iterations_int.
7176 (tree_unswitch_outer_loop): Likewise.
7177 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
7178 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
7179
7180 2016-03-30 Richard Biener <rguenther@suse.de>
7181
7182 PR middle-end/70450
7183 * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
7184
7185 2016-03-30 Jakub Jelinek <jakub@redhat.com>
7186
7187 PR target/70421
7188 * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
7189 in gen_blendm expander.
7190
7191 2016-03-30 Nick Clifton <nickc@redhat.com>
7192
7193 PR target/62254
7194 * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
7195 case where we are already provided with an SImode SUBREG.
7196
7197 2016-03-30 H.J. Lu <hongjiu.lu@intel.com>
7198
7199 PR target/70439
7200 * config/i386/i386.c (ix86_expand_epilogue): Properly check
7201 conflict between DRAP register and __builtin_eh_return.
7202
7203 2016-03-30 Michael Matz <matz@suse.de>
7204 Richard Biener <rguenther@suse.de>
7205
7206 PR ipa/12392
7207 * ipa-polymorphic-call.c (struct type_change_info): Change
7208 speculative to an unsigned allowing to limit the work we do.
7209 (csftc_abort_walking_p): New inline function..
7210 (check_stmt_for_type_change): Limit the number of may-defs
7211 skipped for speculative devirtualization to
7212 max-speculative-devirt-maydefs.
7213 * params.def (max-speculative-devirt-maydefs): New param.
7214 * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
7215
7216 2016-03-30 Mike Stump <mrs@gcc.gnu.org>
7217
7218 PR target/63890
7219 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
7220 and TARGET_MACHO.
7221
7222 2016-03-30 Patrick Palka <ppalka@gcc.gnu.org>
7223
7224 PR tree-optimization/59124
7225 * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
7226 where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
7227
7228 2016-03-29 Jeff Law <law@redhat.com>
7229
7230 * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
7231
7232 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
7233
7234 * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
7235 to HOST_WIDE_INT.
7236
7237 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
7238
7239 * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
7240 * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
7241 gcrt0.o if linking dynamically.
7242
7243 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
7244
7245 PR ipa/70283
7246 * ipa-devirt.c (methods_equal_p): New function.
7247 (compare_virtual_tables): Use it.
7248 * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
7249 * cgraphclones.c (clone_function_name_1): Use
7250 symbol_table::symbol_suffix_separator.
7251 * coverage.c (build_var): Likewise.
7252 * symtab.c (symbol_table::symbol_suffix_separator): New.
7253
7254 2016-03-29 Jakub Jelinek <jakub@redhat.com>
7255
7256 PR rtl-optimization/70429
7257 * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
7258 (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
7259 mode != result_mode.
7260
7261 PR c++/70353
7262 * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
7263
7264 PR tree-optimization/70405
7265 * ssa-iterators.h (num_imm_uses): Add missing braces.
7266
7267 2016-03-29 Vladimir Makarov <vmakarov@redhat.com>
7268
7269 PR rtl-optimization/68695
7270 * ira-color.c (allocno_copy_cost_saving): New.
7271 (improve_allocation): Use it.
7272
7273 2016-03-29 Richard Henderson <rth@redhat.com>
7274
7275 PR middle-end/70355
7276 * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
7277
7278 2016-03-29 Richard Biener <rguenther@suse.de>
7279
7280 PR middle-end/70424
7281 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
7282 use alignment returned by get_pointer_alignment_1 if it is
7283 bigger than BITS_PER_UNIT.
7284 * builtins.c (get_pointer_alignment_1): Do not return true
7285 for alignment extracted from SSA info.
7286
7287 2016-03-28 James Bowman <james.bowman@ftdichip.com>
7288
7289 * config/ft32/ft32.opt (mnodiv): New.
7290 * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
7291 * doc/invoke.texi (FT32 Options -mnodiv): New.
7292
7293 2016-03-28 Kirill Yukhin <kirill.yukhin@intel.com>
7294
7295 PR target/70406
7296 * config/i386/i386.md (define_split, andn): Fix modes.
7297
7298 2016-03-26 Richard Biener <rguenther@suse.de>
7299 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7300
7301 PR ipa/70366
7302 * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
7303 instead of
7304 TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
7305 as 2nd argument to cl_optimization_restore().
7306
7307 2016-03-25 Richard Henderson <rth@redhat.com>
7308
7309 PR target/70120
7310 * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
7311 * config/aarch64/aarch64-protos.h: Declare it.
7312 * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
7313
7314 2016-03-25 Alan Modra <amodra@gmail.com>
7315
7316 PR target/70052
7317 * config/rs6000/constraints.md (j): Simplify.
7318 * config/rs6000/predicates.md (easy_fp_constant): Exclude
7319 decimal float 0.D.
7320 * config/rs6000/rs6000.md (zero_fp): New mode_attr.
7321 (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
7322 mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
7323 in all constraint alternatives.
7324 (movtd_64bit_nodm): Delete "j" constraint alternative.
7325
7326 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
7327
7328 * tree-ssa-propagate.c: Enhance docs for
7329 SSA_PROP_NOT_INTERESTING.
7330
7331 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
7332
7333 * doc/extend.texi: Fix typo in documentation to pure attribute.
7334
7335 2016-03-24 John David Anglin <danglin@gcc.gnu.org>
7336
7337 PR target/70319
7338 * config/pa/pa.md (bswapdi2): Use a scratch register.
7339
7340 2016-03-24 Richard Henderson <rth@redhat.com>
7341
7342 PR middle-end/69845
7343 * fold-const.c (extract_muldiv_1): Correct test for multiplication
7344 overflow.
7345
7346 2016-03-24 Uros Bizjak <ubizjak@gmail.com>
7347
7348 * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
7349 using ix86_expand_binary_operator instead of gen_andsi3.
7350
7351 2016-03-24 Richard Biener <rguenther@suse.de>
7352
7353 PR tree-optimization/70396
7354 * tree-vect-stmts.c (vectorizable_comparison): Use
7355 get_vectype_for_scalar_type.
7356
7357 2016-03-24 Richard Biener <rguenther@suse.de>
7358
7359 PR middle-end/70370
7360 * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
7361 with register bases.
7362
7363 2016-03-24 Richard Biener <rguenther@suse.de>
7364
7365 PR tree-optimization/70372
7366 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
7367 build_all_ones_cst to also handle vector types correctly.
7368
7369 2016-03-23 Michael Meissner <meissner@linux.vnet.ibm.com>
7370
7371 PR target/70381
7372 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
7373 -mfloat128 here.
7374
7375 2016-03-23 Marek Polacek <polacek@redhat.com>
7376
7377 PR c++/69884
7378 * doc/invoke.texi: Document -Wignored-attributes.
7379
7380 2016-03-23 Bin Cheng <bin.cheng@arm.com>
7381
7382 PR tree-optimization/69042
7383 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
7384 parameter from 30 to 40.
7385
7386 2016-03-23 Bin Cheng <bin.cheng@arm.com>
7387
7388 PR tree-optimization/69042
7389 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
7390 for use with constant offset stripped in base.
7391
7392 2016-03-23 Richard Biener <rguenther@suse.de>
7393
7394 PR middle-end/70251
7395 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
7396 mode compatibility check.
7397 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
7398
7399 2016-03-23 Jeff Law <law@redhat.com>
7400
7401 PR tree-optimization/64058
7402 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
7403 CONFLICT_COUNT.
7404 (struct ssa_conflicts): Move up earlier in the file.
7405 (conflicts_, var_map_): New static variables.
7406 (initialize_conflict_count): New function to initialize the
7407 CONFLICT_COUNT field for each conflict pair.
7408 (compare_pairs): Lazily initialize the conflict count and use it
7409 as the first tie-breaker.
7410 (sort_coalesce_list): Add new arguments conflicts, map. Initialize
7411 and wipe conflicts_ and map_ around the call to qsort. Remove
7412 special case for 2 coalesce pairs.
7413 * bitmap.c (bitmap_count_unique_bits): New function.
7414 (bitmap_count_bits_in_word): New function, extracted from
7415 bitmap_count_bits.
7416 (bitmap_count_bits): Use bitmap_count_bits_in_word.
7417 * bitmap.h (bitmap_count_unique_bits): Declare it.
7418
7419 2016-03-23 Ilya Enkovich <enkovich.gnu@gmail.com>
7420
7421 PR target/69917
7422 * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
7423 transparent alias chain for decl assembler name.
7424 * config/sol2.c (solaris_assemble_visibility): Likewise.
7425
7426 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7427
7428 * config/arm/arm1020e.md (1020call_op): Reduce reservation
7429 duration.
7430 (v10_fdivs): Likewise.
7431 (v10_fdivd): Likewise.
7432
7433 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7434
7435 PR driver/70132
7436 * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
7437 to not call fclose twice on file.
7438
7439 2016-03-23 Jakub Jelinek <jakub@redhat.com>
7440
7441 PR tree-optimization/70354
7442 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
7443 oprnd0 is wider than oprnd1 and there is a cast from the wider
7444 type to oprnd1, mask it with the mask of the narrower type.
7445
7446 PR target/70321
7447 * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
7448 Optimize TARGET_STV splitters, if high or low word of last argument
7449 is 0 or -1.
7450
7451 2016-03-22 Jeff Law <law@redhat.com>
7452
7453 PR target/70232
7454 tree-ssa-threadbackward.c
7455 (fsm_find_control_statement_thread_paths): Correctly distinguish
7456 between old style jump threads vs FSM jump threads.
7457
7458 2016-03-22 Ilya Enkovich <enkovich.gnu@gmail.com>
7459
7460 PR target/70302
7461 * config/i386/i386.c (scalar_chain::convert_op): Support
7462 uninitialized register usage case.
7463
7464 2016-03-22 Richard Biener <rguenther@suse.de>
7465
7466 PR middle-end/70251
7467 * genmatch.c (gen_transform): Adjust last parameter to a three-state
7468 int...
7469 (capture::gen_transform): ... to change behavior when substituting
7470 a condition into cond or not-cond expr context.
7471 (dt_simplify::gen_1): Adjust.
7472 * gimple-match-head.c: Include gimplify.h for unshare_expr.
7473 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
7474 last change and instead change to
7475 A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
7476 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
7477
7478 2016-03-22 Anthony Green <green@moxielogic.com>
7479
7480 * config/moxie/moxiebox.h (CC1_SPEC): Define. Fix endianness
7481 issue for moxiebox targets.
7482 (CC1PLUS_SPEC): Ditto.
7483
7484 2016-03-22 Richard Biener <rguenther@suse.de>
7485
7486 PR middle-end/70333
7487 * fold-const.c (extract_muldiv_1): Properly perform multiplication
7488 in the wide type.
7489
7490 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
7491
7492 * config/i386/i386.c (def_builtin): Remove duplicated functionality.
7493
7494 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
7495
7496 PR target/70325
7497 * config/i386/i386.c (def_builtin): Handle
7498 OPTION_MASK_ISA_AVX512VL to be and-ed with other
7499 bits.
7500 (const struct builtin_description bdesc_special_args[]):
7501 Remove duplicate ISA bits.
7502
7503 2016-03-22 Jakub Jelinek <jakub@redhat.com>
7504
7505 PR target/70329
7506 * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
7507 d.perm[i] for i >= d.nelt. If not full_interleave, compute d.perm[i]
7508 in a way that works also for AVX512BW.
7509
7510 PR target/70300
7511 * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
7512 instead of source if operands[1] is xmm16 and above and
7513 !TARGET_AVX512VL. Use avx512f_vec_dupv16sf_1 instead of
7514 vec_interleave_lowv4sf if we need to unpack xmm16 and above.
7515
7516 PR c++/70295
7517 * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
7518 on assign if (*from_p) is a comparison, set it to
7519 TREE_NO_WARNING (*from_p).
7520
7521 2016-03-21 Jakub Jelinek <jakub@redhat.com>
7522
7523 PR middle-end/70326
7524 * lra.c (restore_scratches): Ignore deleted insns.
7525
7526 2016-03-21 Marc Glisse <marc.glisse@inria.fr>
7527 Jakub Jelinek <jakub@redhat.com>
7528
7529 PR tree-optimization/70317
7530 * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
7531 to HONOR_NANS.
7532
7533 2016-03-21 Uros Bizjak <ubizjak@gmail.com>
7534
7535 PR target/70327
7536 * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
7537 of ix86_expand_move.
7538 (movoi): Ditto.
7539 (movti): Use general_operand for operand 1 predicate.
7540
7541 2016-03-21 Martin Liska <mliska@suse.cz>
7542
7543 * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
7544 insns.
7545 (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
7546
7547 2016-03-21 Martin Liska <mliska@suse.cz>
7548
7549 PR ipa/70306
7550 * ipa-icf.c (sem_function::parse): Skip static
7551 constructors and destructors.
7552
7553 2016-03-21 Jakub Jelinek <jakub@redhat.com>
7554
7555 PR target/70296
7556 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
7557 function-like macro, peek following token(s) if it is followed
7558 by CPP_OPEN_PAREN token with optional padding in between, and
7559 if not, don't treat it like a macro.
7560
7561 2016-03-21 Thomas Schwinge <thomas@codesourcery.com>
7562 Alexander Monakov <amonakov@ispras.ru>
7563
7564 * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
7565 for the stabs debug format.
7566
7567 2016-03-21 Richard Biener <rguenther@suse.de>
7568
7569 PR tree-optimization/70310
7570 * tree-vect-generic.c (expand_vector_condition): Fold the built
7571 condition.
7572
7573 2016-03-21 Kirill Yukhin <kirill.yukhin@intel.com>
7574
7575 PR target/70293
7576 * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
7577 Block third alternative for AVX-512VL target,
7578
7579 2016-03-21 Martin Liska <mliska@suse.cz>
7580
7581 PR hsa/70234
7582 * hsa-brig.c (emit_function_directives): Mark unemitted
7583 global variables for emission.
7584 * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
7585 (get_symbol_for_decl): Likewise.
7586 * hsa.h (struct hsa_symbol): New flag.
7587
7588 2016-03-21 Richard Biener <rguenther@suse.de>
7589
7590 PR tree-optimization/70288
7591 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
7592 we do not estimate unsimplified all-constant conditionals or
7593 switches as optimized away.
7594
7595 2016-03-21 Andrey Belevantsev <abel@ispras.ru>
7596
7597 PR rtl-optimization/69102
7598 * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
7599 when we have a readonly dependency context.
7600
7601 2016-03-18 Jeff Law <law@redhat.com>
7602
7603 PR rtl-optimization/70263
7604 * ira.c (memref_used_between_p): Assert we found END in the insn chain.
7605 (update_equiv_regs): When trying to move a store to after the insn
7606 that sets the source of the store, make sure the store occurs after
7607 the insn that sets the source of the store. When successful note
7608 the REG_EQUIV note created in the dump file.
7609
7610 2016-03-16 David Wohlferd <dw@LimeGreenSocks.com>
7611 Bernd Schmidt <bschmidt@redhat.com>
7612
7613 * doc/extend.texi: Document more potential problems with basic asms.
7614
7615 2016-03-18 Bernd Schmidt <bschmidt@redhat.com>
7616
7617 PR rtl-optimization/70278
7618 * lra-constraints.c (split_reg): Handle the case where biggest_mode is
7619 VOIDmode.
7620
7621 2016-03-18 Jason Merrill <jason@redhat.com>
7622
7623 * calls.c (load_register_parameters): Fix zero size sibcall logic.
7624
7625 2016-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
7626
7627 * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
7628 values to 128b regs.
7629
7630 2016-03-18 Ilya Enkovich <enkovich.gnu@gmail.com>
7631
7632 PR tree-optimization/70252
7633 * tree-vect-stmts.c (supportable_widening_operation): Check resulting
7634 boolean vector has a proper number of elements.
7635 (supportable_narrowing_operation): Likewise.
7636
7637 2016-03-18 Tom de Vries <tom@codesourcery.com>
7638
7639 PR ipa/70269
7640 * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
7641
7642 2016-03-18 Jakub Jelinek <jakub@redhat.com>
7643
7644 * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
7645 instead of replace_rtx for DEBUG_INSNs.
7646
7647 2016-03-18 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
7648
7649 * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
7650 load type reservations.
7651
7652 2016-03-17 John David Anglin <danglin@gcc.gnu.org>
7653
7654 PR target/70188
7655 * config/pa/constraints.md: Revert 2015-02-13 change. Use
7656 define_constraint for "Q" and "T" constraints.
7657
7658 2016-03-17 Evandro Menezes <e.menezes@samsung.com>
7659
7660 Tweak the pipeline model for Exynos M1
7661
7662 * config/aarch64/aarch64.c (exynosm1_tunings): Enable weak prefetching
7663 model.
7664
7665 2016-03-17 David Malcolm <dmalcolm@redhat.com>
7666
7667 PR c/70264
7668 * diagnostic-show-locus.c (compatible_locations_p): Handle the case
7669 where one or both locations aren't within a line_map.
7670
7671 2016-03-17 H.J. Lu <hongjiu.lu@intel.com>
7672
7673 PR driver/70192
7674 * opts.c (finish_options): Don't set flag_pie to the default if
7675 -fpic, -fPIC, -fno-pic or -fno-PIC is used. Set flag_pic to 0
7676 if it is -1.
7677
7678 2016-03-17 Joern Rennecke <joern.rennecke@embecosm.com>
7679
7680 * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
7681 true as ALL_REGS argument to replace_rtx.
7682
7683 2016-03-17 Richard Biener <rguenther@suse.de>
7684
7685 PR debug/70271
7686 * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
7687 last.
7688
7689 2016-03-17 Jakub Jelinek <jakub@redhat.com>
7690
7691 PR target/70245
7692 * rtl.h (replace_rtx): Add ALL_REGS argument.
7693 * rtlanal.c (replace_rtx): Likewise. If true, use REGNO
7694 equality and assert mode is the same, instead of just rtx pointer
7695 equality.
7696 * config/i386/i386.md (mov + arithmetics with load peephole): Pass
7697 true as ALL_REGS argument to replace_rtx.
7698
7699 2016-03-17 Ilya Enkovich <enkovich.gnu@gmail.com>
7700
7701 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
7702 for boolean vector with vector mode only.
7703 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
7704
7705 2016-03-17 Nick Clifton <nickc@redhat.com>
7706
7707 PR target/70162
7708 * config/rx/rx.c (rx_print_integer): Print negative constants in
7709 decimal.
7710
7711 2016-03-17 Jakub Jelinek <jakub@redhat.com>
7712
7713 PR target/70261
7714 * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
7715
7716 2016-03-16 Richard Henderson <rth@redhat.com>
7717 Richard Biener <rguenth@suse.de>
7718
7719 PR middle-end/70240
7720 PR middle-end/68215
7721 PR tree-opt/68714
7722 * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
7723 first operand as is_gimple_condexpr.
7724
7725 PR middle-end/70240
7726 PR middle-end/68215
7727 Revert r231575
7728 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
7729 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
7730 Do not gimplify the result.
7731 (do_unop): Adjust call to tree_vec_extract.
7732 (do_binop): Likewise.
7733 (do_compare): Likewise.
7734 (do_plus_minus): Likewise.
7735 (do_negate): Likewise.
7736 (expand_vector_condition): Likewise.
7737 (do_cond): Likewise.
7738
7739 2016-03-16 Richard Henderson <rth@redhat.com>
7740
7741 PR target/70048
7742 * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
7743 (aarch64_classify_address): Use it.
7744 (aarch64_legitimize_address): Force all subexpressions of PLUS
7745 into registers. Simplify as (sfp+const)+reg or (reg+reg)+const.
7746
7747 2016-03-16 Jakub Jelinek <jakub@redhat.com>
7748 Richard Biener <rguenth@suse.de>
7749
7750 PR target/70245
7751 * rtlanal.c (replace_rtx): For REG, if from is a REG,
7752 return to even if only REGNO is equal, and assert
7753 mode is the same.
7754
7755 2016-03-11 Jeff Law <law@redhat.com>
7756
7757 PR rtl-optimization/70224
7758 * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
7759
7760 2016-03-16 Richard Henderson <rth@redhat.com>
7761
7762 PR middle-end/70199
7763 * function.h (struct function): Add has_forced_label_in_static.
7764 * gimplify.c (force_labels_r): Set it.
7765 * lto-streamer-in.c (input_struct_function_base): Read it.
7766 * lto-streamer-out.c (output_struct_function_base): Write it.
7767 * tree-inline.c (has_label_address_in_static_1): Remove.
7768 (copy_forbidden): Remove fndecl parameter; test
7769 has_forced_label_in_static.
7770 (inline_forbidden_p): Update call to copy_forbidden.
7771 (tree_versionable_function_p): Likewise.
7772 * ipa-chkp.c (chkp_instrumentable_p): Likewise.
7773 (chkp_versioning): Likewise.
7774 * tree-inline.h (copy_forbidden): Update decl.
7775
7776 2016-03-16 Marek Polacek <polacek@redhat.com>
7777
7778 PR c/70093
7779 * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
7780 function being thunked if the result type doesn't have fixed size.
7781 * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
7782 doesn't have fixed size.
7783
7784 2016-03-16 Bin Cheng <bin.cheng@arm.com>
7785
7786 * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
7787 reporting malformed loop nest.
7788
7789 2016-03-16 Tom de Vries <tom@codesourcery.com>
7790
7791 PR lto/70187
7792 * ipa-devirt.c (possible_polymorphic_call_targets): Move
7793 nodes.length () == 1 test to before first nodes[0] access.
7794
7795 2016-03-16 Tom de Vries <tom@codesourcery.com>
7796
7797 PR tree-optimization/68715
7798 * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
7799 single_pred_p test.
7800
7801 2016-03-16 Tom de Vries <tom@codesourcery.com>
7802
7803 PR tree-optimization/68809
7804 * graphite-scop-detection.c (same_close_phi_node): Test if result types
7805 are the same.
7806
7807 2016-03-16 Carlos O'Donell <carlos@redhat.com>
7808 Sandra Loosemore <sandra@codesourcery.com>
7809
7810 * doc/extend.texi (Common Function Attributes): Describe ifunc impact
7811 on leaf attribute. Mention ELF interposition problems.
7812
7813 2016-03-16 Alan Modra <amodra@gmail.com>
7814
7815 PR rtl-optimization/69195
7816 PR rtl-optimization/47992
7817 * ira.c (indirect_jump_optimize): Ignore artificial defs.
7818 Add comments.
7819
7820 2016-03-15 Eric Botcazou <ebotcazou@adacore.com>
7821
7822 PR bootstrap/69513
7823 * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
7824
7825 2016-03-15 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
7826
7827 * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
7828
7829 2016-03-15 Jakub Jelinek <jakub@redhat.com>
7830
7831 PR rtl-optimization/70222
7832 * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
7833 optimization if mode is different from result_mode, queue up masking
7834 of the result in outer_op. Formatting fix.
7835
7836 PR middle-end/70239
7837 * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
7838 of safe_grow.
7839
7840 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
7841
7842 PR rtl-optimization/69032
7843 * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
7844 looping backwards over basic block insns.
7845
7846 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
7847
7848 PR target/66660
7849 * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
7850 to non-speculative when propagating trap bits.
7851
7852 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
7853
7854 PR rtl-optimization/63384
7855 * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
7856 DEBUG_INSN_P insns.
7857
7858 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
7859
7860 PR target/64411
7861 * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
7862 factored out from ...
7863 (sched_analyze_insn): ... here.
7864 * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
7865 * sel-sched-ir.c (setup_id_implicit_regs): New function, use
7866 get_implicit_reg_pending_clobbers in it.
7867 (setup_id_reg_sets): Use setup_id_implicit_regs.
7868 (deps_init_id): Ditto.
7869
7870 2016-03-15 Tom de Vries <tom@codesourcery.com>
7871
7872 PR ipa/70161
7873 * cgraph.c (cgraph_node::get_body): Save, reset and restore
7874 dump_file_name.
7875 * passes.c (execute_one_ipa_transform_pass): Add missing argument to
7876 execute_function_dump.
7877 (execute_one_pass): Don't dump function if it will be dumped after ipa
7878 transform.
7879
7880 2016-03-15 Segher Boessenkool <segher@kernel.crashing.org>
7881
7882 * genrecog.c (match_pattern_2): If pred is NULL don't call
7883 safe_predicate_mode on it.
7884
7885 2016-03-14 Jakub Jelinek <jakub@redhat.com>
7886
7887 PR middle-end/70219
7888 * lra-constraints.c (delete_move_and_clobber): Change assertion
7889 to also allow dregno == 0.
7890
7891 2016-03-14 Richard Henderson <rth@redhat.com>
7892
7893 PR tree-opt/68714
7894 * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
7895 (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
7896 (reassociate_bb): Use optimize_vec_cond_expr; avoid
7897 optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
7898 on vectors.
7899
7900 2016-03-14 Bernd Schmidt <bschmidt@redhat.com>
7901
7902 PR target/70083
7903 * lra-lives.c (process_bb_lives): Also update biggest mode for hard
7904 regs.
7905 (lra_create_live_ranges_1): initialize hard register biggest_mode to
7906 VOIDmode.
7907 * lra-constraints.c (split_reg): For hard regs, try to find the
7908 biggest single-register mode used in the function.
7909
7910 2016-03-14 Richard Biener <rguenther@suse.de>
7911
7912 PR tree-optimization/56365
7913 * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
7914 constants to compare against.
7915
7916 2016-03-14 Segher Boessenkool <segher@kernel.crashing.org>
7917
7918 PR target/70098
7919 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
7920 *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
7921 (define_split for the GPR case): Use int_reg_operand instead of
7922 gpc_reg_operand for the output.
7923
7924 2016-03-14 Tom de Vries <tom@codesourcery.com>
7925
7926 PR tree-optimization/70045
7927 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
7928 create_empty_if_region_on_edge argument.
7929
7930 2016-03-13 Eric Botcazou <ebotcazou@adacore.com>
7931
7932 * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
7933 (STACK_CHECK_PROTECT): Likewise.
7934 * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
7935 (STACK_CHECK_PROTECT): Likewise.
7936 * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
7937 (STACK_CHECK_PROTECT): Likewise.
7938 * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
7939 * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
7940 (STACK_CHECK_PROTECT): Likewise.
7941
7942 2016-03-12 Andrey Belevantsev <abel@ispras.ru>
7943
7944 PR rtl-optimization/69307
7945 * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
7946 registers in modes that span more than one register.
7947
7948 2016-03-12 Vladimir Makarov <vmakarov@redhat.com>
7949
7950 PR target/69614
7951 * lra-constraints.c (delete_move_and_clobber): New.
7952 (remove_inheritance_pseudos): Use it.
7953
7954 2016-03-12 Eric Botcazou <ebotcazou@adacore.com>
7955
7956 PR ada/70017
7957 * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
7958 the libcall is LCT_THROW.
7959 * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
7960 for the checking routine.
7961
7962 2016-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
7963
7964 PR target/70131
7965 * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
7966 optimization if we have direct move.
7967 (roundu32<mode>2_fprs): Likewise.
7968
7969 2016-03-11 Bernd Schmidt <bschmidt@redhat.com>
7970
7971 PR target/70123
7972 * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
7973 be rematerialized.
7974 (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
7975 Arguments swapped. All callers changed. Take reg_renumber into
7976 account, and Calculate and compare register ranges for hard regs.
7977
7978 2016-03-11 Jeff Law <law@redhat.com>
7979
7980 PR tree-optimization/70190
7981 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
7982 Handle cases where we can not extract the taken edge, even though we
7983 found a constant value.
7984
7985 PR tree-optimization/64058
7986 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
7987 (num_coalesce_pairs): Move up earlier in file.
7988 (find_coalesce_pair): Initialize the INDEX field for each pair
7989 discovered.
7990 (compare_pairs): No longer sort on the elements in each pair.
7991 Instead break ties with the index of the coalesce pair.
7992
7993 2016-03-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7994
7995 PR target/70002
7996 * config/aarch64/aarch64-protos.h
7997 (aarch64_save_restore_target_globals): New prototype.
7998 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
7999 Call the above when popping pragma.
8000 * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
8001 New function.
8002 (aarch64_set_current_function): Rewrite using the above.
8003
8004 2016-03-11 Jakub Jelinek <jakub@redhat.com>
8005
8006 PR tree-optimization/70177
8007 * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
8008 (extract_ops_from_tree): ... this. In the 2 argument
8009 overload remove _1 suffix.
8010 * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
8011 (extract_ops_from_tree): ... this.
8012 * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
8013 Adjust callers.
8014 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
8015 * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
8016 extract_ops_from_tree instead of 2 operand one.
8017
8018 2016-03-11 Alan Lawrence <alan.lawrence@arm.com>
8019
8020 PR tree-optimization/70013
8021 * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
8022 for constant-pool entries.
8023
8024 2016-03-11 Jakub Jelinek <jakub@redhat.com>
8025
8026 PR rtl-optimization/70174
8027 * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
8028 followed by gen_lowpart on force_reg instead of just gen_lowpart.
8029
8030 PR tree-optimization/70169
8031 * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
8032 LABEL_DECL like VAR_DECL. Emit nothing instead of gcc_unreachable
8033 for unknown codes.
8034
8035 2016-03-11 Ilya Enkovich <enkovich.gnu@gmail.com>
8036 Jakub Jelinek <jakub@redhat.com>
8037
8038 PR target/70160
8039 * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
8040 of uninitialized values.
8041
8042 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8043
8044 * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
8045 define_expand.
8046 ("*trunctddd2"): New pattern definition.
8047 ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
8048 TD->DD truncation.
8049
8050 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8051
8052 * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
8053 definitions for BFP and DFP rounding modes.
8054 ("fixuns_truncdddi2", "fixuns_trunctddi2")
8055 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
8056 ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
8057 ("fix_trunctf<mode>2"): Use the new constants instead of magic
8058 numbers.
8059
8060 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8061
8062 * config/s390/constraints.md: Adjust comment.
8063 ("Y"): Adjust comment. Rename s390_decompose_shift_count to
8064 s390_decompose_addrstyle_without_index.
8065 * config/s390/predicates.md (shift_count_or_setmem_operand):
8066 Rename to setmem_operand.
8067 * config/s390/s390-protos.h
8068 (s390_decompose_shift_count): Rename to
8069 s390_decompose_addrstyle_without_index.
8070 * config/s390/s390.c (s390_decompose_shift_count)
8071 (s390_mem_constraint, print_shift_count_operand)
8072 (print_operand_address, print_operand): Rename
8073 s390_decompose_shift_count to
8074 s390_decompose_addrstyle_without_index and rename
8075 print_shift_count_operand to print_addrstyle_operand troughout the
8076 file.
8077 * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
8078 ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
8079 Rename shift_count_or_setmem_operand to setmem_operand.
8080 * config/s390/vx-builtins.md ("vec_insert<mode>")
8081 ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
8082 nonmemory_operand.
8083
8084 2016-03-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8085
8086 PR target/70168
8087 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
8088 Handle overlapping retval and newval.
8089
8090 2016-03-10 Nick Clifton <nickc@redhat.com>
8091
8092 PR target/7044
8093 * config/aarch64/aarch64.c
8094 (aarch64_override_options_after_change_1): When forcing
8095 flag_omit_frame_pointer to be true, use a special value that can
8096 be detected if this function is called again, thus preventing
8097 flag_omit_leaf_frame_pointer from being forced to be false.
8098
8099 2016-03-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8100
8101 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
8102 Set x_flag_omit_leaf_frame_pointer when handling
8103 -momit-leaf-frame-pointer.
8104
8105 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
8106
8107 PR lto/69589
8108 * cgraph.c (cgraph_node::dump): Dump split_part and
8109 indirect_call_target.
8110 * cgraph.h (cgraph_node): Add indirect_call_target flag.
8111 * ipa.c (has_addr_references_p): Cleanup.
8112 (is_indirect_call_target_p): New.
8113 (walk_polymorphic_call_targets): Do not mark virtuals that may be
8114 called indirectly as local.
8115 (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
8116
8117 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
8118
8119 PR ipa/69630
8120 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
8121 on cxa_pure_virtual.
8122
8123 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
8124
8125 PR lto/69589
8126 * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
8127
8128 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
8129
8130 PR lto/69589
8131 * tree.c (need_assembler_name_p): Only record main variant type names.
8132
8133 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
8134
8135 PR target/70113.
8136 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
8137 Always define to 0 or 1.
8138 (TARGET_FIX_ERR_A53_843419): New macro.
8139 * config/aarch64/aarch64-elf-raw.h
8140 (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
8141 * config/aarch64/aarch64-linux.h: Likewise.
8142 * config/aarch64/aarch64.c
8143 (aarch64_override_options_after_change_1): Do not default
8144 aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
8145 843419 is on.
8146 (aarch64_attributes): Handle fix-cortex-a53-843419.
8147 (aarch64_can_inline_p): Likewise.
8148 * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
8149
8150 2016-03-10 Alan Lawrence <alan.lawrence@arm.com>
8151 Jakub Jelinek <jakub@redhat.com>
8152
8153 * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
8154 * tree.c (array_at_struct_end_p): Do not limit to size of decl for
8155 DECL_COMMONS if flag_unconstrained_commons is set.
8156 * tree-dfa.c (get_ref_base_and_extent): Likewise.
8157 * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
8158 (funconstrained-commons): Document.
8159
8160 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
8161
8162 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
8163 aarch64-fusion-pairs.def and aarch64-tuning-flags.def
8164
8165 2016-03-10 Ilya Enkovich <enkovich.gnu@gmail.com>
8166
8167 * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
8168 has a proper number of elements.
8169
8170 2016-03-10 Alan Modra <amodra@gmail.com>
8171
8172 PR rtl-optimization/69195
8173 PR rtl-optimization/47992
8174 * ira.c (recorded_label_ref): Delete.
8175 (update_equiv_regs): Return void.
8176 (indirect_jump_optimize): New function.
8177 (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
8178 before regstat_compute_ri. Don't rebuild_jump_labels here.
8179 Delete update_regstat.
8180
8181 2016-03-10 Richard Biener <rguenther@suse.de>
8182
8183 PR tree-optimization/70128
8184 * tree-ssa-structalias.c (set_uids_in_ptset): Set
8185 vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
8186
8187 2016-03-09 Jakub Jelinek <jakub@redhat.com>
8188
8189 PR tree-optimization/70152
8190 * tree-sra.c (replace_removed_params_ssa_names): Copy over
8191 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
8192
8193 PR target/70086
8194 * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
8195 instead of gen_sse2_loadlpd.
8196 * config/i386/sse.md (*vec_concatv2df): Rename to...
8197 (vec_concatv2df): ... this.
8198
8199 PR tree-optimization/70127
8200 * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
8201
8202 2016-03-09 David Malcolm <dmalcolm@redhat.com>
8203
8204 PR c/68473
8205 PR c++/70105
8206 * diagnostic-show-locus.c (compatible_locations_p): New function.
8207 (layout::layout): Sanitize ranges using compatible_locations_p.
8208
8209 2016-03-09 David Malcolm <dmalcolm@redhat.com>
8210
8211 PR c/68473
8212 PR c++/70105
8213 * diagnostic-show-locus.c (layout_range::layout_range): Replace
8214 location_range param with three const expanded_locations * and a
8215 bool.
8216 (layout::layout): Replace call to
8217 rich_location::lazily_expand_location with get_expanded_location.
8218 Extract the range and perform location expansion here, passing
8219 the results to the layout_range ctor.
8220 * diagnostic.c (source_range::debug): Delete.
8221 * diagnostic.h (diagnostic_expand_location): Reimplement in terms
8222 of rich_location::get_expanded_location.
8223 * gcc-rich-location.c (get_range_for_expr): Delete.
8224 (gcc_rich_location::add_expr): Reimplement to avoid the
8225 rich_location::add_range overload that took a location_range,
8226 passing a location_t instead.
8227
8228 2016-03-09 Richard Biener <rguenther@suse.de>
8229 Jakub Jelinek <jakub@redhat.com>
8230
8231 PR tree-optimization/70138
8232 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
8233 Also skip vect_double_reduction_def.
8234
8235 2016-03-09 Jakub Jelinek <jakub@redhat.com>
8236
8237 PR target/70049
8238 * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
8239 if the operand is "m".
8240
8241 2016-03-09 Nathan Sidwell <nathan@acm.org>
8242
8243 * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
8244
8245 2016-03-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
8246
8247 * config/i386/i386.c (processor_target_table): Fix cost table
8248 intialization order for znver1.
8249
8250 2016-03-08 Jakub Jelinek <jakub@redhat.com>
8251
8252 * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
8253 - becuase -> because.
8254 * ipa-reference.c (ignore_module_statics): Likewise.
8255 * cgraph.c (cgraph_node::get_body): Likewise.
8256 * ipa-inline.c (early_inliner): Likewise.
8257 * ipa-devirt.c (types_same_for_odr): Likewise.
8258 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
8259 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
8260
8261 2016-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8262
8263 * tree-ssa-math-opts.c: Fix typo in comment.
8264
8265 2016-03-08 Jakub Jelinek <jakub@redhat.com>
8266
8267 PR target/70110
8268 * config/i386/i386.c (scalar_chain::make_vector_copies,
8269 scalar_chain::convert_reg): Call end_sequence in between
8270 get_insns and emit_conversion_insns rather than after both
8271 calls.
8272
8273 2016-03-07 Uros Bizjak <ubizjak@gmail.com>
8274
8275 PR target/70064
8276 * config/i386/i386.h (machine_function): Add
8277 pc_thunk_call_expanded flag.
8278 (ix86_pc_thunk_call_expanded): New define.
8279 * config/i386/i386.md (set_got, set_got_labelled): New expanders.
8280 (*set_got): Rename insn pattern from set_got.
8281 (*set_got_labelled): Rename inst pattern from set_got_labelled.
8282 * config/i386/i386.c (ix86_compute_frame_layout): Use
8283 ix86_pc_thunk_call_expanded to prevent red-zone.
8284
8285 2016-03-07 Martin Jambor <mjambor@suse.cz>
8286
8287 * hsa.h (hsa_get_ctor_statements): Declare.
8288 (hsa_get_dtor_statements): Likewise.
8289 (hsa_get_kernel_dispatch_type): Likewise.
8290 * hsa.c (hsa_get_ctor_statements): New function.
8291 (hsa_get_dtor_statements): Likewise.
8292 (hsa_get_kernel_dispatch_type): Likewise.
8293 * hsa-brig.c (hsa_cdtor_statements): Removed.
8294 (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
8295 hsa_get_dtor_statements.
8296 * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
8297 (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
8298
8299 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
8300
8301 * config/arm/arm-cores.def (cortex-r8): New.
8302 * config/arm/arm-tables.opt (cortex-r8): Regenerate.
8303 * config/arm/arm-tune.md: Likewise.
8304 * doc/invoke.texi: Add cortex-r8 to list of cpu values.
8305
8306 2016-03-07 Martin Sebor <msebor@redhat.com>
8307
8308 PR rtl-optimization/19705
8309 * doc/invoke.texi (Options That Control Optimization): Clarify
8310 -fno-branch-count-reg.
8311
8312 2016-02-26 Richard Biener <rguenther@suse.de>
8313 Jeff Law <law@redhat.com>
8314
8315 PR tree-optimization/69740
8316 * cfghooks.c (remove_edge): Request loop fixups if we delete
8317 an edge that might turn an irreducible loop into a natural
8318 loop.
8319 * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
8320 Move after definition of loops_state_clear.
8321
8322 2016-03-07 Bin Cheng <bin.cheng@arm.com>
8323
8324 PR rtl-optimization/69052
8325 * rtlanal.c (commutative_operand_precedence): Set higher precedence
8326 to CONST_WIDE_INT.
8327
8328 2016-03-07 Tom de Vries <tom@codesourcery.com>
8329
8330 PR tree-optimization/70116
8331 * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
8332 is_tm_ending stmts and ubsan/asan internal functions.
8333 (find_duplicate): Use it. Don't test is_tm_ending here.
8334
8335 2016-03-07 Richard Biener <rguenther@suse.de>
8336
8337 PR tree-optimization/70115
8338 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
8339 (propagate_constants_for_unrolling): Use replace_uses_by.
8340
8341 2016-03-07 Nathan Sidwell <nathan@codesourcery.com>
8342
8343 PR middle-end/69916
8344 * omp-low.c (struct oacc_loop): Add ifns.
8345 (new_oacc_loop_raw): Initialize it.
8346 (finish_oacc_loop): Clear mask & flags if no ifns.
8347 (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
8348 (oacc_loop_xform_loop): Add ifns arg & adjust.
8349 (oacc_loop_process): Adjust oacc_loop_xform_loop call.
8350
8351 2016-03-07 Richard Henderson <rth@redhat.com>
8352
8353 PR rtl-opt/70061
8354 * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
8355 (insert_value_copy_on_edge): Likewise.
8356
8357 2016-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8358
8359 * config/arm/arm_neon.h: Show error if using with soft-float ABI.
8360
8361 2016-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8362
8363 PR target/62281
8364 * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
8365
8366 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
8367
8368 * config/i386/i386.c (znver1_cost): Fix Multiply cost.
8369
8370 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
8371
8372 Fix sseimul type attribute.
8373 * config/i386/znver1.md
8374 (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
8375 znver1_sseimul_avx256_load) : Fix the type attribute.
8376 (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
8377 pipe usage and latency.
8378
8379 2016-03-05 Jakub Jelinek <jakub@redhat.com>
8380
8381 PR c++/70084
8382 * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
8383 of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
8384 to the right type.
8385
8386 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
8387
8388 PR c/69973
8389 * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
8390
8391 PR rtl-optimization/69941
8392 * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
8393 the reg share its mode.
8394
8395 2016-03-04 Jeff Law <law@redhat.com>
8396
8397 PR tree-optimization/69196
8398 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
8399 If the both SSA_NAMEs are anonymous, then consider them unassociated
8400 and include the PHI in the statement count.
8401
8402 2016-03-05 Tom de Vries <tom@codesourcery.com>
8403
8404 * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
8405 construct in oacc routine. Check for oacc region in oacc routine.
8406
8407 2016-03-04 Jakub Jelinek <jakub@redhat.com>
8408
8409 PR target/70062
8410 * config/i386/i386.c (decide_alg): Add RECUR argument. Revert
8411 2016-02-22 changes, instead don't recurse if RECUR is already true.
8412 Don't change *dynamic_check if RECUR. Adjust recursive caller
8413 to pass true to the new argument.
8414 (ix86_expand_set_or_movmem): Adjust decide_alg caller.
8415
8416 PR target/70059
8417 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
8418 <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
8419 fixes.
8420 (vec_set_hi_<mode><mask_name>): Likewise. Swap VEC_CONCAT operands.
8421
8422 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
8423
8424 PR rtl-optimization/57676
8425 * lra-assigns.c (lra_assign): Guard test for maximum iterations
8426 with flag_checking.
8427
8428 2016-03-04 Ilya Enkovich <enkovich.gnu@gmail.com>
8429
8430 * tree-vect-patterns.c (search_type_for_mask): Handle
8431 comparison of booleans.
8432
8433 2016-03-04 Jakub Jelinek <jakub@redhat.com>
8434
8435 * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
8436 Fix @xref usage.
8437
8438 PR debug/69947
8439 * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
8440 all other ops that have dw_val_class_die_ref operands,
8441 and DW_OP_GNU_entry_value.
8442
8443 2016-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8444
8445 PR rtl-optimization/69904
8446 * config/arm/arm.c (arm_cannot_copy_insn_p):
8447 Return true for load-exclusive instructions.
8448
8449 2016-03-03 Jakub Jelinek <jakub@redhat.com>
8450
8451 PR target/70021
8452 * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
8453 argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
8454 the pattern no matter if it is used just by non-pattern, pattern
8455 or mix thereof.
8456 (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
8457 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
8458 oprnd1 def_stmt is in pattern, don't look through it.
8459
8460 2016-03-03 Marek Polacek <polacek@redhat.com>
8461
8462 PR middle-end/70050
8463 * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
8464
8465 2016-03-03 Martin Liska <mliska@suse.cz>
8466
8467 PR tree-optimization/70043
8468 * tree-vect-loop.c (optimize_mask_stores): Move iterator to
8469 previous statement if we see a debug statement.
8470
8471 2016-03-03 Richard Biener <rguenther@suse.de>
8472
8473 PR tree-optimization/55936
8474 * tree-vrp.c (compare_name_with_value): Add use_equiv_p
8475 parameter and guard unsafe equivalence use.
8476 (vrp_evaluate_conditional_warnv_with_ops): Always use
8477 safe equivalences but not via the quadratic compare_names
8478 helper.
8479
8480 2016-03-03 Michael Collison <michael.collison@linaro.org>
8481
8482 PR target/70014
8483 * config/arm/arm.md (*subsi3_carryin_const): Change predicate
8484 for operand 1 to s_register_operand. Change predicate for operand
8485 2 to arm_not_immediate_operand.
8486
8487 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
8488
8489 * doc/tm.texi: Regenerated.
8490
8491 2016-03-02 Richard Henderson <rth@redhat.com>
8492
8493 PR rtl-opt/67145
8494 * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
8495 simplification when all args are positive non-fixed registers.
8496
8497 2016-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
8498
8499 * target.def (lra_p): Specify that new ports should use LRA.
8500
8501 2016-03-02 Jakub Jelinek <jakub@redhat.com>
8502
8503 PR libgomp/69555
8504 * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
8505 gimplify_type_sizes the type they refer to.
8506 (omp_notice_variable): Handle reference vars to VLAs.
8507 * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
8508 reference to VLA decls in the second pass instead of first pass.
8509
8510 2016-03-02 Tom de Vries <tom@codesourcery.com>
8511
8512 PR tree-optimization/68659
8513 * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
8514 new_expr == NULL_TREE.
8515 (get_new_name): Handle ADDR_EXPR.
8516
8517 2016-03-02 Bin Cheng <bin.cheng@arm.com>
8518
8519 PR rtl-optimization/69052
8520 * loop-invariant.c (canonicalize_address): New function.
8521 (inv_can_prop_to_addr_use): Check validity of address expression
8522 which is canonicalized by above function.
8523
8524 2016-03-02 Alan Modra <amodra@gmail.com>
8525
8526 PR ipa/69990
8527 * ipa-icf.c (sem_variable::merge): Do not merge an alias with
8528 larger alignment.
8529
8530 2016-03-02 Jakub Jelinek <jakub@redhat.com>
8531
8532 PR target/70028
8533 * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
8534 (*movhi_internal): Put mask moves from and to memory separately
8535 from moves from/to GPRs.
8536
8537 2016-03-02 Richard Biener <rguenther@suse.de>
8538
8539 * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
8540 GENERIC expressions in GIMPLE.
8541
8542 2016-03-02 Richard Biener <rguenther@suse.de>
8543
8544 * config/i386/i386.c (type_natural_mode): Fix typo.
8545
8546 2016-03-02 Nick Clifton <nickc@redhat.com>
8547
8548 * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
8549
8550 2016-03-02 Richard Biener <rguenther@suse.de>
8551 Uros Bizjak <ubizjak@gmail.com>
8552
8553 PR target/67278
8554 * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
8555
8556 2016-03-02 Richard Biener <rguenther@suse.de>
8557
8558 PR middle-end/67278
8559 * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
8560
8561 2016-03-02 Marek Polacek <polacek@redhat.com>
8562
8563 PR c/67854
8564 * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
8565 "is promoted to" warning.
8566
8567 2016-03-01 DJ Delorie <dj@redhat.com>
8568
8569 * config.gcc: Deprecate mep-*.
8570
8571 2016-03-01 Vladimir Makarov <vmakarov@redhat.com>
8572
8573 PR middle-end/70025
8574 * lra-constraints.c (regno_val_use_in): New.
8575 (match_reload): Use it instead of regno_use_in.
8576
8577 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
8578
8579 PR rtl-optimization/70007
8580 * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
8581 references present in REG_EQUAL notes attached to non-SET patterns.
8582
8583 2016-03-01 Jeff Law <law@redhat.com>
8584
8585 PR tree-optimization/69196
8586 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
8587 Appropriately clamp the number of statements to copy when the
8588 thread path does not traverse a loop backedge.
8589
8590 PR tree-optimization/69196
8591 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
8592 Do count some PHIs in the thread path against the insn count. Decrease
8593 final statement count by one as the control statement in the last
8594 block will get removed. Remove special cased code for handling PHIs
8595 in the last block.
8596
8597 2016-03-01 Uros Bizjak <ubizjak@gmail.com>
8598
8599 PR target/70027
8600 * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
8601 asm dialect alternatives to explicit GOTPCREL calls.
8602
8603 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
8604
8605 PR ada/70017
8606 * ira.c (do_reload): Issue warning for generic stack checking here...
8607 * reload1.c (reload): ...instead of here and streamline it.
8608
8609 2016-03-01 Nick Clifton <nickc@redhat.com>
8610
8611 * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
8612
8613 2016-03-01 Richard Biener <rguenther@suse.de>
8614
8615 PR tree-optimization/69983
8616 * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
8617 types and fall back to operand_equal_p.
8618
8619 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8620
8621 Revert
8622 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8623
8624 * config/s390/constraints.md ("jm8"): New constraint.
8625 * config/s390/predicates.md ("const_int_8bitset_operand"): New
8626 predicate.
8627 * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
8628 into ...
8629 ("*setmem_long<setmem_and>"): New pattern.
8630 ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
8631 into ...
8632 ("*setmem_long_31z<setmem_and>"): New pattern.
8633 * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
8634 New substitution rules with the required attributes.
8635
8636
8637 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8638
8639 Revert
8640 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8641
8642 * gensupport.c (process_substs_on_one_elem): Split loop to
8643 complete mark_operands_used_in_match_dup on all expressions in the
8644 vector first.
8645 (adjust_operands_numbers): Inline into process_substs_on_one_elem
8646 and remove function.
8647
8648 2016-03-01 Richard Biener <rguenther@suse.de>
8649
8650 PR middle-end/70022
8651 * fold-const.c (fold_indirect_ref_1): Fix range checking for
8652 vector BIT_FIELD_REF extract.
8653
8654 2016-03-01 Richard Biener <rguenther@suse.de>
8655
8656 PR tree-optimization/69994
8657 * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
8658
8659 2016-03-01 Ilya Enkovich <enkovich.gnu@gmail.com>
8660
8661 PR tree-optimization/69956
8662 * tree-vect-stmts.c (supportable_widening_operation): Support
8663 multi-step conversion of boolean vectors.
8664 (supportable_narrowing_operation): Likewise.
8665
8666 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8667
8668 * config/s390/s390.c (s390_decompose_address): Don't accept SImode
8669 anymore.
8670
8671 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8672
8673 * config/s390/subst.md (DSI_VI): New mode iterator.
8674 ("addr_style_op_subst"): Use DSI_VI instead of DSI.
8675 * config/s390/vector.md ("vec_set<mode>"): Move expander before
8676 the insn definition.
8677 ("*vec_set<mode>"): Change predicate and add alternative to
8678 support only either register or const_int operands as element
8679 selector.
8680 ("*vec_set<mode>_plus"): New pattern to support reg + const_int
8681 operands.
8682 ("vec_extract<mode>"): New expander.
8683 ("*vec_extract<mode>"): New insn definition supporting reg and
8684 const_int element selectors.
8685 ("*vec_extract<mode>_plus"): New insn definition supporting
8686 reg+const_int element selectors.
8687 ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
8688 following expander+insn definition.
8689 ("<vec_shifts_name><mode>3"): New expander.
8690 ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
8691
8692 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8693
8694 * config/s390/s390.md ("*tabort_1"): Change predicate to
8695 nonmemory_operand. Add a second alternative to cover
8696 register as well as const int operands.
8697 ("*tabort_1_plus"): New pattern definition.
8698
8699 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8700
8701 * config/s390/s390.md ("*ashrdi3_cc_31")
8702 ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
8703 ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
8704 Merge insn definitions into ...
8705 ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
8706 New pattern definition.
8707 ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
8708 ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
8709 ("*ashr<mode>3_and"): Merge insn definitions into ...
8710 ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
8711 New pattern definition.
8712 * config/s390/subst.md ("addr_style_op_cc_subst")
8713 ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
8714 substitutions patterns plus attributes.
8715 Add ashiftrt to SUBST iterator.
8716
8717 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8718
8719 * config/s390/s390.md ("<shift><mode>3"): Change predicate of
8720 op2 to nonmemory_operand.
8721 ("*<shift>di3_31", "*<shift>di3_31_and"):
8722 Merge into single pattern definition ...
8723 ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
8724 ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
8725 pattern definition ...
8726 ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
8727 * config/s390/subst.md: Add ashift and lshiftrt to SUBST
8728 iterator.
8729
8730 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8731
8732 * config/s390/predicates.md (const_int_6bitset_operand): New
8733 predicate.
8734 * config/s390/s390.md: Include subst.md.
8735 ("rotl<mode>3"): New expander.
8736 ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
8737 ...
8738 ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
8739 * config/s390/subst.md: New file.
8740
8741 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8742
8743 * config/s390/s390.md ("op_type", "atype", "length" attributes):
8744 Remove RRR type. It doesn't really exist.
8745 ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
8746 attributes.
8747 ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
8748 ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
8749 ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
8750 ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
8751 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
8752 ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
8753 `enabled' attribute.
8754
8755 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8756
8757 * gensupport.c (process_substs_on_one_elem): Split loop to
8758 complete mark_operands_used_in_match_dup on all expressions in the
8759 vector first.
8760 (adjust_operands_numbers): Inline into process_substs_on_one_elem
8761 and remove function.
8762
8763 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
8764
8765 PR target/69706
8766 * config/sparc/sparc.c (NWORDS_UP): Rename to...
8767 (CEIL_NWORDS): ...this. Use CEIL macro.
8768 (compute_fp_layout): Adjust to above renaming.
8769 (function_arg_union_value): Likewise.
8770 (sparc_arg_partial_bytes): Likewise.
8771 (sparc_function_arg_advance): Likewise.
8772
8773 2016-02-29 Jeff Law <law@redhat.com>
8774
8775 PR tree-optimization/70005
8776 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
8777 where an object with a boolean range is compared against a value
8778 outside [0..1].
8779
8780 PR tree-optimization/69999
8781 * gimple-ssa-split-paths.c (split_paths): When duplicating a block
8782 with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
8783 loop cleanups.
8784
8785 2016-02-29 Richard Biener <rguenther@suse.de>
8786
8787 PR tree-optimization/69994
8788 * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
8789 (get_unary_op): Look through nop conversions.
8790 (ops_equal_values_p): New function, look for equality diregarding
8791 nop conversions.
8792 (eliminate_plus_minus_pair): Use ops_equal_values_p
8793 (repropagate_negates): Do not use get_unary_op here.
8794
8795 2016-02-29 Martin Liska <mliska@suse.cz>
8796
8797 * system.h: Poison ENABLE_CHECKING macro.
8798
8799 2016-02-29 Martin Liska <mliska@suse.cz>
8800
8801 * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
8802 is presented in dump flags.
8803 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
8804 (hsa_regalloc): Likewise.
8805
8806 2016-02-19 Richard Biener <rguenther@suse.de>
8807
8808 PR tree-optimization/69980
8809 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
8810 permutation of those we need to keep.
8811
8812 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
8813
8814 PR target/69706
8815 * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
8816 (NWORDS_UP): ...this
8817 (init_cumulative_args): Minor tweaks.
8818 (sparc_promote_function_mode): Likewise.
8819 (scan_record_type): Delete.
8820 (traverse_record_type): New function template.
8821 (classify_data_t): New structure type.
8822 (classify_registers): New inline function.
8823 (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
8824 exhausted. Instantiate traverse_record_type on classify_registers and
8825 deal with the case of a structure passed in slot #15 with no FP field
8826 in the first word.
8827 (assign_data_t): New structure type.
8828 (compute_int_layout): New static function.
8829 (compute_fp_layout): Likewise.
8830 (count_registers): New inline function.
8831 (assign_int_registers): New static function.
8832 (assign_fp_registers): Likewise.
8833 (assign_registers): New inline function.
8834 (function_arg_record_value_1): Delete.
8835 (function_arg_record_value_2): Likewise.
8836 (function_arg_record_value_3): Likewise.
8837 (function_arg_record_value): Adjust to above changes. Instantiate
8838 traverse_record_type on count_registers to first count the number of
8839 registers to be used and then on assign_registers to assign them.
8840 (function_arg_union_value): Adjust to above renaming.
8841 (sparc_function_arg_1); Minor tweaks. Remove commented out code.
8842 (sparc_arg_partial_bytes): Adjust to above renaming. Deal with the
8843 case of a structure passed in slot #15
8844 (sparc_function_arg_advance): Likewise.
8845 (function_arg_padding): Minor tweak.
8846
8847 2016-02-29 Richard Biener <rguenther@suse.de>
8848
8849 PR tree-optimization/69720
8850 * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
8851 the adjustment_def path for possibly vectorized defs.
8852 (vect_create_epilog_for_reduction): Handle vectorized initial
8853 defs properly.
8854
8855 2016-02-28 Eric Botcazou <ebotcazou@adacore.com>
8856
8857 * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
8858
8859 2016-02-27 Jeff Law <law@redhat.com>
8860
8861 Revert
8862 2016-02-26 Richard Biener <rguenther@suse.de>
8863 Jeff Law <law@redhat.com>
8864
8865 PR tree-optimization/69740
8866 * cfghooks.c (remove_edge): Request loop fixups if we delete
8867 an edge that might turn an irreducible loop into a natural
8868 loop.
8869
8870 2016-02-27 Jakub Jelinek <jakub@redhat.com>
8871
8872 PR rtl-optimization/69896
8873 * tree-vect-generic.c (get_compute_type): Avoid single element
8874 vector types.
8875
8876 2016-02-26 Evandro Menezes <e.menezes@samsung.com>
8877
8878 Rename the AArch64 tuning option and related functions to enable the
8879 Newton series for the reciprocal square root to reflect its
8880 approximative characteristic.
8881
8882 * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
8883 function to "aarch64_emit_approx_rsqrt".
8884 * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
8885 AARCH64_EXTRA_TUNE_APPROX_RSQRT.
8886 * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
8887 (xgene1_tunings): Likewise.
8888 (use_rsqrt_p): Likewise.
8889 (aarch64_emit_swrsqrt): Use new function name.
8890 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
8891 * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
8892 text explaining this option.
8893 * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
8894
8895 2016-02-26 Jakub Jelinek <jakub@redhat.com>
8896
8897 PR target/69969
8898 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
8899 complain about -mallow-movmisalign without -mvsx if
8900 TARGET_ALLOW_MOVMISALIGN was not set explicitly.
8901
8902 2016-02-26 Joel Sherrill <joel@rtems.org>
8903
8904 * config.gcc: Add x86_64-*-rtems*.
8905 * config/i386/rtems-64.h: New file.
8906
8907 2016-02-26 Joel Sherrill <joel@rtems.org>
8908
8909 * config.gcc: Add aarch64-*-rtems*.
8910 * config/aarch64/rtems.h: New file.
8911
8912 2016-02-26 Segher Boessenkool <segher@kernel.crashing.org>
8913
8914 PR target/69946
8915 * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
8916 shift amount using %h. Add comment.
8917
8918 2016-02-26 Richard Biener <rguenther@suse.de>
8919 Jeff Law <law@redhat.com>
8920
8921 PR tree-optimization/69740
8922 * cfghooks.c (remove_edge): Request loop fixups if we delete
8923 an edge that might turn an irreducible loop into a natural
8924 loop.
8925
8926 2016-02-26 Martin Jambor <mjambor@suse.cz>
8927
8928 PR middle-end/69920
8929 * tree-sra.c (sra_modify_assign): Do not remove loads of
8930 uninitialized aggregates to SSA_NAMEs.
8931
8932 2016-02-26 Richard Henderson <rth@redhat.com>
8933
8934 PR target/69709
8935 * config/s390/s390.md (risbg and risbgn splitters): Allocate new
8936 pseudo in case the target rtx matches the source of the left
8937 shift.
8938
8939 2016-02-26 Martin Jambor <mjambor@suse.cz>
8940
8941 PR hsa/69568
8942 * hsa.h (hsa_type_packed_p): Declare.
8943 * hsa.c (hsa_type_packed_p): New function.
8944 * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
8945 loads.
8946 (gen_hsa_insns_for_store): Use hsa_type_packed_p.
8947 * hsa-brig.c (emit_basic_insn): Likewise.
8948
8949 2016-02-26 Martin Jambor <mjambor@suse.cz>
8950
8951 pr hsa/69674
8952 * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
8953 pointers.
8954 (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
8955
8956 2016-02-26 Martin Jambor <mjambor@suse.cz>
8957
8958 * hsa.h (is_a_helper): New overload for hsa_op_immed for
8959 hsa_op_with_type operands.
8960 (hsa_unsigned_type_for_type): Declare.
8961 * hsa.c (hsa_unsigned_type_for_type): New function.
8962 * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
8963 (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
8964 the finalizer. Do not emit extra move.
8965
8966 2016-02-26 Martin Jambor <mjambor@suse.cz>
8967
8968 * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
8969 atomic operations in private segment.
8970
8971 2016-02-26 Martin Jambor <mjambor@suse.cz>
8972
8973 * omp-low.c (grid_find_ungridifiable_statement): Store problematic
8974 statements to wi->info. Also disallow omp simd constructs.
8975 (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
8976 for not gridifying. Dump special string for omp_for.
8977
8978 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8979
8980 PR target/69245
8981 * config/aarch64/aarch64.c (aarch64_set_current_function):
8982 Save/restore target globals when switching to
8983 target_option_default_node.
8984
8985 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8986
8987 PR target/69613
8988 * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
8989 Return 0 if !SHIFT_COUNT_TRUNCATED.
8990
8991 2016-02-26 Jakub Jelinek <jakub@redhat.com>
8992 Eric Botcazou <ebotcazou@adacore.com>
8993
8994 PR rtl-optimization/69891
8995 * dse.c (scan_insn): If we can't figure out memset arguments
8996 or they are non-constant, call clear_rhs_from_active_local_stores.
8997
8998 2016-02-26 Martin Liska <mliska@suse.cz>
8999
9000 * doc/extend.texi: Mention clog10, clog10f an clog10l
9001 in Builtins section.
9002
9003 2016-02-26 Martin Liska <mliska@suse.cz>
9004
9005 * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
9006 CHECKING_P.
9007 (resolve_args_picking_1): Likewise.
9008 * dwarf2out.h (struct GTY): Likewise.
9009
9010 2016-02-26 Martin Liska <mliska@suse.cz>
9011
9012 * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
9013 with flag_checking.
9014 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
9015
9016 2016-02-26 Markus Trippelsdorf <markus@trippelsdorf.de>
9017 Martin Liska <mliska@suse.cz>
9018
9019 * doc/install.texi: Mention --enable-valgrind-annotations.
9020
9021 2016-02-26 Richard Biener <rguenther@suse.de>
9022
9023 PR tree-optimization/69551
9024 * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
9025 looking through aliases adjust DECL_PT_UID to refer to the
9026 ultimate alias target.
9027
9028 2016-02-25 Martin Liska <mliska@suse.cz>
9029
9030 PR middle-end/69919
9031 * alloc-pool.c (after_memory_report): New variable.
9032 * alloc-pool.h (base_pool_allocator ::release): Do not use
9033 the infrastructure if after_memory_report.
9034 * toplev.c (toplev::main): Mark after memory report.
9035
9036 2016-02-25 Richard Biener <rguenther@suse.de>
9037
9038 PR tree-optimization/48795
9039 * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
9040
9041 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
9042
9043 PR driver/68463
9044 * config/gnu-user.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o if
9045 offloading is enabled and -fopenacc or -fopenmp is specified.
9046 (CRTOFFLOADEND): Likewise.
9047 (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
9048 (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
9049 * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
9050 (offload_objects_file_name): New static var.
9051 (tool_cleanup): Remove offload_objects_file_name file.
9052 (find_offloadbeginend): Replace with ...
9053 (find_crtoffloadtable): ... this.
9054 (run_gcc): Remove offload_argc and offload_argv.
9055 Get offload_objects_file_name from -foffload-objects=... option.
9056 Read names of object files with offload from this file, pass them to
9057 compile_images_for_offload_targets. Don't call find_offloadbeginend and
9058 don't pass offloadbegin and offloadend to the linker. Don't pass
9059 offload non-LTO files to the linker, because now they're not claimed.
9060
9061 2016-02-25 Jan Hubicka <hubicka@ucw.cz>
9062
9063 PR ipa/69630
9064 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
9065 on builtin_unreachable.
9066
9067 2016-02-25 Jakub Jelinek <jakub@redhat.com>
9068
9069 PR rtl-optimization/69896
9070 * regcprop.c: Include cfgrtl.h.
9071 (copyprop_hardreg_forward_1): If noop_p insn uses narrower
9072 than remembered mode, either delete it (if noop_move_p), or
9073 treat like copy_p but not noop_p instruction.
9074
9075 2016-02-24 Jakub Jelinek <jakub@redhat.com>
9076
9077 PR debug/69705
9078 * dwarf2out.c (gen_variable_die): Work around buggy LTO
9079 - allow NULL decl for Fortran DW_TAG_common_block variables.
9080
9081 2016-02-24 Jason Merrill <jason@redhat.com>
9082
9083 * common.opt (flifetime-dse): Add -flifetime-dse=1.
9084
9085 2016-02-24 Richard Biener <rguenther@suse.de>
9086 Jakub Jelinek <jakub@redhat.com>
9087
9088 PR middle-end/69760
9089 * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
9090 conditionally executed ops to well-defined overflow behavior.
9091
9092 2016-02-24 Jakub Jelinek <jakub@redhat.com>
9093
9094 PR middle-end/69915
9095 * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
9096 elements.
9097
9098 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9099
9100 PR rtl-optimization/69886
9101 * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
9102 argument. Use it when checking validity of set instructions.
9103 (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
9104 (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
9105 callsite.
9106 * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
9107 * store-motion.c (find_moveable_store): Update
9108 can_assign_to_reg_without_clobbers_p callsite.
9109
9110 2016-02-24 Richard Biener <rguenther@suse.de>
9111
9112 PR middle-end/68963
9113 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
9114 bogus check.
9115 (record_nonwrapping_iv): Do not fall back to the low/high bound
9116 for non-constant IV bases if the stmt is not always executed.
9117
9118 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9119
9120 * config/arm/arm-cores.def (cortex-a32): New entry.
9121 * config/arm/arm-tables.opt: Regenerate.
9122 * config/arm/arm-tune.md: Regenerate.
9123 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
9124 * config/arm/t-aprofile: Handle mcpu=cortex-a32.
9125 * doc/invoke.texi (ARM Options): Document cortex-a32 as value
9126 for -mcpu and -mtune.
9127
9128 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9129
9130 PR target/69875
9131 * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
9132 * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
9133 * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
9134 (atomic_loaddi_1): Delete.
9135 (atomic_loaddi): Rewrite expander using the above changes.
9136
9137 2016-02-24 Jakub Jelinek <jakub@redhat.com>
9138
9139 PR c/69918
9140 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
9141 2 to 3.
9142
9143 2016-02-24 Jakub Jelinek <jakub@redhat.com>
9144 Richard Biener <rguenth@suse.de>
9145
9146 PR middle-end/69909
9147 * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
9148 set_mem_attributes if tem is SSA_NAME which got expanded
9149 as a MEM.
9150
9151 2016-02-24 Richard Biener <rguenther@suse.de>
9152
9153 PR tree-optimization/69907
9154 * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
9155 end of permutations for BB vectorization.
9156
9157 2016-02-24 Christian Bruel <christian.bruel@st.com>
9158
9159 * config/arm/arm-c.c (arm_option_override): Initialize
9160 target_option_current_node.
9161 * config/arm/arm.c (arm_pragma_target_parse): Replace
9162 build_target_option_node call by target_option_current_node.
9163 Set target_option_current_node.
9164 Fix comments.
9165
9166 2016-02-23 David Edelsohn <dje.gcc@gmail.com>
9167
9168 PR target/69810
9169 * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
9170 define_insn_and_split to define_insn.
9171 (zero_extendqi<mode>2_dot2): Same.
9172 (extendqi<mode>2_dot): Same.
9173 (extendqi<mode>2_dot2): Same.
9174
9175 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
9176
9177 * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
9178 and add bypass for AES{D,E} and AESMC pairs.
9179 * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
9180 and AESMC pairs.
9181
9182 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
9183
9184 * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
9185 series for reciprocal square root in Exynos M1.
9186
9187 2016-02-23 Martin Sebor <msebor@redhat.com>
9188
9189 PR c/69759
9190 * doc/extend.texi (Other Builtins): Document __builtin_alloca and
9191 __builtin_alloca_with_align.
9192
9193 2016-02-23 Richard Henderson <rth@redhat.com>
9194
9195 * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
9196 (ix86_register_pragmas): Remove __seg_tls.
9197 * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
9198 * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
9199 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
9200 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
9201 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
9202 * doc/extend.texi (__seg_tls): Remove item.
9203
9204 2016-02-23 Richard Biener <rguenther@suse.de>
9205
9206 * alloc-pool.h (struct allocation_object): Make id member
9207 conditional on CHECKING_P again.
9208 (get_instance): Adjust.
9209 (base_pool_allocator): Likewise.
9210
9211 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
9212
9213 * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
9214 (parallelize_loops): In OpenACC kernels mode, set n_threads to
9215 zero.
9216 (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
9217 flag_openacc.
9218 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
9219
9220 2016-02-23 Richard Biener <rguenther@suse.de>
9221
9222 * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
9223 * bitmap.h (struct bitmap_usage): Likewise.
9224 (bitmap_move): Declare.
9225 * bitmap.c (register_overhead): Take size_t argument.
9226 (bitmap_move): New function.
9227 * df-problems.c (df_rd_transfer_function): Use bitmap_move
9228 to properly account overhead.
9229 * tree.c (free_node): Use tree_size.
9230
9231 2016-02-23 Jakub Jelinek <jakub@redhat.com>
9232
9233 PR c++/69902
9234 * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
9235 when inverting comparison.
9236
9237 PR c/69900
9238 * common.opt (Wunreachable-code): Add Warning flag.
9239
9240 2016-02-23 Mark Wielaard <mjw@redhat.com>
9241 Jakub Jelinek <jakub@redhat.com>
9242
9243 PR c/69911
9244 * cgraphunit.c (check_global_declaration): Check main_input_filename
9245 and DECL_SOURCE_FILE are not NULL.
9246
9247 2016-02-23 Martin Jambor <mjambor@suse.cz>
9248
9249 PR tree-optimization/69666
9250 * tree-sra.c (sra_modify_assign): Do not attempt to create
9251 default_def replacements for unscalarizable regions.
9252
9253 2016-02-20 Mark Wielaard <mjw@redhat.com>
9254
9255 PR c/28901
9256 * cgraphunit.c (check_global_declaration): Check level of
9257 warn_unused_const_variable and main_input_filename.
9258 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
9259 (-Wunused-variable): For C implies -Wunused-const-variable=1.
9260 (-Wunused-const-variable): Explain levels 1 and 2.
9261
9262 2016-02-22 Jakub Jelinek <jakub@redhat.com>
9263
9264 PR target/69888
9265 * config/i386/i386.c (decide_alg): Ensure we don't recurse with
9266 identical arguments. Formatting and spelling fixes.
9267
9268 PR target/69885
9269 * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
9270 be specified.
9271
9272 PR target/69894
9273 PR target/69895
9274 * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
9275 and m68k-devices.def.
9276 * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
9277 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
9278
9279 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
9280
9281 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
9282 and HImode registers.
9283
9284 2016-02-22 Richard Biener <rguenther@suse.de>
9285
9286 PR tree-optimization/69882
9287 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
9288 preserve permutations present because of gaps.
9289 (vect_supported_load_permutation_p): Always continue checking
9290 permutations after vect_attempt_slp_rearrange_stmts.
9291
9292 2016-02-22 Bin Cheng <bin.cheng@arm.com>
9293
9294 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
9295 min_profitable_estimate, rather than min_profitable_iters.
9296
9297 2016-02-22 Jakub Jelinek <jakub@redhat.com>
9298
9299 PR target/69885
9300 * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
9301 SImode for last match_operand.
9302
9303 2016-02-22 Martin Liska <mliska@suse.cz>
9304
9305 * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
9306 return bitsize - 1 as the return value.
9307
9308 2016-02-22 Oleg Endo <olegendo@gcc.gnu.org>
9309
9310 PR target/69806
9311 PR target/54089
9312 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
9313 Handle negative shift counts.
9314 * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
9315 force_reg on the shift constant.
9316 (lshrsi3): Likewise. Expand into lshrsi3_n* instead of lshrsi3_d.
9317 (lshrsi3_d): Handle negative shift counts.
9318
9319 2016-02-22 Richard Biener <rguenther@suse.de>
9320 Tom de Vries <tom@codesourcery.com>
9321
9322 * graph.c: Include dumpfile.h.
9323 (print_graph_cfg): Split into three overloads.
9324 * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
9325
9326 2016-02-22 Tom de Vries <tom@codesourcery.com>
9327
9328 * gdbhooks.py (class DumpFn): Add and instantiate, adding command
9329 dump-fn.
9330
9331 2016-02-22 Richard Biener <rguenther@suse.de>
9332
9333 PR ipa/37448
9334 * ipa-inline-transform.c (inline_call): When not updating
9335 overall summaries adjust self size by the growth estimate.
9336 * ipa-inline.c (inline_to_all_callers_1): Add to the callers
9337 hash-set, do not update overall summaries here. Renamed from ...
9338 (inline_to_all_callers): ... this which is now wrapping the
9339 above and performing delayed overall summary update.
9340 (early_inline_small_functions): Delay updating of the overall
9341 summary.
9342
9343 2016-02-21 Markus Trippelsdorf <markus@trippelsdorf.de>
9344
9345 * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
9346 variable.
9347
9348 2016-02-19 Jakub Jelinek <jakub@redhat.com>
9349
9350 PR driver/69805
9351 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
9352 :%* in %:gt() argument.
9353 (greater_than_spec_func): Adjust for expecting only numbers,
9354 if there are more than two numbers, compare the last two.
9355
9356 2016-02-19 Jonathan Wakely <jwakely@redhat.com>
9357
9358 * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
9359 -Wnarrowing with -std.
9360
9361 2016-02-19 Jakub Jelinek <jakub@redhat.com>
9362
9363 PR c++/69851
9364 * expr.c (store_field): Don't use bit-field path if exp is
9365 COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
9366 different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
9367 and the assignment can be performed by bitwise copy. Formatting
9368 fix.
9369
9370 PR middle-end/69838
9371 * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
9372 call copy_reg_eh_region_note_forward on before and/or after sequences
9373 and remove note from insn if it no longer can throw.
9374
9375 PR target/69820
9376 * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
9377 if TARGET_AVX512BW.
9378
9379 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9380
9381 * config/s390/vector.md: Add missing commutative operand markers
9382 to the patterns which qualify for one.
9383 * config/s390/vx-builtins.md: Likewise.
9384
9385 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9386
9387 * config/s390/vector.md (VI, VI_QHS): Add single element vector
9388 types to mode iterators.
9389 (vec_double): ... and mode attribute.
9390 * config/s390/vx-builtins.md (non_vec_int): Likewise.
9391
9392 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9393
9394 * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
9395 Change the predicate of op2 from nonimmediate to general and let
9396 reload fix it if necessary.
9397
9398 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9399
9400 * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
9401
9402 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9403
9404 * config/s390/s390.c (s390_expand_vcond): Use the compare operand
9405 mode.
9406
9407 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9408
9409 * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
9410 * config/s390/s390.c (s390_expand_vec_movstr): New function.
9411 * config/s390/s390.md ("movstr<P:mode>"): Call
9412 s390_expand_vec_movstr.
9413
9414 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9415
9416 * config/s390/s390.md: Add missing output modifier for operand 1
9417 to print it as address properly.
9418
9419 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9420
9421 * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
9422 * config/s390/2964.md: New file.
9423 * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
9424 of insn grouping attributes depending on the CPU level.
9425 (s390_get_unit_mask): New function.
9426 (s390_sched_score): Remove the OOO from the scheduling macros.
9427 Add loop to calculate a score for the instruction mix.
9428 (s390_sched_reorder): Likewise plus improve debug output.
9429 (s390_sched_variable_issue): Rename macros as above. Calculate
9430 the unit distances after actually scheduling an insn. Improve
9431 debug output.
9432 (s390_sched_init): Clear last_scheduled_unit_distance array.
9433 * config/s390/s390.md: Include 2964.md.
9434
9435 2016-02-18 Jakub Jelinek <jakub@redhat.com>
9436
9437 PR target/69671
9438 * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
9439 *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
9440 *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
9441 *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
9442 *avx512f_<code>v8div16qi2_mask_1): New insns.
9443
9444 2016-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
9445
9446 PR target/68404
9447 * config/rs6000/predicates.md (fusion_gpr_addis): Revert
9448 2016-02-09 change.
9449
9450 * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
9451 earlyclobber from target. Use wF constraint for fused memory
9452 address.
9453 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
9454
9455 2016-02-18 Jakub Jelinek <jakub@redhat.com>
9456 Martin Liska <mliska@suse.cz>
9457
9458 PR sanitizer/69863
9459 * cfgexpand.c (asan_sanitize_stack_p): New function.
9460 (partition_stack_vars): Use the function.
9461 (expand_stack_vars): Likewise.
9462 (defer_stack_allocation): Likewise.
9463 (expand_used_vars): Likewise.
9464
9465 2016-02-18 Richard Biener <rguenther@suse.de>
9466
9467 PR middle-end/69553
9468 * fold-const.c (operand_equal_p): Properly compare offsets for
9469 IMAGPART_EXPR and ARRAY_REF.
9470
9471 2016-02-18 Nick Clifton <nickc@redhat.com>
9472
9473 PR target/62254
9474 PR target/69610
9475 * config/arm/arm.c (arm_option_override_internal): Disable
9476 interworking if the target does not support thumb instructions.
9477 (arm_reload_in_hi): Handle the case where a register to register
9478 move needs reloading because there is no simple pattern to handle
9479 it.
9480 (arm_reload_out_hi): Likewise.
9481
9482 2016-02-18 Richard Biener <rguenther@suse.de>
9483
9484 PR middle-end/69854
9485 * match.pd: Don't use fold_binary or fold_unary for folding
9486 constants.
9487
9488 2016-02-17 Jakub Jelinek <jakub@redhat.com>
9489
9490 PR c++/69850
9491 * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
9492 on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
9493 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
9494 warn on gimple_no_warning_p statements.
9495
9496 2016-02-17 Jonathan Wakely <jwakely@redhat.com>
9497
9498 * doc/extend.texi (C++ Attributes): Correct description of
9499 warn_unused type attribute.
9500
9501 2016-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9502
9503 * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
9504 correct instruction.
9505
9506 2016-02-17 Richard Biener <rguenther@suse.de>
9507
9508 PR rtl-optimization/69609
9509 * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
9510 (find_traces_1_round): When ending a trace update cached priority
9511 of successors.
9512 (bb_to_key): Use cached priority when available.
9513 (copy_bb): Initialize cached priority.
9514 (reorder_basic_blocks_software_trace_cache): Likewise.
9515
9516 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9517
9518 PR target/69161
9519 * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
9520 New predicate.
9521 (aarch64_comparison_operator): Break overly long line into two.
9522 (aarch64_comparison_operation): Likewise.
9523 * config/aarch64/aarch64.md (cstorecc4): Use
9524 aarch64_comparison_operator_mode instead of
9525 aarch64_comparison_operator.
9526 (cstore<mode>4): Likewise.
9527 (aarch64_cstore<mode>): Likewise.
9528 (*cstoresi_insn_uxtw): Likewise.
9529 (cstore<mode>_neg): Likewise.
9530 (*cstoresi_neg_uxtw): Likewise.
9531
9532 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9533
9534 PR target/69161
9535 * config/arm/predicates.md (arm_comparison_operator_mode):
9536 New predicate.
9537 * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
9538 instead of arm_comparison_operator.
9539 (*mov_negscc): Likewise.
9540 (*mov_notscc): Likewise.
9541 * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
9542 (*thumb2_mov_negscc): Likewise.
9543 (*thumb2_mov_negscc_strict_it): Likewise.
9544 (*thumb2_mov_notscc): Likewise.
9545 (*thumb2_mov_notscc_strict_it): Likewise.
9546
9547 2016-02-17 Wilco Dijkstra <wdijkstr@arm.com>
9548
9549 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
9550 Add missing return.
9551
9552 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
9553
9554 * config/visium/visium.c (machine_libfunc_index): New enum.
9555 (machine_libfuncs): New structure.
9556 (visium_libfuncs): New static variable.
9557 (TARGET_INIT_LIBFUNCS): Define to...
9558 (visium_init_libfuncs): ...this. New function.
9559 (expand_block_move_4): Use the appropriate libfunc.
9560 (expand_block_move_2): Likewise.
9561 (expand_block_move_1): Likewise.
9562 (expand_block_set_4): Likewise.
9563 (expand_block_set_2): Likewise.
9564 (expand_block_set_1): Likewise.
9565 (visium_trampoline_init): Likewise.
9566
9567 2016-02-17 Nick Clifton <nickc@redhat.com>
9568
9569 * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
9570 TI's devices.csv file as of March 2016.
9571
9572 2016-02-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
9573
9574 PR Target/48344
9575 * opts-global.c (handle_common_deferred_options): Introduce and
9576 initialize two global variables to remember command-line options
9577 specifying a stack-limiting register.
9578 * opts.h: Add extern declarations of the two new global variables.
9579 * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
9580 variable based on the values of the two new global variables.
9581
9582 2016-02-16 Jakub Jelinek <jakub@redhat.com>
9583
9584 PR c/69835
9585 * common.opt (Wnonnull-compare): New warning.
9586 * doc/invoke.texi (-Wnonnull): Remove text about comparison
9587 of arguments against NULL.
9588 (-Wnonnull-compare): Document.
9589 * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
9590 * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
9591 * passes.def (pass_warn_nonnull_compare): Add.
9592 * gimple-ssa-nonnull-compare.c: New file.
9593
9594 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
9595
9596 * config/aarch64/aarch64.c (cortexa57_tunings): Remove
9597 AARCH64_EXTRA_TUNE_RECIP_SQRT.
9598
9599 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
9600
9601 * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
9602 reciprocal sqrt for -mlow-precision-recip-sqrt.
9603
9604 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
9605 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9606
9607 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
9608 always use lane loads to construct non-constant vectors.
9609
9610 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
9611
9612 * config/aarch64/aarch64.md
9613 (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
9614 constraints for operand 3.
9615 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
9616
9617 2016-02-16 Jakub Jelinek <jakub@redhat.com>
9618 Richard Biener <rguenther@suse.de>
9619
9620 PR tree-optimization/69820
9621 * tree-vect-patterns.c (type_conversion_p): Return false if
9622 *orig_type is unsigned single precision or boolean.
9623 (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
9624 Formatting fix.
9625
9626 2016-02-16 Jakub Jelinek <jakub@redhat.com>
9627
9628 PR rtl-optimization/69764
9629 PR rtl-optimization/69771
9630 * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
9631 op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
9632
9633 2016-02-16 Richard Biener <rguenther@suse.de>
9634
9635 PR tree-optimization/69776
9636 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
9637 sets from caller.
9638 (indirect_refs_may_alias_p): Likewise.
9639 (refs_may_alias_p_1): Pass alias sets as from ao_ref.
9640 * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
9641 according to tbaa_p.
9642 * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
9643 (optimize_stmt): For redundant store discovery do not allow tbaa.
9644
9645 2016-02-16 Bernd Schmidt <bschmidt@redhat.com>
9646
9647 PR tree-optimization/69714
9648 * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
9649 Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
9650
9651 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
9652
9653 * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
9654 * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
9655 (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
9656 * config/arc/arc.c (arc_init): Check FPU options.
9657 (get_arc_condition_code): Handle new CC_FPU* modes.
9658 (arc_select_cc_mode): Likewise.
9659 (arc_conditional_register_usage): Allow 64 bit datum into even-odd
9660 register pair only. Allow access for ARCv2 accumulator.
9661 (gen_compare_reg): Whenever we have FPU support use FPU compare
9662 instructions.
9663 (arc_reorg): Don't generate brcc insns when FPU compare
9664 instructions are involved.
9665 * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
9666 (TARGET_OPTFPE): Add condition when ARC EM can use optimized
9667 floating point emulation.
9668 (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
9669 (REVERSE_CONDITION): Add new CC_FPU* modes.
9670 (TARGET_FP_SP_BASE): Define.
9671 (TARGET_FP_DP_BASE): Likewise.
9672 (TARGET_FP_SP_FUSED): Likewise.
9673 (TARGET_FP_DP_FUSED): Likewise.
9674 (TARGET_FP_SP_CONV): Likewise.
9675 (TARGET_FP_DP_CONV): Likewise.
9676 (TARGET_FP_SP_SQRT): Likewise.
9677 (TARGET_FP_DP_SQRT): Likewise.
9678 (TARGET_FP_DP_AX): Likewise.
9679 * config/arc/arc.md (ARCV2_ACC): New constant.
9680 (type): New fpu type attribute.
9681 (SDF): Conditional iterator.
9682 (cstore<mode>, cbranch<mode>): Change expand condition.
9683 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
9684 handles FPU/FPX cases as well.
9685 * config/arc/arc.opt (mfpu): New option.
9686 * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
9687 Renamed.
9688 (adddf3, muldf3, subdf3): Removed.
9689 * config/arc/predicates.md (proper_comparison_operator): Recognize
9690 CC_FPU* modes.
9691 * config/arc/fpu.md: New file.
9692 * doc/invoke.texi (ARC Options): Document mfpu option.
9693
9694 2016-02-16 Richard Biener <rguenther@suse.de>
9695
9696 PR rtl-optimization/69291
9697 * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
9698 noce_operand_ok check.
9699
9700 2016-02-16 Tom de Vries <tom@codesourcery.com>
9701
9702 PR lto/67709
9703 * omp-low.c (simd_clone_create): Remove call to
9704 symtab->call_cgraph_insertion_hooks.
9705
9706 2016-02-16 Jakub Jelinek <jakub@redhat.com>
9707
9708 PR tree-optimization/69802
9709 * tree-ssa-reassoc.c (update_range_test): If op is
9710 SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
9711 op == 1 test of precision 1 integral op, otherwise handle
9712 that case as op itself. Fix up formatting.
9713 (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
9714 up formatting.
9715
9716 2016-02-16 Richard Biener <rguenther@suse.de>
9717
9718 PR tree-optimization/69586
9719 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
9720 types for conversion sources.
9721
9722 2016-02-16 Richard Biener <rguenther@suse.de>
9723
9724 PR middle-end/69801
9725 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
9726 mask OEP_ADDRESS_OF.
9727
9728 2016-02-16 Alan Modra <amodra@gmail.com>
9729
9730 PR target/68973
9731 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
9732 (p8_mtvsrd_df, p8_mtvsrd_sf): New.
9733 (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
9734 (p8_mtvsrwz): New.
9735 (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
9736 (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
9737 (p8_fmrgow_<mode>): Likewise.
9738 (reload_vsx_from_gpr<mode>): Make clobber IF. Adjust for above
9739 changes.
9740 (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
9741 (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
9742 to use movdi_internal64. Remove op0_di.
9743 * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
9744
9745 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
9746
9747 Add support for the FCCMP insn types
9748
9749 * config/aarch64/aarch64.md (fccmp): Change insn type.
9750 (fccmpe): Likewise.
9751 * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
9752 * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
9753 * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
9754 * config/arm/xgene1.md (xgene1_fcmp): Likewise.
9755 * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
9756 * config/arm/types.md (fccmps): Add new insn type.
9757 (fccmpd): Likewise.
9758
9759 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
9760
9761 * alias.c (get_alias_set): Fix a typo in comment.
9762
9763 2016-02-15 Richard Biener <rguenther@suse.de>
9764
9765 PR tree-optimization/69595
9766 * match.pd: Complete range test simplification to true.
9767
9768 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
9769
9770 PR rtl-optimization/69648
9771 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
9772 pic_offset_table_rtx.
9773
9774 PR rtl-optimization/69752
9775 * ira.c (update_equiv_regs): When looking for more than a single SET,
9776 also take other side effects into account.
9777
9778 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
9779
9780 * config/s390/s390.c (s390_function_profiler): Add a new sequence
9781 for z900+ CPUs in 31-bit mode.
9782
9783 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
9784
9785 * common/config/s390/s390-common.c (s390_supports_split_stack):
9786 New function.
9787 (TARGET_SUPPORTS_SPLIT_STACK): New macro.
9788 * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
9789 * config/s390/s390.c (struct machine_function): New field
9790 split_stack_varargs_pointer.
9791 (s390_register_info): Mark r12 as clobbered if it'll be used as temp
9792 in s390_emit_prologue.
9793 (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
9794 vararg pointer.
9795 (morestack_ref): New global.
9796 (SPLIT_STACK_AVAILABLE): New macro.
9797 (s390_expand_split_stack_prologue): New function.
9798 (s390_live_on_entry): New function.
9799 (s390_va_start): Use split-stack vararg pointer if appropriate.
9800 (s390_asm_file_end): Emit the split-stack note sections.
9801 (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
9802 * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
9803 (UNSPECV_SPLIT_STACK_CALL): New unspec.
9804 (UNSPECV_SPLIT_STACK_DATA): New unspec.
9805 (split_stack_prologue): New expand.
9806 (split_stack_space_check): New expand.
9807 (split_stack_data): New insn.
9808 (split_stack_call): New expand.
9809 (split_stack_call_*): New insn.
9810 (split_stack_cond_call): New expand.
9811 (split_stack_cond_call_*): New insn.
9812
9813 2016-02-15 Richard Biener <rguenther@suse.de>
9814
9815 PR tree-optimization/69783
9816 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
9817 Add trivially correct cases.
9818
9819 2016-02-15 Tom de Vries <tom@codesourcery.com>
9820
9821 PR lto/69655
9822 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
9823 do_force_output.
9824 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
9825
9826 2016-02-15 Richard Biener <rguenther@suse.de>
9827
9828 PR tree-optimization/69776
9829 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
9830 * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
9831 indicate whether we can use TBAA to disambiguate against stores.
9832 Use alias-set zero if not.
9833 (visit_reference_op_store): Do not use TBAA when looking up
9834 redundant stores.
9835 * tree-ssa-pre.c (compute_avail): Use TBAA here.
9836 (eliminate_dom_walker::before_dom_children): But not when looking
9837 up redundant stores.
9838
9839 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
9840
9841 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
9842
9843 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
9844
9845 * config/i386/znver1.md
9846 (znver1_pop, znver1_pop_mem,
9847 znver1_load_imov_double_store,
9848 znver1_load_imov_direct_store,
9849 znver1_load_imov_direct_load,
9850 znver1_load_imov_double_load): Add new.
9851 (znver1_insn, znver1_insn_load): Add icmov type.
9852 (znver1_sseavx_fma,
9853 znver1_sseavx_fma_load,
9854 znver1_avx256_fma,
9855 znver1_avx256_fma_load): Fix pipe usage.
9856
9857 2016-02-14 Alan Modra <amodra@gmail.com>
9858
9859 PR target/68973
9860 * reloads.c (find_reloads_address_1): For pre/post-inc/dec
9861 with an invalid hard reg, reload just the reg not the entire
9862 pre/post-inc/dec address expression.
9863
9864 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
9865
9866 PR target/67260
9867 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
9868 fixed R1_REG scratch reg.
9869 (sibcall_value_pcrel_fdpic): Likewise.
9870
9871 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
9872
9873 PR target/67636
9874 PR target/64345
9875 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
9876
9877 2016-02-12 Walter Lee <walt@tilera.com>
9878
9879 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
9880 * config/tilegx/t-tilegx: Likewise.
9881
9882 2016-02-12 David Malcolm <dmalcolm@redhat.com>
9883
9884 PR other/69554
9885 * diagnostic-show-locus.c (struct line_span): New struct.
9886 (layout::get_first_line): Delete.
9887 (layout::get_last_line): Delete.
9888 (layout::get_num_line_spans): New member function.
9889 (layout::get_line_span): Likewise.
9890 (layout::print_heading_for_line_span_index_p): Likewise.
9891 (layout::get_expanded_location): Likewise.
9892 (layout::calculate_line_spans): Likewise.
9893 (layout::m_first_line): Delete.
9894 (layout::m_last_line): Delete.
9895 (layout::m_line_spans): New field.
9896 (layout::layout): Update comment. Replace m_first_line and
9897 m_last_line with m_line_spans, replacing their initialization
9898 with a call to calculate_line_spans.
9899 (diagnostic_show_locus): When printing source lines and
9900 annotations, rather than looping over a single span
9901 of lines, instead loop over each line_span within
9902 the layout, with an inner loop over the lines within them.
9903 Call the context's start_span callback when changing line spans.
9904 * diagnostic.c (diagnostic_initialize): Initialize start_span.
9905 (diagnostic_build_prefix): Break out the building of the location
9906 part of the string into...
9907 (diagnostic_get_location_text): ...this new function, rewriting
9908 it from nested ternary expressions to a sequence of "if"
9909 statements.
9910 (default_diagnostic_start_span_fn): New function.
9911 * diagnostic.h (diagnostic_start_span_fn): New typedef.
9912 (diagnostic_context::start_span): New field.
9913 (default_diagnostic_start_span_fn): New prototype.
9914
9915 2016-02-12 David Malcolm <dmalcolm@redhat.com>
9916
9917 PR driver/69779
9918 * gcc.c (driver::finalize): Fix cleanup of "specs".
9919
9920 2016-02-12 David Malcolm <dmalcolm@redhat.com>
9921
9922 PR driver/69265
9923 PR driver/69453
9924 * gcc.c (driver::driver): Initialize m_option_suggestions.
9925 (driver::~driver): Clean up m_option_suggestions.
9926 (suggest_option): Convert to...
9927 (driver::suggest_option): ...this, and split out into
9928 driver::build_option_suggestions and find_closest_string.
9929 (driver::build_option_suggestions): New function, from
9930 first half of suggest_option. Special-case
9931 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
9932 the sanitizer_opts array. For options of enum types, add the
9933 various enum values to the candidate strings.
9934 (driver::handle_unrecognized_options): Remove "const".
9935 * gcc.h (driver::handle_unrecognized_options): Likewise.
9936 (driver::build_option_suggestions): New decl.
9937 (driver::suggest_option): New decl.
9938 (driver::m_option_suggestions): New field.
9939 * opts-common.c (add_misspelling_candidates): New function.
9940 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
9941 and make non-static.
9942 * opts.h (sanitizer_opts): New array decl.
9943 (add_misspelling_candidates): New function decl.
9944 * spellcheck.c (find_closest_string): New function.
9945 * spellcheck.h (find_closest_string): New function decl.
9946
9947 2016-02-12 Jakub Jelinek <jakub@redhat.com>
9948
9949 PR rtl-optimization/69764
9950 PR rtl-optimization/69771
9951 * optabs.c (expand_binop_directly): For shift_optab_p, force
9952 convert_modes with VOIDmode if xop1 has VOIDmode.
9953
9954 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
9955
9956 PR target/69729
9957 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
9958 to correctly determine instrumentation thunks.
9959
9960 2016-02-12 Jakub Jelinek <jakub@redhat.com>
9961
9962 PR ipa/69241
9963 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
9964 type by reference, force lhs on the call.
9965
9966 PR ipa/68672
9967 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
9968 Compute retval and retbnd early in all cases if split_part_return_p
9969 and return_bb is not EXIT. Remove all clobber stmts and reset
9970 all debug stmts that refer to SSA_NAMEs defined in split part,
9971 except if it is retval, in that case replace the old retval with the
9972 lhs of the call to the split part.
9973
9974 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
9975
9976 revert:
9977 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
9978
9979 PR middle-end/66726
9980 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
9981 whose result is used in PHI.
9982 (maybe_optimize_range_tests): Likewise.
9983 (final_range_test_p): Likweise.
9984
9985 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
9986
9987 PR middle-end/66726
9988 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
9989 whose result is used in PHI.
9990 (maybe_optimize_range_tests): Likewise.
9991 (final_range_test_p): Likweise.
9992
9993 2016-02-12 Jakub Jelinek <jakub@redhat.com>
9994
9995 * cgraph.c: Spelling fixes - behaviour -> behavior and
9996 neighbour -> neighbor.
9997 * target.def: Likewise.
9998 * sel-sched.c: Likewise.
9999 * config/mips/mips.c: Likewise.
10000 * config/arc/arc.md: Likewise.
10001 * config/arm/cortex-a57.md: Likewise.
10002 * config/arm/arm.c: Likewise.
10003 * config/arm/neon.md: Likewise.
10004 * config/arm/arm-c.c: Likewise.
10005 * config/vms/vms-c.c: Likewise.
10006 * config/s390/s390.c: Likewise.
10007 * config/i386/znver1.md: Likewise.
10008 * config/i386/i386.c: Likewise.
10009 * config/ia64/hpux-unix2003.h: Likewise.
10010 * config/msp430/msp430.md: Likewise.
10011 * config/rx/rx.c: Likewise.
10012 * config/rx/rx.md: Likewise.
10013 * config/aarch64/aarch64-simd.md: Likewise.
10014 * config/aarch64/aarch64.c: Likewise.
10015 * config/nvptx/nvptx.c: Likewise.
10016 * config/bfin/bfin.c: Likewise.
10017 * config/cris/cris.opt: Likewise.
10018 * config/rs6000/rs6000.c: Likewise.
10019 * target.h: Likewise.
10020 * spellcheck.c: Likewise.
10021 * ira-build.c: Likewise.
10022 * tree-inline.c: Likewise.
10023 * builtins.c: Likewise.
10024 * lra-constraints.c: Likewise.
10025 * explow.c: Likewise.
10026 * hwint.h: Likewise.
10027 * targhooks.c: Likewise.
10028 * tree-vect-data-refs.c: Likewise.
10029 * expr.c: Likewise.
10030 * doc/tm.texi: Likewise.
10031 * doc/extend.texi: Likewise.
10032 * doc/install.texi: Likewise.
10033 * doc/md.texi: Likewise.
10034 * tree-ssa-tail-merge.c: Likewise.
10035 * sched-int.h: Likewise.
10036 * match.pd: Likewise.
10037 * sched-ebb.c: Likewise.
10038 * target.def (omit_struct_return_reg): Likewise.
10039 * gimple-ssa-isolate-paths.c: Likewise.
10040 (find_implicit_erroneous_behaviour): Renamed to...
10041 (find_implicit_erroneous_behavior): ... this.
10042 (find_explicit_erroneous_behaviour): Renamed to...
10043 (find_explicit_erroneous_behavior): ... this.
10044 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
10045
10046 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
10047
10048 PR rtl-optimization/64682
10049 PR rtl-optimization/69567
10050 PR rtl-optimization/69737
10051 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
10052 in I2 as well, just lose it.
10053
10054 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10055
10056 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
10057 New variable.
10058 (aarch64_last_printed_tune_string): Likewise.
10059 (aarch64_declare_function_name): Only output .arch assembler
10060 directive if it will be different from the previously output
10061 directive. Same for .tune comment but only if -dA is set.
10062 (aarch64_start_file): New function.
10063 (TARGET_ASM_FILE_START): Define.
10064
10065 2016-02-11 David Malcolm <dmalcolm@redhat.com>
10066
10067 PR plugins/69758
10068 * Makefile.in (PLUGIN_HEADERS): Add params.list.
10069
10070 2016-02-11 Jakub Jelinek <jakub@redhat.com>
10071
10072 PR target/65313
10073 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
10074 -Wmaybe-uninitialized warning.
10075
10076 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
10077
10078 PR target/69713
10079 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
10080
10081 2016-02-11 Richard Biener <rguenther@suse.de>
10082
10083 PR rtl-optimization/69291
10084 * ifcvt.c (noce_try_store_flag_constants): Do not allow
10085 subexpressions affected by changing the result.
10086
10087 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
10088
10089 PR target/69148
10090 * lra-constraints.c (curr_insn_transform): Find in/out operands
10091 for secondary memory moves. Update dups.
10092
10093 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
10094
10095 PR tree-optimization/69652
10096 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
10097 to nested loop, did source re-formatting, skip debug statements,
10098 add check on statement with volatile operand, remove dead scalar
10099 statements.
10100
10101 2016-02-10 Jakub Jelinek <jakub@redhat.com>
10102 Patrick Palka <ppalka@gcc.gnu.org>
10103
10104 PR ipa/69241
10105 PR c++/69649
10106 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
10107 calls if the return type is TREE_ADDRESSABLE.
10108 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
10109 * ipa-split.c (split_function): Fix doubled "we" in comment.
10110 Use void return type for the split part even if
10111 !split_point->split_part_set_retval.
10112
10113 2016-02-10 Bin Cheng <bin.cheng@arm.com>
10114
10115 PR tree-optimization/68021
10116 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
10117 when computing the value of biv cand by itself.
10118
10119 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
10120
10121 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
10122 (cortexa57_tunings): Likewise.
10123 (cortexa72_tunings): Likewise.
10124 (arch_macro_fusion_pair_p): Add support for AES fusion.
10125 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
10126 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
10127 Allow virtual registers before reload so early scheduling works.
10128 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
10129 correct latency and pipeline.
10130 (cortex_a57_crypto_complex): Likewise.
10131 (cortex_a57_crypto_xor): Likewise.
10132 (define_bypass): Add AES bypass.
10133
10134 2016-02-10 Richard Biener <rguenther@suse.de>
10135
10136 PR tree-optimization/69726
10137 * passes.def: Add DCE pass before late uninit.
10138 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
10139 really fixup if-conversions job.
10140
10141 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
10142
10143 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
10144 (arm_cortex_a57_tune): Likewise.
10145 (aarch_macro_fusion_pair_p): Add support for AES fusion.
10146 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
10147
10148 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
10149
10150 * timevar.def (TV_PHASE_DBGINFO): Delete.
10151 (TV_PHASE_CHECK_DBGINFO): Likewise.
10152 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
10153
10154 2016-02-10 Richard Biener <rguenther@suse.de>
10155
10156 PR tree-optimization/69719
10157 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
10158 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
10159
10160 2016-02-09 Andrew Pinski <apinski@cavium.com>
10161
10162 PR tree-opt/69282
10163 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
10164 get_vcond_mask_icode returns false.
10165
10166 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
10167
10168 PR target/68404
10169 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
10170 an ADDIS that adds a pointer to a large constant that sets the
10171 upper16 bits with a load operation.
10172
10173 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
10174
10175 PR target/68532
10176 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
10177 order.
10178 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
10179 endian.
10180 (vzipq_s16): Likewise.
10181 (vzipq_s32): Likewise.
10182 (vzipq_f32): Likewise.
10183 (vzipq_u8): Likewise.
10184 (vzipq_u16): Likewise.
10185 (vzipq_u32): Likewise.
10186 (vzipq_p8): Likewise.
10187 (vzipq_p16): Likewise.
10188
10189 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
10190
10191 PR target/68532
10192 * config/arm/arm.c (neon_endian_lane_map): New function.
10193 (neon_vector_pair_endian_lane_map): New function.
10194 (arm_evpc_neon_vuzp): Allow for big endian lane order.
10195 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
10196 endian.
10197 (vuzpq_s16): Likewise.
10198 (vuzpq_s32): Likewise.
10199 (vuzpq_f32): Likewise.
10200 (vuzpq_u8): Likewise.
10201 (vuzpq_u16): Likewise.
10202 (vuzpq_u32): Likewise.
10203 (vuzpq_p8): Likewise.
10204 (vuzpq_p16): Likewise.
10205
10206 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
10207
10208 PR target/69634
10209 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
10210 debug insns.
10211
10212 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
10213
10214 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
10215 truncate const_int operand 1 to QImode.
10216
10217 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
10218
10219 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
10220 corresponding to an abnormal edge.
10221
10222 2016-02-09 Tom de Vries <tom@codesourcery.com>
10223
10224 PR tree-optimization/69599
10225 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
10226 function.
10227 (find_func_aliases_for_builtin_call, find_func_clobbers)
10228 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
10229 partition.
10230
10231 2016-02-09 Richard Biener <rguenther@suse.de>
10232
10233 PR tree-optimization/69715
10234 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
10235 LHS on calls as non-rewritable.
10236
10237 2016-02-09 Tom de Vries <tom@codesourcery.com>
10238
10239 PR lto/69707
10240 * lto-wrapper.c (append_diag_options): New function.
10241 (compile_offload_image): Call append_diag_options.
10242
10243 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
10244
10245 PR other/69722
10246 * doc/extend.texi (Flag Output Operands): Correct sectioning.
10247 Minor copy-edit to fix verb tenses.
10248
10249 2016-02-08 Jakub Jelinek <jakub@redhat.com>
10250
10251 PR tree-optimization/69209
10252 * ipa-split.c (split_function): If split part is not
10253 returning retval, retval has gimple type but is not
10254 gimple value, force it into a SSA_NAME first.
10255
10256 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
10257
10258 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
10259 outdated section.
10260
10261 2016-02-08 Jason Merrill <jason@redhat.com>
10262
10263 PR c++/69631
10264 * convert.c (convert_to_integer_1): Check dofold on truncation
10265 distribution.
10266 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
10267 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
10268 Rename from *_nofold.
10269 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
10270 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
10271
10272 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
10273
10274 PR target/60410
10275 * tree.c (build_common_tree_nodes): Remove short_double argument.
10276 All callers changed.
10277 * tree.h (build_common_tree_nodes): Adjust declaration.
10278 * doc/invoke.texi (-fshort-double): Remove documentation.
10279 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
10280 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
10281 * lto-wrapper.c (merge_and_complain, append_compiler_options)
10282 (append_linker_options): Don't handle OPT_fshort_double.
10283
10284 PR rtl-optimization/68730
10285 * lra-remat.c (insn_to_cand_activation): New static variable.
10286 (lra_remat): Allocate and free it.
10287 (create_cand): New arg activation. Initialize a field in
10288 insn_to_cand_activation if it is nonnull.
10289 (create_cands): Pass the activation insn to create_cand when making
10290 a candidate involving an output reload. Reorganize code a little.
10291 (do_remat): Keep track of active status of candidates in a separate
10292 bitmap.
10293
10294 2016-02-08 Richard Biener <rguenther@suse.de>
10295
10296 PR tree-optimization/69719
10297 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
10298 Properly use absolute of the difference of the two offsets to
10299 compare or adjust the segment length.
10300
10301 2016-02-08 Richard Biener <rguenther@suse.de>
10302 Jeff Law <law@redhat.com>
10303
10304 PR target/68273
10305 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
10306 types for anonymous SSA names.
10307
10308 2016-02-08 Richard Biener <rguenther@suse.de>
10309
10310 PR rtl-optimization/69274
10311 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
10312
10313 2016-02-08 Jeff Law <law@redhat.com>
10314
10315 PR tree-optimization/65917
10316 * tree-ssa-dom.c (record_temporary_equivalences): Record both
10317 equivalences from if (x == y) style conditionals.
10318 (loop_depth_of_name): Remove.
10319 (record_equality): Remove loop depth check.
10320 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
10321 (const_and_copies::record_const_or_copy_raw): New member function.
10322 * tree-ssa-scopedtables.c
10323 (const_and_copies::record_const_or_copy_raw): New, factored out of
10324 (const_and_copies::record_const_or_copy): Call new member function.
10325
10326 2016-02-05 Jeff Law <law@redhat.com>
10327
10328 PR tree-optimization/68541
10329 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
10330 (count_stmts_in_block): New function.
10331 (poor_ifcvt_candidate_code): Likewise.
10332 (is_feasible_trace): Add some heuristics to determine when path
10333 splitting is profitable.
10334 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
10335 is a diamond with a single exit.
10336
10337 2016-02-05 Martin Sebor <msebor@redhat.com>
10338
10339 PR c++/69662
10340 * doc/invoke.texi: Update -Wplacement-new to take an optional
10341 argument.
10342
10343 2016-02-06 Richard Henderson <rth@redhat.com>
10344
10345 PR c/69643
10346 * tree.c (tree_nop_conversion_p): Do not strip casts into or
10347 out of non-standard address spaces.
10348
10349 2016-02-05 Jakub Jelinek <jakub@redhat.com>
10350
10351 PR rtl-optimization/69691
10352 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
10353
10354 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
10355
10356 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
10357 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
10358 (*ieee128_mfvsrd_64bit): Likewise.
10359 (*ieee128_mfvsrd_32bit): Likewise.
10360
10361 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
10362
10363 PR target/69369
10364 Revert r232560:
10365 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
10366
10367 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
10368 instrumented_version.
10369
10370 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
10371
10372 * doc/invoke.texi (Optimize Options): In table of --param options
10373 rename second occurrence of tracer-min-branch-ratio to
10374 tracer-min-branch-probability, rename
10375 tracer-min-branch-ratio-feedback to
10376 tracer-min-branch-probability-feedback and clarify description,
10377 rename sched-spec-state-edge-prob-cutoff to
10378 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
10379 to selsched-insns-to-rename, rename lto-minpartition to
10380 lto-min-partition, delete reorder-blocks-duplicate and
10381 reorder-blocks-duplicate-feedback.
10382
10383 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10384
10385 * config/s390/s390.c (s390_register_info_set_ranges): Remove
10386 superfluous loops.
10387
10388 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
10389
10390 * doc/extend.texi: S/390: Correct some typos.
10391
10392 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10393
10394 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
10395
10396 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10397
10398 PR target/69625
10399 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
10400 (s390_register_info_gprtofpr): Use new macros above.
10401 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
10402 its name.
10403 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
10404 its name. Adjust restore and save gpr ranges.
10405 (s390_register_info_set_ranges): New function.
10406 (s390_register_info): Use new macros above. Call
10407 s390_register_info_set_ranges.
10408 (s390_optimize_register_info): Likewise.
10409 (s390_hard_regno_rename_ok): Use new macros.
10410 (s390_hard_regno_scratch_ok): Likewise.
10411 (s390_emit_epilogue): Likewise.
10412 (s390_can_use_return_insn): Likewise.
10413 (s390_optimize_prologue): Likewise.
10414 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
10415
10416 2016-02-05 Jakub Jelinek <jakub@redhat.com>
10417
10418 PR bootstrap/69677
10419 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
10420 alignment fixes.
10421 (ix86_option_override_internal): Disable TARGET_STV even for
10422 -m{incoming,preferred}-stack-boundary=3.
10423
10424 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10425
10426 * config.gcc: Mark deprecated rtems targets as obsolete.
10427
10428 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
10429
10430 PR rtl-optimization/64682
10431 PR rtl-optimization/69567
10432 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
10433 before I2 only if the register is both used and set in I2.
10434
10435 2016-02-04 DJ Delorie <dj@redhat.com>
10436
10437 * config/msp430/msp430.c (msp430_start_function): Add function type.
10438
10439 2016-02-04 Jakub Jelinek <jakub@redhat.com>
10440
10441 PR fortran/69368
10442 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
10443
10444 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
10445
10446 PR rtl-optimization/69577
10447 Revert:
10448 2015-10-29 Richard Henderson <rth@redhat.com>
10449
10450 PR target/68124
10451 PR rtl-opt/67609
10452 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
10453 sse check to the exact conditions of PR 67609.
10454
10455 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
10456
10457 PR target/69667
10458 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
10459 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
10460 not allowed into the traditional Altivec registers.
10461 (movtd_64bit_nodm): Likewise.
10462 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
10463
10464 2016-02-04 David Malcolm <dmalcolm@redhat.com>
10465
10466 * config/aarch64/cortex-a57-fma-steering.c
10467 (aarch64_register_fma_steering): Remove "static" from arguments
10468 to register_pass.
10469
10470 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
10471
10472 PR target/69619
10473 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
10474 twice when complex.
10475
10476 2016-02-04 Mike Frysinger <vapier@gentoo.org>
10477
10478 * doc/invoke.texi: Delete -mno-fma4.
10479
10480 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
10481
10482 PR rtl-optimization/69577
10483 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
10484 (find_subregs_of_mode): Update accordingly. Iterate over partial
10485 definitions.
10486
10487 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
10488
10489 * config/arm/arm-protos.h (neon_reinterpret): Remove.
10490 * config/arm/arm.c (neon_reinterpret): Remove.
10491 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
10492 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
10493 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
10494 vreinterpretti): Remove.
10495 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
10496 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
10497 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
10498 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
10499 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
10500 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
10501 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
10502 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
10503 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
10504 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
10505 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
10506 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
10507 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
10508 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
10509 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
10510 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
10511 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
10512 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
10513 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
10514 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
10515 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
10516 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
10517 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
10518 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
10519 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
10520 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
10521 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
10522 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
10523 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
10524 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
10525 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
10526 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
10527 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
10528 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
10529 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
10530 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
10531 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
10532 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
10533 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
10534 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
10535 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
10536 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
10537 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
10538 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
10539 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
10540 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
10541 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
10542 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
10543 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
10544 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
10545 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
10546 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
10547 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
10548 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
10549 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
10550 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
10551 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
10552 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
10553 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
10554 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
10555 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
10556 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
10557 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
10558 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
10559 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
10560 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
10561 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
10562 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
10563 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
10564 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
10565 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
10566 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
10567 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
10568 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
10569 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
10570 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
10571 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
10572 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
10573 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
10574 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
10575 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
10576 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
10577 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
10578 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
10579 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
10580 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
10581 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
10582 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
10583 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
10584 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
10585 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
10586 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
10587 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
10588 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
10589 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
10590 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
10591 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
10592 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
10593 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
10594 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
10595 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
10596 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
10597 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
10598
10599 2016-02-04 Martin Liska <mliska@suse.cz>
10600
10601 PR sanitizer/69276
10602 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
10603 that are gimple_store_p.
10604 (maybe_instrument_call): Likewise.
10605
10606 2016-02-04 Bin Cheng <bin.cheng@arm.com>
10607
10608 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
10609 register scaling out of memory reference and comment why.
10610
10611 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10612
10613 PR target/65932
10614 PR target/67714
10615 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
10616 folding the source of a SET.
10617
10618 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10619
10620 PR target/65932
10621 PR target/67714
10622 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
10623 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
10624
10625 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
10626
10627 PR target/65932
10628 PR target/67714
10629 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
10630 HImode.
10631
10632 2016-02-04 Christian Bruel <christian.bruel@st.com>
10633
10634 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
10635 * config/arm/arm.c (arm_set_current_function): Likewise.
10636
10637 2016-02-04 Jakub Jelinek <jakub@redhat.com>
10638 Ilya Enkovich <enkovich.gnu@gmail.com>
10639 H.J. Lu <hongjiu.lu@intel.com>
10640
10641 PR target/69454
10642 * config/i386/i386.c (convert_scalars_to_vector): Remove
10643 stack alignment fixes.
10644 (ix86_option_override_internal): Disable TARGET_STV if stack
10645 might not be aligned enough.
10646 (ix86_minimum_alignment): Assert that TARGET_STV is false.
10647
10648 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
10649
10650 * config/i386/x86-tune.def: Disable default prefetching
10651 for -march=znver1.
10652
10653 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
10654 Vladimir Makarov <vmakarov@redhat.com>
10655
10656 PR target/69461
10657 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
10658 in validating fused toc addresses.
10659
10660 2016-02-03 Jakub Jelinek <jakub@redhat.com>
10661
10662 PR c/69627
10663 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
10664 range->m_caret fields if range->m_show_caret_p is false.
10665
10666 PR target/69644
10667 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
10668 Force oldval into register if it does not satisfy reg_or_short_operand
10669 predicate. Fix up formatting.
10670
10671 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
10672 Alexandre Oliva <aoliva@redhat.com>
10673
10674 PR target/69461
10675 * lra-constraints.c (simplify_operand_subreg): Check additionally
10676 address validity after potential reloading.
10677 (process_address_1): Check insns validity. In case of failure do
10678 nothing.
10679
10680 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
10681
10682 PR target/69118
10683 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
10684 Fix target.
10685
10686 2016-02-02 Jakub Jelinek <jakub@redhat.com>
10687
10688 * wide-int.cc (canonize_uhwi): New function.
10689 (wi::divmod_internal): Use it.
10690
10691 2016-02-02 James Norris <jnorris@codesourcery.com
10692
10693 * gimplify.c (omp_notice_variable): Add usage check.
10694
10695 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
10696
10697 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
10698 like LE, GE, LT, GT when emitting relational operator.
10699
10700 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
10701
10702 * ira-costs.c (find_costs_and_classes): Add extra argument.
10703 * target.def (ira_change_pseudo_allocno_class): Add parameter.
10704 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
10705 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
10706 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
10707 Add best_class parameter, and return it if not ALL_REGS.
10708 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
10709 Add parameter.
10710 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
10711 Update target hook.
10712
10713 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
10714
10715 * config/aarch64/aarch64.c
10716 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
10717 (aarch64_ira_change_pseudo_allocno_class): New function.
10718
10719 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
10720
10721 PR target/67032
10722 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
10723
10724 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
10725
10726 * config/avr/avr.c (avr_option_override): Set
10727 PARAM_ALLOW_STORE_DATA_RACES to 1.
10728
10729 2016-02-02 Richard Biener <rguenther@suse.de>
10730
10731 PR tree-optimization/69595
10732 * match.pd: Add range test simplifications to true/false.
10733
10734 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
10735
10736 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
10737 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
10738 instead.
10739
10740 2016-02-02 Richard Biener <rguenther@suse.de>
10741
10742 PR tree-optimization/69606
10743 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
10744 info on the result before moving a stmt.
10745
10746 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
10747
10748 PR middle-end/68542
10749 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
10750 branch with vector comparison.
10751 * config/i386/sse.md (VI48_AVX): New mode iterator.
10752 (define_expand "cbranch<mode>4): Add support for conditional branch
10753 with vector comparison.
10754 * tree-vect-loop.c (optimize_mask_stores): New function.
10755 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
10756 has_mask_store field of vect_info.
10757 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
10758 vectorized loops having masked stores after vec_info destroy.
10759 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
10760 correspondent macros.
10761 (optimize_mask_stores): Add prototype.
10762
10763 2016-02-02 Alan Modra <amodra@gmail.com>
10764
10765 PR target/69548
10766 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
10767 allow subregs.
10768
10769 2016-02-02 Alan Modra <amodra@gmail.com>
10770
10771 PR target/68662
10772 * config/rs6000/rs6000.c (need_toc_init): New var, set it
10773 whenever toc_label_name used.
10774 (rs6000_file_start): Don't set up toc section here,
10775 (rs6000_output_function_epilogue): do so here instead,
10776 (rs6000_xcoff_file_start): and here.
10777 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
10778 (load_toc_aix_di): Likewise.
10779
10780 2016-02-01 Jakub Jelinek <jakub@redhat.com>
10781
10782 PR rtl-optimization/69592
10783 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
10784 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
10785 (num_sign_bit_copies_binary_arith_p): New inline function.
10786 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
10787
10788 2016-02-01 Jeff Law <law@redhat.com>
10789
10790 PR tree-optimization/69580
10791 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
10792 * tree-ssa-threadbackward.c
10793 (fsm_find_control_statement_thread_paths): Do not try to walk
10794 through large PHI nodes.
10795
10796 2016-02-01 Jakub Jelinek <jakub@redhat.com>
10797
10798 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
10799 when count is incremented above limit, don't analyze further
10800 insns afterwards.
10801
10802 * omp-low.c (oacc_parse_default_dims): Avoid
10803 -Wsign-compare warning, make sure value fits into int
10804 rather than just unsigned int.
10805
10806 2016-02-01 Bin Cheng <bin.cheng@arm.com>
10807
10808 PR tree-optimization/67921
10809 * fold-const.c (split_tree): New parameters. Convert pointer
10810 type variable part to proper type before negating.
10811 (fold_binary_loc): Pass new arguments to split_tree.
10812
10813 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
10814
10815 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
10816 (nvptx_goacc_validate_dims): Extend to handle global defaults.
10817 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
10818 * doc/tm.texti: Rebuilt.
10819 * doc/invoke.texi (fopenacc-dim): Document.
10820 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
10821 (append_compiler_options): Likewise.
10822 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
10823 (oacc_parse_default_dims): New.
10824 (oacc_validate_dims): Add USED arg. Select non-unity default when
10825 possible.
10826 (oacc_loop_fixed_partitions): Return mask of used partitions.
10827 (oacc_loop_auto_partitions): Emit dump info.
10828 (oacc_loop_partition): Return mask of used partitions.
10829 (execute_oacc_device_lower): Parse default dimension arg. Adjust
10830 loop partitioning and validation calls.
10831
10832 2016-02-01 Richard Biener <rguenther@suse.de>
10833
10834 PR middle-end/69556
10835 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
10836
10837 2016-02-01 Richard Biener <rguenther@suse.de>
10838
10839 PR tree-optimization/69574
10840 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
10841 of asserting return chrec_dont_know.
10842
10843 2016-02-01 Martin Liska <mliska@suse.cz>
10844
10845 * mem-stats-traits.h: Add copyright header.
10846 * mem-stats.h: Likewise.
10847
10848 2016-02-01 Richard Biener <rguenther@suse.de>
10849
10850 PR tree-optimization/69579
10851 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
10852 Do not propagate through abnormal PHI results.
10853
10854 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
10855
10856 * postreload.c (reload_cse_simplify): Remove dead code.
10857
10858 2016-02-01 Jakub Jelinek <jakub@redhat.com>
10859
10860 PR rtl-optimization/69570
10861 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
10862 if there is more than one set, not if there is a single set.
10863
10864 2016-02-01 Richard Henderson <rth@redhat.com>
10865
10866 PR rtl-opt/69535
10867 * combine.c (make_compound_operation): When looking through a
10868 subreg, make sure to re-extend to the width of the outer mode.
10869
10870 2016-01-30 Jakub Jelinek <jakub@redhat.com>
10871
10872 PR tree-optimization/69546
10873 * wide-int.cc (wi::divmod_internal): For unsigned division
10874 where both operands fit into uhwi, if o1 is 1 and o0 has
10875 msb set, if divident_prec is larger than bits per hwi,
10876 clear another quotient word and return 2 instead of 1.
10877 Similarly for remainder with msb in HWI set, if dividend_prec
10878 is larger than bits per hwi.
10879
10880 2016-01-29 Martin Jambor <mjambor@suse.cz>
10881
10882 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
10883 Use short lowercase names.
10884 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
10885 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
10886 acq_rel one. Protect warning agains segfaults if
10887 get_memory_order_name returns NULL.
10888 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
10889 with release semantics. Do not warn if get_memory_order already did.
10890 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
10891 semantics. Fix check for relaxed or acquire semantics. Do not warn
10892 if get_memory_order already did.
10893
10894 2016-01-29 Sebastian Pop <s.pop@samsung.com>
10895
10896 * doc/install.texi: Document that isl-0.16 is supported.
10897
10898 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
10899
10900 PR target/69299
10901 * config/i386/constraints.md (Bm): Describe as special memory
10902 constraint.
10903 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
10904 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
10905 * genpreds.c (struct constraint_data): Add is_special_memory.
10906 (have_special_memory_constraints, special_memory_start): New
10907 static vars.
10908 (special_memory_end): Ditto.
10909 (add_constraint): Add new arg is_special_memory. Add code to
10910 process its true value. Update have_special_memory_constraints.
10911 (process_define_constraint): Pass the new arg.
10912 (process_define_register_constraint): Ditto.
10913 (choose_enum_order): Process special memory.
10914 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
10915 function insn_extra_special_memory_constraint.
10916 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
10917 * gensupport.c (process_rtx): Process
10918 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
10919 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
10920 * ira-lives.c (single_reg_class): Use
10921 insn_extra_special_memory_constraint.
10922 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
10923 * lra-constraints.c (process_alt_operands): Ditto.
10924 (curr_insn_transform): Use insn_extra_special_memory_constraint.
10925 * recog.c (asm_operand_ok, preprocess_constraints): Process
10926 CT_SPECIAL_MEMORY.
10927 * reload.c (find_reloads): Ditto.
10928 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
10929 * stmt.c (parse_input_constraint): Use
10930 insn_extra_special_memory_constraint.
10931
10932 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
10933
10934 PR target/69530
10935 * lra-splill.c (lra_final_code_change): Revert r229087 by
10936 removing all sub-registers.
10937
10938 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
10939
10940 PR target/65604
10941 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
10942
10943 2016-01-29 Jakub Jelinek <jakub@redhat.com>
10944
10945 PR target/69551
10946 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
10947 SSE1, copy target into the temporary reg first before recursing
10948 on it.
10949
10950 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
10951
10952 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
10953 with vm.
10954
10955 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
10956
10957 * ginclude/stdarg.h: Test __cplusplus instead of
10958 __GXX_EXPERIMENTAL_CXX0X__.
10959
10960 2016-01-29 Richard Biener <rguenther@suse.de>
10961
10962 PR tree-optimization/69547
10963 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
10964 Do not mark clobbers necessary.
10965 (mark_all_reaching_defs_necessary_1): Likewise.
10966
10967 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
10968
10969 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
10970 declaration name with %qs and print it in both error messages.
10971 Also fix indentation.
10972
10973 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
10974
10975 PR other/69006
10976 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
10977 trailing blank line from error message.
10978
10979 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
10980
10981 PR c++/69462
10982 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
10983 for C++-11.
10984
10985 2016-01-29 Richard Biener <rguenther@suse.de>
10986
10987 PR middle-end/69537
10988 * match.pd: Allow all integral types when simplifying a
10989 widening or sign-changing conversion.
10990
10991 2016-01-28 Sebastian Pop <s.pop@samsung.com>
10992
10993 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
10994 back to setting codegen_error to fail codegen.
10995
10996 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
10997
10998 PR target/69459
10999 * config/i386/constraints.md (C): Only accept constant zero operand.
11000 (BC): New constraint.
11001 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
11002 instead of C constraint.
11003 * doc/md.texi (Machine Constraints): Update description
11004 of C constraint.
11005
11006 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
11007
11008 PR target/68400
11009 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
11010
11011 2016-01-28 Jakub Jelinek <jakub@redhat.com>
11012
11013 PR middle-end/69542
11014 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
11015 non-debug insns.
11016
11017 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
11018
11019 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
11020 branches if using guessed profile.
11021
11022 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
11023
11024 * graphite-optimize-isl.c (optimize_isl): Fix dump.
11025
11026 2016-01-28 Richard Henderson <rth@redhat.com>
11027
11028 PR target/69305
11029 * config/aarch64/aarch64-modes.def (CC_Cmode): New
11030 * config/aarch64/aarch64-protos.h: Update.
11031 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
11032 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
11033 (aarch64_get_condition_code_1): Handle CC_Cmode.
11034 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
11035 (*add<mode>3_compareC_cconly_imm): New.
11036 (*add<mode>3_compareC_cconly): New.
11037 (*add<mode>3_compareC_imm): New.
11038 (add<mode>3_compareC): New.
11039 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
11040 to be first. Use aarch64_carry_operation.
11041 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
11042 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
11043 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
11044 (subti3): Use subdi3_compare1.
11045 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
11046 (sub<mode>3_compare1): New.
11047 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
11048 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
11049 (*subsi3_carryin_uxtw): Likewise.
11050 (*ngc<mode>, *ngcsi_uxtw): Likewise.
11051 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
11052 * config/aarch64/iterators.md (DWI): New.
11053 * config/aarch64/predicates.md (aarch64_carry_operation): New.
11054 (aarch64_borrow_operation): New.
11055
11056 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
11057
11058 * graphite-optimize-isl.c (optimize_isl): Print a different debug
11059 message when isl does not return a valid schedule.
11060
11061 2016-01-28 Sebastian Pop <s.pop@samsung.com>
11062
11063 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
11064 Remove comments from class declarations: they are already in the code
11065 close by the defs.
11066
11067 2016-01-28 Sebastian Pop <s.pop@samsung.com>
11068
11069 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
11070 codegen_error_p.
11071 (ternary_op_to_tree): Same.
11072 (unary_op_to_tree): Same.
11073 (nary_op_to_tree): Same.
11074 (gcc_expression_from_isl_expr_op): Same.
11075 (gcc_expression_from_isl_expression): Same.
11076 (graphite_create_new_loop): Same.
11077 (graphite_create_new_loop_guard): Same.
11078 (build_iv_mapping): Same.
11079 (graphite_create_new_guard): Same.
11080 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
11081 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
11082
11083 2016-01-28 Sebastian Pop <s.pop@samsung.com>
11084
11085 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
11086 instead of setting codegen_error to fail codegen.
11087
11088 2016-01-28 Jason Merrill <jason@redhat.com>
11089
11090 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
11091
11092 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
11093
11094 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
11095 Remove CONST_INT_P check in CCMP cost calculation.
11096
11097 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
11098
11099 * config/aarch64/aarch64.c (generic_vector_cost):
11100 Set vec_permute_cost.
11101 (cortexa57_vector_cost): Likewise.
11102 (exynosm1_vector_cost): Likewise.
11103 (xgene1_vector_cost): Likewise.
11104 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
11105 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
11106 Add vec_permute_cost entry.
11107
11108 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
11109
11110 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
11111 immediate as %1.
11112 (add<mode>3_compare0): Likewise.
11113 (addsi3_compare0_uxtw): Likewise.
11114 (add<mode>3nr_compare0): Likewise.
11115 (compare_neg<mode>): Likewise.
11116 (<optab><mode>3): Likewise.
11117
11118 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
11119
11120 * tree-vect-stmts.c (vectorizable_comparison): Add
11121 NULL check for vectype.
11122
11123 2016-01-28 Richard Biener <rguenther@suse.de>
11124
11125 PR tree-optimization/69466
11126 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
11127 Account for PHIs we couldn't duplicate.
11128
11129 2016-01-28 Martin Liska <mliska@suse.cz>
11130
11131 PR pch/68758
11132 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
11133 instead of ENABLE_VALGRIND_CHECKING.
11134
11135 2016-01-27 Richard Henderson <rth@redhat.com>
11136
11137 PR rtl-opt/69447
11138 * lra-remat.c (subreg_regs): New.
11139 (dump_candidates_and_remat_bb_data): Dump it.
11140 (operand_to_remat): Reject if operand in subreg_regs.
11141 (set_bb_regs): Collect subreg_regs.
11142 (lra_remat): Init and free subreg_regs. Compute
11143 calculate_local_reg_remat_bb_data before create_cands.
11144
11145 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
11146
11147 PR target/68986
11148 * config/i386/i386.c (ix86_update_stack_boundary): Don't
11149 change stack_alignment_needed for __tls_get_addr call.
11150
11151 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
11152
11153 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
11154
11155 2016-01-27 Jeff Law <law@redhat.com>
11156
11157 PR tree-optimization/68398
11158 PR tree-optimization/69196
11159 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
11160 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
11161 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
11162 Only count PHIs in the last block in the path. The others will
11163 const/copy propagate away. Add heuristic to allow more irreducible
11164 subloops to be created when it is likely profitable to do so.
11165
11166 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
11167 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
11168 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
11169
11170 2016-01-27 Jakub Jelinek <jakub@redhat.com>
11171
11172 PR lto/69254
11173 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
11174 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
11175 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
11176 * tree-streamer-in.c: Include asan.h.
11177 (streamer_get_builtin_tree): For builtins in sanitizer
11178 range call initialize_sanitizer_builtins and retry.
11179
11180 2016-01-27 Ian Lance Taylor <iant@google.com>
11181
11182 * common.opt (fkeep-gc-roots-live): New undocumented option.
11183 * tree-ssa-loop-ivopts.c (add_candidate_1): If
11184 -fkeep-gc-roots-live, skip pointers.
11185 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
11186 NULL.
11187
11188 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
11189
11190 PR target/69512
11191 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
11192 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
11193
11194 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
11195
11196 PR target/68380
11197 * configure.ac: NetBSD provides SSP in its C library.
11198 * configure: Updated.
11199
11200 2016-01-27 Richard Biener <rguenther@suse.de>
11201
11202 PR tree-optimization/69166
11203 * tree-vect-loop.c (vect_is_simple_reduction): Always check
11204 reduction code for commutativity / associativity.
11205
11206 2016-01-27 Martin Jambor <mjambor@suse.cz>
11207
11208 PR tree-optimization/69355
11209 * tree-sra.c (analyze_access_subtree): Correct hole detection when
11210 total_scalarization fails.
11211
11212 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
11213
11214 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
11215 power9.
11216
11217 2016-01-27 Christian Bruel <christian.bruel@st.com>
11218
11219 PR target/69245
11220 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
11221 Move arm_reset_previous_fndecl and set_target_option_current_node in
11222 the conditional part. Call save_restore_target_globals.
11223 * config/arm/arm.c (arm_set_current_function):
11224 Refactor to better support #pragma target and attribute mix.
11225 Call save_restore_target_globals.
11226 * config/arm/arm-protos.h (save_restore_target_globals): New function.
11227
11228 2016-01-27 Martin Liska <mliska@suse.cz>
11229
11230 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
11231 reference for an HSA kernel and its host function.
11232
11233 2016-01-27 Jakub Jelinek <jakub@redhat.com>
11234
11235 PR tree-optimization/69399
11236 * wide-int.h (wi::lrshift): For larger precisions, only
11237 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
11238
11239 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
11240
11241 * config/arc/predicates.md (proper_comparison_operator): Reject
11242 constant-constant comparison.
11243
11244 2016-01-26 Tom de Vries <tom@codesourcery.com>
11245
11246 PR tree-optimization/69110
11247 * tree-data-ref.c (initialize_data_dependence_relation): Handle
11248 DR_NUM_DIMENSIONS == 0.
11249
11250 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
11251 Sebastian Pop <s.pop@samsung.com>
11252
11253 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
11254 isl_ast_op_cond and isl_ast_op_select.
11255 (gcc_expression_from_isl_expr_op): Same.
11256
11257 2016-01-26 Jason Merrill <jason@redhat.com>
11258
11259 PR c++/68782
11260 * tree.c (recompute_constructor_flags): Split out from
11261 build_constructor.
11262 (verify_constructor_flags): New.
11263 * tree.h: Declare them.
11264
11265 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
11266
11267 PR rtl-optimization/69217
11268 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
11269 are no TYPE_FIELDS set for the record type.
11270
11271 2016-01-26 Jakub Jelinek <jakub@redhat.com>
11272
11273 PR target/68662
11274 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
11275 toc_label_name unconditionally.
11276 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
11277 SYMBOL_REF string. Use toc_label_name instead of constructing
11278 LCTOC1.
11279 (rs6000_elf_declare_function_name): Use toc_label_name instead of
11280 constructing LCTOC1.
11281
11282 2016-01-26 Martin Sebor <msebor@redhat.com>
11283
11284 PR other/69477
11285 * doc/extend.texi (Common Type Attributes): Move text that talks about
11286 attribute packed from attribute aligned to the section discussing
11287 the former attribute for clarity.
11288
11289 2016-01-26 Richard Henderson <rth@redhat.com>
11290
11291 PR middle-end/60908
11292 * trans-mem.c (tm_region_init): Mark entry block as visited.
11293
11294 2016-01-26 David Malcolm <dmalcolm@redhat.com>
11295
11296 PR other/69006
11297 * diagnostic-show-locus.c (layout::print_source_line): Replace
11298 call to pp_newline with call to layout::print_newline.
11299 (layout::print_annotation_line): Likewise.
11300 (layout::move_to_column): Likewise.
11301 (layout::print_any_fixits): After printing any fixits, print a
11302 trailing newline, if necessary.
11303 (layout::print_newline): New method, resetting any colorization
11304 before a newline.
11305 (diagnostic_show_locus): Move the pp_newline to before the
11306 early bailout. Remove dummy block enclosing the layout instance.
11307 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
11308 of pp_newline_and_flush with pp_flush.
11309 (diagnostic_append_note): Delete use of pp_newline.
11310 (diagnostic_append_note_at_rich_loc): Delete.
11311 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
11312 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
11313 when newline characters are added to the buffer.
11314
11315 2016-01-26 Michael Matz <matz@suse.de>
11316
11317 * configure.ac (ac_cv_std_swap_in_utility): New test.
11318 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
11319 * configure: Regenerate.
11320 * config.in: Regenerate.
11321
11322 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
11323
11324 * config/arc/arc.md (cstoresi4): Force operand into register.
11325 (arcset<code>): Fix predicate.
11326 (arcsetltu): Likewise.
11327 (arcsetgeu): Likewise.
11328 (arcsethi): Likewise.
11329 (arcsetls): Likewise.
11330
11331 2016-01-26 Jakub Jelinek <jakub@redhat.com>
11332
11333 PR tree-optimization/69483
11334 * gimple-fold.c (canonicalize_constructor_val): Return NULL
11335 if base has error_mark_node type.
11336
11337 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
11338
11339 PR target/68620
11340 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
11341 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
11342 New helper macros.
11343 (vget_lane_f16): Handle big-endian.
11344 (vgetq_lane_f16): Likewise.
11345 (vset_lane_f16): Likewise.
11346 (vsetq_lane_f16): Likewise.
11347 * config/arm/iterators.md (VQXMOV): Add V8HF.
11348 (VDQ): Add V4HF and V8HF.
11349 (V_reg): Handle V4HF and V8HF.
11350 (Is_float_mode): Likewise.
11351 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
11352 neon_vdup_nv8hf): New patterns.
11353 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
11354 Use VD_LANE iterator.
11355 (neon_vld1_dup<mode>): Use VQ2 iterator.
11356
11357 2016-01-26 Nathan Sidwell <nathan@acm.org>
11358
11359 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
11360 (set_oacc_fn_attrib): Add IS_KERNEL arg.
11361 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
11362 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
11363 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
11364 (oacc_validate_dims): Add LEVEL arg, don't return level.
11365 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
11366 oacc_validate_dims.
11367 (execute_oacc_device_lower): Adjust, add more dump output.
11368 * tree-ssa-loop.c (gate_oacc_kernels): Use
11369 oacc_fn_attrib_kernels_p.
11370 * tree-parloops.c (create_parallel_loop): Adjust
11371 set_oacc_fn_attrib call.
11372
11373 2016-01-26 Jakub Jelinek <jakub@redhat.com>
11374
11375 PR lto/69254
11376 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
11377 (append_compiler_options): Handle -fcilkplus.
11378 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
11379
11380 2016-01-26 Nick Clifton <nickc@redhat.com>
11381
11382 PR target/66655
11383 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
11384 been marked as DECL_ONE_ONLY but we do not the means to make it
11385 so, then do not allow it to bind locally.
11386
11387 2016-01-26 Jakub Jelinek <jakub@redhat.com>
11388
11389 PR lto/69254
11390 * opts.h (parse_sanitizer_options): New prototype.
11391 * opts.c (sanitizer_opts): New array.
11392 (parse_sanitizer_options): New function.
11393 (common_handle_option): Use parse_sanitizer_options.
11394
11395 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
11396
11397 PR target/68986
11398 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
11399 alignment adjustment to ...
11400 (ix86_update_stack_boundary): Here. Don't over-align stack for
11401 __tls_get_addr.
11402 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
11403 if __tls_get_addr is called.
11404
11405 2016-01-26 Christian Bruel <christian.bruel@st.com>
11406
11407 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
11408
11409 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
11410
11411 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
11412
11413 2016-01-26 Richard Biener <rguenther@suse.de>
11414
11415 PR middle-end/69467
11416 * match.pd: Guard X * CST CMP 0 pattern with single_use.
11417
11418 2016-01-26 Richard Biener <rguenther@suse.de>
11419
11420 PR tree-optimization/69452
11421 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
11422 (move_computations_dom_walker::before_dom_children): Rename
11423 to ...
11424 (move_computations_worker): This.
11425 (move_computations): Perform an RPO rather than a DOM walk.
11426
11427 2016-01-26 Jakub Jelinek <jakub@redhat.com>
11428
11429 PR target/69442
11430 * combine.c (combine_instructions): For REG_EQUAL note with
11431 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
11432 to the underlying register.
11433 * doc/rtl.texi (REG_EQUAL): Document the behavior of
11434 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
11435
11436 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
11437
11438 PR target/67896
11439 * config/aarch64/aarch64-builtins.c
11440 (aarch64_init_simd_builtin_types): Do not set structural
11441 equality to __Poly{8,16,64,128}_t types.
11442
11443 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
11444
11445 PR tree-optimization/69400
11446 * wide-int.cc (wi_pack): Take the precision as argument and
11447 perform canonicalization here rather than in the callers.
11448 Use the main loop to handle all full-width HWIs. Add a
11449 zero HWI if in_len isn't a full result.
11450 (wi::divmod_internal): Update accordingly.
11451 (wi::mul_internal): Likewise. Simplify.
11452
11453 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
11454 Sebastian Pop <s.pop@samsung.com>
11455
11456 * graphite-poly.c (apply_poly_transforms): Simplify.
11457 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
11458 (print_isl_map): Same.
11459 (print_isl_union_map): Same.
11460 (print_isl_schedule): New.
11461 (debug_isl_schedule): New.
11462 * graphite-dependences.c (scop_get_reads): Do not call
11463 isl_union_map_add_map that is undocumented isl functionality.
11464 (scop_get_must_writes): Same.
11465 (scop_get_may_writes): Same.
11466 (scop_get_original_schedule): Remove.
11467 (scop_get_dependences): Do not call isl_union_map_compute_flow that
11468 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
11469 (compute_deps): Remove.
11470 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
11471 (debug_schedule_ast): New.
11472 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
11473 set_separate_option.
11474 (graphite_regenerate_ast_isl): Add dump.
11475 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
11476 from scop->transformed_schedule.
11477 (graphite_regenerate_ast_isl): Add more dump.
11478 * graphite-optimize-isl.c (optimize_isl): Set
11479 scop->transformed_schedule. Check whether schedules are equal.
11480 (apply_poly_transforms): Move here.
11481 * graphite-poly.c (apply_poly_transforms): ... from here.
11482 (free_poly_bb): Static.
11483 (free_scop): Static.
11484 (pbb_number_of_iterations_at_time): Remove.
11485 (print_isl_ast): New.
11486 (debug_isl_ast): New.
11487 (debug_scop_pbb): New.
11488 * graphite-scop-detection.c (print_edge): Move.
11489 (print_sese): Move.
11490 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
11491 (build_scop_scattering): Remove.
11492 (create_pw_aff_from_tree): Assert instead of bailing out.
11493 (add_condition_to_pbb): Remove unused code, do not fail.
11494 (add_conditions_to_domain): Same.
11495 (add_conditions_to_constraints): Remove.
11496 (build_scop_context): New.
11497 (add_iter_domain_dimension): New.
11498 (build_iteration_domains): Initialize pbb->iterators.
11499 Call add_conditions_to_domain.
11500 (nested_in): New.
11501 (loop_at): New.
11502 (index_outermost_in_loop): New.
11503 (index_pbb_in_loop): New.
11504 (outermost_pbb_in): New.
11505 (add_in_sequence): New.
11506 (add_outer_projection): New.
11507 (outer_projection_mupa): New.
11508 (add_loop_schedule): New.
11509 (build_schedule_pbb): New.
11510 (build_schedule_loop): New.
11511 (embed_in_surrounding_loops): New.
11512 (build_schedule_loop_nest): New.
11513 (build_original_schedule): New.
11514 (build_poly_scop): Call build_original_schedule.
11515 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
11516 (free_poly_dr): Remove.
11517 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
11518 (free_poly_bb): Remove.
11519 (debug_loop_vec): Remove.
11520 (print_isl_ast): Declare.
11521 (debug_isl_ast): Declare.
11522 (scop_do_interchange): Remove.
11523 (scop_do_strip_mine): Remove.
11524 (scop_do_block): Remove.
11525 (flatten_all_loops): Remove.
11526 (optimize_isl): Remove.
11527 (pbb_number_of_iterations_at_time): Remove.
11528 (debug_scop_pbb): Declare.
11529 (print_schedule_ast): Declare.
11530 (debug_schedule_ast): Declare.
11531 (struct scop): Remove schedule. Add original_schedule,
11532 transformed_schedule.
11533 (free_gimple_poly_bb): Remove.
11534 (print_generated_program): Remove.
11535 (debug_generated_program): Remove.
11536 (unify_scattering_dimensions): Remove.
11537 * sese.c (print_edge): ... here.
11538 (print_sese): ... here.
11539 (debug_edge): ... here.
11540 (debug_sese): ... here.
11541 * sese.h (print_edge): Declare.
11542 (print_sese): Declare.
11543 (dump_edge): Declare.
11544 (dump_sese): Declare.
11545
11546 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
11547 Sebastian Pop <s.pop@samsung.com>
11548
11549 * Makefile.in: Set ISLVER in site.exp.
11550
11551 2016-01-25 Jakub Jelinek <jakub@redhat.com>
11552
11553 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
11554 DECL_VALUE_EXPR of new_var even for the non-array case. Look
11555 through DECL_VALUE_EXPR for expansion.
11556
11557 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
11558
11559 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
11560 the frame info after reload completed.
11561
11562 2016-01-25 Jeff Law <law@redhat.com>
11563
11564 PR tree-optimization/69196
11565 PR tree-optimization/68398
11566 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
11567 tree-ssa-threadupdate.c.
11568 (determine_bb_domination_status): Prototype
11569 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
11570 (determine_bb_domination_status): No longer static.
11571 (valid_jump_thread_path): Remove code to detect characteristics
11572 of the jump thread path not associated with correctness.
11573 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
11574 Correct test for thread path length. Count PHIs for real operands as
11575 statements that need to be copied. Do not count ASSERT_EXPRs.
11576 Look at all the blocks in the thread path. Compute and selectively
11577 filter thread paths based on threading through the latch, threading
11578 a multiway branch or crossing a multiway branch.
11579
11580 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11581
11582 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
11583 decl with __attribute__ ((unused)) annotation.
11584
11585 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
11586
11587 PR target/69421
11588 * tree-vect-stmts.c (vectorizable_condition): Check vectype
11589 of operands is compatible with a statement vectype.
11590
11591 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
11592
11593 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
11594 improve wording for mixed storage order support.
11595
11596 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
11597
11598 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
11599 (vcvt_u64_f64): Likewise.
11600 (vcvta_s64_f64): Likewise.
11601 (vcvta_u64_f64): Likewise.
11602 (vcvtm_s64_f64): Likewise.
11603 (vcvtm_u64_f64): Likewise.
11604 (vcvtn_s64_f64): Likewise.
11605 (vcvtn_u64_f64): Likewise.
11606 (vcvtp_s64_f64): Likewise.
11607 (vcvtp_u64_f64): Likewise.
11608
11609 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
11610
11611 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
11612 (arc_init): Check validity mll64 option.
11613 (arc_save_restore): Use double load/store instruction.
11614 (arc_expand_movmem): Likewise.
11615 (arc_split_move): Don't split if we have double load/store
11616 instructions. Returns a boolean.
11617 (arc_process_double_reg_moves): Change function to return boolean
11618 instead of a sequence of instructions.
11619 (arc_dwarf_register_span): New function.
11620 * config/arc/arc-protos.h (arc_split_move): Change prototype.
11621 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
11622 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
11623 (*movdf_insn): Likewise.
11624 * config/arc/arc.opt (mll64): New option.
11625 * config/arc/predicates.md (even_register_operand): New predicate.
11626 * doc/invoke.texi (ARC Options): Add mll64 documentation.
11627
11628 2016-01-25 Richard Biener <rguenther@suse.de>
11629
11630 PR lto/69393
11631 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
11632 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
11633 DECL_NAMELESS.
11634 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
11635
11636 2016-01-25 Richard Biener <rguenther@suse.de>
11637
11638 PR tree-optimization/69376
11639 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
11640 flag.
11641 (VN_INFO_ANTI_RANGE_P): New inline.
11642 (VN_INFO_RANGE_TYPE): Likewise.
11643 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
11644 SSA_NAME_ANTI_RANGE_P.
11645 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
11646 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11647 Properly query VN_INFO_RANGE_TYPE.
11648
11649 2016-01-25 Nick Clifton <nickc@redhat.com>
11650
11651 PR target/66655
11652 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
11653
11654 2016-01-23 Tom de Vries <tom@codesourcery.com>
11655
11656 PR tree-optimization/69426
11657 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
11658 removed clobber.
11659
11660 2016-01-23 Jakub Jelinek <jakub@redhat.com>
11661
11662 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
11663 "the the" with "the" in the comments.
11664 * ipa-devirt.c (build_type_inheritance_graph,
11665 update_type_inheritance_graph): Likewise.
11666 * tree.c (build_function_type_list_1): Likewise.
11667 * cfgloopmanip.c (scale_loop_profile): Likewise.
11668 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
11669 * gimple-ssa-split-paths.c
11670 (find_block_to_duplicate_for_splitting_paths): Likewise.
11671 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
11672 * expr.c (convert_move): Likewise.
11673 * var-tracking.c (vt_stack_adjustments): Likewise.
11674 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
11675 * tree-vrp.c (test_for_singularity): Likewise.
11676
11677 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
11678 directly instead of building a temporary tree.
11679
11680 PR bootstrap/69434
11681 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
11682 remove <algorithm> include.
11683
11684 2016-01-22 Jakub Jelinek <jakub@redhat.com>
11685
11686 PR target/69432
11687 * config/i386/i386.c: Include dojump.h.
11688 (expand_small_movmem_or_setmem,
11689 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
11690 fixes.
11691 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
11692 if dynamic_check != -1.
11693
11694 2016-01-21 Jeff Law <law@redhat.com>
11695
11696 PR middle-end/69347
11697 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
11698 record_temporary_equivalences. Rewritten to avoid unnecessary calls
11699 into dominated_by_p.
11700 (cprop_into_successor_phis): Avoid unnecessary tests.
11701
11702 2016-01-22 Richard Henderson <rth@redhat.com>
11703
11704 PR target/69416
11705 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
11706 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
11707
11708 2016-01-22 Michael Matz <matz@suse.de>
11709
11710 * system.h (string, algorithm): Include only conditionally.
11711 (new): Include always under C++.
11712 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
11713 * final.c (toplevel): Ditto.
11714 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
11715 * genconditions.c (write_header): Make gencondmd.c define
11716 INCLUDE_STRING.
11717 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
11718
11719 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
11720 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
11721
11722 2016-01-22 Christian Bruel <christian.bruel@st.com>
11723
11724 PR target/68674
11725 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
11726
11727 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11728
11729 PR target/69403
11730 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
11731 define_insn_and_split. Ensure operands[1] and operands[0] do not
11732 get assigned the same register.
11733
11734 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
11735
11736 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
11737
11738 2016-01-22 Christian Bruel <christian.bruel@st.com>
11739
11740 * config/arm/arm-c.c (arm_pragma_target_parse):
11741 Remove warn_builtin_macro_redefined overwrite.
11742
11743 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
11744
11745 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
11746 flag_non_call_exceptions compatibility.
11747
11748 2016-01-22 Jakub Jelinek <jakub@redhat.com>
11749
11750 PR debug/66668
11751 * dwarf2out.c (add_child_die_after): New function.
11752 (dwarf_qual_info_t): New type.
11753 (dwarf_qual_info): New variable.
11754 (qualified_die_p): New function.
11755 (modified_type_die): For -fdebug-types-section, ensure
11756 canonical order of qualifiers. Put qualified DIEs adjacent
11757 to the corresponding non-qualified type DIE and search there
11758 for existing qualified DIEs.
11759
11760 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
11761
11762 * doc/extend.texi (scalar_storage_order type attribute): Document
11763 restriction on type punning and aliasing, and remove future tense.
11764
11765 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
11766
11767 PR target/69252
11768 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
11769 first stage.
11770
11771 2016-01-21 Jeff Law <law@redhat.com>
11772
11773 PR middle-end/69347
11774 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
11775 useless call to record_temporary_equivalences.
11776 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
11777 allocate 10 slots in the bb_path vector and let it grow as needed.
11778 (fsm_find_control_statement_thread_paths): Similarly for the next_path
11779 vector.
11780
11781 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
11782
11783 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
11784 Detangle.
11785 * configure: Regenerate.
11786
11787 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
11788
11789 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
11790 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
11791
11792 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
11793
11794 PR middle-end/66178
11795 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
11796 drop EXPAND_INITIALIZER.
11797 * rtl.h (contains_symbolic_reference_p): Declare.
11798 * rtlanal.c (contains_symbolic_reference_p): New function.
11799 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
11800 a subtraction into a NOT if symbolic constants are involved.
11801
11802 2016-01-21 Anton Blanchard <anton@samba.org>
11803 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11804
11805 PR target/63354
11806 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
11807 #define.
11808 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
11809 function.
11810
11811 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
11812
11813 * config/microblaze/microblaze.c
11814 (get_branch_target): New.
11815 (insert_wic_for_ilb_runout): New.
11816 (insert_wic): New.
11817 (microblaze_machine_dependent_reorg): New.
11818 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
11819 * config/microblaze/microblaze.md
11820 (UNSPEC_IPREFETCH): Define.
11821 (iprefetch): New pattern
11822 * config/microblaze/microblaze.opt
11823 (mxl-prefetch): New flag.
11824
11825 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
11826
11827 * config/microblaze/microblaze.h
11828 (FIXED_REGISTERS): Update in macro.
11829 (CALL_USED_REGISTERS): Update in macro.
11830
11831 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
11832
11833 PR rtl-optimization/68920
11834 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
11835 moves.
11836
11837 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
11838
11839 PR rtl-optimization/68990
11840 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
11841 pseudo instead of inheritance ones.
11842
11843 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
11844 Nick Clifton <nickc@redhat.com>
11845
11846 PR target/69129
11847 PR target/69012
11848 * config/mips/mips.c (mips_compute_frame_info): Initialise
11849 args_size and hard_frame_pointer_offset fields of the frame
11850 structure before calling mips_global_pointer.
11851
11852 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
11853
11854 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
11855 label reference.
11856 * configure: Regenerate.
11857
11858 2016-01-21 Richard Biener <rguenther@suse.de>
11859
11860 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
11861
11862 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
11863
11864 * config/s390/s390.c (s390_asm_declare_function_size): Add code
11865 to actually emit the .size directive.
11866
11867 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
11868 Jakub Jelinek <jakub@redhat.com>
11869
11870 PR target/69187
11871 PR target/65624
11872 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
11873 args array size by one to avoid buffer overflow.
11874
11875 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
11876
11877 * config/s390/s390.md (pool_section_start): Use switch_to_section
11878 to select proper read-only data section instead of hardcoding
11879 .rodata.
11880 (pool_section_end): Use switch_to_section to match the above.
11881
11882 2016-01-21 Richard Biener <rguenther@suse.de>
11883
11884 PR tree-optimization/69378
11885 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
11886 (set_ssa_val_to): Use it for dominance checks taking into
11887 account not executable edges.
11888
11889 2016-01-21 Jakub Jelinek <jakub@redhat.com>
11890
11891 PR c++/69355
11892 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
11893 for bitsize instead of GET_MODE_PRECISION (mode).
11894
11895 2016-01-20 Martin Sebor <msebor@redhat.com>
11896
11897 PR c/52291
11898 * extend.texi (__sync Builtins): Clarify the semantics of
11899 __sync_fetch_and_OP built-ins on pointers.
11900 (__atomic Builtins): Same.
11901
11902 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
11903 Sebastian Pop <s.pop@samsung.com>
11904
11905 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
11906 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
11907 (is_valid_rename): Same.
11908 (translate_isl_ast_to_gimple::get_rename): Same.
11909 (translate_isl_ast_to_gimple::rename_all_uses): Same.
11910 (translate_isl_ast_to_gimple::rename_uses): Same.
11911 (get_new_name): Check for close_phi nodes.
11912 (copy_loop_phi_args): Use phi_node_kind.
11913 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
11914 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
11915
11916 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
11917 Sebastian Pop <s.pop@samsung.com>
11918
11919 Revert commit r229783.
11920 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
11921 Remove use of parameter_rename_map.
11922 (copy_def): Remove.
11923 (copy_internal_parameters): Remove.
11924 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
11925 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
11926 (free_sese_info): Do not free parameter_rename_map.
11927 (set_rename): Do not use parameter_rename_map.
11928 (rename_uses): Update call to set_rename.
11929 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
11930 * sese.h (parameter_rename_map_t): Remove.
11931 (struct sese_info_t): Remove field parameter_rename_map.
11932
11933 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
11934 Sebastian Pop <s.pop@samsung.com>
11935
11936 * graphite-isl-ast-to-gimple.c: Fix comment.
11937 * graphite-scop-detection.c (defined_in_loop_p): New.
11938 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
11939 names defined in loop.
11940
11941 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
11942 Sebastian Pop <s.pop@samsung.com>
11943
11944 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
11945 Discard unstructured if-then-else regions.
11946
11947 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
11948 Sebastian Pop <s.pop@samsung.com>
11949
11950 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
11951 (cleanup_loop_iter_dom): Remove.
11952 (build_loop_iteration_domains): Remove.
11953 (build_scop_context): Remove.
11954 (build_scop_iteration_domain): Remove.
11955 (add_loop_constraints): New.
11956 (build_iteration_domains): New.
11957 (build_poly_scop): Call build_iteration_domains.
11958
11959 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
11960 Sebastian Pop <s.pop@samsung.com>
11961
11962 * graphite-scop-detection.c
11963 (scop_detection::harmful_loop_in_region): Free dom and loops.
11964 (scop_detection::loop_body_is_valid_scop): Free bbs.
11965
11966 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
11967 Sebastian Pop <s.pop@samsung.com>
11968
11969 * graphite-scop-detection.c (record_loop_in_sese): New.
11970 (gather_bbs::before_dom_children): Call record_loop_in_sese.
11971 (build_scops): Remove call to build_sese_loop_nests.
11972 * sese.c (sese_record_loop): Remove.
11973 (build_sese_loop_nests): Remove.
11974 (new_sese_info): Remove region->loops.
11975 (free_sese_info): Same.
11976 * sese.h (sese_contains_loop): Same.
11977 (build_sese_loop_nests): Remove.
11978 (sese_contains_loop): Remove.
11979
11980 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
11981 Sebastian Pop <s.pop@samsung.com>
11982
11983 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
11984 loop_is_valid_in_scop.
11985 (scop_detection::harmful_stmt_in_region): Renamed
11986 harmful_loop_in_region.
11987 Call loop_is_valid_in_scop.
11988
11989 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
11990 Sebastian Pop <s.pop@samsung.com>
11991
11992 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
11993 isl_ast_node_mark.
11994
11995 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
11996 Sebastian Pop <s.pop@samsung.com>
11997
11998 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
11999 * graphite.h (struct poly_bb): Remove field is_reduction.
12000 (PBB_IS_REDUCTION): Remove.
12001
12002 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
12003 Sebastian Pop <s.pop@samsung.com>
12004
12005 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
12006 (add_pdr_constraints): Same.
12007 (scop_get_reads): Same.
12008 (scop_get_must_writes): Same.
12009 (scop_get_may_writes): Same.
12010 (scop_get_original_schedule): Same.
12011 (extend_schedule): Same.
12012 (apply_schedule_on_deps): Same.
12013 (carries_deps): Same.
12014 (compute_deps): Same.
12015 (scop_get_dependences): Same.
12016 * graphite-isl-ast-to-gimple.c
12017 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
12018 * graphite-optimize-isl.c (get_schedule_for_band): Same.
12019 (get_schedule_for_band_list): Same.
12020 (get_schedule_map): Same.
12021 (apply_schedule_map_to_scop): Same.
12022 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
12023 (build_loop_iteration_domains): Same.
12024 (add_condition_to_pbb): Same.
12025 (add_param_constraints): Same.
12026 (pdr_add_memory_accesses): Same.
12027 (pdr_add_data_dimensions): Same.
12028
12029 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
12030
12031 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
12032 requirements.
12033
12034 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
12035
12036 * common.opt (feliminate-dwarf2-dups): Replace references to
12037 "DWARF 2" with just "DWARF".
12038 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
12039 * doc/extend.texi: Likewise.
12040 * doc/cpp.texi: Likewise.
12041 * doc/invoke.texi: Likewise.
12042 (Option Summary): Add -gdwarf to list of Debugging Options.
12043 (Debugging Options): Document -gdwarf.
12044 * doc/contrib.texi: Spell "DWARF" like that.
12045
12046 2016-01-21 Jakub Jelinek <jakub@redhat.com>
12047
12048 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
12049 warning. Fix up formatting.
12050
12051 PR middle-end/67653
12052 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
12053 attempt to mark memory input operand addressable and
12054 call prepare_gimple_addressable in that case. Don't adjust
12055 input_location for diagnostics, use error_at instead.
12056
12057 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
12058
12059 * config/rs6000/ppc-auxv.h: New file.
12060 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
12061 (cpu_is): Likewise.
12062 (cpu_supports): Likewise.
12063 * config/rs6000/rs6000.c: include "ppc-auxv.h".
12064 (cpu_is_info): New variable.
12065 (cpu_supports_info): Likewise.
12066 (tcb_verification_symbol): Likewise.
12067 (cpu_builtin_p): Likewise.
12068 (cpu_expand_builtin): New function.
12069 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
12070 (rs6000_init_builtins): Likewise.
12071 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
12072 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
12073 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
12074 * configure: Regenerate.
12075 * config.in: Likewise.
12076 * doc/extend.texi (PowerPC Built-in Functions): Document
12077 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
12078
12079 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
12080
12081 PR target/68609
12082 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
12083 domain check.
12084 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
12085 for V4SFmode.
12086
12087 2016-01-20 Richard Henderson <rth@redhat.com>
12088
12089 PR bootstrap/69343
12090 PR bootstrap/69339
12091 PR tree-opt/68964
12092 Revert:
12093 * tree.c (tm_define_builtin): New.
12094 (find_tm_vector_type): New.
12095 (build_tm_vector_builtins): New.
12096 (build_common_builtin_nodes): Call it.
12097
12098 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
12099
12100 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
12101 (arm_fp_ok): Likewise.
12102 (arm_fp): Likewise.
12103 (arm_crypto): Likewise.
12104
12105 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
12106 Richard Biener <rguenther@suse.de>
12107
12108 PR tree-optimization/69328
12109 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
12110 vectors have same number of elements.
12111 (vectorizable_condition): Fix masked version recognition.
12112
12113 2016-01-20 Richard Biener <rguenther@suse.de>
12114
12115 PR tree-optimization/69345
12116 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
12117 (VN_INFO_PTR_INFO): Likewise.
12118 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
12119 info when it is equal between non-dominating SSA names.
12120 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
12121 Make sure to look at original SSA infos.
12122
12123 2016-01-20 Jeff Law <law@redhat.com>
12124
12125 PR target/25114
12126 * config/m68k/predicates.md (pow2_m1_operand): New predicate
12127 extracted from ...
12128 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
12129 (pc_or_label_operand): New predicate.
12130 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
12131 tests for small integers that are 2^n - 1.
12132
12133 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
12134
12135 * doc/invoke.texi (Options Summary): Add '.' after @xref.
12136
12137 2016-01-19 Jeff Law <law@redhat.com>
12138
12139 PR middle-end/69347
12140 * tree-ssa-threadbackwards.c
12141 (fsm_find_control_statement_thread_paths): Do not try to lookup
12142 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
12143
12144 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
12145
12146 * doc/lto.texi: Remove text that says only Gold has linker plugin
12147 support.
12148
12149 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
12150
12151 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
12152 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
12153 the DIE accordingly.
12154 (modified_type_die): Add REVERSE parameter and pass it recursively,
12155 as well as to base_type_die. Adjust presence check accordingly.
12156 (base_type_for_mode): Adjust call to modified_type_die.
12157 (add_type_attribute): Add REVERSE parameter and pass it to
12158 modified_type_die.
12159 (generic_parameter_die): Adjust call to add_type_attribute.
12160 (add_scalar_info): Likewise.
12161 (add_subscript_info): Likewise.
12162 (gen_array_type_die): Likewise.
12163 (gen_descr_array_type_die): Likewise.
12164 (gen_entry_point_die): Likewise.
12165 (gen_enumeration_type_die): Likewise.
12166 (gen_formal_parameter_die): Likewise.
12167 (gen_subprogram_die): Likewise.
12168 (gen_variable_die ): Likewise.
12169 (gen_const_die): Likewise.
12170 (gen_field_die): Likewise.
12171 (gen_pointer_type_die): Likewise.
12172 (gen_reference_type_die): Likewise.
12173 (gen_ptr_to_mbr_type_die): Likewise.
12174 (gen_inheritance_die): Likewise.
12175 (gen_subroutine_type_die): Likewise.
12176 (gen_typedef_die): Likewise.
12177 (force_type_die): Adjust call to modified_type_die.
12178
12179 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
12180
12181 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
12182 flow throughout the file. Fix broken link to Objective-C 2.0
12183 documentation.
12184 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
12185 errors.
12186
12187 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
12188
12189 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
12190
12191 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
12192
12193 PR ipa/66223
12194 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
12195 (maybe_record_node): Record cxa_pure_virtual as the only possible
12196 target if there are not ohter candidates.
12197 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
12198
12199 2016-01-19 Richard Biener <rguenther@suse.de>
12200
12201 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
12202 (get_memory_order): Likewise.
12203
12204 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
12205
12206 * tree-vect-stmts.c (vectorizable_store): Check
12207 rhs vectype.
12208
12209 2016-01-19 David Malcolm <dmalcolm@redhat.com>
12210
12211 PR jit/68446
12212 * gcc.c (driver::decode_argv): Add call to
12213 init_opts_obstack before init_options_struct.
12214 * opts.c (init_opts_obstack): Remove idempotency.
12215 (init_options_struct): Replace call to init_opts_obstack
12216 with a gcc_assert to verify that it has already been called.
12217 * toplev.c (toplev::main): Add call to init_opts_obstack before
12218 calls to init_options_struct.
12219 (toplev::finalize): Move cleanup of opts_obstack next to
12220 cleanup of save_decoded_options, clearing the latter, and
12221 save_decoded_options_count.
12222
12223 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12224
12225 PR target/69135
12226 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
12227 attribute to unconditional. Remove %? from output template.
12228
12229 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
12230 Jiong Wang <jiong.wang@arm.com>
12231
12232 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
12233 generated from different expand order.
12234
12235 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
12236
12237 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
12238 Add support for CCMP costing.
12239
12240 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
12241
12242 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
12243 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
12244 (fccmpe<mode>): Likewise.
12245 (fcmp): Rename to fcmp and globalize pattern.
12246 (fcmpe): Likewise.
12247 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
12248 (aarch64_gen_ccmp_next): Add FP support.
12249
12250 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
12251
12252 * target.def (gen_ccmp_first): Update documentation.
12253 (gen_ccmp_next): Likewise.
12254 * doc/tm.texi (gen_ccmp_first): Update documentation.
12255 (gen_ccmp_next): Likewise.
12256 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
12257 expand_ccmp_expr_1. Improve comments.
12258 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
12259 (ccmp_ior<mode>): Remove pattern.
12260 (cmp<mode>): Remove expand.
12261 (cmp): Globalize pattern.
12262 (cstorecc4): Use cc_register.
12263 (mov<mode>cc): Remove ccmp_cc_register check.
12264 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
12265 Simplify after removal of CC_DNE/* modes.
12266 (aarch64_ccmp_mode_to_code): Remove.
12267 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
12268 In 'k' case use integer as condition.
12269 (aarch64_nzcv_codes): Remove inverted cases.
12270 (aarch64_code_to_ccmode): Remove.
12271 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
12272 comparison with CC register to be used in folowing CCMP/branch/CSEL.
12273 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
12274 pattern. Return the comparison with CC register. Invert conditions
12275 when bitcode is OR.
12276 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
12277 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
12278
12279 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
12280
12281 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
12282 instrumented_version.
12283
12284 2016-01-19 Richard Biener <rguenther@suse.de>
12285
12286 PR tree-optimization/69336
12287 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
12288 handled components with get_ref_base_and_extent.
12289 (equal_mem_array_ref_p): Adjust.
12290
12291 2016-01-19 Jakub Jelinek <jakub@redhat.com>
12292
12293 PR debug/65779
12294 * shrink-wrap.c: Include valtrack.h.
12295 (move_insn_for_shrink_wrap): Add DEBUG argument. If
12296 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
12297 in between insn and where it will be moved to. Call
12298 dead_debug_insert_temp.
12299 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
12300 first and dead_debug_local_finish at the end.
12301 For uses and defs bitmap, handle all regs in between REGNO and
12302 END_REGNO, not just the first one.
12303
12304 2016-01-19 Richard Biener <rguenther@suse.de>
12305
12306 PR tree-optimization/69352
12307 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
12308 (equal_mem_array_ref_p): Constrain size and max size properly.
12309 Compare the reverse flag.
12310
12311 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
12312
12313 * ira.c (ira): Update regstat data if we deleted insns.
12314
12315 2016-01-19 Jakub Jelinek <jakub@redhat.com>
12316
12317 PR rtl-optimization/68955
12318 PR rtl-optimization/64557
12319 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
12320 here. Fix up formatting.
12321 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
12322
12323 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
12324
12325 PR lto/69133
12326 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
12327 assume that the node has body.
12328 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
12329 check.
12330
12331 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
12332
12333 * lto-streamer-out.c (lto_output): Do not stream instrumentation
12334 thunks.
12335
12336 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
12337
12338 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
12339 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
12340
12341 2016-01-19 Martin Jambor <mjambor@suse.cz>
12342 Martin Liska <mliska@suse.cz>
12343 Michael Matz <matz@suse.de>
12344
12345 * Makefile.in (OBJS): Add new source files.
12346 (GTFILES): Add hsa.c.
12347 * common.opt (disable_hsa): New variable.
12348 (-Whsa): New warning.
12349 * config.in (ENABLE_HSA): New.
12350 * configure.ac: Treat hsa differently from other accelerators.
12351 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
12352 $enable_offloading.
12353 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
12354 * doc/install.texi (Configuration): Document --with-hsa-runtime,
12355 --with-hsa-runtime-include, --with-hsa-runtime-lib and
12356 --with-hsa-kmt-lib.
12357 * doc/invoke.texi (-Whsa): Document.
12358 (hsa-gen-debug-stores): Likewise.
12359 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
12360 to invoke offload compiler for hsa acclerator.
12361 * opts.c (common_handle_option): Determine whether HSA offloading
12362 should be performed.
12363 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
12364 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
12365 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
12366 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
12367 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
12368 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
12369 GF_OMP_FOR_KIND_GRID_LOOP.
12370 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
12371 (pp_gimple_stmt_1): Likewise.
12372 * gimple-walk.c (walk_gimple_stmt): Likewise.
12373 * gimple.c (gimple_build_omp_grid_body): New function.
12374 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
12375 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
12376 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
12377 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
12378 GF_OMP_TEAMS_GRID_PHONY.
12379 (gimple_statement_omp_single_layout): Updated comments.
12380 (gimple_build_omp_grid_body): New function.
12381 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
12382 (gimple_omp_for_grid_phony): New function.
12383 (gimple_omp_for_set_grid_phony): Likewise.
12384 (gimple_omp_parallel_grid_phony): Likewise.
12385 (gimple_omp_parallel_set_grid_phony): Likewise.
12386 (gimple_omp_teams_grid_phony): Likewise.
12387 (gimple_omp_teams_set_grid_phony): Likewise.
12388 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
12389 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
12390 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
12391 (BUILT_IN_GOMP_TARGET): Updated type.
12392 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
12393 (adjust_for_condition): New function.
12394 (get_omp_for_step_from_incr): Likewise.
12395 (extract_omp_for_data): Moved parts to adjust_for_condition and
12396 get_omp_for_step_from_incr.
12397 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
12398 (fixup_child_record_type): Bail out if receiver_decl is NULL.
12399 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
12400 (scan_omp_parallel): Do not create child functions for phony
12401 constructs.
12402 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
12403 (scan_omp_1_op): Checking assert we are not remapping to
12404 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
12405 (parallel_needs_hsa_kernel_p): New function.
12406 (expand_parallel_call): Register apprpriate parallel child
12407 functions as HSA kernels.
12408 (grid_launch_attributes_trees): New type.
12409 (grid_attr_trees): New variable.
12410 (grid_create_kernel_launch_attr_types): New function.
12411 (grid_insert_store_range_dim): Likewise.
12412 (grid_get_kernel_launch_attributes): Likewise.
12413 (get_target_argument_identifier_1): Likewise.
12414 (get_target_argument_identifier): Likewise.
12415 (get_target_argument_value): Likewise.
12416 (push_target_argument_according_to_value): Likewise.
12417 (get_target_arguments): Likewise.
12418 (expand_omp_target): Call get_target_arguments instead of looking
12419 up for teams and thread limit.
12420 (grid_expand_omp_for_loop): New function.
12421 (grid_arg_decl_map): New type.
12422 (grid_remap_kernel_arg_accesses): New function.
12423 (grid_expand_target_kernel_body): New function.
12424 (expand_omp): Call it.
12425 (lower_omp_for): Do not emit phony constructs.
12426 (lower_omp_taskreg): Do not emit phony constructs but create for them
12427 a temporary variable receiver_decl.
12428 (lower_omp_taskreg): Do not emit phony constructs.
12429 (lower_omp_teams): Likewise.
12430 (lower_omp_grid_body): New function.
12431 (lower_omp_1): Call it.
12432 (grid_reg_assignment_to_local_var_p): New function.
12433 (grid_seq_only_contains_local_assignments): Likewise.
12434 (grid_find_single_omp_among_assignments_1): Likewise.
12435 (grid_find_single_omp_among_assignments): Likewise.
12436 (grid_find_ungridifiable_statement): Likewise.
12437 (grid_target_follows_gridifiable_pattern): Likewise.
12438 (grid_remap_prebody_decls): Likewise.
12439 (grid_copy_leading_local_assignments): Likewise.
12440 (grid_process_kernel_body_copy): Likewise.
12441 (grid_attempt_target_gridification): Likewise.
12442 (grid_gridify_all_targets_stmt): Likewise.
12443 (grid_gridify_all_targets): Likewise.
12444 (execute_lower_omp): Call grid_gridify_all_targets.
12445 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
12446 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
12447 (tree_omp_clause): Added union field dimension.
12448 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
12449 * tree.c (omp_clause_num_ops): Added number of arguments of
12450 OMP_CLAUSE__GRIDDIM_.
12451 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
12452 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
12453 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
12454 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
12455 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
12456 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
12457 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
12458 * tree-pass.h (make_pass_gen_hsail): Declare.
12459 (make_pass_ipa_hsa): Likewise.
12460 * ipa-hsa.c: New file.
12461 * lto-section-in.c (lto_section_name): Add hsa section name.
12462 * lto-streamer.h (lto_section_type): Add hsa section.
12463 * timevar.def (TV_IPA_HSA): New.
12464 * hsa-brig-format.h: New file.
12465 * hsa-brig.c: New file.
12466 * hsa-dump.c: Likewise.
12467 * hsa-gen.c: Likewise.
12468 * hsa.c: Likewise.
12469 * hsa.h: Likewise.
12470 * toplev.c (compile_file): Call hsa_output_brig.
12471 * hsa-regalloc.c: New file.
12472
12473 2016-01-18 Jeff Law <law@redhat.com>
12474
12475 PR tree-optimization/69320
12476 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
12477 ranged object, do nothing if the RHS constant is not [0..1].
12478 (optimize_stmt): Comparing a boolean ranged object against a
12479 constant outside [0..1] results in a compile-time constant.
12480
12481 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
12482 test.
12483
12484 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
12485
12486 * doc/invoke.texi (Invoking GCC): Add new section to menu.
12487 (Option Summary): Update to reflect new section and moved options.
12488 (C++ Dialect Options): Move -fstats to new section.
12489 (Debugging Options): Move all dump, statistics, and other GCC
12490 developer options to new section. Rewrite section introduction
12491 and re-order remaining options to put the more basic ones first.
12492 (Optimization Options): Move -fira-verbose and -flto-report* to
12493 new section.
12494 (Developer Options): New section incorporating moved options.
12495 * doc/cppopts.texi (-dM): Update cross-reference.
12496
12497 2016-01-18 Richard Henderson <rth@redhat.com>
12498
12499 PR target/69176
12500 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
12501 operands to pseudo only if CSE is expected. Split long immediate
12502 operands only after reload, and for the stack pointer.
12503 (*add<GPI>3_pluslong): Remove.
12504 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
12505 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
12506 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
12507 (*add<GPI>3 peepholes): New.
12508 (*add<GPI>3 splitters): New.
12509 * config/aarch64/constraints.md (Upl): New.
12510 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
12511
12512 2016-01-18 Richard Biener <rguenther@suse.de>
12513
12514 PR tree-optimization/69297
12515 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
12516 stmt at most once.
12517 (vect_bb_vectorization_profitable_p): Clear visited flag again.
12518
12519 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
12520
12521 PR middle-end/68542
12522 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
12523 of mixind vector and scalar types.
12524 (fold_relational_const): Add handling of vector
12525 comparison with boolean result.
12526 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
12527 comparison of vector operands with boolean result for EQ/NE only.
12528 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
12529 (verify_gimple_cond): Likewise.
12530 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
12531 valid type of VAL.
12532
12533 2016-01-18 Joseph Myers <joseph@codesourcery.com>
12534
12535 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
12536 !TARGET_OCTEON.
12537
12538 2016-01-18 Richard Biener <rguenther@suse.de>
12539
12540 PR middle-end/69308
12541 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
12542
12543 2016-01-18 Tom de Vries <tom@codesourcery.com>
12544
12545 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
12546
12547 2016-01-18 Tom de Vries <tom@codesourcery.com>
12548
12549 * omp-low.c (set_oacc_fn_attrib): Make extern.
12550 * omp-low.h (set_oacc_fn_attrib): Declare.
12551 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
12552 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
12553 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
12554 Add and handle function parameter oacc_kernels_p.
12555 (find_reduc_addr, get_omp_data_i_param): New function.
12556 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
12557 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
12558 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
12559 Calculate dominance info. Skip loops that are not in a kernels region
12560 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
12561 (pass_parallelize_loops::execute): Call parallelize_loops with
12562 oacc_kernels_p argument.
12563 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
12564 New member function.
12565 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
12566 * passes.def: Add argument to pass_parallelize_loops instantation.
12567
12568 2016-01-18 Tom de Vries <tom@codesourcery.com>
12569
12570 * tree-parloops.c (pass_parallelize_loops::execute): Allow
12571 pass_parallelize_loops to be run outside the loop pipeline.
12572
12573 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
12574
12575 * tree-scalar-evolution.c (follow_copies_to_constant): New.
12576 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
12577
12578 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
12579
12580 PR target/63679
12581 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
12582 using get_ref_base_and_extent.
12583 (equal_mem_array_ref_p): New.
12584 (hashable_expr_equal_p): Add call to previous.
12585
12586 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
12587
12588 PR target/63679
12589 * tree-sra.c (disqualified_constants, constant_decl_p): New.
12590 (sra_initialize): Allocate disqualified_constants.
12591 (sra_deinitialize): Free disqualified_constants.
12592 (disqualify_candidate): Update disqualified_constants when appropriate.
12593 (create_access): Scan for constant-pool entries as we go along.
12594 (scalarizable_type_p): Add check against type_contains_placeholder_p.
12595 (maybe_add_sra_candidate): Allow constant-pool entries.
12596 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
12597 (initialize_constant_pool_replacements): New.
12598 (sra_modify_assign): Avoid mangling assignments created by previous,
12599 and don't generate writes into constant pool.
12600 (sra_modify_function_body): Call initialize_constant_pool_replacements.
12601
12602 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
12603
12604 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
12605 andnot instruction.
12606 (scalar_chain::convert_op): Likewise.
12607 * config/i386/i386.md (*andndi3_doubleword): New.
12608
12609 2016-01-18 Richard Biener <rguenther@suse.de>
12610
12611 PR tree-optimization/69170
12612 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
12613 building a vector from scalar results of a pattern stmt.
12614
12615 2016-01-18 Jakub Jelinek <jakub@redhat.com>
12616
12617 * haifa-sched.c (autopref_multipass_init): Work around
12618 -Wmaybe-uninitialized warning.
12619
12620 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
12621
12622 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
12623 against the constant 0.
12624
12625 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12626
12627 PR tree-optimization/68799
12628 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
12629 look up phi candidates in the statement-candidate map.
12630 (phi_add_costs): Likewise.
12631 (record_phi_increments): Likewise.
12632 (phi_incr_cost): Likewise.
12633 (ncd_with_phi): Likewise.
12634 (all_phi_incrs_profitable): Likewise.
12635
12636 2016-01-17 Jakub Jelinek <jakub@redhat.com>
12637
12638 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
12639 -Wmaybe-uninitialized warning.
12640
12641 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
12642
12643 * doc/invoke.texi (Invoking GCC): Add new section to menu.
12644 (Option Summary): Update to reflect new section and moved options.
12645 (C++ Dialect Options): Move -fvtable-verify and related options.
12646 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
12647 and profiling-related options.
12648 (Optimization Options): Move profile generation options and
12649 -fstack-protector and related options.
12650 (Instrumentation Options): New section incorporating moved options.
12651 (Code Generation Options): Move -finstrument-functions and
12652 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
12653
12654 2016-01-16 Tom de Vries <tom@codesourcery.com>
12655
12656 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
12657
12658 2016-01-16 Tom de Vries <tom@codesourcery.com>
12659
12660 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
12661
12662 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
12663
12664 * hash-table.h (hash_table::empty): Turn into an inline wrapper
12665 that checks whether the table is already empty. Rename the
12666 original implementation to...
12667 (hash_table::empty_slot): ...this new private function.
12668
12669 2016-01-15 David Malcolm <dmalcolm@redhat.com>
12670
12671 PR diagnostic/68899
12672 * diagnostic-show-locus.c (layout::print_source_line): Move x
12673 offset of line until after call to
12674 get_line_width_without_trailing_whitespace.
12675
12676 2016-01-15 Jeff Law <law@redhat.com>
12677
12678 PR tree-optimization/69270
12679 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
12680 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
12681 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
12682 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
12683 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
12684 ssa_name_has_boolean_range and constant_boolean_node.
12685
12686 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
12687
12688 PR rtl-optimization/69030
12689 * lra-spills.c (remove_pseudos): Check nrefs and make the function
12690 returning bool.
12691 (spill_pseudos): Delete debug insn for dead pseudo.
12692 (lra_spill): Initiate spill_hard_reg and slots memory separately.
12693
12694 2016-01-15 Jiong Wang <jiong.wang@arm.com>
12695
12696 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
12697 New.
12698 (TYPES_UNOPUS): Likewise.
12699 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
12700 builtin type, from UNOP to UNOPUS.
12701 (lbtruncuv4sf): Likewise.
12702 (lbtruncuv2df): Likewise.
12703 (lrounduv2sf): Likewise.
12704 (lrounduv4sf): Likewise.
12705 (lrounduv2df): Likewise.
12706 (lroundusf): Likewise.
12707 (lroundusf): Likewise.
12708 (lceiluv2sf): Likewise.
12709 (lceiluv4sf): Likewise.
12710 (lceiluv2df): Likewise.
12711 (lceilusf): Likewise.
12712 (lceiludf): Likewise.
12713 (lflooruv2sf): Likewise.
12714 (lflooruv4sf): Likewise.
12715 (lflooruv2df): Likewise.
12716 (lfloorusf): Likewise.
12717 (lfloorudf): Likewise.
12718 (lfrintnuv2sf): Likewise.
12719 (lfrintnuv4sf): Likewise.
12720 (lfrintnuv2df): Likewise.
12721 (lfrintnusf): Likewise.
12722 (lfrintnudf): Likewise.
12723 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
12724 conversion.
12725 (vcvtq_u32_f32): Likewise.
12726 (vcvtq_u64_f64): Likewise.
12727 (vcvta_u32_f32): Likewise.
12728 (vcvtaq_u32_f32): Likewise.
12729 (vcvtaq_u64_f64): Likewise.
12730 (vcvtm_u32_f32): Likewise.
12731 (vcvtmq_u32_f32): Likewise.
12732 (vcvtmq_u64_f64): Likewise.
12733 (vcvtn_u32_f32): Likwise.
12734 (vcvtnq_u32_f32): Likewise.
12735 (vcvtnq_u64_f64): Likewise.
12736 (vcvtp_u32_f32): Likewise.
12737 (vcvtpq_u32_f32): Likewise.
12738 (vcvtpq_u64_f64): Likewise.
12739 (vcvtmd_u64_f64): Likewise.
12740 (vcvtms_u32_f32): Likewise.
12741 (vcvtad_u64_f64): Likewise.
12742 (vcvtas_u32_f32): Likewise.
12743 (vcvtnd_u64_f64): Likewise.
12744 (vcvtns_u32_f32): Likewise.
12745 (vcvtpd_u64_f64): Likewise.
12746 (vcvtps_u32_f32): Likewise.
12747
12748 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12749
12750 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
12751 CSEL of zero_extended registers.
12752
12753 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12754
12755 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
12756 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
12757
12758 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12759
12760 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
12761 false when argument string is not found in the attributes table
12762 at all.
12763
12764 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
12765
12766 PR target/68609
12767 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
12768 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
12769 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
12770 precision estimate.
12771
12772 2016-01-15 Richard Biener <rguenther@suse.de>
12773
12774 PR tree-optimization/66856
12775 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
12776 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
12777 (vect_create_new_slp_node): Increment stmt reference count.
12778 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
12779 an SLP tree before swapping operands.
12780 (vect_build_slp_tree): Likewise.
12781 (destroy_bb_vec_info): Free stmt info after SLP instances.
12782 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
12783 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
12784 (STMT_VINFO_NUM_SLP_USES): New macro.
12785
12786 2016-01-15 Richard Biener <rguenther@suse.de>
12787
12788 PR debug/69137
12789 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
12790 (add_linkage_name): ... here.
12791 (gen_typedef_die): Use add_linkage_name_raw instead of
12792 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
12793 if necessary.
12794
12795 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
12796
12797 * gimplify.c (oacc_default_clause): Decode reference and pointer
12798 types for both kernels and parallel regions.
12799
12800 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
12801
12802 PR middle-end/69246
12803 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
12804
12805 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
12806
12807 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
12808 (convert_scalars_to_vector): Likewise.
12809
12810 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
12811
12812 * doc/extend.texi (Type Traits): Fix grammar.
12813
12814 2016-01-15 Martin Jambor <mjambor@suse.cz>
12815
12816 * tree-inline.c (remap_decl): Use existing dclarations if
12817 remapping a type and prevent_decl_creation_for_types.
12818 (replace_locals_stmt): Do an initial remapping of non-VLA typed
12819 decls first. Do real remapping with
12820 prevent_decl_creation_for_types set.
12821 * tree-inline.h (copy_body_data): New field
12822 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
12823 padding.
12824
12825 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
12826
12827 * config/s390/s390.opt (mmvcle): More verbose help text.
12828
12829 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
12830
12831 * config/s390/s390.opt: Add period to -mzvector option text.
12832
12833 2016-01-15 Richard Biener <rguenther@suse.de>
12834
12835 PR tree-optimization/68961
12836 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
12837 of invariants in stores again.
12838
12839 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
12840
12841 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
12842
12843 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
12844
12845 * config/i386/i386.c (ix86_expand_branch): Don't split
12846 DI mode xor instruction to SI mode.
12847
12848 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
12849
12850 PR ipa/68148
12851 * ipa-icf.c (sem_function::merge): Virtual functions may become
12852 reachable even if they address is not taken and there are no
12853 idrect calls.
12854
12855 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
12856
12857 * lto-streamer-out.c (subtract_estimated_size): New function.
12858 (get_symbol_initial_value): Use it.
12859
12860 2016-01-15 Christian Bruel <christian.bruel@st.com>
12861
12862 PR target/65837
12863 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
12864 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
12865 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
12866 use add_builtin_function_ext_scope instead of add_builtin_function.
12867 (neon_set_p, neon_crypto_set_p): Remove.
12868 (arm_init_builtins): Always call arm_init_neon_builtins and
12869 arm_init_crypto_builtins.
12870 (arm_expand_builtin): Check that builtins are allowed for the arch.
12871 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
12872 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
12873 arm_init_neon_builtins call.
12874
12875 2016-01-15 Richard Biener <rguenther@suse.de>
12876
12877 PR tree-optimization/69117
12878 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
12879 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
12880 of the leader conservatively.
12881 (free_scc_vn): Restore original SSA name infos.
12882
12883 2016-01-14 Jeff Law <law@redhat.com>
12884
12885 PR tree-optimization/69270
12886 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
12887 single bit of precision, verify it's also unsigned.
12888 (record_edge_info): Use constant_boolean_node rather than fold_convert
12889 to convert boolean_true/boolean_false to the right type.
12890
12891 2016-01-14 Richard Henderson <rth@redhat.com>
12892
12893 PR rtl-opt/69014
12894 * loop-doloop.c (record_reg_sets): New.
12895 (doloop_optimize): Reject the transform if the sequence
12896 clobbers registers live at the end of the loop block.
12897 (doloop_optimize_loops): Enable df_live if needed.
12898
12899 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
12900
12901 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
12902 * config/rs6000/rs6000.c: Likewise.
12903 * config/rs6000/rs6000.h: Likewise.
12904 * config/rs6000/rs6000.md: Likewise.
12905 * doc/extend.texi: Likewsie.
12906
12907 2016-01-14 Jeff Law <law@redhat.com>
12908
12909 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
12910 typo.
12911
12912 2016-01-14 Richard Henderson <rth@redhat.com>
12913
12914 PR c/69272
12915 PR tree-opt/68964
12916 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
12917 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
12918 instead of builtin_decl_declared_p to test for declaration.
12919
12920 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
12921
12922 * doc/loop.texi (Loop Analysis and Representation): Document
12923 loop_depth function.
12924
12925 2016-01-14 Tom de Vries <tom@codesourcery.com>
12926
12927 PR tree-optimization/68773
12928 * omp-low.c (expand_omp_target): Don't set force_output.
12929 * varpool.c (varpool_node::get_create): Same.
12930 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
12931 offload_funcs with force_output.
12932
12933 2016-01-14 Jakub Jelinek <jakub@redhat.com>
12934
12935 PR debug/69244
12936 * lra-eliminations.c (move_plus_up): Don't change anything if either
12937 the outer or inner subreg mode is not MODE_INT.
12938 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
12939 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
12940
12941 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
12942
12943 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
12944 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
12945 reduc_uplus_@var{m}): Remove.
12946 * expr.c (expand_expr_real_2): Remove expansion path for
12947 reduc_[us](min|max|plus) optabs.
12948 * optabs-tree.c (scalar_reduc_to_vector): Remove.
12949 * optabs-tree.h (scalar_reduc_to_vector): Remove.
12950 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
12951 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
12952 * tree-vect-loop.c (vectorizable_reduction): Remove test for
12953 reduc_[us](min|max|plus) optabs.
12954
12955 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
12956
12957 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
12958 (reduc_plus_scal_v2sf): New.
12959 (reduc_smax_v2sf): Rename to...
12960 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
12961 (reduc_smin_v2sf): Rename to...
12962 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
12963
12964 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
12965
12966 * alias.c (compare_base_symbol_refs): New function.
12967 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
12968 it.
12969
12970 2016-01-14 Jakub Jelinek <jakub@redhat.com>
12971
12972 PR middle-end/68146
12973 PR tree-optimization/69155
12974 * tree-complex.c: Include cfganal.h.
12975 (phis_to_revisit): New variable.
12976 (extract_component): Add phiarg_p argument. Assert that returned
12977 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
12978 (update_phi_components): Partly rewrite to use loop over real/imag
12979 components instead of code duplication. If extract_component returns
12980 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
12981 create_tmp_reg into the PHI node instead, and mention the phi triplet
12982 in phis_to_revisit.
12983 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
12984 in phis_to_revisit at the end.
12985
12986 2016-01-14 Richard Biener <rguenther@suse.de>
12987
12988 PR tree-optimization/68060
12989 * tree-vect-loop.c (vect_is_simple_reduction): Check the
12990 outer loop reduction is only used in the inner loop before
12991 detecting a double reduction.
12992
12993 2016-01-14 Jakub Jelinek <jakub@redhat.com>
12994
12995 PR target/68269
12996 * combine.c (expand_field_assignment): Punt if compute_mode is
12997 unsupported scalar mode.
12998
12999 2016-01-14 Richard Biener <rguenther@suse.de>
13000
13001 PR tree-optimization/66856
13002 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
13003 SLP node only if it built successfully.
13004 (vect_analyze_slp_instance): Adjust.
13005
13006 2016-01-14 Jeff Law <law@redhat.com>
13007
13008 PR tree-optimization/69270
13009 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
13010 (record_edge_info): Use it. Convert boolean_{true,false}_node
13011 to the type of op0.
13012
13013 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
13014
13015 PR ipa/66487
13016 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
13017 use block_ultimate_origin
13018 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
13019
13020 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
13021
13022 * doc/invoke.texi (Submodel Options): Rename section to
13023 "Machine-Dependent Options" to better reflect its content.
13024 Rewrite introductory text to remove archaic CPU names.
13025 Update references.
13026
13027 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
13028
13029 * doc/invoke.texi (Code Gen Options): Move section up in file,
13030 before target-specific options. Update menu and option summary
13031 to reflect the new section ordering.
13032
13033 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
13034
13035 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
13036 (C++ Dialect Options): Add cross-reference to -std option.
13037 * doc/standards.texi (C++ Language): Document C++14 support.
13038
13039 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
13040
13041 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
13042 for pack/unpack functions for __ibm128.
13043 (PACK_IF): Likewise.
13044 (UNPACK_IF): Likewise.
13045
13046 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
13047 support for __ibm128 pack/unpack functions.
13048 (rs6000_invalid_builtin): Likewise.
13049 (rs6000_init_builtins): Likewise.
13050 (rs6000_opt_masks): Likewise.
13051
13052 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
13053 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
13054 functions
13055 (RS6000_BTM_COMMON): Likewise.
13056
13057 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
13058 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
13059 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
13060 128-bit floating point. Add support for the double values to be
13061 in Altivec registers for TF/IF packing and unpacking, but restrict
13062 TD packing sub-fields to be FPR registers. Don't allow overlapped
13063 register support for packing. Allow pack inputs to be memory
13064 locations. Don't build generator functions for unpack<mode>_dm
13065 and unpack<mode>_nodm.
13066 (unpack<mode>_dm): Likewise.
13067 (unpack<mode>_nodm): Likewise.
13068 (pack<mode>): Likewise.
13069
13070 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
13071 built-in functions to pack/unpack explicit __ibm128 values.
13072 (__builtin_unpack_ibm128): Likewise.
13073
13074 * doc/extend.texi (PowerPC Built-in Functions): Document
13075 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
13076
13077 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
13078
13079 PR c/66208
13080 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
13081 Add new arg loc and pass it down as context.
13082 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
13083 to the location to use for the warning.
13084 (check_function_arguments): New arg loc. All callers changed. Pass
13085 it to check_function_nonnull.
13086 * c-common.h (check_function_arguments): Adjust declaration.
13087
13088 2016-01-13 Jakub Jelinek <jakub@redhat.com>
13089
13090 PR tree-optimization/69156
13091 * gimple.c (validate_type): Removed.
13092 (gimple_builtin_call_types_compatible_p): Use
13093 useless_type_conversion_p instead of validate_type.
13094 * value-prof.c (gimple_stringop_fixed_value): Fold
13095 icall_size to correct type.
13096
13097 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
13098
13099 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
13100 effects.
13101
13102 2016-01-13 Richard Henderson <rth@redhat.com>
13103
13104 PR tree-opt/68964
13105 * target.def (builtin_tm_load, builtin_tm_store): Remove.
13106 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
13107 (ix86_builtin_tm_store): Remove.
13108 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
13109 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
13110 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
13111 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
13112 * doc/tm.texi: Rebuild.
13113
13114 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
13115 (BUILT_IN_TM_MEMCPY_RTWN): New.
13116 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
13117 fallback from vector to integer helpers.
13118 (build_tm_load): Handle vector types directly, instead of
13119 via target hook.
13120 (build_tm_store): Likewise.
13121 (expand_assign_tm): Prepare for register types not handled by
13122 the above. Copy them to memory and use memcpy.
13123 * tree.c (tm_define_builtin): New.
13124 (find_tm_vector_type): New.
13125 (build_tm_vector_builtins): New.
13126 (build_common_builtin_nodes): Call it.
13127
13128 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
13129
13130 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
13131 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
13132
13133 2016-01-13 Tom de Vries <tom@codesourcery.com>
13134
13135 PR tree-optimization/69169
13136 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
13137 handled_struct_type param.
13138 (create_variable_info_for, intra_create_variable_infos): Call
13139 create_variable_info_for_1 with extra arg.
13140
13141 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
13142
13143 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
13144 and "armv8.1-a+crc" entries.
13145
13146 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
13147
13148 PR target/69228
13149 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
13150 Change first operand predicate from register_or_constm1_operand
13151 to register_operand.
13152 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
13153 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
13154 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
13155 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
13156 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
13157 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
13158 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
13159 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
13160 comparison with constm1_rtx from vec_prefetch_gen part.
13161
13162 2016-01-13 Richard Biener <rguenther@suse.de>
13163
13164 PR tree-optimization/69013
13165 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
13166 Exchange assert for a test.
13167
13168 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13169
13170 PR target/69247
13171 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
13172
13173 2016-01-13 Richard Biener <rguenther@suse.de>
13174
13175 PR tree-optimization/69242
13176 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
13177 assert with a check.
13178
13179 2016-01-13 Richard Biener <rguenther@suse.de>
13180
13181 PR tree-optimization/69186
13182 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
13183 Properly guard vect_update_misalignment_for_peel call.
13184
13185 2016-01-12 Jeff Law <law@redhat.com>
13186
13187 PR tree-optimization/pr67755
13188 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
13189 "need_profile_correction".
13190 (thread_block_1): Initialize new field to false by default. If we
13191 have multiple thread paths through a common joiner to different
13192 final targets, then set new field to true.
13193 (compute_path_counts): Only do count adjustment when it's really
13194 needed.
13195
13196 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
13197
13198 * doc/invoke.texi (Spec Files): Move section down in file, past
13199 all command-line option descriptions.
13200
13201 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13202
13203 PR middle-end/54809
13204 * doc/gty.texi: Remove documentation of mark_hook.
13205 * gengtype.c (struct write_types_data): Remove code to support
13206 mark_hook attribute.
13207 (walk_type): Likewise.
13208 (write_func_for_structure): Likewise.
13209
13210 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
13211
13212 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
13213 Directory Options, and -specs= to Overall Options.
13214 (Overall Options): Adjust similarly. Reorder to group related
13215 options together. Make -specs= cross-reference the spec file details.
13216 (Directory Options): Adjust similarly.
13217
13218 2016-01-12 Jeff Law <law@redhat.com>
13219
13220 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
13221
13222 2016-01-12 Olivier Hainque <hainque@adacore.com>
13223
13224 * gcc.c (spec_undefvar_allowed): New global.
13225 (process_command): Set to true when running for --version or --help,
13226 alone or together.
13227 (getenv_spec_function): When the variable is not defined, use the
13228 variable name as the variable value if we're allowed not to issue
13229 a fatal error.
13230
13231 2016-01-12 Bin Cheng <bin.cheng@arm.com>
13232
13233 PR tree-optimization/68911
13234 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
13235 information computed for expression "init + nit * step".
13236
13237 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
13238
13239 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
13240 about name of GCC executable. Remove deleted node from menu.
13241 (Directory Options) <-B>: Remove cross-reference to deleted node.
13242 (Target Options): Delete section.
13243
13244 2016-01-12 Christian Bruel <christian.bruel@st.com>
13245
13246 PR target/69180
13247 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
13248 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
13249
13250 2016-01-12 Jakub Jelinek <jakub@redhat.com>
13251
13252 PR target/69198
13253 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
13254 aligned_mem is properly set for AVX512-VL floating point masked
13255 stores.
13256
13257 PR target/69175
13258 * ifcvt.c (cond_exec_process_if_block): When removing the last
13259 insn from then_bb, remove also any possible barriers that follow it.
13260
13261 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
13262
13263 PR target/68456
13264 PR target/69226
13265 * config/i386/iamcu.h (SIZE_TYPE): New macro.
13266 (PTRDIFF_TYPE): Likewise.
13267 (WCHAR_TYPE): Likewise.
13268 (WCHAR_TYPE_SIZE): Likewise.
13269 (STDINT_LONG32): Likewise.
13270
13271 2016-01-12 Richard Biener <rguenther@suse.de>
13272
13273 PR tree-optimization/69053
13274 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
13275 convert initial value for cond reductions.
13276
13277 2016-01-12 Richard Biener <rguenther@suse.de>
13278
13279 PR tree-optimization/69007
13280 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
13281 widen_sum after dot_prod and sad.
13282
13283 2016-01-12 Richard Biener <rguenther@suse.de>
13284
13285 PR tree-optimization/69168
13286 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
13287 pattern stmt SLP type.
13288 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
13289 end up unused so cope with that case.
13290
13291 2016-01-12 Richard Biener <rguenther@suse.de>
13292
13293 PR tree-optimization/69157
13294 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
13295 stmts def type only during analyze phase.
13296 (vectorizable_call): Likewise.
13297 (vectorizable_simd_clone_call): Likewise.
13298 (vectorizable_conversion): Likewise.
13299 (vectorizable_assignment): Likewise.
13300 (vectorizable_shift): Likewise.
13301 (vectorizable_operation): Likewise.
13302 (vectorizable_store): Likewise.
13303 (vectorizable_load): Likewise.
13304
13305 2016-01-12 Richard Biener <rguenther@suse.de>
13306
13307 PR tree-optimization/69174
13308 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
13309 space.
13310 (vectorizable_load): Properly compute the number of loads needed
13311 for permuted strided SLP loads and do not spuriously assign
13312 to SLP_TREE_VEC_STMTS.
13313
13314 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
13315
13316 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
13317 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
13318 (MD_EXEC_PREFIX): Remove.
13319 (MD_STARTFILE_PREFIX) Removee.
13320 (FILE_NAME_ABSOLUTE_P): Remove.
13321 (CPP_SPEC): Do not read macros from sys/version.h.
13322 (LINK_COMMAND_SPEC): Remove.
13323 (LOCAL_INCLUDE_DIR): Remove.
13324 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
13325 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
13326 (POST_LINK_SPEC): Define to invoke stubify after linker
13327 (LIBSTDCXX): Remove define
13328 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
13329 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
13330 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
13331 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
13332 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
13333 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
13334 (i386_djgpp_asm_named_section): Add propotype of new procedure
13335
13336 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
13337 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
13338 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
13339 in config/i386/djgpp.h).
13340 (STANDARD_STARTFILE_PREFIX_2): Define identical to
13341 STANDARD_STARTFILE_PREFIX_1.
13342 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
13343 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
13344 installation errors.
13345 (MAX_OFILE_ALIGNMENT): Define to 128.
13346 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
13347
13348 * config/i386/djgpp.c: New file. Add implementation of
13349 i386_djgpp_asm_named_section.
13350
13351 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
13352
13353 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
13354 Add rule for building djgpp.o.
13355
13356 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13357
13358 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
13359 (rtx_is_swappable_p): Reductions are swappable.
13360 (insn_is_swappable_p): V2DF reductions are swappable.
13361
13362 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
13363
13364 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
13365 reloads for other unsupported memory operands.
13366
13367 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
13368 Jim Wilson <jim.wilson@linaro.org>
13369
13370 PR target/69194
13371 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
13372 copy_to_mode_reg instead of force_reg.
13373
13374 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
13375
13376 PR target/69225
13377 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
13378 TARGET_80387 is true.
13379
13380 2016-01-11 Jakub Jelinek <jakub@redhat.com>
13381
13382 PR target/69071
13383 * lra-eliminations.c (move_plus_up): Only move plus up
13384 if subreg of the constant can be simplified into constant
13385 and use the simplified subreg of the constant instead of
13386 the original constant.
13387
13388 * fold-const.c (fold_convertible_p): Don't return true
13389 for conversion of VECTOR_TYPE to same sized integral type.
13390 (fold_convert_loc): Fix up formatting. Fold conversion of
13391 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
13392 instead of NOP_EXPR.
13393
13394 PR tree-optimization/69214
13395 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
13396 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
13397 Formatting fix.
13398
13399 PR tree-optimization/69207
13400 * tree-vect-slp.c (vect_get_constant_vectors): For
13401 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
13402 fold_convertible_p to vector_type's element type, and always
13403 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
13404
13405 2016-01-11 Richard Biener <rguenther@suse.de>
13406
13407 PR tree-optimization/69173
13408 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
13409 fixup the cycle if all stmts are in a pattern.
13410
13411 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
13412
13413 PR middle-end/68999
13414 * alias.c (base_alias_check): Move check for addresses with
13415 alignment ANDs before the call for compare_base_decls.
13416 (memrefs_conflict_p): Return -1 for different decls
13417 that went through alignment adjustments.
13418
13419 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13420
13421 PR rtl-optimization/68796
13422 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
13423 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
13424 and QImode comparisons against zero with CC_NZmode.
13425 * config/aarch64/iterators.md (short_mask): New mode_attr.
13426
13427 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
13428
13429 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
13430 (<avx512>_store<mode>_mask): Likewise.
13431
13432 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
13433 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13434
13435 PR rtl-optimization/68841
13436 * ifcvt.c (struct noce_if_info): Add orig_x field.
13437 (bbs_ok_for_cmove_arith): Add to_rename parameter.
13438 Don't record conflicts on to_rename if it's present.
13439 Allow memory destinations in sets.
13440 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
13441 blocks, passing orig_x to the checks.
13442 (noce_process_if_block): Set if_info->orig_x appropriately.
13443
13444 2016-01-11 Tom de Vries <tom@codesourcery.com>
13445
13446 PR tree-optimization/69069
13447 * tree-parloops.c (create_parallel_loop): Add missing phi args.
13448
13449 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
13450
13451 PR rtl-optimization/68920
13452 * config/i386/i386.c (ix86_option_override_internal): Restrict number
13453 of conditional moves for RTL if-conversion to 1 for
13454 TARGET_ONE_IF_CONV_INSN.
13455 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
13456 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
13457 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
13458 parameter to restirct number of conditional moves for
13459 RTL if-conversion.
13460 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
13461 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
13462 conditionl moves.
13463
13464 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
13465
13466 PR bootstrap/69123
13467 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
13468 onepart vars. Fix typo in comment. Fix reversed condition in
13469 unshare test.
13470 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
13471
13472 PR bootstrap/69123
13473 * var-tracking.c (dump_onepart_variable_differences): New.
13474 (dataflow_set_different): If a detailed dump is requested,
13475 delay early returns and dump differences between onepart
13476 variables present before and after, and added variables.
13477
13478 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
13479
13480 PR target/69010
13481 * expr.c (expand_expr_real_1): For boolean vector constants
13482 with a scalar mode use const_scalar_mask_from_tree.
13483 (const_scalar_mask_from_tree): New.
13484 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
13485 assigned to a mask type to handle constants.
13486
13487 2016-01-11 Martin Jambor <mjambor@suse.cz>
13488
13489 PR ipa/69044
13490 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
13491 useless parameters if we cannot change function signature.
13492
13493 2016-01-11 Martin Jambor <mjambor@suse.cz>
13494
13495 PR ipa/66616
13496 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
13497 flag.
13498
13499 2016-01-11 Tom de Vries <tom@codesourcery.com>
13500
13501 PR tree-optimization/69109
13502 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
13503 latch with phi.
13504
13505 2016-01-11 Tom de Vries <tom@codesourcery.com>
13506
13507 PR tree-optimization/69108
13508 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
13509 res is not used in a phi.
13510
13511 2016-01-11 Yury Gribov <y.gribov@samsung.com>
13512
13513 PR 67425
13514 * common.opt (frandom-seed): Fix parameter name.
13515 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
13516
13517 2016-01-11 Tom de Vries <tom@codesourcery.com>
13518
13519 PR tree-optimization/69058
13520 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
13521 not supported.
13522
13523 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
13524
13525 * config/arc/arc.opt (mdiv-rem): Add period to the end.
13526 (mcode-density): Likewise.
13527
13528 2016-01-10 Tom de Vries <tom@codesourcery.com>
13529
13530 PR tree-optimization/69062
13531 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
13532 (parallelize_loops): Don't paralelize loop that has phi with address
13533 arg.
13534
13535 2016-01-10 Tom de Vries <tom@codesourcery.com>
13536
13537 PR tree-optimization/69039
13538 * tree-parloops.c (try_create_reduction_list): Only allow single exit
13539 phi for reduction.
13540
13541 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
13542
13543 PR middle-end/68743
13544 * match.pd: Require target has function_c99_misc before doing
13545 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
13546
13547 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
13548
13549 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
13550 use GMPINC.
13551 * configure: Regenerate.
13552
13553 2016-01-09 Jakub Jelinek <jakub@redhat.com>
13554
13555 PR middle-end/50865
13556 PR tree-optimization/69097
13557 * fold-const.h (expr_not_equal_to): New prototype.
13558 * fold-const.c: Include stringpool.h and tree-ssanames.h.
13559 (expr_not_equal_to): New function.
13560 * match.pd (X % -Y is the same as X % Y): Don't optimize
13561 unless X is known not to be equal to minimum or Y is known
13562 not to be equal to -1.
13563 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
13564 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
13565 (simplify_stmt_using_ranges): Adjust caller.
13566 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
13567 substitute_and_fold.
13568
13569 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
13570
13571 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
13572 w/o DECL_NAME.
13573
13574 2016-01-08 Jakub Jelinek <jakub@redhat.com>
13575
13576 PR tree-optimization/69167
13577 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
13578 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
13579 ops[0] comparison.
13580 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
13581
13582 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
13583 Richard Biener <rguenther@suse.de>
13584
13585 PR tree-optimization/68707
13586 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
13587 instances that can be handled via vect_load_lanes.
13588
13589 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
13590
13591 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
13592 if we can't determine address equivalence.
13593 * alias.c (compare_base_decl): Update for changed return value of
13594 symtab_node::equal_address_to.
13595
13596 2016-01-08 Jason Merrill <jason@redhat.com>
13597
13598 PR c++/68983
13599 PR c++/67557
13600 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
13601 * expr.c (store_field): Not here.
13602 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
13603 call with TREE_ADDRESSABLE type.
13604 * tree-cfg.c (verify_gimple_call): Adjust.
13605
13606 2016-01-08 Olivier Hainque <hainque@adacore.com>
13607
13608 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
13609 libc_internal.
13610
13611 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
13612
13613 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
13614 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
13615 (reduc_smin_v2sf): Rename to...
13616 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
13617 (reduc_splus_v2sf): Rename to...
13618 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
13619
13620 2016-01-08 Jakub Jelinek <jakub@redhat.com>
13621
13622 PR tree-optimization/69162
13623 * gimplify.c (gimplify_va_arg_expr): Encode original type of
13624 valist argument in another argument.
13625 (gimplify_modify_expr): Adjust for the above change. Cleanup.
13626 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
13627 to determine the va_list type, build a MEM_REF instead of
13628 build_fold_indirect_ref.
13629
13630 PR tree-optimization/69172
13631 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
13632 gimple_build.
13633
13634 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
13635
13636 PR tree-optimization/67781
13637 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
13638 and cmpnop in two steps: first the ones not accessed in original
13639 gimple expression in a endian independent way and then the ones not
13640 accessed in the final result in an endian-specific way.
13641
13642 2016-01-08 Jakub Jelinek <jakub@redhat.com>
13643
13644 PR tree-optimization/69083
13645 * tree-vect-slp.c (vect_get_constant_vectors): For
13646 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
13647 element type. If op is fold_convertible_p to vector_type's element
13648 type, use NOP_EXPR instead of VCE.
13649
13650 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
13651
13652 PR rtl-optimization/67778
13653 PR rtl-optimization/68634
13654 PR rtl-optimization/68909
13655 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
13656 block from the stack until done with it. Remove a superfluous
13657 bitmap set. Remove a superfluous bitmap test.
13658
13659 2016-01-07 Martin Sebor <msebor@redhat.com>
13660
13661 PR c/68966
13662 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
13663 constraint on the type of arguments.
13664
13665 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
13666
13667 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
13668 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
13669 unaligned_access on the gcc_options set.
13670 * config/arm/arm.c (arm_option_override_internal): Use
13671 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
13672
13673 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
13674
13675 PR target/69140
13676 * config/i386/i386.c (ix86_frame_pointer_required): Enable
13677 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
13678
13679 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
13680
13681 Revert
13682 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
13683
13684 PR target/69140
13685 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
13686 depending on frame_pointer_needed before remaining integer and SSE
13687 registers are saved.
13688
13689 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
13690
13691 PR 1078
13692 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
13693
13694 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
13695
13696 PR target/69171
13697 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
13698 Use the "xBm" constraint.
13699 (float<sseintvecmodelower><mode>2<mask_name><round_name):
13700 Likewise.
13701 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
13702 (sse_cvtsi2ssq<round_name>): Likewise.
13703 (sse_cvtss2si<round_name>): Likewise.
13704 (sse_cvtss2siq<round_name>): Likewise.
13705 (sse2_cvtsi2sdq<round_name>): Likewise.
13706 (sse2_cvtsd2si<round_name>): Likewise.
13707 (sse2_cvtsd2siq<round_name>): Likewise.
13708 * config/i386/subst.md (round_nimm_scalar_predicate): New
13709 predicate.
13710
13711 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
13712
13713 PR middle-end/67639
13714 * varasm.c (make_decl_rtl): Mark invalid register vars as
13715 DECL_EXTERNAL.
13716
13717 PR rtl-optimization/66206
13718 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
13719 All callers changed.
13720
13721 2016-01-07 Jakub Jelinek <jakub@redhat.com>
13722
13723 PR tree-optimization/69141
13724 * tree-ssa-pre.c: Include langhooks.h.
13725 (eliminate_dom_walker::before_dom_children): Use
13726 lang_hooks.decl_printable_name instead of
13727 cgraph_node::get ()->name ().
13728
13729 PR middle-end/68960
13730 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
13731 it and DECL_ALIGN too.
13732
13733 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
13734
13735 * config/mips/mips-ftypes.def: Sort to lexicographical order.
13736
13737 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
13738
13739 PR target/69140
13740 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
13741 depending on frame_pointer_needed before remaining integer and SSE
13742 registers are saved.
13743
13744 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13745
13746 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
13747 mode iterator with VSX_M2.
13748 (*p9_vecstore_<mode>): Likewise.
13749 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
13750 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
13751 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
13752 (define_split for VSX_LE128 stores): Likewise.
13753 (define_peephole2 for TImode LE swaps): Likewise.
13754 (define_split for VSX_LE128 post-reload stores): Likewise.
13755
13756 2016-01-06 Marek Polacek <polacek@redhat.com>
13757
13758 PR sanitizer/69099
13759 * convert.c (convert_to_integer_1): Adjust call to
13760 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
13761 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
13762 EXPR instead of ARG.
13763 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
13764
13765 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
13766
13767 PR 1078
13768 * doc/extend.texi (RL78 Variable Attributes): New section.
13769
13770 2016-01-05 Marek Polacek <polacek@redhat.com>
13771
13772 PR c/69104
13773 * builtins.c (get_memmodel): Use expansion point location rather than
13774 the input location. Call warning_at rather than warning.
13775 (expand_builtin_atomic_compare_exchange): Likewise.
13776 (expand_builtin_atomic_load): Likewise.
13777 (expand_builtin_atomic_store): Likewise.
13778 (expand_builtin_atomic_clear): Likewise.
13779
13780 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
13781
13782 PR target/68991
13783 * config/i386/i386.c (ix86_expand_vector_logical_operator):
13784 Replace nonimmediate_operand with vector_operand.
13785 * config/i386/predicates.md (vector_operand): New predicate.
13786 (general_vector_operand): Replace nonimmediate_operand with
13787 vector_operand.
13788 * config/i386/sse.md: Replace nonimmediate_operand with
13789 vector_operand and m constraint with Bm constraint on SSE
13790 patterns with 16-byte memory operand.
13791 * config/i386/subst.md (round_nimm_predicate): Replace
13792 nonimmediate_operand with vector_operand.
13793 (round_saeonly_nimm_predicate): Likewise.
13794 (round_saeonly_nimm_scalar_predicate): New.
13795
13796 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
13797
13798 PR target/68991
13799 * config/i386/constraints.md (Bm): New constraint.
13800 * config/i386/predicates.md (vector_memory_operand): New
13801 predicate.
13802 * config/i386/sse.md: Replace xm with xBm in plusminus and
13803 any_logic patterns.
13804
13805 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
13806
13807 PR 1078
13808 * doc/extend.texi (V850 Function Attributes): New section.
13809 (V850 Variable Attributes): New section.
13810
13811 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
13812
13813 PR 1078
13814 * doc/extend.texi (MicroBlaze Function Attributes): Document
13815 interrupt_handler and fast_interrupt attributes.
13816
13817 2016-01-05 Sergei Trofimovich <siarheit@google.com>
13818
13819 PR other/60465
13820 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
13821 for local symbolic operands.
13822 * config/ia64/predicates.md (local_symbolic_operand64): New
13823 predicate.
13824
13825 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13826
13827 PR rtl-optimization/68651
13828 * combine.c (combine_simplify_rtx): Canonicalize x + x into
13829 x << 1.
13830
13831 2016-01-05 Nathan Sidwell <nathan@acm.org>
13832
13833 * alias.c (compare_base_decls): Use symtab_node::get.
13834
13835 2016-01-05 Nick Clifton <nickc@redhat.com>
13836
13837 PR target/68770
13838 * ira-costs.c (copy_cost): Initialise the t_icode field of the
13839 secondary_reload_info structure.
13840
13841 PR target/66655
13842 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
13843 decls if weak support is available.
13844
13845 2016-01-04 Martin Sebor <msebor@redhat.com>
13846
13847 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
13848
13849 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
13850
13851 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
13852 OPTION_MASK_P9_DFORM.
13853
13854 * config/rs6000/constraints.md (wo constraint): New constraint for
13855 ISA 3.0 (power9).
13856
13857 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
13858 for wo constraint.
13859 (rs6000_init_hard_regno_mode_ok): Likewise.
13860
13861 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
13862 wo constraint.
13863
13864 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
13865 expanders not to have constraints. Add support for ISA 3.0 xxperm
13866 instruction. Add support for fusing xxlor with xxperm.
13867 (altivec_vperm_<mode>_internal): Likewise.
13868 (altivec_vperm_v8hiv16qi): Likewise.
13869 (altivec_vperm_<mode>v16q): Likewise.
13870 (altivec_vperm_<mode>_uns): Likewise.
13871 (vperm_v8hiv4si): Likewise.
13872 (vperm_v16qiv8hi): Likewise.
13873
13874 * doc/md.texi (RS/6000 constraints): Document wo constraint.
13875
13876 2016-01-04 Jakub Jelinek <jakub@redhat.com>
13877
13878 Update copyright years.
13879
13880 * gcc.c (process_command): Update copyright notice dates.
13881 * gcov-dump.c (print_version): Ditto.
13882 * gcov.c (print_version): Ditto.
13883 * gcov-tool.c (print_version): Ditto.
13884 * gengtype.c (create_file): Ditto.
13885 * doc/cpp.texi: Bump @copying's copyright year.
13886 * doc/cppinternals.texi: Ditto.
13887 * doc/gcc.texi: Ditto.
13888 * doc/gccint.texi: Ditto.
13889 * doc/gcov.texi: Ditto.
13890 * doc/install.texi: Ditto.
13891 * doc/invoke.texi: Ditto.
13892
13893 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
13894
13895 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
13896 modes larger than TImode as TImode if NEON is not enabled.
13897
13898 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
13899
13900 PR target/69100
13901 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
13902 mode for %f0-%f31 only if TARGET_FPU.
13903
13904 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
13905
13906 PR target/69072
13907 * config/sparc/sparc.c (scan_record_type): Take into account subfields
13908 to compute the PACKED_P predicate.
13909 (function_arg_record_value): Minor tweaks.
13910
13911 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
13912
13913 * doc/install.texi (--with-multilib-list): Describe the meaning of the
13914 option for arm*-*-* targets.
13915
13916 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
13917
13918 * doc/extend.texi (Common Function Attributes): Move docs for
13919 MSP430-specific attributes to....
13920 (MSP430 Function Attributes): ...here. Delete the redundant
13921 entries and copy-edit the remaining text.
13922 (MSP430 Variable Attributes): Use uniform format for index
13923 entries and add a cross-reference to the corresponding function
13924 attribute docs.
13925
13926 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
13927
13928 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
13929 -finite-math typo.
13930 (x86 Options): Likewise.
13931
13932 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
13933
13934 PR 1078
13935
13936 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
13937 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
13938 to corresponding attribute.
13939
13940 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
13941
13942 * doc/extend.texi (Common Function Attributes) <noplt>: Move
13943 to correct alphabetization of table. Copy-edit and correct
13944 markup.
13945 <stack_protect>: Likewise.
13946 <target_clones>: Likewise.
13947 <simd>: Likewise.
13948 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
13949 Correct punctuation.
13950 (Code Gen Options) <-fno-plt>: Copy-edit.
13951
13952 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
13953
13954 PR target/68917
13955 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
13956 SI values. Explicitly convert SI to DI and vice-versa.
13957
13958 2016-01-01 Jakub Jelinek <jakub@redhat.com>
13959
13960 PR tree-optimization/69070
13961 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
13962 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
13963
13964 PR sanitizer/69055
13965 * ubsan.c (ubsan_instrument_float_cast): Call
13966 initialize_sanitizer_builtins.
13967
13968 PR target/69015
13969 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
13970 \f
13971 Copyright (C) 2016 Free Software Foundation, Inc.
13972
13973 Copying and distribution of this file, with or without modification,
13974 are permitted in any medium without royalty provided the copyright
13975 notice and this notice are preserved.