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