1 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3 * config/s390/predicates.md (const_int_6bitset_operand): New
5 * config/s390/s390.md: Include subst.md.
6 ("rotl<mode>3"): New expander.
7 ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
9 ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
10 * config/s390/subst.md: New file.
12 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14 * config/s390/s390.md ("op_type", "atype", "length" attributes):
15 Remove RRR type. It doesn't really exist.
16 ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
18 ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
19 ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
20 ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
21 ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
22 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
23 ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
26 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28 * gensupport.c (process_substs_on_one_elem): Split loop to
29 complete mark_operands_used_in_match_dup on all expressions in the
31 (adjust_operands_numbers): Inline into process_substs_on_one_elem
34 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
37 * config/sparc/sparc.c (NWORDS_UP): Rename to...
38 (CEIL_NWORDS): ...this. Use CEIL macro.
39 (compute_fp_layout): Adjust to above renaming.
40 (function_arg_union_value): Likewise.
41 (sparc_arg_partial_bytes): Likewise.
42 (sparc_function_arg_advance): Likewise.
44 2016-02-29 Jeff Law <law@redhat.com>
46 PR tree-optimization/70005
47 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
48 where an object with a boolean range is compared against a value
51 PR tree-optimization/69999
52 * gimple-ssa-split-paths.c (split_paths): When duplicating a block
53 with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
56 2016-02-29 Richard Biener <rguenther@suse.de>
58 PR tree-optimization/69994
59 * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
60 (get_unary_op): Look through nop conversions.
61 (ops_equal_values_p): New function, look for equality diregarding
63 (eliminate_plus_minus_pair): Use ops_equal_values_p
64 (repropagate_negates): Do not use get_unary_op here.
66 2016-02-29 Martin Liska <mliska@suse.cz>
68 * system.h: Poison ENABLE_CHECKING macro.
70 2016-02-29 Martin Liska <mliska@suse.cz>
72 * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
73 is presented in dump flags.
74 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
75 (hsa_regalloc): Likewise.
77 2016-02-19 Richard Biener <rguenther@suse.de>
79 PR tree-optimization/69980
80 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
81 permutation of those we need to keep.
83 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
86 * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
88 (init_cumulative_args): Minor tweaks.
89 (sparc_promote_function_mode): Likewise.
90 (scan_record_type): Delete.
91 (traverse_record_type): New function template.
92 (classify_data_t): New structure type.
93 (classify_registers): New inline function.
94 (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
95 exhausted. Instantiate traverse_record_type on classify_registers and
96 deal with the case of a structure passed in slot #15 with no FP field
98 (assign_data_t): New structure type.
99 (compute_int_layout): New static function.
100 (compute_fp_layout): Likewise.
101 (count_registers): New inline function.
102 (assign_int_registers): New static function.
103 (assign_fp_registers): Likewise.
104 (assign_registers): New inline function.
105 (function_arg_record_value_1): Delete.
106 (function_arg_record_value_2): Likewise.
107 (function_arg_record_value_3): Likewise.
108 (function_arg_record_value): Adjust to above changes. Instantiate
109 traverse_record_type on count_registers to first count the number of
110 registers to be used and then on assign_registers to assign them.
111 (function_arg_union_value): Adjust to above renaming.
112 (sparc_function_arg_1); Minor tweaks. Remove commented out code.
113 (sparc_arg_partial_bytes): Adjust to above renaming. Deal with the
114 case of a structure passed in slot #15
115 (sparc_function_arg_advance): Likewise.
116 (function_arg_padding): Minor tweak.
118 2016-02-29 Richard Biener <rguenther@suse.de>
120 PR tree-optimization/69720
121 * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
122 the adjustment_def path for possibly vectorized defs.
123 (vect_create_epilog_for_reduction): Handle vectorized initial
126 2016-02-28 Eric Botcazou <ebotcazou@adacore.com>
128 * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
130 2016-02-27 Jeff Law <law@redhat.com>
133 2016-02-26 Richard Biener <rguenther@suse.de>
134 Jeff Law <law@redhat.com>
136 PR tree-optimization/69740
137 * cfghooks.c (remove_edge): Request loop fixups if we delete
138 an edge that might turn an irreducible loop into a natural
141 2016-02-27 Jakub Jelinek <jakub@redhat.com>
143 PR rtl-optimization/69896
144 * tree-vect-generic.c (get_compute_type): Avoid single element
147 2016-02-26 Evandro Menezes <e.menezes@samsung.com>
149 Rename the AArch64 tuning option and related functions to enable the
150 Newton series for the reciprocal square root to reflect its
151 approximative characteristic.
153 * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
154 function to "aarch64_emit_approx_rsqrt".
155 * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
156 AARCH64_EXTRA_TUNE_APPROX_RSQRT.
157 * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
158 (xgene1_tunings): Likewise.
159 (use_rsqrt_p): Likewise.
160 (aarch64_emit_swrsqrt): Use new function name.
161 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
162 * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
163 text explaining this option.
164 * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
166 2016-02-26 Jakub Jelinek <jakub@redhat.com>
169 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
170 complain about -mallow-movmisalign without -mvsx if
171 TARGET_ALLOW_MOVMISALIGN was not set explicitly.
173 2016-02-26 Joel Sherrill <joel@rtems.org>
175 * config.gcc: Add x86_64-*-rtems*.
176 * gcc/config/i386/rtems-64.h: New file.
178 2016-02-26 Joel Sherrill <joel@rtems.org>
180 * config.gcc: Add aarch64-*-rtems*.
181 * gcc/config/aarch64/rtems.h: New file.
183 2016-02-26 Segher Boessenkool <segher@kernel.crashing.org>
186 * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
187 shift amount using %h. Add comment.
189 2016-02-26 Richard Biener <rguenther@suse.de>
190 Jeff Law <law@redhat.com>
192 PR tree-optimization/69740
193 * cfghooks.c (remove_edge): Request loop fixups if we delete
194 an edge that might turn an irreducible loop into a natural
197 2016-02-26 Martin Jambor <mjambor@suse.cz>
200 * tree-sra.c (sra_modify_assign): Do not remove loads of
201 uninitialized aggregates to SSA_NAMEs.
203 2016-02-26 Richard Henderson <rth@redhat.com>
206 * config/s390/s390.md (risbg and risbgn splitters): Allocate new
207 pseudo in case the target rtx matches the source of the left
210 2016-02-26 Martin Jambor <mjambor@suse.cz>
213 * hsa.h (hsa_type_packed_p): Declare.
214 * hsa.c (hsa_type_packed_p): New function.
215 * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
217 (gen_hsa_insns_for_store): Use hsa_type_packed_p.
218 * hsa-brig.c (emit_basic_insn): Likewise.
220 2016-02-26 Martin Jambor <mjambor@suse.cz>
223 * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
225 (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
227 2016-02-26 Martin Jambor <mjambor@suse.cz>
229 * hsa.h (is_a_helper): New overload for hsa_op_immed for
230 hsa_op_with_type operands.
231 (hsa_unsigned_type_for_type): Declare.
232 * hsa.c (hsa_unsigned_type_for_type): New function.
233 * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
234 (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
235 the finalizer. Do not emit extra move.
237 2016-02-26 Martin Jambor <mjambor@suse.cz>
239 * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
240 atomic operations in private segment.
242 2016-02-26 Martin Jambor <mjambor@suse.cz>
244 * omp-low.c (grid_find_ungridifiable_statement): Store problematic
245 statements to wi->info. Also disallow omp simd constructs.
246 (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
247 for not gridifying. Dump special string for omp_for.
249 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
252 * config/aarch64/aarch64.c (aarch64_set_current_function):
253 Save/restore target globals when switching to
254 target_option_default_node.
256 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
259 * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
260 Return 0 if !SHIFT_COUNT_TRUNCATED.
262 2016-02-26 Jakub Jelinek <jakub@redhat.com>
263 Eric Botcazou <ebotcazou@adacore.com>
265 PR rtl-optimization/69891
266 * dse.c (scan_insn): If we can't figure out memset arguments
267 or they are non-constant, call clear_rhs_from_active_local_stores.
269 2016-02-26 Martin Liska <mliska@suse.cz>
271 * doc/extend.texi: Mention clog10, clog10f an clog10l
274 2016-02-26 Martin Liska <mliska@suse.cz>
276 * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
278 (resolve_args_picking_1): Likewise.
279 * dwarf2out.h (struct GTY): Likewise.
281 2016-02-26 Martin Liska <mliska@suse.cz>
283 * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
285 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
287 2016-02-26 Markus Trippelsdorf <markus@trippelsdorf.de>
288 Martin Liska <mliska@suse.cz>
290 * doc/install.texi: Mention --enable-valgrind-annotations.
292 2016-02-26 Richard Biener <rguenther@suse.de>
294 PR tree-optimization/69551
295 * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
296 looking through aliases adjust DECL_PT_UID to refer to the
297 ultimate alias target.
299 2016-02-25 Martin Liska <mliska@suse.cz>
302 * alloc-pool.c (after_memory_report): New variable.
303 * alloc-pool.h (base_pool_allocator ::release): Do not use
304 the infrastructure if after_memory_report.
305 * toplev.c (toplev::main): Mark after memory report.
307 2016-02-25 Richard Biener <rguenther@suse.de>
309 PR tree-optimization/48795
310 * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
312 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
315 * config/gnu-user.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o if
316 offloading is enabled and -fopenacc or -fopenmp is specified.
317 (CRTOFFLOADEND): Likewise.
318 (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
319 (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
320 * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
321 (offload_objects_file_name): New static var.
322 (tool_cleanup): Remove offload_objects_file_name file.
323 (find_offloadbeginend): Replace with ...
324 (find_crtoffloadtable): ... this.
325 (run_gcc): Remove offload_argc and offload_argv.
326 Get offload_objects_file_name from -foffload-objects=... option.
327 Read names of object files with offload from this file, pass them to
328 compile_images_for_offload_targets. Don't call find_offloadbeginend and
329 don't pass offloadbegin and offloadend to the linker. Don't pass
330 offload non-LTO files to the linker, because now they're not claimed.
332 2016-02-25 Jan Hubicka <hubicka@ucw.cz>
335 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
336 on builtin_unreachable.
338 2016-02-25 Jakub Jelinek <jakub@redhat.com>
340 PR rtl-optimization/69896
341 * regcprop.c: Include cfgrtl.h.
342 (copyprop_hardreg_forward_1): If noop_p insn uses narrower
343 than remembered mode, either delete it (if noop_move_p), or
344 treat like copy_p but not noop_p instruction.
346 2016-02-24 Jakub Jelinek <jakub@redhat.com>
349 * dwarf2out.c (gen_variable_die): Work around buggy LTO
350 - allow NULL decl for Fortran DW_TAG_common_block variables.
352 2016-02-24 Jason Merrill <jason@redhat.com>
354 * common.opt (flifetime-dse): Add -flifetime-dse=1.
356 2016-02-24 Richard Biener <rguenther@suse.de>
357 Jakub Jelinek <jakub@redhat.com>
360 * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
361 conditionally executed ops to well-defined overflow behavior.
363 2016-02-24 Jakub Jelinek <jakub@redhat.com>
366 * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
369 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
371 PR rtl-optimization/69886
372 * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
373 argument. Use it when checking validity of set instructions.
374 (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
375 (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
377 * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
378 * store-motion.c (find_moveable_store): Update
379 can_assign_to_reg_without_clobbers_p callsite.
381 2016-02-24 Richard Biener <rguenther@suse.de>
384 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
386 (record_nonwrapping_iv): Do not fall back to the low/high bound
387 for non-constant IV bases if the stmt is not always executed.
389 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
391 * config/arm/arm-cores.def (cortex-a32): New entry.
392 * config/arm/arm-tables.opt: Regenerate.
393 * config/arm/arm-tune.md: Regenerate.
394 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
395 * config/arm/t-aprofile: Handle mcpu=cortex-a32.
396 * doc/invoke.texi (ARM Options): Document cortex-a32 as value
397 for -mcpu and -mtune.
399 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
402 * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
403 * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
404 * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
405 (atomic_loaddi_1): Delete.
406 (atomic_loaddi): Rewrite expander using the above changes.
408 2016-02-24 Jakub Jelinek <jakub@redhat.com>
411 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
414 2016-02-24 Jakub Jelinek <jakub@redhat.com>
415 Richard Biener <rguenth@suse.de>
418 * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
419 set_mem_attributes if tem is SSA_NAME which got expanded
422 2016-02-24 Richard Biener <rguenther@suse.de>
424 PR tree-optimization/69907
425 * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
426 end of permutations for BB vectorization.
428 2016-02-24 Christian Bruel <christian.bruel@st.com>
430 * config/arm/arm-c.c (arm_option_override): Initialize
431 target_option_current_node.
432 * config/arm/arm.c (arm_pragma_target_parse): Replace
433 build_target_option_node call by target_option_current_node.
434 Set target_option_current_node.
437 2016-02-23 David Edelsohn <dje.gcc@gmail.com>
440 * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
441 define_insn_and_split to define_insn.
442 (zero_extendqi<mode>2_dot2): Same.
443 (extendqi<mode>2_dot): Same.
444 (extendqi<mode>2_dot2): Same.
446 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
448 * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
449 and add bypass for AES{D,E} and AESMC pairs.
450 * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
453 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
455 * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
456 series for reciprocal square root in Exynos M1.
458 2016-02-23 Martin Sebor <msebor@redhat.com>
461 * doc/extend.texi (Other Builtins): Document __builtin_alloca and
462 __builtin_alloca_with_align.
464 2016-02-23 Richard Henderson <rth@redhat.com>
466 * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
467 (ix86_register_pragmas): Remove __seg_tls.
468 * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
469 * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
470 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
471 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
472 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
473 * doc/extend.texi (__seg_tls): Remove item.
475 2016-02-23 Richard Biener <rguenther@suse.de>
477 * alloc-pool.h (struct allocation_object): Make id member
478 conditional on CHECKING_P again.
479 (get_instance): Adjust.
480 (base_pool_allocator): Likewise.
482 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
484 * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
485 (parallelize_loops): In OpenACC kernels mode, set n_threads to
487 (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
489 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
491 2016-02-23 Richard Biener <rguenther@suse.de>
493 * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
494 * bitmap.h (struct bitmap_usage): Likewise.
495 (bitmap_move): Declare.
496 * bitmap.c (register_overhead): Take size_t argument.
497 (bitmap_move): New function.
498 * df-problems.c (df_rd_transfer_function): Use bitmap_move
499 to properly account overhead.
500 * tree.c (free_node): Use tree_size.
502 2016-02-23 Jakub Jelinek <jakub@redhat.com>
505 * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
506 when inverting comparison.
509 * common.opt (Wunreachable-code): Add Warning flag.
511 2016-02-23 Mark Wielaard <mjw@redhat.com>
512 Jakub Jelinek <jakub@redhat.com>
515 * cgraphunit.c (check_global_declaration): Check main_input_filename
516 and DECL_SOURCE_FILE are not NULL.
518 2016-02-23 Martin Jambor <mjambor@suse.cz>
520 PR tree-optimization/69666
521 * tree-sra.c (sra_modify_assign): Do not attempt to create
522 default_def replacements for unscalarizable regions.
524 2016-02-20 Mark Wielaard <mjw@redhat.com>
527 * cgraphunit.c (check_global_declaration): Check level of
528 warn_unused_const_variable and main_input_filename.
529 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
530 (-Wunused-variable): For C implies -Wunused-const-variable=1.
531 (-Wunused-const-variable): Explain levels 1 and 2.
533 2016-02-22 Jakub Jelinek <jakub@redhat.com>
536 * config/i386/i386.c (decide_alg): Ensure we don't recurse with
537 identical arguments. Formatting and spelling fixes.
540 * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
545 * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
546 and m68k-devices.def.
547 * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
548 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
550 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
552 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
553 and HImode registers.
555 2016-02-22 Richard Biener <rguenther@suse.de>
557 PR tree-optimization/69882
558 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
559 preserve permutations present because of gaps.
560 (vect_supported_load_permutation_p): Always continue checking
561 permutations after vect_attempt_slp_rearrange_stmts.
563 2016-02-22 Bin Cheng <bin.cheng@arm.com>
565 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
566 min_profitable_estimate, rather than min_profitable_iters.
568 2016-02-22 Jakub Jelinek <jakub@redhat.com>
571 * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
572 SImode for last match_operand.
574 2016-02-22 Martin Liska <mliska@suse.cz>
576 * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
577 return bitsize - 1 as the return value.
579 2016-02-22 Oleg Endo <olegendo@gcc.gnu.org>
583 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
584 Handle negative shift counts.
585 * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
586 force_reg on the shift constant.
587 (lshrsi3): Likewise. Expand into lshrsi3_n* instead of lshrsi3_d.
588 (lshrsi3_d): Handle negative shift counts.
590 2016-02-22 Richard Biener <rguenther@suse.de>
591 Tom de Vries <tom@codesourcery.com>
593 * graph.c: Include dumpfile.h.
594 (print_graph_cfg): Split into three overloads.
595 * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
597 2016-02-22 Tom de Vries <tom@codesourcery.com>
599 * gdbhooks.py (class DumpFn): Add and instantiate, adding command
602 2016-02-22 Richard Biener <rguenther@suse.de>
605 * ipa-inline-transform.c (inline_call): When not updating
606 overall summaries adjust self size by the growth estimate.
607 * ipa-inline.c (inline_to_all_callers_1): Add to the callers
608 hash-set, do not update overall summaries here. Renamed from ...
609 (inline_to_all_callers): ... this which is now wrapping the
610 above and performing delayed overall summary update.
611 (early_inline_small_functions): Delay updating of the overall
614 2016-02-21 Markus Trippelsdorf <markus@trippelsdorf.de>
616 * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
619 2016-02-19 Jakub Jelinek <jakub@redhat.com>
622 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
623 :%* in %:gt() argument.
624 (greater_than_spec_func): Adjust for expecting only numbers,
625 if there are more than two numbers, compare the last two.
627 2016-02-19 Jonathan Wakely <jwakely@redhat.com>
629 * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
630 -Wnarrowing with -std.
632 2016-02-19 Jakub Jelinek <jakub@redhat.com>
635 * expr.c (store_field): Don't use bit-field path if exp is
636 COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
637 different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
638 and the assignment can be performed by bitwise copy. Formatting
642 * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
643 call copy_reg_eh_region_note_forward on before and/or after sequences
644 and remove note from insn if it no longer can throw.
647 * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
650 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
652 * config/s390/vector.md: Add missing commutative operand markers
653 to the patterns which qualify for one.
654 * config/s390/vx-builtins.md: Likewise.
656 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
658 * config/s390/vector.md (VI, VI_QHS): Add single element vector
659 types to mode iterators.
660 (vec_double): ... and mode attribute.
661 * config/s390/vx-builtins.md (non_vec_int): Likewise.
663 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
665 * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
666 Change the predicate of op2 from nonimmediate to general and let
667 reload fix it if necessary.
669 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
671 * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
673 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
675 * config/s390/s390.c (s390_expand_vcond): Use the compare operand
678 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
680 * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
681 * config/s390/s390.c (s390_expand_vec_movstr): New function.
682 * config/s390/s390.md ("movstr<P:mode>"): Call
683 s390_expand_vec_movstr.
685 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
687 * config/s390/s390.md: Add missing output modifier for operand 1
688 to print it as address properly.
690 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
692 * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
693 * config/s390/2964.md: New file.
694 * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
695 of insn grouping attributes depending on the CPU level.
696 (s390_get_unit_mask): New function.
697 (s390_sched_score): Remove the OOO from the scheduling macros.
698 Add loop to calculate a score for the instruction mix.
699 (s390_sched_reorder): Likewise plus improve debug output.
700 (s390_sched_variable_issue): Rename macros as above. Calculate
701 the unit distances after actually scheduling an insn. Improve
703 (s390_sched_init): Clear last_scheduled_unit_distance array.
704 * config/s390/s390.md: Include 2964.md.
706 2016-02-18 Jakub Jelinek <jakub@redhat.com>
709 * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
710 *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
711 *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
712 *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
713 *avx512f_<code>v8div16qi2_mask_1): New insns.
715 2016-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
718 * config/rs6000/predicates.md (fusion_gpr_addis): Revert
721 * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
722 earlyclobber from target. Use wF constraint for fused memory
724 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
726 2016-02-18 Jakub Jelinek <jakub@redhat.com>
727 Martin Liska <mliska@suse.cz>
730 * cfgexpand.c (asan_sanitize_stack_p): New function.
731 (partition_stack_vars): Use the function.
732 (expand_stack_vars): Likewise.
733 (defer_stack_allocation): Likewise.
734 (expand_used_vars): Likewise.
736 2016-02-18 Richard Biener <rguenther@suse.de>
739 * fold-const.c (operand_equal_p): Properly compare offsets for
740 IMAGPART_EXPR and ARRAY_REF.
742 2016-02-18 Nick Clifton <nickc@redhat.com>
746 * config/arm/arm.c (arm_option_override_internal): Disable
747 interworking if the target does not support thumb instructions.
748 (arm_reload_in_hi): Handle the case where a register to register
749 move needs reloading because there is no simple pattern to handle
751 (arm_reload_out_hi): Likewise.
753 2016-02-18 Richard Biener <rguenther@suse.de>
756 * match.pd: Don't use fold_binary or fold_unary for folding
759 2016-02-17 Jakub Jelinek <jakub@redhat.com>
762 * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
763 on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
764 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
765 warn on gimple_no_warning_p statements.
767 2016-02-17 Jonathan Wakely <jwakely@redhat.com>
769 * doc/extend.texi (C++ Attributes): Correct description of
770 warn_unused type attribute.
772 2016-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
774 * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
777 2016-02-17 Richard Biener <rguenther@suse.de>
779 PR rtl-optimization/69609
780 * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
781 (find_traces_1_round): When ending a trace update cached priority
783 (bb_to_key): Use cached priority when available.
784 (copy_bb): Initialize cached priority.
785 (reorder_basic_blocks_software_trace_cache): Likewise.
787 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
790 * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
792 (aarch64_comparison_operator): Break overly long line into two.
793 (aarch64_comparison_operation): Likewise.
794 * config/aarch64/aarch64.md (cstorecc4): Use
795 aarch64_comparison_operator_mode instead of
796 aarch64_comparison_operator.
797 (cstore<mode>4): Likewise.
798 (aarch64_cstore<mode>): Likewise.
799 (*cstoresi_insn_uxtw): Likewise.
800 (cstore<mode>_neg): Likewise.
801 (*cstoresi_neg_uxtw): Likewise.
803 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
806 * config/arm/predicates.md (arm_comparison_operator_mode):
808 * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
809 instead of arm_comparison_operator.
810 (*mov_negscc): Likewise.
811 (*mov_notscc): Likewise.
812 * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
813 (*thumb2_mov_negscc): Likewise.
814 (*thumb2_mov_negscc_strict_it): Likewise.
815 (*thumb2_mov_notscc): Likewise.
816 (*thumb2_mov_notscc_strict_it): Likewise.
818 2016-02-17 Wilco Dijkstra <wdijkstr@arm.com>
820 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
823 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
825 * config/visium/visium.c (machine_libfunc_index): New enum.
826 (machine_libfuncs): New structure.
827 (visium_libfuncs): New static variable.
828 (TARGET_INIT_LIBFUNCS): Define to...
829 (visium_init_libfuncs): ...this. New function.
830 (expand_block_move_4): Use the appropriate libfunc.
831 (expand_block_move_2): Likewise.
832 (expand_block_move_1): Likewise.
833 (expand_block_set_4): Likewise.
834 (expand_block_set_2): Likewise.
835 (expand_block_set_1): Likewise.
836 (visium_trampoline_init): Likewise.
838 2016-02-17 Nick Clifton <nickc@redhat.com>
840 * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
841 TI's devices.csv file as of March 2016.
843 2016-02-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
846 * opts-global.c (handle_common_deferred_options): Introduce and
847 initialize two global variables to remember command-line options
848 specifying a stack-limiting register.
849 * opts.h: Add extern declarations of the two new global variables.
850 * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
851 variable based on the values of the two new global variables.
853 2016-02-16 Jakub Jelinek <jakub@redhat.com>
856 * common.opt (Wnonnull-compare): New warning.
857 * doc/invoke.texi (-Wnonnull): Remove text about comparison
858 of arguments against NULL.
859 (-Wnonnull-compare): Document.
860 * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
861 * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
862 * passes.def (pass_warn_nonnull_compare): Add.
863 * gimple-ssa-nonnull-compare.c: New file.
865 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
867 * config/aarch64/aarch64.c (cortexa57_tunings): Remove
868 AARCH64_EXTRA_TUNE_RECIP_SQRT.
870 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
872 * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
873 reciprocal sqrt for -mlow-precision-recip-sqrt.
875 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
876 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
878 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
879 always use lane loads to construct non-constant vectors.
881 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
883 * config/aarch64/aarch64.md
884 (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
885 constraints for operand 3.
886 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
888 2016-02-16 Jakub Jelinek <jakub@redhat.com>
889 Richard Biener <rguenther@suse.de>
891 PR tree-optimization/69820
892 * tree-vect-patterns.c (type_conversion_p): Return false if
893 *orig_type is unsigned single precision or boolean.
894 (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
897 2016-02-16 Jakub Jelinek <jakub@redhat.com>
899 PR rtl-optimization/69764
900 PR rtl-optimization/69771
901 * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
902 op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
904 2016-02-16 Richard Biener <rguenther@suse.de>
906 PR tree-optimization/69776
907 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
909 (indirect_refs_may_alias_p): Likewise.
910 (refs_may_alias_p_1): Pass alias sets as from ao_ref.
911 * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
913 * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
914 (optimize_stmt): For redundant store discovery do not allow tbaa.
916 2016-02-16 Bernd Schmidt <bschmidt@redhat.com>
918 PR tree-optimization/69714
919 * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
920 Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
922 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
924 * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
925 * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
926 (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
927 * config/arc/arc.c (arc_init): Check FPU options.
928 (get_arc_condition_code): Handle new CC_FPU* modes.
929 (arc_select_cc_mode): Likewise.
930 (arc_conditional_register_usage): Allow 64 bit datum into even-odd
931 register pair only. Allow access for ARCv2 accumulator.
932 (gen_compare_reg): Whenever we have FPU support use FPU compare
934 (arc_reorg): Don't generate brcc insns when FPU compare
935 instructions are involved.
936 * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
937 (TARGET_OPTFPE): Add condition when ARC EM can use optimized
938 floating point emulation.
939 (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
940 (REVERSE_CONDITION): Add new CC_FPU* modes.
941 (TARGET_FP_SP_BASE): Define.
942 (TARGET_FP_DP_BASE): Likewise.
943 (TARGET_FP_SP_FUSED): Likewise.
944 (TARGET_FP_DP_FUSED): Likewise.
945 (TARGET_FP_SP_CONV): Likewise.
946 (TARGET_FP_DP_CONV): Likewise.
947 (TARGET_FP_SP_SQRT): Likewise.
948 (TARGET_FP_DP_SQRT): Likewise.
949 (TARGET_FP_DP_AX): Likewise.
950 * config/arc/arc.md (ARCV2_ACC): New constant.
951 (type): New fpu type attribute.
952 (SDF): Conditional iterator.
953 (cstore<mode>, cbranch<mode>): Change expand condition.
954 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
955 handles FPU/FPX cases as well.
956 * config/arc/arc.opt (mfpu): New option.
957 * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
959 (adddf3, muldf3, subdf3): Removed.
960 * config/arc/predicates.md (proper_comparison_operator): Recognize
962 * config/arc/fpu.md: New file.
963 * doc/invoke.texi (ARC Options): Document mfpu option.
965 2016-02-16 Richard Biener <rguenther@suse.de>
967 PR rtl-optimization/69291
968 * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
969 noce_operand_ok check.
971 2016-02-16 Tom de Vries <tom@codesourcery.com>
974 * omp-low.c (simd_clone_create): Remove call to
975 symtab->call_cgraph_insertion_hooks.
977 2016-02-16 Jakub Jelinek <jakub@redhat.com>
979 PR tree-optimization/69802
980 * tree-ssa-reassoc.c (update_range_test): If op is
981 SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
982 op == 1 test of precision 1 integral op, otherwise handle
983 that case as op itself. Fix up formatting.
984 (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
987 2016-02-16 Richard Biener <rguenther@suse.de>
989 PR tree-optimization/69586
990 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
991 types for conversion sources.
993 2016-02-16 Richard Biener <rguenther@suse.de>
996 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
999 2016-02-16 Alan Modra <amodra@gmail.com>
1002 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
1003 (p8_mtvsrd_df, p8_mtvsrd_sf): New.
1004 (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
1006 (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
1007 (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
1008 (p8_fmrgow_<mode>): Likewise.
1009 (reload_vsx_from_gpr<mode>): Make clobber IF. Adjust for above
1011 (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
1012 (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
1013 to use movdi_internal64. Remove op0_di.
1014 * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
1016 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
1018 Add support for the FCCMP insn types
1020 * config/aarch64/aarch64.md (fccmp): Change insn type.
1022 * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
1023 * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
1024 * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
1025 * config/arm/xgene1.md (xgene1_fcmp): Likewise.
1026 * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
1027 * config/arm/types.md (fccmps): Add new insn type.
1030 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
1032 * alias.c (get_alias_set): Fix a typo in comment.
1034 2016-02-15 Richard Biener <rguenther@suse.de>
1036 PR tree-optimization/69595
1037 * match.pd: Complete range test simplification to true.
1039 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
1041 PR rtl-optimization/69648
1042 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
1043 pic_offset_table_rtx.
1045 PR rtl-optimization/69752
1046 * ira.c (update_equiv_regs): When looking for more than a single SET,
1047 also take other side effects into account.
1049 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
1051 * config/s390/s390.c (s390_function_profiler): Add a new sequence
1052 for z900+ CPUs in 31-bit mode.
1054 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
1056 * common/config/s390/s390-common.c (s390_supports_split_stack):
1058 (TARGET_SUPPORTS_SPLIT_STACK): New macro.
1059 * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
1060 * config/s390/s390.c (struct machine_function): New field
1061 split_stack_varargs_pointer.
1062 (s390_register_info): Mark r12 as clobbered if it'll be used as temp
1063 in s390_emit_prologue.
1064 (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
1066 (morestack_ref): New global.
1067 (SPLIT_STACK_AVAILABLE): New macro.
1068 (s390_expand_split_stack_prologue): New function.
1069 (s390_live_on_entry): New function.
1070 (s390_va_start): Use split-stack vararg pointer if appropriate.
1071 (s390_asm_file_end): Emit the split-stack note sections.
1072 (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
1073 * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
1074 (UNSPECV_SPLIT_STACK_CALL): New unspec.
1075 (UNSPECV_SPLIT_STACK_DATA): New unspec.
1076 (split_stack_prologue): New expand.
1077 (split_stack_space_check): New expand.
1078 (split_stack_data): New insn.
1079 (split_stack_call): New expand.
1080 (split_stack_call_*): New insn.
1081 (split_stack_cond_call): New expand.
1082 (split_stack_cond_call_*): New insn.
1084 2016-02-15 Richard Biener <rguenther@suse.de>
1086 PR tree-optimization/69783
1087 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
1088 Add trivially correct cases.
1090 2016-02-15 Tom de Vries <tom@codesourcery.com>
1093 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
1095 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
1097 2016-02-15 Richard Biener <rguenther@suse.de>
1099 PR tree-optimization/69776
1100 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
1101 * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
1102 indicate whether we can use TBAA to disambiguate against stores.
1103 Use alias-set zero if not.
1104 (visit_reference_op_store): Do not use TBAA when looking up
1106 * tree-ssa-pre.c (compute_avail): Use TBAA here.
1107 (eliminate_dom_walker::before_dom_children): But not when looking
1108 up redundant stores.
1110 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
1112 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
1114 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
1116 * config/i386/znver1.md
1117 (znver1_pop, znver1_pop_mem,
1118 znver1_load_imov_double_store,
1119 znver1_load_imov_direct_store,
1120 znver1_load_imov_direct_load,
1121 znver1_load_imov_double_load): Add new.
1122 (znver1_insn, znver1_insn_load): Add icmov type.
1124 znver1_sseavx_fma_load,
1126 znver1_avx256_fma_load): Fix pipe usage.
1128 2016-02-14 Alan Modra <amodra@gmail.com>
1131 * reloads.c (find_reloads_address_1): For pre/post-inc/dec
1132 with an invalid hard reg, reload just the reg not the entire
1133 pre/post-inc/dec address expression.
1135 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
1138 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
1139 fixed R1_REG scratch reg.
1140 (sibcall_value_pcrel_fdpic): Likewise.
1142 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
1146 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
1148 2016-02-12 Walter Lee <walt@tilera.com>
1150 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
1151 * config/tilegx/t-tilegx: Likewise.
1153 2016-02-12 David Malcolm <dmalcolm@redhat.com>
1156 * diagnostic-show-locus.c (struct line_span): New struct.
1157 (layout::get_first_line): Delete.
1158 (layout::get_last_line): Delete.
1159 (layout::get_num_line_spans): New member function.
1160 (layout::get_line_span): Likewise.
1161 (layout::print_heading_for_line_span_index_p): Likewise.
1162 (layout::get_expanded_location): Likewise.
1163 (layout::calculate_line_spans): Likewise.
1164 (layout::m_first_line): Delete.
1165 (layout::m_last_line): Delete.
1166 (layout::m_line_spans): New field.
1167 (layout::layout): Update comment. Replace m_first_line and
1168 m_last_line with m_line_spans, replacing their initialization
1169 with a call to calculate_line_spans.
1170 (diagnostic_show_locus): When printing source lines and
1171 annotations, rather than looping over a single span
1172 of lines, instead loop over each line_span within
1173 the layout, with an inner loop over the lines within them.
1174 Call the context's start_span callback when changing line spans.
1175 * diagnostic.c (diagnostic_initialize): Initialize start_span.
1176 (diagnostic_build_prefix): Break out the building of the location
1177 part of the string into...
1178 (diagnostic_get_location_text): ...this new function, rewriting
1179 it from nested ternary expressions to a sequence of "if"
1181 (default_diagnostic_start_span_fn): New function.
1182 * diagnostic.h (diagnostic_start_span_fn): New typedef.
1183 (diagnostic_context::start_span): New field.
1184 (default_diagnostic_start_span_fn): New prototype.
1186 2016-02-12 David Malcolm <dmalcolm@redhat.com>
1189 * gcc.c (driver::finalize): Fix cleanup of "specs".
1191 2016-02-12 David Malcolm <dmalcolm@redhat.com>
1195 * gcc.c (driver::driver): Initialize m_option_suggestions.
1196 (driver::~driver): Clean up m_option_suggestions.
1197 (suggest_option): Convert to...
1198 (driver::suggest_option): ...this, and split out into
1199 driver::build_option_suggestions and find_closest_string.
1200 (driver::build_option_suggestions): New function, from
1201 first half of suggest_option. Special-case
1202 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
1203 the sanitizer_opts array. For options of enum types, add the
1204 various enum values to the candidate strings.
1205 (driver::handle_unrecognized_options): Remove "const".
1206 * gcc.h (driver::handle_unrecognized_options): Likewise.
1207 (driver::build_option_suggestions): New decl.
1208 (driver::suggest_option): New decl.
1209 (driver::m_option_suggestions): New field.
1210 * opts-common.c (add_misspelling_candidates): New function.
1211 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
1212 and make non-static.
1213 * opts.h (sanitizer_opts): New array decl.
1214 (add_misspelling_candidates): New function decl.
1215 * spellcheck.c (find_closest_string): New function.
1216 * spellcheck.h (find_closest_string): New function decl.
1218 2016-02-12 Jakub Jelinek <jakub@redhat.com>
1220 PR rtl-optimization/69764
1221 PR rtl-optimization/69771
1222 * optabs.c (expand_binop_directly): For shift_optab_p, force
1223 convert_modes with VOIDmode if xop1 has VOIDmode.
1225 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
1228 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
1229 to correctly determine instrumentation thunks.
1231 2016-02-12 Jakub Jelinek <jakub@redhat.com>
1234 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
1235 type by reference, force lhs on the call.
1238 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
1239 Compute retval and retbnd early in all cases if split_part_return_p
1240 and return_bb is not EXIT. Remove all clobber stmts and reset
1241 all debug stmts that refer to SSA_NAMEs defined in split part,
1242 except if it is retval, in that case replace the old retval with the
1243 lhs of the call to the split part.
1245 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
1248 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
1251 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
1252 whose result is used in PHI.
1253 (maybe_optimize_range_tests): Likewise.
1254 (final_range_test_p): Likweise.
1256 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
1259 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
1260 whose result is used in PHI.
1261 (maybe_optimize_range_tests): Likewise.
1262 (final_range_test_p): Likweise.
1264 2016-02-12 Jakub Jelinek <jakub@redhat.com>
1266 * cgraph.c: Spelling fixes - behaviour -> behavior and
1267 neighbour -> neighbor.
1268 * target.def: Likewise.
1269 * sel-sched.c: Likewise.
1270 * config/mips/mips.c: Likewise.
1271 * config/arc/arc.md: Likewise.
1272 * config/arm/cortex-a57.md: Likewise.
1273 * config/arm/arm.c: Likewise.
1274 * config/arm/neon.md: Likewise.
1275 * config/arm/arm-c.c: Likewise.
1276 * config/vms/vms-c.c: Likewise.
1277 * config/s390/s390.c: Likewise.
1278 * config/i386/znver1.md: Likewise.
1279 * config/i386/i386.c: Likewise.
1280 * config/ia64/hpux-unix2003.h: Likewise.
1281 * config/msp430/msp430.md: Likewise.
1282 * config/rx/rx.c: Likewise.
1283 * config/rx/rx.md: Likewise.
1284 * config/aarch64/aarch64-simd.md: Likewise.
1285 * config/aarch64/aarch64.c: Likewise.
1286 * config/nvptx/nvptx.c: Likewise.
1287 * config/bfin/bfin.c: Likewise.
1288 * config/cris/cris.opt: Likewise.
1289 * config/rs6000/rs6000.c: Likewise.
1290 * target.h: Likewise.
1291 * spellcheck.c: Likewise.
1292 * ira-build.c: Likewise.
1293 * tree-inline.c: Likewise.
1294 * builtins.c: Likewise.
1295 * lra-constraints.c: Likewise.
1296 * explow.c: Likewise.
1297 * hwint.h: Likewise.
1298 * targhooks.c: Likewise.
1299 * tree-vect-data-refs.c: Likewise.
1301 * doc/tm.texi: Likewise.
1302 * doc/extend.texi: Likewise.
1303 * doc/install.texi: Likewise.
1304 * doc/md.texi: Likewise.
1305 * tree-ssa-tail-merge.c: Likewise.
1306 * sched-int.h: Likewise.
1307 * match.pd: Likewise.
1308 * sched-ebb.c: Likewise.
1309 * target.def (omit_struct_return_reg): Likewise.
1310 * gimple-ssa-isolate-paths.c: Likewise.
1311 (find_implicit_erroneous_behaviour): Renamed to...
1312 (find_implicit_erroneous_behavior): ... this.
1313 (find_explicit_erroneous_behaviour): Renamed to...
1314 (find_explicit_erroneous_behavior): ... this.
1315 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
1317 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
1319 PR rtl-optimization/64682
1320 PR rtl-optimization/69567
1321 PR rtl-optimization/69737
1322 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
1323 in I2 as well, just lose it.
1325 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1327 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
1329 (aarch64_last_printed_tune_string): Likewise.
1330 (aarch64_declare_function_name): Only output .arch assembler
1331 directive if it will be different from the previously output
1332 directive. Same for .tune comment but only if -dA is set.
1333 (aarch64_start_file): New function.
1334 (TARGET_ASM_FILE_START): Define.
1336 2016-02-11 David Malcolm <dmalcolm@redhat.com>
1339 * Makefile.in (PLUGIN_HEADERS): Add params.list.
1341 2016-02-11 Jakub Jelinek <jakub@redhat.com>
1344 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
1345 -Wmaybe-uninitialized warning.
1347 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
1350 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
1352 2016-02-11 Richard Biener <rguenther@suse.de>
1354 PR rtl-optimization/69291
1355 * ifcvt.c (noce_try_store_flag_constants): Do not allow
1356 subexpressions affected by changing the result.
1358 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
1361 * lra-constraints.c (curr_insn_transform): Find in/out operands
1362 for secondary memory moves. Update dups.
1364 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
1366 PR tree-optimization/69652
1367 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
1368 to nested loop, did source re-formatting, skip debug statements,
1369 add check on statement with volatile operand, remove dead scalar
1372 2016-02-10 Jakub Jelinek <jakub@redhat.com>
1373 Patrick Palka <ppalka@gcc.gnu.org>
1377 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
1378 calls if the return type is TREE_ADDRESSABLE.
1379 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
1380 * ipa-split.c (split_function): Fix doubled "we" in comment.
1381 Use void return type for the split part even if
1382 !split_point->split_part_set_retval.
1384 2016-02-10 Bin Cheng <bin.cheng@arm.com>
1386 PR tree-optimization/68021
1387 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
1388 when computing the value of biv cand by itself.
1390 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
1392 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
1393 (cortexa57_tunings): Likewise.
1394 (cortexa72_tunings): Likewise.
1395 (arch_macro_fusion_pair_p): Add support for AES fusion.
1396 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
1397 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
1398 Allow virtual registers before reload so early scheduling works.
1399 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
1400 correct latency and pipeline.
1401 (cortex_a57_crypto_complex): Likewise.
1402 (cortex_a57_crypto_xor): Likewise.
1403 (define_bypass): Add AES bypass.
1405 2016-02-10 Richard Biener <rguenther@suse.de>
1407 PR tree-optimization/69726
1408 * passes.def: Add DCE pass before late uninit.
1409 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
1410 really fixup if-conversions job.
1412 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
1414 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
1415 (arm_cortex_a57_tune): Likewise.
1416 (aarch_macro_fusion_pair_p): Add support for AES fusion.
1417 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
1419 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
1421 * timevar.def (TV_PHASE_DBGINFO): Delete.
1422 (TV_PHASE_CHECK_DBGINFO): Likewise.
1423 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
1425 2016-02-10 Richard Biener <rguenther@suse.de>
1427 PR tree-optimization/69719
1428 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
1429 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
1431 2016-02-09 Andrew Pinski <apinski@cavium.com>
1434 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
1435 get_vcond_mask_icode returns false.
1437 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
1440 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
1441 an ADDIS that adds a pointer to a large constant that sets the
1442 upper16 bits with a load operation.
1444 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
1447 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
1449 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
1451 (vzipq_s16): Likewise.
1452 (vzipq_s32): Likewise.
1453 (vzipq_f32): Likewise.
1454 (vzipq_u8): Likewise.
1455 (vzipq_u16): Likewise.
1456 (vzipq_u32): Likewise.
1457 (vzipq_p8): Likewise.
1458 (vzipq_p16): Likewise.
1460 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
1463 * config/arm/arm.c (neon_endian_lane_map): New function.
1464 (neon_vector_pair_endian_lane_map): New function.
1465 (arm_evpc_neon_vuzp): Allow for big endian lane order.
1466 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
1468 (vuzpq_s16): Likewise.
1469 (vuzpq_s32): Likewise.
1470 (vuzpq_f32): Likewise.
1471 (vuzpq_u8): Likewise.
1472 (vuzpq_u16): Likewise.
1473 (vuzpq_u32): Likewise.
1474 (vuzpq_p8): Likewise.
1475 (vuzpq_p16): Likewise.
1477 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
1480 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
1483 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
1485 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
1486 truncate const_int operand 1 to QImode.
1488 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
1490 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
1491 corresponding to an abnormal edge.
1493 2016-02-09 Tom de Vries <tom@codesourcery.com>
1495 PR tree-optimization/69599
1496 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
1498 (find_func_aliases_for_builtin_call, find_func_clobbers)
1499 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
1502 2016-02-09 Richard Biener <rguenther@suse.de>
1504 PR tree-optimization/69715
1505 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
1506 LHS on calls as non-rewritable.
1508 2016-02-09 Tom de Vries <tom@codesourcery.com>
1511 * lto-wrapper.c (append_diag_options): New function.
1512 (compile_offload_image): Call append_diag_options.
1514 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
1517 * doc/extend.texi (Flag Output Operands): Correct sectioning.
1518 Minor copy-edit to fix verb tenses.
1520 2016-02-08 Jakub Jelinek <jakub@redhat.com>
1522 PR tree-optimization/69209
1523 * ipa-split.c (split_function): If split part is not
1524 returning retval, retval has gimple type but is not
1525 gimple value, force it into a SSA_NAME first.
1527 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
1529 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
1532 2016-02-08 Jason Merrill <jason@redhat.com>
1535 * convert.c (convert_to_integer_1): Check dofold on truncation
1537 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
1538 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
1539 Rename from *_nofold.
1540 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
1541 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
1543 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
1546 * tree.c (build_common_tree_nodes): Remove short_double argument.
1547 All callers changed.
1548 * tree.h (build_common_tree_nodes): Adjust declaration.
1549 * doc/invoke.texi (-fshort-double): Remove documentation.
1550 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
1551 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
1552 * lto-wrapper.c (merge_and_complain, append_compiler_options)
1553 (append_linker_options): Don't handle OPT_fshort_double.
1555 PR rtl-optimization/68730
1556 * lra-remat.c (insn_to_cand_activation): New static variable.
1557 (lra_remat): Allocate and free it.
1558 (create_cand): New arg activation. Initialize a field in
1559 insn_to_cand_activation if it is nonnull.
1560 (create_cands): Pass the activation insn to create_cand when making
1561 a candidate involving an output reload. Reorganize code a little.
1562 (do_remat): Keep track of active status of candidates in a separate
1565 2016-02-08 Richard Biener <rguenther@suse.de>
1567 PR tree-optimization/69719
1568 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
1569 Properly use absolute of the difference of the two offsets to
1570 compare or adjust the segment length.
1572 2016-02-08 Richard Biener <rguenther@suse.de>
1573 Jeff Law <law@redhat.com>
1576 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
1577 types for anonymous SSA names.
1579 2016-02-08 Richard Biener <rguenther@suse.de>
1581 PR rtl-optimization/69274
1582 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
1584 2016-02-08 Jeff Law <law@redhat.com>
1586 PR tree-optimization/65917
1587 * tree-ssa-dom.c (record_temporary_equivalences): Record both
1588 equivalences from if (x == y) style conditionals.
1589 (loop_depth_of_name): Remove.
1590 (record_equality): Remove loop depth check.
1591 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
1592 (const_and_copies::record_const_or_copy_raw): New member function.
1593 * tree-ssa-scopedtables.c
1594 (const_and_copies::record_const_or_copy_raw): New, factored out of
1595 (const_and_copies::record_const_or_copy): Call new member function.
1597 2016-02-05 Jeff Law <law@redhat.com>
1599 PR tree-optimization/68541
1600 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
1601 (count_stmts_in_block): New function.
1602 (poor_ifcvt_candidate_code): Likewise.
1603 (is_feasible_trace): Add some heuristics to determine when path
1604 splitting is profitable.
1605 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
1606 is a diamond with a single exit.
1608 2016-02-05 Martin Sebor <msebor@redhat.com>
1611 * doc/invoke.texi: Update -Wplacement-new to take an optional
1614 2016-02-06 Richard Henderson <rth@redhat.com>
1617 * tree.c (tree_nop_conversion_p): Do not strip casts into or
1618 out of non-standard address spaces.
1620 2016-02-05 Jakub Jelinek <jakub@redhat.com>
1622 PR rtl-optimization/69691
1623 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
1625 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
1627 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
1628 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
1629 (*ieee128_mfvsrd_64bit): Likewise.
1630 (*ieee128_mfvsrd_32bit): Likewise.
1632 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
1636 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
1638 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
1639 instrumented_version.
1641 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
1643 * doc/invoke.texi (Optimize Options): In table of --param options
1644 rename second occurrence of tracer-min-branch-ratio to
1645 tracer-min-branch-probability, rename
1646 tracer-min-branch-ratio-feedback to
1647 tracer-min-branch-probability-feedback and clarify description,
1648 rename sched-spec-state-edge-prob-cutoff to
1649 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
1650 to selsched-insns-to-rename, rename lto-minpartition to
1651 lto-min-partition, delete reorder-blocks-duplicate and
1652 reorder-blocks-duplicate-feedback.
1654 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1656 * config/s390/s390.c (s390_register_info_set_ranges): Remove
1659 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
1661 * doc/extend.texi: S/390: Correct some typos.
1663 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1665 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
1667 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1670 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
1671 (s390_register_info_gprtofpr): Use new macros above.
1672 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
1674 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
1675 its name. Adjust restore and save gpr ranges.
1676 (s390_register_info_set_ranges): New function.
1677 (s390_register_info): Use new macros above. Call
1678 s390_register_info_set_ranges.
1679 (s390_optimize_register_info): Likewise.
1680 (s390_hard_regno_rename_ok): Use new macros.
1681 (s390_hard_regno_scratch_ok): Likewise.
1682 (s390_emit_epilogue): Likewise.
1683 (s390_can_use_return_insn): Likewise.
1684 (s390_optimize_prologue): Likewise.
1685 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
1687 2016-02-05 Jakub Jelinek <jakub@redhat.com>
1690 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
1692 (ix86_option_override_internal): Disable TARGET_STV even for
1693 -m{incoming,preferred}-stack-boundary=3.
1695 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1697 * config.gcc: Mark deprecated rtems targets as obsolete.
1699 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
1701 PR rtl-optimization/64682
1702 PR rtl-optimization/69567
1703 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
1704 before I2 only if the register is both used and set in I2.
1706 2016-02-04 DJ Delorie <dj@redhat.com>
1708 * config/msp430/msp430.c (msp430_start_function): Add function type.
1710 2016-02-04 Jakub Jelinek <jakub@redhat.com>
1713 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
1715 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
1717 PR rtl-optimization/69577
1719 2015-10-29 Richard Henderson <rth@redhat.com>
1723 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
1724 sse check to the exact conditions of PR 67609.
1726 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
1729 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
1730 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
1731 not allowed into the traditional Altivec registers.
1732 (movtd_64bit_nodm): Likewise.
1733 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
1735 2016-02-04 David Malcolm <dmalcolm@redhat.com>
1737 * config/aarch64/cortex-a57-fma-steering.c
1738 (aarch64_register_fma_steering): Remove "static" from arguments
1741 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
1744 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
1747 2016-02-04 Mike Frysinger <vapier@gentoo.org>
1749 * doc/invoke.texi: Delete -mno-fma4.
1751 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
1753 PR rtl-optimization/69577
1754 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
1755 (find_subregs_of_mode): Update accordingly. Iterate over partial
1758 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
1760 * config/arm/arm-protos.h (neon_reinterpret): Remove.
1761 * config/arm/arm.c (neon_reinterpret): Remove.
1762 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
1763 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
1764 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
1765 vreinterpretti): Remove.
1766 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
1767 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
1768 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
1769 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
1770 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
1771 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
1772 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
1773 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
1774 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
1775 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
1776 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
1777 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
1778 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
1779 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
1780 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
1781 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
1782 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
1783 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
1784 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
1785 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
1786 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
1787 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
1788 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
1789 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
1790 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
1791 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
1792 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
1793 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
1794 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
1795 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
1796 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
1797 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
1798 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
1799 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
1800 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
1801 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
1802 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
1803 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
1804 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
1805 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
1806 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
1807 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
1808 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
1809 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
1810 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
1811 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
1812 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
1813 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
1814 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
1815 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
1816 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
1817 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
1818 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
1819 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
1820 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
1821 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
1822 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
1823 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
1824 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
1825 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
1826 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
1827 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
1828 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
1829 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
1830 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
1831 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
1832 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
1833 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
1834 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
1835 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
1836 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
1837 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
1838 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
1839 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
1840 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
1841 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
1842 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
1843 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
1844 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
1845 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
1846 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
1847 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
1848 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
1849 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
1850 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
1851 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
1852 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
1853 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
1854 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
1855 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
1856 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
1857 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
1858 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
1859 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
1860 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
1861 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
1862 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
1863 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
1864 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
1865 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
1866 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
1867 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
1868 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
1870 2016-02-04 Martin Liska <mliska@suse.cz>
1873 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
1874 that are gimple_store_p.
1875 (maybe_instrument_call): Likewise.
1877 2016-02-04 Bin Cheng <bin.cheng@arm.com>
1879 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
1880 register scaling out of memory reference and comment why.
1882 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1886 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
1887 folding the source of a SET.
1889 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1893 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
1894 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
1896 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
1900 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
1903 2016-02-04 Christian Bruel <christian.bruel@st.com>
1905 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
1906 * config/arm/arm.c (arm_set_current_function): Likewise.
1908 2016-02-04 Jakub Jelinek <jakub@redhat.com>
1909 Ilya Enkovich <enkovich.gnu@gmail.com>
1910 H.J. Lu <hongjiu.lu@intel.com>
1913 * config/i386/i386.c (convert_scalars_to_vector): Remove
1914 stack alignment fixes.
1915 (ix86_option_override_internal): Disable TARGET_STV if stack
1916 might not be aligned enough.
1917 (ix86_minimum_alignment): Assert that TARGET_STV is false.
1919 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
1921 * gcc/config/i386/x86-tune.def: Disable default prefetching
1924 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
1925 Vladimir Makarov <vmakarov@redhat.com>
1928 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
1929 in validating fused toc addresses.
1931 2016-02-03 Jakub Jelinek <jakub@redhat.com>
1934 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
1935 range->m_caret fields if range->m_show_caret_p is false.
1938 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
1939 Force oldval into register if it does not satisfy reg_or_short_operand
1940 predicate. Fix up formatting.
1942 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
1943 Alexandre Oliva <aoliva@redhat.com>
1946 * lra-constraints.c (simplify_operand_subreg): Check additionally
1947 address validity after potential reloading.
1948 (process_address_1): Check insns validity. In case of failure do
1951 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
1954 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
1957 2016-02-02 Jakub Jelinek <jakub@redhat.com>
1959 * wide-int.cc (canonize_uhwi): New function.
1960 (wi::divmod_internal): Use it.
1962 2016-02-02 James Norris <jnorris@codesourcery.com
1964 * gimplify.c (omp_notice_variable): Add usage check.
1966 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
1968 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
1969 like LE, GE, LT, GT when emitting relational operator.
1971 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
1973 * ira-costs.c (find_costs_and_classes): Add extra argument.
1974 * target.def (ira_change_pseudo_allocno_class): Add parameter.
1975 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
1976 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
1977 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
1978 Add best_class parameter, and return it if not ALL_REGS.
1979 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
1981 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
1984 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
1986 * config/aarch64/aarch64.c
1987 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
1988 (aarch64_ira_change_pseudo_allocno_class): New function.
1990 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
1993 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
1995 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1997 * config/avr/avr.c (avr_option_override): Set
1998 PARAM_ALLOW_STORE_DATA_RACES to 1.
2000 2016-02-02 Richard Biener <rguenther@suse.de>
2002 PR tree-optimization/69595
2003 * match.pd: Add range test simplifications to true/false.
2005 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
2007 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
2008 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
2011 2016-02-02 Richard Biener <rguenther@suse.de>
2013 PR tree-optimization/69606
2014 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
2015 info on the result before moving a stmt.
2017 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
2020 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
2021 branch with vector comparison.
2022 * config/i386/sse.md (VI48_AVX): New mode iterator.
2023 (define_expand "cbranch<mode>4): Add support for conditional branch
2024 with vector comparison.
2025 * tree-vect-loop.c (optimize_mask_stores): New function.
2026 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
2027 has_mask_store field of vect_info.
2028 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
2029 vectorized loops having masked stores after vec_info destroy.
2030 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
2031 correspondent macros.
2032 (optimize_mask_stores): Add prototype.
2034 2016-02-02 Alan Modra <amodra@gmail.com>
2037 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
2040 2016-02-02 Alan Modra <amodra@gmail.com>
2043 * config/rs6000/rs6000.c (need_toc_init): New var, set it
2044 whenever toc_label_name used.
2045 (rs6000_file_start): Don't set up toc section here,
2046 (rs6000_output_function_epilogue): do so here instead,
2047 (rs6000_xcoff_file_start): and here.
2048 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
2049 (load_toc_aix_di): Likewise.
2051 2016-02-01 Jakub Jelinek <jakub@redhat.com>
2053 PR rtl-optimization/69592
2054 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
2055 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
2056 (num_sign_bit_copies_binary_arith_p): New inline function.
2057 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
2059 2016-02-01 Jeff Law <law@redhat.com>
2061 PR tree-optimization/69580
2062 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
2063 * tree-ssa-threadbackward.c
2064 (fsm_find_control_statement_thread_paths): Do not try to walk
2065 through large PHI nodes.
2067 2016-02-01 Jakub Jelinek <jakub@redhat.com>
2069 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
2070 when count is incremented above limit, don't analyze further
2073 * omp-low.c (oacc_parse_default_dims): Avoid
2074 -Wsign-compare warning, make sure value fits into int
2075 rather than just unsigned int.
2077 2016-02-01 Bin Cheng <bin.cheng@arm.com>
2079 PR tree-optimization/67921
2080 * fold-const.c (split_tree): New parameters. Convert pointer
2081 type variable part to proper type before negating.
2082 (fold_binary_loc): Pass new arguments to split_tree.
2084 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
2086 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
2087 (nvptx_goacc_validate_dims): Extend to handle global defaults.
2088 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
2089 * doc/tm.texti: Rebuilt.
2090 * doc/invoke.texi (fopenacc-dim): Document.
2091 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
2092 (append_compiler_options): Likewise.
2093 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
2094 (oacc_parse_default_dims): New.
2095 (oacc_validate_dims): Add USED arg. Select non-unity default when
2097 (oacc_loop_fixed_partitions): Return mask of used partitions.
2098 (oacc_loop_auto_partitions): Emit dump info.
2099 (oacc_loop_partition): Return mask of used partitions.
2100 (execute_oacc_device_lower): Parse default dimension arg. Adjust
2101 loop partitioning and validation calls.
2103 2016-02-01 Richard Biener <rguenther@suse.de>
2106 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
2108 2016-02-01 Richard Biener <rguenther@suse.de>
2110 PR tree-optimization/69574
2111 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
2112 of asserting return chrec_dont_know.
2114 2016-02-01 Martin Liska <mliska@suse.cz>
2116 * mem-stats-traits.h: Add copyright header.
2117 * mem-stats.h: Likewise.
2119 2016-02-01 Richard Biener <rguenther@suse.de>
2121 PR tree-optimization/69579
2122 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
2123 Do not propagate through abnormal PHI results.
2125 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
2127 * postreload.c (reload_cse_simplify): Remove dead code.
2129 2016-02-01 Jakub Jelinek <jakub@redhat.com>
2131 PR rtl-optimization/69570
2132 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
2133 if there is more than one set, not if there is a single set.
2135 2016-02-01 Richard Henderson <rth@redhat.com>
2138 * combine.c (make_compound_operation): When looking through a
2139 subreg, make sure to re-extend to the width of the outer mode.
2141 2016-01-30 Jakub Jelinek <jakub@redhat.com>
2143 PR tree-optimization/69546
2144 * wide-int.cc (wi::divmod_internal): For unsigned division
2145 where both operands fit into uhwi, if o1 is 1 and o0 has
2146 msb set, if divident_prec is larger than bits per hwi,
2147 clear another quotient word and return 2 instead of 1.
2148 Similarly for remainder with msb in HWI set, if dividend_prec
2149 is larger than bits per hwi.
2151 2016-01-29 Martin Jambor <mjambor@suse.cz>
2153 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
2154 Use short lowercase names.
2155 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
2156 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
2157 acq_rel one. Protect warning agains segfaults if
2158 get_memory_order_name returns NULL.
2159 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
2160 with release semantics. Do not warn if get_memory_order already did.
2161 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
2162 semantics. Fix check for relaxed or acquire semantics. Do not warn
2163 if get_memory_order already did.
2165 2016-01-29 Sebastian Pop <s.pop@samsung.com>
2167 * doc/install.texi: Document that isl-0.16 is supported.
2169 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
2172 * config/i386/constraints.md (Bm): Describe as special memory
2174 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
2175 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
2176 * genpreds.c (struct constraint_data): Add is_special_memory.
2177 (have_special_memory_constraints, special_memory_start): New
2179 (special_memory_end): Ditto.
2180 (add_constraint): Add new arg is_special_memory. Add code to
2181 process its true value. Update have_special_memory_constraints.
2182 (process_define_constraint): Pass the new arg.
2183 (process_define_register_constraint): Ditto.
2184 (choose_enum_order): Process special memory.
2185 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
2186 function insn_extra_special_memory_constraint.
2187 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
2188 * gensupport.c (process_rtx): Process
2189 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
2190 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
2191 * ira-lives.c (single_reg_class): Use
2192 insn_extra_special_memory_constraint.
2193 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
2194 * lra-constraints.c (process_alt_operands): Ditto.
2195 (curr_insn_transform): Use insn_extra_special_memory_constraint.
2196 * recog.c (asm_operand_ok, preprocess_constraints): Process
2198 * reload.c (find_reloads): Ditto.
2199 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
2200 * stmt.c (parse_input_constraint): Use
2201 insn_extra_special_memory_constraint.
2203 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
2206 * lra-splill.c (lra_final_code_change): Revert r229087 by
2207 removing all sub-registers.
2209 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
2212 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
2214 2016-01-29 Jakub Jelinek <jakub@redhat.com>
2217 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
2218 SSE1, copy target into the temporary reg first before recursing
2221 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
2223 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
2226 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
2228 * ginclude/stdarg.h: Test __cplusplus instead of
2229 __GXX_EXPERIMENTAL_CXX0X__.
2231 2016-01-29 Richard Biener <rguenther@suse.de>
2233 PR tree-optimization/69547
2234 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
2235 Do not mark clobbers necessary.
2236 (mark_all_reaching_defs_necessary_1): Likewise.
2238 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
2240 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
2241 declaration name with %qs and print it in both error messages.
2242 Also fix indentation.
2244 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
2247 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
2248 trailing blank line from error message.
2250 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
2253 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
2256 2016-01-29 Richard Biener <rguenther@suse.de>
2259 * match.pd: Allow all integral types when simplifying a
2260 widening or sign-changing conversion.
2262 2016-01-28 Sebastian Pop <s.pop@samsung.com>
2264 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
2265 back to setting codegen_error to fail codegen.
2267 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
2270 * config/i386/constraints.md (C): Only accept constant zero operand.
2271 (BC): New constraint.
2272 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
2273 instead of C constraint.
2274 * doc/md.texi (Machine Constraints): Update description
2277 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
2280 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
2282 2016-01-28 Jakub Jelinek <jakub@redhat.com>
2285 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
2288 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
2290 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
2291 branches if using guessed profile.
2293 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
2295 * graphite-optimize-isl.c (optimize_isl): Fix dump.
2297 2016-01-28 Richard Henderson <rth@redhat.com>
2300 * config/aarch64/aarch64-modes.def (CC_Cmode): New
2301 * config/aarch64/aarch64-protos.h: Update.
2302 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
2303 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
2304 (aarch64_get_condition_code_1): Handle CC_Cmode.
2305 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
2306 (*add<mode>3_compareC_cconly_imm): New.
2307 (*add<mode>3_compareC_cconly): New.
2308 (*add<mode>3_compareC_imm): New.
2309 (add<mode>3_compareC): New.
2310 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
2311 to be first. Use aarch64_carry_operation.
2312 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
2313 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
2314 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
2315 (subti3): Use subdi3_compare1.
2316 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
2317 (sub<mode>3_compare1): New.
2318 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
2319 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
2320 (*subsi3_carryin_uxtw): Likewise.
2321 (*ngc<mode>, *ngcsi_uxtw): Likewise.
2322 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
2323 * config/aarch64/iterators.md (DWI): New.
2324 * config/aarch64/predicates.md (aarch64_carry_operation): New.
2325 (aarch64_borrow_operation): New.
2327 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
2329 * graphite-optimize-isl.c (optimize_isl): Print a different debug
2330 message when isl does not return a valid schedule.
2332 2016-01-28 Sebastian Pop <s.pop@samsung.com>
2334 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
2335 Remove comments from class declarations: they are already in the code
2338 2016-01-28 Sebastian Pop <s.pop@samsung.com>
2340 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
2342 (ternary_op_to_tree): Same.
2343 (unary_op_to_tree): Same.
2344 (nary_op_to_tree): Same.
2345 (gcc_expression_from_isl_expr_op): Same.
2346 (gcc_expression_from_isl_expression): Same.
2347 (graphite_create_new_loop): Same.
2348 (graphite_create_new_loop_guard): Same.
2349 (build_iv_mapping): Same.
2350 (graphite_create_new_guard): Same.
2351 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
2352 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
2354 2016-01-28 Sebastian Pop <s.pop@samsung.com>
2356 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
2357 instead of setting codegen_error to fail codegen.
2359 2016-01-28 Jason Merrill <jason@redhat.com>
2361 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
2363 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
2365 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
2366 Remove CONST_INT_P check in CCMP cost calculation.
2368 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
2370 * config/aarch64/aarch64.c (generic_vector_cost):
2371 Set vec_permute_cost.
2372 (cortexa57_vector_cost): Likewise.
2373 (exynosm1_vector_cost): Likewise.
2374 (xgene1_vector_cost): Likewise.
2375 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
2376 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
2377 Add vec_permute_cost entry.
2379 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
2381 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
2383 (add<mode>3_compare0): Likewise.
2384 (addsi3_compare0_uxtw): Likewise.
2385 (add<mode>3nr_compare0): Likewise.
2386 (compare_neg<mode>): Likewise.
2387 (<optab><mode>3): Likewise.
2389 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
2391 * tree-vect-stmts.c (vectorizable_comparison): Add
2392 NULL check for vectype.
2394 2016-01-28 Richard Biener <rguenther@suse.de>
2396 PR tree-optimization/69466
2397 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
2398 Account for PHIs we couldn't duplicate.
2400 2016-01-28 Martin Liska <mliska@suse.cz>
2403 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
2404 instead of ENABLE_VALGRIND_CHECKING.
2406 2016-01-27 Richard Henderson <rth@redhat.com>
2409 * lra-remat.c (subreg_regs): New.
2410 (dump_candidates_and_remat_bb_data): Dump it.
2411 (operand_to_remat): Reject if operand in subreg_regs.
2412 (set_bb_regs): Collect subreg_regs.
2413 (lra_remat): Init and free subreg_regs. Compute
2414 calculate_local_reg_remat_bb_data before create_cands.
2416 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
2419 * config/i386/i386.c (ix86_update_stack_boundary): Don't
2420 change stack_alignment_needed for __tls_get_addr call.
2422 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
2424 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
2426 2016-01-27 Jeff Law <law@redhat.com>
2428 PR tree-optimization/68398
2429 PR tree-optimization/69196
2430 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
2431 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
2432 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
2433 Only count PHIs in the last block in the path. The others will
2434 const/copy propagate away. Add heuristic to allow more irreducible
2435 subloops to be created when it is likely profitable to do so.
2437 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
2438 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
2439 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
2441 2016-01-27 Jakub Jelinek <jakub@redhat.com>
2444 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
2445 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
2446 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
2447 * tree-streamer-in.c: Include asan.h.
2448 (streamer_get_builtin_tree): For builtins in sanitizer
2449 range call initialize_sanitizer_builtins and retry.
2451 2016-01-27 Ian Lance Taylor <iant@google.com>
2453 * common.opt (fkeep-gc-roots-live): New undocumented option.
2454 * tree-ssa-loop-ivopts.c (add_candidate_1): If
2455 -fkeep-gc-roots-live, skip pointers.
2456 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
2459 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
2462 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
2463 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
2465 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
2468 * configure.ac: NetBSD provides SSP in its C library.
2469 * configure: Updated.
2471 2016-01-27 Richard Biener <rguenther@suse.de>
2473 PR tree-optimization/69166
2474 * tree-vect-loop.c (vect_is_simple_reduction): Always check
2475 reduction code for commutativity / associativity.
2477 2016-01-27 Martin Jambor <mjambor@suse.cz>
2479 PR tree-optimization/69355
2480 * tree-sra.c (analyze_access_subtree): Correct hole detection when
2481 total_scalarization fails.
2483 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
2485 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
2488 2016-01-27 Christian Bruel <christian.bruel@st.com>
2491 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
2492 Move arm_reset_previous_fndecl and set_target_option_current_node in
2493 the conditional part. Call save_restore_target_globals.
2494 * config/arm/arm.c (arm_set_current_function):
2495 Refactor to better support #pragma target and attribute mix.
2496 Call save_restore_target_globals.
2497 * config/arm/arm-protos.h (save_restore_target_globals): New function.
2499 2016-01-27 Martin Liska <mliska@suse.cz>
2501 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
2502 reference for an HSA kernel and its host function.
2504 2016-01-27 Jakub Jelinek <jakub@redhat.com>
2506 PR tree-optimization/69399
2507 * wide-int.h (wi::lrshift): For larger precisions, only
2508 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
2510 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
2512 * config/arc/predicates.md (proper_comparison_operator): Reject
2513 constant-constant comparison.
2515 2016-01-26 Tom de Vries <tom@codesourcery.com>
2517 PR tree-optimization/69110
2518 * tree-data-ref.c (initialize_data_dependence_relation): Handle
2519 DR_NUM_DIMENSIONS == 0.
2521 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
2522 Sebastian Pop <s.pop@samsung.com>
2524 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
2525 isl_ast_op_cond and isl_ast_op_select.
2526 (gcc_expression_from_isl_expr_op): Same.
2528 2016-01-26 Jason Merrill <jason@redhat.com>
2531 * tree.c (recompute_constructor_flags): Split out from
2533 (verify_constructor_flags): New.
2534 * tree.h: Declare them.
2536 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
2538 PR rtl-optimization/69217
2539 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
2540 are no TYPE_FIELDS set for the record type.
2542 2016-01-26 Jakub Jelinek <jakub@redhat.com>
2545 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
2546 toc_label_name unconditionally.
2547 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
2548 SYMBOL_REF string. Use toc_label_name instead of constructing
2550 (rs6000_elf_declare_function_name): Use toc_label_name instead of
2551 constructing LCTOC1.
2553 2016-01-26 Martin Sebor <msebor@redhat.com>
2556 * doc/extend.texi (Common Type Attributes): Move text that talks about
2557 attribute packed from attribute aligned to the section discussing
2558 the former attribute for clarity.
2560 2016-01-26 Richard Henderson <rth@redhat.com>
2563 * trans-mem.c (tm_region_init): Mark entry block as visited.
2565 2016-01-26 David Malcolm <dmalcolm@redhat.com>
2568 * diagnostic-show-locus.c (layout::print_source_line): Replace
2569 call to pp_newline with call to layout::print_newline.
2570 (layout::print_annotation_line): Likewise.
2571 (layout::move_to_column): Likewise.
2572 (layout::print_any_fixits): After printing any fixits, print a
2573 trailing newline, if necessary.
2574 (layout::print_newline): New method, resetting any colorization
2576 (diagnostic_show_locus): Move the pp_newline to before the
2577 early bailout. Remove dummy block enclosing the layout instance.
2578 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
2579 of pp_newline_and_flush with pp_flush.
2580 (diagnostic_append_note): Delete use of pp_newline.
2581 (diagnostic_append_note_at_rich_loc): Delete.
2582 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
2583 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
2584 when newline characters are added to the buffer.
2586 2016-01-26 Michael Matz <matz@suse.de>
2588 * configure.ac (ac_cv_std_swap_in_utility): New test.
2589 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
2590 * configure: Regenerate.
2591 * config.in: Regenerate.
2593 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
2595 * config/arc/arc.md (cstoresi4): Force operand into register.
2596 (arcset<code>): Fix predicate.
2597 (arcsetltu): Likewise.
2598 (arcsetgeu): Likewise.
2599 (arcsethi): Likewise.
2600 (arcsetls): Likewise.
2602 2016-01-26 Jakub Jelinek <jakub@redhat.com>
2604 PR tree-optimization/69483
2605 * gimple-fold.c (canonicalize_constructor_val): Return NULL
2606 if base has error_mark_node type.
2608 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
2611 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
2612 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
2614 (vget_lane_f16): Handle big-endian.
2615 (vgetq_lane_f16): Likewise.
2616 (vset_lane_f16): Likewise.
2617 (vsetq_lane_f16): Likewise.
2618 * config/arm/iterators.md (VQXMOV): Add V8HF.
2619 (VDQ): Add V4HF and V8HF.
2620 (V_reg): Handle V4HF and V8HF.
2621 (Is_float_mode): Likewise.
2622 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
2623 neon_vdup_nv8hf): New patterns.
2624 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
2625 Use VD_LANE iterator.
2626 (neon_vld1_dup<mode>): Use VQ2 iterator.
2628 2016-01-26 Nathan Sidwell <nathan@acm.org>
2630 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
2631 (set_oacc_fn_attrib): Add IS_KERNEL arg.
2632 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
2633 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
2634 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
2635 (oacc_validate_dims): Add LEVEL arg, don't return level.
2636 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
2638 (execute_oacc_device_lower): Adjust, add more dump output.
2639 * tree-ssa-loop.c (gate_oacc_kernels): Use
2640 oacc_fn_attrib_kernels_p.
2641 * tree-parloops.c (create_parallel_loop): Adjust
2642 set_oacc_fn_attrib call.
2644 2016-01-26 Jakub Jelinek <jakub@redhat.com>
2647 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
2648 (append_compiler_options): Handle -fcilkplus.
2649 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
2651 2016-01-26 Nick Clifton <nickc@redhat.com>
2654 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
2655 been marked as DECL_ONE_ONLY but we do not the means to make it
2656 so, then do not allow it to bind locally.
2658 2016-01-26 Jakub Jelinek <jakub@redhat.com>
2661 * opts.h (parse_sanitizer_options): New prototype.
2662 * opts.c (sanitizer_opts): New array.
2663 (parse_sanitizer_options): New function.
2664 (common_handle_option): Use parse_sanitizer_options.
2666 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
2669 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
2670 alignment adjustment to ...
2671 (ix86_update_stack_boundary): Here. Don't over-align stack for
2673 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
2674 if __tls_get_addr is called.
2676 2016-01-26 Christian Bruel <christian.bruel@st.com>
2678 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
2680 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
2682 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
2684 2016-01-26 Richard Biener <rguenther@suse.de>
2687 * match.pd: Guard X * CST CMP 0 pattern with single_use.
2689 2016-01-26 Richard Biener <rguenther@suse.de>
2691 PR tree-optimization/69452
2692 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
2693 (move_computations_dom_walker::before_dom_children): Rename
2695 (move_computations_worker): This.
2696 (move_computations): Perform an RPO rather than a DOM walk.
2698 2016-01-26 Jakub Jelinek <jakub@redhat.com>
2701 * combine.c (combine_instructions): For REG_EQUAL note with
2702 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
2703 to the underlying register.
2704 * doc/rtl.texi (REG_EQUAL): Document the behavior of
2705 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
2707 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
2710 * config/aarch64/aarch64-builtins.c
2711 (aarch64_init_simd_builtin_types): Do not set structural
2712 equality to __Poly{8,16,64,128}_t types.
2714 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
2716 PR tree-optimization/69400
2717 * wide-int.cc (wi_pack): Take the precision as argument and
2718 perform canonicalization here rather than in the callers.
2719 Use the main loop to handle all full-width HWIs. Add a
2720 zero HWI if in_len isn't a full result.
2721 (wi::divmod_internal): Update accordingly.
2722 (wi::mul_internal): Likewise. Simplify.
2724 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
2725 Sebastian Pop <s.pop@samsung.com>
2727 * graphite-poly.c (apply_poly_transforms): Simplify.
2728 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
2729 (print_isl_map): Same.
2730 (print_isl_union_map): Same.
2731 (print_isl_schedule): New.
2732 (debug_isl_schedule): New.
2733 * graphite-dependences.c (scop_get_reads): Do not call
2734 isl_union_map_add_map that is undocumented isl functionality.
2735 (scop_get_must_writes): Same.
2736 (scop_get_may_writes): Same.
2737 (scop_get_original_schedule): Remove.
2738 (scop_get_dependences): Do not call isl_union_map_compute_flow that
2739 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
2740 (compute_deps): Remove.
2741 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
2742 (debug_schedule_ast): New.
2743 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
2744 set_separate_option.
2745 (graphite_regenerate_ast_isl): Add dump.
2746 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
2747 from scop->transformed_schedule.
2748 (graphite_regenerate_ast_isl): Add more dump.
2749 * graphite-optimize-isl.c (optimize_isl): Set
2750 scop->transformed_schedule. Check whether schedules are equal.
2751 (apply_poly_transforms): Move here.
2752 * graphite-poly.c (apply_poly_transforms): ... from here.
2753 (free_poly_bb): Static.
2754 (free_scop): Static.
2755 (pbb_number_of_iterations_at_time): Remove.
2756 (print_isl_ast): New.
2757 (debug_isl_ast): New.
2758 (debug_scop_pbb): New.
2759 * graphite-scop-detection.c (print_edge): Move.
2761 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
2762 (build_scop_scattering): Remove.
2763 (create_pw_aff_from_tree): Assert instead of bailing out.
2764 (add_condition_to_pbb): Remove unused code, do not fail.
2765 (add_conditions_to_domain): Same.
2766 (add_conditions_to_constraints): Remove.
2767 (build_scop_context): New.
2768 (add_iter_domain_dimension): New.
2769 (build_iteration_domains): Initialize pbb->iterators.
2770 Call add_conditions_to_domain.
2773 (index_outermost_in_loop): New.
2774 (index_pbb_in_loop): New.
2775 (outermost_pbb_in): New.
2776 (add_in_sequence): New.
2777 (add_outer_projection): New.
2778 (outer_projection_mupa): New.
2779 (add_loop_schedule): New.
2780 (build_schedule_pbb): New.
2781 (build_schedule_loop): New.
2782 (embed_in_surrounding_loops): New.
2783 (build_schedule_loop_nest): New.
2784 (build_original_schedule): New.
2785 (build_poly_scop): Call build_original_schedule.
2786 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
2787 (free_poly_dr): Remove.
2788 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
2789 (free_poly_bb): Remove.
2790 (debug_loop_vec): Remove.
2791 (print_isl_ast): Declare.
2792 (debug_isl_ast): Declare.
2793 (scop_do_interchange): Remove.
2794 (scop_do_strip_mine): Remove.
2795 (scop_do_block): Remove.
2796 (flatten_all_loops): Remove.
2797 (optimize_isl): Remove.
2798 (pbb_number_of_iterations_at_time): Remove.
2799 (debug_scop_pbb): Declare.
2800 (print_schedule_ast): Declare.
2801 (debug_schedule_ast): Declare.
2802 (struct scop): Remove schedule. Add original_schedule,
2803 transformed_schedule.
2804 (free_gimple_poly_bb): Remove.
2805 (print_generated_program): Remove.
2806 (debug_generated_program): Remove.
2807 (unify_scattering_dimensions): Remove.
2808 * sese.c (print_edge): ... here.
2809 (print_sese): ... here.
2810 (debug_edge): ... here.
2811 (debug_sese): ... here.
2812 * sese.h (print_edge): Declare.
2813 (print_sese): Declare.
2814 (dump_edge): Declare.
2815 (dump_sese): Declare.
2817 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
2818 Sebastian Pop <s.pop@samsung.com>
2820 * Makefile.in: Set ISLVER in site.exp.
2822 2016-01-25 Jakub Jelinek <jakub@redhat.com>
2824 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
2825 DECL_VALUE_EXPR of new_var even for the non-array case. Look
2826 through DECL_VALUE_EXPR for expansion.
2828 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
2830 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
2831 the frame info after reload completed.
2833 2016-01-25 Jeff Law <law@redhat.com>
2835 PR tree-optimization/69196
2836 PR tree-optimization/68398
2837 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
2838 tree-ssa-threadupdate.c.
2839 (determine_bb_domination_status): Prototype
2840 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
2841 (determine_bb_domination_status): No longer static.
2842 (valid_jump_thread_path): Remove code to detect characteristics
2843 of the jump thread path not associated with correctness.
2844 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
2845 Correct test for thread path length. Count PHIs for real operands as
2846 statements that need to be copied. Do not count ASSERT_EXPRs.
2847 Look at all the blocks in the thread path. Compute and selectively
2848 filter thread paths based on threading through the latch, threading
2849 a multiway branch or crossing a multiway branch.
2851 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2853 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
2854 decl with __attribute__ ((unused)) annotation.
2856 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
2859 * tree-vect-stmts.c (vectorizable_condition): Check vectype
2860 of operands is compatible with a statement vectype.
2862 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
2864 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
2865 improve wording for mixed storage order support.
2867 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
2869 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
2870 (vcvt_u64_f64): Likewise.
2871 (vcvta_s64_f64): Likewise.
2872 (vcvta_u64_f64): Likewise.
2873 (vcvtm_s64_f64): Likewise.
2874 (vcvtm_u64_f64): Likewise.
2875 (vcvtn_s64_f64): Likewise.
2876 (vcvtn_u64_f64): Likewise.
2877 (vcvtp_s64_f64): Likewise.
2878 (vcvtp_u64_f64): Likewise.
2880 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
2882 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
2883 (arc_init): Check validity mll64 option.
2884 (arc_save_restore): Use double load/store instruction.
2885 (arc_expand_movmem): Likewise.
2886 (arc_split_move): Don't split if we have double load/store
2887 instructions. Returns a boolean.
2888 (arc_process_double_reg_moves): Change function to return boolean
2889 instead of a sequence of instructions.
2890 (arc_dwarf_register_span): New function.
2891 * config/arc/arc-protos.h (arc_split_move): Change prototype.
2892 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
2893 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
2894 (*movdf_insn): Likewise.
2895 * config/arc/arc.opt (mll64): New option.
2896 * config/arc/predicates.md (even_register_operand): New predicate.
2897 * doc/invoke.texi (ARC Options): Add mll64 documentation.
2899 2016-01-25 Richard Biener <rguenther@suse.de>
2902 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
2903 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
2905 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
2907 2016-01-25 Richard Biener <rguenther@suse.de>
2909 PR tree-optimization/69376
2910 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
2912 (VN_INFO_ANTI_RANGE_P): New inline.
2913 (VN_INFO_RANGE_TYPE): Likewise.
2914 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
2915 SSA_NAME_ANTI_RANGE_P.
2916 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
2917 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
2918 Properly query VN_INFO_RANGE_TYPE.
2920 2016-01-25 Nick Clifton <nickc@redhat.com>
2923 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
2925 2016-01-23 Tom de Vries <tom@codesourcery.com>
2927 PR tree-optimization/69426
2928 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
2931 2016-01-23 Jakub Jelinek <jakub@redhat.com>
2933 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
2934 "the the" with "the" in the comments.
2935 * ipa-devirt.c (build_type_inheritance_graph,
2936 update_type_inheritance_graph): Likewise.
2937 * tree.c (build_function_type_list_1): Likewise.
2938 * cfgloopmanip.c (scale_loop_profile): Likewise.
2939 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
2940 * gimple-ssa-split-paths.c
2941 (find_block_to_duplicate_for_splitting_paths): Likewise.
2942 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
2943 * expr.c (convert_move): Likewise.
2944 * var-tracking.c (vt_stack_adjustments): Likewise.
2945 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
2946 * tree-vrp.c (test_for_singularity): Likewise.
2948 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
2949 directly instead of building a temporary tree.
2952 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
2953 remove <algorithm> include.
2955 2016-01-22 Jakub Jelinek <jakub@redhat.com>
2958 * config/i386/i386.c: Include dojump.h.
2959 (expand_small_movmem_or_setmem,
2960 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
2962 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
2963 if dynamic_check != -1.
2965 2016-01-21 Jeff Law <law@redhat.com>
2968 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
2969 record_temporary_equivalences. Rewritten to avoid unnecessary calls
2970 into dominated_by_p.
2971 (cprop_into_successor_phis): Avoid unnecessary tests.
2973 2016-01-22 Richard Henderson <rth@redhat.com>
2976 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
2977 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
2979 2016-01-22 Michael Matz <matz@suse.de>
2981 * system.h (string, algorithm): Include only conditionally.
2982 (new): Include always under C++.
2983 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
2984 * final.c (toplevel): Ditto.
2985 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
2986 * genconditions.c (write_header): Make gencondmd.c define
2988 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
2990 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
2991 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
2993 2016-01-22 Christian Bruel <christian.bruel@st.com>
2996 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
2998 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3001 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
3002 define_insn_and_split. Ensure operands[1] and operands[0] do not
3003 get assigned the same register.
3005 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
3007 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
3009 2016-01-22 Christian Bruel <christian.bruel@st.com>
3011 * config/arm/arm-c.c (arm_pragma_target_parse):
3012 Remove warn_builtin_macro_redefined overwrite.
3014 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
3016 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
3017 flag_non_call_exceptions compatibility.
3019 2016-01-22 Jakub Jelinek <jakub@redhat.com>
3022 * dwarf2out.c (add_child_die_after): New function.
3023 (dwarf_qual_info_t): New type.
3024 (dwarf_qual_info): New variable.
3025 (qualified_die_p): New function.
3026 (modified_type_die): For -fdebug-types-section, ensure
3027 canonical order of qualifiers. Put qualified DIEs adjacent
3028 to the corresponding non-qualified type DIE and search there
3029 for existing qualified DIEs.
3031 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
3033 * doc/extend.texi (scalar_storage_order type attribute): Document
3034 restriction on type punning and aliasing, and remove future tense.
3036 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
3039 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
3042 2016-01-21 Jeff Law <law@redhat.com>
3045 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
3046 useless call to record_temporary_equivalences.
3047 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
3048 allocate 10 slots in the bb_path vector and let it grow as needed.
3049 (fsm_find_control_statement_thread_paths): Similarly for the next_path
3052 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
3054 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
3056 * configure: Regenerate.
3058 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
3060 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
3061 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
3063 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
3066 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
3067 drop EXPAND_INITIALIZER.
3068 * rtl.h (contains_symbolic_reference_p): Declare.
3069 * rtlanal.c (contains_symbolic_reference_p): New function.
3070 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
3071 a subtraction into a NOT if symbolic constants are involved.
3073 2016-01-21 Anton Blanchard <anton@samba.org>
3074 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3077 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
3079 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
3082 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
3084 * config/microblaze/microblaze.c
3085 (get_branch_target): New.
3086 (insert_wic_for_ilb_runout): New.
3088 (microblaze_machine_dependent_reorg): New.
3089 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
3090 * config/microblaze/microblaze.md
3091 (UNSPEC_IPREFETCH): Define.
3092 (iprefetch): New pattern
3093 * config/microblaze/microblaze.opt
3094 (mxl-prefetch): New flag.
3096 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
3098 * config/microblaze/microblaze.h
3099 (FIXED_REGISTERS): Update in macro.
3100 (CALL_USED_REGISTERS): Update in macro.
3102 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
3104 PR rtl-optimization/68920
3105 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
3108 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
3110 PR rtl-optimization/68990
3111 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
3112 pseudo instead of inheritance ones.
3114 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
3115 Nick Clifton <nickc@redhat.com>
3119 * config/mips/mips.c (mips_compute_frame_info): Initialise
3120 args_size and hard_frame_pointer_offset fields of the frame
3121 structure before calling mips_global_pointer.
3123 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
3125 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
3127 * configure: Regenerate.
3129 2016-01-21 Richard Biener <rguenther@suse.de>
3131 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
3133 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
3135 * config/s390/s390.c (s390_asm_declare_function_size): Add code
3136 to actually emit the .size directive.
3138 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
3139 Jakub Jelinek <jakub@redhat.com>
3143 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
3144 args array size by one to avoid buffer overflow.
3146 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
3148 * config/s390/s390.md (pool_section_start): Use switch_to_section
3149 to select proper read-only data section instead of hardcoding
3151 (pool_section_end): Use switch_to_section to match the above.
3153 2016-01-21 Richard Biener <rguenther@suse.de>
3155 PR tree-optimization/69378
3156 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
3157 (set_ssa_val_to): Use it for dominance checks taking into
3158 account not executable edges.
3160 2016-01-21 Jakub Jelinek <jakub@redhat.com>
3163 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
3164 for bitsize instead of GET_MODE_PRECISION (mode).
3166 2016-01-20 Martin Sebor <msebor@redhat.com>
3169 * extend.texi (__sync Builtins): Clarify the semantics of
3170 __sync_fetch_and_OP built-ins on pointers.
3171 (__atomic Builtins): Same.
3173 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
3174 Sebastian Pop <s.pop@samsung.com>
3176 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
3177 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
3178 (is_valid_rename): Same.
3179 (translate_isl_ast_to_gimple::get_rename): Same.
3180 (translate_isl_ast_to_gimple::rename_all_uses): Same.
3181 (translate_isl_ast_to_gimple::rename_uses): Same.
3182 (get_new_name): Check for close_phi nodes.
3183 (copy_loop_phi_args): Use phi_node_kind.
3184 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
3185 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
3187 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
3188 Sebastian Pop <s.pop@samsung.com>
3190 Revert commit r229783.
3191 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
3192 Remove use of parameter_rename_map.
3194 (copy_internal_parameters): Remove.
3195 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
3196 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
3197 (free_sese_info): Do not free parameter_rename_map.
3198 (set_rename): Do not use parameter_rename_map.
3199 (rename_uses): Update call to set_rename.
3200 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
3201 * sese.h (parameter_rename_map_t): Remove.
3202 (struct sese_info_t): Remove field parameter_rename_map.
3204 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
3205 Sebastian Pop <s.pop@samsung.com>
3207 * graphite-isl-ast-to-gimple.c: Fix comment.
3208 * graphite-scop-detection.c (defined_in_loop_p): New.
3209 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
3210 names defined in loop.
3212 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
3213 Sebastian Pop <s.pop@samsung.com>
3215 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
3216 Discard unstructured if-then-else regions.
3218 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
3219 Sebastian Pop <s.pop@samsung.com>
3221 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
3222 (cleanup_loop_iter_dom): Remove.
3223 (build_loop_iteration_domains): Remove.
3224 (build_scop_context): Remove.
3225 (build_scop_iteration_domain): Remove.
3226 (add_loop_constraints): New.
3227 (build_iteration_domains): New.
3228 (build_poly_scop): Call build_iteration_domains.
3230 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
3231 Sebastian Pop <s.pop@samsung.com>
3233 * graphite-scop-detection.c
3234 (scop_detection::harmful_loop_in_region): Free dom and loops.
3235 (scop_detection::loop_body_is_valid_scop): Free bbs.
3237 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
3238 Sebastian Pop <s.pop@samsung.com>
3240 * graphite-scop-detection.c (record_loop_in_sese): New.
3241 (gather_bbs::before_dom_children): Call record_loop_in_sese.
3242 (build_scops): Remove call to build_sese_loop_nests.
3243 * sese.c (sese_record_loop): Remove.
3244 (build_sese_loop_nests): Remove.
3245 (new_sese_info): Remove region->loops.
3246 (free_sese_info): Same.
3247 * sese.h (sese_contains_loop): Same.
3248 (build_sese_loop_nests): Remove.
3249 (sese_contains_loop): Remove.
3251 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
3252 Sebastian Pop <s.pop@samsung.com>
3254 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
3255 loop_is_valid_in_scop.
3256 (scop_detection::harmful_stmt_in_region): Renamed
3257 harmful_loop_in_region.
3258 Call loop_is_valid_in_scop.
3260 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
3261 Sebastian Pop <s.pop@samsung.com>
3263 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
3266 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
3267 Sebastian Pop <s.pop@samsung.com>
3269 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
3270 * graphite.h (struct poly_bb): Remove field is_reduction.
3271 (PBB_IS_REDUCTION): Remove.
3273 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
3274 Sebastian Pop <s.pop@samsung.com>
3276 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
3277 (add_pdr_constraints): Same.
3278 (scop_get_reads): Same.
3279 (scop_get_must_writes): Same.
3280 (scop_get_may_writes): Same.
3281 (scop_get_original_schedule): Same.
3282 (extend_schedule): Same.
3283 (apply_schedule_on_deps): Same.
3284 (carries_deps): Same.
3285 (compute_deps): Same.
3286 (scop_get_dependences): Same.
3287 * graphite-isl-ast-to-gimple.c
3288 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
3289 * graphite-optimize-isl.c (get_schedule_for_band): Same.
3290 (get_schedule_for_band_list): Same.
3291 (get_schedule_map): Same.
3292 (apply_schedule_map_to_scop): Same.
3293 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
3294 (build_loop_iteration_domains): Same.
3295 (add_condition_to_pbb): Same.
3296 (add_param_constraints): Same.
3297 (pdr_add_memory_accesses): Same.
3298 (pdr_add_data_dimensions): Same.
3300 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
3302 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
3305 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
3307 * common.opt (feliminate-dwarf2-dups): Replace references to
3308 "DWARF 2" with just "DWARF".
3309 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
3310 * doc/extend.texi: Likewise.
3311 * doc/cpp.texi: Likewise.
3312 * doc/invoke.texi: Likewise.
3313 (Option Summary): Add -gdwarf to list of Debugging Options.
3314 (Debugging Options): Document -gdwarf.
3315 * doc/contrib.texi: Spell "DWARF" like that.
3317 2016-01-21 Jakub Jelinek <jakub@redhat.com>
3319 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
3320 warning. Fix up formatting.
3323 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
3324 attempt to mark memory input operand addressable and
3325 call prepare_gimple_addressable in that case. Don't adjust
3326 input_location for diagnostics, use error_at instead.
3328 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
3330 * config/rs6000/ppc-auxv.h: New file.
3331 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
3333 (cpu_supports): Likewise.
3334 * config/rs6000/rs6000.c: include "ppc-auxv.h".
3335 (cpu_is_info): New variable.
3336 (cpu_supports_info): Likewise.
3337 (tcb_verification_symbol): Likewise.
3338 (cpu_builtin_p): Likewise.
3339 (cpu_expand_builtin): New function.
3340 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
3341 (rs6000_init_builtins): Likewise.
3342 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
3343 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
3344 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
3345 * configure: Regenerate.
3346 * config.in: Likewise.
3347 * doc/extend.texi (PowerPC Built-in Functions): Document
3348 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
3350 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
3353 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
3355 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
3358 2016-01-20 Richard Henderson <rth@redhat.com>
3364 * tree.c (tm_define_builtin): New.
3365 (find_tm_vector_type): New.
3366 (build_tm_vector_builtins): New.
3367 (build_common_builtin_nodes): Call it.
3369 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
3371 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
3372 (arm_fp_ok): Likewise.
3374 (arm_crypto): Likewise.
3376 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
3377 Richard Biener <rguenther@suse.de>
3379 PR tree-optimization/69328
3380 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
3381 vectors have same number of elements.
3382 (vectorizable_condition): Fix masked version recognition.
3384 2016-01-20 Richard Biener <rguenther@suse.de>
3386 PR tree-optimization/69345
3387 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
3388 (VN_INFO_PTR_INFO): Likewise.
3389 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
3390 info when it is equal between non-dominating SSA names.
3391 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
3392 Make sure to look at original SSA infos.
3394 2016-01-20 Jeff Law <law@redhat.com>
3397 * config/m68k/predicates.md (pow2_m1_operand): New predicate
3399 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
3400 (pc_or_label_operand): New predicate.
3401 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
3402 tests for small integers that are 2^n - 1.
3404 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
3406 * doc/invoke.texi (Options Summary): Add '.' after @xref.
3408 2016-01-19 Jeff Law <law@redhat.com>
3411 * tree-ssa-threadbackwards.c
3412 (fsm_find_control_statement_thread_paths): Do not try to lookup
3413 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
3415 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
3417 * doc/lto.texi: Remove text that says only Gold has linker plugin
3420 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
3422 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
3423 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
3424 the DIE accordingly.
3425 (modified_type_die): Add REVERSE parameter and pass it recursively,
3426 as well as to base_type_die. Adjust presence check accordingly.
3427 (base_type_for_mode): Adjust call to modified_type_die.
3428 (add_type_attribute): Add REVERSE parameter and pass it to
3430 (generic_parameter_die): Adjust call to add_type_attribute.
3431 (add_scalar_info): Likewise.
3432 (add_subscript_info): Likewise.
3433 (gen_array_type_die): Likewise.
3434 (gen_descr_array_type_die): Likewise.
3435 (gen_entry_point_die): Likewise.
3436 (gen_enumeration_type_die): Likewise.
3437 (gen_formal_parameter_die): Likewise.
3438 (gen_subprogram_die): Likewise.
3439 (gen_variable_die ): Likewise.
3440 (gen_const_die): Likewise.
3441 (gen_field_die): Likewise.
3442 (gen_pointer_type_die): Likewise.
3443 (gen_reference_type_die): Likewise.
3444 (gen_ptr_to_mbr_type_die): Likewise.
3445 (gen_inheritance_die): Likewise.
3446 (gen_subroutine_type_die): Likewise.
3447 (gen_typedef_die): Likewise.
3448 (force_type_die): Adjust call to modified_type_die.
3450 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
3452 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
3453 flow throughout the file. Fix broken link to Objective-C 2.0
3455 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
3458 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
3460 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
3462 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
3465 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
3466 (maybe_record_node): Record cxa_pure_virtual as the only possible
3467 target if there are not ohter candidates.
3468 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
3470 2016-01-19 Richard Biener <rguenther@suse.de>
3472 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
3473 (get_memory_order): Likewise.
3475 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
3477 * tree-vect-stmts.c (vectorizable_store): Check
3480 2016-01-19 David Malcolm <dmalcolm@redhat.com>
3483 * gcc.c (driver::decode_argv): Add call to
3484 init_opts_obstack before init_options_struct.
3485 * opts.c (init_opts_obstack): Remove idempotency.
3486 (init_options_struct): Replace call to init_opts_obstack
3487 with a gcc_assert to verify that it has already been called.
3488 * toplev.c (toplev::main): Add call to init_opts_obstack before
3489 calls to init_options_struct.
3490 (toplev::finalize): Move cleanup of opts_obstack next to
3491 cleanup of save_decoded_options, clearing the latter, and
3492 save_decoded_options_count.
3494 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3497 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
3498 attribute to unconditional. Remove %? from output template.
3500 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
3501 Jiong Wang <jiong.wang@arm.com>
3503 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
3504 generated from different expand order.
3506 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
3508 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
3509 Add support for CCMP costing.
3511 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
3513 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
3514 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
3515 (fccmpe<mode>): Likewise.
3516 (fcmp): Rename to fcmp and globalize pattern.
3518 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
3519 (aarch64_gen_ccmp_next): Add FP support.
3521 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
3523 * target.def (gen_ccmp_first): Update documentation.
3524 (gen_ccmp_next): Likewise.
3525 * doc/tm.texi (gen_ccmp_first): Update documentation.
3526 (gen_ccmp_next): Likewise.
3527 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
3528 expand_ccmp_expr_1. Improve comments.
3529 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
3530 (ccmp_ior<mode>): Remove pattern.
3531 (cmp<mode>): Remove expand.
3532 (cmp): Globalize pattern.
3533 (cstorecc4): Use cc_register.
3534 (mov<mode>cc): Remove ccmp_cc_register check.
3535 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
3536 Simplify after removal of CC_DNE/* modes.
3537 (aarch64_ccmp_mode_to_code): Remove.
3538 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
3539 In 'k' case use integer as condition.
3540 (aarch64_nzcv_codes): Remove inverted cases.
3541 (aarch64_code_to_ccmode): Remove.
3542 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
3543 comparison with CC register to be used in folowing CCMP/branch/CSEL.
3544 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
3545 pattern. Return the comparison with CC register. Invert conditions
3547 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
3548 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
3550 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
3552 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
3553 instrumented_version.
3555 2016-01-19 Richard Biener <rguenther@suse.de>
3557 PR tree-optimization/69336
3558 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
3559 handled components with get_ref_base_and_extent.
3560 (equal_mem_array_ref_p): Adjust.
3562 2016-01-19 Jakub Jelinek <jakub@redhat.com>
3565 * shrink-wrap.c: Include valtrack.h.
3566 (move_insn_for_shrink_wrap): Add DEBUG argument. If
3567 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
3568 in between insn and where it will be moved to. Call
3569 dead_debug_insert_temp.
3570 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
3571 first and dead_debug_local_finish at the end.
3572 For uses and defs bitmap, handle all regs in between REGNO and
3573 END_REGNO, not just the first one.
3575 2016-01-19 Richard Biener <rguenther@suse.de>
3577 PR tree-optimization/69352
3578 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
3579 (equal_mem_array_ref_p): Constrain size and max size properly.
3580 Compare the reverse flag.
3582 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
3584 * ira.c (ira): Update regstat data if we deleted insns.
3586 2016-01-19 Jakub Jelinek <jakub@redhat.com>
3588 PR rtl-optimization/68955
3589 PR rtl-optimization/64557
3590 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
3591 here. Fix up formatting.
3592 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
3594 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
3597 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
3598 assume that the node has body.
3599 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
3602 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
3604 * lto-streamer-out.c (lto_output): Do not stream instrumentation
3607 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
3609 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
3610 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
3612 2016-01-19 Martin Jambor <mjambor@suse.cz>
3613 Martin Liska <mliska@suse.cz>
3614 Michael Matz <matz@suse.de>
3616 * Makefile.in (OBJS): Add new source files.
3617 (GTFILES): Add hsa.c.
3618 * common.opt (disable_hsa): New variable.
3619 (-Whsa): New warning.
3620 * config.in (ENABLE_HSA): New.
3621 * configure.ac: Treat hsa differently from other accelerators.
3622 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
3624 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
3625 * doc/install.texi (Configuration): Document --with-hsa-runtime,
3626 --with-hsa-runtime-include, --with-hsa-runtime-lib and
3628 * doc/invoke.texi (-Whsa): Document.
3629 (hsa-gen-debug-stores): Likewise.
3630 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
3631 to invoke offload compiler for hsa acclerator.
3632 * opts.c (common_handle_option): Determine whether HSA offloading
3633 should be performed.
3634 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
3635 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
3636 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
3637 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
3638 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
3639 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
3640 GF_OMP_FOR_KIND_GRID_LOOP.
3641 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
3642 (pp_gimple_stmt_1): Likewise.
3643 * gimple-walk.c (walk_gimple_stmt): Likewise.
3644 * gimple.c (gimple_build_omp_grid_body): New function.
3645 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
3646 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
3647 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
3648 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
3649 GF_OMP_TEAMS_GRID_PHONY.
3650 (gimple_statement_omp_single_layout): Updated comments.
3651 (gimple_build_omp_grid_body): New function.
3652 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
3653 (gimple_omp_for_grid_phony): New function.
3654 (gimple_omp_for_set_grid_phony): Likewise.
3655 (gimple_omp_parallel_grid_phony): Likewise.
3656 (gimple_omp_parallel_set_grid_phony): Likewise.
3657 (gimple_omp_teams_grid_phony): Likewise.
3658 (gimple_omp_teams_set_grid_phony): Likewise.
3659 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
3660 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
3661 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
3662 (BUILT_IN_GOMP_TARGET): Updated type.
3663 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
3664 (adjust_for_condition): New function.
3665 (get_omp_for_step_from_incr): Likewise.
3666 (extract_omp_for_data): Moved parts to adjust_for_condition and
3667 get_omp_for_step_from_incr.
3668 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
3669 (fixup_child_record_type): Bail out if receiver_decl is NULL.
3670 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
3671 (scan_omp_parallel): Do not create child functions for phony
3673 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
3674 (scan_omp_1_op): Checking assert we are not remapping to
3675 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
3676 (parallel_needs_hsa_kernel_p): New function.
3677 (expand_parallel_call): Register apprpriate parallel child
3678 functions as HSA kernels.
3679 (grid_launch_attributes_trees): New type.
3680 (grid_attr_trees): New variable.
3681 (grid_create_kernel_launch_attr_types): New function.
3682 (grid_insert_store_range_dim): Likewise.
3683 (grid_get_kernel_launch_attributes): Likewise.
3684 (get_target_argument_identifier_1): Likewise.
3685 (get_target_argument_identifier): Likewise.
3686 (get_target_argument_value): Likewise.
3687 (push_target_argument_according_to_value): Likewise.
3688 (get_target_arguments): Likewise.
3689 (expand_omp_target): Call get_target_arguments instead of looking
3690 up for teams and thread limit.
3691 (grid_expand_omp_for_loop): New function.
3692 (grid_arg_decl_map): New type.
3693 (grid_remap_kernel_arg_accesses): New function.
3694 (grid_expand_target_kernel_body): New function.
3695 (expand_omp): Call it.
3696 (lower_omp_for): Do not emit phony constructs.
3697 (lower_omp_taskreg): Do not emit phony constructs but create for them
3698 a temporary variable receiver_decl.
3699 (lower_omp_taskreg): Do not emit phony constructs.
3700 (lower_omp_teams): Likewise.
3701 (lower_omp_grid_body): New function.
3702 (lower_omp_1): Call it.
3703 (grid_reg_assignment_to_local_var_p): New function.
3704 (grid_seq_only_contains_local_assignments): Likewise.
3705 (grid_find_single_omp_among_assignments_1): Likewise.
3706 (grid_find_single_omp_among_assignments): Likewise.
3707 (grid_find_ungridifiable_statement): Likewise.
3708 (grid_target_follows_gridifiable_pattern): Likewise.
3709 (grid_remap_prebody_decls): Likewise.
3710 (grid_copy_leading_local_assignments): Likewise.
3711 (grid_process_kernel_body_copy): Likewise.
3712 (grid_attempt_target_gridification): Likewise.
3713 (grid_gridify_all_targets_stmt): Likewise.
3714 (grid_gridify_all_targets): Likewise.
3715 (execute_lower_omp): Call grid_gridify_all_targets.
3716 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
3717 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
3718 (tree_omp_clause): Added union field dimension.
3719 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
3720 * tree.c (omp_clause_num_ops): Added number of arguments of
3721 OMP_CLAUSE__GRIDDIM_.
3722 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
3723 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
3724 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
3725 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
3726 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
3727 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
3728 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
3729 * tree-pass.h (make_pass_gen_hsail): Declare.
3730 (make_pass_ipa_hsa): Likewise.
3731 * ipa-hsa.c: New file.
3732 * lto-section-in.c (lto_section_name): Add hsa section name.
3733 * lto-streamer.h (lto_section_type): Add hsa section.
3734 * timevar.def (TV_IPA_HSA): New.
3735 * hsa-brig-format.h: New file.
3736 * hsa-brig.c: New file.
3737 * hsa-dump.c: Likewise.
3738 * hsa-gen.c: Likewise.
3741 * toplev.c (compile_file): Call hsa_output_brig.
3742 * hsa-regalloc.c: New file.
3744 2016-01-18 Jeff Law <law@redhat.com>
3746 PR tree-optimization/69320
3747 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
3748 ranged object, do nothing if the RHS constant is not [0..1].
3749 (optimize_stmt): Comparing a boolean ranged object against a
3750 constant outside [0..1] results in a compile-time constant.
3752 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
3755 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
3757 * doc/invoke.texi (Invoking GCC): Add new section to menu.
3758 (Option Summary): Update to reflect new section and moved options.
3759 (C++ Dialect Options): Move -fstats to new section.
3760 (Debugging Options): Move all dump, statistics, and other GCC
3761 developer options to new section. Rewrite section introduction
3762 and re-order remaining options to put the more basic ones first.
3763 (Optimization Options): Move -fira-verbose and -flto-report* to
3765 (Developer Options): New section incorporating moved options.
3766 * doc/cppopts.texi (-dM): Update cross-reference.
3768 2016-01-18 Richard Henderson <rth@redhat.com>
3771 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
3772 operands to pseudo only if CSE is expected. Split long immediate
3773 operands only after reload, and for the stack pointer.
3774 (*add<GPI>3_pluslong): Remove.
3775 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
3776 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
3777 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
3778 (*add<GPI>3 peepholes): New.
3779 (*add<GPI>3 splitters): New.
3780 * config/aarch64/constraints.md (Upl): New.
3781 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
3783 2016-01-18 Richard Biener <rguenther@suse.de>
3785 PR tree-optimization/69297
3786 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
3788 (vect_bb_vectorization_profitable_p): Clear visited flag again.
3790 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
3793 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
3794 of mixind vector and scalar types.
3795 (fold_relational_const): Add handling of vector
3796 comparison with boolean result.
3797 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
3798 comparison of vector operands with boolean result for EQ/NE only.
3799 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
3800 (verify_gimple_cond): Likewise.
3801 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
3804 2016-01-18 Joseph Myers <joseph@codesourcery.com>
3806 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
3809 2016-01-18 Richard Biener <rguenther@suse.de>
3812 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
3814 2016-01-18 Tom de Vries <tom@codesourcery.com>
3816 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
3818 2016-01-18 Tom de Vries <tom@codesourcery.com>
3820 * omp-low.c (set_oacc_fn_attrib): Make extern.
3821 * omp-low.h (set_oacc_fn_attrib): Declare.
3822 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
3823 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
3824 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
3825 Add and handle function parameter oacc_kernels_p.
3826 (find_reduc_addr, get_omp_data_i_param): New function.
3827 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
3828 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
3829 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
3830 Calculate dominance info. Skip loops that are not in a kernels region
3831 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
3832 (pass_parallelize_loops::execute): Call parallelize_loops with
3833 oacc_kernels_p argument.
3834 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
3835 New member function.
3836 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
3837 * passes.def: Add argument to pass_parallelize_loops instantation.
3839 2016-01-18 Tom de Vries <tom@codesourcery.com>
3841 * tree-parloops.c (pass_parallelize_loops::execute): Allow
3842 pass_parallelize_loops to be run outside the loop pipeline.
3844 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
3846 * tree-scalar-evolution.c (follow_copies_to_constant): New.
3847 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
3849 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
3852 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
3853 using get_ref_base_and_extent.
3854 (equal_mem_array_ref_p): New.
3855 (hashable_expr_equal_p): Add call to previous.
3857 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
3860 * tree-sra.c (disqualified_constants, constant_decl_p): New.
3861 (sra_initialize): Allocate disqualified_constants.
3862 (sra_deinitialize): Free disqualified_constants.
3863 (disqualify_candidate): Update disqualified_constants when appropriate.
3864 (create_access): Scan for constant-pool entries as we go along.
3865 (scalarizable_type_p): Add check against type_contains_placeholder_p.
3866 (maybe_add_sra_candidate): Allow constant-pool entries.
3867 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
3868 (initialize_constant_pool_replacements): New.
3869 (sra_modify_assign): Avoid mangling assignments created by previous,
3870 and don't generate writes into constant pool.
3871 (sra_modify_function_body): Call initialize_constant_pool_replacements.
3873 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
3875 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
3877 (scalar_chain::convert_op): Likewise.
3878 * config/i386/i386.md (*andndi3_doubleword): New.
3880 2016-01-18 Richard Biener <rguenther@suse.de>
3882 PR tree-optimization/69170
3883 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
3884 building a vector from scalar results of a pattern stmt.
3886 2016-01-18 Jakub Jelinek <jakub@redhat.com>
3888 * haifa-sched.c (autopref_multipass_init): Work around
3889 -Wmaybe-uninitialized warning.
3891 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
3893 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
3894 against the constant 0.
3896 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3898 PR tree-optimization/68799
3899 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
3900 look up phi candidates in the statement-candidate map.
3901 (phi_add_costs): Likewise.
3902 (record_phi_increments): Likewise.
3903 (phi_incr_cost): Likewise.
3904 (ncd_with_phi): Likewise.
3905 (all_phi_incrs_profitable): Likewise.
3907 2016-01-17 Jakub Jelinek <jakub@redhat.com>
3909 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
3910 -Wmaybe-uninitialized warning.
3912 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
3914 * doc/invoke.texi (Invoking GCC): Add new section to menu.
3915 (Option Summary): Update to reflect new section and moved options.
3916 (C++ Dialect Options): Move -fvtable-verify and related options.
3917 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
3918 and profiling-related options.
3919 (Optimization Options): Move profile generation options and
3920 -fstack-protector and related options.
3921 (Instrumentation Options): New section incorporating moved options.
3922 (Code Generation Options): Move -finstrument-functions and
3923 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
3925 2016-01-16 Tom de Vries <tom@codesourcery.com>
3927 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
3929 2016-01-16 Tom de Vries <tom@codesourcery.com>
3931 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
3933 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
3935 * hash-table.h (hash_table::empty): Turn into an inline wrapper
3936 that checks whether the table is already empty. Rename the
3937 original implementation to...
3938 (hash_table::empty_slot): ...this new private function.
3940 2016-01-15 David Malcolm <dmalcolm@redhat.com>
3943 * diagnostic-show-locus.c (layout::print_source_line): Move x
3944 offset of line until after call to
3945 get_line_width_without_trailing_whitespace.
3947 2016-01-15 Jeff Law <law@redhat.com>
3949 PR tree-optimization/69270
3950 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
3951 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
3952 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
3953 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
3954 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
3955 ssa_name_has_boolean_range and constant_boolean_node.
3957 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
3959 PR rtl-optimization/69030
3960 * lra-spills.c (remove_pseudos): Check nrefs and make the function
3962 (spill_pseudos): Delete debug insn for dead pseudo.
3963 (lra_spill): Initiate spill_hard_reg and slots memory separately.
3965 2016-01-15 Jiong Wang <jiong.wang@arm.com>
3967 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
3969 (TYPES_UNOPUS): Likewise.
3970 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
3971 builtin type, from UNOP to UNOPUS.
3972 (lbtruncuv4sf): Likewise.
3973 (lbtruncuv2df): Likewise.
3974 (lrounduv2sf): Likewise.
3975 (lrounduv4sf): Likewise.
3976 (lrounduv2df): Likewise.
3977 (lroundusf): Likewise.
3978 (lroundusf): Likewise.
3979 (lceiluv2sf): Likewise.
3980 (lceiluv4sf): Likewise.
3981 (lceiluv2df): Likewise.
3982 (lceilusf): Likewise.
3983 (lceiludf): Likewise.
3984 (lflooruv2sf): Likewise.
3985 (lflooruv4sf): Likewise.
3986 (lflooruv2df): Likewise.
3987 (lfloorusf): Likewise.
3988 (lfloorudf): Likewise.
3989 (lfrintnuv2sf): Likewise.
3990 (lfrintnuv4sf): Likewise.
3991 (lfrintnuv2df): Likewise.
3992 (lfrintnusf): Likewise.
3993 (lfrintnudf): Likewise.
3994 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
3996 (vcvtq_u32_f32): Likewise.
3997 (vcvtq_u64_f64): Likewise.
3998 (vcvta_u32_f32): Likewise.
3999 (vcvtaq_u32_f32): Likewise.
4000 (vcvtaq_u64_f64): Likewise.
4001 (vcvtm_u32_f32): Likewise.
4002 (vcvtmq_u32_f32): Likewise.
4003 (vcvtmq_u64_f64): Likewise.
4004 (vcvtn_u32_f32): Likwise.
4005 (vcvtnq_u32_f32): Likewise.
4006 (vcvtnq_u64_f64): Likewise.
4007 (vcvtp_u32_f32): Likewise.
4008 (vcvtpq_u32_f32): Likewise.
4009 (vcvtpq_u64_f64): Likewise.
4010 (vcvtmd_u64_f64): Likewise.
4011 (vcvtms_u32_f32): Likewise.
4012 (vcvtad_u64_f64): Likewise.
4013 (vcvtas_u32_f32): Likewise.
4014 (vcvtnd_u64_f64): Likewise.
4015 (vcvtns_u32_f32): Likewise.
4016 (vcvtpd_u64_f64): Likewise.
4017 (vcvtps_u32_f32): Likewise.
4019 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4021 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
4022 CSEL of zero_extended registers.
4024 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4026 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
4027 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
4029 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4031 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
4032 false when argument string is not found in the attributes table
4035 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
4038 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
4039 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
4040 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
4043 2016-01-15 Richard Biener <rguenther@suse.de>
4045 PR tree-optimization/66856
4046 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
4047 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
4048 (vect_create_new_slp_node): Increment stmt reference count.
4049 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
4050 an SLP tree before swapping operands.
4051 (vect_build_slp_tree): Likewise.
4052 (destroy_bb_vec_info): Free stmt info after SLP instances.
4053 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
4054 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
4055 (STMT_VINFO_NUM_SLP_USES): New macro.
4057 2016-01-15 Richard Biener <rguenther@suse.de>
4060 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
4061 (add_linkage_name): ... here.
4062 (gen_typedef_die): Use add_linkage_name_raw instead of
4063 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
4066 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
4068 * gimplify.c (oacc_default_clause): Decode reference and pointer
4069 types for both kernels and parallel regions.
4071 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
4074 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
4076 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
4078 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
4079 (convert_scalars_to_vector): Likewise.
4081 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
4083 * doc/extend.texi (Type Traits): Fix grammar.
4085 2016-01-15 Martin Jambor <mjambor@suse.cz>
4087 * tree-inline.c (remap_decl): Use existing dclarations if
4088 remapping a type and prevent_decl_creation_for_types.
4089 (replace_locals_stmt): Do an initial remapping of non-VLA typed
4090 decls first. Do real remapping with
4091 prevent_decl_creation_for_types set.
4092 * tree-inline.h (copy_body_data): New field
4093 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
4096 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
4098 * config/s390/s390.opt (mmvcle): More verbose help text.
4100 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
4102 * config/s390/s390.opt: Add period to -mzvector option text.
4104 2016-01-15 Richard Biener <rguenther@suse.de>
4106 PR tree-optimization/68961
4107 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
4108 of invariants in stores again.
4110 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
4112 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
4114 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
4116 * config/i386/i386.c (ix86_expand_branch): Don't split
4117 DI mode xor instruction to SI mode.
4119 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
4122 * ipa-icf.c (sem_function::merge): Virtual functions may become
4123 reachable even if they address is not taken and there are no
4126 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
4128 * lto-streamer-out.c (subtract_estimated_size): New function.
4129 (get_symbol_initial_value): Use it.
4131 2016-01-15 Christian Bruel <christian.bruel@st.com>
4134 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
4135 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
4136 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
4137 use add_builtin_function_ext_scope instead of add_builtin_function.
4138 (neon_set_p, neon_crypto_set_p): Remove.
4139 (arm_init_builtins): Always call arm_init_neon_builtins and
4140 arm_init_crypto_builtins.
4141 (arm_expand_builtin): Check that builtins are allowed for the arch.
4142 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
4143 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
4144 arm_init_neon_builtins call.
4146 2016-01-15 Richard Biener <rguenther@suse.de>
4148 PR tree-optimization/69117
4149 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
4150 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
4151 of the leader conservatively.
4152 (free_scc_vn): Restore original SSA name infos.
4154 2016-01-14 Jeff Law <law@redhat.com>
4156 PR tree-optimization/69270
4157 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
4158 single bit of precision, verify it's also unsigned.
4159 (record_edge_info): Use constant_boolean_node rather than fold_convert
4160 to convert boolean_true/boolean_false to the right type.
4162 2016-01-14 Richard Henderson <rth@redhat.com>
4165 * loop-doloop.c (record_reg_sets): New.
4166 (doloop_optimize): Reject the transform if the sequence
4167 clobbers registers live at the end of the loop block.
4168 (doloop_optimize_loops): Enable df_live if needed.
4170 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
4172 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
4173 * gcc/config/rs6000/rs6000.c: Likewise.
4174 * gcc/config/rs6000/rs6000.h: Likewise.
4175 * gcc/config/rs6000/rs6000.md: Likewise.
4176 * gcc/doc/extend.texi: Likewsie.
4178 2016-01-14 Jeff Law <law@redhat.com>
4180 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
4183 2016-01-14 Richard Henderson <rth@redhat.com>
4187 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
4188 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
4189 instead of builtin_decl_declared_p to test for declaration.
4191 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
4193 * doc/loop.texi (Loop Analysis and Representation): Document
4194 loop_depth function.
4196 2016-01-14 Tom de Vries <tom@codesourcery.com>
4198 PR tree-optimization/68773
4199 * omp-low.c (expand_omp_target): Don't set force_output.
4200 * varpool.c (varpool_node::get_create): Same.
4201 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
4202 offload_funcs with force_output.
4204 2016-01-14 Jakub Jelinek <jakub@redhat.com>
4207 * lra-eliminations.c (move_plus_up): Don't change anything if either
4208 the outer or inner subreg mode is not MODE_INT.
4209 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
4210 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
4212 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
4214 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
4215 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
4216 reduc_uplus_@var{m}): Remove.
4217 * expr.c (expand_expr_real_2): Remove expansion path for
4218 reduc_[us](min|max|plus) optabs.
4219 * optabs-tree.c (scalar_reduc_to_vector): Remove.
4220 * optabs-tree.h (scalar_reduc_to_vector): Remove.
4221 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
4222 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
4223 * tree-vect-loop.c (vectorizable_reduction): Remove test for
4224 reduc_[us](min|max|plus) optabs.
4226 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
4228 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
4229 (reduc_plus_scal_v2sf): New.
4230 (reduc_smax_v2sf): Rename to...
4231 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
4232 (reduc_smin_v2sf): Rename to...
4233 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
4235 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
4237 * alias.c (compare_base_symbol_refs): New function.
4238 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
4241 2016-01-14 Jakub Jelinek <jakub@redhat.com>
4244 PR tree-optimization/69155
4245 * tree-complex.c: Include cfganal.h.
4246 (phis_to_revisit): New variable.
4247 (extract_component): Add phiarg_p argument. Assert that returned
4248 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
4249 (update_phi_components): Partly rewrite to use loop over real/imag
4250 components instead of code duplication. If extract_component returns
4251 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
4252 create_tmp_reg into the PHI node instead, and mention the phi triplet
4254 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
4255 in phis_to_revisit at the end.
4257 2016-01-14 Richard Biener <rguenther@suse.de>
4259 PR tree-optimization/68060
4260 * tree-vect-loop.c (vect_is_simple_reduction): Check the
4261 outer loop reduction is only used in the inner loop before
4262 detecting a double reduction.
4264 2016-01-14 Jakub Jelinek <jakub@redhat.com>
4267 * combine.c (expand_field_assignment): Punt if compute_mode is
4268 unsupported scalar mode.
4270 2016-01-14 Richard Biener <rguenther@suse.de>
4272 PR tree-optimization/66856
4273 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
4274 SLP node only if it built successfully.
4275 (vect_analyze_slp_instance): Adjust.
4277 2016-01-14 Jeff Law <law@redhat.com>
4279 PR tree-optimization/69270
4280 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
4281 (record_edge_info): Use it. Convert boolean_{true,false}_node
4284 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
4287 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
4288 use block_ultimate_origin
4289 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
4291 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
4293 * doc/invoke.texi (Submodel Options): Rename section to
4294 "Machine-Dependent Options" to better reflect its content.
4295 Rewrite introductory text to remove archaic CPU names.
4298 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
4300 * doc/invoke.texi (Code Gen Options): Move section up in file,
4301 before target-specific options. Update menu and option summary
4302 to reflect the new section ordering.
4304 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
4306 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
4307 (C++ Dialect Options): Add cross-reference to -std option.
4308 * doc/standards.texi (C++ Language): Document C++14 support.
4310 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
4312 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
4313 for pack/unpack functions for __ibm128.
4314 (PACK_IF): Likewise.
4315 (UNPACK_IF): Likewise.
4317 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
4318 support for __ibm128 pack/unpack functions.
4319 (rs6000_invalid_builtin): Likewise.
4320 (rs6000_init_builtins): Likewise.
4321 (rs6000_opt_masks): Likewise.
4323 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
4324 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
4326 (RS6000_BTM_COMMON): Likewise.
4328 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
4329 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
4330 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
4331 128-bit floating point. Add support for the double values to be
4332 in Altivec registers for TF/IF packing and unpacking, but restrict
4333 TD packing sub-fields to be FPR registers. Don't allow overlapped
4334 register support for packing. Allow pack inputs to be memory
4335 locations. Don't build generator functions for unpack<mode>_dm
4336 and unpack<mode>_nodm.
4337 (unpack<mode>_dm): Likewise.
4338 (unpack<mode>_nodm): Likewise.
4339 (pack<mode>): Likewise.
4341 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
4342 built-in functions to pack/unpack explicit __ibm128 values.
4343 (__builtin_unpack_ibm128): Likewise.
4345 * doc/extend.texi (PowerPC Built-in Functions): Document
4346 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
4348 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
4351 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
4352 Add new arg loc and pass it down as context.
4353 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
4354 to the location to use for the warning.
4355 (check_function_arguments): New arg loc. All callers changed. Pass
4356 it to check_function_nonnull.
4357 * c-common.h (check_function_arguments): Adjust declaration.
4359 2016-01-13 Jakub Jelinek <jakub@redhat.com>
4361 PR tree-optimization/69156
4362 * gimple.c (validate_type): Removed.
4363 (gimple_builtin_call_types_compatible_p): Use
4364 useless_type_conversion_p instead of validate_type.
4365 * value-prof.c (gimple_stringop_fixed_value): Fold
4366 icall_size to correct type.
4368 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
4370 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
4373 2016-01-13 Richard Henderson <rth@redhat.com>
4376 * target.def (builtin_tm_load, builtin_tm_store): Remove.
4377 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
4378 (ix86_builtin_tm_store): Remove.
4379 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
4380 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
4381 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
4382 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
4383 * doc/tm.texi: Rebuild.
4385 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
4386 (BUILT_IN_TM_MEMCPY_RTWN): New.
4387 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
4388 fallback from vector to integer helpers.
4389 (build_tm_load): Handle vector types directly, instead of
4391 (build_tm_store): Likewise.
4392 (expand_assign_tm): Prepare for register types not handled by
4393 the above. Copy them to memory and use memcpy.
4394 * tree.c (tm_define_builtin): New.
4395 (find_tm_vector_type): New.
4396 (build_tm_vector_builtins): New.
4397 (build_common_builtin_nodes): Call it.
4399 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
4401 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
4402 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
4404 2016-01-13 Tom de Vries <tom@codesourcery.com>
4406 PR tree-optimization/69169
4407 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
4408 handled_struct_type param.
4409 (create_variable_info_for, intra_create_variable_infos): Call
4410 create_variable_info_for_1 with extra arg.
4412 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
4414 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
4415 and "armv8.1-a+crc" entries.
4417 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
4420 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
4421 Change first operand predicate from register_or_constm1_operand
4422 to register_operand.
4423 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
4424 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
4425 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
4426 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
4427 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
4428 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
4429 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
4430 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
4431 comparison with constm1_rtx from vec_prefetch_gen part.
4433 2016-01-13 Richard Biener <rguenther@suse.de>
4435 PR tree-optimization/69013
4436 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
4437 Exchange assert for a test.
4439 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4442 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
4444 2016-01-13 Richard Biener <rguenther@suse.de>
4446 PR tree-optimization/69242
4447 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
4448 assert with a check.
4450 2016-01-13 Richard Biener <rguenther@suse.de>
4452 PR tree-optimization/69186
4453 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
4454 Properly guard vect_update_misalignment_for_peel call.
4456 2016-01-12 Jeff Law <law@redhat.com>
4458 PR tree-optimization/pr67755
4459 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
4460 "need_profile_correction".
4461 (thread_block_1): Initialize new field to false by default. If we
4462 have multiple thread paths through a common joiner to different
4463 final targets, then set new field to true.
4464 (compute_path_counts): Only do count adjustment when it's really
4467 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
4469 * doc/invoke.texi (Spec Files): Move section down in file, past
4470 all command-line option descriptions.
4472 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4475 * doc/gty.texi: Remove documentation of mark_hook.
4476 * gengtype.c (struct write_types_data): Remove code to support
4477 mark_hook attribute.
4478 (walk_type): Likewise.
4479 (write_func_for_structure): Likewise.
4481 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
4483 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
4484 Directory Options, and -specs= to Overall Options.
4485 (Overall Options): Adjust similarly. Reorder to group related
4486 options together. Make -specs= cross-reference the spec file details.
4487 (Directory Options): Adjust similarly.
4489 2016-01-12 Jeff Law <law@redhat.com>
4491 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
4493 2016-01-12 Olivier Hainque <hainque@adacore.com>
4495 * gcc.c (spec_undefvar_allowed): New global.
4496 (process_command): Set to true when running for --version or --help,
4498 (getenv_spec_function): When the variable is not defined, use the
4499 variable name as the variable value if we're allowed not to issue
4502 2016-01-12 Bin Cheng <bin.cheng@arm.com>
4504 PR tree-optimization/68911
4505 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
4506 information computed for expression "init + nit * step".
4508 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
4510 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
4511 about name of GCC executable. Remove deleted node from menu.
4512 (Directory Options) <-B>: Remove cross-reference to deleted node.
4513 (Target Options): Delete section.
4515 2016-01-12 Christian Bruel <christian.bruel@st.com>
4518 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
4519 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
4521 2016-01-12 Jakub Jelinek <jakub@redhat.com>
4524 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
4525 aligned_mem is properly set for AVX512-VL floating point masked
4529 * ifcvt.c (cond_exec_process_if_block): When removing the last
4530 insn from then_bb, remove also any possible barriers that follow it.
4532 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
4536 * config/i386/iamcu.h (SIZE_TYPE): New macro.
4537 (PTRDIFF_TYPE): Likewise.
4538 (WCHAR_TYPE): Likewise.
4539 (WCHAR_TYPE_SIZE): Likewise.
4540 (STDINT_LONG32): Likewise.
4542 2016-01-12 Richard Biener <rguenther@suse.de>
4544 PR tree-optimization/69053
4545 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
4546 convert initial value for cond reductions.
4548 2016-01-12 Richard Biener <rguenther@suse.de>
4550 PR tree-optimization/69007
4551 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
4552 widen_sum after dot_prod and sad.
4554 2016-01-12 Richard Biener <rguenther@suse.de>
4556 PR tree-optimization/69168
4557 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
4558 pattern stmt SLP type.
4559 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
4560 end up unused so cope with that case.
4562 2016-01-12 Richard Biener <rguenther@suse.de>
4564 PR tree-optimization/69157
4565 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
4566 stmts def type only during analyze phase.
4567 (vectorizable_call): Likewise.
4568 (vectorizable_simd_clone_call): Likewise.
4569 (vectorizable_conversion): Likewise.
4570 (vectorizable_assignment): Likewise.
4571 (vectorizable_shift): Likewise.
4572 (vectorizable_operation): Likewise.
4573 (vectorizable_store): Likewise.
4574 (vectorizable_load): Likewise.
4576 2016-01-12 Richard Biener <rguenther@suse.de>
4578 PR tree-optimization/69174
4579 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
4581 (vectorizable_load): Properly compute the number of loads needed
4582 for permuted strided SLP loads and do not spuriously assign
4583 to SLP_TREE_VEC_STMTS.
4585 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
4587 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
4588 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
4589 (MD_EXEC_PREFIX): Remove.
4590 (MD_STARTFILE_PREFIX) Removee.
4591 (FILE_NAME_ABSOLUTE_P): Remove.
4592 (CPP_SPEC): Do not read macros from sys/version.h.
4593 (LINK_COMMAND_SPEC): Remove.
4594 (LOCAL_INCLUDE_DIR): Remove.
4595 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
4596 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
4597 (POST_LINK_SPEC): Define to invoke stubify after linker
4598 (LIBSTDCXX): Remove define
4599 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
4600 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
4601 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
4602 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
4603 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
4604 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
4605 (i386_djgpp_asm_named_section): Add propotype of new procedure
4607 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
4608 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
4609 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
4610 in config/i386/djgpp.h).
4611 (STANDARD_STARTFILE_PREFIX_2): Define identical to
4612 STANDARD_STARTFILE_PREFIX_1.
4613 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
4614 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
4615 installation errors.
4616 (MAX_OFILE_ALIGNMENT): Define to 128.
4617 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
4619 * config/i386/djgpp.c: New file. Add implementation of
4620 i386_djgpp_asm_named_section.
4622 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
4624 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
4625 Add rule for building djgpp.o.
4627 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4629 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
4630 (rtx_is_swappable_p): Reductions are swappable.
4631 (insn_is_swappable_p): V2DF reductions are swappable.
4633 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
4635 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
4636 reloads for other unsupported memory operands.
4638 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
4639 Jim Wilson <jim.wilson@linaro.org>
4642 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
4643 copy_to_mode_reg instead of force_reg.
4645 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
4648 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
4649 TARGET_80387 is true.
4651 2016-01-11 Jakub Jelinek <jakub@redhat.com>
4654 * lra-eliminations.c (move_plus_up): Only move plus up
4655 if subreg of the constant can be simplified into constant
4656 and use the simplified subreg of the constant instead of
4657 the original constant.
4659 * fold-const.c (fold_convertible_p): Don't return true
4660 for conversion of VECTOR_TYPE to same sized integral type.
4661 (fold_convert_loc): Fix up formatting. Fold conversion of
4662 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
4663 instead of NOP_EXPR.
4665 PR tree-optimization/69214
4666 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
4667 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
4670 PR tree-optimization/69207
4671 * tree-vect-slp.c (vect_get_constant_vectors): For
4672 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
4673 fold_convertible_p to vector_type's element type, and always
4674 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
4676 2016-01-11 Richard Biener <rguenther@suse.de>
4678 PR tree-optimization/69173
4679 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
4680 fixup the cycle if all stmts are in a pattern.
4682 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
4685 * alias.c (base_alias_check): Move check for addresses with
4686 alignment ANDs before the call for compare_base_decls.
4687 (memrefs_conflict_p): Return -1 for different decls
4688 that went through alignment adjustments.
4690 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4692 PR rtl-optimization/68796
4693 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
4694 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
4695 and QImode comparisons against zero with CC_NZmode.
4696 * config/aarch64/iterators.md (short_mask): New mode_attr.
4698 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
4700 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
4701 (<avx512>_store<mode>_mask): Likewise.
4703 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
4704 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4706 PR rtl-optimization/68841
4707 * ifcvt.c (struct noce_if_info): Add orig_x field.
4708 (bbs_ok_for_cmove_arith): Add to_rename parameter.
4709 Don't record conflicts on to_rename if it's present.
4710 Allow memory destinations in sets.
4711 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
4712 blocks, passing orig_x to the checks.
4713 (noce_process_if_block): Set if_info->orig_x appropriately.
4715 2016-01-11 Tom de Vries <tom@codesourcery.com>
4717 PR tree-optimization/69069
4718 * tree-parloops.c (create_parallel_loop): Add missing phi args.
4720 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
4722 PR rtl-optimization/68920
4723 * config/i386/i386.c (ix86_option_override_internal): Restrict number
4724 of conditional moves for RTL if-conversion to 1 for
4725 TARGET_ONE_IF_CONV_INSN.
4726 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
4727 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
4728 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
4729 parameter to restirct number of conditional moves for
4731 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
4732 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
4735 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
4738 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
4739 onepart vars. Fix typo in comment. Fix reversed condition in
4741 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
4744 * var-tracking.c (dump_onepart_variable_differences): New.
4745 (dataflow_set_different): If a detailed dump is requested,
4746 delay early returns and dump differences between onepart
4747 variables present before and after, and added variables.
4749 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
4752 * expr.c (expand_expr_real_1): For boolean vector constants
4753 with a scalar mode use const_scalar_mask_from_tree.
4754 (const_scalar_mask_from_tree): New.
4755 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
4756 assigned to a mask type to handle constants.
4758 2016-01-11 Martin Jambor <mjambor@suse.cz>
4761 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
4762 useless parameters if we cannot change function signature.
4764 2016-01-11 Martin Jambor <mjambor@suse.cz>
4767 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
4770 2016-01-11 Tom de Vries <tom@codesourcery.com>
4772 PR tree-optimization/69109
4773 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
4776 2016-01-11 Tom de Vries <tom@codesourcery.com>
4778 PR tree-optimization/69108
4779 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
4780 res is not used in a phi.
4782 2016-01-11 Yury Gribov <y.gribov@samsung.com>
4785 * common.opt (frandom-seed): Fix parameter name.
4786 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
4788 2016-01-11 Tom de Vries <tom@codesourcery.com>
4790 PR tree-optimization/69058
4791 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
4794 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
4796 * config/arc/arc.opt (mdiv-rem): Add period to the end.
4797 (mcode-density): Likewise.
4799 2016-01-10 Tom de Vries <tom@codesourcery.com>
4801 PR tree-optimization/69062
4802 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
4803 (parallelize_loops): Don't paralelize loop that has phi with address
4806 2016-01-10 Tom de Vries <tom@codesourcery.com>
4808 PR tree-optimization/69039
4809 * tree-parloops.c (try_create_reduction_list): Only allow single exit
4812 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
4815 * match.pd: Require target has function_c99_misc before doing
4816 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
4818 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
4820 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
4822 * configure: Regenerate.
4824 2016-01-09 Jakub Jelinek <jakub@redhat.com>
4827 PR tree-optimization/69097
4828 * fold-const.h (expr_not_equal_to): New prototype.
4829 * fold-const.c: Include stringpool.h and tree-ssanames.h.
4830 (expr_not_equal_to): New function.
4831 * match.pd (X % -Y is the same as X % Y): Don't optimize
4832 unless X is known not to be equal to minimum or Y is known
4833 not to be equal to -1.
4834 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
4835 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
4836 (simplify_stmt_using_ranges): Adjust caller.
4837 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
4838 substitute_and_fold.
4840 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
4842 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
4845 2016-01-08 Jakub Jelinek <jakub@redhat.com>
4847 PR tree-optimization/69167
4848 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
4849 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
4851 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
4853 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
4854 Richard Biener <rguenther@suse.de>
4856 PR tree-optimization/68707
4857 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
4858 instances that can be handled via vect_load_lanes.
4860 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
4862 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
4863 if we can't determine address equivalence.
4864 * alias.c (compare_base_decl): Update for changed return value of
4865 symtab_node::equal_address_to.
4867 2016-01-08 Jason Merrill <jason@redhat.com>
4871 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
4872 * expr.c (store_field): Not here.
4873 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
4874 call with TREE_ADDRESSABLE type.
4875 * tree-cfg.c (verify_gimple_call): Adjust.
4877 2016-01-08 Olivier Hainque <hainque@adacore.com>
4879 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
4882 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
4884 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
4885 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
4886 (reduc_smin_v2sf): Rename to...
4887 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
4888 (reduc_splus_v2sf): Rename to...
4889 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
4891 2016-01-08 Jakub Jelinek <jakub@redhat.com>
4893 PR tree-optimization/69162
4894 * gimplify.c (gimplify_va_arg_expr): Encode original type of
4895 valist argument in another argument.
4896 (gimplify_modify_expr): Adjust for the above change. Cleanup.
4897 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
4898 to determine the va_list type, build a MEM_REF instead of
4899 build_fold_indirect_ref.
4901 PR tree-optimization/69172
4902 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
4905 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
4907 PR tree-optimization/67781
4908 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
4909 and cmpnop in two steps: first the ones not accessed in original
4910 gimple expression in a endian independent way and then the ones not
4911 accessed in the final result in an endian-specific way.
4913 2016-01-08 Jakub Jelinek <jakub@redhat.com>
4915 PR tree-optimization/69083
4916 * tree-vect-slp.c (vect_get_constant_vectors): For
4917 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
4918 element type. If op is fold_convertible_p to vector_type's element
4919 type, use NOP_EXPR instead of VCE.
4921 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
4923 PR rtl-optimization/67778
4924 PR rtl-optimization/68634
4925 PR rtl-optimization/68909
4926 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
4927 block from the stack until done with it. Remove a superfluous
4928 bitmap set. Remove a superfluous bitmap test.
4930 2016-01-07 Martin Sebor <msebor@redhat.com>
4933 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
4934 constraint on the type of arguments.
4936 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
4938 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
4939 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
4940 unaligned_access on the gcc_options set.
4941 * config/arm/arm.c (arm_option_override_internal): Use
4942 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
4944 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
4947 * config/i386/i386.c (ix86_frame_pointer_required): Enable
4948 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
4950 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
4953 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
4956 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
4957 depending on frame_pointer_needed before remaining integer and SSE
4958 registers are saved.
4960 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
4963 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
4965 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
4968 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
4969 Use the "xBm" constraint.
4970 (float<sseintvecmodelower><mode>2<mask_name><round_name):
4972 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
4973 (sse_cvtsi2ssq<round_name>): Likewise.
4974 (sse_cvtss2si<round_name>): Likewise.
4975 (sse_cvtss2siq<round_name>): Likewise.
4976 (sse2_cvtsi2sdq<round_name>): Likewise.
4977 (sse2_cvtsd2si<round_name>): Likewise.
4978 (sse2_cvtsd2siq<round_name>): Likewise.
4979 * config/i386/subst.md (round_nimm_scalar_predicate): New
4982 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
4985 * varasm.c (make_decl_rtl): Mark invalid register vars as
4988 PR rtl-optimization/66206
4989 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
4990 All callers changed.
4992 2016-01-07 Jakub Jelinek <jakub@redhat.com>
4994 PR tree-optimization/69141
4995 * tree-ssa-pre.c: Include langhooks.h.
4996 (eliminate_dom_walker::before_dom_children): Use
4997 lang_hooks.decl_printable_name instead of
4998 cgraph_node::get ()->name ().
5001 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
5002 it and DECL_ALIGN too.
5004 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
5006 * config/mips/mips-ftypes.def: Sort to lexicographical order.
5008 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
5011 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
5012 depending on frame_pointer_needed before remaining integer and SSE
5013 registers are saved.
5015 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5017 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
5018 mode iterator with VSX_M2.
5019 (*p9_vecstore_<mode>): Likewise.
5020 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
5021 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
5022 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
5023 (define_split for VSX_LE128 stores): Likewise.
5024 (define_peephole2 for TImode LE swaps): Likewise.
5025 (define_split for VSX_LE128 post-reload stores): Likewise.
5027 2016-01-06 Marek Polacek <polacek@redhat.com>
5030 * convert.c (convert_to_integer_1): Adjust call to
5031 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
5032 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
5033 EXPR instead of ARG.
5034 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
5036 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
5039 * doc/extend.texi (RL78 Variable Attributes): New section.
5041 2016-01-05 Marek Polacek <polacek@redhat.com>
5044 * builtins.c (get_memmodel): Use expansion point location rather than
5045 the input location. Call warning_at rather than warning.
5046 (expand_builtin_atomic_compare_exchange): Likewise.
5047 (expand_builtin_atomic_load): Likewise.
5048 (expand_builtin_atomic_store): Likewise.
5049 (expand_builtin_atomic_clear): Likewise.
5051 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
5054 * config/i386/i386.c (ix86_expand_vector_logical_operator):
5055 Replace nonimmediate_operand with vector_operand.
5056 * config/i386/predicates.md (vector_operand): New predicate.
5057 (general_vector_operand): Replace nonimmediate_operand with
5059 * config/i386/sse.md: Replace nonimmediate_operand with
5060 vector_operand and m constraint with Bm constraint on SSE
5061 patterns with 16-byte memory operand.
5062 * config/i386/subst.md (round_nimm_predicate): Replace
5063 nonimmediate_operand with vector_operand.
5064 (round_saeonly_nimm_predicate): Likewise.
5065 (round_saeonly_nimm_scalar_predicate): New.
5067 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
5070 * config/i386/constraints.md (Bm): New constraint.
5071 * config/i386/predicates.md (vector_memory_operand): New
5073 * config/i386/sse.md: Replace xm with xBm in plusminus and
5076 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
5079 * doc/extend.texi (V850 Function Attributes): New section.
5080 (V850 Variable Attributes): New section.
5082 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
5085 * doc/extend.texi (MicroBlaze Function Attributes): Document
5086 interrupt_handler and fast_interrupt attributes.
5088 2016-01-05 Sergei Trofimovich <siarheit@google.com>
5091 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
5092 for local symbolic operands.
5093 * config/ia64/predicates.md (local_symbolic_operand64): New
5096 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5098 PR rtl-optimization/68651
5099 * combine.c (combine_simplify_rtx): Canonicalize x + x into
5102 2016-01-05 Nathan Sidwell <nathan@acm.org>
5104 * alias.c (compare_base_decls): Use symtab_node::get.
5106 2016-01-05 Nick Clifton <nickc@redhat.com>
5109 * ira-costs.c (copy_cost): Initialise the t_icode field of the
5110 secondary_reload_info structure.
5113 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
5114 decls if weak support is available.
5116 2016-01-04 Martin Sebor <msebor@redhat.com>
5118 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
5120 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
5122 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
5123 OPTION_MASK_P9_DFORM.
5125 * config/rs6000/constraints.md (wo constraint): New constraint for
5128 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
5130 (rs6000_init_hard_regno_mode_ok): Likewise.
5132 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
5135 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
5136 expanders not to have constraints. Add support for ISA 3.0 xxperm
5137 instruction. Add support for fusing xxlor with xxperm.
5138 (altivec_vperm_<mode>_internal): Likewise.
5139 (altivec_vperm_v8hiv16qi): Likewise.
5140 (altivec_vperm_<mode>v16q): Likewise.
5141 (altivec_vperm_<mode>_uns): Likewise.
5142 (vperm_v8hiv4si): Likewise.
5143 (vperm_v16qiv8hi): Likewise.
5145 * doc/md.texi (RS/6000 constraints): Document wo constraint.
5147 2016-01-04 Jakub Jelinek <jakub@redhat.com>
5149 Update copyright years.
5151 * gcc.c (process_command): Update copyright notice dates.
5152 * gcov-dump.c (print_version): Ditto.
5153 * gcov.c (print_version): Ditto.
5154 * gcov-tool.c (print_version): Ditto.
5155 * gengtype.c (create_file): Ditto.
5156 * doc/cpp.texi: Bump @copying's copyright year.
5157 * doc/cppinternals.texi: Ditto.
5158 * doc/gcc.texi: Ditto.
5159 * doc/gccint.texi: Ditto.
5160 * doc/gcov.texi: Ditto.
5161 * doc/install.texi: Ditto.
5162 * doc/invoke.texi: Ditto.
5164 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
5166 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
5167 modes larger than TImode as TImode if NEON is not enabled.
5169 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
5172 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
5173 mode for %f0-%f31 only if TARGET_FPU.
5175 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
5178 * config/sparc/sparc.c (scan_record_type): Take into account subfields
5179 to compute the PACKED_P predicate.
5180 (function_arg_record_value): Minor tweaks.
5182 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
5184 * doc/install.texi (--with-multilib-list): Describe the meaning of the
5185 option for arm*-*-* targets.
5187 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
5189 * doc/extend.texi (Common Function Attributes): Move docs for
5190 MSP430-specific attributes to....
5191 (MSP430 Function Attributes): ...here. Delete the redundant
5192 entries and copy-edit the remaining text.
5193 (MSP430 Variable Attributes): Use uniform format for index
5194 entries and add a cross-reference to the corresponding function
5197 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
5199 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
5201 (x86 Options): Likewise.
5203 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
5207 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
5208 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
5209 to corresponding attribute.
5211 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
5213 * doc/extend.texi (Common Function Attributes) <noplt>: Move
5214 to correct alphabetization of table. Copy-edit and correct
5216 <stack_protect>: Likewise.
5217 <target_clones>: Likewise.
5219 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
5220 Correct punctuation.
5221 (Code Gen Options) <-fno-plt>: Copy-edit.
5223 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5226 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
5227 SI values. Explicitly convert SI to DI and vice-versa.
5229 2016-01-01 Jakub Jelinek <jakub@redhat.com>
5231 PR tree-optimization/69070
5232 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
5233 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
5236 * ubsan.c (ubsan_instrument_float_cast): Call
5237 initialize_sanitizer_builtins.
5240 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
5242 Copyright (C) 2016 Free Software Foundation, Inc.
5244 Copying and distribution of this file, with or without modification,
5245 are permitted in any medium without royalty provided the copyright
5246 notice and this notice are preserved.