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