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