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