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