re PR rtl-optimization/69896 (wrong code with -frename-registers @ x64_64)
[gcc.git] / gcc / ChangeLog
1 2016-02-25 Jakub Jelinek <jakub@redhat.com>
2
3 PR rtl-optimization/69896
4 * regcprop.c: Include cfgrtl.h.
5 (copyprop_hardreg_forward_1): If noop_p insn uses narrower
6 than remembered mode, either delete it (if noop_move_p), or
7 treat like copy_p but not noop_p instruction.
8
9 2016-02-24 Jakub Jelinek <jakub@redhat.com>
10
11 PR debug/69705
12 * dwarf2out.c (gen_variable_die): Work around buggy LTO
13 - allow NULL decl for Fortran DW_TAG_common_block variables.
14
15 2016-02-24 Jason Merrill <jason@redhat.com>
16
17 * common.opt (flifetime-dse): Add -flifetime-dse=1.
18
19 2016-02-24 Richard Biener <rguenther@suse.de>
20 Jakub Jelinek <jakub@redhat.com>
21
22 PR middle-end/69760
23 * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
24 conditionally executed ops to well-defined overflow behavior.
25
26 2016-02-24 Jakub Jelinek <jakub@redhat.com>
27
28 PR middle-end/69915
29 * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
30 elements.
31
32 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33
34 PR rtl-optimization/69886
35 * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
36 argument. Use it when checking validity of set instructions.
37 (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
38 (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
39 callsite.
40 * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
41 * store-motion.c (find_moveable_store): Update
42 can_assign_to_reg_without_clobbers_p callsite.
43
44 2016-02-24 Richard Biener <rguenther@suse.de>
45
46 PR middle-end/68963
47 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
48 bogus check.
49 (record_nonwrapping_iv): Do not fall back to the low/high bound
50 for non-constant IV bases if the stmt is not always executed.
51
52 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
53
54 * config/arm/arm-cores.def (cortex-a32): New entry.
55 * config/arm/arm-tables.opt: Regenerate.
56 * config/arm/arm-tune.md: Regenerate.
57 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
58 * config/arm/t-aprofile: Handle mcpu=cortex-a32.
59 * doc/invoke.texi (ARM Options): Document cortex-a32 as value
60 for -mcpu and -mtune.
61
62 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
63
64 PR target/69875
65 * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
66 * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
67 * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
68 (atomic_loaddi_1): Delete.
69 (atomic_loaddi): Rewrite expander using the above changes.
70
71 2016-02-24 Jakub Jelinek <jakub@redhat.com>
72
73 PR c/69918
74 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
75 2 to 3.
76
77 2016-02-24 Jakub Jelinek <jakub@redhat.com>
78 Richard Biener <rguenth@suse.de>
79
80 PR middle-end/69909
81 * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
82 set_mem_attributes if tem is SSA_NAME which got expanded
83 as a MEM.
84
85 2016-02-24 Richard Biener <rguenther@suse.de>
86
87 PR tree-optimization/69907
88 * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
89 end of permutations for BB vectorization.
90
91 2016-02-24 Christian Bruel <christian.bruel@st.com>
92
93 * config/arm/arm-c.c (arm_option_override): Initialize
94 target_option_current_node.
95 * config/arm/arm.c (arm_pragma_target_parse): Replace
96 build_target_option_node call by target_option_current_node.
97 Set target_option_current_node.
98 Fix comments.
99
100 2016-02-23 David Edelsohn <dje.gcc@gmail.com>
101
102 PR target/69810
103 * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
104 define_insn_and_split to define_insn.
105 (zero_extendqi<mode>2_dot2): Same.
106 (extendqi<mode>2_dot): Same.
107 (extendqi<mode>2_dot2): Same.
108
109 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
110
111 * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
112 and add bypass for AES{D,E} and AESMC pairs.
113 * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
114 and AESMC pairs.
115
116 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
117
118 * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
119 series for reciprocal square root in Exynos M1.
120
121 2016-02-23 Martin Sebor <msebor@redhat.com>
122
123 PR c/69759
124 * doc/extend.texi (Other Builtins): Document __builtin_alloca and
125 __builtin_alloca_with_align.
126
127 2016-02-23 Richard Henderson <rth@redhat.com>
128
129 * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
130 (ix86_register_pragmas): Remove __seg_tls.
131 * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
132 * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
133 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
134 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
135 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
136 * doc/extend.texi (__seg_tls): Remove item.
137
138 2016-02-23 Richard Biener <rguenther@suse.de>
139
140 * alloc-pool.h (struct allocation_object): Make id member
141 conditional on CHECKING_P again.
142 (get_instance): Adjust.
143 (base_pool_allocator): Likewise.
144
145 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
146
147 * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
148 (parallelize_loops): In OpenACC kernels mode, set n_threads to
149 zero.
150 (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
151 flag_openacc.
152 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
153
154 2016-02-23 Richard Biener <rguenther@suse.de>
155
156 * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
157 * bitmap.h (struct bitmap_usage): Likewise.
158 (bitmap_move): Declare.
159 * bitmap.c (register_overhead): Take size_t argument.
160 (bitmap_move): New function.
161 * df-problems.c (df_rd_transfer_function): Use bitmap_move
162 to properly account overhead.
163 * tree.c (free_node): Use tree_size.
164
165 2016-02-23 Jakub Jelinek <jakub@redhat.com>
166
167 PR c++/69902
168 * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
169 when inverting comparison.
170
171 PR c/69900
172 * common.opt (Wunreachable-code): Add Warning flag.
173
174 2016-02-23 Mark Wielaard <mjw@redhat.com>
175 Jakub Jelinek <jakub@redhat.com>
176
177 PR c/69911
178 * cgraphunit.c (check_global_declaration): Check main_input_filename
179 and DECL_SOURCE_FILE are not NULL.
180
181 2016-02-23 Martin Jambor <mjambor@suse.cz>
182
183 PR tree-optimization/69666
184 * tree-sra.c (sra_modify_assign): Do not attempt to create
185 default_def replacements for unscalarizable regions.
186
187 2016-02-20 Mark Wielaard <mjw@redhat.com>
188
189 PR c/28901
190 * cgraphunit.c (check_global_declaration): Check level of
191 warn_unused_const_variable and main_input_filename.
192 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
193 (-Wunused-variable): For C implies -Wunused-const-variable=1.
194 (-Wunused-const-variable): Explain levels 1 and 2.
195
196 2016-02-22 Jakub Jelinek <jakub@redhat.com>
197
198 PR target/69888
199 * config/i386/i386.c (decide_alg): Ensure we don't recurse with
200 identical arguments. Formatting and spelling fixes.
201
202 PR target/69885
203 * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
204 be specified.
205
206 PR target/69894
207 PR target/69895
208 * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
209 and m68k-devices.def.
210 * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
211 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
212
213 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
214
215 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
216 and HImode registers.
217
218 2016-02-22 Richard Biener <rguenther@suse.de>
219
220 PR tree-optimization/69882
221 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
222 preserve permutations present because of gaps.
223 (vect_supported_load_permutation_p): Always continue checking
224 permutations after vect_attempt_slp_rearrange_stmts.
225
226 2016-02-22 Bin Cheng <bin.cheng@arm.com>
227
228 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
229 min_profitable_estimate, rather than min_profitable_iters.
230
231 2016-02-22 Jakub Jelinek <jakub@redhat.com>
232
233 PR target/69885
234 * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
235 SImode for last match_operand.
236
237 2016-02-22 Martin Liska <mliska@suse.cz>
238
239 * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
240 return bitsize - 1 as the return value.
241
242 2016-02-22 Oleg Endo <olegendo@gcc.gnu.org>
243
244 PR target/69806
245 PR target/54089
246 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
247 Handle negative shift counts.
248 * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
249 force_reg on the shift constant.
250 (lshrsi3): Likewise. Expand into lshrsi3_n* instead of lshrsi3_d.
251 (lshrsi3_d): Handle negative shift counts.
252
253 2016-02-22 Richard Biener <rguenther@suse.de>
254 Tom de Vries <tom@codesourcery.com>
255
256 * graph.c: Include dumpfile.h.
257 (print_graph_cfg): Split into three overloads.
258 * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
259
260 2016-02-22 Tom de Vries <tom@codesourcery.com>
261
262 * gdbhooks.py (class DumpFn): Add and instantiate, adding command
263 dump-fn.
264
265 2016-02-22 Richard Biener <rguenther@suse.de>
266
267 PR ipa/37448
268 * ipa-inline-transform.c (inline_call): When not updating
269 overall summaries adjust self size by the growth estimate.
270 * ipa-inline.c (inline_to_all_callers_1): Add to the callers
271 hash-set, do not update overall summaries here. Renamed from ...
272 (inline_to_all_callers): ... this which is now wrapping the
273 above and performing delayed overall summary update.
274 (early_inline_small_functions): Delay updating of the overall
275 summary.
276
277 2016-02-21 Markus Trippelsdorf <markus@trippelsdorf.de>
278
279 * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
280 variable.
281
282 2016-02-19 Jakub Jelinek <jakub@redhat.com>
283
284 PR driver/69805
285 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
286 :%* in %:gt() argument.
287 (greater_than_spec_func): Adjust for expecting only numbers,
288 if there are more than two numbers, compare the last two.
289
290 2016-02-19 Jonathan Wakely <jwakely@redhat.com>
291
292 * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
293 -Wnarrowing with -std.
294
295 2016-02-19 Jakub Jelinek <jakub@redhat.com>
296
297 PR c++/69851
298 * expr.c (store_field): Don't use bit-field path if exp is
299 COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
300 different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
301 and the assignment can be performed by bitwise copy. Formatting
302 fix.
303
304 PR middle-end/69838
305 * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
306 call copy_reg_eh_region_note_forward on before and/or after sequences
307 and remove note from insn if it no longer can throw.
308
309 PR target/69820
310 * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
311 if TARGET_AVX512BW.
312
313 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
314
315 * config/s390/vector.md: Add missing commutative operand markers
316 to the patterns which qualify for one.
317 * config/s390/vx-builtins.md: Likewise.
318
319 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
320
321 * config/s390/vector.md (VI, VI_QHS): Add single element vector
322 types to mode iterators.
323 (vec_double): ... and mode attribute.
324 * config/s390/vx-builtins.md (non_vec_int): Likewise.
325
326 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
327
328 * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
329 Change the predicate of op2 from nonimmediate to general and let
330 reload fix it if necessary.
331
332 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
333
334 * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
335
336 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
337
338 * config/s390/s390.c (s390_expand_vcond): Use the compare operand
339 mode.
340
341 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
342
343 * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
344 * config/s390/s390.c (s390_expand_vec_movstr): New function.
345 * config/s390/s390.md ("movstr<P:mode>"): Call
346 s390_expand_vec_movstr.
347
348 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
349
350 * config/s390/s390.md: Add missing output modifier for operand 1
351 to print it as address properly.
352
353 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
354
355 * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
356 * config/s390/2964.md: New file.
357 * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
358 of insn grouping attributes depending on the CPU level.
359 (s390_get_unit_mask): New function.
360 (s390_sched_score): Remove the OOO from the scheduling macros.
361 Add loop to calculate a score for the instruction mix.
362 (s390_sched_reorder): Likewise plus improve debug output.
363 (s390_sched_variable_issue): Rename macros as above. Calculate
364 the unit distances after actually scheduling an insn. Improve
365 debug output.
366 (s390_sched_init): Clear last_scheduled_unit_distance array.
367 * config/s390/s390.md: Include 2964.md.
368
369 2016-02-18 Jakub Jelinek <jakub@redhat.com>
370
371 PR target/69671
372 * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
373 *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
374 *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
375 *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
376 *avx512f_<code>v8div16qi2_mask_1): New insns.
377
378 2016-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
379
380 PR target/68404
381 * config/rs6000/predicates.md (fusion_gpr_addis): Revert
382 2016-02-09 change.
383
384 * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
385 earlyclobber from target. Use wF constraint for fused memory
386 address.
387 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
388
389 2016-02-18 Jakub Jelinek <jakub@redhat.com>
390 Martin Liska <mliska@suse.cz>
391
392 PR sanitizer/69863
393 * cfgexpand.c (asan_sanitize_stack_p): New function.
394 (partition_stack_vars): Use the function.
395 (expand_stack_vars): Likewise.
396 (defer_stack_allocation): Likewise.
397 (expand_used_vars): Likewise.
398
399 2016-02-18 Richard Biener <rguenther@suse.de>
400
401 PR middle-end/69553
402 * fold-const.c (operand_equal_p): Properly compare offsets for
403 IMAGPART_EXPR and ARRAY_REF.
404
405 2016-02-18 Nick Clifton <nickc@redhat.com>
406
407 PR target/62254
408 PR target/69610
409 * config/arm/arm.c (arm_option_override_internal): Disable
410 interworking if the target does not support thumb instructions.
411 (arm_reload_in_hi): Handle the case where a register to register
412 move needs reloading because there is no simple pattern to handle
413 it.
414 (arm_reload_out_hi): Likewise.
415
416 2016-02-18 Richard Biener <rguenther@suse.de>
417
418 PR middle-end/69854
419 * match.pd: Don't use fold_binary or fold_unary for folding
420 constants.
421
422 2016-02-17 Jakub Jelinek <jakub@redhat.com>
423
424 PR c++/69850
425 * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
426 on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
427 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
428 warn on gimple_no_warning_p statements.
429
430 2016-02-17 Jonathan Wakely <jwakely@redhat.com>
431
432 * doc/extend.texi (C++ Attributes): Correct description of
433 warn_unused type attribute.
434
435 2016-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
436
437 * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
438 correct instruction.
439
440 2016-02-17 Richard Biener <rguenther@suse.de>
441
442 PR rtl-optimization/69609
443 * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
444 (find_traces_1_round): When ending a trace update cached priority
445 of successors.
446 (bb_to_key): Use cached priority when available.
447 (copy_bb): Initialize cached priority.
448 (reorder_basic_blocks_software_trace_cache): Likewise.
449
450 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
451
452 PR target/69161
453 * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
454 New predicate.
455 (aarch64_comparison_operator): Break overly long line into two.
456 (aarch64_comparison_operation): Likewise.
457 * config/aarch64/aarch64.md (cstorecc4): Use
458 aarch64_comparison_operator_mode instead of
459 aarch64_comparison_operator.
460 (cstore<mode>4): Likewise.
461 (aarch64_cstore<mode>): Likewise.
462 (*cstoresi_insn_uxtw): Likewise.
463 (cstore<mode>_neg): Likewise.
464 (*cstoresi_neg_uxtw): Likewise.
465
466 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
467
468 PR target/69161
469 * config/arm/predicates.md (arm_comparison_operator_mode):
470 New predicate.
471 * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
472 instead of arm_comparison_operator.
473 (*mov_negscc): Likewise.
474 (*mov_notscc): Likewise.
475 * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
476 (*thumb2_mov_negscc): Likewise.
477 (*thumb2_mov_negscc_strict_it): Likewise.
478 (*thumb2_mov_notscc): Likewise.
479 (*thumb2_mov_notscc_strict_it): Likewise.
480
481 2016-02-17 Wilco Dijkstra <wdijkstr@arm.com>
482
483 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
484 Add missing return.
485
486 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
487
488 * config/visium/visium.c (machine_libfunc_index): New enum.
489 (machine_libfuncs): New structure.
490 (visium_libfuncs): New static variable.
491 (TARGET_INIT_LIBFUNCS): Define to...
492 (visium_init_libfuncs): ...this. New function.
493 (expand_block_move_4): Use the appropriate libfunc.
494 (expand_block_move_2): Likewise.
495 (expand_block_move_1): Likewise.
496 (expand_block_set_4): Likewise.
497 (expand_block_set_2): Likewise.
498 (expand_block_set_1): Likewise.
499 (visium_trampoline_init): Likewise.
500
501 2016-02-17 Nick Clifton <nickc@redhat.com>
502
503 * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
504 TI's devices.csv file as of March 2016.
505
506 2016-02-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
507
508 PR Target/48344
509 * opts-global.c (handle_common_deferred_options): Introduce and
510 initialize two global variables to remember command-line options
511 specifying a stack-limiting register.
512 * opts.h: Add extern declarations of the two new global variables.
513 * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
514 variable based on the values of the two new global variables.
515
516 2016-02-16 Jakub Jelinek <jakub@redhat.com>
517
518 PR c/69835
519 * common.opt (Wnonnull-compare): New warning.
520 * doc/invoke.texi (-Wnonnull): Remove text about comparison
521 of arguments against NULL.
522 (-Wnonnull-compare): Document.
523 * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
524 * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
525 * passes.def (pass_warn_nonnull_compare): Add.
526 * gimple-ssa-nonnull-compare.c: New file.
527
528 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
529
530 * config/aarch64/aarch64.c (cortexa57_tunings): Remove
531 AARCH64_EXTRA_TUNE_RECIP_SQRT.
532
533 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
534
535 * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
536 reciprocal sqrt for -mlow-precision-recip-sqrt.
537
538 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
539 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
540
541 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
542 always use lane loads to construct non-constant vectors.
543
544 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
545
546 * config/aarch64/aarch64.md
547 (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
548 constraints for operand 3.
549 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
550
551 2016-02-16 Jakub Jelinek <jakub@redhat.com>
552 Richard Biener <rguenther@suse.de>
553
554 PR tree-optimization/69820
555 * tree-vect-patterns.c (type_conversion_p): Return false if
556 *orig_type is unsigned single precision or boolean.
557 (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
558 Formatting fix.
559
560 2016-02-16 Jakub Jelinek <jakub@redhat.com>
561
562 PR rtl-optimization/69764
563 PR rtl-optimization/69771
564 * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
565 op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
566
567 2016-02-16 Richard Biener <rguenther@suse.de>
568
569 PR tree-optimization/69776
570 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
571 sets from caller.
572 (indirect_refs_may_alias_p): Likewise.
573 (refs_may_alias_p_1): Pass alias sets as from ao_ref.
574 * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
575 according to tbaa_p.
576 * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
577 (optimize_stmt): For redundant store discovery do not allow tbaa.
578
579 2016-02-16 Bernd Schmidt <bschmidt@redhat.com>
580
581 PR tree-optimization/69714
582 * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
583 Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
584
585 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
586
587 * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
588 * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
589 (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
590 * config/arc/arc.c (arc_init): Check FPU options.
591 (get_arc_condition_code): Handle new CC_FPU* modes.
592 (arc_select_cc_mode): Likewise.
593 (arc_conditional_register_usage): Allow 64 bit datum into even-odd
594 register pair only. Allow access for ARCv2 accumulator.
595 (gen_compare_reg): Whenever we have FPU support use FPU compare
596 instructions.
597 (arc_reorg): Don't generate brcc insns when FPU compare
598 instructions are involved.
599 * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
600 (TARGET_OPTFPE): Add condition when ARC EM can use optimized
601 floating point emulation.
602 (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
603 (REVERSE_CONDITION): Add new CC_FPU* modes.
604 (TARGET_FP_SP_BASE): Define.
605 (TARGET_FP_DP_BASE): Likewise.
606 (TARGET_FP_SP_FUSED): Likewise.
607 (TARGET_FP_DP_FUSED): Likewise.
608 (TARGET_FP_SP_CONV): Likewise.
609 (TARGET_FP_DP_CONV): Likewise.
610 (TARGET_FP_SP_SQRT): Likewise.
611 (TARGET_FP_DP_SQRT): Likewise.
612 (TARGET_FP_DP_AX): Likewise.
613 * config/arc/arc.md (ARCV2_ACC): New constant.
614 (type): New fpu type attribute.
615 (SDF): Conditional iterator.
616 (cstore<mode>, cbranch<mode>): Change expand condition.
617 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
618 handles FPU/FPX cases as well.
619 * config/arc/arc.opt (mfpu): New option.
620 * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
621 Renamed.
622 (adddf3, muldf3, subdf3): Removed.
623 * config/arc/predicates.md (proper_comparison_operator): Recognize
624 CC_FPU* modes.
625 * config/arc/fpu.md: New file.
626 * doc/invoke.texi (ARC Options): Document mfpu option.
627
628 2016-02-16 Richard Biener <rguenther@suse.de>
629
630 PR rtl-optimization/69291
631 * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
632 noce_operand_ok check.
633
634 2016-02-16 Tom de Vries <tom@codesourcery.com>
635
636 PR lto/67709
637 * omp-low.c (simd_clone_create): Remove call to
638 symtab->call_cgraph_insertion_hooks.
639
640 2016-02-16 Jakub Jelinek <jakub@redhat.com>
641
642 PR tree-optimization/69802
643 * tree-ssa-reassoc.c (update_range_test): If op is
644 SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
645 op == 1 test of precision 1 integral op, otherwise handle
646 that case as op itself. Fix up formatting.
647 (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
648 up formatting.
649
650 2016-02-16 Richard Biener <rguenther@suse.de>
651
652 PR tree-optimization/69586
653 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
654 types for conversion sources.
655
656 2016-02-16 Richard Biener <rguenther@suse.de>
657
658 PR middle-end/69801
659 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
660 mask OEP_ADDRESS_OF.
661
662 2016-02-16 Alan Modra <amodra@gmail.com>
663
664 PR target/68973
665 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
666 (p8_mtvsrd_df, p8_mtvsrd_sf): New.
667 (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
668 (p8_mtvsrwz): New.
669 (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
670 (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
671 (p8_fmrgow_<mode>): Likewise.
672 (reload_vsx_from_gpr<mode>): Make clobber IF. Adjust for above
673 changes.
674 (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
675 (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
676 to use movdi_internal64. Remove op0_di.
677 * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
678
679 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
680
681 Add support for the FCCMP insn types
682
683 * config/aarch64/aarch64.md (fccmp): Change insn type.
684 (fccmpe): Likewise.
685 * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
686 * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
687 * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
688 * config/arm/xgene1.md (xgene1_fcmp): Likewise.
689 * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
690 * config/arm/types.md (fccmps): Add new insn type.
691 (fccmpd): Likewise.
692
693 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
694
695 * alias.c (get_alias_set): Fix a typo in comment.
696
697 2016-02-15 Richard Biener <rguenther@suse.de>
698
699 PR tree-optimization/69595
700 * match.pd: Complete range test simplification to true.
701
702 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
703
704 PR rtl-optimization/69648
705 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
706 pic_offset_table_rtx.
707
708 PR rtl-optimization/69752
709 * ira.c (update_equiv_regs): When looking for more than a single SET,
710 also take other side effects into account.
711
712 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
713
714 * config/s390/s390.c (s390_function_profiler): Add a new sequence
715 for z900+ CPUs in 31-bit mode.
716
717 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
718
719 * common/config/s390/s390-common.c (s390_supports_split_stack):
720 New function.
721 (TARGET_SUPPORTS_SPLIT_STACK): New macro.
722 * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
723 * config/s390/s390.c (struct machine_function): New field
724 split_stack_varargs_pointer.
725 (s390_register_info): Mark r12 as clobbered if it'll be used as temp
726 in s390_emit_prologue.
727 (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
728 vararg pointer.
729 (morestack_ref): New global.
730 (SPLIT_STACK_AVAILABLE): New macro.
731 (s390_expand_split_stack_prologue): New function.
732 (s390_live_on_entry): New function.
733 (s390_va_start): Use split-stack vararg pointer if appropriate.
734 (s390_asm_file_end): Emit the split-stack note sections.
735 (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
736 * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
737 (UNSPECV_SPLIT_STACK_CALL): New unspec.
738 (UNSPECV_SPLIT_STACK_DATA): New unspec.
739 (split_stack_prologue): New expand.
740 (split_stack_space_check): New expand.
741 (split_stack_data): New insn.
742 (split_stack_call): New expand.
743 (split_stack_call_*): New insn.
744 (split_stack_cond_call): New expand.
745 (split_stack_cond_call_*): New insn.
746
747 2016-02-15 Richard Biener <rguenther@suse.de>
748
749 PR tree-optimization/69783
750 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
751 Add trivially correct cases.
752
753 2016-02-15 Tom de Vries <tom@codesourcery.com>
754
755 PR lto/69655
756 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
757 do_force_output.
758 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
759
760 2016-02-15 Richard Biener <rguenther@suse.de>
761
762 PR tree-optimization/69776
763 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
764 * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
765 indicate whether we can use TBAA to disambiguate against stores.
766 Use alias-set zero if not.
767 (visit_reference_op_store): Do not use TBAA when looking up
768 redundant stores.
769 * tree-ssa-pre.c (compute_avail): Use TBAA here.
770 (eliminate_dom_walker::before_dom_children): But not when looking
771 up redundant stores.
772
773 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
774
775 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
776
777 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
778
779 * config/i386/znver1.md
780 (znver1_pop, znver1_pop_mem,
781 znver1_load_imov_double_store,
782 znver1_load_imov_direct_store,
783 znver1_load_imov_direct_load,
784 znver1_load_imov_double_load): Add new.
785 (znver1_insn, znver1_insn_load): Add icmov type.
786 (znver1_sseavx_fma,
787 znver1_sseavx_fma_load,
788 znver1_avx256_fma,
789 znver1_avx256_fma_load): Fix pipe usage.
790
791 2016-02-14 Alan Modra <amodra@gmail.com>
792
793 PR target/68973
794 * reloads.c (find_reloads_address_1): For pre/post-inc/dec
795 with an invalid hard reg, reload just the reg not the entire
796 pre/post-inc/dec address expression.
797
798 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
799
800 PR target/67260
801 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
802 fixed R1_REG scratch reg.
803 (sibcall_value_pcrel_fdpic): Likewise.
804
805 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
806
807 PR target/67636
808 PR target/64345
809 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
810
811 2016-02-12 Walter Lee <walt@tilera.com>
812
813 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
814 * config/tilegx/t-tilegx: Likewise.
815
816 2016-02-12 David Malcolm <dmalcolm@redhat.com>
817
818 PR other/69554
819 * diagnostic-show-locus.c (struct line_span): New struct.
820 (layout::get_first_line): Delete.
821 (layout::get_last_line): Delete.
822 (layout::get_num_line_spans): New member function.
823 (layout::get_line_span): Likewise.
824 (layout::print_heading_for_line_span_index_p): Likewise.
825 (layout::get_expanded_location): Likewise.
826 (layout::calculate_line_spans): Likewise.
827 (layout::m_first_line): Delete.
828 (layout::m_last_line): Delete.
829 (layout::m_line_spans): New field.
830 (layout::layout): Update comment. Replace m_first_line and
831 m_last_line with m_line_spans, replacing their initialization
832 with a call to calculate_line_spans.
833 (diagnostic_show_locus): When printing source lines and
834 annotations, rather than looping over a single span
835 of lines, instead loop over each line_span within
836 the layout, with an inner loop over the lines within them.
837 Call the context's start_span callback when changing line spans.
838 * diagnostic.c (diagnostic_initialize): Initialize start_span.
839 (diagnostic_build_prefix): Break out the building of the location
840 part of the string into...
841 (diagnostic_get_location_text): ...this new function, rewriting
842 it from nested ternary expressions to a sequence of "if"
843 statements.
844 (default_diagnostic_start_span_fn): New function.
845 * diagnostic.h (diagnostic_start_span_fn): New typedef.
846 (diagnostic_context::start_span): New field.
847 (default_diagnostic_start_span_fn): New prototype.
848
849 2016-02-12 David Malcolm <dmalcolm@redhat.com>
850
851 PR driver/69779
852 * gcc.c (driver::finalize): Fix cleanup of "specs".
853
854 2016-02-12 David Malcolm <dmalcolm@redhat.com>
855
856 PR driver/69265
857 PR driver/69453
858 * gcc.c (driver::driver): Initialize m_option_suggestions.
859 (driver::~driver): Clean up m_option_suggestions.
860 (suggest_option): Convert to...
861 (driver::suggest_option): ...this, and split out into
862 driver::build_option_suggestions and find_closest_string.
863 (driver::build_option_suggestions): New function, from
864 first half of suggest_option. Special-case
865 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
866 the sanitizer_opts array. For options of enum types, add the
867 various enum values to the candidate strings.
868 (driver::handle_unrecognized_options): Remove "const".
869 * gcc.h (driver::handle_unrecognized_options): Likewise.
870 (driver::build_option_suggestions): New decl.
871 (driver::suggest_option): New decl.
872 (driver::m_option_suggestions): New field.
873 * opts-common.c (add_misspelling_candidates): New function.
874 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
875 and make non-static.
876 * opts.h (sanitizer_opts): New array decl.
877 (add_misspelling_candidates): New function decl.
878 * spellcheck.c (find_closest_string): New function.
879 * spellcheck.h (find_closest_string): New function decl.
880
881 2016-02-12 Jakub Jelinek <jakub@redhat.com>
882
883 PR rtl-optimization/69764
884 PR rtl-optimization/69771
885 * optabs.c (expand_binop_directly): For shift_optab_p, force
886 convert_modes with VOIDmode if xop1 has VOIDmode.
887
888 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
889
890 PR target/69729
891 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
892 to correctly determine instrumentation thunks.
893
894 2016-02-12 Jakub Jelinek <jakub@redhat.com>
895
896 PR ipa/69241
897 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
898 type by reference, force lhs on the call.
899
900 PR ipa/68672
901 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
902 Compute retval and retbnd early in all cases if split_part_return_p
903 and return_bb is not EXIT. Remove all clobber stmts and reset
904 all debug stmts that refer to SSA_NAMEs defined in split part,
905 except if it is retval, in that case replace the old retval with the
906 lhs of the call to the split part.
907
908 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
909
910 revert:
911 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
912
913 PR middle-end/66726
914 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
915 whose result is used in PHI.
916 (maybe_optimize_range_tests): Likewise.
917 (final_range_test_p): Likweise.
918
919 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
920
921 PR middle-end/66726
922 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
923 whose result is used in PHI.
924 (maybe_optimize_range_tests): Likewise.
925 (final_range_test_p): Likweise.
926
927 2016-02-12 Jakub Jelinek <jakub@redhat.com>
928
929 * cgraph.c: Spelling fixes - behaviour -> behavior and
930 neighbour -> neighbor.
931 * target.def: Likewise.
932 * sel-sched.c: Likewise.
933 * config/mips/mips.c: Likewise.
934 * config/arc/arc.md: Likewise.
935 * config/arm/cortex-a57.md: Likewise.
936 * config/arm/arm.c: Likewise.
937 * config/arm/neon.md: Likewise.
938 * config/arm/arm-c.c: Likewise.
939 * config/vms/vms-c.c: Likewise.
940 * config/s390/s390.c: Likewise.
941 * config/i386/znver1.md: Likewise.
942 * config/i386/i386.c: Likewise.
943 * config/ia64/hpux-unix2003.h: Likewise.
944 * config/msp430/msp430.md: Likewise.
945 * config/rx/rx.c: Likewise.
946 * config/rx/rx.md: Likewise.
947 * config/aarch64/aarch64-simd.md: Likewise.
948 * config/aarch64/aarch64.c: Likewise.
949 * config/nvptx/nvptx.c: Likewise.
950 * config/bfin/bfin.c: Likewise.
951 * config/cris/cris.opt: Likewise.
952 * config/rs6000/rs6000.c: Likewise.
953 * target.h: Likewise.
954 * spellcheck.c: Likewise.
955 * ira-build.c: Likewise.
956 * tree-inline.c: Likewise.
957 * builtins.c: Likewise.
958 * lra-constraints.c: Likewise.
959 * explow.c: Likewise.
960 * hwint.h: Likewise.
961 * targhooks.c: Likewise.
962 * tree-vect-data-refs.c: Likewise.
963 * expr.c: Likewise.
964 * doc/tm.texi: Likewise.
965 * doc/extend.texi: Likewise.
966 * doc/install.texi: Likewise.
967 * doc/md.texi: Likewise.
968 * tree-ssa-tail-merge.c: Likewise.
969 * sched-int.h: Likewise.
970 * match.pd: Likewise.
971 * sched-ebb.c: Likewise.
972 * target.def (omit_struct_return_reg): Likewise.
973 * gimple-ssa-isolate-paths.c: Likewise.
974 (find_implicit_erroneous_behaviour): Renamed to...
975 (find_implicit_erroneous_behavior): ... this.
976 (find_explicit_erroneous_behaviour): Renamed to...
977 (find_explicit_erroneous_behavior): ... this.
978 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
979
980 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
981
982 PR rtl-optimization/64682
983 PR rtl-optimization/69567
984 PR rtl-optimization/69737
985 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
986 in I2 as well, just lose it.
987
988 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
989
990 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
991 New variable.
992 (aarch64_last_printed_tune_string): Likewise.
993 (aarch64_declare_function_name): Only output .arch assembler
994 directive if it will be different from the previously output
995 directive. Same for .tune comment but only if -dA is set.
996 (aarch64_start_file): New function.
997 (TARGET_ASM_FILE_START): Define.
998
999 2016-02-11 David Malcolm <dmalcolm@redhat.com>
1000
1001 PR plugins/69758
1002 * Makefile.in (PLUGIN_HEADERS): Add params.list.
1003
1004 2016-02-11 Jakub Jelinek <jakub@redhat.com>
1005
1006 PR target/65313
1007 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
1008 -Wmaybe-uninitialized warning.
1009
1010 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
1011
1012 PR target/69713
1013 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
1014
1015 2016-02-11 Richard Biener <rguenther@suse.de>
1016
1017 PR rtl-optimization/69291
1018 * ifcvt.c (noce_try_store_flag_constants): Do not allow
1019 subexpressions affected by changing the result.
1020
1021 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
1022
1023 PR target/69148
1024 * lra-constraints.c (curr_insn_transform): Find in/out operands
1025 for secondary memory moves. Update dups.
1026
1027 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
1028
1029 PR tree-optimization/69652
1030 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
1031 to nested loop, did source re-formatting, skip debug statements,
1032 add check on statement with volatile operand, remove dead scalar
1033 statements.
1034
1035 2016-02-10 Jakub Jelinek <jakub@redhat.com>
1036 Patrick Palka <ppalka@gcc.gnu.org>
1037
1038 PR ipa/69241
1039 PR c++/69649
1040 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
1041 calls if the return type is TREE_ADDRESSABLE.
1042 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
1043 * ipa-split.c (split_function): Fix doubled "we" in comment.
1044 Use void return type for the split part even if
1045 !split_point->split_part_set_retval.
1046
1047 2016-02-10 Bin Cheng <bin.cheng@arm.com>
1048
1049 PR tree-optimization/68021
1050 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
1051 when computing the value of biv cand by itself.
1052
1053 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
1054
1055 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
1056 (cortexa57_tunings): Likewise.
1057 (cortexa72_tunings): Likewise.
1058 (arch_macro_fusion_pair_p): Add support for AES fusion.
1059 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
1060 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
1061 Allow virtual registers before reload so early scheduling works.
1062 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
1063 correct latency and pipeline.
1064 (cortex_a57_crypto_complex): Likewise.
1065 (cortex_a57_crypto_xor): Likewise.
1066 (define_bypass): Add AES bypass.
1067
1068 2016-02-10 Richard Biener <rguenther@suse.de>
1069
1070 PR tree-optimization/69726
1071 * passes.def: Add DCE pass before late uninit.
1072 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
1073 really fixup if-conversions job.
1074
1075 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
1076
1077 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
1078 (arm_cortex_a57_tune): Likewise.
1079 (aarch_macro_fusion_pair_p): Add support for AES fusion.
1080 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
1081
1082 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
1083
1084 * timevar.def (TV_PHASE_DBGINFO): Delete.
1085 (TV_PHASE_CHECK_DBGINFO): Likewise.
1086 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
1087
1088 2016-02-10 Richard Biener <rguenther@suse.de>
1089
1090 PR tree-optimization/69719
1091 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
1092 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
1093
1094 2016-02-09 Andrew Pinski <apinski@cavium.com>
1095
1096 PR tree-opt/69282
1097 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
1098 get_vcond_mask_icode returns false.
1099
1100 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
1101
1102 PR target/68404
1103 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
1104 an ADDIS that adds a pointer to a large constant that sets the
1105 upper16 bits with a load operation.
1106
1107 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
1108
1109 PR target/68532
1110 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
1111 order.
1112 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
1113 endian.
1114 (vzipq_s16): Likewise.
1115 (vzipq_s32): Likewise.
1116 (vzipq_f32): Likewise.
1117 (vzipq_u8): Likewise.
1118 (vzipq_u16): Likewise.
1119 (vzipq_u32): Likewise.
1120 (vzipq_p8): Likewise.
1121 (vzipq_p16): Likewise.
1122
1123 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
1124
1125 PR target/68532
1126 * config/arm/arm.c (neon_endian_lane_map): New function.
1127 (neon_vector_pair_endian_lane_map): New function.
1128 (arm_evpc_neon_vuzp): Allow for big endian lane order.
1129 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
1130 endian.
1131 (vuzpq_s16): Likewise.
1132 (vuzpq_s32): Likewise.
1133 (vuzpq_f32): Likewise.
1134 (vuzpq_u8): Likewise.
1135 (vuzpq_u16): Likewise.
1136 (vuzpq_u32): Likewise.
1137 (vuzpq_p8): Likewise.
1138 (vuzpq_p16): Likewise.
1139
1140 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
1141
1142 PR target/69634
1143 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
1144 debug insns.
1145
1146 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
1147
1148 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
1149 truncate const_int operand 1 to QImode.
1150
1151 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
1152
1153 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
1154 corresponding to an abnormal edge.
1155
1156 2016-02-09 Tom de Vries <tom@codesourcery.com>
1157
1158 PR tree-optimization/69599
1159 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
1160 function.
1161 (find_func_aliases_for_builtin_call, find_func_clobbers)
1162 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
1163 partition.
1164
1165 2016-02-09 Richard Biener <rguenther@suse.de>
1166
1167 PR tree-optimization/69715
1168 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
1169 LHS on calls as non-rewritable.
1170
1171 2016-02-09 Tom de Vries <tom@codesourcery.com>
1172
1173 PR lto/69707
1174 * lto-wrapper.c (append_diag_options): New function.
1175 (compile_offload_image): Call append_diag_options.
1176
1177 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
1178
1179 PR other/69722
1180 * doc/extend.texi (Flag Output Operands): Correct sectioning.
1181 Minor copy-edit to fix verb tenses.
1182
1183 2016-02-08 Jakub Jelinek <jakub@redhat.com>
1184
1185 PR tree-optimization/69209
1186 * ipa-split.c (split_function): If split part is not
1187 returning retval, retval has gimple type but is not
1188 gimple value, force it into a SSA_NAME first.
1189
1190 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
1191
1192 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
1193 outdated section.
1194
1195 2016-02-08 Jason Merrill <jason@redhat.com>
1196
1197 PR c++/69631
1198 * convert.c (convert_to_integer_1): Check dofold on truncation
1199 distribution.
1200 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
1201 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
1202 Rename from *_nofold.
1203 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
1204 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
1205
1206 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
1207
1208 PR target/60410
1209 * tree.c (build_common_tree_nodes): Remove short_double argument.
1210 All callers changed.
1211 * tree.h (build_common_tree_nodes): Adjust declaration.
1212 * doc/invoke.texi (-fshort-double): Remove documentation.
1213 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
1214 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
1215 * lto-wrapper.c (merge_and_complain, append_compiler_options)
1216 (append_linker_options): Don't handle OPT_fshort_double.
1217
1218 PR rtl-optimization/68730
1219 * lra-remat.c (insn_to_cand_activation): New static variable.
1220 (lra_remat): Allocate and free it.
1221 (create_cand): New arg activation. Initialize a field in
1222 insn_to_cand_activation if it is nonnull.
1223 (create_cands): Pass the activation insn to create_cand when making
1224 a candidate involving an output reload. Reorganize code a little.
1225 (do_remat): Keep track of active status of candidates in a separate
1226 bitmap.
1227
1228 2016-02-08 Richard Biener <rguenther@suse.de>
1229
1230 PR tree-optimization/69719
1231 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
1232 Properly use absolute of the difference of the two offsets to
1233 compare or adjust the segment length.
1234
1235 2016-02-08 Richard Biener <rguenther@suse.de>
1236 Jeff Law <law@redhat.com>
1237
1238 PR target/68273
1239 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
1240 types for anonymous SSA names.
1241
1242 2016-02-08 Richard Biener <rguenther@suse.de>
1243
1244 PR rtl-optimization/69274
1245 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
1246
1247 2016-02-08 Jeff Law <law@redhat.com>
1248
1249 PR tree-optimization/65917
1250 * tree-ssa-dom.c (record_temporary_equivalences): Record both
1251 equivalences from if (x == y) style conditionals.
1252 (loop_depth_of_name): Remove.
1253 (record_equality): Remove loop depth check.
1254 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
1255 (const_and_copies::record_const_or_copy_raw): New member function.
1256 * tree-ssa-scopedtables.c
1257 (const_and_copies::record_const_or_copy_raw): New, factored out of
1258 (const_and_copies::record_const_or_copy): Call new member function.
1259
1260 2016-02-05 Jeff Law <law@redhat.com>
1261
1262 PR tree-optimization/68541
1263 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
1264 (count_stmts_in_block): New function.
1265 (poor_ifcvt_candidate_code): Likewise.
1266 (is_feasible_trace): Add some heuristics to determine when path
1267 splitting is profitable.
1268 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
1269 is a diamond with a single exit.
1270
1271 2016-02-05 Martin Sebor <msebor@redhat.com>
1272
1273 PR c++/69662
1274 * doc/invoke.texi: Update -Wplacement-new to take an optional
1275 argument.
1276
1277 2016-02-06 Richard Henderson <rth@redhat.com>
1278
1279 PR c/69643
1280 * tree.c (tree_nop_conversion_p): Do not strip casts into or
1281 out of non-standard address spaces.
1282
1283 2016-02-05 Jakub Jelinek <jakub@redhat.com>
1284
1285 PR rtl-optimization/69691
1286 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
1287
1288 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
1289
1290 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
1291 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
1292 (*ieee128_mfvsrd_64bit): Likewise.
1293 (*ieee128_mfvsrd_32bit): Likewise.
1294
1295 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
1296
1297 PR target/69369
1298 Revert r232560:
1299 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
1300
1301 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
1302 instrumented_version.
1303
1304 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
1305
1306 * doc/invoke.texi (Optimize Options): In table of --param options
1307 rename second occurrence of tracer-min-branch-ratio to
1308 tracer-min-branch-probability, rename
1309 tracer-min-branch-ratio-feedback to
1310 tracer-min-branch-probability-feedback and clarify description,
1311 rename sched-spec-state-edge-prob-cutoff to
1312 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
1313 to selsched-insns-to-rename, rename lto-minpartition to
1314 lto-min-partition, delete reorder-blocks-duplicate and
1315 reorder-blocks-duplicate-feedback.
1316
1317 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1318
1319 * config/s390/s390.c (s390_register_info_set_ranges): Remove
1320 superfluous loops.
1321
1322 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
1323
1324 * doc/extend.texi: S/390: Correct some typos.
1325
1326 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1327
1328 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
1329
1330 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1331
1332 PR target/69625
1333 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
1334 (s390_register_info_gprtofpr): Use new macros above.
1335 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
1336 its name.
1337 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
1338 its name. Adjust restore and save gpr ranges.
1339 (s390_register_info_set_ranges): New function.
1340 (s390_register_info): Use new macros above. Call
1341 s390_register_info_set_ranges.
1342 (s390_optimize_register_info): Likewise.
1343 (s390_hard_regno_rename_ok): Use new macros.
1344 (s390_hard_regno_scratch_ok): Likewise.
1345 (s390_emit_epilogue): Likewise.
1346 (s390_can_use_return_insn): Likewise.
1347 (s390_optimize_prologue): Likewise.
1348 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
1349
1350 2016-02-05 Jakub Jelinek <jakub@redhat.com>
1351
1352 PR bootstrap/69677
1353 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
1354 alignment fixes.
1355 (ix86_option_override_internal): Disable TARGET_STV even for
1356 -m{incoming,preferred}-stack-boundary=3.
1357
1358 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1359
1360 * config.gcc: Mark deprecated rtems targets as obsolete.
1361
1362 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
1363
1364 PR rtl-optimization/64682
1365 PR rtl-optimization/69567
1366 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
1367 before I2 only if the register is both used and set in I2.
1368
1369 2016-02-04 DJ Delorie <dj@redhat.com>
1370
1371 * config/msp430/msp430.c (msp430_start_function): Add function type.
1372
1373 2016-02-04 Jakub Jelinek <jakub@redhat.com>
1374
1375 PR fortran/69368
1376 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
1377
1378 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
1379
1380 PR rtl-optimization/69577
1381 Revert:
1382 2015-10-29 Richard Henderson <rth@redhat.com>
1383
1384 PR target/68124
1385 PR rtl-opt/67609
1386 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
1387 sse check to the exact conditions of PR 67609.
1388
1389 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
1390
1391 PR target/69667
1392 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
1393 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
1394 not allowed into the traditional Altivec registers.
1395 (movtd_64bit_nodm): Likewise.
1396 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
1397
1398 2016-02-04 David Malcolm <dmalcolm@redhat.com>
1399
1400 * config/aarch64/cortex-a57-fma-steering.c
1401 (aarch64_register_fma_steering): Remove "static" from arguments
1402 to register_pass.
1403
1404 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
1405
1406 PR target/69619
1407 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
1408 twice when complex.
1409
1410 2016-02-04 Mike Frysinger <vapier@gentoo.org>
1411
1412 * doc/invoke.texi: Delete -mno-fma4.
1413
1414 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
1415
1416 PR rtl-optimization/69577
1417 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
1418 (find_subregs_of_mode): Update accordingly. Iterate over partial
1419 definitions.
1420
1421 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
1422
1423 * config/arm/arm-protos.h (neon_reinterpret): Remove.
1424 * config/arm/arm.c (neon_reinterpret): Remove.
1425 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
1426 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
1427 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
1428 vreinterpretti): Remove.
1429 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
1430 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
1431 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
1432 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
1433 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
1434 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
1435 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
1436 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
1437 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
1438 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
1439 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
1440 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
1441 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
1442 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
1443 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
1444 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
1445 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
1446 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
1447 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
1448 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
1449 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
1450 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
1451 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
1452 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
1453 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
1454 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
1455 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
1456 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
1457 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
1458 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
1459 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
1460 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
1461 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
1462 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
1463 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
1464 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
1465 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
1466 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
1467 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
1468 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
1469 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
1470 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
1471 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
1472 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
1473 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
1474 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
1475 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
1476 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
1477 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
1478 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
1479 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
1480 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
1481 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
1482 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
1483 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
1484 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
1485 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
1486 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
1487 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
1488 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
1489 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
1490 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
1491 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
1492 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
1493 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
1494 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
1495 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
1496 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
1497 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
1498 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
1499 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
1500 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
1501 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
1502 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
1503 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
1504 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
1505 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
1506 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
1507 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
1508 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
1509 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
1510 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
1511 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
1512 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
1513 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
1514 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
1515 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
1516 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
1517 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
1518 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
1519 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
1520 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
1521 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
1522 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
1523 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
1524 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
1525 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
1526 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
1527 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
1528 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
1529 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
1530 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
1531 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
1532
1533 2016-02-04 Martin Liska <mliska@suse.cz>
1534
1535 PR sanitizer/69276
1536 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
1537 that are gimple_store_p.
1538 (maybe_instrument_call): Likewise.
1539
1540 2016-02-04 Bin Cheng <bin.cheng@arm.com>
1541
1542 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
1543 register scaling out of memory reference and comment why.
1544
1545 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1546
1547 PR target/65932
1548 PR target/67714
1549 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
1550 folding the source of a SET.
1551
1552 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1553
1554 PR target/65932
1555 PR target/67714
1556 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
1557 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
1558
1559 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
1560
1561 PR target/65932
1562 PR target/67714
1563 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
1564 HImode.
1565
1566 2016-02-04 Christian Bruel <christian.bruel@st.com>
1567
1568 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
1569 * config/arm/arm.c (arm_set_current_function): Likewise.
1570
1571 2016-02-04 Jakub Jelinek <jakub@redhat.com>
1572 Ilya Enkovich <enkovich.gnu@gmail.com>
1573 H.J. Lu <hongjiu.lu@intel.com>
1574
1575 PR target/69454
1576 * config/i386/i386.c (convert_scalars_to_vector): Remove
1577 stack alignment fixes.
1578 (ix86_option_override_internal): Disable TARGET_STV if stack
1579 might not be aligned enough.
1580 (ix86_minimum_alignment): Assert that TARGET_STV is false.
1581
1582 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
1583
1584 * gcc/config/i386/x86-tune.def: Disable default prefetching
1585 for -march=znver1.
1586
1587 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
1588 Vladimir Makarov <vmakarov@redhat.com>
1589
1590 PR target/69461
1591 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
1592 in validating fused toc addresses.
1593
1594 2016-02-03 Jakub Jelinek <jakub@redhat.com>
1595
1596 PR c/69627
1597 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
1598 range->m_caret fields if range->m_show_caret_p is false.
1599
1600 PR target/69644
1601 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
1602 Force oldval into register if it does not satisfy reg_or_short_operand
1603 predicate. Fix up formatting.
1604
1605 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
1606 Alexandre Oliva <aoliva@redhat.com>
1607
1608 PR target/69461
1609 * lra-constraints.c (simplify_operand_subreg): Check additionally
1610 address validity after potential reloading.
1611 (process_address_1): Check insns validity. In case of failure do
1612 nothing.
1613
1614 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
1615
1616 PR target/69118
1617 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
1618 Fix target.
1619
1620 2016-02-02 Jakub Jelinek <jakub@redhat.com>
1621
1622 * wide-int.cc (canonize_uhwi): New function.
1623 (wi::divmod_internal): Use it.
1624
1625 2016-02-02 James Norris <jnorris@codesourcery.com
1626
1627 * gimplify.c (omp_notice_variable): Add usage check.
1628
1629 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
1630
1631 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
1632 like LE, GE, LT, GT when emitting relational operator.
1633
1634 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
1635
1636 * ira-costs.c (find_costs_and_classes): Add extra argument.
1637 * target.def (ira_change_pseudo_allocno_class): Add parameter.
1638 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
1639 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
1640 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
1641 Add best_class parameter, and return it if not ALL_REGS.
1642 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
1643 Add parameter.
1644 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
1645 Update target hook.
1646
1647 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
1648
1649 * config/aarch64/aarch64.c
1650 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
1651 (aarch64_ira_change_pseudo_allocno_class): New function.
1652
1653 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
1654
1655 PR target/67032
1656 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
1657
1658 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1659
1660 * config/avr/avr.c (avr_option_override): Set
1661 PARAM_ALLOW_STORE_DATA_RACES to 1.
1662
1663 2016-02-02 Richard Biener <rguenther@suse.de>
1664
1665 PR tree-optimization/69595
1666 * match.pd: Add range test simplifications to true/false.
1667
1668 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
1669
1670 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
1671 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
1672 instead.
1673
1674 2016-02-02 Richard Biener <rguenther@suse.de>
1675
1676 PR tree-optimization/69606
1677 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
1678 info on the result before moving a stmt.
1679
1680 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
1681
1682 PR middle-end/68542
1683 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
1684 branch with vector comparison.
1685 * config/i386/sse.md (VI48_AVX): New mode iterator.
1686 (define_expand "cbranch<mode>4): Add support for conditional branch
1687 with vector comparison.
1688 * tree-vect-loop.c (optimize_mask_stores): New function.
1689 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
1690 has_mask_store field of vect_info.
1691 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
1692 vectorized loops having masked stores after vec_info destroy.
1693 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
1694 correspondent macros.
1695 (optimize_mask_stores): Add prototype.
1696
1697 2016-02-02 Alan Modra <amodra@gmail.com>
1698
1699 PR target/69548
1700 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
1701 allow subregs.
1702
1703 2016-02-02 Alan Modra <amodra@gmail.com>
1704
1705 PR target/68662
1706 * config/rs6000/rs6000.c (need_toc_init): New var, set it
1707 whenever toc_label_name used.
1708 (rs6000_file_start): Don't set up toc section here,
1709 (rs6000_output_function_epilogue): do so here instead,
1710 (rs6000_xcoff_file_start): and here.
1711 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
1712 (load_toc_aix_di): Likewise.
1713
1714 2016-02-01 Jakub Jelinek <jakub@redhat.com>
1715
1716 PR rtl-optimization/69592
1717 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
1718 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
1719 (num_sign_bit_copies_binary_arith_p): New inline function.
1720 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
1721
1722 2016-02-01 Jeff Law <law@redhat.com>
1723
1724 PR tree-optimization/69580
1725 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
1726 * tree-ssa-threadbackward.c
1727 (fsm_find_control_statement_thread_paths): Do not try to walk
1728 through large PHI nodes.
1729
1730 2016-02-01 Jakub Jelinek <jakub@redhat.com>
1731
1732 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
1733 when count is incremented above limit, don't analyze further
1734 insns afterwards.
1735
1736 * omp-low.c (oacc_parse_default_dims): Avoid
1737 -Wsign-compare warning, make sure value fits into int
1738 rather than just unsigned int.
1739
1740 2016-02-01 Bin Cheng <bin.cheng@arm.com>
1741
1742 PR tree-optimization/67921
1743 * fold-const.c (split_tree): New parameters. Convert pointer
1744 type variable part to proper type before negating.
1745 (fold_binary_loc): Pass new arguments to split_tree.
1746
1747 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
1748
1749 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
1750 (nvptx_goacc_validate_dims): Extend to handle global defaults.
1751 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
1752 * doc/tm.texti: Rebuilt.
1753 * doc/invoke.texi (fopenacc-dim): Document.
1754 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
1755 (append_compiler_options): Likewise.
1756 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
1757 (oacc_parse_default_dims): New.
1758 (oacc_validate_dims): Add USED arg. Select non-unity default when
1759 possible.
1760 (oacc_loop_fixed_partitions): Return mask of used partitions.
1761 (oacc_loop_auto_partitions): Emit dump info.
1762 (oacc_loop_partition): Return mask of used partitions.
1763 (execute_oacc_device_lower): Parse default dimension arg. Adjust
1764 loop partitioning and validation calls.
1765
1766 2016-02-01 Richard Biener <rguenther@suse.de>
1767
1768 PR middle-end/69556
1769 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
1770
1771 2016-02-01 Richard Biener <rguenther@suse.de>
1772
1773 PR tree-optimization/69574
1774 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
1775 of asserting return chrec_dont_know.
1776
1777 2016-02-01 Martin Liska <mliska@suse.cz>
1778
1779 * mem-stats-traits.h: Add copyright header.
1780 * mem-stats.h: Likewise.
1781
1782 2016-02-01 Richard Biener <rguenther@suse.de>
1783
1784 PR tree-optimization/69579
1785 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
1786 Do not propagate through abnormal PHI results.
1787
1788 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
1789
1790 * postreload.c (reload_cse_simplify): Remove dead code.
1791
1792 2016-02-01 Jakub Jelinek <jakub@redhat.com>
1793
1794 PR rtl-optimization/69570
1795 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
1796 if there is more than one set, not if there is a single set.
1797
1798 2016-02-01 Richard Henderson <rth@redhat.com>
1799
1800 PR rtl-opt/69535
1801 * combine.c (make_compound_operation): When looking through a
1802 subreg, make sure to re-extend to the width of the outer mode.
1803
1804 2016-01-30 Jakub Jelinek <jakub@redhat.com>
1805
1806 PR tree-optimization/69546
1807 * wide-int.cc (wi::divmod_internal): For unsigned division
1808 where both operands fit into uhwi, if o1 is 1 and o0 has
1809 msb set, if divident_prec is larger than bits per hwi,
1810 clear another quotient word and return 2 instead of 1.
1811 Similarly for remainder with msb in HWI set, if dividend_prec
1812 is larger than bits per hwi.
1813
1814 2016-01-29 Martin Jambor <mjambor@suse.cz>
1815
1816 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
1817 Use short lowercase names.
1818 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
1819 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
1820 acq_rel one. Protect warning agains segfaults if
1821 get_memory_order_name returns NULL.
1822 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
1823 with release semantics. Do not warn if get_memory_order already did.
1824 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
1825 semantics. Fix check for relaxed or acquire semantics. Do not warn
1826 if get_memory_order already did.
1827
1828 2016-01-29 Sebastian Pop <s.pop@samsung.com>
1829
1830 * doc/install.texi: Document that isl-0.16 is supported.
1831
1832 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
1833
1834 PR target/69299
1835 * config/i386/constraints.md (Bm): Describe as special memory
1836 constraint.
1837 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
1838 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
1839 * genpreds.c (struct constraint_data): Add is_special_memory.
1840 (have_special_memory_constraints, special_memory_start): New
1841 static vars.
1842 (special_memory_end): Ditto.
1843 (add_constraint): Add new arg is_special_memory. Add code to
1844 process its true value. Update have_special_memory_constraints.
1845 (process_define_constraint): Pass the new arg.
1846 (process_define_register_constraint): Ditto.
1847 (choose_enum_order): Process special memory.
1848 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
1849 function insn_extra_special_memory_constraint.
1850 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
1851 * gensupport.c (process_rtx): Process
1852 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
1853 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
1854 * ira-lives.c (single_reg_class): Use
1855 insn_extra_special_memory_constraint.
1856 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
1857 * lra-constraints.c (process_alt_operands): Ditto.
1858 (curr_insn_transform): Use insn_extra_special_memory_constraint.
1859 * recog.c (asm_operand_ok, preprocess_constraints): Process
1860 CT_SPECIAL_MEMORY.
1861 * reload.c (find_reloads): Ditto.
1862 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
1863 * stmt.c (parse_input_constraint): Use
1864 insn_extra_special_memory_constraint.
1865
1866 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
1867
1868 PR target/69530
1869 * lra-splill.c (lra_final_code_change): Revert r229087 by
1870 removing all sub-registers.
1871
1872 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
1873
1874 PR target/65604
1875 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
1876
1877 2016-01-29 Jakub Jelinek <jakub@redhat.com>
1878
1879 PR target/69551
1880 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
1881 SSE1, copy target into the temporary reg first before recursing
1882 on it.
1883
1884 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
1885
1886 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
1887 with vm.
1888
1889 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
1890
1891 * ginclude/stdarg.h: Test __cplusplus instead of
1892 __GXX_EXPERIMENTAL_CXX0X__.
1893
1894 2016-01-29 Richard Biener <rguenther@suse.de>
1895
1896 PR tree-optimization/69547
1897 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
1898 Do not mark clobbers necessary.
1899 (mark_all_reaching_defs_necessary_1): Likewise.
1900
1901 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
1902
1903 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
1904 declaration name with %qs and print it in both error messages.
1905 Also fix indentation.
1906
1907 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
1908
1909 PR other/69006
1910 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
1911 trailing blank line from error message.
1912
1913 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
1914
1915 PR c++/69462
1916 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
1917 for C++-11.
1918
1919 2016-01-29 Richard Biener <rguenther@suse.de>
1920
1921 PR middle-end/69537
1922 * match.pd: Allow all integral types when simplifying a
1923 widening or sign-changing conversion.
1924
1925 2016-01-28 Sebastian Pop <s.pop@samsung.com>
1926
1927 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
1928 back to setting codegen_error to fail codegen.
1929
1930 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
1931
1932 PR target/69459
1933 * config/i386/constraints.md (C): Only accept constant zero operand.
1934 (BC): New constraint.
1935 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
1936 instead of C constraint.
1937 * doc/md.texi (Machine Constraints): Update description
1938 of C constraint.
1939
1940 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
1941
1942 PR target/68400
1943 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
1944
1945 2016-01-28 Jakub Jelinek <jakub@redhat.com>
1946
1947 PR middle-end/69542
1948 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
1949 non-debug insns.
1950
1951 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
1952
1953 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
1954 branches if using guessed profile.
1955
1956 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
1957
1958 * graphite-optimize-isl.c (optimize_isl): Fix dump.
1959
1960 2016-01-28 Richard Henderson <rth@redhat.com>
1961
1962 PR target/69305
1963 * config/aarch64/aarch64-modes.def (CC_Cmode): New
1964 * config/aarch64/aarch64-protos.h: Update.
1965 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
1966 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
1967 (aarch64_get_condition_code_1): Handle CC_Cmode.
1968 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
1969 (*add<mode>3_compareC_cconly_imm): New.
1970 (*add<mode>3_compareC_cconly): New.
1971 (*add<mode>3_compareC_imm): New.
1972 (add<mode>3_compareC): New.
1973 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
1974 to be first. Use aarch64_carry_operation.
1975 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
1976 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
1977 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
1978 (subti3): Use subdi3_compare1.
1979 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
1980 (sub<mode>3_compare1): New.
1981 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
1982 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
1983 (*subsi3_carryin_uxtw): Likewise.
1984 (*ngc<mode>, *ngcsi_uxtw): Likewise.
1985 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
1986 * config/aarch64/iterators.md (DWI): New.
1987 * config/aarch64/predicates.md (aarch64_carry_operation): New.
1988 (aarch64_borrow_operation): New.
1989
1990 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
1991
1992 * graphite-optimize-isl.c (optimize_isl): Print a different debug
1993 message when isl does not return a valid schedule.
1994
1995 2016-01-28 Sebastian Pop <s.pop@samsung.com>
1996
1997 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
1998 Remove comments from class declarations: they are already in the code
1999 close by the defs.
2000
2001 2016-01-28 Sebastian Pop <s.pop@samsung.com>
2002
2003 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
2004 codegen_error_p.
2005 (ternary_op_to_tree): Same.
2006 (unary_op_to_tree): Same.
2007 (nary_op_to_tree): Same.
2008 (gcc_expression_from_isl_expr_op): Same.
2009 (gcc_expression_from_isl_expression): Same.
2010 (graphite_create_new_loop): Same.
2011 (graphite_create_new_loop_guard): Same.
2012 (build_iv_mapping): Same.
2013 (graphite_create_new_guard): Same.
2014 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
2015 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
2016
2017 2016-01-28 Sebastian Pop <s.pop@samsung.com>
2018
2019 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
2020 instead of setting codegen_error to fail codegen.
2021
2022 2016-01-28 Jason Merrill <jason@redhat.com>
2023
2024 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
2025
2026 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
2027
2028 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
2029 Remove CONST_INT_P check in CCMP cost calculation.
2030
2031 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
2032
2033 * config/aarch64/aarch64.c (generic_vector_cost):
2034 Set vec_permute_cost.
2035 (cortexa57_vector_cost): Likewise.
2036 (exynosm1_vector_cost): Likewise.
2037 (xgene1_vector_cost): Likewise.
2038 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
2039 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
2040 Add vec_permute_cost entry.
2041
2042 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
2043
2044 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
2045 immediate as %1.
2046 (add<mode>3_compare0): Likewise.
2047 (addsi3_compare0_uxtw): Likewise.
2048 (add<mode>3nr_compare0): Likewise.
2049 (compare_neg<mode>): Likewise.
2050 (<optab><mode>3): Likewise.
2051
2052 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
2053
2054 * tree-vect-stmts.c (vectorizable_comparison): Add
2055 NULL check for vectype.
2056
2057 2016-01-28 Richard Biener <rguenther@suse.de>
2058
2059 PR tree-optimization/69466
2060 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
2061 Account for PHIs we couldn't duplicate.
2062
2063 2016-01-28 Martin Liska <mliska@suse.cz>
2064
2065 PR pch/68758
2066 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
2067 instead of ENABLE_VALGRIND_CHECKING.
2068
2069 2016-01-27 Richard Henderson <rth@redhat.com>
2070
2071 PR rtl-opt/69447
2072 * lra-remat.c (subreg_regs): New.
2073 (dump_candidates_and_remat_bb_data): Dump it.
2074 (operand_to_remat): Reject if operand in subreg_regs.
2075 (set_bb_regs): Collect subreg_regs.
2076 (lra_remat): Init and free subreg_regs. Compute
2077 calculate_local_reg_remat_bb_data before create_cands.
2078
2079 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
2080
2081 PR target/68986
2082 * config/i386/i386.c (ix86_update_stack_boundary): Don't
2083 change stack_alignment_needed for __tls_get_addr call.
2084
2085 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
2086
2087 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
2088
2089 2016-01-27 Jeff Law <law@redhat.com>
2090
2091 PR tree-optimization/68398
2092 PR tree-optimization/69196
2093 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
2094 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
2095 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
2096 Only count PHIs in the last block in the path. The others will
2097 const/copy propagate away. Add heuristic to allow more irreducible
2098 subloops to be created when it is likely profitable to do so.
2099
2100 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
2101 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
2102 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
2103
2104 2016-01-27 Jakub Jelinek <jakub@redhat.com>
2105
2106 PR lto/69254
2107 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
2108 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
2109 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
2110 * tree-streamer-in.c: Include asan.h.
2111 (streamer_get_builtin_tree): For builtins in sanitizer
2112 range call initialize_sanitizer_builtins and retry.
2113
2114 2016-01-27 Ian Lance Taylor <iant@google.com>
2115
2116 * common.opt (fkeep-gc-roots-live): New undocumented option.
2117 * tree-ssa-loop-ivopts.c (add_candidate_1): If
2118 -fkeep-gc-roots-live, skip pointers.
2119 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
2120 NULL.
2121
2122 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
2123
2124 PR target/69512
2125 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
2126 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
2127
2128 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
2129
2130 PR target/68380
2131 * configure.ac: NetBSD provides SSP in its C library.
2132 * configure: Updated.
2133
2134 2016-01-27 Richard Biener <rguenther@suse.de>
2135
2136 PR tree-optimization/69166
2137 * tree-vect-loop.c (vect_is_simple_reduction): Always check
2138 reduction code for commutativity / associativity.
2139
2140 2016-01-27 Martin Jambor <mjambor@suse.cz>
2141
2142 PR tree-optimization/69355
2143 * tree-sra.c (analyze_access_subtree): Correct hole detection when
2144 total_scalarization fails.
2145
2146 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
2147
2148 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
2149 power9.
2150
2151 2016-01-27 Christian Bruel <christian.bruel@st.com>
2152
2153 PR target/69245
2154 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
2155 Move arm_reset_previous_fndecl and set_target_option_current_node in
2156 the conditional part. Call save_restore_target_globals.
2157 * config/arm/arm.c (arm_set_current_function):
2158 Refactor to better support #pragma target and attribute mix.
2159 Call save_restore_target_globals.
2160 * config/arm/arm-protos.h (save_restore_target_globals): New function.
2161
2162 2016-01-27 Martin Liska <mliska@suse.cz>
2163
2164 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
2165 reference for an HSA kernel and its host function.
2166
2167 2016-01-27 Jakub Jelinek <jakub@redhat.com>
2168
2169 PR tree-optimization/69399
2170 * wide-int.h (wi::lrshift): For larger precisions, only
2171 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
2172
2173 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
2174
2175 * config/arc/predicates.md (proper_comparison_operator): Reject
2176 constant-constant comparison.
2177
2178 2016-01-26 Tom de Vries <tom@codesourcery.com>
2179
2180 PR tree-optimization/69110
2181 * tree-data-ref.c (initialize_data_dependence_relation): Handle
2182 DR_NUM_DIMENSIONS == 0.
2183
2184 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
2185 Sebastian Pop <s.pop@samsung.com>
2186
2187 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
2188 isl_ast_op_cond and isl_ast_op_select.
2189 (gcc_expression_from_isl_expr_op): Same.
2190
2191 2016-01-26 Jason Merrill <jason@redhat.com>
2192
2193 PR c++/68782
2194 * tree.c (recompute_constructor_flags): Split out from
2195 build_constructor.
2196 (verify_constructor_flags): New.
2197 * tree.h: Declare them.
2198
2199 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
2200
2201 PR rtl-optimization/69217
2202 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
2203 are no TYPE_FIELDS set for the record type.
2204
2205 2016-01-26 Jakub Jelinek <jakub@redhat.com>
2206
2207 PR target/68662
2208 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
2209 toc_label_name unconditionally.
2210 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
2211 SYMBOL_REF string. Use toc_label_name instead of constructing
2212 LCTOC1.
2213 (rs6000_elf_declare_function_name): Use toc_label_name instead of
2214 constructing LCTOC1.
2215
2216 2016-01-26 Martin Sebor <msebor@redhat.com>
2217
2218 PR other/69477
2219 * doc/extend.texi (Common Type Attributes): Move text that talks about
2220 attribute packed from attribute aligned to the section discussing
2221 the former attribute for clarity.
2222
2223 2016-01-26 Richard Henderson <rth@redhat.com>
2224
2225 PR middle-end/60908
2226 * trans-mem.c (tm_region_init): Mark entry block as visited.
2227
2228 2016-01-26 David Malcolm <dmalcolm@redhat.com>
2229
2230 PR other/69006
2231 * diagnostic-show-locus.c (layout::print_source_line): Replace
2232 call to pp_newline with call to layout::print_newline.
2233 (layout::print_annotation_line): Likewise.
2234 (layout::move_to_column): Likewise.
2235 (layout::print_any_fixits): After printing any fixits, print a
2236 trailing newline, if necessary.
2237 (layout::print_newline): New method, resetting any colorization
2238 before a newline.
2239 (diagnostic_show_locus): Move the pp_newline to before the
2240 early bailout. Remove dummy block enclosing the layout instance.
2241 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
2242 of pp_newline_and_flush with pp_flush.
2243 (diagnostic_append_note): Delete use of pp_newline.
2244 (diagnostic_append_note_at_rich_loc): Delete.
2245 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
2246 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
2247 when newline characters are added to the buffer.
2248
2249 2016-01-26 Michael Matz <matz@suse.de>
2250
2251 * configure.ac (ac_cv_std_swap_in_utility): New test.
2252 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
2253 * configure: Regenerate.
2254 * config.in: Regenerate.
2255
2256 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
2257
2258 * config/arc/arc.md (cstoresi4): Force operand into register.
2259 (arcset<code>): Fix predicate.
2260 (arcsetltu): Likewise.
2261 (arcsetgeu): Likewise.
2262 (arcsethi): Likewise.
2263 (arcsetls): Likewise.
2264
2265 2016-01-26 Jakub Jelinek <jakub@redhat.com>
2266
2267 PR tree-optimization/69483
2268 * gimple-fold.c (canonicalize_constructor_val): Return NULL
2269 if base has error_mark_node type.
2270
2271 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
2272
2273 PR target/68620
2274 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
2275 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
2276 New helper macros.
2277 (vget_lane_f16): Handle big-endian.
2278 (vgetq_lane_f16): Likewise.
2279 (vset_lane_f16): Likewise.
2280 (vsetq_lane_f16): Likewise.
2281 * config/arm/iterators.md (VQXMOV): Add V8HF.
2282 (VDQ): Add V4HF and V8HF.
2283 (V_reg): Handle V4HF and V8HF.
2284 (Is_float_mode): Likewise.
2285 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
2286 neon_vdup_nv8hf): New patterns.
2287 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
2288 Use VD_LANE iterator.
2289 (neon_vld1_dup<mode>): Use VQ2 iterator.
2290
2291 2016-01-26 Nathan Sidwell <nathan@acm.org>
2292
2293 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
2294 (set_oacc_fn_attrib): Add IS_KERNEL arg.
2295 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
2296 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
2297 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
2298 (oacc_validate_dims): Add LEVEL arg, don't return level.
2299 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
2300 oacc_validate_dims.
2301 (execute_oacc_device_lower): Adjust, add more dump output.
2302 * tree-ssa-loop.c (gate_oacc_kernels): Use
2303 oacc_fn_attrib_kernels_p.
2304 * tree-parloops.c (create_parallel_loop): Adjust
2305 set_oacc_fn_attrib call.
2306
2307 2016-01-26 Jakub Jelinek <jakub@redhat.com>
2308
2309 PR lto/69254
2310 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
2311 (append_compiler_options): Handle -fcilkplus.
2312 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
2313
2314 2016-01-26 Nick Clifton <nickc@redhat.com>
2315
2316 PR target/66655
2317 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
2318 been marked as DECL_ONE_ONLY but we do not the means to make it
2319 so, then do not allow it to bind locally.
2320
2321 2016-01-26 Jakub Jelinek <jakub@redhat.com>
2322
2323 PR lto/69254
2324 * opts.h (parse_sanitizer_options): New prototype.
2325 * opts.c (sanitizer_opts): New array.
2326 (parse_sanitizer_options): New function.
2327 (common_handle_option): Use parse_sanitizer_options.
2328
2329 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
2330
2331 PR target/68986
2332 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
2333 alignment adjustment to ...
2334 (ix86_update_stack_boundary): Here. Don't over-align stack for
2335 __tls_get_addr.
2336 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
2337 if __tls_get_addr is called.
2338
2339 2016-01-26 Christian Bruel <christian.bruel@st.com>
2340
2341 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
2342
2343 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
2344
2345 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
2346
2347 2016-01-26 Richard Biener <rguenther@suse.de>
2348
2349 PR middle-end/69467
2350 * match.pd: Guard X * CST CMP 0 pattern with single_use.
2351
2352 2016-01-26 Richard Biener <rguenther@suse.de>
2353
2354 PR tree-optimization/69452
2355 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
2356 (move_computations_dom_walker::before_dom_children): Rename
2357 to ...
2358 (move_computations_worker): This.
2359 (move_computations): Perform an RPO rather than a DOM walk.
2360
2361 2016-01-26 Jakub Jelinek <jakub@redhat.com>
2362
2363 PR target/69442
2364 * combine.c (combine_instructions): For REG_EQUAL note with
2365 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
2366 to the underlying register.
2367 * doc/rtl.texi (REG_EQUAL): Document the behavior of
2368 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
2369
2370 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
2371
2372 PR target/67896
2373 * config/aarch64/aarch64-builtins.c
2374 (aarch64_init_simd_builtin_types): Do not set structural
2375 equality to __Poly{8,16,64,128}_t types.
2376
2377 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
2378
2379 PR tree-optimization/69400
2380 * wide-int.cc (wi_pack): Take the precision as argument and
2381 perform canonicalization here rather than in the callers.
2382 Use the main loop to handle all full-width HWIs. Add a
2383 zero HWI if in_len isn't a full result.
2384 (wi::divmod_internal): Update accordingly.
2385 (wi::mul_internal): Likewise. Simplify.
2386
2387 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
2388 Sebastian Pop <s.pop@samsung.com>
2389
2390 * graphite-poly.c (apply_poly_transforms): Simplify.
2391 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
2392 (print_isl_map): Same.
2393 (print_isl_union_map): Same.
2394 (print_isl_schedule): New.
2395 (debug_isl_schedule): New.
2396 * graphite-dependences.c (scop_get_reads): Do not call
2397 isl_union_map_add_map that is undocumented isl functionality.
2398 (scop_get_must_writes): Same.
2399 (scop_get_may_writes): Same.
2400 (scop_get_original_schedule): Remove.
2401 (scop_get_dependences): Do not call isl_union_map_compute_flow that
2402 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
2403 (compute_deps): Remove.
2404 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
2405 (debug_schedule_ast): New.
2406 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
2407 set_separate_option.
2408 (graphite_regenerate_ast_isl): Add dump.
2409 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
2410 from scop->transformed_schedule.
2411 (graphite_regenerate_ast_isl): Add more dump.
2412 * graphite-optimize-isl.c (optimize_isl): Set
2413 scop->transformed_schedule. Check whether schedules are equal.
2414 (apply_poly_transforms): Move here.
2415 * graphite-poly.c (apply_poly_transforms): ... from here.
2416 (free_poly_bb): Static.
2417 (free_scop): Static.
2418 (pbb_number_of_iterations_at_time): Remove.
2419 (print_isl_ast): New.
2420 (debug_isl_ast): New.
2421 (debug_scop_pbb): New.
2422 * graphite-scop-detection.c (print_edge): Move.
2423 (print_sese): Move.
2424 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
2425 (build_scop_scattering): Remove.
2426 (create_pw_aff_from_tree): Assert instead of bailing out.
2427 (add_condition_to_pbb): Remove unused code, do not fail.
2428 (add_conditions_to_domain): Same.
2429 (add_conditions_to_constraints): Remove.
2430 (build_scop_context): New.
2431 (add_iter_domain_dimension): New.
2432 (build_iteration_domains): Initialize pbb->iterators.
2433 Call add_conditions_to_domain.
2434 (nested_in): New.
2435 (loop_at): New.
2436 (index_outermost_in_loop): New.
2437 (index_pbb_in_loop): New.
2438 (outermost_pbb_in): New.
2439 (add_in_sequence): New.
2440 (add_outer_projection): New.
2441 (outer_projection_mupa): New.
2442 (add_loop_schedule): New.
2443 (build_schedule_pbb): New.
2444 (build_schedule_loop): New.
2445 (embed_in_surrounding_loops): New.
2446 (build_schedule_loop_nest): New.
2447 (build_original_schedule): New.
2448 (build_poly_scop): Call build_original_schedule.
2449 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
2450 (free_poly_dr): Remove.
2451 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
2452 (free_poly_bb): Remove.
2453 (debug_loop_vec): Remove.
2454 (print_isl_ast): Declare.
2455 (debug_isl_ast): Declare.
2456 (scop_do_interchange): Remove.
2457 (scop_do_strip_mine): Remove.
2458 (scop_do_block): Remove.
2459 (flatten_all_loops): Remove.
2460 (optimize_isl): Remove.
2461 (pbb_number_of_iterations_at_time): Remove.
2462 (debug_scop_pbb): Declare.
2463 (print_schedule_ast): Declare.
2464 (debug_schedule_ast): Declare.
2465 (struct scop): Remove schedule. Add original_schedule,
2466 transformed_schedule.
2467 (free_gimple_poly_bb): Remove.
2468 (print_generated_program): Remove.
2469 (debug_generated_program): Remove.
2470 (unify_scattering_dimensions): Remove.
2471 * sese.c (print_edge): ... here.
2472 (print_sese): ... here.
2473 (debug_edge): ... here.
2474 (debug_sese): ... here.
2475 * sese.h (print_edge): Declare.
2476 (print_sese): Declare.
2477 (dump_edge): Declare.
2478 (dump_sese): Declare.
2479
2480 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
2481 Sebastian Pop <s.pop@samsung.com>
2482
2483 * Makefile.in: Set ISLVER in site.exp.
2484
2485 2016-01-25 Jakub Jelinek <jakub@redhat.com>
2486
2487 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
2488 DECL_VALUE_EXPR of new_var even for the non-array case. Look
2489 through DECL_VALUE_EXPR for expansion.
2490
2491 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
2492
2493 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
2494 the frame info after reload completed.
2495
2496 2016-01-25 Jeff Law <law@redhat.com>
2497
2498 PR tree-optimization/69196
2499 PR tree-optimization/68398
2500 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
2501 tree-ssa-threadupdate.c.
2502 (determine_bb_domination_status): Prototype
2503 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
2504 (determine_bb_domination_status): No longer static.
2505 (valid_jump_thread_path): Remove code to detect characteristics
2506 of the jump thread path not associated with correctness.
2507 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
2508 Correct test for thread path length. Count PHIs for real operands as
2509 statements that need to be copied. Do not count ASSERT_EXPRs.
2510 Look at all the blocks in the thread path. Compute and selectively
2511 filter thread paths based on threading through the latch, threading
2512 a multiway branch or crossing a multiway branch.
2513
2514 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2515
2516 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
2517 decl with __attribute__ ((unused)) annotation.
2518
2519 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
2520
2521 PR target/69421
2522 * tree-vect-stmts.c (vectorizable_condition): Check vectype
2523 of operands is compatible with a statement vectype.
2524
2525 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
2526
2527 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
2528 improve wording for mixed storage order support.
2529
2530 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
2531
2532 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
2533 (vcvt_u64_f64): Likewise.
2534 (vcvta_s64_f64): Likewise.
2535 (vcvta_u64_f64): Likewise.
2536 (vcvtm_s64_f64): Likewise.
2537 (vcvtm_u64_f64): Likewise.
2538 (vcvtn_s64_f64): Likewise.
2539 (vcvtn_u64_f64): Likewise.
2540 (vcvtp_s64_f64): Likewise.
2541 (vcvtp_u64_f64): Likewise.
2542
2543 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
2544
2545 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
2546 (arc_init): Check validity mll64 option.
2547 (arc_save_restore): Use double load/store instruction.
2548 (arc_expand_movmem): Likewise.
2549 (arc_split_move): Don't split if we have double load/store
2550 instructions. Returns a boolean.
2551 (arc_process_double_reg_moves): Change function to return boolean
2552 instead of a sequence of instructions.
2553 (arc_dwarf_register_span): New function.
2554 * config/arc/arc-protos.h (arc_split_move): Change prototype.
2555 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
2556 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
2557 (*movdf_insn): Likewise.
2558 * config/arc/arc.opt (mll64): New option.
2559 * config/arc/predicates.md (even_register_operand): New predicate.
2560 * doc/invoke.texi (ARC Options): Add mll64 documentation.
2561
2562 2016-01-25 Richard Biener <rguenther@suse.de>
2563
2564 PR lto/69393
2565 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
2566 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
2567 DECL_NAMELESS.
2568 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
2569
2570 2016-01-25 Richard Biener <rguenther@suse.de>
2571
2572 PR tree-optimization/69376
2573 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
2574 flag.
2575 (VN_INFO_ANTI_RANGE_P): New inline.
2576 (VN_INFO_RANGE_TYPE): Likewise.
2577 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
2578 SSA_NAME_ANTI_RANGE_P.
2579 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
2580 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
2581 Properly query VN_INFO_RANGE_TYPE.
2582
2583 2016-01-25 Nick Clifton <nickc@redhat.com>
2584
2585 PR target/66655
2586 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
2587
2588 2016-01-23 Tom de Vries <tom@codesourcery.com>
2589
2590 PR tree-optimization/69426
2591 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
2592 removed clobber.
2593
2594 2016-01-23 Jakub Jelinek <jakub@redhat.com>
2595
2596 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
2597 "the the" with "the" in the comments.
2598 * ipa-devirt.c (build_type_inheritance_graph,
2599 update_type_inheritance_graph): Likewise.
2600 * tree.c (build_function_type_list_1): Likewise.
2601 * cfgloopmanip.c (scale_loop_profile): Likewise.
2602 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
2603 * gimple-ssa-split-paths.c
2604 (find_block_to_duplicate_for_splitting_paths): Likewise.
2605 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
2606 * expr.c (convert_move): Likewise.
2607 * var-tracking.c (vt_stack_adjustments): Likewise.
2608 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
2609 * tree-vrp.c (test_for_singularity): Likewise.
2610
2611 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
2612 directly instead of building a temporary tree.
2613
2614 PR bootstrap/69434
2615 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
2616 remove <algorithm> include.
2617
2618 2016-01-22 Jakub Jelinek <jakub@redhat.com>
2619
2620 PR target/69432
2621 * config/i386/i386.c: Include dojump.h.
2622 (expand_small_movmem_or_setmem,
2623 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
2624 fixes.
2625 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
2626 if dynamic_check != -1.
2627
2628 2016-01-21 Jeff Law <law@redhat.com>
2629
2630 PR middle-end/69347
2631 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
2632 record_temporary_equivalences. Rewritten to avoid unnecessary calls
2633 into dominated_by_p.
2634 (cprop_into_successor_phis): Avoid unnecessary tests.
2635
2636 2016-01-22 Richard Henderson <rth@redhat.com>
2637
2638 PR target/69416
2639 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
2640 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
2641
2642 2016-01-22 Michael Matz <matz@suse.de>
2643
2644 * system.h (string, algorithm): Include only conditionally.
2645 (new): Include always under C++.
2646 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
2647 * final.c (toplevel): Ditto.
2648 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
2649 * genconditions.c (write_header): Make gencondmd.c define
2650 INCLUDE_STRING.
2651 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
2652
2653 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
2654 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
2655
2656 2016-01-22 Christian Bruel <christian.bruel@st.com>
2657
2658 PR target/68674
2659 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
2660
2661 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2662
2663 PR target/69403
2664 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
2665 define_insn_and_split. Ensure operands[1] and operands[0] do not
2666 get assigned the same register.
2667
2668 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
2669
2670 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
2671
2672 2016-01-22 Christian Bruel <christian.bruel@st.com>
2673
2674 * config/arm/arm-c.c (arm_pragma_target_parse):
2675 Remove warn_builtin_macro_redefined overwrite.
2676
2677 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
2678
2679 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
2680 flag_non_call_exceptions compatibility.
2681
2682 2016-01-22 Jakub Jelinek <jakub@redhat.com>
2683
2684 PR debug/66668
2685 * dwarf2out.c (add_child_die_after): New function.
2686 (dwarf_qual_info_t): New type.
2687 (dwarf_qual_info): New variable.
2688 (qualified_die_p): New function.
2689 (modified_type_die): For -fdebug-types-section, ensure
2690 canonical order of qualifiers. Put qualified DIEs adjacent
2691 to the corresponding non-qualified type DIE and search there
2692 for existing qualified DIEs.
2693
2694 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
2695
2696 * doc/extend.texi (scalar_storage_order type attribute): Document
2697 restriction on type punning and aliasing, and remove future tense.
2698
2699 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
2700
2701 PR target/69252
2702 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
2703 first stage.
2704
2705 2016-01-21 Jeff Law <law@redhat.com>
2706
2707 PR middle-end/69347
2708 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
2709 useless call to record_temporary_equivalences.
2710 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
2711 allocate 10 slots in the bb_path vector and let it grow as needed.
2712 (fsm_find_control_statement_thread_paths): Similarly for the next_path
2713 vector.
2714
2715 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
2716
2717 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
2718 Detangle.
2719 * configure: Regenerate.
2720
2721 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
2722
2723 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
2724 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
2725
2726 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
2727
2728 PR middle-end/66178
2729 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
2730 drop EXPAND_INITIALIZER.
2731 * rtl.h (contains_symbolic_reference_p): Declare.
2732 * rtlanal.c (contains_symbolic_reference_p): New function.
2733 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
2734 a subtraction into a NOT if symbolic constants are involved.
2735
2736 2016-01-21 Anton Blanchard <anton@samba.org>
2737 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2738
2739 PR target/63354
2740 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
2741 #define.
2742 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
2743 function.
2744
2745 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
2746
2747 * config/microblaze/microblaze.c
2748 (get_branch_target): New.
2749 (insert_wic_for_ilb_runout): New.
2750 (insert_wic): New.
2751 (microblaze_machine_dependent_reorg): New.
2752 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
2753 * config/microblaze/microblaze.md
2754 (UNSPEC_IPREFETCH): Define.
2755 (iprefetch): New pattern
2756 * config/microblaze/microblaze.opt
2757 (mxl-prefetch): New flag.
2758
2759 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
2760
2761 * config/microblaze/microblaze.h
2762 (FIXED_REGISTERS): Update in macro.
2763 (CALL_USED_REGISTERS): Update in macro.
2764
2765 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
2766
2767 PR rtl-optimization/68920
2768 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
2769 moves.
2770
2771 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
2772
2773 PR rtl-optimization/68990
2774 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
2775 pseudo instead of inheritance ones.
2776
2777 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
2778 Nick Clifton <nickc@redhat.com>
2779
2780 PR target/69129
2781 PR target/69012
2782 * config/mips/mips.c (mips_compute_frame_info): Initialise
2783 args_size and hard_frame_pointer_offset fields of the frame
2784 structure before calling mips_global_pointer.
2785
2786 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
2787
2788 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
2789 label reference.
2790 * configure: Regenerate.
2791
2792 2016-01-21 Richard Biener <rguenther@suse.de>
2793
2794 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
2795
2796 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
2797
2798 * config/s390/s390.c (s390_asm_declare_function_size): Add code
2799 to actually emit the .size directive.
2800
2801 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
2802 Jakub Jelinek <jakub@redhat.com>
2803
2804 PR target/69187
2805 PR target/65624
2806 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
2807 args array size by one to avoid buffer overflow.
2808
2809 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
2810
2811 * config/s390/s390.md (pool_section_start): Use switch_to_section
2812 to select proper read-only data section instead of hardcoding
2813 .rodata.
2814 (pool_section_end): Use switch_to_section to match the above.
2815
2816 2016-01-21 Richard Biener <rguenther@suse.de>
2817
2818 PR tree-optimization/69378
2819 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
2820 (set_ssa_val_to): Use it for dominance checks taking into
2821 account not executable edges.
2822
2823 2016-01-21 Jakub Jelinek <jakub@redhat.com>
2824
2825 PR c++/69355
2826 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
2827 for bitsize instead of GET_MODE_PRECISION (mode).
2828
2829 2016-01-20 Martin Sebor <msebor@redhat.com>
2830
2831 PR c/52291
2832 * extend.texi (__sync Builtins): Clarify the semantics of
2833 __sync_fetch_and_OP built-ins on pointers.
2834 (__atomic Builtins): Same.
2835
2836 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
2837 Sebastian Pop <s.pop@samsung.com>
2838
2839 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
2840 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
2841 (is_valid_rename): Same.
2842 (translate_isl_ast_to_gimple::get_rename): Same.
2843 (translate_isl_ast_to_gimple::rename_all_uses): Same.
2844 (translate_isl_ast_to_gimple::rename_uses): Same.
2845 (get_new_name): Check for close_phi nodes.
2846 (copy_loop_phi_args): Use phi_node_kind.
2847 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
2848 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
2849
2850 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
2851 Sebastian Pop <s.pop@samsung.com>
2852
2853 Revert commit r229783.
2854 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
2855 Remove use of parameter_rename_map.
2856 (copy_def): Remove.
2857 (copy_internal_parameters): Remove.
2858 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
2859 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
2860 (free_sese_info): Do not free parameter_rename_map.
2861 (set_rename): Do not use parameter_rename_map.
2862 (rename_uses): Update call to set_rename.
2863 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
2864 * sese.h (parameter_rename_map_t): Remove.
2865 (struct sese_info_t): Remove field parameter_rename_map.
2866
2867 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
2868 Sebastian Pop <s.pop@samsung.com>
2869
2870 * graphite-isl-ast-to-gimple.c: Fix comment.
2871 * graphite-scop-detection.c (defined_in_loop_p): New.
2872 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
2873 names defined in loop.
2874
2875 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
2876 Sebastian Pop <s.pop@samsung.com>
2877
2878 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
2879 Discard unstructured if-then-else regions.
2880
2881 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
2882 Sebastian Pop <s.pop@samsung.com>
2883
2884 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
2885 (cleanup_loop_iter_dom): Remove.
2886 (build_loop_iteration_domains): Remove.
2887 (build_scop_context): Remove.
2888 (build_scop_iteration_domain): Remove.
2889 (add_loop_constraints): New.
2890 (build_iteration_domains): New.
2891 (build_poly_scop): Call build_iteration_domains.
2892
2893 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
2894 Sebastian Pop <s.pop@samsung.com>
2895
2896 * graphite-scop-detection.c
2897 (scop_detection::harmful_loop_in_region): Free dom and loops.
2898 (scop_detection::loop_body_is_valid_scop): Free bbs.
2899
2900 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
2901 Sebastian Pop <s.pop@samsung.com>
2902
2903 * graphite-scop-detection.c (record_loop_in_sese): New.
2904 (gather_bbs::before_dom_children): Call record_loop_in_sese.
2905 (build_scops): Remove call to build_sese_loop_nests.
2906 * sese.c (sese_record_loop): Remove.
2907 (build_sese_loop_nests): Remove.
2908 (new_sese_info): Remove region->loops.
2909 (free_sese_info): Same.
2910 * sese.h (sese_contains_loop): Same.
2911 (build_sese_loop_nests): Remove.
2912 (sese_contains_loop): Remove.
2913
2914 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
2915 Sebastian Pop <s.pop@samsung.com>
2916
2917 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
2918 loop_is_valid_in_scop.
2919 (scop_detection::harmful_stmt_in_region): Renamed
2920 harmful_loop_in_region.
2921 Call loop_is_valid_in_scop.
2922
2923 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
2924 Sebastian Pop <s.pop@samsung.com>
2925
2926 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
2927 isl_ast_node_mark.
2928
2929 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
2930 Sebastian Pop <s.pop@samsung.com>
2931
2932 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
2933 * graphite.h (struct poly_bb): Remove field is_reduction.
2934 (PBB_IS_REDUCTION): Remove.
2935
2936 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
2937 Sebastian Pop <s.pop@samsung.com>
2938
2939 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
2940 (add_pdr_constraints): Same.
2941 (scop_get_reads): Same.
2942 (scop_get_must_writes): Same.
2943 (scop_get_may_writes): Same.
2944 (scop_get_original_schedule): Same.
2945 (extend_schedule): Same.
2946 (apply_schedule_on_deps): Same.
2947 (carries_deps): Same.
2948 (compute_deps): Same.
2949 (scop_get_dependences): Same.
2950 * graphite-isl-ast-to-gimple.c
2951 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
2952 * graphite-optimize-isl.c (get_schedule_for_band): Same.
2953 (get_schedule_for_band_list): Same.
2954 (get_schedule_map): Same.
2955 (apply_schedule_map_to_scop): Same.
2956 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
2957 (build_loop_iteration_domains): Same.
2958 (add_condition_to_pbb): Same.
2959 (add_param_constraints): Same.
2960 (pdr_add_memory_accesses): Same.
2961 (pdr_add_data_dimensions): Same.
2962
2963 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
2964
2965 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
2966 requirements.
2967
2968 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
2969
2970 * common.opt (feliminate-dwarf2-dups): Replace references to
2971 "DWARF 2" with just "DWARF".
2972 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
2973 * doc/extend.texi: Likewise.
2974 * doc/cpp.texi: Likewise.
2975 * doc/invoke.texi: Likewise.
2976 (Option Summary): Add -gdwarf to list of Debugging Options.
2977 (Debugging Options): Document -gdwarf.
2978 * doc/contrib.texi: Spell "DWARF" like that.
2979
2980 2016-01-21 Jakub Jelinek <jakub@redhat.com>
2981
2982 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
2983 warning. Fix up formatting.
2984
2985 PR middle-end/67653
2986 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
2987 attempt to mark memory input operand addressable and
2988 call prepare_gimple_addressable in that case. Don't adjust
2989 input_location for diagnostics, use error_at instead.
2990
2991 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
2992
2993 * config/rs6000/ppc-auxv.h: New file.
2994 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
2995 (cpu_is): Likewise.
2996 (cpu_supports): Likewise.
2997 * config/rs6000/rs6000.c: include "ppc-auxv.h".
2998 (cpu_is_info): New variable.
2999 (cpu_supports_info): Likewise.
3000 (tcb_verification_symbol): Likewise.
3001 (cpu_builtin_p): Likewise.
3002 (cpu_expand_builtin): New function.
3003 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
3004 (rs6000_init_builtins): Likewise.
3005 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
3006 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
3007 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
3008 * configure: Regenerate.
3009 * config.in: Likewise.
3010 * doc/extend.texi (PowerPC Built-in Functions): Document
3011 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
3012
3013 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
3014
3015 PR target/68609
3016 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
3017 domain check.
3018 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
3019 for V4SFmode.
3020
3021 2016-01-20 Richard Henderson <rth@redhat.com>
3022
3023 PR bootstrap/69343
3024 PR bootstrap/69339
3025 PR tree-opt/68964
3026 Revert:
3027 * tree.c (tm_define_builtin): New.
3028 (find_tm_vector_type): New.
3029 (build_tm_vector_builtins): New.
3030 (build_common_builtin_nodes): Call it.
3031
3032 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
3033
3034 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
3035 (arm_fp_ok): Likewise.
3036 (arm_fp): Likewise.
3037 (arm_crypto): Likewise.
3038
3039 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
3040 Richard Biener <rguenther@suse.de>
3041
3042 PR tree-optimization/69328
3043 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
3044 vectors have same number of elements.
3045 (vectorizable_condition): Fix masked version recognition.
3046
3047 2016-01-20 Richard Biener <rguenther@suse.de>
3048
3049 PR tree-optimization/69345
3050 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
3051 (VN_INFO_PTR_INFO): Likewise.
3052 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
3053 info when it is equal between non-dominating SSA names.
3054 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
3055 Make sure to look at original SSA infos.
3056
3057 2016-01-20 Jeff Law <law@redhat.com>
3058
3059 PR target/25114
3060 * config/m68k/predicates.md (pow2_m1_operand): New predicate
3061 extracted from ...
3062 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
3063 (pc_or_label_operand): New predicate.
3064 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
3065 tests for small integers that are 2^n - 1.
3066
3067 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
3068
3069 * doc/invoke.texi (Options Summary): Add '.' after @xref.
3070
3071 2016-01-19 Jeff Law <law@redhat.com>
3072
3073 PR middle-end/69347
3074 * tree-ssa-threadbackwards.c
3075 (fsm_find_control_statement_thread_paths): Do not try to lookup
3076 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
3077
3078 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
3079
3080 * doc/lto.texi: Remove text that says only Gold has linker plugin
3081 support.
3082
3083 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
3084
3085 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
3086 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
3087 the DIE accordingly.
3088 (modified_type_die): Add REVERSE parameter and pass it recursively,
3089 as well as to base_type_die. Adjust presence check accordingly.
3090 (base_type_for_mode): Adjust call to modified_type_die.
3091 (add_type_attribute): Add REVERSE parameter and pass it to
3092 modified_type_die.
3093 (generic_parameter_die): Adjust call to add_type_attribute.
3094 (add_scalar_info): Likewise.
3095 (add_subscript_info): Likewise.
3096 (gen_array_type_die): Likewise.
3097 (gen_descr_array_type_die): Likewise.
3098 (gen_entry_point_die): Likewise.
3099 (gen_enumeration_type_die): Likewise.
3100 (gen_formal_parameter_die): Likewise.
3101 (gen_subprogram_die): Likewise.
3102 (gen_variable_die ): Likewise.
3103 (gen_const_die): Likewise.
3104 (gen_field_die): Likewise.
3105 (gen_pointer_type_die): Likewise.
3106 (gen_reference_type_die): Likewise.
3107 (gen_ptr_to_mbr_type_die): Likewise.
3108 (gen_inheritance_die): Likewise.
3109 (gen_subroutine_type_die): Likewise.
3110 (gen_typedef_die): Likewise.
3111 (force_type_die): Adjust call to modified_type_die.
3112
3113 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
3114
3115 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
3116 flow throughout the file. Fix broken link to Objective-C 2.0
3117 documentation.
3118 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
3119 errors.
3120
3121 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
3122
3123 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
3124
3125 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
3126
3127 PR ipa/66223
3128 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
3129 (maybe_record_node): Record cxa_pure_virtual as the only possible
3130 target if there are not ohter candidates.
3131 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
3132
3133 2016-01-19 Richard Biener <rguenther@suse.de>
3134
3135 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
3136 (get_memory_order): Likewise.
3137
3138 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
3139
3140 * tree-vect-stmts.c (vectorizable_store): Check
3141 rhs vectype.
3142
3143 2016-01-19 David Malcolm <dmalcolm@redhat.com>
3144
3145 PR jit/68446
3146 * gcc.c (driver::decode_argv): Add call to
3147 init_opts_obstack before init_options_struct.
3148 * opts.c (init_opts_obstack): Remove idempotency.
3149 (init_options_struct): Replace call to init_opts_obstack
3150 with a gcc_assert to verify that it has already been called.
3151 * toplev.c (toplev::main): Add call to init_opts_obstack before
3152 calls to init_options_struct.
3153 (toplev::finalize): Move cleanup of opts_obstack next to
3154 cleanup of save_decoded_options, clearing the latter, and
3155 save_decoded_options_count.
3156
3157 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3158
3159 PR target/69135
3160 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
3161 attribute to unconditional. Remove %? from output template.
3162
3163 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
3164 Jiong Wang <jiong.wang@arm.com>
3165
3166 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
3167 generated from different expand order.
3168
3169 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
3170
3171 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
3172 Add support for CCMP costing.
3173
3174 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
3175
3176 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
3177 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
3178 (fccmpe<mode>): Likewise.
3179 (fcmp): Rename to fcmp and globalize pattern.
3180 (fcmpe): Likewise.
3181 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
3182 (aarch64_gen_ccmp_next): Add FP support.
3183
3184 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
3185
3186 * target.def (gen_ccmp_first): Update documentation.
3187 (gen_ccmp_next): Likewise.
3188 * doc/tm.texi (gen_ccmp_first): Update documentation.
3189 (gen_ccmp_next): Likewise.
3190 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
3191 expand_ccmp_expr_1. Improve comments.
3192 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
3193 (ccmp_ior<mode>): Remove pattern.
3194 (cmp<mode>): Remove expand.
3195 (cmp): Globalize pattern.
3196 (cstorecc4): Use cc_register.
3197 (mov<mode>cc): Remove ccmp_cc_register check.
3198 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
3199 Simplify after removal of CC_DNE/* modes.
3200 (aarch64_ccmp_mode_to_code): Remove.
3201 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
3202 In 'k' case use integer as condition.
3203 (aarch64_nzcv_codes): Remove inverted cases.
3204 (aarch64_code_to_ccmode): Remove.
3205 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
3206 comparison with CC register to be used in folowing CCMP/branch/CSEL.
3207 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
3208 pattern. Return the comparison with CC register. Invert conditions
3209 when bitcode is OR.
3210 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
3211 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
3212
3213 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
3214
3215 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
3216 instrumented_version.
3217
3218 2016-01-19 Richard Biener <rguenther@suse.de>
3219
3220 PR tree-optimization/69336
3221 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
3222 handled components with get_ref_base_and_extent.
3223 (equal_mem_array_ref_p): Adjust.
3224
3225 2016-01-19 Jakub Jelinek <jakub@redhat.com>
3226
3227 PR debug/65779
3228 * shrink-wrap.c: Include valtrack.h.
3229 (move_insn_for_shrink_wrap): Add DEBUG argument. If
3230 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
3231 in between insn and where it will be moved to. Call
3232 dead_debug_insert_temp.
3233 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
3234 first and dead_debug_local_finish at the end.
3235 For uses and defs bitmap, handle all regs in between REGNO and
3236 END_REGNO, not just the first one.
3237
3238 2016-01-19 Richard Biener <rguenther@suse.de>
3239
3240 PR tree-optimization/69352
3241 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
3242 (equal_mem_array_ref_p): Constrain size and max size properly.
3243 Compare the reverse flag.
3244
3245 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
3246
3247 * ira.c (ira): Update regstat data if we deleted insns.
3248
3249 2016-01-19 Jakub Jelinek <jakub@redhat.com>
3250
3251 PR rtl-optimization/68955
3252 PR rtl-optimization/64557
3253 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
3254 here. Fix up formatting.
3255 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
3256
3257 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
3258
3259 PR lto/69133
3260 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
3261 assume that the node has body.
3262 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
3263 check.
3264
3265 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
3266
3267 * lto-streamer-out.c (lto_output): Do not stream instrumentation
3268 thunks.
3269
3270 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
3271
3272 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
3273 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
3274
3275 2016-01-19 Martin Jambor <mjambor@suse.cz>
3276 Martin Liska <mliska@suse.cz>
3277 Michael Matz <matz@suse.de>
3278
3279 * Makefile.in (OBJS): Add new source files.
3280 (GTFILES): Add hsa.c.
3281 * common.opt (disable_hsa): New variable.
3282 (-Whsa): New warning.
3283 * config.in (ENABLE_HSA): New.
3284 * configure.ac: Treat hsa differently from other accelerators.
3285 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
3286 $enable_offloading.
3287 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
3288 * doc/install.texi (Configuration): Document --with-hsa-runtime,
3289 --with-hsa-runtime-include, --with-hsa-runtime-lib and
3290 --with-hsa-kmt-lib.
3291 * doc/invoke.texi (-Whsa): Document.
3292 (hsa-gen-debug-stores): Likewise.
3293 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
3294 to invoke offload compiler for hsa acclerator.
3295 * opts.c (common_handle_option): Determine whether HSA offloading
3296 should be performed.
3297 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
3298 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
3299 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
3300 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
3301 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
3302 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
3303 GF_OMP_FOR_KIND_GRID_LOOP.
3304 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
3305 (pp_gimple_stmt_1): Likewise.
3306 * gimple-walk.c (walk_gimple_stmt): Likewise.
3307 * gimple.c (gimple_build_omp_grid_body): New function.
3308 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
3309 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
3310 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
3311 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
3312 GF_OMP_TEAMS_GRID_PHONY.
3313 (gimple_statement_omp_single_layout): Updated comments.
3314 (gimple_build_omp_grid_body): New function.
3315 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
3316 (gimple_omp_for_grid_phony): New function.
3317 (gimple_omp_for_set_grid_phony): Likewise.
3318 (gimple_omp_parallel_grid_phony): Likewise.
3319 (gimple_omp_parallel_set_grid_phony): Likewise.
3320 (gimple_omp_teams_grid_phony): Likewise.
3321 (gimple_omp_teams_set_grid_phony): Likewise.
3322 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
3323 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
3324 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
3325 (BUILT_IN_GOMP_TARGET): Updated type.
3326 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
3327 (adjust_for_condition): New function.
3328 (get_omp_for_step_from_incr): Likewise.
3329 (extract_omp_for_data): Moved parts to adjust_for_condition and
3330 get_omp_for_step_from_incr.
3331 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
3332 (fixup_child_record_type): Bail out if receiver_decl is NULL.
3333 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
3334 (scan_omp_parallel): Do not create child functions for phony
3335 constructs.
3336 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
3337 (scan_omp_1_op): Checking assert we are not remapping to
3338 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
3339 (parallel_needs_hsa_kernel_p): New function.
3340 (expand_parallel_call): Register apprpriate parallel child
3341 functions as HSA kernels.
3342 (grid_launch_attributes_trees): New type.
3343 (grid_attr_trees): New variable.
3344 (grid_create_kernel_launch_attr_types): New function.
3345 (grid_insert_store_range_dim): Likewise.
3346 (grid_get_kernel_launch_attributes): Likewise.
3347 (get_target_argument_identifier_1): Likewise.
3348 (get_target_argument_identifier): Likewise.
3349 (get_target_argument_value): Likewise.
3350 (push_target_argument_according_to_value): Likewise.
3351 (get_target_arguments): Likewise.
3352 (expand_omp_target): Call get_target_arguments instead of looking
3353 up for teams and thread limit.
3354 (grid_expand_omp_for_loop): New function.
3355 (grid_arg_decl_map): New type.
3356 (grid_remap_kernel_arg_accesses): New function.
3357 (grid_expand_target_kernel_body): New function.
3358 (expand_omp): Call it.
3359 (lower_omp_for): Do not emit phony constructs.
3360 (lower_omp_taskreg): Do not emit phony constructs but create for them
3361 a temporary variable receiver_decl.
3362 (lower_omp_taskreg): Do not emit phony constructs.
3363 (lower_omp_teams): Likewise.
3364 (lower_omp_grid_body): New function.
3365 (lower_omp_1): Call it.
3366 (grid_reg_assignment_to_local_var_p): New function.
3367 (grid_seq_only_contains_local_assignments): Likewise.
3368 (grid_find_single_omp_among_assignments_1): Likewise.
3369 (grid_find_single_omp_among_assignments): Likewise.
3370 (grid_find_ungridifiable_statement): Likewise.
3371 (grid_target_follows_gridifiable_pattern): Likewise.
3372 (grid_remap_prebody_decls): Likewise.
3373 (grid_copy_leading_local_assignments): Likewise.
3374 (grid_process_kernel_body_copy): Likewise.
3375 (grid_attempt_target_gridification): Likewise.
3376 (grid_gridify_all_targets_stmt): Likewise.
3377 (grid_gridify_all_targets): Likewise.
3378 (execute_lower_omp): Call grid_gridify_all_targets.
3379 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
3380 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
3381 (tree_omp_clause): Added union field dimension.
3382 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
3383 * tree.c (omp_clause_num_ops): Added number of arguments of
3384 OMP_CLAUSE__GRIDDIM_.
3385 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
3386 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
3387 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
3388 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
3389 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
3390 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
3391 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
3392 * tree-pass.h (make_pass_gen_hsail): Declare.
3393 (make_pass_ipa_hsa): Likewise.
3394 * ipa-hsa.c: New file.
3395 * lto-section-in.c (lto_section_name): Add hsa section name.
3396 * lto-streamer.h (lto_section_type): Add hsa section.
3397 * timevar.def (TV_IPA_HSA): New.
3398 * hsa-brig-format.h: New file.
3399 * hsa-brig.c: New file.
3400 * hsa-dump.c: Likewise.
3401 * hsa-gen.c: Likewise.
3402 * hsa.c: Likewise.
3403 * hsa.h: Likewise.
3404 * toplev.c (compile_file): Call hsa_output_brig.
3405 * hsa-regalloc.c: New file.
3406
3407 2016-01-18 Jeff Law <law@redhat.com>
3408
3409 PR tree-optimization/69320
3410 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
3411 ranged object, do nothing if the RHS constant is not [0..1].
3412 (optimize_stmt): Comparing a boolean ranged object against a
3413 constant outside [0..1] results in a compile-time constant.
3414
3415 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
3416 test.
3417
3418 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
3419
3420 * doc/invoke.texi (Invoking GCC): Add new section to menu.
3421 (Option Summary): Update to reflect new section and moved options.
3422 (C++ Dialect Options): Move -fstats to new section.
3423 (Debugging Options): Move all dump, statistics, and other GCC
3424 developer options to new section. Rewrite section introduction
3425 and re-order remaining options to put the more basic ones first.
3426 (Optimization Options): Move -fira-verbose and -flto-report* to
3427 new section.
3428 (Developer Options): New section incorporating moved options.
3429 * doc/cppopts.texi (-dM): Update cross-reference.
3430
3431 2016-01-18 Richard Henderson <rth@redhat.com>
3432
3433 PR target/69176
3434 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
3435 operands to pseudo only if CSE is expected. Split long immediate
3436 operands only after reload, and for the stack pointer.
3437 (*add<GPI>3_pluslong): Remove.
3438 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
3439 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
3440 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
3441 (*add<GPI>3 peepholes): New.
3442 (*add<GPI>3 splitters): New.
3443 * config/aarch64/constraints.md (Upl): New.
3444 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
3445
3446 2016-01-18 Richard Biener <rguenther@suse.de>
3447
3448 PR tree-optimization/69297
3449 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
3450 stmt at most once.
3451 (vect_bb_vectorization_profitable_p): Clear visited flag again.
3452
3453 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
3454
3455 PR middle-end/68542
3456 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
3457 of mixind vector and scalar types.
3458 (fold_relational_const): Add handling of vector
3459 comparison with boolean result.
3460 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
3461 comparison of vector operands with boolean result for EQ/NE only.
3462 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
3463 (verify_gimple_cond): Likewise.
3464 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
3465 valid type of VAL.
3466
3467 2016-01-18 Joseph Myers <joseph@codesourcery.com>
3468
3469 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
3470 !TARGET_OCTEON.
3471
3472 2016-01-18 Richard Biener <rguenther@suse.de>
3473
3474 PR middle-end/69308
3475 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
3476
3477 2016-01-18 Tom de Vries <tom@codesourcery.com>
3478
3479 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
3480
3481 2016-01-18 Tom de Vries <tom@codesourcery.com>
3482
3483 * omp-low.c (set_oacc_fn_attrib): Make extern.
3484 * omp-low.h (set_oacc_fn_attrib): Declare.
3485 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
3486 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
3487 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
3488 Add and handle function parameter oacc_kernels_p.
3489 (find_reduc_addr, get_omp_data_i_param): New function.
3490 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
3491 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
3492 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
3493 Calculate dominance info. Skip loops that are not in a kernels region
3494 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
3495 (pass_parallelize_loops::execute): Call parallelize_loops with
3496 oacc_kernels_p argument.
3497 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
3498 New member function.
3499 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
3500 * passes.def: Add argument to pass_parallelize_loops instantation.
3501
3502 2016-01-18 Tom de Vries <tom@codesourcery.com>
3503
3504 * tree-parloops.c (pass_parallelize_loops::execute): Allow
3505 pass_parallelize_loops to be run outside the loop pipeline.
3506
3507 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
3508
3509 * tree-scalar-evolution.c (follow_copies_to_constant): New.
3510 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
3511
3512 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
3513
3514 PR target/63679
3515 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
3516 using get_ref_base_and_extent.
3517 (equal_mem_array_ref_p): New.
3518 (hashable_expr_equal_p): Add call to previous.
3519
3520 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
3521
3522 PR target/63679
3523 * tree-sra.c (disqualified_constants, constant_decl_p): New.
3524 (sra_initialize): Allocate disqualified_constants.
3525 (sra_deinitialize): Free disqualified_constants.
3526 (disqualify_candidate): Update disqualified_constants when appropriate.
3527 (create_access): Scan for constant-pool entries as we go along.
3528 (scalarizable_type_p): Add check against type_contains_placeholder_p.
3529 (maybe_add_sra_candidate): Allow constant-pool entries.
3530 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
3531 (initialize_constant_pool_replacements): New.
3532 (sra_modify_assign): Avoid mangling assignments created by previous,
3533 and don't generate writes into constant pool.
3534 (sra_modify_function_body): Call initialize_constant_pool_replacements.
3535
3536 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
3537
3538 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
3539 andnot instruction.
3540 (scalar_chain::convert_op): Likewise.
3541 * config/i386/i386.md (*andndi3_doubleword): New.
3542
3543 2016-01-18 Richard Biener <rguenther@suse.de>
3544
3545 PR tree-optimization/69170
3546 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
3547 building a vector from scalar results of a pattern stmt.
3548
3549 2016-01-18 Jakub Jelinek <jakub@redhat.com>
3550
3551 * haifa-sched.c (autopref_multipass_init): Work around
3552 -Wmaybe-uninitialized warning.
3553
3554 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
3555
3556 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
3557 against the constant 0.
3558
3559 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3560
3561 PR tree-optimization/68799
3562 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
3563 look up phi candidates in the statement-candidate map.
3564 (phi_add_costs): Likewise.
3565 (record_phi_increments): Likewise.
3566 (phi_incr_cost): Likewise.
3567 (ncd_with_phi): Likewise.
3568 (all_phi_incrs_profitable): Likewise.
3569
3570 2016-01-17 Jakub Jelinek <jakub@redhat.com>
3571
3572 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
3573 -Wmaybe-uninitialized warning.
3574
3575 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
3576
3577 * doc/invoke.texi (Invoking GCC): Add new section to menu.
3578 (Option Summary): Update to reflect new section and moved options.
3579 (C++ Dialect Options): Move -fvtable-verify and related options.
3580 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
3581 and profiling-related options.
3582 (Optimization Options): Move profile generation options and
3583 -fstack-protector and related options.
3584 (Instrumentation Options): New section incorporating moved options.
3585 (Code Generation Options): Move -finstrument-functions and
3586 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
3587
3588 2016-01-16 Tom de Vries <tom@codesourcery.com>
3589
3590 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
3591
3592 2016-01-16 Tom de Vries <tom@codesourcery.com>
3593
3594 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
3595
3596 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
3597
3598 * hash-table.h (hash_table::empty): Turn into an inline wrapper
3599 that checks whether the table is already empty. Rename the
3600 original implementation to...
3601 (hash_table::empty_slot): ...this new private function.
3602
3603 2016-01-15 David Malcolm <dmalcolm@redhat.com>
3604
3605 PR diagnostic/68899
3606 * diagnostic-show-locus.c (layout::print_source_line): Move x
3607 offset of line until after call to
3608 get_line_width_without_trailing_whitespace.
3609
3610 2016-01-15 Jeff Law <law@redhat.com>
3611
3612 PR tree-optimization/69270
3613 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
3614 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
3615 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
3616 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
3617 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
3618 ssa_name_has_boolean_range and constant_boolean_node.
3619
3620 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
3621
3622 PR rtl-optimization/69030
3623 * lra-spills.c (remove_pseudos): Check nrefs and make the function
3624 returning bool.
3625 (spill_pseudos): Delete debug insn for dead pseudo.
3626 (lra_spill): Initiate spill_hard_reg and slots memory separately.
3627
3628 2016-01-15 Jiong Wang <jiong.wang@arm.com>
3629
3630 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
3631 New.
3632 (TYPES_UNOPUS): Likewise.
3633 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
3634 builtin type, from UNOP to UNOPUS.
3635 (lbtruncuv4sf): Likewise.
3636 (lbtruncuv2df): Likewise.
3637 (lrounduv2sf): Likewise.
3638 (lrounduv4sf): Likewise.
3639 (lrounduv2df): Likewise.
3640 (lroundusf): Likewise.
3641 (lroundusf): Likewise.
3642 (lceiluv2sf): Likewise.
3643 (lceiluv4sf): Likewise.
3644 (lceiluv2df): Likewise.
3645 (lceilusf): Likewise.
3646 (lceiludf): Likewise.
3647 (lflooruv2sf): Likewise.
3648 (lflooruv4sf): Likewise.
3649 (lflooruv2df): Likewise.
3650 (lfloorusf): Likewise.
3651 (lfloorudf): Likewise.
3652 (lfrintnuv2sf): Likewise.
3653 (lfrintnuv4sf): Likewise.
3654 (lfrintnuv2df): Likewise.
3655 (lfrintnusf): Likewise.
3656 (lfrintnudf): Likewise.
3657 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
3658 conversion.
3659 (vcvtq_u32_f32): Likewise.
3660 (vcvtq_u64_f64): Likewise.
3661 (vcvta_u32_f32): Likewise.
3662 (vcvtaq_u32_f32): Likewise.
3663 (vcvtaq_u64_f64): Likewise.
3664 (vcvtm_u32_f32): Likewise.
3665 (vcvtmq_u32_f32): Likewise.
3666 (vcvtmq_u64_f64): Likewise.
3667 (vcvtn_u32_f32): Likwise.
3668 (vcvtnq_u32_f32): Likewise.
3669 (vcvtnq_u64_f64): Likewise.
3670 (vcvtp_u32_f32): Likewise.
3671 (vcvtpq_u32_f32): Likewise.
3672 (vcvtpq_u64_f64): Likewise.
3673 (vcvtmd_u64_f64): Likewise.
3674 (vcvtms_u32_f32): Likewise.
3675 (vcvtad_u64_f64): Likewise.
3676 (vcvtas_u32_f32): Likewise.
3677 (vcvtnd_u64_f64): Likewise.
3678 (vcvtns_u32_f32): Likewise.
3679 (vcvtpd_u64_f64): Likewise.
3680 (vcvtps_u32_f32): Likewise.
3681
3682 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3683
3684 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
3685 CSEL of zero_extended registers.
3686
3687 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3688
3689 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
3690 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
3691
3692 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3693
3694 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
3695 false when argument string is not found in the attributes table
3696 at all.
3697
3698 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
3699
3700 PR target/68609
3701 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
3702 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
3703 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
3704 precision estimate.
3705
3706 2016-01-15 Richard Biener <rguenther@suse.de>
3707
3708 PR tree-optimization/66856
3709 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
3710 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
3711 (vect_create_new_slp_node): Increment stmt reference count.
3712 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
3713 an SLP tree before swapping operands.
3714 (vect_build_slp_tree): Likewise.
3715 (destroy_bb_vec_info): Free stmt info after SLP instances.
3716 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
3717 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
3718 (STMT_VINFO_NUM_SLP_USES): New macro.
3719
3720 2016-01-15 Richard Biener <rguenther@suse.de>
3721
3722 PR debug/69137
3723 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
3724 (add_linkage_name): ... here.
3725 (gen_typedef_die): Use add_linkage_name_raw instead of
3726 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
3727 if necessary.
3728
3729 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
3730
3731 * gimplify.c (oacc_default_clause): Decode reference and pointer
3732 types for both kernels and parallel regions.
3733
3734 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
3735
3736 PR middle-end/69246
3737 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
3738
3739 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
3740
3741 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
3742 (convert_scalars_to_vector): Likewise.
3743
3744 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
3745
3746 * doc/extend.texi (Type Traits): Fix grammar.
3747
3748 2016-01-15 Martin Jambor <mjambor@suse.cz>
3749
3750 * tree-inline.c (remap_decl): Use existing dclarations if
3751 remapping a type and prevent_decl_creation_for_types.
3752 (replace_locals_stmt): Do an initial remapping of non-VLA typed
3753 decls first. Do real remapping with
3754 prevent_decl_creation_for_types set.
3755 * tree-inline.h (copy_body_data): New field
3756 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
3757 padding.
3758
3759 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
3760
3761 * config/s390/s390.opt (mmvcle): More verbose help text.
3762
3763 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
3764
3765 * config/s390/s390.opt: Add period to -mzvector option text.
3766
3767 2016-01-15 Richard Biener <rguenther@suse.de>
3768
3769 PR tree-optimization/68961
3770 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
3771 of invariants in stores again.
3772
3773 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
3774
3775 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
3776
3777 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
3778
3779 * config/i386/i386.c (ix86_expand_branch): Don't split
3780 DI mode xor instruction to SI mode.
3781
3782 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
3783
3784 PR ipa/68148
3785 * ipa-icf.c (sem_function::merge): Virtual functions may become
3786 reachable even if they address is not taken and there are no
3787 idrect calls.
3788
3789 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
3790
3791 * lto-streamer-out.c (subtract_estimated_size): New function.
3792 (get_symbol_initial_value): Use it.
3793
3794 2016-01-15 Christian Bruel <christian.bruel@st.com>
3795
3796 PR target/65837
3797 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
3798 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
3799 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
3800 use add_builtin_function_ext_scope instead of add_builtin_function.
3801 (neon_set_p, neon_crypto_set_p): Remove.
3802 (arm_init_builtins): Always call arm_init_neon_builtins and
3803 arm_init_crypto_builtins.
3804 (arm_expand_builtin): Check that builtins are allowed for the arch.
3805 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
3806 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
3807 arm_init_neon_builtins call.
3808
3809 2016-01-15 Richard Biener <rguenther@suse.de>
3810
3811 PR tree-optimization/69117
3812 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
3813 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
3814 of the leader conservatively.
3815 (free_scc_vn): Restore original SSA name infos.
3816
3817 2016-01-14 Jeff Law <law@redhat.com>
3818
3819 PR tree-optimization/69270
3820 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
3821 single bit of precision, verify it's also unsigned.
3822 (record_edge_info): Use constant_boolean_node rather than fold_convert
3823 to convert boolean_true/boolean_false to the right type.
3824
3825 2016-01-14 Richard Henderson <rth@redhat.com>
3826
3827 PR rtl-opt/69014
3828 * loop-doloop.c (record_reg_sets): New.
3829 (doloop_optimize): Reject the transform if the sequence
3830 clobbers registers live at the end of the loop block.
3831 (doloop_optimize_loops): Enable df_live if needed.
3832
3833 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
3834
3835 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
3836 * gcc/config/rs6000/rs6000.c: Likewise.
3837 * gcc/config/rs6000/rs6000.h: Likewise.
3838 * gcc/config/rs6000/rs6000.md: Likewise.
3839 * gcc/doc/extend.texi: Likewsie.
3840
3841 2016-01-14 Jeff Law <law@redhat.com>
3842
3843 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
3844 typo.
3845
3846 2016-01-14 Richard Henderson <rth@redhat.com>
3847
3848 PR c/69272
3849 PR tree-opt/68964
3850 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
3851 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
3852 instead of builtin_decl_declared_p to test for declaration.
3853
3854 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
3855
3856 * doc/loop.texi (Loop Analysis and Representation): Document
3857 loop_depth function.
3858
3859 2016-01-14 Tom de Vries <tom@codesourcery.com>
3860
3861 PR tree-optimization/68773
3862 * omp-low.c (expand_omp_target): Don't set force_output.
3863 * varpool.c (varpool_node::get_create): Same.
3864 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
3865 offload_funcs with force_output.
3866
3867 2016-01-14 Jakub Jelinek <jakub@redhat.com>
3868
3869 PR debug/69244
3870 * lra-eliminations.c (move_plus_up): Don't change anything if either
3871 the outer or inner subreg mode is not MODE_INT.
3872 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
3873 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
3874
3875 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
3876
3877 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
3878 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
3879 reduc_uplus_@var{m}): Remove.
3880 * expr.c (expand_expr_real_2): Remove expansion path for
3881 reduc_[us](min|max|plus) optabs.
3882 * optabs-tree.c (scalar_reduc_to_vector): Remove.
3883 * optabs-tree.h (scalar_reduc_to_vector): Remove.
3884 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
3885 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
3886 * tree-vect-loop.c (vectorizable_reduction): Remove test for
3887 reduc_[us](min|max|plus) optabs.
3888
3889 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
3890
3891 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
3892 (reduc_plus_scal_v2sf): New.
3893 (reduc_smax_v2sf): Rename to...
3894 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
3895 (reduc_smin_v2sf): Rename to...
3896 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
3897
3898 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
3899
3900 * alias.c (compare_base_symbol_refs): New function.
3901 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
3902 it.
3903
3904 2016-01-14 Jakub Jelinek <jakub@redhat.com>
3905
3906 PR middle-end/68146
3907 PR tree-optimization/69155
3908 * tree-complex.c: Include cfganal.h.
3909 (phis_to_revisit): New variable.
3910 (extract_component): Add phiarg_p argument. Assert that returned
3911 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
3912 (update_phi_components): Partly rewrite to use loop over real/imag
3913 components instead of code duplication. If extract_component returns
3914 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
3915 create_tmp_reg into the PHI node instead, and mention the phi triplet
3916 in phis_to_revisit.
3917 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
3918 in phis_to_revisit at the end.
3919
3920 2016-01-14 Richard Biener <rguenther@suse.de>
3921
3922 PR tree-optimization/68060
3923 * tree-vect-loop.c (vect_is_simple_reduction): Check the
3924 outer loop reduction is only used in the inner loop before
3925 detecting a double reduction.
3926
3927 2016-01-14 Jakub Jelinek <jakub@redhat.com>
3928
3929 PR target/68269
3930 * combine.c (expand_field_assignment): Punt if compute_mode is
3931 unsupported scalar mode.
3932
3933 2016-01-14 Richard Biener <rguenther@suse.de>
3934
3935 PR tree-optimization/66856
3936 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
3937 SLP node only if it built successfully.
3938 (vect_analyze_slp_instance): Adjust.
3939
3940 2016-01-14 Jeff Law <law@redhat.com>
3941
3942 PR tree-optimization/69270
3943 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
3944 (record_edge_info): Use it. Convert boolean_{true,false}_node
3945 to the type of op0.
3946
3947 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
3948
3949 PR ipa/66487
3950 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
3951 use block_ultimate_origin
3952 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
3953
3954 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
3955
3956 * doc/invoke.texi (Submodel Options): Rename section to
3957 "Machine-Dependent Options" to better reflect its content.
3958 Rewrite introductory text to remove archaic CPU names.
3959 Update references.
3960
3961 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
3962
3963 * doc/invoke.texi (Code Gen Options): Move section up in file,
3964 before target-specific options. Update menu and option summary
3965 to reflect the new section ordering.
3966
3967 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
3968
3969 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
3970 (C++ Dialect Options): Add cross-reference to -std option.
3971 * doc/standards.texi (C++ Language): Document C++14 support.
3972
3973 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
3974
3975 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
3976 for pack/unpack functions for __ibm128.
3977 (PACK_IF): Likewise.
3978 (UNPACK_IF): Likewise.
3979
3980 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
3981 support for __ibm128 pack/unpack functions.
3982 (rs6000_invalid_builtin): Likewise.
3983 (rs6000_init_builtins): Likewise.
3984 (rs6000_opt_masks): Likewise.
3985
3986 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
3987 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
3988 functions
3989 (RS6000_BTM_COMMON): Likewise.
3990
3991 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
3992 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
3993 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
3994 128-bit floating point. Add support for the double values to be
3995 in Altivec registers for TF/IF packing and unpacking, but restrict
3996 TD packing sub-fields to be FPR registers. Don't allow overlapped
3997 register support for packing. Allow pack inputs to be memory
3998 locations. Don't build generator functions for unpack<mode>_dm
3999 and unpack<mode>_nodm.
4000 (unpack<mode>_dm): Likewise.
4001 (unpack<mode>_nodm): Likewise.
4002 (pack<mode>): Likewise.
4003
4004 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
4005 built-in functions to pack/unpack explicit __ibm128 values.
4006 (__builtin_unpack_ibm128): Likewise.
4007
4008 * doc/extend.texi (PowerPC Built-in Functions): Document
4009 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
4010
4011 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
4012
4013 PR c/66208
4014 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
4015 Add new arg loc and pass it down as context.
4016 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
4017 to the location to use for the warning.
4018 (check_function_arguments): New arg loc. All callers changed. Pass
4019 it to check_function_nonnull.
4020 * c-common.h (check_function_arguments): Adjust declaration.
4021
4022 2016-01-13 Jakub Jelinek <jakub@redhat.com>
4023
4024 PR tree-optimization/69156
4025 * gimple.c (validate_type): Removed.
4026 (gimple_builtin_call_types_compatible_p): Use
4027 useless_type_conversion_p instead of validate_type.
4028 * value-prof.c (gimple_stringop_fixed_value): Fold
4029 icall_size to correct type.
4030
4031 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
4032
4033 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
4034 effects.
4035
4036 2016-01-13 Richard Henderson <rth@redhat.com>
4037
4038 PR tree-opt/68964
4039 * target.def (builtin_tm_load, builtin_tm_store): Remove.
4040 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
4041 (ix86_builtin_tm_store): Remove.
4042 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
4043 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
4044 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
4045 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
4046 * doc/tm.texi: Rebuild.
4047
4048 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
4049 (BUILT_IN_TM_MEMCPY_RTWN): New.
4050 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
4051 fallback from vector to integer helpers.
4052 (build_tm_load): Handle vector types directly, instead of
4053 via target hook.
4054 (build_tm_store): Likewise.
4055 (expand_assign_tm): Prepare for register types not handled by
4056 the above. Copy them to memory and use memcpy.
4057 * tree.c (tm_define_builtin): New.
4058 (find_tm_vector_type): New.
4059 (build_tm_vector_builtins): New.
4060 (build_common_builtin_nodes): Call it.
4061
4062 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
4063
4064 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
4065 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
4066
4067 2016-01-13 Tom de Vries <tom@codesourcery.com>
4068
4069 PR tree-optimization/69169
4070 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
4071 handled_struct_type param.
4072 (create_variable_info_for, intra_create_variable_infos): Call
4073 create_variable_info_for_1 with extra arg.
4074
4075 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
4076
4077 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
4078 and "armv8.1-a+crc" entries.
4079
4080 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
4081
4082 PR target/69228
4083 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
4084 Change first operand predicate from register_or_constm1_operand
4085 to register_operand.
4086 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
4087 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
4088 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
4089 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
4090 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
4091 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
4092 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
4093 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
4094 comparison with constm1_rtx from vec_prefetch_gen part.
4095
4096 2016-01-13 Richard Biener <rguenther@suse.de>
4097
4098 PR tree-optimization/69013
4099 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
4100 Exchange assert for a test.
4101
4102 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4103
4104 PR target/69247
4105 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
4106
4107 2016-01-13 Richard Biener <rguenther@suse.de>
4108
4109 PR tree-optimization/69242
4110 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
4111 assert with a check.
4112
4113 2016-01-13 Richard Biener <rguenther@suse.de>
4114
4115 PR tree-optimization/69186
4116 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
4117 Properly guard vect_update_misalignment_for_peel call.
4118
4119 2016-01-12 Jeff Law <law@redhat.com>
4120
4121 PR tree-optimization/pr67755
4122 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
4123 "need_profile_correction".
4124 (thread_block_1): Initialize new field to false by default. If we
4125 have multiple thread paths through a common joiner to different
4126 final targets, then set new field to true.
4127 (compute_path_counts): Only do count adjustment when it's really
4128 needed.
4129
4130 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
4131
4132 * doc/invoke.texi (Spec Files): Move section down in file, past
4133 all command-line option descriptions.
4134
4135 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4136
4137 PR middle-end/54809
4138 * doc/gty.texi: Remove documentation of mark_hook.
4139 * gengtype.c (struct write_types_data): Remove code to support
4140 mark_hook attribute.
4141 (walk_type): Likewise.
4142 (write_func_for_structure): Likewise.
4143
4144 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
4145
4146 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
4147 Directory Options, and -specs= to Overall Options.
4148 (Overall Options): Adjust similarly. Reorder to group related
4149 options together. Make -specs= cross-reference the spec file details.
4150 (Directory Options): Adjust similarly.
4151
4152 2016-01-12 Jeff Law <law@redhat.com>
4153
4154 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
4155
4156 2016-01-12 Olivier Hainque <hainque@adacore.com>
4157
4158 * gcc.c (spec_undefvar_allowed): New global.
4159 (process_command): Set to true when running for --version or --help,
4160 alone or together.
4161 (getenv_spec_function): When the variable is not defined, use the
4162 variable name as the variable value if we're allowed not to issue
4163 a fatal error.
4164
4165 2016-01-12 Bin Cheng <bin.cheng@arm.com>
4166
4167 PR tree-optimization/68911
4168 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
4169 information computed for expression "init + nit * step".
4170
4171 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
4172
4173 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
4174 about name of GCC executable. Remove deleted node from menu.
4175 (Directory Options) <-B>: Remove cross-reference to deleted node.
4176 (Target Options): Delete section.
4177
4178 2016-01-12 Christian Bruel <christian.bruel@st.com>
4179
4180 PR target/69180
4181 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
4182 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
4183
4184 2016-01-12 Jakub Jelinek <jakub@redhat.com>
4185
4186 PR target/69198
4187 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
4188 aligned_mem is properly set for AVX512-VL floating point masked
4189 stores.
4190
4191 PR target/69175
4192 * ifcvt.c (cond_exec_process_if_block): When removing the last
4193 insn from then_bb, remove also any possible barriers that follow it.
4194
4195 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
4196
4197 PR target/68456
4198 PR target/69226
4199 * config/i386/iamcu.h (SIZE_TYPE): New macro.
4200 (PTRDIFF_TYPE): Likewise.
4201 (WCHAR_TYPE): Likewise.
4202 (WCHAR_TYPE_SIZE): Likewise.
4203 (STDINT_LONG32): Likewise.
4204
4205 2016-01-12 Richard Biener <rguenther@suse.de>
4206
4207 PR tree-optimization/69053
4208 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
4209 convert initial value for cond reductions.
4210
4211 2016-01-12 Richard Biener <rguenther@suse.de>
4212
4213 PR tree-optimization/69007
4214 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
4215 widen_sum after dot_prod and sad.
4216
4217 2016-01-12 Richard Biener <rguenther@suse.de>
4218
4219 PR tree-optimization/69168
4220 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
4221 pattern stmt SLP type.
4222 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
4223 end up unused so cope with that case.
4224
4225 2016-01-12 Richard Biener <rguenther@suse.de>
4226
4227 PR tree-optimization/69157
4228 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
4229 stmts def type only during analyze phase.
4230 (vectorizable_call): Likewise.
4231 (vectorizable_simd_clone_call): Likewise.
4232 (vectorizable_conversion): Likewise.
4233 (vectorizable_assignment): Likewise.
4234 (vectorizable_shift): Likewise.
4235 (vectorizable_operation): Likewise.
4236 (vectorizable_store): Likewise.
4237 (vectorizable_load): Likewise.
4238
4239 2016-01-12 Richard Biener <rguenther@suse.de>
4240
4241 PR tree-optimization/69174
4242 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
4243 space.
4244 (vectorizable_load): Properly compute the number of loads needed
4245 for permuted strided SLP loads and do not spuriously assign
4246 to SLP_TREE_VEC_STMTS.
4247
4248 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
4249
4250 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
4251 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
4252 (MD_EXEC_PREFIX): Remove.
4253 (MD_STARTFILE_PREFIX) Removee.
4254 (FILE_NAME_ABSOLUTE_P): Remove.
4255 (CPP_SPEC): Do not read macros from sys/version.h.
4256 (LINK_COMMAND_SPEC): Remove.
4257 (LOCAL_INCLUDE_DIR): Remove.
4258 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
4259 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
4260 (POST_LINK_SPEC): Define to invoke stubify after linker
4261 (LIBSTDCXX): Remove define
4262 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
4263 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
4264 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
4265 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
4266 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
4267 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
4268 (i386_djgpp_asm_named_section): Add propotype of new procedure
4269
4270 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
4271 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
4272 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
4273 in config/i386/djgpp.h).
4274 (STANDARD_STARTFILE_PREFIX_2): Define identical to
4275 STANDARD_STARTFILE_PREFIX_1.
4276 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
4277 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
4278 installation errors.
4279 (MAX_OFILE_ALIGNMENT): Define to 128.
4280 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
4281
4282 * config/i386/djgpp.c: New file. Add implementation of
4283 i386_djgpp_asm_named_section.
4284
4285 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
4286
4287 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
4288 Add rule for building djgpp.o.
4289
4290 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4291
4292 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
4293 (rtx_is_swappable_p): Reductions are swappable.
4294 (insn_is_swappable_p): V2DF reductions are swappable.
4295
4296 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
4297
4298 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
4299 reloads for other unsupported memory operands.
4300
4301 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
4302 Jim Wilson <jim.wilson@linaro.org>
4303
4304 PR target/69194
4305 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
4306 copy_to_mode_reg instead of force_reg.
4307
4308 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
4309
4310 PR target/69225
4311 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
4312 TARGET_80387 is true.
4313
4314 2016-01-11 Jakub Jelinek <jakub@redhat.com>
4315
4316 PR target/69071
4317 * lra-eliminations.c (move_plus_up): Only move plus up
4318 if subreg of the constant can be simplified into constant
4319 and use the simplified subreg of the constant instead of
4320 the original constant.
4321
4322 * fold-const.c (fold_convertible_p): Don't return true
4323 for conversion of VECTOR_TYPE to same sized integral type.
4324 (fold_convert_loc): Fix up formatting. Fold conversion of
4325 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
4326 instead of NOP_EXPR.
4327
4328 PR tree-optimization/69214
4329 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
4330 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
4331 Formatting fix.
4332
4333 PR tree-optimization/69207
4334 * tree-vect-slp.c (vect_get_constant_vectors): For
4335 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
4336 fold_convertible_p to vector_type's element type, and always
4337 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
4338
4339 2016-01-11 Richard Biener <rguenther@suse.de>
4340
4341 PR tree-optimization/69173
4342 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
4343 fixup the cycle if all stmts are in a pattern.
4344
4345 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
4346
4347 PR middle-end/68999
4348 * alias.c (base_alias_check): Move check for addresses with
4349 alignment ANDs before the call for compare_base_decls.
4350 (memrefs_conflict_p): Return -1 for different decls
4351 that went through alignment adjustments.
4352
4353 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4354
4355 PR rtl-optimization/68796
4356 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
4357 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
4358 and QImode comparisons against zero with CC_NZmode.
4359 * config/aarch64/iterators.md (short_mask): New mode_attr.
4360
4361 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
4362
4363 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
4364 (<avx512>_store<mode>_mask): Likewise.
4365
4366 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
4367 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4368
4369 PR rtl-optimization/68841
4370 * ifcvt.c (struct noce_if_info): Add orig_x field.
4371 (bbs_ok_for_cmove_arith): Add to_rename parameter.
4372 Don't record conflicts on to_rename if it's present.
4373 Allow memory destinations in sets.
4374 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
4375 blocks, passing orig_x to the checks.
4376 (noce_process_if_block): Set if_info->orig_x appropriately.
4377
4378 2016-01-11 Tom de Vries <tom@codesourcery.com>
4379
4380 PR tree-optimization/69069
4381 * tree-parloops.c (create_parallel_loop): Add missing phi args.
4382
4383 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
4384
4385 PR rtl-optimization/68920
4386 * config/i386/i386.c (ix86_option_override_internal): Restrict number
4387 of conditional moves for RTL if-conversion to 1 for
4388 TARGET_ONE_IF_CONV_INSN.
4389 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
4390 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
4391 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
4392 parameter to restirct number of conditional moves for
4393 RTL if-conversion.
4394 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
4395 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
4396 conditionl moves.
4397
4398 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
4399
4400 PR bootstrap/69123
4401 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
4402 onepart vars. Fix typo in comment. Fix reversed condition in
4403 unshare test.
4404 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
4405
4406 PR bootstrap/69123
4407 * var-tracking.c (dump_onepart_variable_differences): New.
4408 (dataflow_set_different): If a detailed dump is requested,
4409 delay early returns and dump differences between onepart
4410 variables present before and after, and added variables.
4411
4412 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
4413
4414 PR target/69010
4415 * expr.c (expand_expr_real_1): For boolean vector constants
4416 with a scalar mode use const_scalar_mask_from_tree.
4417 (const_scalar_mask_from_tree): New.
4418 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
4419 assigned to a mask type to handle constants.
4420
4421 2016-01-11 Martin Jambor <mjambor@suse.cz>
4422
4423 PR ipa/69044
4424 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
4425 useless parameters if we cannot change function signature.
4426
4427 2016-01-11 Martin Jambor <mjambor@suse.cz>
4428
4429 PR ipa/66616
4430 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
4431 flag.
4432
4433 2016-01-11 Tom de Vries <tom@codesourcery.com>
4434
4435 PR tree-optimization/69109
4436 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
4437 latch with phi.
4438
4439 2016-01-11 Tom de Vries <tom@codesourcery.com>
4440
4441 PR tree-optimization/69108
4442 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
4443 res is not used in a phi.
4444
4445 2016-01-11 Yury Gribov <y.gribov@samsung.com>
4446
4447 PR 67425
4448 * common.opt (frandom-seed): Fix parameter name.
4449 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
4450
4451 2016-01-11 Tom de Vries <tom@codesourcery.com>
4452
4453 PR tree-optimization/69058
4454 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
4455 not supported.
4456
4457 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
4458
4459 * config/arc/arc.opt (mdiv-rem): Add period to the end.
4460 (mcode-density): Likewise.
4461
4462 2016-01-10 Tom de Vries <tom@codesourcery.com>
4463
4464 PR tree-optimization/69062
4465 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
4466 (parallelize_loops): Don't paralelize loop that has phi with address
4467 arg.
4468
4469 2016-01-10 Tom de Vries <tom@codesourcery.com>
4470
4471 PR tree-optimization/69039
4472 * tree-parloops.c (try_create_reduction_list): Only allow single exit
4473 phi for reduction.
4474
4475 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
4476
4477 PR middle-end/68743
4478 * match.pd: Require target has function_c99_misc before doing
4479 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
4480
4481 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
4482
4483 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
4484 use GMPINC.
4485 * configure: Regenerate.
4486
4487 2016-01-09 Jakub Jelinek <jakub@redhat.com>
4488
4489 PR middle-end/50865
4490 PR tree-optimization/69097
4491 * fold-const.h (expr_not_equal_to): New prototype.
4492 * fold-const.c: Include stringpool.h and tree-ssanames.h.
4493 (expr_not_equal_to): New function.
4494 * match.pd (X % -Y is the same as X % Y): Don't optimize
4495 unless X is known not to be equal to minimum or Y is known
4496 not to be equal to -1.
4497 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
4498 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
4499 (simplify_stmt_using_ranges): Adjust caller.
4500 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
4501 substitute_and_fold.
4502
4503 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
4504
4505 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
4506 w/o DECL_NAME.
4507
4508 2016-01-08 Jakub Jelinek <jakub@redhat.com>
4509
4510 PR tree-optimization/69167
4511 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
4512 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
4513 ops[0] comparison.
4514 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
4515
4516 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
4517 Richard Biener <rguenther@suse.de>
4518
4519 PR tree-optimization/68707
4520 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
4521 instances that can be handled via vect_load_lanes.
4522
4523 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
4524
4525 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
4526 if we can't determine address equivalence.
4527 * alias.c (compare_base_decl): Update for changed return value of
4528 symtab_node::equal_address_to.
4529
4530 2016-01-08 Jason Merrill <jason@redhat.com>
4531
4532 PR c++/68983
4533 PR c++/67557
4534 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
4535 * expr.c (store_field): Not here.
4536 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
4537 call with TREE_ADDRESSABLE type.
4538 * tree-cfg.c (verify_gimple_call): Adjust.
4539
4540 2016-01-08 Olivier Hainque <hainque@adacore.com>
4541
4542 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
4543 libc_internal.
4544
4545 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
4546
4547 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
4548 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
4549 (reduc_smin_v2sf): Rename to...
4550 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
4551 (reduc_splus_v2sf): Rename to...
4552 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
4553
4554 2016-01-08 Jakub Jelinek <jakub@redhat.com>
4555
4556 PR tree-optimization/69162
4557 * gimplify.c (gimplify_va_arg_expr): Encode original type of
4558 valist argument in another argument.
4559 (gimplify_modify_expr): Adjust for the above change. Cleanup.
4560 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
4561 to determine the va_list type, build a MEM_REF instead of
4562 build_fold_indirect_ref.
4563
4564 PR tree-optimization/69172
4565 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
4566 gimple_build.
4567
4568 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
4569
4570 PR tree-optimization/67781
4571 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
4572 and cmpnop in two steps: first the ones not accessed in original
4573 gimple expression in a endian independent way and then the ones not
4574 accessed in the final result in an endian-specific way.
4575
4576 2016-01-08 Jakub Jelinek <jakub@redhat.com>
4577
4578 PR tree-optimization/69083
4579 * tree-vect-slp.c (vect_get_constant_vectors): For
4580 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
4581 element type. If op is fold_convertible_p to vector_type's element
4582 type, use NOP_EXPR instead of VCE.
4583
4584 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
4585
4586 PR rtl-optimization/67778
4587 PR rtl-optimization/68634
4588 PR rtl-optimization/68909
4589 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
4590 block from the stack until done with it. Remove a superfluous
4591 bitmap set. Remove a superfluous bitmap test.
4592
4593 2016-01-07 Martin Sebor <msebor@redhat.com>
4594
4595 PR c/68966
4596 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
4597 constraint on the type of arguments.
4598
4599 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
4600
4601 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
4602 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
4603 unaligned_access on the gcc_options set.
4604 * config/arm/arm.c (arm_option_override_internal): Use
4605 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
4606
4607 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
4608
4609 PR target/69140
4610 * config/i386/i386.c (ix86_frame_pointer_required): Enable
4611 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
4612
4613 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
4614
4615 Revert
4616 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
4617
4618 PR target/69140
4619 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
4620 depending on frame_pointer_needed before remaining integer and SSE
4621 registers are saved.
4622
4623 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
4624
4625 PR 1078
4626 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
4627
4628 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
4629
4630 PR target/69171
4631 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
4632 Use the "xBm" constraint.
4633 (float<sseintvecmodelower><mode>2<mask_name><round_name):
4634 Likewise.
4635 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
4636 (sse_cvtsi2ssq<round_name>): Likewise.
4637 (sse_cvtss2si<round_name>): Likewise.
4638 (sse_cvtss2siq<round_name>): Likewise.
4639 (sse2_cvtsi2sdq<round_name>): Likewise.
4640 (sse2_cvtsd2si<round_name>): Likewise.
4641 (sse2_cvtsd2siq<round_name>): Likewise.
4642 * config/i386/subst.md (round_nimm_scalar_predicate): New
4643 predicate.
4644
4645 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
4646
4647 PR middle-end/67639
4648 * varasm.c (make_decl_rtl): Mark invalid register vars as
4649 DECL_EXTERNAL.
4650
4651 PR rtl-optimization/66206
4652 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
4653 All callers changed.
4654
4655 2016-01-07 Jakub Jelinek <jakub@redhat.com>
4656
4657 PR tree-optimization/69141
4658 * tree-ssa-pre.c: Include langhooks.h.
4659 (eliminate_dom_walker::before_dom_children): Use
4660 lang_hooks.decl_printable_name instead of
4661 cgraph_node::get ()->name ().
4662
4663 PR middle-end/68960
4664 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
4665 it and DECL_ALIGN too.
4666
4667 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
4668
4669 * config/mips/mips-ftypes.def: Sort to lexicographical order.
4670
4671 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
4672
4673 PR target/69140
4674 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
4675 depending on frame_pointer_needed before remaining integer and SSE
4676 registers are saved.
4677
4678 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4679
4680 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
4681 mode iterator with VSX_M2.
4682 (*p9_vecstore_<mode>): Likewise.
4683 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
4684 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
4685 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
4686 (define_split for VSX_LE128 stores): Likewise.
4687 (define_peephole2 for TImode LE swaps): Likewise.
4688 (define_split for VSX_LE128 post-reload stores): Likewise.
4689
4690 2016-01-06 Marek Polacek <polacek@redhat.com>
4691
4692 PR sanitizer/69099
4693 * convert.c (convert_to_integer_1): Adjust call to
4694 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
4695 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
4696 EXPR instead of ARG.
4697 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
4698
4699 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
4700
4701 PR 1078
4702 * doc/extend.texi (RL78 Variable Attributes): New section.
4703
4704 2016-01-05 Marek Polacek <polacek@redhat.com>
4705
4706 PR c/69104
4707 * builtins.c (get_memmodel): Use expansion point location rather than
4708 the input location. Call warning_at rather than warning.
4709 (expand_builtin_atomic_compare_exchange): Likewise.
4710 (expand_builtin_atomic_load): Likewise.
4711 (expand_builtin_atomic_store): Likewise.
4712 (expand_builtin_atomic_clear): Likewise.
4713
4714 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
4715
4716 PR target/68991
4717 * config/i386/i386.c (ix86_expand_vector_logical_operator):
4718 Replace nonimmediate_operand with vector_operand.
4719 * config/i386/predicates.md (vector_operand): New predicate.
4720 (general_vector_operand): Replace nonimmediate_operand with
4721 vector_operand.
4722 * config/i386/sse.md: Replace nonimmediate_operand with
4723 vector_operand and m constraint with Bm constraint on SSE
4724 patterns with 16-byte memory operand.
4725 * config/i386/subst.md (round_nimm_predicate): Replace
4726 nonimmediate_operand with vector_operand.
4727 (round_saeonly_nimm_predicate): Likewise.
4728 (round_saeonly_nimm_scalar_predicate): New.
4729
4730 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
4731
4732 PR target/68991
4733 * config/i386/constraints.md (Bm): New constraint.
4734 * config/i386/predicates.md (vector_memory_operand): New
4735 predicate.
4736 * config/i386/sse.md: Replace xm with xBm in plusminus and
4737 any_logic patterns.
4738
4739 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
4740
4741 PR 1078
4742 * doc/extend.texi (V850 Function Attributes): New section.
4743 (V850 Variable Attributes): New section.
4744
4745 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
4746
4747 PR 1078
4748 * doc/extend.texi (MicroBlaze Function Attributes): Document
4749 interrupt_handler and fast_interrupt attributes.
4750
4751 2016-01-05 Sergei Trofimovich <siarheit@google.com>
4752
4753 PR other/60465
4754 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
4755 for local symbolic operands.
4756 * config/ia64/predicates.md (local_symbolic_operand64): New
4757 predicate.
4758
4759 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4760
4761 PR rtl-optimization/68651
4762 * combine.c (combine_simplify_rtx): Canonicalize x + x into
4763 x << 1.
4764
4765 2016-01-05 Nathan Sidwell <nathan@acm.org>
4766
4767 * alias.c (compare_base_decls): Use symtab_node::get.
4768
4769 2016-01-05 Nick Clifton <nickc@redhat.com>
4770
4771 PR target/68770
4772 * ira-costs.c (copy_cost): Initialise the t_icode field of the
4773 secondary_reload_info structure.
4774
4775 PR target/66655
4776 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
4777 decls if weak support is available.
4778
4779 2016-01-04 Martin Sebor <msebor@redhat.com>
4780
4781 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
4782
4783 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
4784
4785 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
4786 OPTION_MASK_P9_DFORM.
4787
4788 * config/rs6000/constraints.md (wo constraint): New constraint for
4789 ISA 3.0 (power9).
4790
4791 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
4792 for wo constraint.
4793 (rs6000_init_hard_regno_mode_ok): Likewise.
4794
4795 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
4796 wo constraint.
4797
4798 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
4799 expanders not to have constraints. Add support for ISA 3.0 xxperm
4800 instruction. Add support for fusing xxlor with xxperm.
4801 (altivec_vperm_<mode>_internal): Likewise.
4802 (altivec_vperm_v8hiv16qi): Likewise.
4803 (altivec_vperm_<mode>v16q): Likewise.
4804 (altivec_vperm_<mode>_uns): Likewise.
4805 (vperm_v8hiv4si): Likewise.
4806 (vperm_v16qiv8hi): Likewise.
4807
4808 * doc/md.texi (RS/6000 constraints): Document wo constraint.
4809
4810 2016-01-04 Jakub Jelinek <jakub@redhat.com>
4811
4812 Update copyright years.
4813
4814 * gcc.c (process_command): Update copyright notice dates.
4815 * gcov-dump.c (print_version): Ditto.
4816 * gcov.c (print_version): Ditto.
4817 * gcov-tool.c (print_version): Ditto.
4818 * gengtype.c (create_file): Ditto.
4819 * doc/cpp.texi: Bump @copying's copyright year.
4820 * doc/cppinternals.texi: Ditto.
4821 * doc/gcc.texi: Ditto.
4822 * doc/gccint.texi: Ditto.
4823 * doc/gcov.texi: Ditto.
4824 * doc/install.texi: Ditto.
4825 * doc/invoke.texi: Ditto.
4826
4827 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
4828
4829 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
4830 modes larger than TImode as TImode if NEON is not enabled.
4831
4832 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
4833
4834 PR target/69100
4835 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
4836 mode for %f0-%f31 only if TARGET_FPU.
4837
4838 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
4839
4840 PR target/69072
4841 * config/sparc/sparc.c (scan_record_type): Take into account subfields
4842 to compute the PACKED_P predicate.
4843 (function_arg_record_value): Minor tweaks.
4844
4845 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
4846
4847 * doc/install.texi (--with-multilib-list): Describe the meaning of the
4848 option for arm*-*-* targets.
4849
4850 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
4851
4852 * doc/extend.texi (Common Function Attributes): Move docs for
4853 MSP430-specific attributes to....
4854 (MSP430 Function Attributes): ...here. Delete the redundant
4855 entries and copy-edit the remaining text.
4856 (MSP430 Variable Attributes): Use uniform format for index
4857 entries and add a cross-reference to the corresponding function
4858 attribute docs.
4859
4860 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
4861
4862 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
4863 -finite-math typo.
4864 (x86 Options): Likewise.
4865
4866 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
4867
4868 PR 1078
4869
4870 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
4871 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
4872 to corresponding attribute.
4873
4874 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
4875
4876 * doc/extend.texi (Common Function Attributes) <noplt>: Move
4877 to correct alphabetization of table. Copy-edit and correct
4878 markup.
4879 <stack_protect>: Likewise.
4880 <target_clones>: Likewise.
4881 <simd>: Likewise.
4882 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
4883 Correct punctuation.
4884 (Code Gen Options) <-fno-plt>: Copy-edit.
4885
4886 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
4887
4888 PR target/68917
4889 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
4890 SI values. Explicitly convert SI to DI and vice-versa.
4891
4892 2016-01-01 Jakub Jelinek <jakub@redhat.com>
4893
4894 PR tree-optimization/69070
4895 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
4896 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
4897
4898 PR sanitizer/69055
4899 * ubsan.c (ubsan_instrument_float_cast): Call
4900 initialize_sanitizer_builtins.
4901
4902 PR target/69015
4903 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
4904 \f
4905 Copyright (C) 2016 Free Software Foundation, Inc.
4906
4907 Copying and distribution of this file, with or without modification,
4908 are permitted in any medium without royalty provided the copyright
4909 notice and this notice are preserved.