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