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