1 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3 * ifcvt.c (insn_valid_noce_process_p): Reject insn if it satisfies
5 (noce_try_cmove_arith): Add checking asserts that orig_a and orig_b
6 are not modified by the final modified insns in the basic blocks.
8 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10 PR rtl-optimization/68506
11 * ifcvt.c (noce_try_cmove_arith): Try emitting the else basic block
12 first if emit_a exists or then_bb modifies 'b'. Reindent if-else
15 2015-11-27 Martin Liska <mliska@suse.cz>
18 * vec.h (release_vec_vec): New function.
20 2015-11-27 Jakub Jelinek <jakub@redhat.com>
22 PR tree-optimization/68552
23 * optabs.c (expand_vec_perm_1): Move vec_shr handling from here...
24 (expand_vec_perm): ... here. Do it regardless of vec_perm_const_optab
27 2015-11-27 Martin Liska <mliska@suse.cz>
29 * tree-ssa-uninit.c: Fix whitespaces in the source file.
30 The change is just automatical.
32 2015-11-27 Martin Liska <mliska@suse.cz>
34 * tree-chkp.c (chkp_make_static_bounds): Release buffer
37 2015-11-27 Martin Liska <mliska@suse.cz>
39 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
40 Do not release memory for comp_alias_ddrs.
41 * tree-vect-loop.c (destroy_loop_vec_info): Release
42 the memory for all loop_vec_info.
44 2015-11-27 Martin Liska <mliska@suse.cz>
46 * ipa-devirt.c (ipa_devirt): Use auto_vec instead
48 (struct final_warning_record): Use auto_vec instead
51 2015-11-27 Richard Biener <rguenther@suse.de>
53 PR tree-optimization/68553
54 * tree-vect-slp.c (vect_get_mask_element): Remove.
55 (vect_transform_slp_perm_load): Implement in a simpler way.
57 2015-11-26 Alexandre Oliva <aoliva@redhat.com>
59 PR rtl-optimization/67753
60 PR rtl-optimization/64164
61 * function.c (assign_parm_setup_block): Right-shift
62 upward-padded big-endian args when bypassing the stack slot.
64 2015-11-26 Maciej W. Rozycki <macro@imgtec.com>
66 * doc/invoke.texi (Option Summary) <MIPS Options>: Reorder
67 `-mcompact-branches='.
68 (MIPS Options): Likewise.
70 2015-11-26 Jakub Jelinek <jakub@redhat.com>
72 * Makefile.in (build/genmatch.o): Depend on internal-fn.def.
74 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
76 * doc/install.texi (Prerequisites): Increase ISL requirement to
79 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
81 * config/aarch64/arm_neon.h
82 (vqrdmlah_laneq_s16, vqrdmlah_laneq_s32): New.
83 (vqrdmlahq_laneq_s16, vqrdmlahq_laneq_s32): New.
84 (vqrdmlsh_lane_s16, vqrdmlsh_lane_s32): New.
85 (vqrdmlshq_laneq_s16, vqrdmlshq_laneq_s32): New.
86 (vqrdmlah_lane_s16, vqrdmlah_lane_s32): New.
87 (vqrdmlahq_lane_s16, vqrdmlahq_lane_s32): New.
88 (vqrdmlahh_s16, vqrdmlahh_lane_s16, vqrdmlahh_laneq_s16): New.
89 (vqrdmlahs_s32, vqrdmlahs_lane_s32, vqrdmlahs_laneq_s32): New.
90 (vqrdmlsh_lane_s16, vqrdmlsh_lane_s32): New.
91 (vqrdmlshq_lane_s16, vqrdmlshq_lane_s32): New.
92 (vqrdmlshh_s16, vqrdmlshh_lane_s16, vqrdmlshh_laneq_s16): New.
93 (vqrdmlshs_s32, vqrdmlshs_lane_s32, vqrdmlshs_laneq_s32): New.
95 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
97 * config/aarch64/arm_neon.h (vqrdmlah_s16, vqrdmlah_s32): New.
98 (vqrdmlahq_s16, vqrdmlahq_s32): New.
99 (vqrdmlsh_s16, vqrdmlsh_s32): New.
100 (vqrdmlshq_s16, vqrdmlshq_s32): New.
102 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
104 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Add
107 2015-11-26 Pierre-Marie de Rodat <derodat@adacore.com>
110 * tree-nested.c (finalize_nesting_tree_1): Append a field to
111 hold the frame base address.
112 * dwarf2out.c (gen_subprogram_die): Generate for
113 DW_AT_static_link a location description that computes the value
116 2015-11-26 Tom de Vries <tom@codesourcery.com>
119 2015-11-25 Tom de Vries <tom@codesourcery.com>
121 * cfgloop.c (find_single_latch): New function, factored out of ...
122 (flow_loops_find): ... here.
123 (verify_loop_structure): Improve verification of loop->latch.
124 * cfgloop.h (find_single_latch): Declare.
125 * omp-low.c (expand_omp_for_generic): Initialize latch of orig_loop.
127 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
129 * config/aarch64/aarch64-simd-builtins.def:
130 Add missing changes from r230962.
132 2015-11-26 Nathan Sidwell <nathan@acm.org>
134 * config/nvptx/nvptx.c (write_func_decl_from_insn): Replace callee
135 arg with name. Don't deal with split regs. Tweak formatting.
136 (nvptx_expand_call): Adjust write_func_decl_from_insn call.
137 (nvptx_output_call_insn): Don't deal with split regs here.
139 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
141 * config/aarch64/aarch64-simd-builtins.def
142 (sqrdmlah, sqrdmlsh): New.
143 (sqrdmlah_lane, sqrdmlsh_lane): New.
144 (sqrdmlah_laneq, sqrdmlsh_laneq): New.
146 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
148 * config/aarch64/aarch64-simd.md
149 (aarch64_sqmovun<mode>): Fix some white-space.
150 (aarch64_<sur>qmovun<mode>): Likewise.
151 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h<mode>): New.
152 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): New.
153 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): New.
154 * config/aarch64/iterators.md (UNSPEC_SQRDMLAH): New.
155 (UNSPEC_SQRDMLSH): New.
159 2015-11-26 Richard Biener <rguenther@suse.de>
161 PR tree-optimization/66721
162 * tree-vect-loop.c (vect_analyze_loop_2): Compute scalar
163 iteration cost earlier. Re-do analysis without SLP when
164 vectorization using SLP fails and without has a chance to succeed.
166 2015-11-26 Richard Biener <rguenther@suse.de>
168 * genmatch.c (dt_simplify::gen_1): For generic wrap all
169 multi-result-use captures in a SAVE_EXPR.
171 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
173 * config/aarch64/aarch64.h (AARCH64_ISA_RDMA): New.
174 (TARGET_SIMD_RDMA): New.
176 2015-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
178 * combine.c (subst): Do not return clobber of zero in widening mult
179 case. Just return x unchanged if it is a no-op substitution.
181 2015-11-26 Vladimir Makarov <vmakarov@redhat.com>
184 * config/i386/i386.h (enum reg_class): Add
185 bounds registers to ALL_REGS.
187 2015-11-26 Jakub Jelinek <jakub@redhat.com>
189 PR tree-optimization/68128
190 * tree.h (OMP_CLAUSE_SHARED_READONLY): Define.
191 * gimplify.c: Include gimple-walk.h.
192 (enum gimplify_omp_var_data): Add GOVD_WRITTEN.
193 (omp_notice_variable): Set flags to n->value if n already
194 exists in target region, but we need to jump to do_outer.
195 (omp_shared_to_firstprivate_optimizable_decl_p,
196 omp_mark_stores, omp_find_stores_op, omp_find_stores_stmt): New
198 (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_SHARED_READONLY
199 on OMP_CLAUSE_SHARED if it is a scalar non-addressable that is
200 not modified in the body. Call omp_mark_stores for outer
201 contexts on OMP_CLAUSE_SHARED clauses if they could be written
202 in the body or on OMP_CLAUSE_LASTPRIVATE.
203 (gimplify_adjust_omp_clauses): Add body argument, call
204 omp_find_stores_{stmt,op} on the body through walk_gimple_seq.
205 Set OMP_CLAUSE_SHARED_READONLY
206 on OMP_CLAUSE_SHARED if it is a scalar non-addressable that is
207 not modified in the body. Call omp_mark_stores for outer
208 contexts on OMP_CLAUSE_SHARED clauses if they could be written
209 in the body or on OMP_CLAUSE_LASTPRIVATE or on OMP_CLAUSE_LINEAR
210 without OMP_CLAUSE_LINEAR_NO_COPYOUT or on OMP_CLAUSE_REDUCTION.
211 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task,
212 gimplify_omp_for, gimplify_omp_workshare, gimplify_omp_target_update,
213 gimplify_expr): Adjust gimplify_adjust_omp_clauses callers.
214 * tree-nested.c (convert_nonlocal_omp_clauses,
215 convert_local_omp_clauses): Clear OMP_CLAUSE_SHARED_READONLY on
216 non-local vars or local vars referenced from nested routines.
217 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_SHARED_READONLY
218 attempt to optimize it into OMP_CLAUSE_FIRSTPRIVATE. Even for
219 TREE_READONLY, don't call use_pointer_for_field with non-NULL
220 second argument until we are sure we are keeping OMP_CLAUSE_SHARED.
222 2015-11-26 Paolo Bonzini <bonzini@gnu.org>
224 * doc/implement-c.texi (Integers Implementation): Make GCC's promises
225 about signed left shift stronger and clarify the cases when they're
228 2015-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
229 Bernd Schmidt <bschmidt@redhat.com>
231 PR rtl-optimization/67226
232 * calls.c (store_one_arg): Take into account
233 crtl->args.pretend_args_size when checking for overlap between
234 arg->value and argblock + arg->locate.offset during sibcall
237 2015-11-26 Wilco Dijkstra <wdijkstr@arm.com>
239 * config/aarch64/aarch64.md (cbranch<mode>4): Use
240 aarch64_fp_compare_operand.
241 (store_pairsf): Use aarch64_reg_or_fp_zero.
242 (store_pairdf): Likewise.
243 (cstore<mode>4): Use aarch64_fp_compare_operand.
244 (cmov<mode>6): Likewise.
245 * config/aarch64/aarch64-ldpstp.md: Use aarch64_reg_or_fp_zero.
247 2015-11-25 Aditya Kumar <aditya.k7@samsung.com>
248 Sebastian Pop <s.pop@samsung.com>
250 PR tree-optimization/68453
251 * graphite-isl-ast-to-gimple.c (translate_isl_ast_for_loop): Do
252 not redirect edges already pointing to their destination.
253 (translate_isl_ast_node_for): Split edges after loops to create
254 basic blocks for close phi nodes. Save merge points at the end of
256 (translate_isl_ast_node_if): Save merge points at the end of the
258 (add_close_phis_to_outer_loops): New.
259 (add_close_phis_to_merge_points): New.
260 (copy_loop_close_phi_args): Call add_close_phis_to_merge_points.
261 (copy_bb_and_scalar_dependences): Do not split basic blocks on
262 loop close phi locations.
264 2015-11-25 Jan Hubicka <jh@suse.cz>
266 * ipa-visibility.c (cgraph_externally_visible_p,
267 varpool_node::externally_visible_p): When doing incremental linking,
268 hidden symbols may be still used later.
269 (update_visibility_by_resolution_info): Do not drop weak during
271 (function_and_variable_visibility): Fix formating.
272 * flag-types.h (lto_linker_output): Declare.
273 * common.opt 9flag_incremental_link): New flag.
275 2015-11-25 Michael Meissner <meissner@linux.vnet.ibm.com>
277 * config/rs6000/constraints.md (wb constraint): New constraint for
278 ISA 3.0 d-form scalar addressing.
280 * config/rs6000/rs6000.c (mode_supports_vmx_dform): Add support
281 for ISA 3.0 D-form addressing to load SFmode/DFmode scalars into
282 Altivec registers. Add wb constraint for Altivec registers with
283 D-form addressing. If we have ISA 3.0 d-form support, undo
284 secondary reload support for using FPR registers if we want to do
286 (rs6000_debug_reg_global): Likewise.
287 (rs6000_setup_reg_addr_masks): Likewise.
288 (rs6000_init_hard_regno_mode_ok): Likewise.
289 (rs6000_secondary_reload): Likewise.
290 (rs6000_preferred_reload_class): Likewise.
291 (rs6000_secondary_reload_class): Likewise.
293 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wb
296 * config/rs6000/rs6000.md (f32_lr2 mode attribute): Add support
297 for ISA 3.0 SFmode/DFmode d-form addressing to Altivec registers.
304 (extendsfdf2_fpr): Likewise.
305 (mov<mode>_hardfloat): Likewise.
306 (mov<mode>_hardfloat32): Likewise.
307 (mov<mode>_hardfloat64): Likewise.
309 * doc/md.texi (RS/6000 constraints): Document wb constraint.
310 Fixup we constraint documentation.
312 2015-11-25 Tom de Vries <tom@codesourcery.com>
314 * omp-low.c (pass_expand_omp_ssa::clone): New function.
315 * passes.def: Add pass_oacc_kernels pass group.
316 * tree-ssa-loop-ch.c (pass_ch::clone): New function.
318 2015-11-25 Tom de Vries <tom@codesourcery.com>
320 * tree-pass.h (make_pass_oacc_kernels, make_pass_oacc_kernels2):
322 * tree-ssa-loop.c (gate_oacc_kernels): New static function.
323 (pass_data_oacc_kernels, pass_data_oacc_kernels2): New pass_data.
324 (class pass_oacc_kernels, class pass_oacc_kernels2): New pass.
325 (make_pass_oacc_kernels, make_pass_oacc_kernels2): New function.
327 2015-11-25 Jan Hubicka <hubicka@ucw.cz>
329 * timevar.def (TV_IPA_LTO_DECOMPRESS, TV_IPA_LTO_COMPRESS,
330 TV_IPA_LTO_OUTPUT): New.
331 * lto-compress.c: Include timevar.h
332 (lto_end_compression, lto_end_uncompression): Add timers.
333 * langhooks.c: Include timevar.h
334 (lhd_append_data): Add timer.
336 2015-11-25 Jan Hubicka <hubicka@ucw.cz>
338 * varasm.c (default_elf_asm_output_limited_string,
339 default_elf_asm_output_ascii): Replace fprintf by putc.
341 2015-11-25 Vladimir Makarov <vmakarov@redhat.com>
343 PR rtl-optimization/67954
344 * lra-constraints.c (curr_insn_transform): Add check on scratch
345 pseudo when change class to NO_REGS. Add an assert.
347 2015-11-25 Nathan Sidwell <nathan@acm.org>
349 * config/nvptx/nvptx.md (load_arg_reg<mode>): Arg number
351 * config/nvptx/nvptx.c (write_one_arg): Use 'i' directly as arg
353 (nvptx_write_function_decl): Number args from 0.
354 (nvptx_declare_function_name): Likewise.
355 (nvptx_function_incoming_arg): Likewise.
356 (nvptx_output_call_insn): Correct formatting.
358 2015-11-25 David Sherwood <david.sherwood@arm.com>
360 * optabs.def: Add new optabs fmax_optab/fmin_optab.
361 * internal-fn.def: Add new fmax/fmin internal functions.
362 * doc/md.texi: Add fmin and fmax patterns.
364 2015-11-25 Jason Merrill <jason@redhat.com>
367 * tree.c (integer_zerop, integer_onep, integer_each_onep)
368 (integer_all_onesp, integer_minus_onep, integer_pow2p)
369 (integer_nonzerop, integer_truep, tree_log2, tree_floor_log2)
370 (real_zerop, real_onep, real_minus_onep): Remove STRIP_NOPS.
372 2015-11-25 Richard Biener <rguenther@suse.de>
375 * fold-const.c (fold_binary_loc): Do not call negate_expr_p
376 on stripped operands.
378 2015-11-25 Nathan Sidwell <nathan@acm.org>
380 * config/nvptx/nvptx.c (walk_args_for_params): Delete.
381 (nvptx_declare_function_name): Move assignments next to register
382 declarations, and process params here.
384 2015-11-25 David Edelsohn <dje.gcc@gmail.com>
386 * config/rs6000/rs6000.c (rs6000_declare_alias): Rename and globalize
387 both the symbol and the "dot" symbol for function descriptors. Fix
388 inversion for rename of symbols with dollar sign.
390 2015-11-25 Tom de Vries <tom@codesourcery.com>
392 * cfgloop.c (find_single_latch): New function, factored out of ...
393 (flow_loops_find): ... here.
394 (verify_loop_structure): Improve verification of loop->latch.
395 * cfgloop.h (find_single_latch): Declare.
396 * omp-low.c (expand_omp_for_generic): Initialize latch of orig_loop.
398 2015-11-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
400 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Move up.
401 (STARTFILE_VTV_SPEC, ENDFILE_VTV_SPEC): Define.
402 (STARTFILE_SPEC): Use %(startfile_vtv).
403 (ENDFILE_SPEC): Use %(endfile_vtv).
404 (SUBTARGET_EXTRA_SPECS): Handle STARTFILE_VTV_SPEC,
407 * gcc.c (LINK_COMMAND_SPEC): Move VTABLE_VERIFICATION_SPEC after %{L*}.
409 2015-11-25 Bernd Schmidt <bschmidt@redhat.com>
411 * ifcvt.c (noce_mem_write_may_trap_or_fault_p,
412 noce_can_store_speculate): Delete.
413 (noce_process_if_block): Don't try to handle single MEM stores.
414 * rtl.h (memory_must_be_modified_in_insn_p): Don't declare.
415 * alias.c (memory_must_be_modified_in_insn_p): Delete.
417 2015-11-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
419 PR rtl-optimization/68435
420 * ifcvt.c (noce_try_cmove_arith): Skip final insn when checking
421 for conflicts between a, b and the set destinations.
423 2015-11-25 Richard Biener <rguenther@suse.de>
425 PR tree-optimization/68517
426 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses):
427 Properly handle zero-sized types.
429 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
431 * ipa-inline-analysis.c: Include gimplify.h
432 (set_cond_stmt_execution_predicate,
433 set_switch_stmt_execution_predicate): Be sure to not leak locations
436 2015-11-25 Jakub Jelinek <jakub@redhat.com>
439 * tree-ssa-math-opts.c (uaddsub_overflow_check_p,
440 match_uaddsub_overflow): New functions.
441 (pass_optimize_widening_mul::execute): Call match_uaddsub_overflow.
443 2015-11-25 Richard Biener <rguenther@suse.de>
445 PR tree-optimization/68492
446 * tree-vect-slp.c (vect_build_slp_tree): Consistently build up
447 op from scalars after operand swapping.
449 2015-11-25 Richard Biener <rguenther@suse.de>
451 PR tree-optimization/68502
452 * tree-vect-data-refs.c (vect_analyze_group_access_1): Restore
453 check that the step is a multiple of the type size.
455 2015-11-24 Michael Collison <michael.collison@linaro.org>
457 * config/aarch64/aarch64-simd.md (widen_ssum, widen_usum)
458 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>_internal): New patterns
459 * config/aarch64/iterators.md (Vhalf, VDBLW): New mode attributes.
461 2015-11-24 Steve Ellcey <sellcey@imgtec.com>
463 * frame-header-opt.c (gate): Check for optimize > 0.
464 (has_inlined_assembly): New function.
465 (needs_frame_header_p): Remove is_leaf_function check,
466 add argument type check.
467 (callees_functions_use_frame_header): Add is_leaf_function
468 and has_inlined_assembly calls..
469 (set_callers_may_not_allocate_frame): New function.
470 (frame_header_opt): Add is_leaf_function call, add
471 set_callers_may_not_allocate_frame call.
472 * config/mips/mips.c (mips_compute_frame_info): Add check
473 to see if callee saved regs can be put in frame header.
474 (mips_expand_prologue): Add check to see if step1 is zero,
475 fix cfa restores when using frame header to store regs.
476 (mips_can_use_return_insn): Check to see if registers are
477 stored in frame header.
478 * config/mips/mips.h (machine_function): Add
479 callers_may_not_allocate_frame and
480 use_frame_header_for_callee_saved_regs fields.
482 2015-11-24 Segher Boessenkool <segher@kernel.crashing.org>
484 PR rtl-optimization/68520
485 * shrink-wrap.c (try_shrink_wrapping): Don't push a block to VEC if
486 its bit was already set in BB_WITH.
488 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
490 * alias.c (get_alias_set): Before checking TYPE_ALIAS_SET_KNOWN_P
491 double check that type is main variant.
492 * tree.c (build_variant_type_copy): Clear TYPE_ALIAS_SET when producing
494 (verify_type_variant): Verify that variants have no
495 TYPE_ALIAS_SET_KNOWN_P set
496 * tree-streamer-out.c (pack_ts_type_common_value_fields): Reorder
497 streaming so constant fields come first; stream TYPE_ALIAS_SET==0
498 only for main variants; stream TYPE_ALIAS_SET as a bit.
499 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Update
502 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
504 * tree.c (make_vector_type): Properly compute canonical type of the
506 (verify_type): Verify that TYPE_CANONICAL of TYPE_MAIN_VARIANT is
509 2015-11-24 Nathan Sidwell <nathan@acm.org>
511 * config/nvptx/nvptx.c (maybe_split_mode): Return new mode or
512 VOIDmode, don't alter incoming mode.
513 (nvptx_split_reg_p): Delete.
514 (write_one_arg, walk_args_for_param, nvptx_declare_function_name,
515 write_func_decl_from_insn, nvptx_output_call_insn): Adjust
516 maybe_split_mode calls.
517 (nvptx_print_operand): Use maybe_split_mode.
519 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
521 * lto-streamer-in.c (lto_read_body_or_constructor): Set TYPE_CANONICAL
522 only for types where LTO sets them.
523 * tree.c (build_array_type_1): Do ont set TYPE_CANONICAL for LTO.
524 (make_vector_type): Likewise.
525 (gimple_canonical_types_compatible_p): Use canonical_type_used_p.
526 * tree.h (canonical_type_used_p): New inline.
527 * alias.c (get_alias_set): Handle structural equality for all
528 types that pass canonical_type_used_p.
529 (record_component_aliases): Look through all types with
530 record_component_aliases for possible pointers; sanity check that
531 the alias sets match.
533 2015-11-24 Michael Meissner <meissner@linux.vnet.ibm.com>
535 * config/rs6000/rs6000.md (lround<mode>di2): Remove constraints.
537 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
539 * tree.c (free_node): New function.
540 (type_hash_canon): Use it.
541 * tree.h (free_node): Declare.
543 2015-11-24 David Edelsohn <dje.gcc@gmail.com>
544 Michael Meissner <meissner@linux.vnet.ibm.com>
546 * config/rs6000/rs6000.md (UNSPEC_XSRDPI): New unspec.
547 (Fv2): New mode attribute to be used when ISA 2.07 instructions
548 are used on SF values, and ISA 2.06 instructions on DF values.
549 (add<mode>3_fpr): Use <Fv2> instead of <Fv>.
550 (sub<mode>3_fpr): Use <Fv2> instead of <Fv>.
551 (mul<mode>3_fpr): Use <Fv2> instead of <Fv>.
552 (div<mode>3_fpr): Use <Fv2> instead of <Fv>.
553 (sqrt<mode>2): Use <Fv2> instead of <Fv>.
554 (fre<Fs>): Use <Fv2> instead of <Fv>.
555 (rsqrt<mode>2): Use <Fv2> instead of <Fv>.
556 (cmp<mode>_fpr): Use <Fv2> instead of <Fv>.
557 (xsrdpi<mode>): Add support for the lround function.
558 (lround<mode>di2): Likewise.
559 (fma<mode>4_fpr): Use <Fv2> instead of <Fv>.
560 (fms<mode>4_fpr): Use <Fv2> instead of <Fv>.
561 (nfma<mode>4_fpr): Use <Fv2> instead of <Fv>.
562 (nfms<mode>4_fpr): Use <Fv2> instead of <Fv>.
564 2015-11-24 Aditya Kumar <aditya.k7@samsung.com>
565 Sebastian Pop <s.pop@samsung.com>
567 PR tree-optimization/67984
568 * graphite-isl-ast-to-gimple.c (is_constant): New.
569 (get_rename): Call is_constant.
570 (get_new_name): Same.
572 2015-11-24 Aditya Kumar <aditya.k7@samsung.com>
573 Sebastian Pop <s.pop@samsung.com>
575 * graphite-dependences.c: Only include graphite.h.
576 * graphite-isl-ast-to-gimple.c: Same.
577 * graphite-optimize-isl.c: Same.
578 * graphite-poly.c: Same.
579 * graphite-scop-detection.c: Same.
580 * graphite-sese-to-poly.c: Same.
582 * graphite-isl-ast-to-gimple.h: Move to graphite.h.
583 * graphite-poly.h: Same.
584 * graphite-scop-detection.h: Same.
587 2015-11-24 Pierre-Marie de Rodat <derodat@adacore.com>
589 * dwarf2out.c (gen_decl_die): Generate DW_TAG_imported_* instead of
590 DW_TAG_namespace for IMPORTED_DECL declarations. Call
591 dwarf2out_imported_module_or_decl_1 for all DWARF versions as this
592 function already takes care of checking what it can emit.
594 2015-11-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
596 * doc/invoke.texi (-fpic): Add the AArch64 limit.
597 (-fPIC): Add AArch64.
599 2015-11-24 Tom de Vries <tom@codesourcery.com>
601 * tree-ssa-loop-im.c (tree_ssa_lim): Make static.
602 (pass_lim::execute): Allow to run outside pass_tree_loop.
604 2015-11-24 Wilco Dijkstra <wdijkstr@arm.com>
606 * config/aarch64/aarch64.md (add<mode>3):
607 Block early expansion into 2 add instructions.
608 (add<mode>3_pluslong): New pattern to combine complex
609 immediates into 2 additions.
611 2015-11-24 Segher Boessenkool <segher@kernel.crashing.org>
616 * config/rs6000/predicates.md (and_operand): Check that the operand
617 is a const_int before calling rs6000_is_valid_and_mask.
619 2015-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
621 * config/aarch64/aarch64.md (*condjump): Rename to...
622 (condjump): ... This.
623 (*compare_condjump<mode>): New define_insn_and_split.
624 (*compare_cstore<mode>_insn): Likewise.
625 (*cstore<mode>_insn): Rename to...
626 (cstore<mode>_insn): ... This.
627 * config/aarch64/iterators.md (CMP): Handle ne code.
628 * config/aarch64/predicates.md (aarch64_imm24): New predicate.
630 2015-11-24 Mikhail Maltsev <maltsevm@gmail.com>
633 * config/i386/i386.c (output_387_binary_op): Fix assertion for
636 2015-11-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
638 * tree-ssa-uncprop.c (struct val_ssa_equiv_hash_traits): Remove.
639 (val_ssa_equiv_hash_traits::remove): Likewise.
640 (pass_uncprop::execute): Adjust.
642 2015-11-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
644 * hash-map-traits.h (simple_hashmap_traits ::remove): call
645 destructors on values that are being removed.
646 * mem-stats.h (hash_map): Pass type of values to
647 simple_hashmap_traits.
648 * tree-sra.c (sra_deinitialize): Remove work around for hash
649 maps not destructing values.
650 * genmatch.c (sinfo_hashmap_traits): Adjust.
651 * tree-ssa-uncprop.c (val_ssa_equiv_hash_traits): Likewise.
653 2015-11-24 Richard Biener <rguenther@suse.de>
654 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
657 * cfgloop.c (get_loop_body_in_bfs_order): Restructure loop to avoid
660 2015-11-24 Jakub Jelinek <jakub@redhat.com>
663 * tree-vect-generic.c (lower_vec_perm): If VEC_PERM_EXPR
664 is valid vec_shr pattern, don't lower it even if can_vec_perm_p
666 * optabs.c (shift_amt_for_vec_perm_mask): Return NULL_RTX
667 whenever first is nelt or above. Don't mask expected with
670 2015-11-24 Ilya Enkovich <enkovich.gnu@gmail.com>
673 * gimple-fold.c: Include ipa-chkp.h.
674 (gimple_fold_builtin_memory_op): Don't fold call if we
675 are going to instrument it and it may copy pointers.
677 2015-11-24 Bernd Schmidt <bschmidt@redhat.com>
678 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
680 PR rtl-optimization/68194
681 PR rtl-optimization/68328
682 PR rtl-optimization/68185
683 * ree.c (combine_reaching_defs): Reject copy_needed case if
684 copies_list is not empty.
686 2015-11-24 Richard Biener <rguenther@suse.de>
689 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Properly
692 2015-11-24 Segher Boessenkool <segher@kernel.crashing.org>
694 PR rtl-optimization/68381
695 * combine.c (is_parallel_of_n_reg_sets): Return false if the pattern
698 2015-11-23 Nick Clifton <nickc@redhat.com>
699 Jeff Law <law@redhat.com>
701 * ree.c (add_removable_extension): Avoid mis-optimizing cases where
702 the source/dest of the target extension require a different number of
704 (combine_set_extension): Remove #if 0 code.
706 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
707 Sebastian Pop <s.pop@samsung.com>
709 PR tree-optimization/68314
710 * graphite-optimize-isl.c (optimize_isl): Do not call isl_union_map_is_equal.
711 * graphite-poly.c (new_scop): Remove original_schedule.
713 * graphite-poly.h (struct scop): Same.
714 * graphite-sese-to-poly.c (build_pbb_minimal_scattering_polyhedrons): Remove.
715 (build_pbb_scattering_polyhedrons): Add back.
716 (build_scop_minimal_scattering): Remove.
717 (build_scop_scattering): Add back.
718 (build_scop_original_schedule): Remove.
719 (build_poly_scop): Revert to only call build_scop_scattering.
721 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
722 Sebastian Pop <s.pop@samsung.com>
724 PR tree-optimization/68493
725 * graphite-isl-ast-to-gimple.c (translate_pending_phi_nodes): Add
726 missing early return when codegen_error is set.
728 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
729 Sebastian Pop <s.pop@samsung.com>
731 PR tree-optimization/68279
732 * graphite-poly.c (new_scop): Remove poly_scop_p.
733 * graphite-poly.h (struct scop): Same.
734 (build_poly_scop): Declare.
735 * graphite-sese-to-poly.c: Do not include graphite-sese-to-poly.h.
736 (cleanup_loop_iter_dom): New.
737 (build_loop_iteration_domains): Early return when scev analysis fails.
738 (create_pw_aff_from_tree): Same.
739 (add_condition_to_pbb): Same.
740 (add_conditions_to_domain): Same.
741 (add_conditions_to_constraints): Same.
742 (build_scop_iteration_domain): Same.
743 (build_poly_scop): Same. Do not initialize poly_scop_p.
744 * graphite-sese-to-poly.h: Remove.
745 * graphite.c: Do not include graphite-sese-to-poly.h.
746 (graphite_transform_loops): Stop before code generation when
747 build_poly_scop fails.
748 * sese.c (scalar_evolution_in_region): Add fixme note about scev
751 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
752 Sebastian Pop <s.pop@samsung.com>
754 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
755 Remove call to update_ssa.
756 * sese.c (sese_insert_phis_for_liveouts): Same.
758 2015-11-23 Marek Polacek <polacek@redhat.com>
760 PR tree-optimization/68455
761 * tree-vrp.c (extract_range_from_binary_expr_1): Don't call
762 extract_range_from_multiplicative_op_1 on symbolic ranges.
764 2015-11-23 Richard Henderson <rth@redhat.com>
766 * optabs.def (uaddv4_optab, usubv4_optab): New.
767 * internal-fn.c (expand_addsub_overflow): Use them.
768 * doc/md.texi (Standard Names): Add uaddv<m>4, usubv<m>4.
770 * config/i386/i386.c (ix86_cc_mode): Extend add overflow check
771 to reversed operands.
772 * config/i386/i386.md (uaddv<SWI>4, usubv<SWI>4): New.
773 (*add<SWI>3_cconly_overflow_1): Rename *add<SWI>3_cconly_overflow.
774 (*add<SWI>3_cc_overflow_1): Rename *add<SWI>3_cc_overflow.
775 (*addsi3_zext_cc_overflow_1): Rename *add3_zext_cc_overflow.
776 (*add<SWI>3_cconly_overflow_2): New.
777 (*add<SWI>3_cc_overflow_2): New.
778 (*addsi3_zext_cc_overflow_2): New.
780 2015-11-23 Richard Biener <rguenther@suse.de>
782 PR tree-optimization/68465
783 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children):
784 Also record equalities from multiple predecessor blocks if
785 only one non-backedge exists.
787 2015-11-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
790 * config/aarch64/aarch64.c (aarch64_madd_needs_nop): Reject arguments
793 2015-11-23 Bilyan Borisov <bilyan.borisov@arm.com>
795 * config/aarch64/aarch64-builtins.c
796 (aarch64_gimple_fold_builtin): Fold FMULX.
798 2015-11-23 David Edelsohn <dje.gcc@gmail.com>
800 * system.h: Don't poison calloc and strdup if USES_ISL is defined.
801 * graphite-dependences.c: Define USES_ISL. Include ISL header files
802 after GCC header files and before graphite header files.
803 * graphite-dependences.c: Same.
804 * graphite-isl-ast-to-gimple.c: Same.
805 * graphite-optimize-isl.c: Same.
806 * graphite-poly.c: Same.
807 * graphite-scop-detection.c: Same.
808 * graphite-sese-to-poly.c: Same.
811 2015-11-23 Richard Biener <rguenth@gcc.gnu.org>
812 Jiong Wang <jiong.wang@arm.com>
814 PR tree-optimization/68317
815 PR tree-optimization/68326
816 * tree-vrp.c (adjust_range_with_scev): Call drop_tree_overflow if the
817 final min and max are not infinity.
819 2015-11-23 Ilya Enkovich <enkovich.gnu@gmail.com>
820 Richard Biener <rguenther@suse.de>
822 PR tree-optimization/68327
823 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
824 compute vectype for non-relevant mask producers.
825 * tree-vect-stmts.c (vectorizable_comparison): Check stmt
828 2015-11-23 Tom de Vries <tom@codesourcery.com>
830 PR tree-optimization/68460
831 * tree-parloops.c (gather_scalar_reductions): Also call
832 free_stmt_vec_info_vec if simple_loop_info == NULL.
834 2015-11-23 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
836 * opts.c (finish_options): Allow -fsanitize-recover=address for
837 userspace sanitization.
838 * asan.c (asan_expand_check_ifn): Redefine recover_p.
839 * doc/invoke.texi (fsanitize-recover): Update documentation.
841 2015-11-23 Tom de Vries <tom@codesourcery.com>
843 * omp-low.c (build_receiver_ref): Mark by_ref mem_ref as non-trapping.
845 2015-11-23 Richard Biener <rguenther@suse.de>
847 PR tree-optimization/68445
848 * tree-vect-slp.c (vect_create_mask_and_perm): Properly use
849 two different strides.
851 2015-11-23 Robin Dapp <rdapp@linux.vnet.ibm.com>
853 * config/s390/s390.h: Add new symref flags, _NOTALIGN2 etc.
854 * config/s390/s390.c (s390_check_symref_alignment): Use new
855 symref flags, early abort on wrong alignment
856 (s390_secondary_reload): Use new symref flags.
857 (s390_encode_section_info): Likewise.
858 * config/s390/predicates.md: Likewise.
860 2015-11-23 Kugan Vivekanandarajah <kuganv@linaro.org>
863 * config/arm/arm.c (arm_function_ok_for_sibcall): Get function type
864 for indirect function call.
866 2015-11-22 Bilyan Borisov <bilyan.borisov@arm.com>
868 * config/aarch64/aarch64-simd.md
869 (*aarch64_mulx_elt_<vswap_width_name><mode>, VDQSF): New.
870 (*aarch64_mulx_elt<mode>, VDQF): Likewise.
871 (*aarch64_mulx_elt_to_64v2df): Likewise.
872 (*aarch64_vgetfmulx<mode>, VDQF_DF): Likewise.
873 * config/aarch64/arm_neon.h (vmulx_lane_f32): New.
874 (vmulx_lane_f64): Likewise.
875 (vmulxq_lane_f32): Refactored & moved.
876 (vmulxq_lane_f64): Likewise.
877 (vmulx_laneq_f32): New.
878 (vmulx_laneq_f64): Likewise.
879 (vmulxq_laneq_f32): Likewise.
880 (vmulxq_laneq_f64): Likewise.
881 (vmulxs_lane_f32): Likewise.
882 (vmulxs_laneq_f32): Likewise.
883 (vmulxd_lane_f64): Likewise.
884 (vmulxd_laneq_f64): Likewise.
886 2015-11-21 Jan Hubicka <hubicka@ucw.cz>
888 * tree.c (build_pointer_type_for_mode,build_reference_type_for_mode):
889 In LTO we do not compute TYPE_CANONICAL of pointers.
890 (gimple_canonical_types_compatible_p): Improve coments; sanity check
891 that pointers do not have canonical type that would make us believe
893 * alias.c (get_alias_set): Do structural type equality on pointers;
894 enable pointer path for LTO; also glob pointer to vector with pointer
895 to vector element; glob pointers and references for LTO; do more strict
896 sanity checking about build_pointer_type returning the canonical type
897 which is also the main variant.
898 (record_component_aliases): When component type is pointer and we
899 do LTO; record void_type_node alias set.
901 2015-11-21 Nathan Sidwell <nathan@acm.org>
903 * config/nvptx/nvptx.md (clz<mode>2): Use operand 1 for type.
905 * config/nvptx/nvptx.c (write_function_decl_and_comment): Print
907 (write_func_decl_from_insn): Likewise.
908 (init_output_initializer, nvptx_assemble_undefined_decl): Likewise.
909 (nvptx_file_end): Likewise.
910 (nvptx_function_end): Undent output.
911 (nvptx_expand_call): Fix formatting.
912 (nvptx_output_call_insn): Indent output.
913 * config/nvptx/nvptx.h (ASM_OUTPUT_ALIGNED_DECL_COMMON,
914 ASM__OUTPUT_ALIGNED_DECL_LOCAL): Print leading blank line.
916 2015-11-21 Jakub Jelinek <jakub@redhat.com>
919 * tree-inline.c (copy_debug_stmt): If
920 gimple_debug_source_bind_get_value is DECL_ORIGIN of a PARM_DECL
921 in decl_debug_args, don't call remap_gimple_op_r on it.
923 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
925 * ipa-icf.c (sem_item::add_type): Do not look for TYPE_CANONICAL;
926 do not check AGGREGATE_TYPE_P when adding TYPE_MODE;
927 Check that all record types are complete.
928 * ipa-icf-gimple.c (func_checker::compatible_types_p): Do not
929 compare alias sets for types w/o alias sets.
931 2015-11-20 Eric Botcazou <ebotcazou@adacore.com>
933 * config/sparc/sparc.md (umulxhi_vis): Move around.
934 (*umulxhi_sp64): Likewise.
935 (umulxhi_v8plus): Likewise.
936 (xmulx_vis): Likewise.
937 (*xmulx_sp64): Likewise.
938 (xmulx_v8plus): Likewise.
939 (xmulxhi_vis): Likewise.
940 (*xmulxhi_sp64): Likewise.
941 (xmulxhi_v8plus): Likewise.
943 2015-11-20 David Malcolm <dmalcolm@redhat.com>
946 * diagnostic-show-locus.c (colorizer::set_fixit_hint): New.
947 (class layout): Update comment
948 (layout::print_any_fixits): New method.
949 (layout::move_to_column): New method.
950 (diagnostic_show_locus): Add call to layout.print_any_fixits.
952 2015-11-20 Jakub Jelinek <jakub@redhat.com>
955 * omp-low.c (lower_rec_input_clauses): If C/C++ array reduction
956 has non-zero bias, subtract it in integer type instead of
957 pointer plus of negated bias.
960 * omp-low.c (expand_simd_clones): Call node->get_body () before
961 allocating stuff in GC.
963 2015-11-20 Jim Wilson <jim.wilson@linaro.org>
965 * tree-vect-data-refs.c (compare_tree): Call STRIP_NOPS.
967 2015-11-20 Evandro Menezes <e.menezes@samsung.com>
969 * config/aarch64/aarch64.md (predicated): Copy attribute from
971 * config/arm/arm.md (predicated): Added description.
973 2015-11-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
975 * config/arm/arm.c (arm_option_override): Require TARGET_32BIT
976 for unaligned_access.
977 * config/arm/arm.md (unaligned_loadsi): Remove redundant TARGET_32BIT
978 from matching condition.
979 (unaligned_loadhis): Likewise.
980 (unaligned_loadhiu): Likewise.
981 (unaligned_storesi): Likewise.
982 (unaligned_storehi): Likewise.
984 2015-11-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
987 * config/arm/arm.md (unaligned_loaddi): Delete.
988 (unaligned_storedi): Likewise.
989 * config/arm/arm.c (gen_movmem_ldrd_strd): Don't generate
990 unaligned DImode memory ops. Instead perform two back-to-back
991 unaligned SImode ops.
993 2015-11-20 Nathan Sidwell <nathan@codesourcery.com>
994 James Norris <jnorris@codesourcery.com>
996 * config/nvptx/nvptx.c (nvptx_use_anchors_for_symbol_p): New.
997 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Override.
999 2015-11-20 Alan Hayward <alan.hayward@arm.com>
1001 PR tree-optimization/68413
1002 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Cache
1004 (vectorizable_reduction): Use cached base
1006 2015-11-20 Tom de Vries <tom@codesourcery.com>
1008 * tree-parloops.c (build_new_reduction): Fix trailing whitespace in
1010 (try_create_reduction_list): Same. Fix typo in dump-file string.
1012 2015-11-20 Eric Botcazou <ebotcazou@adacore.com>
1014 * doc/md.texi (Standard Names): Move entry for addptr3 around,
1015 add entries for addv4, subv4, mulv4, umulv4 and negv3, fixes
1016 glitch in entries for cbranch4 and jump.
1018 2015-11-20 Tom de Vries <tom@codesourcery.com>
1020 PR tree-optimization/68373
1021 * tree-scalar-evolution.c (final_value_replacement_loop): Factor out
1023 (scev_const_prop): ... here.
1024 * tree-scalar-evolution.h (final_value_replacement_loop): Declare.
1025 * tree-parloops.c (try_create_reduction_list): Call
1026 final_value_replacement_loop.
1028 2015-11-20 Bin Cheng <bin.cheng@arm.com>
1030 PR tree-optimization/52272
1031 * tree-ssa-loop-ivopts.c (struct iv_common_cand): New struct.
1032 (struct iv_common_cand_hasher): New struct.
1033 (iv_common_cand_hasher::hash): New function.
1034 (iv_common_cand_hasher::equal): New function.
1035 (struct ivopts_data): New fields, iv_common_cand_tab and
1037 (tree_ssa_iv_optimize_init): Initialize above fields.
1038 (record_common_cand, common_cand_cmp): New functions.
1039 (add_iv_candidate_derived_from_uses): New function.
1040 (add_iv_candidate_for_use): Record iv_common_cands derived from
1041 iv use in hash table, instead of adding candidates directly.
1042 (add_iv_candidate_for_uses): Call add_iv_candidate_derived_from_uses.
1043 (record_important_candidates): Add important candidates to iv uses'
1044 related_cands. Always keep related_cands for future use.
1045 (try_add_cand_for): Use iv uses' related_cands.
1046 (free_loop_data, tree_ssa_iv_optimize_finalize): Release new fields
1047 in struct ivopts_data, iv_common_cand_tab and iv_common_cands.
1049 2015-11-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1051 * config/s390/s390.md ("bswaphi2"): New pattern.
1053 2015-11-20 Dominik Vogt <vogt@linux.vnet.ibm.com>
1055 * config/s390/s390.md (GPR1_REGNUM): New constant.
1056 ("*trunc<BFP:mode><DFP_ALL:mode>2")
1057 ("*trunc<DFP_ALL:mode><BFP:mode>2")
1058 ("trunc<BFP:mode><DFP_ALL:mode>2")
1059 ("trunc<DFP_ALL:mode><BFP:mode>2")
1060 ("*extend<BFP:mode><DFP_ALL:mode>2")
1061 ("*extend<DFP_ALL:mode><BFP:mode>2")
1062 ("extend<BFP:mode><DFP_ALL:mode>2")
1063 ("extend<DFP_ALL:mode><BFP:mode>2"): Clobber r1.
1065 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
1066 Sebastian Pop <s.pop@samsung.com>
1068 PR tree-optimization/68428
1069 * graphite-scop-detection.c (harmful_stmt_in_region): Do not iterate
1070 over basic blocks outside the scop.
1072 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
1073 Sebastian Pop <s.pop@samsung.com>
1075 PR tree-optimization/68341
1076 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Remove
1077 gcc_unreachable and safely fail codegen.
1078 (copy_loop_close_phi_args): Do not insert merge phis in a basic
1079 block with loop phi nodes.
1080 (edge_for_new_close_phis): New.
1081 (copy_bb_and_scalar_dependences): Call edge_for_new_close_phis.
1083 2015-11-19 Nathan Sidwell <nathan@acm.org>
1085 * config/nvptx/nvptx.h (SUPPORTS_WEAK): Define.
1086 * config/nvptx/nvptx.c (nvptx_write_function_decl): Support DECL_WEAK.
1087 (nvptx_declare_objec_name): Likewise.
1089 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
1091 * graphite-isl-ast-to-gimple.c (get_true_edge_from_guard_bb): Move...
1092 (get_false_edge_from_guard_bb): Move...
1093 * sese.c (get_false_edge_from_guard_bb)
1094 (get_true_edge_from_guard_bb): ... here.
1096 2015-11-19 David Edelsohn <dje.gcc@gmail.com>
1099 2015-11-18 Alan Modra <amodra@gmail.com>
1101 * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
1102 type-limits warning.
1105 2015-11-19 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1107 * tree.h (desired_pro_or_demotion_p): New function.
1108 * tree-vrp.c (simplify_cond_using_ranges): Call it.
1110 2015-11-19 Michael Matz <matz@suse.de>
1112 * fwprop.c (update_uses): Use flag_checking instead of
1113 gcc_checking_assert.
1115 2015-11-19 David Malcolm <dmalcolm@redhat.com>
1117 * doc/gty.texi (Support for inheritance): Fix missing
1118 parentheses in example.
1120 2015-11-19 Marek Polacek <polacek@redhat.com>
1122 PR tree-optimization/68431
1123 * tree-vrp.c (extract_range_from_binary_expr_1): Fix condition.
1125 2015-11-19 Nathan Sidwell <nathan@acm.org>
1127 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>_1,
1128 atomic_exchange<mode>): Input values can be immediates.
1130 2015-11-19 Eric Botcazou <ebotcazou@adacore.com>
1133 * configure.ac (PLUGIN_LD_SUFFIX): Do not touch the value specified
1135 * configure: Regenerate.
1137 2015-11-19 Eric Botcazou <ebotcazou@adacore.com>
1140 * config/sparc/sp-elf.h (CTORS_SECTION_ASM_OP): Undefine.
1141 (DTORS_SECTION_ASM_OP): Likewise.
1143 2015-11-19 Jakub Jelinek <jakub@redhat.com>
1145 PR rtl-optimization/68376
1146 * ifcvt.c (noce_try_abs): Disable one_cmpl optimization if
1147 encountering x <= 0 ? ~x : x or x > 0 ? ~x : x.
1149 2015-11-19 Richard Biener <rguenther@suse.de>
1152 * tree-ssa.c (delete_tree_ssa): Revert removal of call to
1153 redirect_edge_var_map_destroy.
1155 2015-11-19 Jakub Jelinek <jakub@redhat.com>
1158 * config/i386/i386.md (simple_return): Disable if
1159 ix86_static_chain_on_stack is true.
1161 2015-11-19 Richard Sandiford <richard.sandiford@arm.com>
1164 * internal-fn.c (expand_direct_optab_fn): Handle SUBREG_PROMOTED_VAR_P
1167 2015-11-18 Jeff Law <law@redhat.com>
1169 PR tree-optimization/68198
1170 * tree-ssa-threadupdate.c (valid_jump_thread_path): Distinguish
1171 between threading a multi-way branch and a thread path that contains
1172 a multi-way branch. Disallow the case where a path contains a
1173 multi-way branch and does not thread a multi-way branch.
1174 (thread_through_all_blocks): Update comment.
1176 2015-11-18 Joseph Myers <joseph@codesourcery.com>
1179 * ginclude/stdatomic.h (atomic_thread_fence, atomic_signal_fence)
1180 (atomic_flag_test_and_set, atomic_flag_test_and_set_explicit)
1181 (atomic_flag_clear, atomic_flag_clear_explicit): Declare as
1182 functions before defining as macros.
1184 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
1186 * config/nvptx/nvptx.c (nvptx_process_pars): Fix whitespace.
1187 (nvptx_record_offload_symbol): Remove code compensating for lack
1188 of default dimension handling.
1189 (nvptx_goacc_validate_dims): Remove incorrect ARG_UNUSED markers.
1191 2015-11-18 Aditya Kumar <aditya.k7@samsung.com>
1193 * graphite-isl-ast-to-gimple.c (copy_loop_phi_args): Change the return
1194 type to bool for early exit.
1195 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Early return
1197 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
1198 (add_phi_arg_for_new_expr): Enable codegen for if-block where one
1199 predecessor dominates the other.
1200 (translate_isl_ast_to_gimple::copy_cond_phi_args): Fix. When the
1201 element is not found it returns -1.
1202 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Bail
1203 out early when codegen fails.
1204 (graphite_regenerate_ast_isl): Remove codegen region when pending
1205 phis could not be generated.
1207 2015-11-18 Aditya Kumar <aditya.k7@samsung.com>
1209 * graphite-isl-ast-to-gimple.c (struct ast_build_info): Remove
1211 (class translate_isl_ast_to_gimple): Indentation.
1212 (translate_pending_phi_nodes): Comment.
1213 (add_parameters_to_ivs_params): Moved from sese.c inside class
1214 translate_isl_ast_to_gimple.
1215 (get_max_schedule_dimensions): Same.
1216 (generate_isl_context): Same.
1217 (extend_schedule): Same.
1218 (generate_isl_schedule): Same.
1219 (set_options): Same.
1220 (scop_to_isl_ast): Same.
1221 (is_valid_rename): Same.
1223 (get_rename_from_scev): Same.
1224 (get_def_bb_for_const): Same.
1225 (get_new_name): Same.
1226 (collect_all_ssa_names): Same.
1227 (copy_loop_phi_args): Same.
1228 (copy_loop_phi_nodes): Same.
1229 (copy_loop_close_phi_args): Same.
1230 (copy_loop_close_phi_nodes): Same.
1231 (copy_cond_phi_args): Same.
1232 (copy_cond_phi_nodes): Same.
1233 (graphite_copy_stmts_from_block): Same.
1234 (copy_bb_and_scalar_dependences): Same.
1235 (add_phi_arg_for_new_expr): Same.
1236 (rename_uses): Same.
1238 (set_rename_for_each_def): Same.
1239 (gsi_insert_earliest): Same.
1240 (rename_all_uses): Same.
1241 (codegen_error_p): Same.
1242 (print_isl_ast_node): Same.
1243 (translate_isl_ast_for_loop): Call function codegen_error_p.
1244 (translate_isl_ast_to_gimple::translate_isl_ast): Same.
1245 (translate_isl_ast_node_user): Make nb_loops const and release
1247 (get_true_edge_from_guard_bb): Move all free-functions early.
1248 (get_false_edge_from_guard_bb): Same.
1249 (bb_contains_loop_close_phi_nodes): Same.
1250 (bb_contains_loop_phi_nodes): Same.
1251 (is_loop_closed_ssa_use): Same.
1252 (number_of_phi_nodes): Same.
1253 (phi_uses_name): Same.
1254 (later_of_the_two): Same.
1255 (substitute_ssa_name):
1258 (get_loop_init_value): Same.
1259 (find_init_value): Same.
1260 (find_init_value_close_phi): Same.
1261 (ast_build_before_for): Same.
1262 (graphite_regenerate_ast_isl): Formatting changes.
1263 * graphite-scop-detection.c (build_cross_bb_scalars_use): Same.
1264 * sese.c (get_rename): Move to graphite-isl-ast-to-gimple.c
1266 (gsi_insert_earliest): Same.
1267 (collect_all_ssa_names): Same.
1268 (rename_all_uses): Same.
1269 (rename_uses): Same.
1270 (get_def_bb_for_const): Same.
1271 (copy_loop_phi_nodes): Same.
1272 (copy_loop_close_phi_args): Same.
1273 (copy_loop_close_phi_nodes): Same.
1274 (copy_cond_phi_args): Same.
1275 (copy_cond_phi_nodes): Same.
1276 (set_rename_for_each_def): Same.
1277 (graphite_copy_stmts_from_block): Same.
1278 (copy_bb_and_scalar_dependences): Same.
1279 (if_region_set_false_region): Same.
1280 (scev_analyzable_p): Same.
1281 * sese.h: Delete extern functions moved to graphite-isl-ast-to-gimple.c.
1283 2015-11-18 Andreas Tobler <andreast@gcc.gnu.org>
1285 * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Bring in the
1286 commit from r125920 for FreeBSD.
1288 2015-11-18 Jason Merrill <jason@redhat.com>
1290 * ggc-page.c (ggc_globals): Change finalizers and vec_finalizers
1292 (add_finalizer): Split out from ggc_internal_alloc.
1293 (ggc_handle_finalizers): Run finalizers for the current depth.
1294 (init_ggc, ggc_pch_read): Reserve space for finalizers.
1296 2015-11-18 Sandra Loosemore <sandra@codesourcery.com>
1299 * config/nios2/nios2.c (cdx_and_immed): Remove duplicate tests
1302 2015-11-18 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
1304 * config/avr/avr-mcus.def: Add new avr4 devices atmega48pb and
1305 atmega88pb. Add new avr5 devices ata5791, ata8210, ata8510, atmega168pb
1307 * doc/avr-mmcu.texi: Regenerate.
1309 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
1311 * config/nvptx/nvptx.c (bb_pair_t, bb_pair_vec_t): New types.
1312 (pseudo_node_t, struct bracket, bracket_vec_t): New types.
1313 (struct bb_sese): New struct.
1314 (bb_sese::~bb_sese, bb_sese::append, bb_sese::remove): New.
1315 (BB_GET_SESE, BB_SET_SESE): Define.
1316 (nvptx_sese_number, nvptx_sese_pseudo, nvptx_sese_color): New.
1317 (nvptx_find_sese): New.
1318 (nvptx_neuter_pars): Find SESE regions when optimizing.
1320 2015-11-18 Alan Modra <amodra@gmail.com>
1322 * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
1323 type-limits warning.
1325 2015-11-18 Richard Sandiford <richard.sandiford@arm.com>
1328 * hash-set.h (hash_set::traverse): Expand Key typedef.
1330 2015-11-18 Martin Liska <mliska@suse.cz>
1332 * config/arm/arm.c (arm_valid_target_attribute_p): Finalize
1335 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
1337 * config/nvptx/nvptx.c (global_lock_var): New.
1338 (nvptx_global_lock_addr): New.
1339 (nvptx_lockless_update): Recomment and adjust for clarity.
1340 (nvptx_lockfull_update): New.
1341 (nvptx_reduction_update): New.
1342 (nvptx_goacc_reduction_fini): Call it.
1344 2015-11-18 Bernd Schmidt <bschmidt@redhat.com>
1346 * regrename.h (struct du_head): Add target_data_1 and target_data_2
1348 * regrename.c (create_new_chain): Clear entire struct after allocating.
1350 * config/i386/i386.opt (mmitigate-rop): New option.
1351 * doc/invoke.texi (mmitigate-rop): Document.
1352 * config/i386/i386.c: Include "regrename.h".
1353 (ix86_rop_should_change_byte_p, reg_encoded_number,
1354 ix86_get_modrm_for_rop, set_rop_modrm_reg_bits, ix86_mitigate_rop): New
1356 (ix86_reorg): Call ix86_mitigate_rop if -fmitigate-rop.
1357 * config/i386/i386.md (attr "modrm_class"): New.
1358 (cmp<mode>_ccno_1, mov<mode>_xor, movstrict<mode>_xor,
1359 x86_mov<mode>cc_0_m1. x86_mov<mode>cc_0_m1_se)
1360 (x86_mov<mode>cc_0_m1_neg): Override modrm_class attribute.
1362 2015-11-18 Ilya Enkovich <enkovich.gnu@gmail.com>
1365 * config/i386/i386.c (ix86_expand_mask_vec_cmp): Add missing break.
1367 2015-11-18 Jakub Jelinek <jakub@redhat.com>
1369 PR tree-optimization/68157
1370 * tree-ssa-reassoc.c (attempt_builtin_powi): Set uid of
1371 pow_stmt or mul_stmt from stmt's uid.
1372 (reassociate_bb): Set uid of mul_stmt from stmt's uid.
1374 2015-11-18 Martin Liska <mliska@suse.cz>
1376 * haifa-sched.c (haifa_finish_h_i_d): Release reg_set_list.
1378 2015-11-18 Martin Liska <mliska@suse.cz>
1380 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
1381 Fix GNU coding style.
1382 (find_def_preds): Use auto_vec.
1383 (destroy_predicate_vecs): Change signature of the function.
1384 (prune_uninit_phi_opnds_in_unrealizable_paths): Use the
1386 (simplify_preds_4): Use destroy_predicate_vecs instread of
1387 just releasing preds vector.
1388 (normalize_preds): Likewise.
1389 (is_use_properly_guarded): Use new signature of
1390 destroy_predicate_vecs.
1391 (find_uninit_use): Likewise.
1393 2015-11-18 Richard Biener <rguenther@suse.de>
1395 PR tree-optimization/67790
1396 * tree-vect-loop.c (vect_is_simple_reduction_1): Remove
1397 IL rewrite for MINUS_EXPR reductions, rename back to ...
1398 (vect_is_simple_reduction): ... this, removing the wrapper.
1399 (vect_force_simple_reduction): Adjust.
1400 (vectorizable_reduction): Adjust reduc_index for MINUS_EXPR
1401 reductions and make use if reduc_index in all places. For
1402 the final reduction of MINUS_EXPR use PLUS_EXPR.
1404 2015-11-18 Alan Modra <amodra@gmail.com>
1406 * configure.ac (POWERPC64_TOC_POINTER_ALIGNMENT): Pass -z norelro
1408 * configure: Regenerate.
1410 2015-11-17 Tom de Vries <tom@codesourcery.com>
1412 * tree-ssa-loop.c (pass_tree_loop_init::execute): Improve comments.
1414 2015-11-17 Tom de Vries <tom@codesourcery.com>
1416 * tree-scalar-evolution.c (scev_const_prop): Dump details if replacing
1417 uses of ssa_name with constant.
1419 2015-11-17 Tom de Vries <tom@codesourcery.com>
1421 * tree-ssa-ccp.c (do_ssa_ccp): Clear LOOP_CLOSED_SSA in loops state if
1424 2015-11-17 Tom de Vries <tom@codesourcery.com>
1426 * cfgloop.h (struct loop): Add in_oacc_kernels_region field.
1427 * omp-low.c (mark_loops_in_oacc_kernels_region): New function.
1428 (expand_omp_target): Call mark_loops_in_oacc_kernels_region.
1430 2015-11-17 Bernd Schmidt <bschmidt@redhat.com>
1432 * regrename.c (regrename_find_superclass): New function, code moved
1434 (rename_chains): ... here. Call it.
1435 * regrename.h (regrename_find_superclass): Declare.
1437 * regrename.c (record_out_operands): Terminate earlyclobbered
1441 * regrename.c (record_operand_use): Keep track of failed operands
1442 and stop appending if we see any.
1443 * regrename.h (struct operand_rr_info): Add a failed field and shrink
1446 2015-11-17 Sandra Loosemore <sandra@codesourcery.com>
1449 * doc/extend.texi (Common Function Attributes) [visibility]:
1450 Add cross-references to matching variable and type attributes.
1451 (Common Variable Attributes) [visibility]: Add missing entry.
1453 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1455 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function): Remove
1456 entries that map directly to optabs.
1458 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1460 * config/i386/i386.c (ix86_builtin_vectorized_function): Remove
1461 entries that map directly to optabs.
1463 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1465 * internal-fn.h (direct_internal_fn_info): Add vectorizable flag.
1466 * internal-fn.c (direct_internal_fn_array): Update accordingly.
1467 * tree-vectorizer.h (vectorizable_function): Delete.
1468 * tree-vect-stmts.c: Include internal-fn.h.
1469 (vectorizable_internal_function): New function.
1470 (vectorizable_function): Inline into...
1471 (vectorizable_call): ...here. Explicitly reject calls that read
1472 from or write to memory. Try using an internal function before
1473 falling back on the old vectorizable_function behavior.
1475 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1477 * target.def (builtin_vectorized_function): Take a combined_fn (in
1478 the form of an unsigned int) rather than a function decl.
1479 (builtin_md_vectorized_function): New.
1480 * targhooks.h (default_builtin_vectorized_function): Replace the
1481 fndecl argument with an unsigned int.
1482 (default_builtin_md_vectorized_function): Declare.
1483 * targhooks.c (default_builtin_vectorized_function): Replace the
1484 fndecl argument with an unsigned int.
1485 (default_builtin_md_vectorized_function): New function.
1486 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION):
1488 * doc/tm.texi: Regenerate.
1489 * tree-vect-stmts.c (vectorizable_function): Update call to
1490 builtin_vectorized_function, also passing internal functions.
1491 Call builtin_md_vectorized_function for target-specific builtins.
1492 * config/aarch64/aarch64-protos.h
1493 (aarch64_builtin_vectorized_function): Replace fndecl argument
1494 with an unsigned int.
1495 * config/aarch64/aarch64-builtins.c: Include case-cfn-macros.h.
1496 (aarch64_builtin_vectorized_function): Update after above changes.
1498 * config/arm/arm-protos.h (arm_builtin_vectorized_function): Replace
1499 fndecl argument with an unsigned int.
1500 * config/arm/arm-builtins.c: Include case-cfn-macros.h
1501 (arm_builtin_vectorized_function): Update after above changes.
1503 * config/i386/i386.c: Include case-cfn-macros.h
1504 (ix86_veclib_handler): Take a combined_fn rather than a
1506 (ix86_veclibabi_svml, ix86_veclibabi_acml): Likewise. Use
1507 mathfn_built_in rather than calling builtin_decl_implicit directly.
1508 (ix86_builtin_vectorized_function) Update after above changes.
1510 * config/rs6000/rs6000.c: Include case-cfn-macros.h
1511 (rs6000_builtin_vectorized_libmass): Replace fndecl argument
1512 with a combined_fn. Use CASE_CFN_*. Use mathfn_built_in rather
1513 than calling builtin_decl_implicit directly.
1514 (rs6000_builtin_vectorized_function): Update after above changes.
1515 Use CASE_CFN_*. Move BUILT_IN_MD to...
1516 (rs6000_builtin_md_vectorized_function): ...this new function.
1517 (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION): Define.
1519 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1521 * tree-vect-patterns.c: Include internal-fn.h.
1522 (vect_recog_pow_pattern): Use IFN_SQRT instead of BUILT_IN_SQRT*.
1524 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1526 * tree.h (BUILTIN_EXP10_P, BUILTIN_EXPONENT_P, BUILTIN_SQRT_P)
1527 (BUILTIN_CBRT_P, BUILTIN_ROOT_P): Delete.
1529 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1531 * builtins.c (expand_errno_check, expand_builtin_mathfn)
1532 (expand_builtin_mathfn_2): Delete.
1533 (expand_builtin): Remove handling of functions with
1534 internal function equivalents.
1535 * internal-fn.def (SET_EDOM): New internal function.
1536 * internal-fn.h (set_edom_supported_p): Declare.
1537 * internal-fn.c (expand_SET_EDOM): New function.
1538 (set_edom_supported_p): Likewise.
1539 * tree-call-cdce.c: Include builtins.h and internal-fn.h.
1540 Rewrite comment at head of file.
1541 (is_call_dce_candidate): Rename to...
1542 (can_test_argument_range): ...this. Don't check gimple_call_lhs
1543 or gimple_call_builtin_p here.
1544 (edom_only_function): New function.
1545 (shrink_wrap_one_built_in_call_with_conds): New function, split out
1547 (shrink_wrap_one_built_in_call): ...here.
1548 (can_use_internal_fn, use_internal_fn): New functions.
1549 (shrink_wrap_conditional_dead_built_in_calls): Call use_internal_fn
1550 for calls that have an lhs.
1551 (pass_call_cdce::gate): Remove optimize_function_for_speed_p check.
1552 (pass_call_cdce::execute): Skip blocks that are optimized for size.
1553 Check gimple_call_builtin_p here. Use can_use_internal_fn for
1555 * opts.c (default_options_table): Enable -ftree-builtin-call-cdce
1558 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1560 * builtins.h (called_as_built_in): Declare.
1561 * builtins.c (called_as_built_in): Make external.
1562 * internal-fn.h (expand_internal_call): Define a variant that
1563 specifies the internal function explicitly.
1564 * internal-fn.c (expand_load_lanes_optab_fn)
1565 (expand_store_lanes_optab_fn, expand_ANNOTATE, expand_GOMP_SIMD_LANE)
1566 (expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE)
1567 (expand_GOMP_SIMD_ORDERED_START, expand_GOMP_SIMD_ORDERED_END)
1568 (expand_UBSAN_NULL, expand_UBSAN_BOUNDS, expand_UBSAN_VPTR)
1569 (expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK, expand_TSAN_FUNC_EXIT)
1570 (expand_UBSAN_CHECK_ADD, expand_UBSAN_CHECK_SUB)
1571 (expand_UBSAN_CHECK_MUL, expand_ADD_OVERFLOW, expand_SUB_OVERFLOW)
1572 (expand_MUL_OVERFLOW, expand_LOOP_VECTORIZED)
1573 (expand_mask_load_optab_fn, expand_mask_store_optab_fn)
1574 (expand_ABNORMAL_DISPATCHER, expand_BUILTIN_EXPECT, expand_VA_ARG)
1575 (expand_UNIQUE, expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS)
1576 (expand_GOACC_LOOP, expand_GOACC_REDUCTION, expand_direct_optab_fn)
1577 (expand_unary_optab_fn, expand_binary_optab_fn): Add an internal_fn
1579 (internal_fn_expanders): Update prototype.
1580 (expand_internal_call): Define a variant that specifies the
1581 internal function explicitly. Use it to implement the previous
1583 * cfgexpand.c (expand_call_stmt): Try to expand calls to built-in
1584 functions as calls to internal functions.
1586 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1588 * Makefile.in (MOSTLYCLEANFILES): Add cfn-operators.pd.
1589 (generated_files): Likewise.
1590 (s-cfn-operators, cfn-operators.pd): New rules.
1591 (s-match): Depend on cfn-operators.pd.
1592 * gencfn-macros.c: Expand comment to describe -o behavior.
1593 (print_define_operator_list): New function.
1594 (main): Accept -o. Call print_define_operator_list.
1595 * genmatch.c (main): Add the current directory to the include path.
1596 * match.pd (DEFINE_MATH_FN): Delete. Include cfn-operators.pd
1599 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1601 * doc/match-and-simplify.texi: Document the "null" identifier.
1602 * genmatch.c (id_base::NULL_ID): New kind.
1603 (null_id): New variable.
1604 (get_operator): Add a parameter that says whether null identifiers
1606 (contains_id): New function.
1607 (lower_for): Skip substitutions that would have a null_id in
1608 either the match or the result.
1609 (parser::parse_for): Allow the null identifier to be used.
1610 (parser::parse_operator_list): Likewise.
1611 (main): Initialize null_id.
1613 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1615 * match.pd: Use HYPOT and COS rather than hypot and cos.
1616 Use CASE_CFN_* macros. Guard log/exp folds with
1617 SCALAR_FLOAT_TYPE_P.
1618 * genmatch.c (internal_fn): New enum.
1619 (fn_id::fn): Change to an unsigned int.
1620 (fn_id::fn_id): Accept internal_fn too.
1621 (add_builtin): Rename to...
1622 (add_function): ...this and turn into a template.
1623 (get_operator): Only try one variation if the original name fails.
1624 Only add _EXPR if the original name was all lower case.
1625 Try converting internal and built-in function names to their
1627 (expr::gen_transform): Use maybe_build_call_expr_loc for generic.
1628 (dt_simplify::gen_1): Likewise.
1629 (dt_node::gen_kids_1): Use gimple_call_combined_fn for gimple
1630 and get_call_combined_fn for generic.
1631 (dt_simplify::gen): Use combined_fn as the type of fn_ids.
1632 (decision_tree::gen): Likewise.
1633 (main): Use lower case in the strings for {VIEW_,}CONVERT[012].
1634 Use add_function rather than add_builtin. Register internal
1636 * generic-match-head.c: Include case-cfn-macros.h.
1637 * gimple-fold.c (replace_stmt_with_simplification): Use
1638 gimple_call_combined_fn to test whether we can keep an
1640 * gimple-match.h (code_helper): Replace built_in_function
1642 * gimple-match-head.c: Include fold-const-call.h, internal-fn.h
1643 and case-fn-macros.h.
1644 (gimple_resimplify1): Use fold_const_call.
1645 (gimple_resimplify2, gimple_resimplify3): Likewise.
1646 (build_call_internal, build_call): New functions.
1647 (maybe_push_res_to_seq): Use them.
1648 (gimple_simplify): Use fold_const_call. Set *rcode to a combined_fn
1649 rather than a built-in function.
1650 * tree.h (build_call_expr_internal_loc): Declare.
1651 (maybe_build_call_expr_loc): Likewise.
1652 * tree.c (build_call_expr_internal_loc_array): New function.
1653 (maybe_build_call_expr_loc): Likewise.
1655 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1657 * builtins.h (mathfn_built_in): Add a variant that takes
1659 * builtins.c: Include case-cfn-macros.h.
1660 (CASE_MATHFN): Use CASE_CFN_*.
1661 (CASE_MATHFN_REENT): Use CFN_ codes.
1662 (mathfn_built_in_2, mathfn_built_in_1): Replace built_in_function
1663 argument with a combined_fn.
1664 (mathfn_built_in): Add a variant that takes a combined_fn.
1665 (expand_builtin_int_roundingfn_2): Update callers accordingly.
1666 (fold_builtin_sincos, fold_builtin_classify): Likewise.
1668 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1670 * tree-vect-patterns.c: Include case-cfn-macros.h.
1671 (vect_recog_pow_pattern): Use combined_fn instead of built-in codes.
1673 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1675 * tree-ssa-math-opts.c: Include case-cfn-macros.h.
1676 (execute_cse_sincos_1): Use combined_fn instead of built-in codes.
1677 (pass_cse_sincos::execute): Likewise.
1679 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1681 * tree-ssa-reassoc.c: Include case-cfn-macros.h.
1682 (stmt_is_power_of_op): Use combined_fn instead of built-in codes.
1683 (decrement_power, acceptable_pow_call): Likewise.
1684 (attempt_builtin_copysign): Likewise.
1686 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1688 * tree-vrp.c: Include case-cfn-macros.h.
1689 (extract_range_basic): Switch on combined_fn rather than handling
1690 built-in functions and internal functions separately.
1692 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1694 * fold-const.h (negate_mathfn_p): Take a combined_fn rather
1695 than a built_in_function.
1696 (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
1698 (integer_valued_real_call_p): Likewise.
1699 * fold-const.c: Include case-cfn-macros.h
1700 (negate_mathfn_p): Take a combined_fn rather than a built_in_function.
1701 (negate_expr_p): Update accordingly.
1702 (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
1704 (integer_valued_real_call_p): Likewise.
1705 (tree_invalid_nonnegative_warnv_p): Update accordingly.
1706 (integer_valued_real_p): Likewise.
1707 * gimple-fold.c (gimple_call_nonnegative_warnv_p): Update call
1708 to tree_call_nonnegative_warnv_p.
1709 (gimple_call_integer_valued_real_p): Likewise
1710 integer_valued_real_call_p.
1711 * gimple-ssa-backprop.c: Include case-cfn-macros.h.
1712 (backprop::process_builtin_call_use): Extend to combined_fn.
1713 (strip_sign_op_1): Likewise.
1714 (backprop::process_use): Don't check for built-in calls here.
1715 (backprop::execute): Likewise.
1716 (backprop::optimize_builtin_call): Update call to negate_mathfn_p.
1718 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1720 * fold-const-call.h (fold_const_call): Replace built_in_function
1721 arguments with combined_fn arguments.
1722 * fold-const-call.c: Include case-cfn-macros.h.
1723 (fold_const_call_ss, fold_const_call_cs, fold_const_call_sc)
1724 (fold_const_call_cc, fold_const_call_sss, fold_const_call_ccc)
1725 (fold_const_call_ssss, fold_const_call_1, fold_const_call): Replace
1726 built_in_function arguments with combined_fn arguments.
1727 * builtins.c (fold_builtin_sincos, fold_builtin_1, fold_builtin_2)
1728 (fold_builtin_3): Update calls to fold_const_call.
1730 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1732 * Makefile.in (HASH_TABLE_H): Add GGC_H.
1733 (MOSTLYCLEANFILES, generated_files): Add case-fn-macros.h.
1734 (s-case-cfn-macros, case-cfn-macros.h, build/gencfn-macros.o)
1735 (build/gencfn-macros$(build_exeext): New rules.
1736 (genprogerr): Add cfn-macros.
1737 * hash-set.h (hash_set): Use the traits value_type as the key.
1738 * gencfn-macros.c: New file.
1740 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1742 * internal-fn.def (DEF_INTERNAL_INT_FN): New macro.
1743 (CLRSB, CLZ, CTZ, FFS, PARITY, POPCOUNT): New functions.
1744 * builtins.c (associated_internal_fn): Handle them.
1746 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1748 * builtins.h (associated_internal_fn): Declare.
1749 (replacement_internal_fn): Likewise.
1750 * builtins.c: Include internal-fn.h
1751 (associated_internal_fn, replacement_internal_fn): New functions.
1752 * internal-fn.def (DEF_INTERNAL_FLT_FN): New macro.
1753 (ACOS, ASIN, ATAN, COS, EXP, EXP10, EXP2, EXPM1, LOG, LOG10, LOG1P)
1754 (LOG2, LOGB, SIGNIFICAND, SIN, SQRT, TAN, CEIL, FLOOR, NEARBYINT)
1755 (RINT, ROUND, TRUNC, ATAN2, COPYSIGN, FMOD, POW, REMAINDER, SCALB)
1756 (LDEXP): New functions.
1757 * internal-fn.c: Include recog.h.
1758 (unary_direct, binary_direct): New macros.
1759 (expand_direct_optab_fn): New function.
1760 (expand_unary_optab_fn): New macro.
1761 (expand_binary_optab_fn): Likewise.
1762 (direct_unary_optab_supported_p): Likewise.
1763 (direct_binary_optab_supported_p): Likewise.
1765 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1767 * coretypes.h (tree_pair): New type.
1768 * internal-fn.def (DEF_INTERNAL_OPTAB_FN): New macro. Use it
1769 for MASK_LOAD, LOAD_LANES, MASK_STORE and STORE_LANES.
1770 * internal-fn.h (direct_internal_fn_info): New structure.
1771 (direct_internal_fn_array): Declare.
1772 (direct_internal_fn_p, direct_internal_fn): New functions.
1773 (direct_internal_fn_types, direct_internal_fn_supported_p): Declare.
1774 * internal-fn.c (not_direct, mask_load_direct, load_lanes_direct)
1775 (mask_store_direct, store_lanes_direct): New macros.
1776 (direct_internal_fn_array) New array.
1777 (get_multi_vector_move): Return the optab handler without asserting
1778 that it is available.
1779 (expand_LOAD_LANES): Rename to...
1780 (expand_load_lanes_optab_fn): ...this and add an optab argument.
1781 (expand_STORE_LANES): Rename to...
1782 (expand_store_lanes_optab_fn): ...this and add an optab argument.
1783 (expand_MASK_LOAD): Rename to...
1784 (expand_mask_load_optab_fn): ...this and add an optab argument.
1785 (expand_MASK_STORE): Rename to...
1786 (expand_mask_store_optab_fn): ...this and add an optab argument.
1787 (direct_internal_fn_types, direct_optab_supported_p)
1788 (multi_vector_optab_supported_p, direct_internal_fn_supported_p)
1789 (direct_internal_fn_supported_p): New functions.
1790 (direct_mask_load_optab_supported_p): New macro.
1791 (direct_load_lanes_optab_supported_p): Likewise.
1792 (direct_mask_store_optab_supported_p): Likewise.
1793 (direct_store_lanes_optab_supported_p): Likewise.
1795 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1797 * tree-core.h (internal_fn): Move immediately after the definition
1798 of built_in_function.
1799 (combined_fn): New enum.
1800 * tree.h (as_combined_fn, builtin_fn_p, as_builtin_fn)
1801 (internal_fn_p, as_internal_fn): New functions.
1802 (get_call_combined_fn, combined_fn_name): Declare.
1803 * tree.c (get_call_combined_fn): New function.
1804 (combined_fn_name): Likewise.
1805 * gimple.h (gimple_call_combined_fn): Declare.
1806 * gimple.c (gimple_call_combined_fn): New function.
1808 2015-11-17 Martin Sebor <msebor@redhat.com>
1811 * cp/init.c (build_new_1): Check for expression constness
1814 2015-11-17 Sandra Loosemore <sandra@codesourcery.com>
1817 * doc/invoke.texi (Option Summary): Add -mms-bitfields to x86
1819 (x86 Options): Add -mms-bitfields and -mno-ms-bitfields. Move
1820 discussion of the Microsoft structure layout details here from
1821 its former home in extend.texi.
1822 * doc/extend.texi (x86 Variable Attributes): Replace detailed
1823 discussion with pointer to its new location. Add cross-reference
1824 to corresponding type attributes.
1825 (x86 Type Attributes): Add cross-references to command-line options
1826 and variable attributes.
1828 2015-11-17 Ilya Enkovich <enkovich.gnu@gmail.com>
1831 * targhooks.c (default_get_mask_mode): Filter out
1832 scalar modes returned by mode_for_vector.
1834 2015-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1837 * config/arm/arm.c (arm_block_set_unaligned_vect): Keep track of
1838 offset from dstbase and use it appropriately in
1839 adjust_automodify_address.
1840 (arm_block_set_aligned_vect): Likewise.
1842 2015-11-17 Eric Botcazou <ebotcazou@adacore.com>
1844 * config/visium/t-visium (MULTILIB_OPTIONS): Add muser-mode.
1845 (MULTILIB_DIRNAMES): Adjust accordingly.
1847 2015-11-17 James Greenhalgh <james.greenhalgh@arm.com>
1849 * config/aarch64/aarch64-cores.def (cortex-a35): New.
1850 * config/aarch64/aarch64.c (cortexa35_tunings): New.
1851 * config/aarch64/aarch64-tune.md: Regenerate.
1852 * doc/invoke.texi (-mcpu): Add Cortex-A35
1854 2015-11-17 Uros Bizjak <ubizjak@gmail.com>
1857 * config/i386/i386.h (BIGGEST_ALIGNMENT): Always define
1859 * config/i386/sse.md (*mov<mode>_internal): Always enable
1860 AVX and SSE unaligned moves for IAMCU.
1862 2015-11-17 Venkataramanan Kumar <Venkataramanan.Kumar@amd.com>
1864 * tree-if-conv.c: Include varasm.h
1865 (ref_DR_map): Define.
1866 (baseref_DR_map): Like wise
1867 (struct ifc_dr): Add new tree predicate field.
1868 (hash_memrefs_baserefs_and_store_DRs_read_written_info): New function.
1869 (memrefs_read_or_written_unconditionally): Remove.
1870 (write_memrefs_written_at_least_once): Remove.
1871 (ifcvt_memrefs_wont_trap): Use hash maps to query
1872 unconditional read/written information.
1873 (if_convertible_loop_p_1): Initialize hash maps and predicates
1874 before hashing data references and delete hashmaps at the end.
1876 2015-11-16 Thomas Preud'homme <thomas.preudhomme@arm.com>
1879 * doc/invoke.texi (Optimize Options): Move @end table to the right
1882 2015-11-16 Sandra Loosemore <sandra@codesourcery.com>
1885 * doc/extend.texi (__builtin_assume_aligned): Fix formatting of
1888 2015-11-16 Michael Meissner <meissner@linux.vnet.ibm.com>
1890 * config/rs6000/vsx.md (VSX_L): Do not include IBM extended double
1891 128-bit types, just types that fit in a single vector.
1892 * config/rs6000/rs6000.md (FMOVE128_GPR): Likewise.
1894 2015-11-16 David Wohlferd <dw@LimeGreenSocks.com>
1896 * doc/md.texi ('#' and '*' constraint modifiers): Do not include these
1897 in the user documentation.
1898 (define_peephole2, define_split): Similarly.
1900 2015-11-16 Andris Pavenis <andris.pavenis@iki.fi>
1902 * lto-streamer-out.c (write_global_references): Adjust integer type.
1903 (lto_output_decl_state_refs): Likewise.
1905 2015-11-16 James Greenhalgh <james.greenhalgh@arm.com>
1907 * config/arm/arm-cores.def (cortex-a35): New.
1908 * config/arm/arm.c (arm_cortex_a35_tune): New.
1909 * config/arm/arm-tables.opt: Regenerate.
1910 * config/arm/arm-tune.md: Regenerate.
1911 * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-a35.
1912 * config/arm/t-aprofile: Likewise.
1913 * doc/invoke.texi (-mcpu): Likewise.
1915 2015-11-16 Jim Wilson <jim.wilson@linaro.org>
1917 * config/arm/t-aprofile (MULTILIB_MATCHES): Add lines for exynos-m1
1918 and qdf24xx and xgene1 to match -march=armv8-a.
1920 2015-11-16 Segher Boessenkool <segher@kernel.crashing.org>
1922 PR rtl-optimization/68330
1923 * simplify-rtx.c (simplify_unary_operation_1): Simplify SIGN_EXTEND
1924 of LSHIFTRT by a non-zero constant integer.
1926 2015-11-16 Richard Biener <rguenther@suse.de>
1928 PR tree-optimization/68306
1929 * tree-vect-data-refs.c (vect_verify_datarefs_alignment): Fix
1930 bogus copying from verify_data_ref_alignment and use continue
1933 2015-11-16 Oleg Endo <olegendo@gcc.gnu.org>
1934 Kaz Kojima <kkojima@gcc.gnu.org>
1937 * config/sh/sh.md (addsi3_scr): Handle reg overlap of operands[0] and
1939 (*addsi3): Add another insn_and_split variant for reload.
1941 2015-11-16 Richard Biener <rguenther@suse.de>
1944 * cfgexpand.c (pass_expand::execute): Destroy the edge
1945 redirection var map before setting RTL CFG hooks.
1947 2015-11-16 Alan Lawrence <alan.lawrence@arm.com>
1949 * config/i386/sse.md (reduc_splus_v8df): Rename to...
1950 (reduc_plus_scal_v8df): ...here; reduce to temp and extract scalar.
1952 (reduc_splus_v4df): Rename to...
1953 (reduc_plus_scal_v4df): ...here; reduce to temp and extract scalar.
1955 (reduc_splus_v2df): Rename to...
1956 (reduc_plus_scal_v2df): ...here; reduce to temp and extract scalar.
1958 (reduc_splus_v16sf): Rename to...
1959 (reduc_plus_scal_v16sf): ...here; reduce to temp and extract scalar.
1961 (reduc_splus_v8sf): Rename to...
1962 (reduc_plus_scal_v8sf): ...here; reduce to temp and extract scalar.
1964 (reduc_splus_v4sf): Rename to...
1965 (reduc_plus_scal_v4sf): ...here; reduce to temp and extract scalar.
1967 (reduc_<code>_<mode>, all 3 variants): Rename each to...
1968 (reduc_<code>_scal_<mode>): ...here; reduce to temp and extract scalar.
1970 (reduc_umin_v8hf): Rename to...
1971 (reduc_umin_scal_v8hf): ...here; reduce to temp and extract scalar.
1973 2015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
1975 * omp-low.c (pass_omp_simd_clone::gate): If target allows - call
1976 without additional conditions.
1977 * doc/extend.texi (@item simd): New.
1979 2015-11-16 Tom de Vries <tom@codesourcery.com>
1981 * passes.c (first_pass_instance): Remove variable.
1982 (execute_todo): Remove setting of first_pass_instance.
1983 * tree-pass.h (first_pass_instance): Remove declaration.
1985 2015-11-16 Tom de Vries <tom@codesourcery.com>
1987 * passes.def: Add arg to pass_ccp pass instantiation.
1988 * tree-ssa-ccp.c (ccp_finalize): Add param nonzero_p. Use nonzero_p
1989 instead of first_pass_instance.
1990 (do_ssa_ccp): Add and handle param nonzero_p.
1991 (pass_ccp::pass_ccp): Initialize nonzero_p.
1992 (pass_ccp::set_pass_param): New member function. Set nonzero_p.
1993 (pass_ccp::execute): Call do_ssa_ccp with extra arg.
1994 (pass_ccp::nonzero_p): New private member.
1996 2015-11-16 Tom de Vries <tom@codesourcery.com>
1998 * passes.def: Add arg to pass_object_sizes pass instantiation.
1999 * tree-object-size.c (pass_object_sizes::pass_object_sizes): Initialize
2001 (pass_object_sizes::set_pass_param): New member function. Set
2003 (pass_object_sizes::insert_min_max_p): New private member.
2004 (pass_object_sizes::execute): Use insert_min_max_p instead of
2005 first_pass_instance.
2007 2015-11-16 Tom de Vries <tom@codesourcery.com>
2009 * passes.def: Add arg to pass_dominator pass instantiation.
2010 * tree-pass.h (first_pass_instance): Remove pass_dominator-related bit
2012 * tree-ssa-dom.c (pass_dominator::pass_dominator): Initialize
2013 may_peel_loop_headers_p.
2014 (pass_dominator::set_pass_param): New member function. Set
2015 may_peel_loop_headers_p.
2016 (pass_dominator::may_peel_loop_headers_p): New private member.
2017 (pass_dominator::execute): Use may_peel_loop_headers_p instead of
2018 first_pass_instance.
2020 2015-11-16 Tom de Vries <tom@codesourcery.com>
2022 * passes.def: Add arg to pass_reassoc pass instantiation.
2023 * tree-ssa-reassoc.c (reassoc_insert_powi_p): New static variable.
2024 (acceptable_pow_call, reassociate_bb): Use reassoc_insert_powi_p instead
2025 of first_pass_instance.
2026 (execute_reassoc): Add and handle insert_powi_p parameter.
2027 (pass_reassoc::insert_powi_p): New private member.
2028 (pass_reassoc::pass_reassoc): Initialize insert_powi_p.
2029 (pass_reassoc::set_pass_param): New member function. Set insert_powi_p.
2030 (pass_reassoc::execute): Call execute_reassoc with extra arg.
2032 2015-11-16 Tom de Vries <tom@codesourcery.com>
2034 * gdbhooks.py (class PassNames): Handle extra arg NEXT_PASS argument.
2035 * gen-pass-instances.awk (handle_line): Same.
2036 * pass_manager.h (class pass_manager): Define and undefine
2038 * passes.c (opt_pass::set_pass_param): New function.
2039 (pass_manager::pass_manager): Define and undefine NEXT_PASS_WITH_ARG.
2040 * passes.def: Add extra arg to NEXT_PASS (pass_vrp).
2041 * tree-pass.h (gimple_opt::set_pass_param): Declare.
2042 * tree-vrp.c (vrp_finalize, execute_vrp): Add and handle
2043 warn_array_bounds_p parameter.
2044 (pass_vrp::pass_vrp): Initialize warn_array_bounds_p.
2045 (pass_vrp::set_pass_param): New function.
2046 (pass_vrp::execute): Add warn_array_bounds_p arg to execute_vrp call.
2047 (pass_vrp::warn_array_bounds_p): New private member.
2049 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
2051 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Adjust.
2052 (output_probe_stack_range): Rotate the loop and simplify.
2054 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
2056 * config/rs6000/rs6000.c (rs6000_emit_probe_stack_rang): Adjust.
2057 (output_probe_stack_range): Rotate the loop and simplify.
2059 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
2061 * config/i386/i386.c (ix86_adjust_stack_and_probe): Adjust and use
2062 an lea instruction when possible.
2063 (output_adjust_stack_and_probe): Rotate the loop and simplify.
2064 (ix86_emit_probe_stack_range): Adjust.
2065 (output_probe_stack_range): Rotate the loop and simplify.
2067 2015-11-16 Christian Bruel <christian.bruel@st.com>
2069 * config/arm/arm_neon.h: Remove #ifndef check on __ARM_NEON.
2070 Replace #ifdef __ARM_FEATURE_CRYPTO, __ARM_FEATURE_FMA, __ARM_FP
2071 with appropriate pragma GCC target.
2073 2015-11-16 Christian Bruel <christian.bruel@st.com>
2076 * config/arm/arm-c.c (arm_cpu_builtins): Conditionally set and reset
2077 __ARM_FEATURE_FMA and __ARM_NEON_FP, __ARM_FP.
2079 2015-11-16 James Greenhalgh <james.greenhalgh@arm.com>
2081 * config/aarch64/aarch64.c (cortexa57_branch_costs): New.
2082 (cortexa57_tunings): Use it.
2084 2015-11-16 Christian Bruel <christian.bruel@st.com>
2087 * config/arm/arm-c.c (arm_cpu_builtins): Set or reset
2088 __ARM_FEATURE_CRYPTO, __VFP_FP__, __ARM_NEON__
2089 (arm_pragma_target_parse): Change check for arm_cpu_builtins.
2091 * config/arm/arm.c (arm_can_inline_p): Check FPUs.
2092 (arm_valid_target_attribute_rec): Handle -mfpu attribute target.
2093 * doc/invoke.texi (-mfpu=): Mention attribute and pragma.
2094 * doc/extend.texi (-mfpu=): Describe attribute.
2096 2015-11-16 Christian Bruel <christian.bruel@st.com>
2099 * config/arm/arm-protos.h (arm_init_neon_builtins): Declare.
2100 * config/arm/arm.c (arm_valid_target_attribute_tree): Call
2101 arm_init_neon_builtins.
2102 * config/arm/arm-builtins.c (arm_init_neon_builtins): Split into...
2103 (arm_init_neon_builtins_internal)
2104 (arm_init_crypto_builtins_internal):
2105 Test and set neon_set_p, neon_crypto_set_p.
2106 (neon_set_p, neon_crypto_set_p): New static booleans.
2108 2015-11-16 Christian Bruel <christian.bruel@st.com>
2111 * config/arm/arm.c (arm_fpu_desc): Remove.
2112 (all_fpus): Make global.
2113 (arm_option_override): Use FPU TARGET accessors.
2114 (arm_declare_function_name): Likewise.
2115 * config/arm/arm.h (TARGET_VFP, TARGET_VFPD32, TARGET_VFP5)
2116 (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE, TARGET_NEON_FP16)
2117 (TARGET_FP16, TARGET_FMA, TARGET_FPU_ARMV8, TARGET_CRYPTO)
2118 (TARGET_NEON): Likewise.
2119 (all_fpus): Declare extern.
2120 (TARGET_FPU_NAME, TARGET_FPU_MODEL, TARGET_FPU_REV)
2121 (TARGET_FPU_REGS, TARGET_FPU_FEATURES): Define all_fpus accessors.
2123 2015-11-15 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2126 * sdbout.c: Include emit-rtl.h and function.h.
2128 2015-11-15 Gerald Pfeifer <gerald@pfeifer.com>
2130 * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Change to i586.
2131 Remove support for FreeBSD 5 and earlier.
2133 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2135 * configure: Regenerate.
2136 * configure.ac: Always define ENABLE_OFFLOADING.
2137 * cgraph.c (cgraph_node::create): Adjust.
2138 * gcc.c (process_command): Likewise.
2139 * omp-low.c (create_omp_child_function): Likewise.
2140 (expand_omp_target): Likewise.
2141 * varpool.c (varpool_node::get_create): Likewise.
2143 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2145 * defaults.h (EH_RETURN_HANDLER_RTX): New default definition.
2146 * df-scan.c (df_get_exit_block_use_set): Adjust.
2147 * except.c (expand_eh_return): Likewise.
2149 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2151 * config/i386/i386.h (TARGET_PECOFF): Remove define.
2152 * defaults.h (TARGET_PECOFF): New default definition.
2153 * varasm.c (handle_vtv_comdat_section): Adjust.
2155 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2157 * defaults.h: New definition of SDB_DEBUGGING_INFO.
2158 * doc/tm.texi: Regenerate.
2159 * doc/tm.texi.in: Adjust.
2160 * final.c (rest_of_clean_state): Remove check if
2161 SDB_DEBUGGING_INFO is defined.
2162 * function.c (number_blocks): Likewise.
2163 * output.h: Likewise.
2164 * sdbout.c: Likewise.
2165 * toplev.c (process_options): Likewise.
2167 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2169 * gsyms.h (enum sdb_type): Remove code for EXTENDED_SDB_BASIC_TYPES.
2170 (enum sdb_masks): Likewise.
2171 * sdbout.c (plain_type_1): Likewise.
2172 * system.h: Poison EXTENDED_SDB_BASIC_TYPES macro.
2174 2015-11-14 Jakub Jelinek <jakub@redhat.com>
2176 * omp-low.c (lower_omp_ordered): Add argument to GOMP_SMD_ORDERED_*
2177 internal calls - 0 if ordered simd and 1 for ordered threads simd.
2178 * tree-vectorizer.c (adjust_simduid_builtins): If GOMP_SIMD_ORDERED_*
2179 argument is 1, replace it with GOMP_ordered_* call instead of removing
2182 2015-11-13 Rich Felker <dalias@libc.org>
2184 * config/sh/sh.md (symGOT_load): Suppress __stack_chk_guard
2185 address loading hack for FDPIC targets.
2187 2015-11-13 Ajit Agarwal <ajitkum@xilinx.com>
2188 Jeff Law <law@redhat.com>
2190 * Makefile.in (OBJS): Add gimple-ssa-split-paths.o
2191 * common.opt (-fsplit-paths): New flag controlling path splitting.
2192 * doc/invoke.texi (fsplit-paths): Document.
2193 * opts.c (default_options_table): Add -fsplit-paths to -O2.
2194 * passes.def: Add split_paths pass.
2195 * timevar.def (TV_SPLIT_PATHS): New timevar.
2196 * tracer.c: Include "tracer.h"
2197 (ignore_bb_p): No longer static.
2198 (transform_duplicate): New function, broken out of tail_duplicate.
2199 (tail_duplicate): Use transform_duplicate.
2200 * tracer.h (ignore_bb_p): Declare
2201 (transform_duplicate): Likewise.
2202 * tree-pass.h (make_pass_split_paths): Declare.
2203 * gimple-ssa-split-paths.c: New file.
2205 2015-11-13 Kai Tietz <ktietz70@googlemail.com>
2206 Marek Polacek <polacek@redhat.com>
2207 Jason Merrill <jason@redhat.com>
2209 * convert.c (maybe_fold_build1_loc): New.
2210 (maybe_fold_build2_loc): New.
2211 (convert_to_pointer_1): Split out from convert_to_pointer.
2212 (convert_to_pointer_nofold): New.
2213 (convert_to_real_1): Split out from convert_to_real.
2214 (convert_to_real_nofold): New.
2215 (convert_to_integer_1): Split out from convert_to_integer.
2216 (convert_to_integer_nofold): New.
2217 (convert_to_complex_1): Split out from convert_to_complex.
2218 (convert_to_complex_nofold): New.
2219 * convert.h: Declare new functions.
2220 * tree-complex.c (create_one_component_var): Break up line to
2221 avoid sequence point issues.
2223 2015-11-13 Jason Merrill <jason@redhat.com>
2225 * fold-const.c (fold_convert_const): Fold changing cv-quals on
2228 * hash-map.h (hash_map::empty): New.
2230 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
2232 * omp-low.c (scan_sharing_clauses): Accept INDEPENDENT, AUTO & SEQ.
2233 (oacc_loop_fixed_partitions): Correct return type to bool.
2234 (oacc_loop_auto_partitions): New.
2235 (oacc_loop_partition): Take mask argument, call
2236 oacc_loop_auto_partitions.
2237 (execute_oacc_device_lower): Provide mask to oacc_loop_partition.
2239 2015-11-13 Michael Meissner <meissner@linux.vnet.ibm.com>
2241 * config/rs6000/constraints.md (we constraint): New constraint for
2242 64-bit power9 vector support.
2243 (wL constraint): New constraint for the element in a vector that
2244 can be addressed by the MFVSRLD instruction.
2246 * config/rs6000/rs6000-protos.h (convert_float128_to_int): Add
2248 (convert_int_to_float128): Likewise.
2249 (rs6000_generate_compare): Add support for ISA 3.0 (power9)
2250 hardware support for IEEE 128-bit floating point.
2251 (rs6000_expand_float128_convert): Likewise.
2252 (convert_float128_to_int): Likewise.
2253 (convert_int_to_float128): Likewise.
2255 * config/rs6000/rs6000.md (UNSPEC_ROUND_TO_ODD): New unspecs for
2256 ISA 3.0 hardware IEEE 128-bit floating point.
2257 (UNSPEC_IEEE128_MOVE): Likewise.
2258 (UNSPEC_IEEE128_CONVERT): Likewise.
2259 (FMA_F): Add support for IEEE 128-bit floating point hardware support.
2260 (Ff): Add support for DImode.
2262 (any_fix code iterator): New and updated iterators for IEEE
2263 128-bit floating point hardware support.
2264 (any_float code iterator): Likewise.
2265 (s code attribute): Likewise.
2266 (su code attribute): Likewise.
2267 (az code attribute): Likewise.
2268 (uns code attribute): Likewise.
2269 (neg<mode>2, FLOAT128 iterator): Add support for IEEE 128-bit
2270 floating point hardware support.
2271 (abs<mode>2, FLOAT128 iterator): Likewise.
2272 (add<mode>3, IEEE128 iterator): New insns for IEEE 128-bit
2273 floating point hardware.
2274 (sub<mode>3, IEEE128 iterator): Likewise.
2275 (mul<mode>3, IEEE128 iterator): Likewise.
2276 (div<mode>3, IEEE128 iterator): Likewise.
2277 (copysign<mode>3, IEEE128 iterator): Likewise.
2278 (sqrt<mode>2, IEEE128 iterator): Likewise.
2279 (neg<mode>2, IEEE128 iterator): Likewise.
2280 (abs<mode>2, IEEE128 iterator): Likewise.
2281 (nabs<mode>2, IEEE128 iterator): Likewise.
2282 (fma<mode>4_hw, IEEE128 iterator): Likewise.
2283 (fms<mode>4_hw, IEEE128 iterator): Likewise.
2284 (nfma<mode>4_hw, IEEE128 iterator): Likewise.
2285 (nfms<mode>4_hw, IEEE128 iterator): Likewise.
2286 (extend<SFDF:mode><IEEE128:mode>2_hw): Likewise.
2287 (trunc<mode>df2_hw, IEEE128 iterator): Likewise.
2288 (trunc<mode>sf2_hw, IEEE128 iterator): Likewise.
2289 (fix_fixuns code attribute): Likewise.
2290 (float_floatuns code attribute): Likewise.
2291 (fix<uns>_<mode>si2_hw): Likewise.
2292 (fix<uns>_<mode>di2_hw): Likewise.
2293 (float<uns>_<mode>si2_hw): Likewise.
2294 (float<uns>_<mode>di2_hw): Likewise.
2295 (xscvqp<su>wz_<mode>): Likewise.
2296 (xscvqp<su>dz_<mode>): Likewise.
2297 (xscv<su>dqp_<mode): Likewise.
2298 (ieee128_mfvsrd): Likewise.
2299 (ieee128_mfvsrwz): Likewise.
2300 (ieee128_mtvsrw): Likewise.
2301 (ieee128_mtvsrd): Likewise.
2302 (trunc<mode>df2_odd): Likewise.
2303 (cmp<mode>_h): Likewise.
2304 (128-bit GPR splitters): Don't split a 128-bit move that is a
2305 direct move between GPR and vector registers using ISA 3.0 direct
2307 (maddld4): Add support for the ISA 3.0 integer multiply-add
2310 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add ISA 3.0
2312 (rs6000_init_hard_regno_mode_ok): If ISA 3.0 and 64-bit, enable we
2313 constraint. Disable the VSX<->GPR direct move helpers if we have
2314 the MFVSRLD and MTVSRDD instructions.
2315 (rs6000_secondary_reload_simple_move): Add support for doing
2316 vector direct moves directly without additional scratch registers
2317 if we have ISA 3.0 instructions.
2318 (rs6000_secondary_reload_direct_move): Update comments.
2319 (rs6000_output_move_128bit): Add support for ISA 3.0 vector
2322 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for ISA 3.0
2323 direct move instructions.
2324 (vsx_movti_64bit): Likewise.
2325 (vsx_extract_<mode>): Likewise.
2327 * config/rs6000/rs6000.h (VECTOR_ELEMENT_MFVSRLD_64BIT): New
2328 macros for ISA 3.0 direct move instructions.
2329 (TARGET_DIRECT_MOVE_128): Likewise.
2330 (TARGET_MADDLD): Add support for the ISA 3.0 integer multiply-add
2333 * doc/md.texi (RS/6000 constraints): Document we, wF, wG, wL
2334 constraints. Update wa documentation to say not to use %x<n> on
2335 instructions that only take Altivec registers.
2337 2015-11-13 David Malcolm <dmalcolm@redhat.com>
2339 * Makefile.in (OBJS): Add gcc-rich-location.o.
2340 * diagnostic.c (diagnostic_append_note): Pass line_table to
2342 (emit_diagnostic): Likewise.
2344 (inform_n): Likewise.
2345 (warning): Likewise.
2346 (warning_at): Likewise.
2347 (warning_n): Likewise.
2348 (pedwarn): Likewise.
2349 (permerror): Likewise.
2351 (error_n): Likewise.
2352 (error_at): Likewise.
2354 (fatal_error): Likewise.
2355 (internal_error): Likewise.
2356 (internal_error_no_backtrace): Likewise.
2357 (source_range::debug): Likewise.
2358 * gcc-rich-location.c: New file.
2359 * gcc-rich-location.h: New file.
2360 * genmatch.c (fatal_at): Pass line_table to rich_location ctor.
2361 (warning_at): Likewise.
2362 * gimple.h (gimple_set_block): Use set_block function.
2363 * input.c (dump_line_table_statistics): Dump stats on how many
2364 ranges were optimized vs how many needed ad-hoc table.
2365 (write_digit_row): Add "map" param; use its range_bits
2366 to calculate the per-character offset.
2367 (dump_location_info): Print the range and column bits for each
2368 ordinary map. Use the range bits to calculate the per-character
2369 offset. Pass the map as a new param to the various calls to
2370 write_digit_row. Eliminate uses of
2371 ORDINARY_MAP_NUMBER_OF_COLUMN_BITS.
2372 * print-tree.c (print_node): Print any source range information.
2373 * rtl-error.c (diagnostic_for_asm): Likewise.
2374 * toplev.c (general_init): Initialize line_table's
2376 * tree-cfg.c (move_block_to_fn): Likewise.
2377 (move_block_to_fn): Likewise.
2378 * tree-inline.c (copy_phis_for_bb): Likewise.
2379 * tree.c (tree_set_block): Likewise.
2380 (get_pure_location): New function.
2381 (set_source_range): New functions.
2382 (set_block): New function.
2383 (set_source_range): New functions.
2384 * tree.h (CAN_HAVE_RANGE_P): New.
2385 (EXPR_LOCATION_RANGE): New.
2386 (EXPR_HAS_RANGE): New.
2387 (get_expr_source_range): New inline function.
2388 (DECL_LOCATION_RANGE): New.
2389 (set_source_range): New decls.
2390 (get_decl_source_range): New inline function.
2392 2015-11-13 Alan Lawrence <alan.lawrence@arm.com>
2394 PR tree-optimization/67682
2395 * tree-vect-slp.c (vect_split_slp_store_group): New.
2396 (vect_analyze_slp_instance): During basic block SLP, recurse on
2397 subgroups if vect_build_slp_tree fails after 1st vector.
2399 2015-11-13 Christian Bruel <christian.bruel@st.com>
2402 * config/arm/arm.c (arm_option_override): Move NEON check...
2403 (arm_option_check_internal): here
2404 (arm_file_start): Move .fpu print...
2405 (arm_declare_function_name): here
2406 (arm_option_print): Dump current fpu name.
2407 * config/arm/arm.opt (arm_fpu_index): Mark Save.
2409 2015-11-13 Segher Boessenkool <segher@kernel.crashing.org>
2410 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2412 * combine.c (subst): Don't substitute or simplify when
2413 handling register-wise widening multiply.
2414 (force_to_mode): Likewise.
2416 2015-11-13 Richard Sandiford <richard.sandiford@arm.com>
2418 PR tree-optimization/68264
2419 * tree-call-cdce.c (gen_one_condition): Update commentary.
2420 (gen_conditions_for_pow_int_base): Invert the sense of the tests
2421 passed to gen_one_condition.
2422 (gen_conditions_for_domain): Likewise. Use unordered comparisons.
2423 (shrink_wrap_one_built_in_call): Invert the sense of the tests,
2424 using EDGE_FALSE_VALUE for edges to the call block and
2425 EDGE_TRUE_VALUE for the others.
2427 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
2429 * config/nvptx/nvptx.c (nvptx_generate_vector_shuffle): Deal with
2432 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
2434 * gimplify.c (oacc_default_clause): Use inform for enclosing scope.
2436 2015-11-13 Tom de Vries <tom@codesourcery.com>
2438 * gen-pass-instances.awk (handle_line): Rename prefix_len var to
2441 2015-11-13 Tom de Vries <tom@codesourcery.com>
2443 * gen-pass-instances.awk (handle_line): Add args_str variable.
2445 2015-11-13 Martin Liska <mliska@suse.cz>
2447 * graphite-poly.c (free_scop): Release scop->drs vector.
2448 * graphite-scop-detection.c (scop_detection::harmful_stmt_in_region):
2450 (try_generate_gimple_bb): Use vNULL as a default initialization
2453 2015-11-13 Martin Liska <mliska@suse.cz>
2456 * ipa-icf.c (sem_item_optimizer::traverse_congruence_split):
2457 Replace array initialization (using a variable post-increment)
2458 that possible triggers multiple unsequenced modifications
2459 with a pair of pushes to a vector.
2461 2015-11-13 Richard Biener <rguenther@suse.de>
2463 PR tree-optimization/68306
2464 * tree-vect-data-refs.c (verify_data_ref_alignment): Move
2465 loop related checks ...
2466 (vect_verify_datarefs_alignment): ... here.
2467 (vect_slp_analyze_and_verify_node_alignment): Compute and
2468 verify alignment of the single DR that it matters.
2469 * tree-vect-stmts.c (vectorizable_store): Add an assert.
2470 (vectorizable_load): Add a comment.
2471 * tree-vect-slp.c (vect_analyze_slp_cost_1): Fix DR used
2472 for determining load cost.
2474 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
2476 * tree-vect-loop.c (vect_determine_vectorization_factor): Check
2477 mix of boolean and integer vectors in a single statement.
2478 * tree-vect-slp.c (vect_mask_constant_operand_p): New.
2479 (vect_get_constant_vectors): Use vect_mask_constant_operand_p to
2480 determine constant type.
2481 * tree-vect-stmts.c (vectorizable_comparison): Provide vectype
2482 for loop invariants.
2484 2015-11-13 Alan Hayward <alan.hayward@arm.com>
2486 PR tree-optimization/66558
2487 * tree-vect-loop.c (is_integer_induction):Add.
2488 (vectorizable_reduction): Add integer induction checks.
2490 2015-11-13 Christophe Lyon <christophe.lyon@linaro.org>
2492 Revert [ARM] Remove neon-testgen.ml and generated tests.
2494 2015-11-12 Christophe Lyon <christophe.lyon@linaro.org>
2496 [ARM] Remove neon-testgen.ml and generated tests.
2498 * config/arm/neon-testgen.ml: Remove.
2500 2015-11-13 Richard Biener <rguenther@suse.de>
2502 * tree-vect-loop.c (vect_analyze_loop_2): Add fatal parameter.
2503 Signal fatal failure if early checks fail.
2504 (vect_analyze_loop): If vect_analyze_loop_2 fails fatally
2505 do not bother testing further vector sizes.
2507 2015-11-13 Uros Bizjak <ubizjak@gmail.com>
2509 * config/i386/predicates.md (misaligned_operand): Return true if
2510 operand is aligned to less than its natural alignmnet.
2512 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
2514 * doc/md.texi (vec_cmp@var{m}@var{n}): New item.
2515 (vec_cmpu@var{m}@var{n}): New item.
2516 (vcond@var{m}@var{n}): Specify comparison is signed.
2517 (vcondu@var{m}@var{n}): New item.
2518 (vcond_mask_@var{m}@var{n}): New item.
2519 (maskload@var{m}@var{n}): New item.
2520 (maskstore@var{m}@var{n}): New item.
2522 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
2524 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
2525 types of stored value and storage are compatible.
2527 2015-11-13 Andris Pavenis <andris.pavenis@iki.fi>
2529 * gcc.c (POST_LINK_SPEC): Define if not already defined.
2530 (LINK_COMMAND_SPEC): Use post_link.
2531 (post_link_spec): New, initialize to POST_LINK_SPEC.
2532 (post_link): Initialize new static spec.
2533 * doc/tm.texi.in (POST_LINK_SPEC): Document.
2534 * doc/tm.texi: Regenerated.
2536 2015-11-13 David Malcolm <dmalcolm@redhat.com>
2539 * Makefile.in (GCC_OBJS): Add spellcheck.o.
2540 (OBJS): Add spellcheck-tree.o.
2541 * gcc.c: Include "spellcheck.h".
2542 (suggest_option): New function.
2543 (driver::handle_unrecognized_options): Call suggest_option to
2544 provide a hint about misspelled options.
2545 * spellcheck.c: Update file comment.
2546 (levenshtein_distance): Convert 4-param implementation from static
2547 to extern scope. Remove note about unit tests from leading
2548 comment for const char * implementation. Move tree
2549 implementation to...
2550 * spellcheck-tree.c: New file.
2551 * spellcheck.h (levenshtein_distance): Add 4-param decl.
2553 2015-11-13 David Malcolm <dmalcolm@redhat.com>
2555 * Makefile.in (OBJS): Add spellcheck.o.
2556 * spellcheck.c: New file.
2557 * spellcheck.h: New file.
2559 2015-11-13 James Bowman <james.bowman@ftdichip.com>
2561 * config/ft32/ft32.md (*sne): New insn pattern.
2563 2015-11-12 Brad Lucier <lucier@math.purdue.edu>
2565 * cprop.c (is_too_expensive): Remove.
2567 (one_cprop_pass): Call gcse_or_cprop_is_too_expensive, not
2569 * gcse.h (gcse_or_cprop_is_too_expensive): Declare.
2570 * gcse.c (is_too_expensive): Rename to ...
2571 (gcse_or_cprop_is_too_expensive): ... this.
2572 Expand warning to add required size of max-gcse-memory.
2573 (one_pre_gcse_pass): Use it.
2574 (one_code_hoisting_pass): Use it.
2575 * params.def (max-gcse-memory): Increase from 50MB to 128MB.
2577 2015-11-12 James Norris <jnorris@codesourcery.com>
2578 Joseph Myers <joseph@codesourcery.com>
2580 * gimple-pretty-print.c (dump_gimple_omp_target): Handle
2581 GF_OMP_TARGET_KIND_OACC_DECLARE.
2582 * gimple.h (enum gf_mask): Add GF_OMP_TARGET_KIND_OACC_DECLARE.
2583 (is_gomple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
2584 * gimplify.c (oacc_declare_returns): New.
2585 (gimplify_bind_expr): Prepend 'exit' stmt to cleanup.
2586 (device_resident_p): New function.
2587 (oacc_default_clause): Handle device_resident clause.
2588 (gimplify_oacc_declare_1, gimplify_oacc_declare): New functions.
2589 (gimplify_expr): Handle OACC_DECLARE.
2590 * omp-builtins.def (BUILT_IN_GOACC_DECLARE): New builtin.
2591 * omp-low.c (expand_omp_target): Handle
2592 GF_OMP_TARGET_KIND_OACC_DECLARE and BUILTIN_GOACC_DECLARE.
2593 (build_omp_regions_1): Handlde GF_OMP_TARGET_KIND_OACC_DECLARE.
2594 (lower_omp_target): Handle GF_OMP_TARGET_KIND_OACC_DECLARE,
2595 GOMP_MAP_DEVICE_RESIDENT and GOMP_MAP_LINK.
2596 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
2597 * tree-pretty-print.c (dump_omp_clause): Handle GOMP_MAP_LINK and
2598 GOMP_MAP_DEVICE_RESIDENT.
2600 2015-11-12 Christophe Lyon <christophe.lyon@linaro.org>
2602 [ARM] Remove neon-testgen.ml and generated tests.
2604 * config/arm/neon-testgen.ml: Remove.
2606 2015-11-12 Jim Wilson <jim.wilson@linaro.org>
2608 * config/aarch64/aarch64-cores.def (qdf24xx): New.
2609 * config/aarch64/aarch64-tune.md: Regenerated.
2610 * config/arm/arm-cores.def (qdf24xx): New.
2611 * config/arm/arm-tables.opt, config/arm/arm-tune.md: Regenerated.
2612 * config/arm/bpabi.h (BE8_LINK_SPEC): Add qdf24xx support.
2613 * doc/invoke.texi (AArch64 Options/-mtune): Add "qdf24xx".
2614 (ARM Options/-mtune): Likewise.
2616 2015-11-12 Martin Liska <mliska@suse.cz>
2618 * config/i386/i386.c (ix86_valid_target_attribute_p):
2619 Finalize options at the of the function.
2620 * gcc.c (driver_get_configure_time_options): Call newly
2621 introduced init_opts_obstack.
2622 * lto-wrapper.c (main): Likewise.
2623 * opts.c (init_opts_obstack): New function.
2624 (init_options_struct): Call newly introduced init_opts_obstack.
2625 * opts.h (init_options_struct): Declare.
2627 2015-11-12 Martin Liska <mliska@suse.cz>
2630 * ipa-icf.c (void sem_item::set_hash): New function.
2631 (sem_function::get_hash): Use renamed m_hash member variable.
2632 (sem_item::update_hash_by_addr_refs): Utilize get_hash.
2633 (sem_item::update_hash_by_local_refs): Likewise.
2634 (sem_variable::get_hash): Use renamed m_hash member variable.
2635 (sem_item_optimizer::update_hash_by_addr_refs): Utilize get_hash.
2636 (sem_item_optimizer::build_hash_based_classes): Utilize set_hash.
2637 (sem_item_optimizer::build_graph): As the hash value of an item
2638 is lazy initialized, force the calculation.
2639 * ipa-icf.h (set_hash): Declare new function and rename hash member
2642 2015-11-12 Richard Biener <rguenther@suse.de>
2644 * tree-vectorizer.h (vect_slp_analyze_data_ref_dependences):
2645 Rename to vect_slp_analyze_instance_dependence.
2646 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
2647 Remove WAR special-case.
2648 (vect_slp_analyze_node_dependences): Instead add more specific
2649 code here, not relying on other instances being vectorized.
2650 (vect_slp_analyze_instance_dependence): Adjust accordingly.
2651 * tree-vect-slp.c (vect_build_slp_tree_1): Remove excessive
2652 vertical space in dump files.
2653 (vect_print_slp_tree): Likewise.
2654 (vect_analyze_slp_instance): Dump a header for the final SLP tree.
2655 (vect_slp_analyze_bb_1): Delay computing relevant stmts and
2656 not vectorized stmts until after dependence analysis removed
2657 instances. Merge alignment and dependence checks.
2658 * tree-vectorizer.c (pass_slp_vectorize::execute): Clear visited
2661 2015-11-12 Evandro Menezes <e.menezes@samsung.com>
2663 * config/aarch64/aarch64-protos.h (tune_params): Add new members
2664 "max_case_values" and "cache_line_size".
2665 * config/aarch64/aarch64.c (aarch64_case_values_threshold): New
2667 (aarch64_override_options_internal): Tune heuristics based on new
2668 members in "tune_params".
2669 (TARGET_CASE_VALUES_THRESHOLD): Define macro.
2671 2015-11-12 Richard Biener <rguenther@suse.de>
2673 PR tree-optimization/68306
2674 * tree-vect-data-refs.c (verify_data_ref_alignment): Remove
2675 relevant and vectorizable checks here.
2676 (vect_verify_datarefs_alignment): Add relevant check here.
2678 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
2680 * gimplify.c (oacc_default_clause): New.
2681 (omp_notice_variable): Call it.
2683 2015-11-12 Ilya Enkovich <enkovich.gnu@gmail.com>
2685 PR tree-optimization/68305
2686 * tree-vect-slp.c (vect_get_constant_vectors): Support
2687 COND_EXPR with SSA_NAME as a condition.
2689 2015-11-12 Eric Botcazou <ebotcazou@adacore.com>
2691 * config/visium/visium-protos.h (notice_update_cc): Delete.
2692 (print_operand): Likewise.
2693 (print_operand_address): Likewise.
2695 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
2697 * config/alpha/alpha.h (FUNCTION_VALUE, LIBCALL_VALUE,
2698 FUNCTION_VALUE_REGNO_P): Remove.
2699 * config/alpha/alpha-protos.h (function_value): Remove.
2700 * config/alpha/alpha.c (function_value): Rename to...
2701 (alpha_function_value_1): ... this. Make static.
2702 (alpha_function_value, alpha_libcall_value,
2703 alpha_function_value_regno_p): New functions.
2704 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
2705 TARGET_FUNCTION_VALUE_REGNO_P): Define.
2707 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
2709 * config/alpha/alpha.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
2710 * config/alpha/alpha.c (alpha_memory_latency): Make static.
2711 (alpha_register_move_cost, alpha_memory_move_cost): New functions.
2712 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
2714 2015-11-12 Eric Botcazou <ebotcazou@adacore.com>
2717 * config/i386/i386.c (ix86_adjust_stack_and_probe): Remove obsolete
2718 assertion on the CFA register.
2720 2015-11-12 Ilya Enkovich <enkovich.gnu@gmail.com>
2722 * expr.c (do_store_flag): Expand vector comparison as
2723 VEC_COND_EXPR if vector comparison is not supported by target.
2725 2015-11-12 Renlin Li <renlin.li@arm.com>
2727 * config/arm/arm.md (addsi3_compare_op2): Make the order of
2728 assembly pattern consistent with constraint order.
2730 2015-11-12 Tom de Vries <tom@codesourcery.com>
2732 * gen-pass-instances.awk (handle_line): Simplify match regexp.
2734 2015-11-12 Tom de Vries <tom@codesourcery.com>
2736 * gen-pass-instances.awk (handle_line): Simplify init of
2739 2015-11-12 Tom de Vries <tom@codesourcery.com>
2741 * gen-pass-instances.awk (handle_line): Rename var where to
2744 2015-11-12 Claudiu Zissulescu <claziss@synopsys.com>
2746 * config/arc/arc.c (gen_compare_reg): Swap operands also when we
2747 do not expand to rtl.
2749 2015-11-12 Richard Biener <rguenther@suse.de>
2751 PR tree-optimization/58497
2752 * tree-vect-generic.c: Include gimplify.h.
2753 (tree_vec_extract): Lookup constant/constructor DEFs.
2754 (do_cond): Unshare cond.
2756 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
2758 * config/i386/i386.c (ix86_legitimate_combined_insn): Reject
2759 combined insn if the alignment of vector mode memory operand
2760 is less than ssememalign.
2762 2015-11-12 Tom de Vries <tom@codesourcery.com>
2764 * gen-pass-instances.awk (handle_line): Print parentheses and
2765 pass_name explicitly.
2767 2015-11-12 Tom de Vries <tom@codesourcery.com>
2769 * gen-pass-instances.awk (handle_line): Add pass_num, prefix
2772 2015-11-12 Tom de Vries <tom@codesourcery.com>
2774 * gen-pass-instances.awk (handle_line): Add comments.
2776 2015-11-12 Tom de Vries <tom@codesourcery.com>
2778 * gen-pass-instances.awk (handle_line): Rename len_of_end to
2781 2015-11-12 Tom de Vries <tom@codesourcery.com>
2783 * gen-pass-instances.awk (handle_line): Add len_of_call variable.
2785 2015-11-12 Tom de Vries <tom@codesourcery.com>
2787 * gen-pass-instances.awk (handle_line): Restructure using early-out.
2789 2015-11-12 Tom de Vries <tom@codesourcery.com>
2791 * gen-pass-instances.awk (handle_line): Unify semicolon use.
2793 2015-11-12 Tom de Vries <tom@codesourcery.com>
2795 * gen-pass-instances.awk (handle_line): Remove unused var line_length.
2797 2015-11-12 Tom de Vries <tom@codesourcery.com>
2799 * gen-pass-instances.awk: Add emacs indent setting.
2801 2015-11-12 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2803 * fold-const.c (fold_binary_loc) : Move Convert A/B/C to A/(B*C)
2805 Move Convert A/(B/C) to (A/B)*C to match.pd.
2806 Move Convert C1/(X*C2) into (C1/C2)/X to match.pd.
2807 Move Optimize (X & (-A)) / A where A is a power of 2, to
2808 X >> log2(A) to match.pd.
2810 * match.pd (rdiv (rdiv:s @0 @1) @2): New simplifier.
2811 (rdiv @0 (rdiv:s @1 @2)): New simplifier.
2812 (div (convert? (bit_and @0 INTEGER_CST@1)) INTEGER_CST@2):
2814 (rdiv REAL_CST@0 (mult @1 REAL_CST@2)): New simplifier.
2816 2015-11-12 Charles Baylis <charles.baylis@linaro.org>
2818 * config/arm/neon.md: (neon_vld2_lane<mode>): Remove unused max
2820 (neon_vst2_lane<mode>): Likewise.
2821 (neon_vld3_lane<mode>): Likewise.
2822 (neon_vst3_lane<mode>): Likewise.
2823 (neon_vld4_lane<mode>): Likewise.
2824 (neon_vst4_lane<mode>): Likewise.
2826 2015-11-11 Aditya Kumar <aditya.k7@samsung.com>
2827 Sebastian Pop <s.pop@samsung.com>
2829 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
2830 New member codegen_error
2831 (translate_isl_ast_for_loop): Remove call to single_succ_edge and
2833 (translate_isl_ast_node_user): Early return in case of error.
2834 (translate_isl_ast_to_gimple::translate_isl_ast): Same.
2835 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): New.
2836 (add_parameters_to_ivs_params): Remove macro.
2837 (graphite_regenerate_ast_isl): Add if_region pointer to region.
2838 * graphite-poly.c (new_poly_dr): Remove macro.
2840 (new_gimple_poly_bb): Same.
2841 (free_gimple_poly_bb): Same.
2842 (print_scop_params): Same.
2843 * graphite-poly.h (struct poly_dr): Same.
2844 (struct poly_bb): Add new_bb.
2845 (gbb_from_bb): Remove dead code.
2846 (pbb_from_bb): Same.
2847 * graphite-scop-detection.c (parameter_index_in_region_1): Same.
2848 (parameter_index_in_region): Same.
2849 (find_scop_parameters): Same.
2850 (build_cross_bb_scalars_def): New.
2851 (build_cross_bb_scalars_use): New.
2852 (graphite_find_cross_bb_scalar_vars): New
2853 (try_generate_gimple_bb): Reads and Writes.
2854 (build_alias_set): Move.
2855 (gather_bbs::before_dom_children): Gather bbs visited.
2856 (build_scops): call build_alias_set.
2857 * graphite-sese-to-poly.c (phi_arg_in_outermost_loop): Delete.
2858 (remove_simple_copy_phi): Delete.
2859 (remove_invariant_phi): Delete.
2860 (simple_copy_phi_p): Delete.
2861 (reduction_phi_p): Delete.
2862 (isl_id_for_dr): Remove unused param.
2863 (parameter_index_in_region_1): Remove macro usage.
2864 (set_scop_parameter_dim): Same.
2865 (add_param_constraints): Same.
2866 (add_conditions_to_constraints): Same
2867 (build_scop_iteration_domain): Same.
2868 (pdr_add_alias_set): Comment.
2869 (add_scalar_version_numbers): New.
2870 (build_poly_dr): ISL id.
2871 (build_scop_drs): Move.
2872 (build_poly_sr_1): Same.
2873 (insert_stmts): Remove.
2874 (build_poly_sr): New.
2875 (new_pbb_from_pbb): Delete.
2876 (insert_out_of_ssa_copy_on_edge): Delete.
2877 (create_zero_dim_array): Delete.
2878 (scalar_close_phi_node_p): Delete.
2879 (propagate_expr_outside_region): Delete.
2880 (rewrite_close_phi_out_of_ssa): Delete.
2881 (rewrite_phi_out_of_ssa): Delete.
2882 (rewrite_degenerate_phi): Delete.
2883 (rewrite_reductions_out_of_ssa): Delete.
2884 (rewrite_cross_bb_scalar_dependence): Delete.
2885 (handle_scalar_deps_crossing_scop_limits):
2886 (rewrite_cross_bb_scalar_deps): Delete.
2887 (build_poly_scop): Remove calls to out-of-ssa functions.
2888 * graphite.c (graphite_transform_loops): Early return in case of
2890 * sese.c (debug_rename_map_1): Delete.
2891 (debug_rename_map): Delete.
2892 (sese_record_loop): Remove macro.
2893 (build_sese_loop_nests): Same.
2894 (new_sese_info): Same.
2895 (free_sese_info): Same.
2896 (sese_insert_phis_for_liveouts):
2897 (is_loop_closed_ssa_use): New.
2898 (number_of_phi_nodes): New.
2899 (bb_contains_loop_close_phi_nodes): New.
2900 (bb_contains_loop_phi_nodes): New.
2901 (phi_uses_name): New.
2903 (get_rename): Add old_bb and loop_phi for more precise matching of
2905 (set_rename): Pass region.
2906 (later_of_the_two): New.
2907 (gsi_insert_earliest): New.
2908 (collect_all_ssa_names): New.
2909 (substitute_ssa_name): New.
2910 (rename_all_uses): New.
2911 (get_rename_from_scev): New.
2912 (rename_uses): Pass old_bb for more precise matching of exprs.
2913 (get_def_bb_for_const): New.
2914 (get_new_name): New.
2917 (copy_loop_phi_args): New.
2918 (copy_loop_phi_nodes): New.
2919 (get_loop_init_value): New.
2920 (find_init_value): New.
2921 (find_init_value_close_phi): New.
2922 (copy_loop_close_phi_args): New.
2923 (copy_loop_close_phi_nodes): New.
2924 (add_phi_arg_for_new_expr): New.
2925 (copy_cond_phi_args): New.
2926 (copy_cond_phi_nodes): New.
2927 (copy_phi_nodes): New.
2928 (should_copy_to_new_region): New.
2929 (set_rename_for_each_def): New.
2930 (graphite_copy_stmts_from_block): Early return in case of error.
2931 (copy_bb_and_scalar_dependences): Same.
2932 * sese.h (vec_find): New.
2933 (SESE_PARAMS): Delete.
2934 (SESE_LOOPS): Delete.
2935 (SESE_LOOP_NEST): Delete.
2936 (sese_contains_loop): Remove macro usage.
2937 (sese_nb_params): Same.
2938 (struct gimple_poly_bb): Added read_scalar_refs, write_scalar_refs.
2940 2015-11-11 Abderrazek Zaafrani <a.zaafrani@samsung.com>
2942 * graphite-sese-to-poly.c (build_scop_original_schedule): Call
2943 isl_union_map_add_map on every pbb->schedule.
2945 2015-11-11 Tom de Vries <tom@codesourcery.com>
2947 * tree-parloops.c (create_parallel_loop): Return void.
2949 2015-11-11 Tom de Vries <tom@codesourcery.com>
2951 * tree-parloops.c (transform_to_exit_first_loop_alt): Insert new exit
2952 block only when needed.
2954 2015-11-11 Uros Bizjak <ubizjak@gmail.com>
2956 * config/alpha/alpha-protos.h (print_operand): Remove.
2957 (print_operand_address): Remove.
2958 * config/alpha/alpha.h (PRINT_OPERAND): Remove.
2959 (PRINT_OPERAND_ADDRESS): Remove.
2960 (PRINT_OPERAND_PUNCT_VALID_P): Remove.
2961 * config/alpha/alpha.c (TARGET_PRINT_OPERAND): New hook define.
2962 (TARGET_PRINT_OPERAND_ADDRESS): New hook define.
2963 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): New hook define.
2964 (print_operand_address): Rename to...
2965 (alpha_print_operand_address): ...this and make static.
2966 (print_operand): Rename to...
2967 (alpha_print_operand): ...this and make static.
2968 (alpha_print_operand_punct_valid_p): New static function.
2970 2015-11-11 Richard Biener <rguenther@suse.de>
2972 * tree-vectorizer.h (vect_slp_analyze_and_verify_instance_alignment):
2974 (vect_analyze_data_refs_alignment): Make loop vect specific.
2975 (vect_verify_datarefs_alignment): Likewise.
2976 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependences):
2977 Add missing continue.
2978 (vect_compute_data_ref_alignment): Export.
2979 (vect_compute_data_refs_alignment): Merge into...
2980 (vect_analyze_data_refs_alignment): ... this.
2981 (verify_data_ref_alignment): Split out from ...
2982 (vect_verify_datarefs_alignment): ... here.
2983 (vect_slp_analyze_and_verify_node_alignment): New function.
2984 (vect_slp_analyze_and_verify_instance_alignment): Likewise.
2985 * tree-vect-slp.c (vect_supported_load_permutation_p): Remove
2986 misplaced checks on alignment.
2987 (vect_slp_analyze_bb_1): Add fatal output parameter. Do
2988 alignment analysis after SLP discovery and do it per instance.
2989 (vect_slp_bb): When vect_slp_analyze_bb_1 fatally failed do not
2990 bother to re-try using different vector sizes.
2992 2015-11-11 Nathan Sidwell <nathan@codesourcery.com>
2993 Cesar Philippidis <cesar@codesourcery.com>
2995 * gimplify.c (enum omp_region_type): Add ORT_ACC,
2996 ORT_ACC_DATA, ORT_ACC_PARALLEL, ORT_ACC_KERNELS. Adjust ORT_NONE.
2997 (gimple_add_tmp_var): Add ORT_ACC checks.
2998 (gimplify_var_or_parm_decl): Likewise.
2999 (omp_firstprivatize_variable): Likewise. Use ORT_TARGET_DATA as a mask.
3000 (omp_add_variable): Look in outer contexts for openacc and allow
3001 reductions with other sharing. Add ORT_ACC and ORT_TARGET_DATA checks.
3002 (omp_notice_variable, omp_is_private, omp_check_private): Add
3004 (gimplify_scan_omp_clauses: Treat ORT_ACC as ORT_WORKSHARE.
3005 Permit private openacc reductions.
3006 (gimplify_oacc_cache): Specify ORT_ACC.
3007 (gimplify_omp_workshare): Adjust OpenACC region types.
3008 (gimplify_omp_target_update): Likewise.
3009 * omp-low.c (scan_sharing_clauses): Remove Openacc firstprivate sorry.
3010 (lower-rec_input_clauses): Don't handle openacc firstprivate
3012 (lower_omp_target): Emit initializers for openacc firstprivate vars.
3014 2015-11-11 Eric Botcazou <ebotcazou@adacore.com>
3017 * ira.c (ira_setup_eliminable_regset): Do not necessarily create the
3018 frame pointer for stack checking if non-call exceptions aren't used.
3019 * config/i386/i386.c (ix86_finalize_stack_realign_flags): Likewise.
3021 2015-11-11 Segher Boessenkool <segher@kernel.crashing.org>
3023 * simplify-rtx.c (simplify_truncation): Simplify TRUNCATE of AND of
3026 2015-11-11 Martin Liska <mliska@suse.cz>
3027 Richard Biener <rguenther@suse.de>
3029 PR rtl-optimization/68287
3030 * lra-lives.c (lra_create_live_ranges_1): Reserve the right
3033 2015-11-11 Simon Dardis <simon.dardis@imgtec.com>
3035 * config/mips/mips.c (mips_breakable_sequence_p): New function.
3036 (mips_break_sequence): New function.
3037 (mips_reorg_process_insns): Use them. Use compact branches in selected
3040 2015-11-11 Alan Lawrence <alan.lawrence@arm.com>
3042 * fold-const.c (get_array_ctor_element_at_index): Fix whitespace, typo.
3044 2015-11-11 Jiong Wang <jiong.wang@arm.com>
3045 Jim Wilson <wilson@gcc.gnu.org>
3048 * config/arm/arm.md (neon_vector_mem_operand): Return FALSE if strict
3049 be true and eliminable registers mentioned.
3051 2015-11-11 Claudiu Zissulescu <claziss@synopsys.com>
3053 * common/config/arc/arc-common.c (arc_handle_option): Handle ARCv2
3055 * config/arc/arc-opts.h: Add ARCv2 CPUs.
3056 * config/arc/arc-protos.h (arc_secondary_reload_conv): Prototype.
3057 * config/arc/arc.c (arc_secondary_reload): Handle subreg (reg)
3058 situation, and store instructions with large offsets.
3059 (arc_secondary_reload_conv): New function.
3060 (arc_init): Add ARCv2 options.
3061 (arc_conditional_register_usage): Select the proper register usage
3062 for ARCv2 processors.
3063 (arc_handle_interrupt_attribute): ILINK2 is only valid for ARCv1
3065 (arc_compute_function_type): Likewise.
3066 (arc_print_operand): Handle new ARCv2 punctuation characters.
3067 (arc_return_in_memory): ARCv2 ABI returns in registers up to 16 bytes.
3068 (workaround_arc_anomaly, arc_asm_insn_p, arc_loop_hazard): New
3070 (arc_reorg, arc_hazard): Use it.
3071 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __HS__ and __EM__.
3072 (ASM_SPEC): Add ARCv2 options.
3073 (TARGET_NORM): ARC HS has norm instructions by default.
3074 (TARGET_OPTFPE): Use optimized floating point emulation for ARC HS.
3075 (TARGET_AT_DBR_CONDEXEC): Only for ARC600 family.
3076 (TARGET_EM, TARGET_HS, TARGET_V2, TARGET_MPYW, TARGET_MULTI): Define.
3077 (SIGNED_INT16, TARGET_MPY, TARGET_ARC700_MPY, TARGET_ANY_MPY):
3079 (TARGET_ARC600_FAMILY, TARGET_ARCOMPACT_FAMILY): Likewise.
3080 (TARGET_LP_WR_INTERLOCK): Likewise.
3082 (commutative_binary_mult_comparison_result_used, movsicc_insn)
3083 (mulsi3, mulsi3_600_lib, mulsidi3, mulsidi3_700, mulsi3_highpart)
3084 (umulsi3_highpart_i, umulsi3_highpart_int, umulsi3_highpart)
3085 (umulsidi3, umulsidi3_700, cstoresi4, simple_return, p_return_i):
3087 (mulhisi3, mulhisi3_imm, mulhisi3_reg, umulhisi3, umulhisi3_imm)
3088 (umulhisi3_reg, umulhisi3_reg, mulsi3_v2, nopv, bswapsi2)
3089 (prefetch, divsi3, udivsi3 modsi3, umodsi3, arcset, arcsetltu)
3090 (arcsetgeu, arcsethi, arcsetls, reload_*_load, reload_*_store)
3091 (extzvsi): New pattern.
3092 * config/arc/arc.opt: New ARCv2 options.
3093 * config/arc/arcEM.md: New file.
3094 * config/arc/arcHS.md: Likewise.
3095 * config/arc/constraints.md (C3p): New constraint, accepts 1 and 2
3097 (Cm2): A signed 9-bit integer constant constraint.
3098 (C62): An unsigned 6-bit integer constant constraint.
3099 (C16): A signed 16-bit integer constant constraint.
3100 * config/arc/predicates.md (mult_operator): Add ARCv2 processort.
3101 (short_const_int_operand): New predicate.
3102 * config/arc/t-arc-newlib: Add ARCv2 multilib options.
3103 * doc/invoke.texi: Add documentation for -mcpu=<archs/arcem>
3104 -mcode-density and -mdiv-rem.
3106 2015-11-11 Julia Koval <julia.koval@intel.com>
3108 * config/i386/i386.c (m_SKYLAKE_AVX512): Fix typo.
3110 2015-11-11 Julia Koval <julia.koval@intel.com>
3112 * config/i386/i386.c: Handle "skylake" and "skylake-avx512".
3114 2015-11-11 Martin Liska <mliska@suse.cz>
3116 * gimple-ssa-strength-reduction.c (create_phi_basis):
3118 * passes.c (release_dump_file_name): New function.
3119 (pass_init_dump_file): Used from this function.
3120 (pass_fini_dump_file): Likewise.
3121 * tree-sra.c (convert_callers_for_node): Use xstrdup_for_dump.
3122 * var-tracking.c (vt_initialize): Use pool_allocator.
3124 2015-11-11 Richard Biener <rguenth@gcc.gnu.org>
3125 Jiong Wang <jiong.wang@arm.com>
3127 PR tree-optimization/68234
3128 * tree-vrp.c (vrp_visit_phi_node): Extend SCEV check to those loop PHI
3129 node which estimiated to be VR_VARYING initially.
3131 2015-11-11 Robert Suchanek <robert.suchanek@imgtec.com>
3133 * regname.c (scan_rtx_reg): Check the matching number of consecutive
3134 registers when tying chains.
3135 (build_def_use): Move terminated_this_insn earlier in the function.
3137 2015-11-10 Mike Frysinger <vapier@gentoo.org>
3139 * configure.ac: Use = with test and not ==.
3140 * configure: Regenerated.
3142 2015-11-11 David Edelsohn <dje.gcc@gmail.com>
3144 * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Add cpu and
3145 machine asserts. Update defines for 64 bit.
3147 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
3150 * config/arm/neon.md (neon_vld1_lane<mode>): Remove error for invalid
3152 (neon_vst1_lane<mode>): Likewise.
3153 (neon_vld2_lane<mode>): Likewise.
3154 (neon_vst2_lane<mode>): Likewise.
3155 (neon_vld3_lane<mode>): Likewise.
3156 (neon_vst3_lane<mode>): Likewise.
3157 (neon_vld4_lane<mode>): Likewise.
3158 (neon_vst4_lane<mode>): Likewise.
3160 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
3163 * config/arm/arm-builtins.c: (arm_load1_qualifiers) Use
3164 qualifier_struct_load_store_lane_index.
3165 (arm_storestruct_lane_qualifiers) Likewise.
3166 * config/arm/neon.md: (neon_vld1_lane<mode>) Reverse lane numbers for
3168 (neon_vst1_lane<mode>) Likewise.
3169 (neon_vld2_lane<mode>) Likewise.
3170 (neon_vst2_lane<mode>) Likewise.
3171 (neon_vld3_lane<mode>) Likewise.
3172 (neon_vst3_lane<mode>) Likewise.
3173 (neon_vld4_lane<mode>) Likewise.
3174 (neon_vst4_lane<mode>) Likewise.
3176 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
3179 * config/arm/arm-builtins.c (enum arm_type_qualifiers): New enumerator
3180 qualifier_struct_load_store_lane_index.
3181 (builtin_arg): New enumerator NEON_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
3182 (arm_expand_neon_args): New parameter. Remove ellipsis. Handle NEON
3183 argument qualifiers.
3184 (arm_expand_neon_builtin): Handle new NEON argument qualifier.
3185 * config/arm/arm.h (NEON_ENDIAN_LANE_N): New macro.
3187 2015-11-10 Nathan Sidwell <nathan@codesourcery.com>
3189 * config/nvptx/nvptx.opt (moptimize): New flag.
3190 * config/nvptx/nvptx.c (nvptx_option_override): Set nvptx_optimize
3192 (nvptx_optimize_inner): New.
3193 (nvptx_process_pars): Call it when optimizing.
3194 * doc/invoke.texi (Nvidia PTX Options): Document -moptimize.
3196 2015-11-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3198 * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
3199 Remove redundant code.
3201 2015-11-10 Jeff Law <law@redhat.com>
3203 * config/ft32/ft32.c (ft32_print_operand): Supply mode to
3204 call to output_address.
3205 * config/moxie/moxie.c (moxie_print_operand_address): Similarly.
3206 Add unnamed machine_mode argument.
3208 2015-11-10 Michael Meissner <meissner@linux.vnet.ibm.com>
3210 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add power9 to hosts that
3213 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
3215 * config/i386/i386.md (*movabs<mode>_1): Add explicit
3216 size directives for -masm=intel.
3217 (*movabs<mode>_2): Ditto.
3219 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
3221 * config/i386/i386.c (ix86_print_operand): Remove dead code that
3222 tried to avoid (%rip) for call operands.
3224 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
3226 * config/i386/i386.c (ix86_print_operand_address_as): Add no_rip
3227 argument. Do not use RIP relative addressing when no_rip is set.
3228 (ix86_print_operand): Update call to ix86_print_operand_address_as.
3229 (ix86_print_operand_address): Ditto.
3230 * config/i386/i386.md (*movabs<mode>_1): Use %P modifier for
3231 absolute movabs operand 0. Add square braces for -masm=intel.
3232 (*movabs<mode>_2): Ditto for operand 1.
3234 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3236 * config/arm/arm.c (arm_new_rtx_costs, FIX case): Handle
3237 combine_vcvtf2i pattern.
3239 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3241 * config/arm/arm.c (neon_valid_immediate): Remove integer
3242 CONST_DOUBLE handling. It should never occur.
3244 2015-11-10 Matthew Wahab <matthew.wahab@arm.com>
3246 * config/aarch64/atomics.md (unspecv): Move to iterators.md.
3247 (ATOMIC_LDOP): Likewise.
3248 (atomic_ldop): Likewise.
3249 * config/aarch64/iterators.md (unspecv): Moved from atomics.md.
3250 (ATOMIC_LDOP): Likewise.
3251 (atomic_ldop): Likewise.
3253 2015-11-10 Martin Liska <mliska@suse.cz>
3255 * alloc-pool.h (allocate_raw): New function.
3256 (operator new (size_t, object_allocator<T> &a)): Use the
3257 function instead of object_allocator::allocate).
3259 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
3261 * config/i386/sse.md (HALFMASKMODE): New attribute.
3262 (DOUBLEMASKMODE): New attribute.
3263 (vec_pack_trunc_qi): New.
3264 (vec_pack_trunc_<mode>): New.
3265 (vec_unpacks_lo_hi): New.
3266 (vec_unpacks_lo_si): New.
3267 (vec_unpacks_lo_di): New.
3268 (vec_unpacks_hi_hi): New.
3269 (vec_unpacks_hi_<mode>): New.
3271 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
3273 * optabs.c (expand_binop_directly): Allow scalar mode for
3274 vec_pack_trunc_optab.
3275 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
3276 boolean vector producers from pattern sequence when computing VF.
3277 * tree-vect-patterns.c (vect_vect_recog_func_ptrs) Add
3278 vect_recog_mask_conversion_pattern.
3279 (search_type_for_mask): Choose the smallest
3280 type if different size types are mixed.
3281 (build_mask_conversion): New.
3282 (vect_recog_mask_conversion_pattern): New.
3283 (vect_pattern_recog_1): Allow scalar mode for boolean vectype.
3284 * tree-vect-stmts.c (vectorizable_mask_load_store): Support masked
3286 (vectorizable_conversion): Support boolean vectors.
3287 (free_stmt_vec_info): Allow patterns for statements with no lhs.
3288 * tree-vectorizer.h (NUM_PATTERNS): Increase to 14.
3290 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
3292 * config/i386/i386-protos.h (ix86_expand_sse_movcc): New.
3293 * config/i386/i386.c (ix86_expand_sse_movcc): Make public.
3294 Cast mask to FP mode if required.
3295 * config/i386/sse.md (vcond_mask_<mode><avx512fmaskmodelower>): New.
3296 (vcond_mask_<mode><avx512fmaskmodelower>): New.
3297 (vcond_mask_<mode><sseintvecmodelower>): New.
3298 (vcond_mask_<mode><sseintvecmodelower>): New.
3299 (vcond_mask_v2div2di): New.
3300 (vcond_mask_<mode><sseintvecmodelower>): New.
3301 (vcond_mask_<mode><sseintvecmodelower>): New.
3303 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
3305 * optabs-query.h (get_vcond_mask_icode): New.
3306 * optabs-tree.c (expand_vec_cond_expr_p): Use
3307 get_vcond_mask_icode for VEC_COND_EXPR with mask.
3308 * optabs.c (expand_vec_cond_mask_expr): New.
3309 (expand_vec_cond_expr): Use get_vcond_mask_icode when possible.
3310 * optabs.def (vcond_mask_optab): New.
3311 * tree-vect-patterns.c (vect_recog_bool_pattern): Don't
3312 generate redundant comparison for COND_EXPR.
3313 * tree-vect-stmts.c (vect_is_simple_cond): Allow SSA_NAME
3315 (vectorizable_condition): Likewise.
3316 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow
3317 cond_exp with no embedded comparison.
3318 (vect_build_slp_tree_1): Likewise.
3320 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
3322 * config/i386/sse.md (maskload<mode>): Rename to ...
3323 (maskload<mode><sseintvecmodelower>): ... this.
3324 (maskstore<mode>): Rename to ...
3325 (maskstore<mode><sseintvecmodelower>): ... this.
3326 (maskload<mode><avx512fmaskmodelower>): New.
3327 (maskstore<mode><avx512fmaskmodelower>): New.
3329 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
3331 * internal-fn.c (expand_MASK_LOAD): Adjust to maskload optab changes.
3332 (expand_MASK_STORE): Adjust to maskstore optab changes.
3333 * optabs-query.c (can_vec_mask_load_store_p): Add MASK_MODE arg.
3334 Adjust to maskload, maskstore optab changes.
3335 * optabs-query.h (can_vec_mask_load_store_p): Add MASK_MODE arg.
3336 * optabs.def (maskload_optab): Transform into convert optab.
3337 (maskstore_optab): Likewise.
3338 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Adjust to
3339 can_vec_mask_load_store_p signature change.
3340 (predicate_mem_writes): Use boolean mask.
3341 * tree-vect-stmts.c (vectorizable_mask_load_store): Adjust to
3342 can_vec_mask_load_store_p signature change. Allow invariant masks.
3343 (vectorizable_operation): Ignore type precision for boolean vectors.
3345 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
3347 * expr.c (do_store_flag): Use expand_vec_cmp_expr for mask results.
3348 (const_vector_mask_from_tree): New.
3349 (const_vector_from_tree): Use const_vector_mask_from_tree
3350 for boolean vectors.
3351 * optabs-query.h (get_vec_cmp_icode): New.
3352 * optabs-tree.c (expand_vec_cmp_expr_p): New.
3353 * optabs-tree.h (expand_vec_cmp_expr_p): New.
3354 * optabs.c (vector_compare_rtx): Add OPNO arg.
3355 (expand_vec_cond_expr): Adjust to vector_compare_rtx change.
3356 (expand_vec_cmp_expr): New.
3357 * optabs.def (vec_cmp_optab): New.
3358 (vec_cmpu_optab): New.
3359 * optabs.h (expand_vec_cmp_expr): New.
3360 * tree-vect-generic.c (expand_vector_comparison): Add vector
3361 comparison optabs check.
3362 * tree-vect-loop.c (vect_determine_vectorization_factor): Ignore mask
3363 operations for VF. Add mask type computation.
3364 * tree-vect-stmts.c (get_mask_type_for_scalar_type): New.
3365 (vectorizable_comparison): New.
3366 (vect_analyze_stmt): Add vectorizable_comparison.
3367 (vect_transform_stmt): Likewise.
3368 (vect_init_vector): Support boolean vector invariants.
3369 (vect_get_vec_def_for_operand): Add VECTYPE arg.
3370 (vectorizable_condition): Directly provide vectype for invariants
3372 * tree-vectorizer.h (get_mask_type_for_scalar_type): New.
3373 (enum vect_var_kind): Add vect_mask_var.
3374 (enum stmt_vec_info_type): Add comparison_vec_info_type.
3375 (vectorizable_comparison): New.
3376 (vect_get_vec_def_for_operand): Add VECTYPE arg.
3377 * tree-vect-data-refs.c (vect_get_new_vect_var): Support vect_mask_var.
3378 (vect_create_destination_var): Likewise.
3379 * tree-vect-patterns.c (check_bool_pattern): Check fails
3380 if we can vectorize comparison directly.
3381 (search_type_for_mask): New.
3382 (vect_recog_bool_pattern): Support cases when bool pattern check fails.
3383 * tree-vect-slp.c (vect_build_slp_tree_1): Allow
3384 comparison statements.
3385 (vect_get_constant_vectors): Support boolean vector constants.
3386 * config/i386/i386-protos.h (ix86_expand_mask_vec_cmp): New.
3387 (ix86_expand_int_vec_cmp): New.
3388 (ix86_expand_fp_vec_cmp): New.
3389 * config/i386/i386.c (ix86_expand_sse_cmp): Allow NULL for
3390 op_true and op_false.
3391 (ix86_int_cmp_code_to_pcmp_immediate): New.
3392 (ix86_fp_cmp_code_to_pcmp_immediate): New.
3393 (ix86_cmp_code_to_pcmp_immediate): New.
3394 (ix86_expand_mask_vec_cmp): New.
3395 (ix86_expand_fp_vec_cmp): New.
3396 (ix86_expand_int_sse_cmp): New.
3397 (ix86_expand_int_vcond): Use ix86_expand_int_sse_cmp.
3398 (ix86_expand_int_vec_cmp): New.
3399 (ix86_get_mask_mode): New.
3400 (TARGET_VECTORIZE_GET_MASK_MODE): New.
3401 * config/i386/sse.md (avx512fmaskmodelower): New.
3402 (vec_cmp<mode><avx512fmaskmodelower>): New.
3403 (vec_cmp<mode><sseintvecmodelower>): New.
3404 (vec_cmpv2div2di): New.
3405 (vec_cmpu<mode><avx512fmaskmodelower>): New.
3406 (vec_cmpu<mode><sseintvecmodelower>): New.
3407 (vec_cmpuv2div2di): New.
3409 2015-11-10 Richard Biener <rguenther@suse.de>
3411 PR tree-optimization/68240
3412 * tree-ssa-sccvn.c (cond_stmts_equal_p): Handle commutative compares
3414 (visit_phi): For PHIs with just a single executable edge
3415 take its value directly.
3416 (expressions_equal_p): Handle VN_TOP properly.
3418 2015-11-10 Richard Biener <rguenther@suse.de>
3420 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
3421 Handle memory using/clobbering stmts without a STMT_VINFO_DATA_REF
3424 2015-11-10 Richard Biener <rguenther@suse.de>
3426 PR tree-optimization/56118
3427 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Make equal
3428 cost favor vectorized version.
3430 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3432 * config/aarch64/aarch64.md (<neg_not_op><mode>cc): New define_expand.
3433 * config/aarch64/iterators.md (NEG_NOT): New code iterator.
3434 (neg_not_op): New code attribute.
3436 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3438 * ifcvt.c (noce_try_inverse_constants): New function.
3439 (noce_process_if_block): Call it.
3440 * optabs.h (emit_conditional_neg_or_complement): Declare prototype.
3441 * optabs.def (negcc_optab, notcc_optab): Declare.
3442 * optabs.c (emit_conditional_neg_or_complement): New function.
3443 * doc/tm.texi (Standard Names): Document negcc, notcc names.
3445 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3447 PR rtl-optimization/68236
3448 * haifa-sched.c (autopref_multipass_dfa_lookahead_guard): Return 0
3449 if insn_queue doesn't exist.
3450 (haifa_sched_finish): Reset insn_queue to NULL.
3452 2015-11-10 Robert Suchanek <robert.suchanek@imgtec.com>
3454 * regrename.c (create_new_chain): Initialize renamed and tied_chain.
3455 (build_def_use): Initialize terminated_this_insn.
3456 (find_best_rename_reg): Pick and check register from the tied chain.
3457 (regrename_do_replace): Mark head as renamed.
3458 (struct du_head *terminated_this_insn). New static variable.
3459 (scan_rtx_reg): Tie chains in move insns. Set terminated_this_insn.
3460 * regrename.h (struct du_head): Add tied_chain, renamed members.
3462 2015-11-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3465 * config/aarch64/aarch64.c (aarch64_use_constant_blocks_p):
3468 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
3471 * config/sparc/sparc.c (sparc_function_value_1): In 32-bit mode, do
3472 not promote the mode for aggregate types.
3474 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
3476 * omp-low.h (replace_oacc_fn_attrib, build_oacc_routine_dims): Declare.
3477 * omp-low.c (build_oacc_routine_dims): New.
3479 2015-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
3481 * config/rs6000/constraints.md (wF constraint): New constraints
3482 for power9/toc fusion.
3483 (wG constraint): Likewise.
3485 * config/rs6000/predicates.md (u6bit_cint_operand): New
3486 predicate, recognize 0..63.
3487 (upper16_cint_operand): New predicate for power9 and toc fusion.
3488 (fpr_reg_operand): Likewise.
3489 (toc_fusion_or_p9_reg_operand): Likewise.
3490 (toc_fusion_mem_raw): Likewise.
3491 (toc_fusion_mem_wrapped): Likewise.
3492 (fusion_gpr_addis): If power9 fusion, allow fusion for a larger
3494 (fusion_gpr_mem_combo): Delete, use fusion_addis_mem_combo_load
3496 (fusion_addis_mem_combo_load): Add support for power9 fusion of
3497 floating point loads, floating point stores, and gpr stores.
3498 (fusion_addis_mem_combo_store): Likewise.
3499 (fusion_offsettable_mem_operand): Likewise.
3501 * config/rs6000/rs6000-protos.h (emit_fusion_addis): Add declarations.
3502 (emit_fusion_load_store): Likewise.
3503 (fusion_p9_p): Likewise.
3504 (expand_fusion_p9_load): Likewise.
3505 (expand_fusion_p9_store): Likewise.
3506 (emit_fusion_p9_load): Likewise.
3507 (emit_fusion_p9_store): Likewise.
3508 (fusion_wrap_memory_address): Likewise.
3510 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add new
3511 elements for power9 fusion.
3512 (rs6000_debug_print_mode): Rework debug information to print more
3513 information about fusion.
3514 (rs6000_init_hard_regno_mode_ok): Setup for power9 fusion support.
3515 (rs6000_legitimate_address_p): Recognize toc fusion as a valid
3516 offsettable memory address.
3517 (rs6000_rtx_costs): Update costs for new ISA 3.0 instructions.
3518 (emit_fusion_gpr_load): Move most of the code from
3519 emit_fusion_gpr_load into emit_fusion-addis that handles both
3520 power8 and power9 fusion.
3521 (emit_fusion_addis): Likewise.
3522 (emit_fusion_load_store): Likewise.
3523 (fusion_wrap_memory_address): Add support for TOC fusion.
3524 (fusion_split_address): Likewise.
3525 (fusion_p9_p): Add support for power9 fusion.
3526 (expand_fusion_p9_load): Likewise.
3527 (expand_fusion_p9_store): Likewise.
3528 (emit_fusion_p9_load): Likewise.
3529 (emit_fusion_p9_store): Likewise.
3531 * config/rs6000/rs6000.h (TARGET_EXTSWSLI): Macros for support for
3532 new instructions in ISA 3.0.
3533 (TARGET_CTZ): Likewise.
3534 (TARGET_TOC_FUSION_INT): Macros for power9 fusion support.
3535 (TARGET_TOC_FUSION_FP): Likewise.
3537 * config/rs6000/rs6000.md (UNSPEC_FUSION_P9): New power9/toc
3539 (UNSPEC_FUSION_ADDIS): Likewise.
3540 (QHSI mode iterator): New iterator for power9 fusion.
3541 (GPR_FUSION): Likewise.
3542 (FPR_FUSION): Likewise.
3543 (mod<mode>3): Add support for ISA 3.0 modulus instructions.
3544 (umod<mode>3): Likewise.
3545 (divmod peephole): Likewise.
3546 (udivmod peephole): Likewise.
3547 (ctz<mode>2): Add support for ISA 3.0 count trailing zeros scalar
3549 (ctz<mode>2_h): Likewise.
3550 (ashdi3_extswsli): Add support for ISA 3.0 EXTSWSLI instruction.
3551 (ashdi3_extswsli_dot): Likewise.
3552 (ashdi3_extswsli_dot2): Likewise.
3553 (power9 fusion splitter): New power9/toc fusion support.
3554 (toc_fusionload_<mode>): Likewise.
3555 (toc_fusionload_di): Likewise.
3556 (fusion_gpr_load_<mode>): Update predicate function.
3557 (power9 fusion peephole2s): New power9/toc fusion support.
3558 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
3559 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_store): Likewise.
3560 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
3561 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
3562 (fusion_p9_<mode>_constant): Likewise.
3564 2015-11-09 Steve Ellcey <sellcey@imgtec.com>
3566 * optabs.c (prepare_libcall_arg): New function.
3567 (expand_fixed_convert): Add call to prepare_libcall_arg.
3569 2015-11-09 Nikolai Bozhenov <n.bozhenov@samsung.com>
3571 * sched-int.h (dump_rgn_dependencies_dot): Declare
3572 * sched-rgn.c (dump_rgn_dependencies_dot): New function
3573 * print-rtl.h (print_insn): Add prototype
3575 * haifa-sched.c (setup_sched_dump): Don't redirect output to stderr.
3576 * common.opt (-fsched-verbose): Set default value to 1.
3577 * invoke.texi (-fsched-verbose): Update the option's description.
3579 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
3581 * config/visium/visium.h (PRINT_OPERAND): Delete.
3582 (PRINT_OPERAND_PUNCT_VALID_P): Likewise.
3583 (PRINT_OPERAND_ADDRESS): Likewise.
3584 * config/visium/visium.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define
3586 (visium_print_operand_punct_valid_p): ...this. New function.
3587 (TARGET_PRINT_OPERAND): Define to...
3588 (print_operand): Rename to...
3589 (visium_print_operand): ...this.
3590 (TARGET_PRINT_OPERAND_ADDRESS): Define to...
3591 (visium_output_address): Rename to...
3592 (visium_print_operand_address): ...this.
3593 (print_operand_address): Delete.
3595 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
3598 * tree.h (reverse_storage_order_for_component_p) <COMPONENT_REF>:
3599 Check that the type of the first operand is an aggregate type.
3601 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
3603 * omp-low.c: Fix some OpenACC comment typos.
3604 (lower_reduction_clauses): Remove BUILT_IN_GOACC_GET_THREAD_NUM call.
3605 * omp-builtins.def (BUILT_IN_GOACC_GET_THREAD_NUM,
3606 BUILT_IN_GOACC_GET_NUM_THREADS): Delete.
3608 2015-11-09 Uros Bizjak <ubizjak@gmail.com>
3610 * config/i386/i386.md (*strmovqi_1): Fix insn enable condition.
3612 2015-11-09 Jeff Law <law@redhat.com>
3614 * tree-ssanames.c (verify_ssaname_freelists): Simplify check for
3615 being in gimple/ssa form. Remove redundant check for SSA_NAME.
3618 2015-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
3619 Peter Bergner <bergner@vnet.ibm.com>
3621 * config/rs6000/rs6000.opt (-mpower9-fusion): Add new switches for
3623 (-mpower9-vector): Likewise.
3624 (-mpower9-dform): Likewise.
3625 (-mpower9-minmax): Likewise.
3626 (-mtoc-fusion): Likewise.
3627 (-mmodulo): Likewise.
3628 (-mfloat128-hardware): Likewise.
3630 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add option
3631 mask for ISA 3.0 (power9).
3632 (POWERPC_MASKS): Add new ISA 3.0 switches.
3633 (power9 cpu): Add power9 cpu.
3635 * config/rs6000/rs6000.h (ASM_CPU_POWER9_SPEC): Add support for power9.
3636 (ASM_CPU_SPEC): Likewise.
3637 (EXTRA_SPECS): Likewise.
3639 * config/rs6000/rs6000-opts.h (enum processor_type): Add
3642 * config/rs6000/rs6000.c (power9_cost): Initial cost setup for power9.
3643 (rs6000_debug_reg_global): Add support for power9 fusion.
3644 (rs6000_setup_reg_addr_masks): Cache mode size.
3645 (rs6000_option_override_internal): Until real power9 tuning is
3646 added, use -mtune=power8 for -mcpu=power9.
3647 (rs6000_setup_reg_addr_masks): Do not allow pre-increment,
3648 pre-decrement, or pre-modify on SFmode/DFmode if we allow the use
3649 of Altivec registers.
3650 (rs6000_option_override_internal): Add support for ISA 3.0 switches.
3651 (rs6000_loop_align): Add support for power9 cpu.
3652 (rs6000_file_start): Likewise.
3653 (rs6000_adjust_cost): Likewise.
3654 (rs6000_issue_rate): Likewise.
3655 (insn_must_be_first_in_group): Likewise.
3656 (insn_must_be_last_in_group): Likewise.
3657 (force_new_group): Likewise.
3658 (rs6000_register_move_cost): Likewise.
3659 (rs6000_opt_masks): Likewise.
3661 * config/rs6000/rs6000.md (cpu attribute): Add power9.
3662 * config/rs6000/rs6000-tables.opt: Regenerate.
3664 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
3665 _ARCH_PWR9 if power9 support is available.
3667 * config/rs6000/aix61.h (ASM_CPU_SPEC): Add power9.
3668 * config/rs6000/aix53.h (ASM_CPU_SPEC): Likewise.
3670 * configure.ac: Determine if the assembler supports the ISA 3.0
3672 * config.in (HAVE_AS_POWER9): Likewise.
3673 * configure: Regenerate.
3675 * doc/invoke.texi (RS/6000 and PowerPC Options): Document ISA 3.0
3678 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3680 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate):
3681 Remove integer CONST_DOUBLE handling. It should never occur.
3683 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3686 * config/aarch64/aarch64.h (TARGET_SUPPORTS_WIDE_INT): Define to 1.
3687 * config/aarch64/aarch64.c (aarch64_print_operand, CONST_DOUBLE):
3688 Delete VOIDmode case. Assert that mode is not VOIDmode.
3689 * config/aarch64/predicates.md (const0_operand): Remove const_double
3692 2015-11-09 Martin Liska <mliska@suse.cz>
3694 * ipa-inline-analysis.c (estimate_function_body_sizes): Call
3695 body_info release function.
3696 * ipa-prop.c (ipa_release_body_info): New function.
3697 (ipa_analyze_node): Call the function.
3698 (ipa_node_params::~ipa_node_params): Release known_csts.
3699 * ipa-prop.h (ipa_release_body_info): Declare.
3701 2015-11-09 Martin Liska <mliska@suse.cz>
3703 * gcc.c (record_temp_file): Release name string.
3704 * ifcvt.c (noce_convert_multiple_sets): Use auto_vec instead of vec.
3705 * lra-lives.c (free_live_range_list): Utilize
3706 lra_live_range_pool for allocation and deallocation.
3707 (create_live_range): Likewise.
3708 (copy_live_range): Likewise.
3709 (lra_merge_live_ranges): Likewise.
3710 (remove_some_program_points_and_update_live_ranges): Likewise.
3711 (lra_create_live_ranges_1): Release point_freq_vec that can
3712 be not freed from previous iteration of the function.
3713 * tree-eh.c (lower_try_finally_switch): Use auto_vec instead of vec.
3714 * tree-sra.c (sra_deinitialize): Release all vectors in
3716 * tree-ssa-dom.c (free_dom_edge_info): Make the function extern.
3717 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
3718 Release edge_info for a removed edge.
3719 (thread_through_all_blocks): Free region vector.
3720 * tree-ssa.h (free_dom_edge_info): Declare function extern.
3722 2015-11-09 Ilya Enkovich <enkovich.gnu@gmail.com>
3724 * optabs.c (expand_vec_cond_expr): Always get sign from type.
3725 * tree.c (wide_int_to_tree): Support negative values for boolean.
3726 (build_nonstandard_boolean_type): Use signed type for booleans.
3728 2015-11-09 Richard Biener <rguenther@suse.de>
3730 PR tree-optimization/68248
3731 * tree-vect-generic.c (expand_vector_operations_1): Handle scalar rhs2.
3733 2015-11-09 Richard Biener <rguenther@suse.de>
3735 PR tree-optimization/56118
3736 * tree-vectorizer.h (vect_find_last_scalar_stmt_in_slp): Declare.
3737 * tree-vect-slp.c (vect_find_last_scalar_stmt_in_slp): Export.
3738 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): New
3740 (vect_slp_analyze_data_ref_dependences): Instead of computing
3741 all dependences of the region DRs just analyze the code motions
3742 SLP vectorization will perform. Remove SLP instances that
3743 cannot have their store/load motions applied.
3744 (vect_analyze_data_refs): Allow DRs without a vectype
3745 in BB vectorization.
3747 2015-11-09 Julian Brown <julian@codesourcery.com>
3749 * final.c (output_asm_insn): Pass VOIDmode to output_address.
3750 (output_address): Add MODE argument. Pass to print_operand_address
3752 * targhooks.c (default_print_operand_address): Add MODE argument.
3753 * targhooks.h (default_print_operand_address): Update prototype.
3754 * output.h (output_address): Update prototype.
3755 * target.def (print_operand_address): Add MODE argument.
3756 * config/vax/vax.c (print_operand_address): Pass VOIDmode to
3758 (print_operand): Pass access mode to output_address.
3759 * config/mcore/mcore.c (mcore_print_operand_address): Add MODE
3761 (mcore_print_operand): Update calls to mcore_print_operand_address.
3762 * config/fr30/fr30.c (fr30_print_operand): Pass VOIDmode to
3764 * config/lm32/lm32.c (lm32_print_operand): Pass mode in calls to
3766 * config/tilegx/tilegx.c (output_memory_reference_mode): Remove
3768 (tilegx_print_operand): Don't set above global. Update calls to
3770 (tilegx_print_operand_address): Add MODE argument. Use instead of
3771 output_memory_reference_mode global.
3772 * config/frv/frv.c (frv_print_operand_address): Add MODE argument.
3773 (frv_print_operand): Pass mode to frv_print_operand_address calls.
3774 * config/mn10300/mn10300.c (mn10300_print_operand): Pass mode to
3776 * config/cris/cris.c (cris_print_operand_address): Add MODE argument.
3777 (cris_print_operand): Pass mode to output_address calls.
3778 * config/spu/spu.c (print_operand): Pass mode to output_address calls.
3779 * config/aarch64/aarch64.h (aarch64_print_operand)
3780 (aarch64_print_operand_address): Remove prototypes.
3781 * config/aarch64/aarch64.c (aarch64_memory_reference_mode): Delete
3783 (aarch64_print_operand): Make static. Update calls to output_address.
3784 (aarch64_print_operand_address): Add MODE argument. Use instead of
3785 aarch64_memory_reference_mode global.
3786 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define target
3788 * config/aarch64/aarch64.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
3789 Delete macro definitions.
3790 * config/pa/pa.c (pa_print_operand): Pass mode in output_address calls.
3791 * config/xtensa/xtensa.c (print_operand): Pass mode in
3792 output_address calls.
3793 * config/h8300/h8300.c (h8300_print_operand_address): Add MODE
3795 (h83000_print_operand): Update calls to h8300_print_operand_address
3797 * config/ia64/ia64.c (ia64_print_operand_address): Add MODE argument.
3798 * config/tilepro/tilepro.c (output_memory_reference_mode): Delete
3800 (tilepro_print_operand): Pass mode to output_address.
3801 (tilepro_print_operand_address): Add MODE argument. Use instead of
3802 output_memory_reference_mode.
3803 * config/nvptx/nvptx.c (output_decl_chunk, nvptx_assemble_integer)
3804 (nvptx_output_call_insn, nvptx_print_address_operand): Pass VOIDmode
3805 to output_address calls.
3806 (nvptx_print_operand_address): Add MODE argument.
3807 * config/alpha/alpha.c (print_operand): Pass mode argument in
3808 output_address calls.
3809 * config/m68k/m68k.c (print_operand): Pass mode argument in
3810 output_address call.
3811 * config/avr/avr.c (avr_print_operand_address): Add MODE argument.
3812 (avr_print_operand): Update calls to avr_print_operand_address.
3813 * config/sparc/sparc.c (sparc_print_operand_address): Add MODE
3814 argument. Update calls to output_address.
3815 (sparc_print_operand): Pass mode to output_address.
3816 * config/iq2000/iq2000.c (iq2000_print_operand_address): Add MODE
3818 (iq2000_print_operand): Pass mode in output_address calls.
3819 * config/stormy16/stormy16.c (xstormy16_print_operand_address): Add
3821 (xstormy16_print_operand): Pass mode to
3822 xstormy16_print_operand_address calls.
3823 * config/mips/mips.c (mips_print_operand): Update calls to
3825 (mips_print_operand_address): Add MODE argument.
3826 * config/epiphany/epiphany.c (epiphany_print_operand): Update calls
3828 (epiphany_print_operand_address): Add MODE argument. Add FIXME note.
3829 * config/pdp11/pdp11.c (pdp11_asm_print_operand): Update call to
3831 * config/rx/rx.c (rx_print_operand_address): Add MODE argument.
3832 (rx_print_operand): Update calls to output_address,
3833 rx_print_operand_address.
3834 * config/nds32/nds32.c (nds32_print_operand): Update calls to
3836 (nds32_print_operand_address): Add MODE argument.
3837 * config/rs6000/rs6000.c (print_operand): Pass mem mode to
3838 output_address calls.
3839 * config/c6x/c6x.c (print_address_offset): Pass mem mode to
3840 output_address call.
3841 (c6x_print_address_operand): Update calls to output_address.
3842 (c6x_print_operand_address): Pass mode to above.
3843 * config/v850/v850.c (v850_print_operand_address): Add MODE argument.
3844 (v850_print_operand): Pass mode to v850_print_operand_address,
3846 * config/mmix/mmix.c (mmix_print_operand_address): Add MODE argument.
3847 (mmix_print_operand): Pass mode in output_address calls.
3848 * config/sh/sh.c (sh_print_operand_address): Add MODE argument.
3849 (sh_print_operand): Pass mem mode to output_address,
3850 sh_print_operand_address.
3851 * config/cr16/cr16.c (cr16_print_operand_address): Add MODE argument.
3852 (cr16_print_operand): Pass mode to output_address,
3853 cr16_print_operand_address.
3854 * config/bfin/bfin.c (print_address_operand): Pass VOIDmode to
3856 * config/microblaze/microblaze.c (print_operand): Pass mode to
3858 * config/nios2/nios2.c (nios2_print_operand): Pass VOIDmode to
3860 (nios2_print_operand_address): Add MODE argument. Update call to
3861 nios2_print_operand_address.
3862 * config/s390/s390.c (print_operand): Pass mode to output_address.
3863 * config/m32c/m32c.c (m32c_print_operand_address): Add MODE argument.
3864 * config/arc/arc.c (arc_print_operand): Pass VOIDmode to
3866 * config/arm/arm.c (arm_print_operand_address): Add MODE argument.
3867 Use instead of output_memory_reference_mode.
3868 (output_memory_reference_mode): Delete global.
3869 (arm_print_operand): Pass mem mode to output_address.
3870 * config/m32r/m32r.c (m32r_print_operand_address): Add MODE argument.
3871 (m32r_print_operand): Pass mode to output_address.
3872 * config/msp430/msp430.c (msp430_print_operand_addr): Add MODE
3874 (msp430_print_operand): Pass mode to msp430_print_operand_addr.
3875 * config/i386/i386.c (ix86_print_operand): Pass mode to
3876 output_address calls.
3877 (ix86_print_operand_address): Add MODE argument.
3879 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
3882 * tree-core.h (REF_REVERSE_STORAGE_ORDER): Move around.
3883 * tree.h (REF_REVERSE_STORAGE_ORDER): Change to default_def_flag.
3884 * tree-streamer-in.c (unpack_ts_base_value_fields): Adjust.
3885 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
3887 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3889 PR rtl-optimization/67749
3890 * ifcvt.c (noce_try_cmove_arith): Do not emit move in IF-ELSE
3891 case before emitting the two blocks. Instead modify the register
3892 in the corresponding final insn of the basic block.
3894 2015-11-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3896 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Allow for differences in
3899 Define HAVE_INITFINI_ARRAY_SUPPORT as 0/1.
3901 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define to
3902 HAVE_INITFINI_ARRAY_SUPPORT.
3903 * config/initfini-array.h: Check HAVE_INITFINI_ARRAY_SUPPORT value.
3905 * configure.ac (gcc_cv_as_sparc_nobits): Remove.
3906 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section):
3907 Don't check HAVE_AS_SPARC_NOBITS.
3908 Heed SECTION_NOTYPE.
3910 * configure: Regenerate.
3911 * config.in: Regenerate.
3913 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
3916 * fold-const.c (fold_truth_andor_1): Initialize new variables to 0.
3918 2015-11-09 Richard Henderson <rth@redhat.com>
3920 * config/i386/i386-c.c (ix86_target_macros): Define __SEG_FS,
3921 __SEG_GS, __SEG_TLS.
3922 (ix86_register_pragmas): Register address spaces __seg_fs,
3923 __seg_gs, __seg_tls.
3924 * config/i386/i386-protos.h (enum ix86_address_seg): Remove.
3925 (ADDR_SPACE_SEG_FS, ADDR_SPACE_SEG_GS, ADDR_SPACE_SEG_TLS): New.
3926 (struct ix86_address): Use addr_space_t instead of ix86_address_seg.
3927 * config/i386/i386.c (ix86_decompose_address): Likewise.
3928 (ix86_legitimate_address_p): Likewise.
3929 (memory_address_length): Likewise. Check mem address space too.
3930 (ix86_print_operand): Use ix86_print_operand_address_as.
3931 (ix86_print_operand_address_as): Rename from
3932 ix86_print_operand_address, add new addr_space_t parameter.
3933 Validate that either the parameter or the ix86_address segment
3934 is default address space. Handle ADDR_SPACE_SEG_TLS.
3935 (ix86_print_operand_address): New.
3936 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): New.
3937 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): New.
3938 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): New.
3939 (ix86_addr_space_zero_address_valid): New.
3940 (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
3941 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): Use addr_space_t constants.
3942 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Likewise.
3943 * config/i386/predicates.md (address_no_seg_operand): Likewise.
3944 (vsib_address_operand): Likewise.
3945 (address_mpx_no_base_operand): Likewise.
3946 (address_mpx_no_index_operand): Likewise.
3947 * doc/extend.texi (x86 Named Address Spaces): New section.
3949 * config/i386/i386.c (ix86_check_no_addr_space): New.
3950 (decide_alg): Add have_as parameter.
3951 (alg_usable_p): Likewise; disable rep algorithms if set.
3952 (ix86_expand_set_or_movmem): Notice if either MEM has a
3953 non-default address space.
3954 (ix86_expand_strlen): Likewise.
3955 * config/i386/i386.md (strmov, strset): Likewise.
3956 (*strmovdi_rex_1): Use ix86_check_no_addr_space.
3957 (*strmovsi_1, *strmovqi_1, *rep_movdi_rex64, *rep_movsi, *rep_movqi,
3958 *strsetdi_rex_1, *strsetsi_1, *strsethi_1, *strsetqi_1,
3959 *rep_stosdi_rex64, *rep_stossi, *rep_stosqi, *cmpstrnqi_nz_1,
3960 *cmpstrnqi_1, *strlenqi_1): Likewise.
3962 * config/i386/i386.md (*movabs<mode>_1): Print the full memory rtx.
3963 (*movabs<mode>_2): Likewise.
3965 * dwarf2out.c (modified_type_die): Pass the address space number
3966 through TARGET_ADDR_SPACE_DEBUG to produce the dwarf address class.
3967 * target.def (TARGET_ADDR_SPACE_DEBUG): New.
3968 * targhooks.c (default_addr_space_debug): New.
3969 * targhooks.h (default_addr_space_debug): Declare.
3970 * doc/tm.texi.in (TARGET_ADDR_SPACE_DEBUG): Mark it.
3971 * doc/tm.texi: Rebuild.
3973 * gimple.c (check_loadstore): Return false when 0 is a valid address.
3974 * fold-const.c (const_unop) [ADDR_SPACE_CONVERT_EXPR]: Do not fold
3975 null when 0 is valid in the source address space.
3976 * target.def (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
3977 * targhooks.c (default_addr_space_zero_address_valid): New.
3978 * targhooks.h (default_addr_space_zero_address_valid): Declare.
3979 * doc/tm.texi.in (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): Mark it.
3980 * doc/tm.texi: Rebuild.
3982 * cselib.c (add_mem_for_addr): Compare address spaces when
3984 (cselib_lookup_mem): Likewise.
3985 * fold-const.c (operand_equal_p): Check address spaces of
3986 pointer types before checking integer constants.
3989 * tree-ssa-address.c (create_mem_ref_raw): Use a pointer of
3990 the correct type for the base.
3992 2015-11-09 Jeff Law <law@redhat.com>
3994 * tree-into-ssa.c (names_to_release): No longer static.
3995 * tree-into-ssa.h (names_to_release): Declare.
3996 * tree-ssanames.c (verify_ssaname_freelists): New debug function.
3997 (release_free_names_and_compact_live_names): New function extracted
3998 from pass_release_ssa_names::execute.
3999 (pass_release_ssa_names::execute): Use it.
4001 2015-11-09 Alan Modra <amodra@gmail.com>
4003 * gensupport.c (add_mnemonic_string): Make len param a size_t.
4004 (gen_mnemonic_setattr): Make "size" var a size_t. Use
4005 obstack_blank_fast to shrink obstack. Cast obstack_next_free
4008 2015-11-09 Segher Boessenkool <segher@kernel.crashing.org>
4010 PR rtl-optimization/68182
4011 * bb-reorder.c (reorder_basic_blocks_simple): Treat a conditional
4012 branch with only one successor just like unconditional branches.
4014 2015-11-08 Jeff Law <law@redhat.com>
4016 * tree-ssa-threadupdate.c (register_jump_thraed): Assert that a
4017 non-FSM path has no edges marked with EDGE_DFS_BACK.
4018 (ssa_redirect_edges): No longer call mark_loop_for_removal.
4019 (thread_single_edge, def_split_header_continue_p): Remove.
4020 (bb_ends_with_multiway_branch): Likewise.
4021 (thread_through_loop_header): Remove cases of threading from
4022 latch through the header. Simplify knowing we won't thread
4024 (thread_through_all_blocks): Simplify knowing that only the FSM
4025 threader needs to handle backedges.
4027 2015-11-08 Eric Botcazou <ebotcazou@adacore.com>
4029 * doc/extend.texi (type attributes): Document scalar_storage_order.
4030 (Structure-Packing Pragmas): Rename into...
4031 (Structure-Layout Pragmas): ...this. Document scalar_storage_order.
4032 * doc/invoke.texi (C Dialect Options): Document -fsso-struct
4033 (Warnings): Document -Wno-scalar-storage-order.
4034 * flag-types.h (enum scalar_storage_order_kind): New enumeration.
4035 * calls.c (store_unaligned_arguments_into_pseudos): Adjust calls to
4036 extract_bit_field and store_bit_field.
4037 (initialize_argument_information): Adjust call to store_expr.
4038 (load_register_parameters): Adjust call to extract_bit_field.
4039 * expmed.c (check_reverse_storage_order_support): New function.
4040 (check_reverse_float_storage_order_support): Likewise.
4041 (flip_storage_order): Likewise.
4042 (store_bit_field_1): Add REVERSE parameter. Flip the storage order
4043 of the value if it is true. Pass REVERSE to recursive call after
4044 adjusting the target offset.
4045 Do not use extraction or movstrict instruction if REVERSE is true.
4046 Pass REVERSE to store_fixed_bit_field.
4047 (store_bit_field): Add REVERSE parameter and pass to it to above.
4048 (store_fixed_bit_field): Add REVERSE parameter and pass to it to
4049 store_split_bit_field and store_fixed_bit_field_1.
4050 (store_fixed_bit_field_1): Add REVERSE parameter. Flip the storage
4051 order of the value if it is true and adjust the target offset.
4052 (store_split_bit_field): Add REVERSE parameter and pass it to
4053 store_fixed_bit_field. Adjust the target offset if it is true.
4054 (extract_bit_field_1): Add REVERSE parameter. Flip the storage order
4055 of the value if it is true. Pass REVERSE to recursive call after
4056 adjusting the target offset.
4057 Do not use extraction or subreg instruction if REVERSE is true.
4058 Pass REVERSE to extract_fixed_bit_field.
4059 (extract_bit_field): Add REVERSE parameter and pass to it to above.
4060 (extract_fixed_bit_field): Add REVERSE parameter and pass to it to
4061 extract_split_bit_field and extract_fixed_bit_field_1.
4062 (extract_fixed_bit_field_1): Add REVERSE parameter. Flip the storage
4063 order of the value if it is true and adjust the target offset.
4064 (extract_split_bit_field): Add REVERSE parameter and pass it to
4065 extract_fixed_bit_field. Adjust the target offset if it is true.
4066 * expmed.h (flip_storage_order): Declare.
4067 (store_bit_field): Adjust prototype.
4068 (extract_bit_field): Likewise.
4069 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
4070 (emit_group_store): Adjust call to store_bit_field.
4071 (copy_blkmode_from_reg): Likewise.
4072 (copy_blkmode_to_reg): Likewise.
4073 (write_complex_part): Likewise.
4074 (read_complex_part): Likewise.
4075 (optimize_bitfield_assignment_op): Add REVERSE parameter. Assert
4076 that it isn't true if the target is a register.
4077 <PLUS_EXPR>: If it is, do not optimize unless bitsize is equal to 1,
4078 and flip the storage order of the value.
4079 <BIT_IOR_EXPR>: Flip the storage order of the value.
4080 (get_bit_range): Adjust call to get_inner_reference.
4081 (expand_assignment): Adjust calls to get_inner_reference, store_expr,
4082 optimize_bitfield_assignment_op and store_field. Handle MEM_EXPRs
4083 with reverse storage order.
4084 (store_expr_with_bounds): Add REVERSE parameter and pass it to
4085 recursive calls and call to store_bit_field. Force the value into a
4086 register if it is true and then flip the storage order of the value.
4087 (store_expr): Add REVERSE parameter and pass it to above.
4088 (categorize_ctor_elements_1): Adjust call to
4089 initializer_constant_valid_p.
4090 (store_constructor_field): Add REVERSE parameter and pass it to
4091 recursive calls and call to store_field.
4092 (store_constructor): Add REVERSE parameter and pass it to calls to
4093 store_constructor_field and store_expr. Set it to true for an
4094 aggregate type with TYPE_REVERSE_STORAGE_ORDER.
4095 (store_field): Add REVERSE parameter and pass it to recursive calls
4096 and calls to store_expr and store_bit_field. Temporarily flip the
4097 storage order of the value with record type and integral mode and
4098 adjust the shift if it is true.
4099 (get_inner_reference): Add PREVERSEP parameter and set it to true
4100 upon encoutering a reference with reverse storage order.
4101 (expand_expr_addr_expr_1): Adjust call to get_inner_reference.
4102 (expand_constructor): Adjust call to store_constructor.
4103 (expand_expr_real_2) <CASE_CONVERT>: Pass TYPE_REVERSE_STORAGE_ORDER
4104 of the union type to store_expr in the MEM case and assert that it
4105 isn't set in the REG case. Adjust call to store_field.
4106 (expand_expr_real_1) <MEM_REF>: Handle reverse storage order.
4107 <normal_inner_ref>: Add REVERSEP variable and adjust calls to
4108 get_inner_reference and extract_bit_field. Temporarily flip the
4109 storage order of the value with record type and integral mode and
4110 adjust the shift if it is true. Flip the storage order of the value
4111 at the end if it is true.
4112 <VIEW_CONVERT_EXPR>: Add REVERSEP variable and adjust call to
4113 get_inner_reference. Do not fetch an inner reference if it is true.
4114 * expr.h (store_expr_with_bounds): Ajust prototype.
4115 (store_expr): Likewise.
4116 * fold-const.c (make_bit_field_ref): Add REVERSEP parameter and set
4117 REF_REVERSE_STORAGE_ORDER on the reference according to it.
4118 (optimize_bit_field_compare): Deal with reverse storage order.
4119 Adjust calls to get_inner_reference and make_bit_field_ref.
4120 (decode_field_reference): Add PREVERSEP parameter and adjust call to
4121 get_inner_reference.
4122 (fold_truth_andor_1): Deal with reverse storage order. Adjust calls
4123 to decode_field_reference and make_bit_field_ref.
4124 (fold_unary_loc) <CASE_CONVERT>: Adjust call to get_inner_reference.
4125 <VIEW_CONVERT_EXPR>: Propagate the REF_REVERSE_STORAGE_ORDER flag.
4126 (fold_comparison): Adjust call to get_inner_reference.
4127 (split_address_to_core_and_offset): Adjust call to
4128 get_inner_reference.
4129 * gimple-expr.c (useless_type_conversion_p): Return false for array
4130 types with different TYPE_REVERSE_STORAGE_ORDER flag.
4131 * gimplify.c (gimplify_expr) <MEM_REF>: Propagate the
4132 REF_REVERSE_STORAGE_ORDER flag.
4133 * lto-streamer-out.c (hash_tree): Deal with TYPE_REVERSE_STORAGE_ORDER.
4134 * output.h (assemble_real): Adjust prototype.
4135 * print-tree.c (print_node): Convey TYPE_REVERSE_STORAGE_ORDER.
4136 * stor-layout.c (finish_record_layout): Propagate the
4137 TYPE_REVERSE_STORAGE_ORDER flag to the variants.
4138 * tree-core.h (TYPE_REVERSE_STORAGE_ORDER): Document.
4139 (TYPE_SATURATING): Adjust.
4140 (REF_REVERSE_STORAGE_ORDER): Document.
4141 * tree-dfa.c (get_ref_base_and_extent): Add PREVERSE parameter and
4142 set it to true upon encoutering a reference with reverse storage order.
4143 * tree-dfa.h (get_ref_base_and_extent): Adjust prototype.
4144 * tree-inline.c (remap_gimple_op_r): Propagate the
4145 REF_REVERSE_STORAGE_ORDER flag.
4146 (copy_tree_body_r): Likewise.
4147 * tree-outof-ssa.c (insert_value_copy_on_edge): Adjust call to
4149 * tree-streamer-in.c (unpack_ts_base_value_fields): Deal with
4150 TYPE_REVERSE_STORAGE_ORDER and REF_REVERSE_STORAGE_ORDER.
4151 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
4152 * tree.c (stabilize_reference) <BIT_FIELD_REF>: Propagate the
4153 REF_REVERSE_STORAGE_ORDER flag.
4154 (verify_type_variant): Deal with TYPE_REVERSE_STORAGE_ORDER.
4155 (gimple_canonical_types_compatible_p): Likewise.
4156 * tree.h (TYPE_REVERSE_STORAGE_ORDER): New flag.
4157 (TYPE_SATURATING): Adjust.
4158 (REF_REVERSE_STORAGE_ORDER): New flag.
4159 (reverse_storage_order_for_component_p): New inline predicate.
4160 (storage_order_barrier_p): Likewise.
4161 (get_inner_reference): Adjust prototype.
4162 * varasm.c: Include expmed.h.
4163 (assemble_variable_contents): Adjust call to output_constant.
4164 (assemble_real): Add REVERSE parameter. Flip the storage
4165 order of the value if REVERSE is true.
4166 (compare_constant) <CONSTRUCTOR>: Compare TYPE_REVERSE_STORAGE_ORDER.
4167 (assemble_constant_contents): Adjust call to output_constant.
4168 (output_constant_pool_2): Adjust call to assemble_real.
4169 (initializer_constant_valid_p_1) <CONSTRUCTOR>: Deal with
4170 TYPE_REVERSE_STORAGE_ORDER.
4171 (initializer_constant_valid_p): Add REVERSE parameter.
4172 (output_constant): Add REVERSE parameter.
4173 <INTEGER_TYPE>: Flip the storage order of the value if REVERSE is true.
4174 <REAL_TYPE>: Adjust call to assemble_real.
4175 <COMPLEX_TYPE>: Pass it to recursive calls.
4176 <ARRAY_TYPE>: Likewise. Adjust call to output_constructor.
4177 <RECORD_TYPE>: Likewise. Adjust call to output_constructor.
4178 (struct oc_local_state): Add REVERSE field.
4179 (output_constructor_array_range): Adjust calls to output_constant.
4180 (output_constructor_regular_field): Likewise.
4181 (output_constructor_bitfield): Adjust call to output_constructor.
4182 Flip the storage order of the value if REVERSE is true.
4183 (output_constructor): Add REVERSE parameter. Set it to true for an
4184 aggregate type with TYPE_REVERSE_STORAGE_ORDER. Adjust call to
4185 output_constructor_bitfield.
4186 * varasm.h (initializer_constant_valid_p): Default REVERSE to false.
4187 * asan.c (instrument_derefs): Adjust call to get_inner_reference.
4188 * builtins.c (get_object_alignment_2): Likewise.
4189 * cfgexpand.c (expand_debug_expr): Adjust call to get_inner_reference
4190 and get_ref_base_and_extent.
4191 * dbxout.c (dbxout_expand_expr): Likewise.
4192 * dwarf2out.c (add_var_loc_to_decl): Likewise.
4193 (loc_list_for_address_of_addr_expr_of_indirect_ref): Likewise.
4194 (loc_list_from_tree): Likewise.
4195 (fortran_common): Likewise.
4196 * gimple-fold.c (gimple_fold_builtin_memory_op): Adjust calls to
4197 get_ref_base_and_extent.
4198 (get_base_constructor): Likewise.
4199 (fold_const_aggregate_ref_1): Likewise.
4200 * gimple-laddress.c (pass_laddress::execute): Adjust call to
4201 get_inner_reference.
4202 * gimple-ssa-strength-reduction.c (slsr_process_ref): Adjust call to
4203 get_inner_reference and bail out on reverse storage order.
4204 * ifcvt.c (noce_emit_move_insn): Adjust calls to store_bit_field.
4205 * ipa-cp.c (ipa_get_jf_ancestor_result): Adjust call to
4206 build_ref_for_offset.
4207 * ipa-polymorphic-call.c (set_by_invariant): Adjust call to
4208 get_ref_base_and_extent.
4209 (ipa_polymorphic_call_context): Likewise.
4210 (extr_type_from_vtbl_ptr_store): Likewise.
4211 (check_stmt_for_type_change): Likewise.
4212 (get_dynamic_type): Likewise.
4213 * ipa-prop.c (ipa_load_from_parm_agg_1): Adjust call to
4214 get_ref_base_and_extent.
4215 (compute_complex_assign_jump_func): Likewise.
4216 (get_ancestor_addr_info): Likewise.
4217 (compute_known_type_jump_func): Likewise.
4218 (determine_known_aggregate_parts): Likewise.
4219 (ipa_get_adjustment_candidate): Likewise.
4220 (ipa_modify_call_arguments): Set REF_REVERSE_STORAGE_ORDER on MEM_REF.
4221 * ipa-prop.h (ipa_parm_adjustment): Add REVERSE field.
4222 (build_ref_for_offset): Adjust prototype.
4223 * simplify-rtx.c (delegitimize_mem_from_attrs): Adjust call to
4224 get_inner_reference.
4225 * tree-affine.c (tree_to_aff_combination): Adjust call to
4226 get_inner_reference.
4227 (get_inner_reference_aff): Likewise.
4228 * tree-data-ref.c (split_constant_offset_1): Likewise.
4229 (dr_analyze_innermost): Likewise. Bail out if reverse storage order.
4230 * tree-scalar-evolution.c (interpret_rhs_expr): Adjust call to
4231 get_inner_reference.
4232 * tree-sra.c (struct access): Add REVERSE and move WRITE around.
4233 (dump_access): Print new fields.
4234 (create_access): Adjust call to get_ref_base_and_extent and set the
4235 REVERSE flag according to the result.
4236 (completely_scalarize_record): Set the REVERSE flag.
4237 (scalarize_elem): Add REVERSE parameter.
4238 (build_access_from_expr_1): Preserve storage order barriers.
4239 (build_accesses_from_assign): Likewise.
4240 (build_ref_for_offset): Add REVERSE parameter and set the
4241 REF_REVERSE_STORAGE_ORDER flag accordingly.
4242 (build_ref_for_model): Adjust call to build_ref_for_offset and clear
4243 the REF_REVERSE_STORAGE_ORDER flag if there are components.
4244 (analyze_access_subtree): Likewise.
4245 (create_artificial_child_access): Set the REVERSE flag.
4246 (get_access_for_expr): Adjust call to get_ref_base_and_extent.
4247 (turn_representatives_into_adjustments): Propagate REVERSE flag.
4248 (ipa_sra_check_caller): Adjust call to get_inner_reference.
4249 * tree-ssa-alias.c (ao_ref_base): Adjust call to
4250 get_ref_base_and_extent.
4251 (aliasing_component_refs_p): Likewise.
4252 (stmt_kills_ref_p_1): Likewise.
4253 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
4254 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p) <MEM_REF>: New.
4255 Return true if reverse storage order.
4256 <BIT_FIELD_REF>: Likewise.
4257 <COMPONENT_REF>: Likewise.
4258 <ARRAY_REF>: Likewise.
4259 <ARRAY_RANGE_REF>: Likewise.
4260 (split_address_cost): Likewise. Bail out if reverse storage order.
4261 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Adjust call to
4262 get_inner_reference. Bail out if reverse storage order.
4263 (bswap_replace): Adjust call to get_inner_reference.
4264 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <MEM_REF>: Set
4265 the REF_REVERSE_STORAGE_ORDER flag.
4266 <BIT_FIELD_REF>: Likewise.
4267 * tree-ssa-sccvn.c (vn_reference_eq): Return false on storage order
4269 (copy_reference_ops_from_ref) <MEM_REF>: Set REVERSE field according
4270 to the REF_REVERSE_STORAGE_ORDER flag.
4271 <BIT_FIELD_REF>: Likewise.
4272 <VIEW_CONVERT_EXPR>: Set it for storage order barriers.
4273 (contains_storage_order_barrier_p): New predicate.
4274 (vn_reference_lookup_3): Adjust calls to get_ref_base_and_extent.
4275 Punt on storage order barriers if necessary.
4276 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add REVERSE.
4277 * tree-ssa-structalias.c (get_constraint_for_component_ref): Adjust
4278 call to get_ref_base_and_extent.
4279 (do_structure_copy): Likewise.
4280 * tree-vect-data-refs.c (vect_check_gather): Adjust call to
4281 get_inner_reference.
4282 (vect_analyze_data_refs): Likewise. Bail out if reverse storage order.
4283 * tsan.c (instrument_expr): Adjust call to get_inner_reference.
4284 * ubsan.c (instrument_bool_enum_load): Likewise.
4285 (instrument_object_size): Likewise.
4286 * var-tracking.c (track_expr_p): Adjust call to
4287 get_ref_base_and_extent.
4288 * config/mips/mips.c (r10k_safe_mem_expr_p): Adjust call to
4289 get_inner_reference.
4290 * config/s390/s390.c (s390_expand_atomic): Adjust call to
4292 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust call to
4294 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
4296 2015-11-07 Eric Botcazou <ebotcazou@adacore.com>
4298 * config/sparc/sparc.opt (mfix-at697f): Add final period.
4300 2015-11-07 Segher Boessenkool <segher@kernel.crashing.org>
4302 PR rtl-optimization/67864
4303 * common/config/i386/i386-common.c (ix86_option_optimization_table)
4304 <OPT_freorder_blocks_algorithm_>: Use REORDER_BLOCKS_ALGORITHM_STC
4307 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
4309 * trans-mem.c (is_tm_pure_call): Use gimple_call_flags for
4312 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
4314 * builtins.def: #undef DEF_BUILTIN and DEF_BUILTIN_CHKP
4315 * builtins.c, genmatch.c, tree-core.h: Don't undef them here.
4317 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
4319 * internal-fn.def: #undef DEF_INTERNAL_FN at the end.
4320 * internal-fn.c: Don't undef it here.
4321 * tree-core.h: Likewise.
4323 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
4325 * builtins.c (fold_builtin_nan): Delete.
4326 (fold_builtin_memcmp): Remove case where both arguments are constant.
4327 (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
4328 (fold_builtin_strspn, fold_builtin_strcspn): Likewise.
4329 (fold_builtin_1): Remove BUILT_IN_NAN* handling.
4330 * fold-const-call.c: Include fold-const.h.
4331 (host_size_t_cst_p): New function.
4332 (build_cmp_result, fold_const_builtin_nan): Likewise.
4333 (fold_const_call_1): New function, split out from...
4334 (fold_const_call): ...here (for all three interfaces). Handle
4335 constant nan, nans, strlen, strcmp, strncmp, strspn and strcspn.
4337 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
4339 * builtins.c (fold_builtin_bitop, fold_builtin_bswap): Delete.
4340 (fold_builtin_1): Don't call them.
4341 * fold-const-call.c: Include tm.h.
4342 (fold_const_call_ss): New variant for integer-to-integer folds.
4343 (fold_const_call): Call it.
4345 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
4347 * builtins.c (fold_builtin_classify): Move constant cases to...
4348 * fold-const-call.c (fold_const_call_ss): ...here.
4350 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
4352 * builtins.h (c_getstr): Move to...
4353 * fold-const.h (c_getstr): ...here.
4354 * builtins.c (c_getstr): Move to...
4355 * fold-const.c (c_getstr): ...here.
4357 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
4359 * builtins.def (BUILTIN_RINT, BUILTIN_RINTF, BUILTIN_RINTL): Use
4360 ATTR_MATHFN_FPROUNDING rather than ATTR_MATHFN_FPROUNDING_ERRNO.
4362 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
4364 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Try to update
4365 the dominance info; free it if we can't.
4366 (pass_call_cdce::execute): Don't free the dominance info here.
4368 2015-11-06 Jeff Law <law@redhat.com>
4370 * tree-ssa-threadedge.c (dummy_simplify): Remove.
4371 (thread_around_empty_blocks): Remove backedge_seen_p argument.
4372 If we thread to a backedge, then return false. Update recursive
4373 call to eliminate backedge_seen_p argument.
4374 (thread_through_normal_block): Remove backedge_seen_p argument.
4375 Remove backedge_seen_p argument from calls to
4376 thread_around_empty_blocks. Remove checks on backedge_seen_p.
4377 If we thread to a backedge, then return 0.
4378 (thread_across_edge): Remove bookkeeping for backedge_seen. Don't
4379 pass it to thread_through_normal_block or thread_through_empty_blocks.
4380 For joiner handling, if we see a backedge, do not try normal
4383 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
4385 * graphite-optimize-isl.c (optimize_isl): Call isl_union_map_is_equal.
4386 * graphite-poly.c (new_scop): Initialize original_schedule.
4387 (free_scop): Free original_schedule.
4388 * graphite-poly.h (struct scop): Add field original_schedule.
4389 * graphite-sese-to-poly.c (build_scop_original_schedule): New.
4390 (build_poly_scop): Call build_scop_original_schedule.
4392 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
4394 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
4395 (build_pbb_minimal_scattering_polyhedrons): New.
4396 (build_scop_scattering): Remove.
4397 (build_scop_minimal_scattering): New.
4398 (build_scop_scattering): Call build_pbb_minimal_scattering_polyhedrons.
4399 (build_poly_scop): Call build_scop_minimal_scattering.
4401 2015-11-06 Jeff Law <law@redhat.com>
4403 * cfg-flags.def (IGNORE): New edge flag.
4404 * tree-vrp.c (identify_jump_threads): Mark and clear edges
4405 scheduled for removal with EDGE_IGNORE around call into
4406 jump threader. Do no thread across edges with EDGE_IGNORE,
4407 but do allow threading across those with EDGE_DFS_BACK.
4409 2015-11-06 David Wohlferd <dw@LimeGreenSocks.com>
4411 * doc/md.texi (multi-alternative constraints): Don't document
4412 alternatives inherently tied to reload for the user documentation.
4414 2015-11-06 Michael Collison <michael.collison@linaro.org>
4415 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4418 2015-08-01 Michael Collison <michael.collison@linaro.org
4419 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4421 * config/arm/arm.md (*arm_smin_cmp): New pattern.
4422 (*arm_umin_cmp): Likewise.
4424 2015-11-06 Jakub Jelinek <jakub@redhat.com>
4426 * gimplify.c (gimplify_omp_ordered): Fix up diagnostics wording.
4427 * omp-low.c (check_omp_nesting_restrictions): Update for the
4428 various new OpenMP 4.5 nesting restrictions, clarified
4429 nesting glossary, closely nested region relationship clarified
4430 to mean explicit or implicit parallel regions (target/teams),
4431 use %</%> or %qs where appropriate.
4433 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
4434 Sebastian Pop <s.pop@samsung.com>
4436 * graphite-scop-detection.c (loop_is_valid_scop): Call
4437 optimize_loop_nest_for_speed_p.
4439 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
4440 Sebastian Pop <s.pop@samsung.com>
4442 * graphite-optimize-isl.c (optimize_isl): Call
4443 isl_options_set_schedule_maximize_band_depth.
4445 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
4446 Sebastian Pop <s.pop@samsung.com>
4448 * graphite-scop-detection.c (scop_detection::merge_sese): Entry
4449 and exit edges should not be a part of irreducible loop.
4450 (scop_detection::can_represent_loop_1): Loops should not be
4452 (scop_detection::harmful_stmt_in_region): All the basic block
4453 should belong to reducible loops.
4455 2015-11-06 Christophe Lyon <christophe.lyon@linaro.org>
4457 * config/aarch64/aarch64-simd-builtins.def: Update builtins
4458 tables: add tbl3v16qi, qtbl[34]*, tbx4v16qi, qtbx[34]*.
4459 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): Rename to...
4460 (aarch64_tbl3<mode>) ... this, which supports v16qi too.
4461 (aarch64_tbx4v8qi): Rename to...
4462 aarch64_tbx4<mode>): ... this.
4463 (aarch64_qtbl3<mode>): New pattern.
4464 (aarch64_qtbx3<mode>): New pattern.
4465 (aarch64_qtbl4<mode>): New pattern.
4466 (aarch64_qtbx4<mode>): New pattern.
4467 * config/aarch64/arm_neon.h (vqtbl2_s8, vqtbl2_u8, vqtbl2_p8)
4468 (vqtbl2q_s8, vqtbl2q_u8, vqtbl2q_p8, vqtbl3_s8, vqtbl3_u8)
4469 (vqtbl3_p8, vqtbl3q_s8, vqtbl3q_u8, vqtbl3q_p8, vqtbl4_s8)
4470 (vqtbl4_u8, vqtbl4_p8, vqtbl4q_s8, vqtbl4q_u8, vqtbl4q_p8)
4471 (vqtbx2_s8, vqtbx2_u8, vqtbx2_p8, vqtbx2q_s8, vqtbx2q_u8)
4472 (vqtbx2q_p8, vqtbx3_s8, vqtbx3_u8, vqtbx3_p8, vqtbx3q_s8)
4473 (vqtbx3q_u8, vqtbx3q_p8, vqtbx4_s8, vqtbx4_u8, vqtbx4_p8)
4474 (vqtbx4q_s8, vqtbx4q_u8, vqtbx4q_p8): Rewrite using builtin
4477 2015-11-06 Mike Stump <mikestump@comcast.net>
4480 * dwarf2out.c (get_full_len): Return a value based upon the actual
4481 precision needed for the value.
4482 (add_const_value_attribute): Use a maximal wide-int for
4483 CONST_WIDE_INTs, not VOIDmode.
4484 (output_die): Don't ever output NULL with printf.
4486 * rtl.h (get_precision of rtx_mode_t): Ensure we never process
4487 BLKmode nor VOIDmode values.
4489 2015-11-06 David Malcolm <dmalcolm@redhat.com>
4491 * diagnostic-color.c (color_dict): Eliminate "caret"; add "range1"
4493 (parse_gcc_colors): Update comment to describe default GCC_COLORS.
4494 * diagnostic-core.h (warning_at_rich_loc): New declaration.
4495 (error_at_rich_loc): New declaration.
4496 (permerror_at_rich_loc): New declaration.
4497 (inform_at_rich_loc): New declaration.
4498 * diagnostic-show-locus.c (adjust_line): Delete.
4499 (struct point_state): New struct.
4500 (class colorizer): New class.
4501 (class layout_point): New class.
4502 (class layout_range): New class.
4503 (struct line_bounds): New.
4504 (class layout): New class.
4505 (colorizer::colorizer): New ctor.
4506 (colorizer::~colorizer): New dtor.
4507 (layout::layout): New ctor.
4508 (layout::print_source_line): New method.
4509 (layout::print_annotation_line): New method.
4510 (layout::get_state_at_point): New method.
4511 (layout::get_x_bound_for_row): New method.
4512 (diagnostic_show_locus): Reimplement in terms of class layout.
4513 (diagnostic_print_caret_line): Delete.
4514 * diagnostic.c (diagnostic_initialize): Replace
4515 MAX_LOCATIONS_PER_MESSAGE with rich_location::MAX_RANGES.
4516 (diagnostic_set_info_translated): Convert param from location_t
4517 to rich_location *. Eliminate calls to set_location on the
4518 message in favor of storing the rich_location ptr there.
4519 (diagnostic_set_info): Convert param from location_t to
4521 (diagnostic_build_prefix): Break out array into...
4522 (diagnostic_kind_color): New variable.
4523 (diagnostic_get_color_for_kind): New function.
4524 (diagnostic_report_diagnostic): Colorize the option_text
4525 using the color for the severity.
4526 (diagnostic_append_note): Update for change in signature of
4527 diagnostic_set_info.
4528 (diagnostic_append_note_at_rich_loc): New function.
4529 (emit_diagnostic): Update for change in signature of
4530 diagnostic_set_info.
4532 (inform_at_rich_loc): New function.
4533 (inform_n): Update for change in signature of diagnostic_set_info.
4534 (warning): Likewise.
4535 (warning_at): Likewise.
4536 (warning_at_rich_loc): New function.
4537 (warning_n): Update for change in signature of diagnostic_set_info.
4538 (pedwarn): Likewise.
4539 (permerror): Likewise.
4540 (permerror_at_rich_loc): New function.
4541 (error): Update for change in signature of diagnostic_set_info.
4542 (error_n): Likewise.
4543 (error_at): Likewise.
4544 (error_at_rich_loc): New function.
4545 (sorry): Update for change in signature of diagnostic_set_info.
4546 (fatal_error): Likewise.
4547 (internal_error): Likewise.
4548 (internal_error_no_backtrace): Likewise.
4549 (source_range::debug): New function.
4550 * diagnostic.h (struct diagnostic_info): Eliminate field
4551 "override_column". Add field "richloc".
4552 (struct diagnostic_context): Add field "colorize_source_p".
4553 (diagnostic_override_column): Delete.
4554 (diagnostic_set_info): Convert param from location_t to
4556 (diagnostic_set_info_translated): Likewise.
4557 (diagnostic_append_note_at_rich_loc): New function.
4558 (diagnostic_num_locations): New function.
4559 (diagnostic_expand_location): Get the location from the
4561 (diagnostic_print_caret_line): Delete.
4562 (diagnostic_get_color_for_kind): New declaration.
4563 * genmatch.c (linemap_client_expand_location_to_spelling_point): New.
4564 (error_cb): Update for change in signature of "error" callback.
4565 (fatal_at): Likewise.
4566 (warning_at): Likewise.
4567 * input.c (linemap_client_expand_location_to_spelling_point): New.
4568 * pretty-print.c (text_info::set_range): New method.
4569 (text_info::get_location): New method.
4570 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): Eliminate this macro.
4571 (struct text_info): Eliminate "locations" array in favor of
4572 "m_richloc", a rich_location *.
4573 (textinfo::set_location): Add a "caret_p" param, and reimplement
4574 in terms of a call to set_range.
4575 (textinfo::get_location): Eliminate inline implementation in favor of
4576 an out-of-line reimplementation.
4577 (textinfo::set_range): New method.
4578 * rtl-error.c (diagnostic_for_asm): Update for change in signature
4579 of diagnostic_set_info.
4580 * tree-diagnostic.c (default_tree_printer): Update for new
4581 "caret_p" param for textinfo::set_location.
4582 * tree-pretty-print.c (percent_K_format): Likewise.
4584 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4587 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4588 * config/aarch64/aarch64.c
4589 (aarch64_can_use_per_function_literal_pools_p): New.
4590 (aarch64_use_blocks_for_constant_p): Adjust declaration
4591 and use aarch64_can_use_function_literal_pools_p.
4592 (aarch64_select_rtx_section): Update.
4594 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4596 * config/arm/arm-ldmstm.ml: Rewrite to generate unified asm templates.
4597 * config/arm/arm.c (arm_asm_trampoline_template): Make unified asm safe.
4598 (arm_output_multireg_pop): Likewise.
4599 (output_move_double): Likewise.
4600 (output_move_quad): Likewise.
4601 (output_return_instruction): Likewise.
4602 (arm_print_operand): Remove support for %( and %. print modifiers.
4603 (arm_output_shift): Make unified asm.
4604 (arm_declare_function_name): Likewise.
4605 * config/arm/arm.h (TARGET_UNIFIED_ASM): Delete.
4606 (ASM_APP_OFF): Adjust.
4607 (ASM_OUTPUT_REG_PUSH): Undo special casing for TARGET_ARM.
4608 (ASM_OUTPUT_REG_POP): Likewise.
4609 * config/arm/arm.md: Adjust uses of %., %(, %)
4610 * config/arm/sync.md: Likewise.
4611 * config/arm/thumb2.md: Likewise.
4612 * config/arm/ldmstm.md: Regenerate.
4613 * config/arm/arm.opt (masm-unified-syntax): Do not special case Thumb.
4614 * doc/invoke.texi (masm-unified-syntax): Update documentation.
4616 2015-11-06 David Malcolm <dmalcolm@redhat.com>
4618 * input.c (dump_line_table_statistics): Dump stats on adhoc table.
4620 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
4622 * tree-core.h (size_type_kind): Remove OEP_CONSTANT_ADDRESS_OF and
4623 add OEP_MATCH_SIDE_EFFECTS.
4624 * fold-const.c (operand_equal_p): Update documentation; handle
4625 OEP_MATCH_SIDE_EFFECTS.
4626 * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Use
4627 OEP_MATCH_SIDE_EFFECTS.
4629 2015-11-06 Benedikt Huber <benedikt.huber@theobroma-systems.com>
4630 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
4632 * config/aarch64/aarch64-builtins.c: Builtins for rsqrt and rsqrtf.
4633 * config/aarch64/aarch64-protos.h: Declare.
4634 * config/aarch64/aarch64-simd.md: Matching expressions for frsqrte and
4636 * config/aarch64/aarch64-tuning-flags.def: Added recip_sqrt.
4637 * config/aarch64/aarch64.c: New functions. Emit rsqrt estimation
4638 code when applicable.
4639 * config/aarch64/aarch64.md: Added enum entries.
4640 * config/aarch64/aarch64.opt: Added option -mlow-precision-recip-sqrt.
4642 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
4646 * ipa-polymorphic-call.c
4647 (ipa_polymorphic_call_context::restrict_to_inner_type): Fix ordering
4648 issue when offset is out of range.
4649 (contains_type_p): Fix out of range check, clear dynamic flag.
4651 2015-11-06 Arnout Vandecappelle <arnout@mind.be>
4653 * config.gcc (e6500): Fix cpu_is_64bit typo.
4655 2015-11-06 Alan Lawrence <alan.lawrence@arm.com>
4657 * tree-sra.c (completely_scalarize): Properly handle negative array
4658 indices using offset_int.
4660 2015-11-06 Richard Biener <rguenther@suse.de>
4662 * alloc-pool.h (object_allocator::allocate): Default-initialize
4665 2015-11-06 Richard Biener <rguenther@suse.de>
4667 * tree-ssa-sccvn.c (class sccvn_dom_walker): Add destructor.
4668 * lra.c (init_reg_info): Truncate copy_vec instead of
4669 re-allocating a new one and leaking the old.
4670 * ipa-inline-analysis.c (estimate_function_body_sizes): Free
4672 * sched-deps.c (sched_deps_finish): Free the dn/dl pools.
4673 * postreload-gcse.c (free_mem): Free modify_mem_list and
4674 canon_modify_mem_list.
4676 2015-11-06 Ilya Enkovich <enkovich.gnu@gmail.com>
4678 PR tree-optimization/68145
4679 * tree-vect-stmts.c (vectorizable_operation): Fix
4680 determination for booleans.
4682 2015-11-06 Tom de Vries <tom@codesourcery.com>
4684 * tree-cfg.c (gimple_split_block_before_cond_jump): Split before
4685 cond_jump, instead of split after last nondebug insn before cond_jump.
4686 * tree-parloops.c (transform_to_exit_first_loop_alt): Verify ssa before
4689 2015-11-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4692 * config/arm/aarch-common.c (aarch_accumulator_forwarding): Strip
4693 subregs from accumulator and make sure it's a register.
4695 2015-11-06 Simon Dardis <simon.dardis@imgtec.com>
4697 * config/mips/loongson.md (vec_loongson_extract_lo_<mode>): New, extract
4699 (reduc_uplus_<mode>): Remove.
4700 (reduc_plus_scal_<mode>): Rename from reduc_splus_<mode>, Use vec
4701 loongson_extract_lo_<mode>.
4702 (reduc_smax_scal_<mode>, reduc_smin_scal_<mode>): Rename from
4703 reduc_smax_<mode>, reduc_smax_<mode>, use vec
4704 loongson_extract_lo_<mode>.
4705 (reduc_umax_scal_<mode>, reduc_umin_scal_<mode>): Rename.
4707 2015-11-06 Richard Biener <rguenther@suse.de>
4709 * tree-vectorizer.h (struct _bb_vec_info): Add region_begin/end
4711 (vect_stmt_in_region_p): Declare.
4712 * tree-vect-slp.c (new_bb_vec_info): Work on a region.
4713 (destroy_bb_vec_info): Likewise.
4714 (vect_bb_slp_scalar_cost): Use vect_stmt_in_region_p.
4715 (vect_get_and_check_slp_defs): Likewise.
4716 (vect_slp_analyze_bb_1): Refactor to make it work on sub-BBs.
4717 (vect_slp_bb): Likewise.
4718 * tree-vect-patterns.c (vect_same_loop_or_bb_p): Implement
4719 in terms of vect_stmt_in_region_p.
4720 (vect_pattern_recog): Iterate over the BB region.
4721 * tree-vect-stmts.c (vect_is_simple_use): Use vect_stmt_in_region_p.
4722 * tree-vectorizer.c (vect_stmt_in_region_p): New function.
4723 (pass_slp_vectorize::execute): Initialize all stmt UIDs to -1.
4724 * config/i386/i386.c: Include gimple-iterator.h.
4725 * config/aarch64/aarch64.c: Likewise.
4727 2015-11-06 Alexandre Oliva <aoliva@redhat.com>
4729 PR rtl-optimization/67753
4730 PR rtl-optimization/64164
4731 * function.c (assign_parm_setup_block): Avoid allocating a
4732 stack slot if we don't have an ABI-reserved one. Emit the
4733 copy to target_reg in the conversion seq if the copy from
4734 entry_parm is in it too. Don't use the conversion seq to copy
4735 a PARALLEL to a REG or a CONCAT.
4737 2015-11-06 Richard Biener <rguenther@suse.de>
4739 * tree-hash-traits.h (tree_operand_hash): Provide equal, not
4742 2015-11-05 Cesar Philippidis <cesar@codesourcery.com>
4743 Thomas Schwinge <thomas@codesourcery.com>
4744 James Norris <jnorris@codesourcery.com>
4747 * gimplify.c (gimplify_scan_omp_clauses): Add support for
4748 OMP_CLAUSE_TILE. Update handling of OMP_CLAUSE_INDEPENDENT.
4749 (gimplify_adjust_omp_clauses): Likewise.
4750 * omp-low.c (scan_sharing_clauses): Add support for OMP_CLAUSE_TILE.
4751 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_TILE.
4752 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_TILE.
4753 * tree.c (omp_clause_num_ops): Add an entry for OMP_CLAUSE_TILE.
4754 (omp_clause_code_name): Likewise.
4755 (walk_tree_1): Handle OMP_CLAUSE_TILE.
4756 * tree.h (OMP_TILE_LIST): New macro.
4758 2015-11-05 Martin Sebor <msebor@redhat.com>
4761 * doc/invoke.texi (-Wplacement-new): Document new option.
4763 2015-11-05 Alan Lawrence <alan.lawrence@arm.com>
4765 PR tree-optimization/65963
4766 * tree-scalar-evolution.c (interpret_rhs_expr): Try to handle
4767 LSHIFT_EXPRs as equivalent unsigned MULT_EXPRs.
4769 2015-11-05 James Greenhalgh <james.greenhalgh@arm.com>
4771 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): New.
4772 (noce_convert_multiple_sets): Likewise.
4773 (noce_process_if_block): Call them.
4775 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
4777 * gimple-fold.c: Include omp-low.h.
4778 (fold_internal_goacc_dim): New.
4779 (gimple_fold_call): Call it.
4781 2015-11-05 Jakub Jelinek <jakub@redhat.com>
4782 Ilya Verbin <ilya.verbin@intel.com>
4785 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR): Remove.
4786 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): New.
4787 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
4788 SIMD_CLONE_ARG_TYPE_LINEAR_REF_VARIABLE_STEP,
4789 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP and
4790 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP.
4791 (struct cgraph_simd_clone_arg): Adjust comment.
4792 * omp-builtins.def (BUILT_IN_GOMP_TARGET): Rename GOMP_target_41
4793 to GOMP_target_ext. Add num_teams and thread_limit arguments.
4794 (BUILT_IN_GOMP_TARGET_DATA): Rename GOMP_target_data_41
4795 to GOMP_target_data_ext.
4796 (BUILT_IN_GOMP_TARGET_UPDATE): Rename GOMP_target_update_41
4797 to GOMP_target_update_ext.
4798 (BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_START,
4799 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_START,
4800 BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_NEXT,
4801 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_NEXT,
4802 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_START,
4803 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_START,
4804 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_NEXT,
4805 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_NEXT,
4806 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_DYNAMIC,
4807 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_GUIDED): New built-ins.
4808 * tree-core.h (enum omp_clause_schedule_kind): Add
4809 OMP_CLAUSE_SCHEDULE_MASK, OMP_CLAUSE_SCHEDULE_MONOTONIC,
4810 OMP_CLAUSE_SCHEDULE_NONMONOTONIC and change
4811 OMP_CLAUSE_SCHEDULE_LAST value.
4812 * tree.def (OMP_SIMD, CILK_SIMD, CILK_FOR, OMP_DISTRIBUTE,
4813 OMP_TASKLOOP, OACC_LOOP): Add OMP_FOR_ORIG_DECLS argument.
4814 * tree.h (OMP_FOR_ORIG_DECLS): Use OMP_LOOP_CHECK instead of
4815 OMP_FOR_CHECK. Remove comment.
4816 * tree-pretty-print.c (dump_omp_clause): Handle
4817 GOMP_MAP_FIRSTPRIVATE_REFERENCE and GOMP_MAP_ALWAYS_POINTER.
4818 Simplify. Print schedule clause modifiers.
4819 * tree-vect-stmts.c (vectorizable_simd_clone_call): Add
4820 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_VARIABLE_STEP
4822 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_ALWAYS_TO.
4823 (omp_default_clause): Tweak for
4824 private/firstprivate/is_device_ptr variables on target
4825 construct and use_device_ptr on target data.
4826 (omp_check_private): Likewise.
4827 (omp_notice_variable): For references check whether what it refers
4828 to has mappable type, rather than the reference itself.
4829 (omp_is_private): Diagnose linear iteration variables on non-simd
4831 (omp_no_lastprivate): Return true only for Fortran.
4832 (gimplify_scan_omp_clauses): Or in GOVD_MAP_ALWAYS_TO for
4833 GOMP_MAP_ALWAYS_TO or GOMP_MAP_ALWAYS_TOFROM kinds.
4834 Add support for GOMP_MAP_FIRSTPRIVATE_REFERENCE and
4835 GOMP_MAP_ALWAYS_POINTER, remove old handling of structure element
4836 based array sections. Use GOMP_MAP_ALWAYS_P. Fix up handling of
4837 lastprivate and linear when combined with distribute. Gimplify
4838 variable low-bound for array reduction. Look through
4839 POINTER_PLUS_EXPR when looking for ADDR_EXPR for array section
4841 (gimplify_adjust_omp_clauses_1): For implicit references to
4842 variables with reference type and when not ref to scalar or
4843 ref to pointer, map what they refer to using tofrom and
4844 use GOMP_MAP_FIRSTPRIVATE_REFERENCE for the reference.
4845 (gimplify_adjust_omp_clauses): Remove GOMP_MAP_ALWAYS_POINTER
4846 from target exit data. Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE.
4847 Drop OMP_CLAUSE_MAP_PRIVATE support. Use GOMP_MAP_ALWAYS_P.
4848 Diagnose the same var on both firstprivate and lastprivate on
4849 distribute construct.
4850 (gimplify_omp_for): Fix up handling of predetermined
4851 lastprivate or linear iter vars when combined with distribute.
4852 (find_omp_teams, computable_teams_clause, optimize_target_teams): New
4854 (gimplify_omp_workshare): Call optimize_target_teams.
4855 * omp-low.c (struct omp_region): Add sched_modifiers field.
4856 (struct omp_for_data): Likewise.
4857 (omp_any_child_fn_dumped): New variable.
4858 (extract_omp_for_data): Fill in sched_modifiers, and mask out
4859 OMP_CLAUSE_SCHEDULE_KIND bits outside of OMP_CLAUSE_SCHEDULE_MASK
4861 (determine_parallel_type): Use only OMP_CLAUSE_SCHEDULE_MASK
4862 bits of OMP_CLAUSE_SCHED_KIND.
4863 (scan_sharing_clauses): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE,
4864 drop OMP_CLAUSE_MAP_PRIVATE support. Look through POINTER_PLUS_EXPR
4865 for array section reductions.
4866 (add_taskreg_looptemp_clauses): Add one extra _looptemp_ clause even
4867 for distribute parallel for, if there are lastprivate clauses on the
4869 (lower_rec_input_clauses): Handle non-zero low-bound on array
4871 (lower_reduction_clauses): Likewise.
4872 (lower_send_clauses): Look through POINTER_PLUS_EXPR
4873 for array section reductions.
4874 (expand_parallel_call): Use nonmonotonic entrypoints for
4875 nonmonotonic: dynamic/guided.
4876 (expand_omp_taskreg): Call assign_assembler_name_if_neeeded on
4877 child_fn if current_function_decl has assembler name set, but child_fn
4878 does not. Dump the header and IL of the child function when not in SSA
4880 (expand_omp_target): Likewise. Pass num_teams and thread_limit
4881 arguments to BUILT_IN_GOMP_TARGET.
4882 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
4883 Initialize the extra _looptemp_ clause to fd->loop.n2.
4884 (expand_omp_for): Use nonmonotonic entrypoints for
4885 nonmonotonic: dynamic/guided. Initialize region->sched_modifiers.
4886 (expand_omp): Clear omp_any_child_fn_dumped. Dump function header
4887 again if we have dumped any child functions.
4888 (lower_omp_for_lastprivate): Determine the right count variable
4889 for distribute simd, or distribute parallel for{, simd}.
4890 (lower_omp_target): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE
4891 and GOMP_MAP_ALWAYS_POINTER. Drop OMP_CLAUSE_MAP_PRIVATE
4893 (simd_clone_clauses_extract): Handle variable step
4894 for references and arguments passed by reference.
4895 (simd_clone_mangle): Mangle ref/uval/val variable steps.
4896 (simd_clone_adjust_argument_types): Handle
4897 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP like
4898 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
4899 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP like
4900 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
4901 (simd_clone_linear_addend): New function.
4902 (simd_clone_adjust): Handle variable step like similarly
4903 to constant step, use simd_clone_linear_addend to determine
4904 the actual step at runtime.
4906 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
4908 * target.def (goacc.dim_limit): New hook.
4909 * targhooks.h (default_goacc_dim_limit): Declare.
4910 * doc/tm.texi.in (TARGET_GOACC_DIM_LIMIT): Add.
4911 * doc/tm.texi: Rebuilt.
4912 * omp-low.h (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): Declare.
4913 * omp-low.c (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): New.
4914 (default_goacc_dim_limit): New.
4915 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
4916 (nvptx_goacc_dim_limit) New.
4917 (TARGET_GOACC_DIM_LIMIT): Override.
4918 * tree-vrp.c: Include omp-low.h, target.h.
4919 (extract_range_basic): Add handling for IFN_GOACC_DIM_SIZE &
4922 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
4924 * tree-vect-generic.c (do_compare): Use -1 for true
4925 result instead of 1.
4927 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4929 * config/aarch64/aarch64.c
4930 (aarch64_can_use_per_function_literal_pools_p): New.
4931 (aarch64_use_blocks_for_constant_p): Adjust declaration
4932 and use aarch64_can_use_function_literal_pools_p.
4933 (aarch64_select_rtx_section): Update.
4935 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
4937 * targhooks.c (default_get_mask_mode): Use BLKmode in
4938 case target doesn't support required vector mode.
4939 * stor-layout.c (layout_type); Check for BLKmode.
4941 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
4942 Sebastian Pop <s.pop@samsung.com>
4944 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
4945 Remove use of parameter_rename_map.
4947 (copy_internal_parameters): Remove.
4948 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
4949 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
4950 (free_sese_info): Do not free parameter_rename_map.
4951 (set_rename): Do not use parameter_rename_map.
4952 (rename_uses): Update call to set_rename.
4953 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
4954 * sese.h (parameter_rename_map_t): Remove.
4955 (struct sese_info_t): Remove field parameter_rename_map.
4957 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
4958 Sebastian Pop <s.pop@samsung.com>
4960 * graphite-isl-ast-to-gimple.c: Include tree-cfg.h.
4961 (translate_isl_ast_node_user): Add more dumps: call print_loops_bb.
4962 * graphite-scop-detection.c (dot_all_scops_1): Moved out of
4963 anonymous namespace.
4964 * graphite-sese-to-poly.c (ssa_name_version_typesize): Remove.
4965 (isl_id_for_pbb): Use a buffer of size 10.
4966 (isl_id_for_ssa_name): Same.
4967 * sese.c (set_rename): Add more dumps.
4969 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
4971 * omp-low.c (struct omp_context): Remove reduction_map field.
4972 (lookup_oacc_reduction, maybe_lookup_oacc_reduction): Delete.
4973 (new_omp_context, delete_omp_context, scan_omp_target): Remove
4974 reduction_map handling.
4975 (lower_omp_target): Remove obsolete openacc reduction handling.
4977 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
4979 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add checking.
4981 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
4982 Cesar Philippidis <cesar@codesourcery.com>
4984 * config/nvptx/nvptx.c: Include gimple headers.
4985 (worker_red_size, worker_red_align, worker_red_name,
4986 worker_red_sym): New.
4987 (nvptx_option_override): Initialize worker reduction buffer.
4988 (nvptx_file_end): Write out worker reduction buffer var.
4989 (nvptx_expand_shuffle, nvptx_expand_worker_addr,
4990 nvptx_expand_cmp_swap): New builtin expanders.
4991 (enum nvptx_builtins): New.
4992 (nvptx_builtin_decls): New.
4993 (nvptx_builtin_decl, nvptx_init_builtins, nvptx_expand_builtin): New
4994 (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
4995 (nvptx_get_worker_red_addr, nvptx_generate_vector_shuffle,
4996 nvptx_lockless_update): New helpers.
4997 (nvptx_goacc_reduction_setup, nvptx_goacc_reduction_init,
4998 nvptx_goacc_reduction_fini, nvptx_goacc_reduction_teaddown): New.
4999 (nvptx_goacc_reduction): New.
5000 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN,
5001 TARGET_BUILTIN_DECL): Override.
5002 (TARGET_GOACC_REDUCTION): Override.
5004 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
5005 Cesar Philippidis <cesar@codesourcery.com>
5007 * internal-fn.def (GOACC_REDUCTION): New.
5008 * internal-fn.h (enum ifn_goacc_reduction_kind): New.
5009 * internal-fn.c (expand_GOACC_REDUCTION): New.
5010 * target.def (goacc.reduction): New OpenACC hook.
5011 * targhooks.h (default_goacc_reduction): Declare.
5012 * doc/tm.texi.in: Add TARGET_GOACC_REDUCTION.
5013 * doc/tm.texi: Rebuilt.
5014 * omp-low.c (oacc_get_reduction_array_id, oacc_max_threads,
5015 scan_sharing_clauses): Remove oacc reduction handling here.
5016 (lower_rec_input_clauses): Don't handle OpenACC reductions here.
5017 (oacc_lower_reduction_var_helper): Delete.
5018 (lower_oacc_reductions): New.
5019 (lower_reduction_clauses): Don't handle OpenACC reductions here.
5020 (lower_oacc_head_tail): Call lower_oacc_reductions.
5021 (oacc_gimple_assign, oacc_init_reduction_array,
5022 oacc_initialize_reduction_data, oacc_finalize_reduction_data,
5023 oacc_process_reduction_data): Delete.
5024 (lower_omp_target): Remove old OpenACC reduction handling. Insert
5025 dummy OpenACC gang reduction for reductions at outer level.
5026 (oacc_loop_xform_head_tail): Transform IFN_GOACC_REDUCTION.
5027 (default_goacc_reduction): New.
5028 (execute_oacc_device_lower): Handle IFN_GOACC_REDUCTION.
5030 2015-11-04 Martin Liska <mliska@suse.cz>
5032 * cgraphunit.c (cgraph_node::expand_thunk): Call
5033 allocate_struct_function before init_function_start.
5034 (cgraph_node::expand): Use push_cfun and pop_cfun.
5035 * config/i386/i386.c (ix86_code_end): Call
5036 allocate_struct_function before init_function_start.
5037 * config/rs6000/rs6000.c (rs6000_code_end): Likewise.
5038 * function.c (init_function_start): Move preamble to all
5040 * passes.c (do_per_function_toporder): Use push_cfun and pop_cfun.
5041 (execute_one_pass): Handle newly added TODO_discard_function.
5042 (execute_pass_list_1): Terminate if cfun equals to NULL.
5043 (execute_pass_list): Do not push and pop cfun, expect that
5045 * tree-pass.h (TODO_discard_function): Define.
5047 2015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
5049 * cfganal.c (inverted_post_order_compute): Remove conditional
5050 compilation, use flag_checking.
5051 * config.in: Regenerate.
5052 * configure: Regenerate.
5053 * configure.ac: Remove ENABLE_CHECKING.
5054 * genconditions.c: Do not #undef ENABLE_CHECKING.
5055 * sese.h (bb_in_region): Comment out broken check.
5056 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa_1): Remove
5057 conditional compilation, use flag_checking.
5059 2015-11-04 Tom de Vries <tom@codesourcery.com>
5061 PR tree-optimization/67742
5062 * tree-ssa-structalias.c (struct fieldoff): Add restrict_pointed_type
5064 (push_fields_onto_fieldstack): Handle restrict_pointed_type field.
5065 (create_variable_info_for_1): Add and handle handle_param parameter.
5066 Add restrict handling.
5067 (create_variable_info_for): Call create_variable_info_for_1 with extra
5069 (make_param_constraints): Drop restrict_name parameter. Ignore
5070 vi->only_restrict_pointers.
5071 (intra_create_variable_infos): Call create_variable_info_for_1 with
5072 extra arg. Remove restrict handling. Call make_param_constraints with
5075 2015-11-04 Tom de Vries <tom@codesourcery.com>
5077 * tree-ssa-structalias.c (create_variable_info_for_1): Use decl_type
5080 2015-11-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5082 * config/arm/coff.h: Remove.
5084 2015-11-03 Eric Botcazou <ebotcazou@adacore.com>
5086 * gimple-expr.c (useless_type_conversion_p): Reinstate type canonical
5087 check for aggregate types and beef up comment for mode check.
5089 2015-11-03 Richard Biener <rguenther@suse.de>
5091 * tree-vect-data-refs.c (vect_analyze_data_refs): Do not collect
5092 data references here.
5093 * tree-vect-loop.c: Include cgraph.h.
5094 (vect_analyze_loop_2): Collect data references here.
5095 * tree-vect-slp.c (find_bb_location): Inline ...
5096 (vect_slp_bb): ... here. Renamed from vect_slp_analyze_bb.
5097 Factor in vect_slp_transform_bb.
5098 (vect_slp_transform_bb): Removed.
5099 (vect_slp_analyze_bb_1): Collect data references here.
5100 * tree-vectorizer.c (pass_slp_vectorize::execute): Call
5102 * tree-vectorizer.h (vect_slp_bb): Declare.
5103 (vect_slp_analyze_bb): Remove.
5104 (vect_slp_transform_bb): Remove.
5105 (find_bb_location): Remove.
5106 (vect_analyze_data_refs): Remove stmt count reference parameter.
5108 2015-11-03 Evgeny Stupachenko <evstupac@gmail.com>
5110 * multiple_target.c (create_dispatcher_calls): Add target check
5112 (create_target_clone): Change assembler name for versioned declarations.
5114 2015-11-03 Thomas Schwinge <thomas@codesourcery.com>
5115 Chung-Lin Tang <cltang@codesourcery.com>
5117 * builtins.def (DEF_GOMP_BUILTIN): Enable for flag_openacc.
5118 * omp-low.c (check_omp_nesting_restrictions): Allow
5119 GIMPLE_OMP_ATOMIC_LOAD, GIMPLE_OMP_ATOMIC_STORE inside OpenACC
5122 2015-11-03 Bilyan Borisov <bilyan.borisov@arm.com>
5124 * config/aarch64/aarch64-simd-builtins.def (fmulx): New.
5125 * config/aarch64/aarch64-simd.md (aarch64_fmulx<mode>): New.
5126 * config/aarch64/arm_neon.h (vmulx_f32): Rewrite to call fmulx
5128 (vmulxq_f32): Likewise.
5130 (vmulxq_f64): Rewrite to call fmulx builtin.
5131 (vmulxs_f32): Likewise.
5132 (vmulxd_f64): Likewise.
5133 (vmulx_lane_f32): Remove.
5134 * config/aarch64/iterators.md (UNSPEC): Add fmulx.
5136 2015-11-03 Alan Lawrence <alan.lawrence@arm.com>
5138 * config/aarch64/aarch64.md (*movhf_aarch64): Use
5139 aarch64_reg_or_fp_zero for second operand.
5141 2015-11-03 Alexandre Oliva <aoliva@redhat.com>
5143 * gimple-expr.c: Include hash-set.h and rtl.h.
5144 (mark_addressable_queue): New var.
5145 (mark_addressable): Factor actual marking into...
5146 (mark_addressable_1): ... this. Queue it up during expand.
5147 (mark_addressable_2): New.
5148 (flush_mark_addressable_queue): New.
5149 * gimple-expr.h (flush_mark_addressable_queue): Declare.
5150 * cfgexpand.c: Include gimple-expr.h.
5151 (pass_expand::execute): Flush mark_addressable queue.
5153 2015-11-02 Alexandre Oliva <aoliva@redhat.com>
5155 * tree-ssa-ifcombine.c (tree_ssa_ifcombine_bb_1): Factor out
5156 bb_no_side_effects_p tests...
5157 (tree_ssa_ifcombine_bb): ... here.
5159 PR tree-optimization/68083
5160 * tree-ssa-ifcombine.c: Include tree-ssa.h.
5161 (bb_no_side_effects_p): Test for undefined uses too.
5162 * tree-ssa.c (gimple_uses_undefined_value_p): New.
5163 * tree-ssa.h (gimple_uses_undefined_value_p): Declare.
5165 2015-11-02 Jeff Law <law@redhat.com>
5167 * tree-ssa-threadupdate.c (valid_jump_thread_path): Also detect
5168 cases where the loop latch edge is in the middle of an FSM path.
5170 2015-11-03 Tom de Vries <tom@codesourcery.com>
5172 * tree-ssa-structalias.c (make_restrict_var_constraints): Rename to ...
5173 (make_param_constraints): ... this. Add and handle restrict_name
5174 parameter. Handle is_full_var case.
5175 (intra_create_variable_infos): Use make_param_constraints.
5177 2015-11-03 Tom de Vries <tom@codesourcery.com>
5179 * tree-ssa-structalias.c (make_restrict_var_constraints): Replace
5180 make_copy_constraint call with make_constraint_from call.
5182 2015-11-02 Andreas Tobler <andreast@gcc.gnu.org>
5184 * config/rs6000/freebsd64.h (ASM_SPEC32): Adust spec to handle
5187 2015-11-02 Richard Sandiford <richard.sandiford@arm.com>
5189 * builtins.h (fold_fma): Move to fold-const-call.h.
5190 * builtins.c: Include fold-const-call.h.
5191 (mathfn_built_in_2): New function, split out from...
5192 (mathfn_built_in_1): ...here.
5193 (do_real_to_int_conversion, fold_const_builtin_pow)
5194 (fold_const_builtin_logb, fold_const_builtin_significand)
5195 (fold_const_builtin_load_exponent, do_mpfr_arg1, do_mpfr_arg2)
5196 (do_mpfr_arg3, do_mpfr_sincos, do_mpfr_bessel_n, do_mpc_arg1): Delete.
5197 (fold_builtin_sincos): Use fold_const_call to handle constants.
5198 (fold_builtin_1, fold_builtin_2, fold_builtin_3): Add explicit
5199 checks for ERROR_MARK. Use fold_const_call to handle constant
5200 folds for math functions.
5201 (fold_fma): Move to fold-const-call.c.
5202 * fold-const.c: Include fold-const-call.h.
5203 * Makefile.in (OBJS): Add fold-const-call.o.
5204 (PLUGIN_HEADERS): Add fold-const-call.h.
5205 * realmpfr.h (real_from_mpfr): Allow the format to be specified
5207 * realmpfr.c (real_from_mpfr): Likewise.
5208 * fold-const-call.h, fold-const-call.c: New files.
5210 2015-11-02 Julian Brown <julian@codesourcery.com>
5212 * config/arm/neon-testgen.ml (emit_epilogue): Remove extraneous
5213 brackets and semicolon.
5215 2015-11-02 Alan Lawrence <alan.lawrence@arm.com>
5218 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
5220 PR tree-optimization/65963
5221 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
5222 LSHIFT_EXPRs as equivalent MULT_EXPRs.
5224 2015-11-02 Thomas Schwinge <thomas@codesourcery.com>
5227 * fold-const.c: Include "md5.h".
5229 2015-11-01 Jeff Law <law@redhat.com>
5231 * vmsdbgout.c: Revert unused header file reduction patch.
5233 * config/mcore/mcore.c: Include regs.h.
5235 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
5237 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Rewrite.
5239 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
5241 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Use the
5242 same condition for testing whether RS6000_PIC_OFFSET_TABLE_REGNUM is
5243 live as for using it elsewhere, for TARGET_MINIMAL_TOC.
5245 2015-10-31 Markus Trippelsdorf <markus@trippelsdorf.de>
5247 * ggc-common.c: Restore needed header for checking=release.
5249 2015-10-31 Tom de Vries <tom@codesourcery.com>
5251 * fold-const.c (fold_unary_loc): Tune POINTER_PLUS_EXPR folding.
5253 2015-10-31 Tom de Vries <tom@codesourcery.com>
5255 * tree-ssa-structalias.c (intra_create_variable_infos): Don't expect
5256 existing varinfo for arguments.
5258 2015-10-31 Tom de Vries <tom@codesourcery.com>
5260 * tree-ssa-structalias.c (ipa_pta_execute): Add extra arg to call to
5261 create_function_info_for. Dump constraints generated during
5262 create_function_info_for. Move intra_create_variable_infos call and
5263 function-return-values-escape bit to ...
5264 (create_function_info_for): ... here, and merge
5265 intra_create_variable_infos call with argument loop. Add and handle
5266 nonlocal_p parameter.
5268 2015-10-31 Tom de Vries <tom@codesourcery.com>
5270 * tree-ssa-structalias.c (create_function_info_for): Make sure prev_vi
5271 updating is alap, and seperated from preceding code. Make sure
5272 insert_vi_for_tree is seperated from surrounding code.
5274 2015-10-31 Tom de Vries <tom@codesourcery.com>
5276 * tree-ssa-structalias.c (ipa_pta_execute): Use make_copy_constraint.
5278 2015-10-30 Jeff Law <law@redhat.com>
5279 Nathan Sidwell <nathan@acm.org>
5281 * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Avoid warning on unused
5283 (MOVE_MAX): Set to 8.
5285 2015-10-30 Cesar Philippidis <cesar@codesourcery.com>
5287 * cgraph.c: Include context.h for offloading.
5288 * varpool.c: Include context.h and omp-low.h.
5290 2015-10-30 Anatoly Sokolov <aesok@post.ru>
5292 * rtl.h (contains_symbol_ref_p): Declare.
5293 (SYMBOL_REF_P): Define.
5294 * rtlanal.c (contains_symbol_ref_p: New function.
5295 * lra-constraints.c (contains_symbol_ref_p): Remove.
5296 * var-tracking.c (contains_symbol_ref): Remove.
5297 (track_expr_p): Use contains_symbol_ref_p instead of
5298 contains_symbol_ref.
5300 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
5302 * gimple-fold.c (fold_array_ctor_reference): Move searching code to:
5303 * fold-const.c (get_array_ctor_element_at_index): New.
5304 (fold): Remove binary-search through CONSTRUCTOR, call previous.
5306 * fold-const.h (get_array_ctor_element_at_index): New.
5308 2015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
5310 * Makefile.in (OBJS): Add multiple_target.o.
5311 * attrib.c (make_attribute): Moved from config/i386/i386.c
5312 * config/i386/i386.c (make_attribute): Deleted.
5313 * multiple_target.c (create_dispatcher_calls): New.
5314 (get_attr_len): Ditto.
5315 (get_attr_str): Ditto.
5316 (separate_attrs): Ditto.
5317 (is_valid_asm_symbol): Ditto.
5318 (create_new_asm_name): Ditto.
5319 (create_target_clone): Ditto.
5320 (expand_target_clones): Ditto.
5321 (ipa_target_clone): Ditto.
5322 (ipa_dispatcher_calls): Ditto.
5323 * passes.def (pass_target_clone): Two new ipa passes.
5324 * tree-pass.h (make_pass_target_clone): Ditto.
5325 * doc/extend.texi (target_clones): New attribute description.
5327 2015-10-30 Vladimir Makarov <vmakarov@redhat.com>
5329 PR rtl-optimization/68106
5330 * lra-remat.c (input_regno_present_p): Process hard regs
5331 explicitly present in machine description insns.
5332 (call_used_input_regno_present_p): Ditto.
5333 (calculate_gen_cands): Ditto.
5336 2015-10-30 Jim Wilson <jim.wilson@linaro.org>
5338 * config/arm/neon-testgen.ml: Fix comment typo.
5340 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5342 * rtlanal.c (reg_set_p): Expand function comment.
5344 2015-10-30 Andrew MacLeod <amacleod@redhat.com>
5346 * alias.c: Remove unused headers.
5348 * attribs.c: Likewise.
5349 * auto-inc-dec.c: Likewise.
5350 * auto-profile.c: Likewise.
5351 * bb-reorder.c: Likewise.
5352 * bitmap.c: Likewise.
5353 * bt-load.c: Likewise.
5354 * builtins.c: Likewise.
5355 * caller-save.c: Likewise.
5356 * calls.c: Likewise.
5359 * cfganal.c: Likewise.
5360 * cfgbuild.c: Likewise.
5361 * cfgcleanup.c: Likewise.
5362 * cfgexpand.c: Likewise.
5363 * cfghooks.c: Likewise.
5364 * cfgloop.c: Likewise.
5365 * cfgloopanal.c: Likewise.
5366 * cfgloopmanip.c: Likewise.
5367 * cfgrtl.c: Likewise.
5368 * cgraph.c: Likewise.
5369 * cgraphbuild.c: Likewise.
5370 * cgraphclones.c: Likewise.
5371 * cgraphunit.c: Likewise.
5372 * cilk-common.c: Likewise.
5373 * combine-stack-adj.c: Likewise.
5374 * combine.c: Likewise.
5375 * compare-elim.c: Likewise.
5376 * convert.c: Likewise.
5377 * coverage.c: Likewise.
5378 * cppbuiltin.c: Likewise.
5379 * cprop.c: Likewise.
5381 * cselib.c: Likewise.
5382 * data-streamer-in.c: Likewise.
5383 * data-streamer-out.c: Likewise.
5384 * data-streamer.c: Likewise.
5385 * dbxout.c: Likewise.
5388 * debug.c: Likewise.
5389 * df-core.c: Likewise.
5390 * df-problems.c: Likewise.
5391 * df-scan.c: Likewise.
5393 * dojump.c: Likewise.
5394 * dominance.c: Likewise.
5395 * domwalk.c: Likewise.
5396 * double-int.c: Likewise.
5398 * dumpfile.c: Likewise.
5399 * dwarf2asm.c: Likewise.
5400 * dwarf2cfi.c: Likewise.
5401 * dwarf2out.c: Likewise.
5402 * emit-rtl.c: Likewise.
5403 * except.c: Likewise.
5404 * explow.c: Likewise.
5405 * expmed.c: Likewise.
5407 * final.c: Likewise.
5408 * fixed-value.c: Likewise.
5409 * fold-const.c: Likewise.
5410 * function.c: Likewise.
5411 * fwprop.c: Likewise.
5413 * generic-match-head.c: Likewise.
5414 * ggc-common.c: Likewise.
5415 * gimple-builder.c: Likewise.
5416 * gimple-expr.c: Likewise.
5417 * gimple-fold.c: Likewise.
5418 * gimple-iterator.c: Likewise.
5419 * gimple-low.c: Likewise.
5420 * gimple-match-head.c: Likewise.
5421 * gimple-pretty-print.c: Likewise.
5422 * gimple-ssa-isolate-paths.c: Likewise.
5423 * gimple-ssa-strength-reduction.c: Likewise.
5424 * gimple-streamer-in.c: Likewise.
5425 * gimple-streamer-out.c: Likewise.
5426 * gimple-walk.c: Likewise.
5427 * gimple.c: Likewise.
5428 * gimplify-me.c: Likewise.
5429 * gimplify.c: Likewise.
5430 * godump.c: Likewise.
5431 * graph.c: Likewise.
5432 * graphds.c: Likewise.
5433 * haifa-sched.c: Likewise.
5434 * hw-doloop.c: Likewise.
5435 * ifcvt.c: Likewise.
5436 * init-regs.c: Likewise.
5437 * internal-fn.c: Likewise.
5438 * ipa-chkp.c: Likewise.
5439 * ipa-comdats.c: Likewise.
5440 * ipa-cp.c: Likewise.
5441 * ipa-devirt.c: Likewise.
5442 * ipa-icf-gimple.c: Likewise.
5443 * ipa-icf.c: Likewise.
5444 * ipa-inline-analysis.c: Likewise.
5445 * ipa-inline-transform.c: Likewise.
5446 * ipa-inline.c: Likewise.
5447 * ipa-polymorphic-call.c: Likewise.
5448 * ipa-profile.c: Likewise.
5449 * ipa-prop.c: Likewise.
5450 * ipa-pure-const.c: Likewise.
5451 * ipa-ref.c: Likewise.
5452 * ipa-reference.c: Likewise.
5453 * ipa-split.c: Likewise.
5454 * ipa-utils.c: Likewise.
5455 * ipa-visibility.c: Likewise.
5457 * ira-build.c: Likewise.
5458 * ira-color.c: Likewise.
5459 * ira-conflicts.c: Likewise.
5460 * ira-costs.c: Likewise.
5461 * ira-emit.c: Likewise.
5462 * ira-lives.c: Likewise.
5465 * langhooks.c: Likewise.
5467 * lists.c: Likewise.
5468 * loop-doloop.c: Likewise.
5469 * loop-init.c: Likewise.
5470 * loop-invariant.c: Likewise.
5471 * loop-iv.c: Likewise.
5472 * loop-unroll.c: Likewise.
5473 * lower-subreg.c: Likewise.
5474 * lra-assigns.c: Likewise.
5475 * lra-coalesce.c: Likewise.
5476 * lra-constraints.c: Likewise.
5477 * lra-eliminations.c: Likewise.
5478 * lra-lives.c: Likewise.
5479 * lra-remat.c: Likewise.
5480 * lra-spills.c: Likewise.
5482 * lto-cgraph.c: Likewise.
5483 * lto-compress.c: Likewise.
5484 * lto-opts.c: Likewise.
5485 * lto-section-in.c: Likewise.
5486 * lto-section-out.c: Likewise.
5487 * lto-streamer-in.c: Likewise.
5488 * lto-streamer-out.c: Likewise.
5489 * lto-streamer.c: Likewise.
5491 * mode-switching.c: Likewise.
5492 * modulo-sched.c: Likewise.
5493 * optabs.c: Likewise.
5494 * opts-global.c: Likewise.
5495 * passes.c: Likewise.
5496 * plugin.c: Likewise.
5497 * postreload-gcse.c: Likewise.
5498 * postreload.c: Likewise.
5499 * predict.c: Likewise.
5500 * print-tree.c: Likewise.
5501 * profile.c: Likewise.
5503 * realmpfr.c: Likewise.
5504 * recog.c: Likewise.
5506 * reg-stack.c: Likewise.
5507 * regcprop.c: Likewise.
5508 * reginfo.c: Likewise.
5509 * regrename.c: Likewise.
5510 * regstat.c: Likewise.
5511 * reload.c: Likewise.
5512 * reload1.c: Likewise.
5513 * reorg.c: Likewise.
5514 * resource.c: Likewise.
5515 * rtl-chkp.c: Likewise.
5516 * rtl-error.c: Likewise.
5517 * rtlanal.c: Likewise.
5518 * rtlhooks.c: Likewise.
5519 * sanopt.c: Likewise.
5520 * sched-deps.c: Likewise.
5521 * sched-ebb.c: Likewise.
5522 * sched-rgn.c: Likewise.
5523 * sdbout.c: Likewise.
5524 * sel-sched-dump.c: Likewise.
5525 * sel-sched-ir.c: Likewise.
5526 * sel-sched.c: Likewise.
5528 * shrink-wrap.c: Likewise.
5529 * simplify-rtx.c: Likewise.
5530 * stack-ptr-mod.c: Likewise.
5531 * statistics.c: Likewise.
5533 * stor-layout.c: Likewise.
5534 * store-motion.c: Likewise.
5535 * stringpool.c: Likewise.
5536 * symtab.c: Likewise.
5537 * target-globals.c: Likewise.
5538 * targhooks.c: Likewise.
5539 * toplev.c: Likewise.
5540 * tracer.c: Likewise.
5541 * trans-mem.c: Likewise.
5542 * tree-affine.c: Likewise.
5543 * tree-call-cdce.c: Likewise.
5544 * tree-cfg.c: Likewise.
5545 * tree-cfgcleanup.c: Likewise.
5546 * tree-chkp-opt.c: Likewise.
5547 * tree-chkp.c: Likewise.
5548 * tree-chrec.c: Likewise.
5549 * tree-complex.c: Likewise.
5550 * tree-data-ref.c: Likewise.
5551 * tree-dfa.c: Likewise.
5552 * tree-diagnostic.c: Likewise.
5553 * tree-dump.c: Likewise.
5554 * tree-eh.c: Likewise.
5555 * tree-emutls.c: Likewise.
5556 * tree-if-conv.c: Likewise.
5557 * tree-inline.c: Likewise.
5558 * tree-into-ssa.c: Likewise.
5559 * tree-iterator.c: Likewise.
5560 * tree-loop-distribution.c: Likewise.
5561 * tree-nested.c: Likewise.
5562 * tree-nrv.c: Likewise.
5563 * tree-object-size.c: Likewise.
5564 * tree-outof-ssa.c: Likewise.
5565 * tree-parloops.c: Likewise.
5566 * tree-phinodes.c: Likewise.
5567 * tree-predcom.c: Likewise.
5568 * tree-pretty-print.c: Likewise.
5569 * tree-profile.c: Likewise.
5570 * tree-scalar-evolution.c: Likewise.
5571 * tree-sra.c: Likewise.
5572 * tree-ssa-address.c: Likewise.
5573 * tree-ssa-alias.c: Likewise.
5574 * tree-ssa-ccp.c: Likewise.
5575 * tree-ssa-coalesce.c: Likewise.
5576 * tree-ssa-copy.c: Likewise.
5577 * tree-ssa-dce.c: Likewise.
5578 * tree-ssa-dse.c: Likewise.
5579 * tree-ssa-forwprop.c: Likewise.
5580 * tree-ssa-ifcombine.c: Likewise.
5581 * tree-ssa-live.c: Likewise.
5582 * tree-ssa-loop-ch.c: Likewise.
5583 * tree-ssa-loop-im.c: Likewise.
5584 * tree-ssa-loop-ivcanon.c: Likewise.
5585 * tree-ssa-loop-ivopts.c: Likewise.
5586 * tree-ssa-loop-manip.c: Likewise.
5587 * tree-ssa-loop-niter.c: Likewise.
5588 * tree-ssa-loop-prefetch.c: Likewise.
5589 * tree-ssa-loop-unswitch.c: Likewise.
5590 * tree-ssa-loop.c: Likewise.
5591 * tree-ssa-math-opts.c: Likewise.
5592 * tree-ssa-operands.c: Likewise.
5593 * tree-ssa-phiopt.c: Likewise.
5594 * tree-ssa-phiprop.c: Likewise.
5595 * tree-ssa-pre.c: Likewise.
5596 * tree-ssa-propagate.c: Likewise.
5597 * tree-ssa-reassoc.c: Likewise.
5598 * tree-ssa-scopedtables.c: Likewise.
5599 * tree-ssa-sink.c: Likewise.
5600 * tree-ssa-strlen.c: Likewise.
5601 * tree-ssa-structalias.c: Likewise.
5602 * tree-ssa-tail-merge.c: Likewise.
5603 * tree-ssa-ter.c: Likewise.
5604 * tree-ssa-threadupdate.c: Likewise.
5605 * tree-ssa-uncprop.c: Likewise.
5606 * tree-ssa-uninit.c: Likewise.
5607 * tree-ssa.c: Likewise.
5608 * tree-ssanames.c: Likewise.
5609 * tree-stdarg.c: Likewise.
5610 * tree-streamer-in.c: Likewise.
5611 * tree-streamer-out.c: Likewise.
5612 * tree-streamer.c: Likewise.
5613 * tree-switch-conversion.c: Likewise.
5614 * tree-tailcall.c: Likewise.
5615 * tree-vect-data-refs.c: Likewise.
5616 * tree-vect-generic.c: Likewise.
5617 * tree-vect-loop-manip.c: Likewise.
5618 * tree-vect-loop.c: Likewise.
5619 * tree-vect-patterns.c: Likewise.
5620 * tree-vect-slp.c: Likewise.
5621 * tree-vect-stmts.c: Likewise.
5622 * tree-vectorizer.c: Likewise.
5623 * tree-vrp.c: Likewise.
5626 * ubsan.c: Likewise.
5627 * value-prof.c: Likewise.
5628 * var-tracking.c: Likewise.
5629 * varasm.c: Likewise.
5630 * varpool.c: Likewise.
5631 * vmsdbgout.c: Likewise.
5632 * vtable-verify.c: Likewise.
5634 * wide-int-print.cc: Likewise.
5635 * wide-int.cc: Likewise.
5636 * xcoffout.c: Likewise.
5638 2015-10-30 James Greenhalgh <james.greenhalgh@arm.com>
5640 * doc/invoke.texi (fdump-rtl-@var{pass}): Clarify relationship
5641 between pass numbering and execution order.
5643 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5645 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Use reg_set_p to
5646 check for dependencies.
5648 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
5650 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Don't free
5653 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
5655 * real.h (format_helper): New.
5656 (real_convert, exact_real_truncate, real_from_string3, real_to_target)
5657 (real_from_target, real_nan, real_2expN, real_value_truncate)
5658 (significand_size, real_from_string2, exact_real_inverse)
5659 (exact_real_inverse, real_powi, real_trunc, real_floor, real_ceil)
5660 (real_round, real_isinteger, real_from_integer): Replace
5661 machine_mode arguments with format_helper arguments.
5662 * real.c (exact_real_inverse, real_from_string2, real_from_string3)
5663 (real_from_integer, real_nan, real_2expN, real_convert)
5664 (real_value_truncate, exact_real_truncate, real_to_target)
5665 (real_from_target, significand_size, real_powi, real_trunc)
5666 (real_floor, real_ceil, real_round, real_isinteger): Replace
5667 machine_mode arguments with format_helper arguments.
5668 (real_to_target_fmt, real_from_target_fmt): Delete.
5669 * dfp.h (decimal_real_convert): Replace mode argument with real_format.
5670 * dfp.c (decimal_to_binary, decimal_real_convert): Replace mode
5671 argument with real_format.
5672 * builtins.c (do_real_to_int_conversion): Update type of fn argument.
5674 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
5676 * fixed-value.c (check_real_for_fixed_mode, fixed_from_string)
5677 (fixed_to_decimal, fixed_convert_from_real)
5678 (real_convert_from_fixed): Fix mode arguments to real_2expN.
5680 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
5682 * real.h (REAL_MODE_FORMAT): Abort if the mode isn't a
5683 SCALAR_FLOAT_MODE_P.
5685 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
5687 * tree-sra.c (scalarizable_type_p): Comment variable-length arrays.
5688 (completely_scalarize): Comment zero-length arrays.
5689 (get_access_replacement): Correct comment re. precondition.
5691 2015-10-30 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
5693 * config/i386/i386.c (get_builtin_code_for_version): Set priority
5694 for PROCESSOR_ZNVER1.
5695 (enum processor_model): Add M_AMDFAM17H_znver1.
5696 (struct arch_names_table): Likewise.
5697 * doc/extend.texi: ADD znver1.
5699 2015-10-30 Richard Biener <rguenther@suse.de>
5701 * gimple-fold.c (fold_gimple_assign): Do not dispatch to
5702 fold () on single RHSs. Allow CONSTRUCTORS with trailing
5703 zeros to be folded to VECTOR_CSTs.
5704 * tree.c (build_vector_from_ctor): Handle VECTOR_CST elements.
5705 * fold-const.c (fold): Use build_vector_from_ctor.
5707 2015-10-30 Evandro Menezes <e.menezes@samsung.com>
5709 * config/aarch64/aarch64.md (*movhf_aarch64): Change the type of
5710 "mov %0.h[0], %1.h[0] to "neon_move".
5711 (*movtf_aarch64): Change the type of "fmov %s0, wzr" to "f_mcr".
5712 (*cmov<mode>_insn): Change the types of "mov %<w>0, {-1,1}" to
5714 (*cmovsi_insn_uxtw): Likewise.
5716 2015-10-30 Tom de Vries <tom@codesourcery.com>
5718 * tree-ssa-structalias.c (ipa_pta_execute): Declare variable from as
5719 unsigned, and initialize, and use initial value instead of hardcoded
5720 constant. Add generic constraints dumping section. Don't dump global
5721 initializers constraints dumping section if empty. Don't update
5722 variable from if unused.
5724 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
5726 * config/alpha/alpha.c (alpha_function_arg): Use gcc_checking_assert,
5727 flag_checking and/or CHECKING_P to eliminate conditional compilation
5729 * config/arm/arm.c (arm_unwind_emit_sequence): Likewise.
5730 * config/bfin/bfin.c (hwloop_optimize): Likewise.
5731 * config/i386/i386.c (ix86_print_operand_address): Likewise.
5732 (output_387_binary_op): Likewise.
5733 * config/ia64/ia64.c (ia64_sched_init, bundling): Likewise.
5734 * config/m68k/m68k.c (m68k_sched_md_init_global): Likewise.
5735 * config/rs6000/rs6000.c (htm_expand_builtin, rs6000_emit_prologue):
5737 * config/rs6000/rs6000.h: Likewise.
5738 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
5740 2015-10-29 Kaz Kojima <kkojima@gcc.gnu.org>
5742 * config/sh/sh.opt (mfdpic): Add missing period.
5744 2015-08-29 Anatoly Sokolov <aesok@post.ru>
5746 * config/mcore/mcore.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
5747 BASE_REGISTER_RTX_P, INDEX_REGISTER_RTX_P,
5748 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
5749 * config/mcore/mcore.c (mcore_reg_ok_for_base_p,
5750 mcore_base_register_rtx_p, mcore_legitimate_index_p,
5751 mcore_legitimate_address_p): New functions.
5752 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
5754 2015-10-29 Jeff Law <law@redhat.com>
5756 * tree-ssa-scopedtables.h (const_and_copies): Remove invalidate
5758 * tree-ssa-scopedtables.h (const_and_copies::invalidate): Remove.
5759 * tree-ssa-threadedge.c
5760 (record_temporary_equivalences_from_stmts_at_dest): Remove
5761 backedge_seen argument and associated code which invalidated
5762 equivalences based on the value of that argument.
5763 (thread_through_normal_block): Corresponding changes.
5765 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
5767 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Move this
5768 function earlier in the file.
5769 (first_reg_to_save): Use rs6000_reg_live_or_pic_offset_p instead of
5770 df_regs_ever_live_p.
5772 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
5774 * lra-constraints.c (process_address_1): Handle (mem:BLK (scratch))
5777 2015-10-29 Richard Henderson <rth@redhat.com>
5781 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
5782 sse check to the exact conditions of PR 67609.
5784 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
5786 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Split libfunc
5787 setup into 3 functions: init_float128_ibm, init_float128_ieee, and
5788 rs6000_init_libfuncs. If -mfloat128, add IFmode functions for all
5789 of the traditional names that TFmode uses for handling IEEE
5790 extended double. If -mfloat128, add KFmode functions for all of
5791 the emulation functions. If -mabi=ieeelongdouble and -mfloat128,
5792 make TFmode use the same emulation functions as KFmode.
5793 (init_float128_ibm): Likewise.
5794 (init_float128_ieee): Likewise.
5795 (rs6000_generate_compare): For IEEE 128-bit floating point
5796 comparisons, call the unordered comparison function instead of the
5797 ordered comparison function.
5798 (rs6000_expand_float128_convert): Deal with operands that are
5799 memory operands. Restructure the code to use a switch statement on
5800 the mode. Add support for TFmode defaulting to either IBM extended
5801 double or IEEE 128-bit floating point. If the underlying types are
5802 the same, use a move instead of a conversion function.
5803 (TARGET_C_MODE_FOR_SUFFIX): Define 'q' and 'Q' as the suffix to
5804 use for IEEE 128-bit floating point constants with -mfloat128.
5805 (rs6000_c_mode_for_suffix): Likewise.
5806 (TARGET_INVALID_BINARY_OP): Do not allow inter-mixing of IEEE
5807 128-bit floating point with IBM extended double floating point.
5808 (rs6000_invalid_binary_op): Likewise.
5809 (rs6000_gen_le_vsx_permute): On little endian systems generate a
5810 ROTATE insn instead of VEC_SELECT for IEEE 128-bit floating point
5811 types that can go in vector registers.
5812 (chain_contains_only_swaps): Properly swap IEEE 128-bit floating
5813 point types that can go in vector registers on little endian
5815 (mark_swaps_for_removal): Likewise.
5816 (rs6000_analyze_swaps): Likewise.
5817 (rs6000_mangle_type): Use U10__float128 for IEEE 128-bit floating point.
5819 * config/rs6000/rs6000.md (FLOAT128_SFDFTF): Delete iterator,
5820 rework IEEE 128-bit floating point insns to deal with TFmode being
5821 either IBM extended double or IEEE 128-bit floating point.
5823 (IBM128): Update iterator to add condition that the mode is IBM
5825 (IEEE128): New iterator for IEEE 128-bit floating point.
5826 (TFIFKF): Rename TFIFKF iterator to FLOAT128.
5827 (FLOAT128): Likewise.
5828 (signbit<mode>2): FLOAT128_IBM_P condition test moved into IBM128
5830 (neg<mode>2): Replace TFIFKF iterator with FLOAT128. Add support
5831 for TFmode being IEEE 128-bit floating point. Use IEEE128 iterator
5832 instead of hard coding TFmode or KFmode.
5833 (negtf2_internal): Likewise.
5834 (neg<mode>2_internal): Likewise.
5835 (abs<mode>2): Likewise.
5836 (abstf2_internal): Likewise.
5837 (abs<mode>2_internal): Likewise.
5838 (ieee_128bit_neg<mode>2): Likewise.
5839 (ieee_128bit_neg<mode>2_internal): Likewise.
5840 (ieee_128bit_abs<mode>2): Likewise.
5841 (ieee_128bit_abs<mode>2_internal): Likewise.
5842 (ieee_128bit_nabs<mode>2): Likewise.
5843 (ieee_128bit_nabs<mode>2_internal): Likewise.
5844 (extendiftf2): Add explicit conversions between 128-bit floating
5845 point types. Drop the old conversions that had become unwieldy.
5846 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
5847 (extendifkf2): Likewise.
5848 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
5849 (extendtfkf2): Likewise.
5850 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
5851 (trunciftf2): Likewise.
5852 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
5853 (truncifkf2): Likewise.
5854 (float<SDI:mode><IFKF:mode>2): Likewise.
5855 (trunckftf2): Likewise.
5856 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
5857 (trunctfif2): Likewise.
5858 (FP iterator): Allow TFmode to be IEEE 128-bit floating point.
5859 (extenddftf2): Rework 128-bit floating point conversions to
5860 properly handle -mabi=ieeelongdouble. Merge IFmode, TFmode, and
5861 KFmode expanders into one function.
5862 (extenddf<mode>2): Likewise.
5863 (extenddftf2_fprs): Likewise.
5864 (extenddf<mode>2_fprs): Likewise.
5865 (extenddftf2_vsx): Likewise.
5866 (extenddf<mode>2_vsx): Likewise.
5867 (extendsftf2): Likewise.
5868 (extendsf<mode>2): Likewise.
5869 (trunctfdf2): Likewise.
5870 (trunc<mode>df2): Likewise.
5871 (trunctfdf2_internal1): Likewise.
5872 (trunc<mode>df2_internal1): Likewise.
5873 (trunctfdf2_internal2): Likewise.
5874 (trunc<mode>df2_internal2): Likewise.
5875 (trunctfsf2): Likewise.
5876 (trunc<mode>sf2): Likewise.
5877 (trunctfsf2_fprs): Likewise.
5878 (trunc<mode>sf2_fprs): Likewise.
5879 (floatsit2f): Likewise.
5880 (floatsi<mode>2): Likewise.
5881 (fix_trunc_helper): Likewise.
5882 (fix_trunc_helper<mode>): Likewise.
5883 (fix_trunctfsi2): Likewise.
5884 (fix_trunc<mode>si2): Likewise.
5885 (fix_trunctfsi2_fprs): Likewise.
5886 (fix_trunc<mode>si2_fprs): Likewise.
5887 (fix_trunctfsi2_internal): Likewise.
5888 (fix_trunc<mode>si2_internal): Likewise.
5889 (fix_trunctfdi2): Likewise.
5890 (fix_trunc<mode>di2): Likewise.
5891 (fixuns_trunctf<mode>2): Likewise.
5892 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
5893 (floatditf2): Likewise.
5894 (floatdi<mode>2): Likewise.
5895 (floatuns<mode>tf2): Likewise.
5896 (floatuns<SDI:mode><IEEE128:mode>): Likewise.
5897 (cmptf_internal1): Use a mode iterator to add support for both
5898 types (IFmode, TFmode) that support IBM extended double.
5899 (cmp<mode>_internal1): Likewise.
5900 (cmptf_internal2): Likewise.
5901 (cmp<mode>_internal2): Likewise.
5903 * doc/extend.texi (Floating Types): Document __ibm128 and
5904 __float128 on PowerPC.
5906 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
5907 -mfloat128 and -mno-float128.
5909 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
5911 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Add IEEE 128-bit
5912 floating point modes that can go in vector registers.
5913 (MODES_TIEABLE_P): Move tests for vector modes before tests for
5914 scalar floating point, so that IEEE 128-bit floating point that
5915 can go in vector registers bind with vectors and not FP.
5916 (struct rs6000_args): Add libcall field.
5918 * config/rs6000/rs6000.opt (-mfloat128-*): Delete -mfloat128-none
5919 and -mfloat128-software switches. Replace them with a binary
5921 (-mfloat128): Likewise.
5923 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
5924 128-bit floating point types in GPRs, even if the appropriate
5925 option enabling the type was not used.
5926 (rs6000_debug_reg_global): Remove -mfloat128-{software,none}
5928 (rs6000_setup_reg_addr_masks): Do not allow pre-increment and
5929 pre-decrement on IEEE 128-bit floating point values.
5930 (rs6000_init_hard_regno_mode_ok): Change test for whether TFmode
5931 is IEEE 128-bit floating point.
5932 (rs6000_init_hard_regno_mode_ok): Add reload handlers for IEEE
5933 128-bit floating point types that can go in vector registers.
5934 (rs6000_option_override_internal): Change -mfloat128-none and
5935 -mfloat128-software to -mfloat128, and move code to be near other
5936 VSX option handling.
5937 (rs6000_option_override_internal): Disable -mfloat128 if we don't
5938 have the Altivec ABI.
5939 (rs6000_init_builtins): Don't make TFmode use either IFmode or
5940 KFmode floating point nodes. Instead, have three separate nodes.
5941 (rs6000_scalar_mode_supported_p): Add support for IFmode to allow
5942 eventually moving the long double default to IEEE 128-bit floating
5944 (rs6000_opt_masks): Add -mfloat128.
5945 (struct rs6000_opt_var): Fix typo in comment.
5946 (init_cumulative_args): Initialize libcall field in
5948 (rs6000_function_arg): Treat library functions as if they had
5949 prototypes to prevent IEEE 128-bit support functions from passing
5950 arguments in both GPRs and vector registers.
5951 (rs6000_arg_partial_bytes): Likewise.
5953 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add -mfloat128 as
5954 an option that can be turned on via -mcpu=<xxx>.
5956 * config/rs6000/rs6000-opts.h (enum float128_type_t): Delete, no
5959 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
5960 __FLOAT128__ if -mfloat128. Define __LONG_DOUBLE_IEEE128__ if long
5961 double is IEEE 128-bit. Define __LONG_DOUBLE_IBM128__ if long
5962 double is IBM extended double.
5964 * config/rs6000/predicates.md (reg_or_indexed_operand): Allow
5967 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
5969 * genautomata.c: Use CHECKING_P instead of ENABLE_CHECKING.
5970 * genconditions.c: Define CHECKING_P in the generated code.
5971 * genextract.c: Use flag_checking in insn_extract.
5972 * gengtype.c (main): Remove conditional compilation.
5973 * gengtype.h: Likewise.
5975 2015-10-29 Jeff Law <law@redhat.com>
5977 PR tree-optimization/67892
5978 * tree-ssa-threadedge.c (simplify_controL_stmt_condition): Fix typo
5980 (thread_through_normal_block): If we have seen a backedge, then
5981 do nothing. No longer call find_jump_threads_backwards here.
5982 (thread_across_edge): Use find_jump_threads_backwards to find
5983 jump threads if the old style threader was not successful.
5984 * tree-ssa-threadbackward.c (get_gimple_control_stmt): Use
5985 gsi_last_nondebug_bb. Return NULL if the block does not end
5986 with a control statement.
5987 (find_jump_threads_backwards): Setup code moved here from
5988 tree-ssa-threadedge.c::thread_through_normal_block. Accept
5989 single edge argument instead of name & block.
5990 * tree-ssa-threadbackward.h (find_jump_threads_backwards): Update
5993 2015-10-29 Tom de Vries <tom@codesourcery.com>
5995 * fold-const.c (fold_unary_loc): Remove folding inhibition for restrict
5998 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
6000 * omp-low.c (lower_omp_target): Remove unreachable code & merge
6003 2015-10-29 Marc Glisse <marc.glisse@inria.fr>
6005 * match.pd (X-(X/Y)*Y): Properly handle conversions and commutativity.
6007 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
6009 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
6010 guard_bb0 and use guard_bb throughout.
6012 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
6014 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
6017 2015-10-29 Richard Biener <rguenther@suse.de>
6020 * fold-const.c (extract_muldiv_1): Avoid introducing undefined
6023 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
6025 * alias.c: Reorder #include statements and remove duplicates.
6027 * attribs.c: Likewise.
6028 * auto-inc-dec.c: Likewise.
6029 * auto-profile.c: Likewise.
6030 * bb-reorder.c: Likewise.
6031 * bt-load.c: Likewise.
6032 * builtins.c: Likewise.
6033 * caller-save.c: Likewise.
6034 * calls.c: Likewise.
6037 * cfganal.c: Likewise.
6038 * cfgbuild.c: Likewise.
6039 * cfgcleanup.c: Likewise.
6040 * cfgexpand.c: Likewise.
6041 * cfghooks.c: Likewise.
6042 * cfgloop.c: Likewise.
6043 * cfgloopanal.c: Likewise.
6044 * cfgloopmanip.c: Likewise.
6045 * cfgrtl.c: Likewise.
6046 * cgraph.c: Likewise.
6047 * cgraphbuild.c: Likewise.
6048 * cgraphclones.c: Likewise.
6049 * cgraphunit.c: Likewise.
6050 * cilk-common.c: Likewise.
6051 * combine-stack-adj.c: Likewise.
6052 * combine.c: Likewise.
6053 * compare-elim.c: Likewise.
6054 * convert.c: Likewise.
6055 * coverage.c: Likewise.
6056 * cppbuiltin.c: Likewise.
6057 * cprop.c: Likewise.
6059 * cselib.c: Likewise.
6060 * data-streamer-in.c: Likewise.
6061 * data-streamer-out.c: Likewise.
6062 * data-streamer.c: Likewise.
6063 * dbxout.c: Likewise.
6066 * debug.c: Likewise.
6067 * df-core.c: Likewise.
6068 * df-problems.c: Likewise.
6069 * df-scan.c: Likewise.
6071 * dojump.c: Likewise.
6072 * dominance.c: Likewise.
6073 * double-int.c: Likewise.
6075 * dumpfile.c: Likewise.
6076 * dwarf2asm.c: Likewise.
6077 * dwarf2cfi.c: Likewise.
6078 * dwarf2out.c: Likewise.
6079 * emit-rtl.c: Likewise.
6080 * except.c: Likewise.
6081 * explow.c: Likewise.
6082 * expmed.c: Likewise.
6084 * final.c: Likewise.
6085 * fixed-value.c: Likewise.
6086 * fold-const.c: Likewise.
6087 * function.c: Likewise.
6088 * fwprop.c: Likewise.
6090 * generic-match-head.c: Likewise.
6091 * ggc-common.c: Likewise.
6092 * gimple-builder.c: Likewise.
6093 * gimple-expr.c: Likewise.
6094 * gimple-fold.c: Likewise.
6095 * gimple-iterator.c: Likewise.
6096 * gimple-low.c: Likewise.
6097 * gimple-match-head.c: Likewise.
6098 * gimple-pretty-print.c: Likewise.
6099 * gimple-ssa-isolate-paths.c: Likewise.
6100 * gimple-ssa-strength-reduction.c: Likewise.
6101 * gimple-streamer-in.c: Likewise.
6102 * gimple-streamer-out.c: Likewise.
6103 * gimple-walk.c: Likewise.
6104 * gimple.c: Likewise.
6105 * gimplify-me.c: Likewise.
6106 * gimplify.c: Likewise.
6107 * godump.c: Likewise.
6108 * graph.c: Likewise.
6109 * graphite-poly.c: Likewise.
6110 * haifa-sched.c: Likewise.
6111 * hw-doloop.c: Likewise.
6112 * ifcvt.c: Likewise.
6113 * incpath.c: Likewise.
6114 * init-regs.c: Likewise.
6115 * internal-fn.c: Likewise.
6116 * ipa-chkp.c: Likewise.
6117 * ipa-comdats.c: Likewise.
6118 * ipa-cp.c: Likewise.
6119 * ipa-devirt.c: Likewise.
6120 * ipa-icf-gimple.c: Likewise.
6121 * ipa-icf.c: Likewise.
6122 * ipa-inline-analysis.c: Likewise.
6123 * ipa-inline-transform.c: Likewise.
6124 * ipa-inline.c: Likewise.
6125 * ipa-polymorphic-call.c: Likewise.
6126 * ipa-profile.c: Likewise.
6127 * ipa-prop.c: Likewise.
6128 * ipa-pure-const.c: Likewise.
6129 * ipa-ref.c: Likewise.
6130 * ipa-reference.c: Likewise.
6131 * ipa-split.c: Likewise.
6132 * ipa-utils.c: Likewise.
6133 * ipa-visibility.c: Likewise.
6135 * ira-build.c: Likewise.
6136 * ira-color.c: Likewise.
6137 * ira-conflicts.c: Likewise.
6138 * ira-costs.c: Likewise.
6139 * ira-emit.c: Likewise.
6140 * ira-lives.c: Likewise.
6143 * langhooks.c: Likewise.
6145 * lists.c: Likewise.
6146 * loop-doloop.c: Likewise.
6147 * loop-init.c: Likewise.
6148 * loop-invariant.c: Likewise.
6149 * loop-iv.c: Likewise.
6150 * loop-unroll.c: Likewise.
6151 * lower-subreg.c: Likewise.
6152 * lra-assigns.c: Likewise.
6153 * lra-coalesce.c: Likewise.
6154 * lra-constraints.c: Likewise.
6155 * lra-eliminations.c: Likewise.
6156 * lra-lives.c: Likewise.
6157 * lra-remat.c: Likewise.
6158 * lra-spills.c: Likewise.
6160 * lto-cgraph.c: Likewise.
6161 * lto-compress.c: Likewise.
6162 * lto-opts.c: Likewise.
6163 * lto-section-in.c: Likewise.
6164 * lto-section-out.c: Likewise.
6165 * lto-streamer-in.c: Likewise.
6166 * lto-streamer-out.c: Likewise.
6167 * lto-streamer.c: Likewise.
6168 * mode-switching.c: Likewise.
6169 * modulo-sched.c: Likewise.
6170 * omp-low.c: Likewise.
6171 * optabs.c: Likewise.
6172 * opts-global.c: Likewise.
6173 * passes.c: Likewise.
6174 * plugin.c: Likewise.
6175 * postreload-gcse.c: Likewise.
6176 * postreload.c: Likewise.
6177 * predict.c: Likewise.
6178 * print-tree.c: Likewise.
6179 * profile.c: Likewise.
6181 * realmpfr.c: Likewise.
6182 * recog.c: Likewise.
6184 * reg-stack.c: Likewise.
6185 * regcprop.c: Likewise.
6186 * reginfo.c: Likewise.
6187 * regrename.c: Likewise.
6188 * regstat.c: Likewise.
6189 * reload.c: Likewise.
6190 * reload1.c: Likewise.
6191 * reorg.c: Likewise.
6192 * resource.c: Likewise.
6193 * rtl-chkp.c: Likewise.
6194 * rtl-error.c: Likewise.
6195 * rtlanal.c: Likewise.
6196 * rtlhooks.c: Likewise.
6197 * sanopt.c: Likewise.
6198 * sched-deps.c: Likewise.
6199 * sched-ebb.c: Likewise.
6200 * sched-rgn.c: Likewise.
6202 * shrink-wrap.c: Likewise.
6203 * simplify-rtx.c: Likewise.
6204 * stack-ptr-mod.c: Likewise.
6205 * statistics.c: Likewise.
6207 * stor-layout.c: Likewise.
6208 * store-motion.c: Likewise.
6209 * stringpool.c: Likewise.
6210 * symtab.c: Likewise.
6211 * target-globals.c: Likewise.
6212 * targhooks.c: Likewise.
6213 * toplev.c: Likewise.
6214 * tracer.c: Likewise.
6215 * trans-mem.c: Likewise.
6216 * tree-affine.c: Likewise.
6217 * tree-call-cdce.c: Likewise.
6218 * tree-cfg.c: Likewise.
6219 * tree-cfgcleanup.c: Likewise.
6220 * tree-chkp-opt.c: Likewise.
6221 * tree-chkp.c: Likewise.
6222 * tree-chrec.c: Likewise.
6223 * tree-complex.c: Likewise.
6224 * tree-data-ref.c: Likewise.
6225 * tree-dfa.c: Likewise.
6226 * tree-diagnostic.c: Likewise.
6227 * tree-dump.c: Likewise.
6228 * tree-eh.c: Likewise.
6229 * tree-emutls.c: Likewise.
6230 * tree-if-conv.c: Likewise.
6231 * tree-inline.c: Likewise.
6232 * tree-into-ssa.c: Likewise.
6233 * tree-iterator.c: Likewise.
6234 * tree-loop-distribution.c: Likewise.
6235 * tree-nested.c: Likewise.
6236 * tree-nrv.c: Likewise.
6237 * tree-object-size.c: Likewise.
6238 * tree-outof-ssa.c: Likewise.
6239 * tree-parloops.c: Likewise.
6240 * tree-phinodes.c: Likewise.
6241 * tree-predcom.c: Likewise.
6242 * tree-pretty-print.c: Likewise.
6243 * tree-profile.c: Likewise.
6244 * tree-scalar-evolution.c: Likewise.
6245 * tree-sra.c: Likewise.
6246 * tree-ssa-address.c: Likewise.
6247 * tree-ssa-alias.c: Likewise.
6248 * tree-ssa-ccp.c: Likewise.
6249 * tree-ssa-coalesce.c: Likewise.
6250 * tree-ssa-copy.c: Likewise.
6251 * tree-ssa-dce.c: Likewise.
6252 * tree-ssa-dom.c: Likewise.
6253 * tree-ssa-dse.c: Likewise.
6254 * tree-ssa-forwprop.c: Likewise.
6255 * tree-ssa-ifcombine.c: Likewise.
6256 * tree-ssa-live.c: Likewise.
6257 * tree-ssa-loop-ch.c: Likewise.
6258 * tree-ssa-loop-im.c: Likewise.
6259 * tree-ssa-loop-ivcanon.c: Likewise.
6260 * tree-ssa-loop-ivopts.c: Likewise.
6261 * tree-ssa-loop-manip.c: Likewise.
6262 * tree-ssa-loop-niter.c: Likewise.
6263 * tree-ssa-loop-prefetch.c: Likewise.
6264 * tree-ssa-loop-unswitch.c: Likewise.
6265 * tree-ssa-loop.c: Likewise.
6266 * tree-ssa-math-opts.c: Likewise.
6267 * tree-ssa-operands.c: Likewise.
6268 * tree-ssa-phiopt.c: Likewise.
6269 * tree-ssa-phiprop.c: Likewise.
6270 * tree-ssa-pre.c: Likewise.
6271 * tree-ssa-propagate.c: Likewise.
6272 * tree-ssa-reassoc.c: Likewise.
6273 * tree-ssa-sccvn.c: Likewise.
6274 * tree-ssa-scopedtables.c: Likewise.
6275 * tree-ssa-sink.c: Likewise.
6276 * tree-ssa-strlen.c: Likewise.
6277 * tree-ssa-structalias.c: Likewise.
6278 * tree-ssa-tail-merge.c: Likewise.
6279 * tree-ssa-ter.c: Likewise.
6280 * tree-ssa-threadedge.c: Likewise.
6281 * tree-ssa-threadupdate.c: Likewise.
6282 * tree-ssa-uncprop.c: Likewise.
6283 * tree-ssa-uninit.c: Likewise.
6284 * tree-ssa.c: Likewise.
6285 * tree-ssanames.c: Likewise.
6286 * tree-stdarg.c: Likewise.
6287 * tree-streamer-in.c: Likewise.
6288 * tree-streamer-out.c: Likewise.
6289 * tree-streamer.c: Likewise.
6290 * tree-switch-conversion.c: Likewise.
6291 * tree-tailcall.c: Likewise.
6292 * tree-vect-data-refs.c: Likewise.
6293 * tree-vect-generic.c: Likewise.
6294 * tree-vect-loop-manip.c: Likewise.
6295 * tree-vect-loop.c: Likewise.
6296 * tree-vect-patterns.c: Likewise.
6297 * tree-vect-slp.c: Likewise.
6298 * tree-vect-stmts.c: Likewise.
6299 * tree-vectorizer.c: Likewise.
6300 * tree-vrp.c: Likewise.
6303 * ubsan.c: Likewise.
6304 * value-prof.c: Likewise.
6305 * var-tracking.c: Likewise.
6306 * varasm.c: Likewise.
6307 * varpool.c: Likewise.
6308 * vtable-verify.c: Likewise.
6310 * wide-int-print.cc: Likewise.
6311 * wide-int.cc: Likewise.
6312 * xcoffout.c: Likewise.
6314 2015-10-29 H.J. Lu <hongjiu.lu@intel.com>
6316 * Makefile.in (NO_PIE_CFLAGS): New.
6317 (NO_PIE_FLAG): Likewise.
6318 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
6319 (NO_PIE_FLAG_FOR_BUILD): Likewise.
6320 (BUILD_NO_PIE_CFLAGS): Likewise.
6321 (BUILD_NO_PIE_FLAG): Likewise.
6322 (COMPILER): Replace @NO_PIE_CFLAGS@ with $(NO_PIE_CFLAGS).
6323 (LINKER): Replace @NO_PIE_FLAG@ with $(NO_PIE_FLAG).
6324 (BUILD_CFLAGS): Replace @NO_PIE_CFLAGS@ with
6325 $(BUILD_NO_PIE_CFLAGS).
6326 (BUILD_CXXFLAGS): Likewise.
6327 (BUILD_LDFLAGS ): Replace @NO_PIE_FLAG@ with
6328 $(BUILD_NO_PIE_FLAG).
6329 * configure.ac (BUILD_NO_PIE_CFLAGS): New. AC_SUBST.
6330 (BUILD_NO_PIE_FLAG): Likewise.
6331 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
6332 (NO_PIE_FLAG_FOR_BUILD): Likewise.
6333 * configure: Regenerated.
6335 2015-10-29 Richard Biener <rguenther@suse.de>
6338 * fold-const.c (fold_cond_expr_with_comparison): Do not fold
6339 unsigned conditonal negation to ABS_EXPR.
6341 2015-10-29 Richard Biener <rguenther@suse.de>
6343 * gimple-match-head.c (gimple_simplify): Remove premature checking
6344 of builtin_decl_implicit of function calls we simplify.
6346 2015-10-29 Bin Cheng <bin.cheng@arm.com>
6348 * tree-ssa-loop-ivopts.c (split_address_cost): Check depends_on.
6349 (get_computation_cost_at): Ditto.
6350 (determine_use_iv_cost_address): Pass NULL for arguments depends_on
6353 2015-10-28 Tom de Vries <tom@codesourcery.com>
6355 * tree-ssa-structalias.c (intra_create_variable_infos): Remove
6358 2015-10-28 Jason Merrill <jason@redhat.com>
6360 * Makefile.in (TAGS): Include libcpp and libiberty.
6362 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
6364 * omp-low.c (MASK_GANG, MASK_WORKER, MASK_VECTOR): Delete.
6365 (extract_omp_for_data): Remove OpenACC special handling of
6368 * config/nvptx/nvptx.c (nvptx_print_operand): Remove 'd' case.
6369 (struct parallel): Update comment.
6370 (nvptx_reorg): Likewise.
6371 (nvptx_neuter): Cleanup whitespace.
6373 2015-10-28 Richard Henderson <rth@redhat.com>
6375 * tree-eh.c (mark_reachable_handlers): Fix typo in assert.
6377 2015-10-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
6380 * config/avr/predicates.md (low_io_address_operand): Don't
6381 consider MODE when computing upper bound.
6382 (io_address_operand): Likewise.
6384 2015-10-28 Jan Hubicka <hubicka@ucw.cz>
6386 * fold-const.c (operand_equal_p): Do not verify that types are
6387 compatible for MEM_REFs.
6389 2015-10-28 Richard Biener <rguenther@suse.de>
6391 * gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs
6392 in simplifying VEC_COND_EXPR conditions.
6394 2015-10-28 Tom de Vries <tom@codesourcery.com>
6396 * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate
6397 into vi_next of a full_var.
6399 2015-10-28 Tom de Vries <tom@codesourcery.com>
6401 * tree-ssa-structalias.c (new_var_info, make_heapvar)
6402 (make_constraint_from_restrict, make_constraint_from_global_restrict)
6403 (create_function_info_for, create_variable_info_for_1)
6404 (create_variable_info_for): Add and handle add_id parameter.
6405 (get_call_vi, new_scalar_tmp_constraint_exp, handle_rhs_call)
6406 (init_base_vars): Add extra argument to calls to new_var_info.
6407 (get_vi_for_tree): Add extra argument to call to
6408 create_variable_info_for.
6409 (process_constraint, do_deref, process_all_all_constraints): Add extra
6410 argument to calls to new_scalar_tmp_constraint_exp.
6411 (handle_lhs_call, find_func_aliases_for_builtin_call): Add extra
6412 argument to calls to make_heapvar.
6413 (make_restrict_var_constraints): Add extra argument to call to
6414 make_constraint_from_global_restrict.
6415 (intra_create_variable_infos): Add extra argument to call to
6416 create_variable_info_for_1.
6417 (ipa_pta_execute): Add extra argument to call to
6418 create_function_info_for.
6420 2015-10-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6422 * config/aarch64/aarch64.md (call, call_value, sibcall): Handle noplt.
6423 (sibcall_value): Likewise.
6425 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
6427 * config/nvptx/nvptx.h (struct machine_function): Add
6429 * config/nvptx/nvptx-protos.h (nvptx_expand_oacc_fork,
6430 nvptx_expand_oacc_join): Declare.
6431 * config/nvptx/nvptx.md (UNSPEC_NTID, UNSPEC_TID): Delete.
6432 (UNSPEC_DIM_SIZE, UNSPEC_SHARED_DATA, UNSPEC_BIT_CONV,
6433 UNSPEC_SHUFFLE, UNSPEC_BR_UNIFIED): New.
6434 (UNSPECV_BARSYNC, UNSPECV_DIM_POS, UNSPECV_FORK, UNSPECV_FORKED,
6435 UNSPECV_JOINING, UNSPECV_JOIN): New.
6436 (BITS, BITD): New mode iterators.
6437 (br_true_uni, br_false_uni): New.
6438 (*oacc_ntid_insn, oacc_ntid, *oacc_tid_insn, oacc_tid): Delete.
6439 (oacc_dim_size, oacc_dim_pos): New.
6440 (nvptx_fork, nvptx_forked, nvptx_joining, nvptx_join): New.
6441 (oacc_fork, oacc_join): New.
6442 (nvptx_shuffle<mode>, unpack<mode>si2, packsi<mode>2): New.
6443 (worker_load<mode>, worker_store<mode>): New.
6444 (nvptx_barsync): New.
6445 * config/nvptx/nvptx.c: Include gimple.h & dumpfile.h.
6446 (SHUFFLE_UP, SHUFFLE_DOWN, SHUFFLE_BFLY, SHUFFLE_IDX): Define.
6447 (worker_bcast_hwm, worker_bcast_align, worker_bcast_name,
6448 worker_bcast_sym): New.
6449 (nvptx_option_override): Initialize worker broadcast buffer.
6450 (nvptx_emit_forking, nvptx_emit_joining): New.
6451 (nvptx_init_axis_predicate): New.
6452 (nvptx_declare_function_name): Init axis predicates.
6453 (nvptx_expand_call): Add fork/join markers around routine call.
6454 (nvptx_expand_oacc_fork, nvptx_expand_oacc_join): New.
6455 (nvptx_gen_unpack, nvptx_gen_pack, nvptx_gen_shuffle): New.
6456 (nvptx_gen_vcast): New.
6457 (struct wcast_data_t): New.
6458 (enum propagate_mask): New.
6459 (nvptx_gen_wcast): New.
6460 (nvptx_print_operand): Add 'S' case.
6461 (struct parallel): New.
6462 (parallel::parallel, parallel::~parallel): New.
6463 (bb_insn_map_t, insn_bb_t, insn_bb_vec_t): New typedefs.
6464 (nvptx_split_blocks, nvptx_discover_pre, nvptx_dump_pars,
6465 nvptx_find_par, nvptx_discover_pars): New.
6466 (nvptx_propagate): New.
6467 (vprop_gen, nvptx_vpropagate): New.
6468 (wprop_gen, nvptx_wpropagate): New.
6470 (nvptx_single, nvptx_skip_par): New.
6471 (nvptx_process_pars, nvptx_neuter_pars): New.
6472 (ntptx_reorg): Split blocks, generate parallel structure, apply
6474 (nvptx_cannot_copy_insn_p): New.
6475 (nvptx_file_end): Emit worker broadcast decl.
6476 (nvptx_goacc_fork_join): New.
6477 (TARGET_CANNOT_COPY_INSN_P): Override.
6478 (TARGET_GOACC_FORK_JOIN): Override.
6480 2015-10-28 Richard Biener <rguenther@suse.de>
6482 * fold-const.c (negate_expr_p): Adjust the division case to
6483 properly avoid introducing undefined overflow.
6484 (fold_negate_expr): Likewise.
6486 2015-10-28 Richard Biener <rguenther@suse.de>
6488 PR tree-optimization/65962
6489 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
6490 Avoid creating loop carried dependences also for outer loops
6491 of the loop a use to replace is in.
6493 2015-10-28 Richard Biener <rguenther@suse.de>
6495 * common.opt (fchecking): New flag controlling flag_checking.
6496 * passes.c (verify_curr_properties): Drop DEBUG_FUNCTION.
6497 * timevar.c (timer::print): Adjust output.
6498 * doc/invoke.texi (fchecking): Document.
6500 2015-10-28 Richard Biener <rguenther@suse.de>
6503 * fold-const.c (negate_expr_p): We cannot negate plus or minus
6504 if overflow is not wrapping. Likewise multiplication unless
6505 one operand is constant and not power of two.
6506 (fold_negate_expr): Adjust accordingly.
6508 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
6510 * omp-low.c (struct omp_context): Remove gwv_below, gwv_this
6512 (is_oacc_parallel, is_oacc_kernels): New.
6513 (enclosing_target_ctx): May return NULL.
6514 (ctx_in_oacc_kernels_region): New.
6515 (check_oacc_kernel_gwv): New.
6516 (oacc_loop_or_target_p): Delete.
6517 (scan_omp_for): Don't calculate gwv mask. Check parallel clause
6518 operands. Strip reductions fro kernels.
6519 (scan_omp_target): Don't calculate gwv mask.
6520 (lower_oacc_head_mark, lower_oacc_loop_marker,
6521 lower_oacc_head_tail): New.
6522 (struct oacc_collapse): New.
6523 (expand_oacc_collapse_init, expand_oacc_collapse_vars): New.
6524 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
6525 Remove OpenACC handling.
6526 (expand_oacc_for): New.
6527 (expand_omp_for): Call expand_oacc_for.
6528 (lower_omp_for): Call lower_oacc_head_tail.
6530 2015-10-27 Mikhail Maltsev <maltsevm@gmail.com>
6532 * attribs.c (check_attribute_tables): New function, broken out from...
6533 (init_attributes): Use it.
6534 * cfgcleanup.c (try_optimize_cfg): Use flag_checking, CHECKING_P
6535 gcc_checking_assert and checking_* functions to eliminate
6536 ENABLE_CHECKING conditionals.
6537 * cfgexpand.c (expand_goto, expand_debug_expr): Likewise.
6538 (pass_expand::execute): Likewise.
6539 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
6540 * cgraphunit.c (mark_functions_to_output): Likewise.
6541 (cgraph_node::expand_thunk): Likewise.
6542 (symbol_table::compile): Likewise.
6543 * ddg.c (add_cross_iteration_register_deps): Likewise.
6544 (create_ddg_all_sccs): Likewise.
6545 * df-core.c (df_finish_pass, df_analyze): Likewise.
6546 * diagnostic-core.h: Likewise.
6547 * diagnostic.c (diagnostic_report_diagnostic): Likewise.
6548 * dominance.c (calculate_dominance_info): Likewise.
6549 * dwarf2out.c (add_AT_die_ref): Likewise.
6550 (const_ok_for_output_1, mem_loc_descriptor): Likewise.
6551 (loc_list_from_tree, gen_lexical_block_die): Likewise.
6552 gen_type_die_with_usage, gen_type_die): Likewise.
6553 (dwarf2out_decl): Likewise.
6554 * emit-rtl.c (verify_rtx_sharing, reorder_insns_nobb): Likewise.
6555 * except.c (duplicate_eh_regions): Likewise.
6556 * fwprop.c (register_active_defs, update_df_init): Likewise.
6557 (fwprop_init, fwprop_done): Likewise.
6558 (update_uses): Likewise.
6559 * ggc-page.c (ggc_grow): Likewise.
6560 * gimplify.c (gimplify_body): Likewise.
6561 (gimplify_hasher::equal): Likewise.
6562 * graphite-isl-ast-to-gimple.c (graphite_verify): Likewise.
6563 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form):
6565 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Likewise.
6566 (rewrite_cross_bb_scalar_deps_out_of_ssa): Likwise.
6567 * hash-table.h (::find_empty_slot_for_expand): Likewise.
6568 * ifcvt.c (if_convert): Likewise.
6569 * ipa-cp.c (ipcp_propagate_stage): Likewise.
6570 * ipa-devirt.c (type_in_anonymous_namespace_p): Likewise.
6571 (odr_type_p, odr_types_equivalent_p): Likewise.
6572 (add_type_duplicate, get_odr_type): Likewise.
6573 * ipa-icf.c (sem_item_optimizer::execute): Likewise.
6574 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
6575 (sem_item_optimizer::verify_classes): Likewise.
6576 (sem_item_optimizer::traverse_congruence_split): Likewise.
6577 (sem_item_optimizer::checking_verify_classes): New.
6578 * ipa-icf.h (sem_item_optimizer::checking_verify_classes): Add new
6580 * cfgrtl.c (commit_edge_insertions): Likewise.
6581 (fixup_reorder_chain, cfg_layout_finalize): Likewise.
6582 (rtl_flow_call_edges_add): Likewise.
6583 * cgraph.c (symbol_table::create_edge): Likewise.
6584 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
6585 * cgraph.h (symtab_node): Likewise.
6586 (symtab_node::checking_verify_symtab_nodes): Define.
6587 (cgraph_node::checking_verify_cgraph_nodes): Define.
6588 * cfghooks.h (checking_verify_flow_info): Define.
6589 * cfgloop.h (checking_verify_loop_structure): Define.
6590 * dominance.h (checking_verify_dominators): Define.
6591 * et-forest.c: Fix comment.
6592 * ipa-inline-analysis.c (compute_inline_parameters): Use flag_checking,
6593 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
6594 ENABLE_CHECKING conditionals.
6595 * ipa-inline-transform.c (save_inline_function_body): Likewise.
6596 * ipa-inline.c (inline_small_functions): Likewise.
6597 (early_inliner): Likewise.
6598 * ipa-inline.h (estimate_edge_growth): Likewise.
6599 * ipa-visibility.c (function_and_variable_visibility): Likewise.
6600 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
6601 (ipa_single_use): Likewise.
6602 * ira-int.h: Likewise.
6603 * ira.c (ira): Likewise.
6604 * loop-doloop.c (doloop_optimize_loops): Likewise.
6605 * loop-init.c (loop_optimizer_init, fix_loop_structure): Likewise.
6606 * loop-invariant.c (move_loop_invariants): Likewise.
6607 * lra-assigns.c (lra_assign): Likewise.
6608 * lra-constraints.c (lra_constraints): Likewise.
6609 * lra-eliminations.c (lra_eliminate): Likewise.
6610 * lra-int.h (struct lra_reg): Likewise.
6611 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
6612 (lra_create_live_ranges_1): Likewise.
6613 * lra-remat.c (create_remat_bb_data): Likewise.
6614 * lra.c (lra_update_insn_recog_data, restore_scratches): Likewise.
6616 (check_rtl): Always define. Remove incorrect guard around
6617 extract_constrain_insn call.
6618 * lto-cgraph.c (input_cgraph_1: Use flag_checking,
6619 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
6620 ENABLE_CHECKING conditionals.
6621 * lto-streamer-out.c (DFS::DFS): Likewise.
6622 (lto_output): Likewise.
6623 * lto-streamer.c (lto_streamer_init): Likewise.
6624 * omp-low.c (scan_omp_target, expand_omp_taskreg): Likewise.
6625 expand_omp_target, execute_expand_omp): Likewise.
6626 (lower_omp_target): Likewise.
6627 * passes.c (execute_function_todo): Likewise.
6628 (execute_todo, execute_one_pass): Likewise.
6629 (verify_curr_properties): Always define.
6630 * predict.c (tree_estimate_probability: Use flag_checking,
6631 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
6632 ENABLE_CHECKING conditionals.
6633 (propagate_freq): Likewise.
6634 * pretty-print.c (pp_format): Likewise.
6635 * real.c (real_to_decimal_for_mode): Likewise.
6636 * recog.c (split_all_insns): Likewise.
6637 * regcprop.c (kill_value_one_regno): Likewise.
6638 (copy_value): Likewise.
6639 (validate_value_data): Define unconditionally.
6640 * reload.c: Fix comment.
6641 * timevar.c: Include options.h
6642 * tree-ssa.h (checking_verify_ssa): Define.
6643 * tree-ssa-loop-manip.h (checking_verify_loop_closed_ssa): Define.
6644 * sched-deps.c (CHECK): Remove unused macro.
6645 (add_or_update_dep_1, sd_add_dep: Use flag_checking, CHECKING_P
6646 gcc_checking_assert and checking_* functions to eliminate
6647 ENABLE_CHECKING conditionals.
6648 * sel-sched-ir.c (free_regset_pool, tidy_control_flow): Likewise.
6649 * sel-sched.c (struct moveop_static_params): Likewise.
6650 (find_best_reg_for_expr, move_cond_jump): Likewise.
6651 (move_op_orig_expr_not_found): Likewise.
6652 (code_motion_process_successors, move_op): Likewise.
6653 * ssa-iterators.h (first_readonly_imm_use): Likewise.
6654 (next_readonly_imm_use): Likewise.
6655 * store-motion.c (compute_store_table): Likewise.
6656 * symbol-summary.h (function_summary::function_summary): Likewise.
6657 * target.h (cumulative_args_t): Likewise.
6658 (get_cumulative_args, pack_cumulative_args): Likewise.
6659 * timevar.c: (timer::print): Likewise.
6660 * trans-mem.c (ipa_tm_execute): Likewise.
6661 * tree-cfg.c (move_stmt_op): Likewise.
6662 (move_sese_region_to_fn): Likewise.
6663 (gimple_flow_call_edges_add): Likewise.
6664 * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
6666 * tree-eh.c (remove_unreachable_handlers): Likewise.
6667 * tree-if-conv.c (pass_if_conversion::execute): Likewise.
6668 * tree-inline.c (expand_call_inline, optimize_inline_calls): Likewise.
6669 * tree-into-ssa.c (update_ssa): Likewise.
6670 * tree-loop-distribution.c (pass_loop_distribution::execute): Likewise.
6671 * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees): Likewise.
6672 * tree-parloops.c (pass_parallelize_loops::execute): Likewise.
6673 * tree-predcom.c (suitable_component_p): Likewise.
6674 * tree-profile.c (gimple_gen_const_delta_profiler): Likewise.
6675 * tree-ssa-alias.c (refs_may_alias_p_1): Likewise.
6676 * tree-ssa-live.c (verify_live_on_entry): Likewise.
6677 * tree-ssa-live.h (register_ssa_partition): Likewise.
6678 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Likewise.
6679 * tree-ssa-loop-manip.c (add_exit_phi): Likewise.
6680 (tree_transform_and_unroll_loop): Likewise.
6681 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
6682 * tree-ssa-operands.c (get_expr_operands): Likewise.
6683 * tree-ssa-propagate.c (replace_exp_1): Likewise.
6684 * tree-ssa-structalias.c (rewrite_constraints): Likewise.
6685 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
6686 * tree-ssa-threadupdate.c (duplicate_thread_path): Likewise.
6687 * tree-ssanames.c (release_ssa_name_fn): Likewise.
6688 * tree-stdarg.c (expand_ifn_va_arg): Likewise.
6689 * tree-vect-loop-manip.c
6690 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
6691 (slpeel_checking_verify_cfg_after_peeling): Likewise.
6692 (vect_do_peeling_for_loop_bound): Likewise.
6693 (vect_do_peeling_for_alignment): Likewise.
6694 * tree-vrp.c (supports_overflow_infinity): Likewise.
6695 (set_value_range): Likewise.
6696 * tree.c (free_lang_data_in_cgraph): Likewise.
6697 * value-prof.c (gimple_remove_histogram_value): Likewise.
6698 (free_hist): Likewise.
6699 * var-tracking.c (canonicalize_values_star): Likewise.
6700 (compute_bb_dataflow, vt_find_locations, vt_emit_notes): Likewise.
6702 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
6704 * internal-fn.def (IFN_GOACC_DIM_SIZE, IFN_GOACC_DIM_POS,
6705 IFN_GOACC_LOOP): New.
6706 * internal-fn.h (enum ifn_unique_kind): Add IFN_UNIQUE_OACC_FORK,
6707 IFN_UNIQUE_OACC_JOIN, IFN_UNIQUE_OACC_HEAD_MARK,
6708 IFN_UNIQUE_OACC_TAIL_MARK.
6709 (enum ifn_goacc_loop_kind): New.
6710 * internal-fn.c (expand_UNIQUE): Add IFN_UNIQUE_OACC_FORK,
6711 IFN_UNIQUE_OACC_JOIN cases.
6712 (expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS): New.
6713 (expand_GOACC_LOOP): New.
6714 * target-insns.def (oacc_dim_pos, oacc_dim_size): New.
6715 * omp-low.c: Include gimple-pretty-print.h.
6716 (struct oacc_loop): New.
6717 (enum oacc_loop_flags): New.
6718 (oacc_thread_numbers): New.
6719 (oacc_xform_loop): New.
6720 (new_oacc_loop_raw, new_oacc_loop_outer, new_oacc_loop,
6721 new_oacc_loop_routine, finish_oacc_loop, free_oacc_loop): New,
6722 (dump_oacc_loop_part, dump_oacc_loop, debug_oacc_loop): New,
6723 (oacc_loop_discover_walk, oacc_loop_sibling_nrevers,
6724 oacc_loop_discovery): New.
6725 (oacc_loop_xform_head_tail, oacc_loop_xform_loop,
6726 oacc_loop_process): New.
6727 (oacc_loop_fixed_partitions, oacc_loop_partition): New.
6728 (execute_oacc_device_lower): Discover & process loops. Process
6730 * target.def (goacc.fork_join): Change sense of hook, clarify
6732 * doc/tm.texi: Regenerated.
6734 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
6736 * target-insns.def (oacc_fork, oacc_join): Define.
6737 * target.def (goacc.validate_dims): Adjust doc to avoid warning.
6738 (goacc.fork_join): New GOACC hook.
6739 * targhooks.h (default_goacc_fork_join): Declare.
6740 * omp-low.c (default_goacc_forkjoin): New.
6741 * doc/tm.texi.in (TARGET_GOACC_FORK_JOIN): Add.
6742 * doc/tm.texi: Regenerate.
6744 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
6746 * omp-low.c (oacc_init_rediction_array): New.
6747 (oacc_initialize_reduction_data): Initialize array.
6749 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
6751 * omp-low.c (pass_oacc_device_lower::execute): Ignore errors.
6753 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
6755 * internal-fn.c (expand_UNIQUE): New.
6756 * internal-fn.h (enum ifn_unique_kind): New.
6757 * internal-fn.def (IFN_UNIQUE): New.
6758 * target-insns.def (unique): Define.
6759 * gimple.h (gimple_call_internal_unique_p): New.
6760 * gimple.c (gimple_call_same_target_p): Check internal fn
6762 * tracer.c (ignore_bb_p): Check for IFN_UNIQUE call.
6763 * tree-ssa-threadedge.c
6764 (record_temporary_equivalences_from_stmts): Likewise.
6765 * tree-cfg.c (gmple_call_initialize_ctrl_altering): Likewise.
6767 2015-10-27 Richard Henderson <rth@redhat.com>
6770 * config/i386/i386.c (ix86_cannot_change_mode_class): Disallow
6771 narrowing subregs on SSE and MMX registers.
6772 * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Clarify when subregs that
6773 appear to be sub-words of multi-register pseudos must be rejected.
6774 * doc/tm.texi: Regenerate.
6776 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6779 * config/aarch64/aarch64.md (*movsi_aarch64): Check that
6780 operands[0] is a reg before taking its REGNO in split condition.
6781 (*movdi_aarch64): Likewise.
6783 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6785 * config/aarch64/aarch64.c (aarch64_output_simd_mov_immediate):
6786 Handle floating point inner modes properly.
6788 2015-10-27 Alan Hayward <alan.hayward@arm.com>
6791 (vectorizable_live_operation): Change iterator.
6793 2015-10-27 Abderrazek Zaafrani <a.zaafrani@samsung.com>
6794 Aditya Kumar <aditya.k7@samsung.com>
6796 * graphite-optimize-isl.c (get_schedule_for_node_st): New callback
6797 function to schedule based on isl_schedule_node.
6798 (get_schedule_map_st): New schedule optimizer based on
6800 (scop_get_domains): New. Return the isl_union_set containing the
6801 domains of all the pbbs.
6802 (optimize_isl): Call the new function get_schedule_map_st for isl-0.15
6804 2015-10-27 H.J. Lu <hongjiu.lu@intel.com>
6807 * calls.c (prepare_call_address): Don't handle -fno-plt here.
6808 * config/i386/i386.c (ix86_expand_call): Generate indirect call
6809 via GOT for -fno-plt. Support indirect call via GOT for x32.
6810 * config/i386/predicates.md (sibcall_memory_operand): Allow
6813 2015-10-27 Richard Biener <rguenther@suse.de>
6815 PR tree-optimization/68104
6816 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
6817 strided access check ...
6818 (vect_compute_data_refs_alignment): ... here.
6820 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
6821 Joseph Myers <joseph@codesourcery.com>
6822 Mark Shinwell <shinwell@codesourcery.com>
6823 Andrew Stubbs <ams@codesourcery.com>
6824 Rich Felker <dalias@libc.org>
6826 * config.gcc: Handle --enable-fdpic.
6827 * config/sh/constraints.md (Ccl): New constraint.
6828 * config/sh/linux.h (SUBTARGET_LINK_EMUL_SUFFIX): Handle -mfdpic.
6829 * config/sh/sh-c.c (sh_cpu_cpp_builtins): Add __FDPIC__ and
6831 * config/sh/sh-mem.cc (expand_block_move): Support FDPIC for calls to
6833 * config/sh/sh-protos.h (function_symbol_result): New struct.
6834 (function_symbol): Return function_symbol_result.
6835 (sh_get_fdpic_reg_initial_val, sh_load_function_descriptor): New
6837 * config/sh/sh.c (TARGET_ASM_INTEGER, sh_assemble_integer): Implement
6839 (TARGET_CANNOT_FORCE_CONST_MEM, sh_cannot_force_const_mem_p): Likewise.
6840 (sh_option_override): Force -fPIC if FDPIC is in effect.
6841 (sh_asm_output_addr_const_extra): Add UNSPEC_GOTFUNCDESC and
6842 UNSPEC_GOTOFFFUNCDESC cases.
6843 (prepare_move_operands): Use FDPIC initial GOT register for
6844 TLS-related GOT access; inhibit cross-section address offset constants
6846 (sh_assemble_integer): New function.
6847 (sh_cannot_copy_insn_p): Inhibit copying insns that are FDPIC
6848 PC-relative call sites.
6849 (expand_ashiftrt): Adapt invocation of function_symbol.
6850 (sh_expand_prologue): Inhibit PC-relative GOT address load for FDPIC.
6851 (nonpic_symbol_mentioned_p): Add cases for UNSPEC_GOTFUNCDESC and
6852 UNSPEC_GOTOFFFUNCDESC.
6853 (legitimize_pic_address): Resolve function symbols to function
6854 descriptors for FDPIC. Do not use GOT-relative addressing for local
6855 data that may be read-only on FDPIC.
6856 (sh_emit_storesi, sh_emit_storehi): New functions.
6857 (sh_trampoline_init): Generate FDPIC trampolines.
6858 (sh_function_ok_for_sibcall): Add TARGET_FDPIC check.
6859 (sh_expand_sym_label2reg): Don't assume sibcalls are local.
6860 (sh_output_mi_thunk): Generate FDPIC call.
6861 (function_symbol): Return function_symbol_result. For SFUNC_STATIC on
6862 FDPIC, generate call site labels to use PC-relative addressing rather
6863 than GOT-relative addressing.
6864 (sh_conditional_register_usage): Make PIC register fixed and call used
6865 when FDPIC is in effect.
6866 (sh_legitimate_constant_p): Impose FDPIC constant constraints.
6867 (sh_cannot_force_const_mem_p, sh_load_function_descriptor,
6868 sh_get_fdpic_reg_initial_val): New functions.
6869 * config/sh/sh.h (SUBTARGET_ASM_SPEC, SUBTARGET_LINK_EMUL_SUFFIX):
6871 (FDPIC_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
6872 PIC_OFFSET_TABLE_REG_CALL_CLOBBERED,
6873 SH_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macros.
6874 (DRIVER_SELF_SPECS): Add SUBTARGET_DRIVER_SELF_SPECS and
6876 (TRAMPOLINE_SIZE): Select trampoline size for FDPIC.
6877 (ASM_PREFERRED_EH_DATA_FORMAT): Add EH format constraints for FDPIC.
6878 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Handle FDPIC case.
6879 * config/sh/sh.md (UNSPEC_GOTFUNCDESC, UNSPEC_GOTOFFFUNCDESC): New
6881 (calli_fdpic, call_valuei_fdpic, sibcalli_fdpic, sibcalli_pcrel_fdpic,
6882 sibcall_pcrel_fdpic, sibcall_valuei_fdpic, sibcall_valuei_pcrel_fdpic,
6883 sibcall_value_pcrel_fdpic, sym2GOTFUNCDESC, symGOTFUNCDESC2reg,
6884 sym2GOTOFFFUNCDESC, symGOTOFFFUNCDESC2reg): New patterns.
6885 (udivsi3_i1, udivsi3_i4, udivsi3_i4_single, udivsi3,
6886 *divsi_inv_call_combine, divsi3_i4, divsi3_i4_single, divsi3, ashlsi3,
6887 ashlsi3_d_call, ashrsi3_n, lshrsi3, lshrsi3_d_call, calli, call_valuei,
6888 call, call_value, sibcalli, sibcalli_pcrel, sibcall_pcrel, sibcall,
6889 sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
6890 sibcall_value, GOTaddr2picreg, symGOT_load, symGOTOFF2reg,
6891 block_move_real, block_lump_real, block_move_real_i4,
6892 block_lump_real_i4): Add support for FDPIC calls.
6893 (mulsi3, ic_invalidate_line, initialize_trampoline, call_pop,
6894 call_value_pop): Adjust for new function_symbol signature.
6895 * config/sh/sh.opt (-mfdpic): New option.
6896 * doc/install.texi (Options specification): Document --enable-fdpic.
6897 * doc/invoke.texi (SH Options): Document -mfdpic.
6900 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
6902 PR tree-optimization/65963
6903 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
6904 LSHIFT_EXPRs as equivalent MULT_EXPRs.
6906 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6909 * config/arm/arm.c (vfp3_const_double_for_bits): Rewrite.
6910 * config/arm/constraints.md (Dp): Update callsite.
6911 * config/arm/predicates.md (const_double_vcvt_power_of_two): Likewise.
6913 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6915 * builtins.c (fold_builtin_load_exponent): Rename to...
6916 (fold_const_builtin_load_exponent): ...this and only handle
6918 (fold_builtin_2): Update accordingly.
6919 * match.pd: Add rules previously handled by fold_builtin_load_exponent.
6921 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6923 * builtins.c (fold_builtin_logb): Rename to...
6924 (fold_const_builtin_logb): ...this and remove STRIP_NOPS call.
6925 (fold_builtin_significand): Rename to...
6926 (fold_const_builtin_significand): ...this and remove STRIP_NOPS call.
6927 (fold_builtin_1): Update accordingly.
6929 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6931 * builtins.c (fold_builtin_fmin_fmax): Delete.
6932 (fold_builtin_2): Handle constant fmin and fmax arguments here.
6933 * match.pd: Add rules previously handled by fold_builtin_fmin_fmax.
6935 2015-10-27 Evandro Menezes <e.menezes@samsung.com>
6937 * config/aarch64/aarch64-protos.h (cpu_addrcost_table): Split member
6938 for register extension into sign and zero register extension.
6939 * config/aarch64/aarch64.c (generic_addrcost_table): Infer values
6940 for sign and zero register extension.
6941 (cortexa57_addrcost_table): Likewise.
6942 (xgene1_addrcost_table): Likewise.
6944 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6946 * fold-const.c (fold_minmax): Delete.
6947 (fold_binary_loc): Don't call it.
6948 * match.pd: Add rules previously handled by fold_minmax.
6950 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6952 * builtins.c (fold_builtin_fma): Remove constant handling.
6953 (fold_builtin_3): Handle constant fma arguments here.
6955 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6957 * builtins.c (fold_builtin_fabs): Remove constant handling.
6958 (fold_builtin_abs): Likewise.
6960 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6962 * builtins.c (fold_builtin_copysign): Delete.
6963 (fold_builtin_2): Handle constant copysign arguments here.
6964 * match.pd: Add rules previously handled by fold_builtin_copysign.
6966 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6968 * builtins.c (fold_builtin_signbit): Delete.
6969 (fold_builtin_2): Handle constant signbit arguments here.
6970 * match.pd: Add rules previously handled by fold_builtin_signbit.
6972 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6974 * match.pd: Handle sqrt(x) cmp 0 specially.
6976 2015-10-27 Ilya Enkovich <enkovich.gnu@gmail.com>
6978 * tree-vect-generic.c (expand_vector_operations_1): Check
6979 optab type before using it.
6981 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6983 * config/aarch64/aarch64-protos.h
6984 (struct tune_params): Add autoprefetcher_model field.
6985 * config/aarch64/aarch64.c: Include params.h
6986 (generic_tunings): Specify autoprefetcher_model value.
6987 (cortexa53_tunings): Likewise.
6988 (cortexa57_tunings): Likewise.
6989 (cortexa72_tunings): Likewise.
6990 (thunderx_tunings): Likewise.
6991 (xgene1_tunings): Likewise.
6992 (aarch64_first_cycle_multipass_dfa_lookahead_guard): New function.
6993 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
6994 (aarch64_override_options_internal): Set
6995 PARAM_SCHED_AUTOPREF_QUEUE_DEPTH param.
6997 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
6999 * builtins.c (fold_builtin_exponent): Delete.
7000 (fold_builtin_2): Handle constant expN arguments here.
7001 * match.pd: Fold expN(logN(x)) -> x.
7003 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
7005 * builtins.c (fold_builtin_powi): Delete.
7006 (fold_builtin_2): Handle constant powi arguments here.
7007 * match.pd: Add rules previously handled by fold_builtin_powi.
7009 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
7011 * builtins.c (fold_builtin_pow): Delete in favor of...
7012 (fold_const_builtin_pow): ...this new function. Only handle constant
7014 (fold_builtin_2): Update accordingly.
7015 * match.pd: Add rules previously handled by fold_builtin_pow.
7017 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
7019 * builtins.c (fold_builtin_hypot): Delete.
7020 (fold_builtin_2): Handle constant hypot arguments here.
7021 * match.pd: Fold hypot(x, 0) and hypot(0, x) to x. Canonicalize
7022 hypot(x, x) to fabs(x)*sqrt(2).
7024 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
7026 * gimple-match-head.c (maybe_push_res_to_seq): Use create_tmp_reg
7027 instead of make_ssa_name if not yet in SSA form.
7029 2015-10-27 Richard Biener <rguenther@suse.de>
7031 * cfg.c (free_edge): Add function argument and use it instead of cfun.
7032 (clear_edges): Likewise.
7033 * cfg.h (clear_edges): Adjust prototype.
7034 * cfgexpand.c (pass_expand::execute): Adjust.
7035 * cfgloop.c (release_recorded_exits): Add function argument and use
7037 * cfgloop.h (release_recorded_exits): Adjust prototype.
7038 (loops_state_satisfies_p): Add overload with function argument.
7039 (loops_state_set): Likewise.
7040 (loops_state_clear): Likewise.
7041 (struct loop_iterator): Add function argument to constructor
7042 and iterator and use it instead of cfun.
7043 (FOR_EACH_LOOP_FN): New macro.
7044 (loop_optimizer_finalize): Add overload with function argument.
7045 * loop-init.c (loop_optimizer_init): Adjust.
7046 (fix_loop_structure): Likewise.
7047 (loop_optimizer_finaliz): Add function argument and use it
7049 * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
7050 * tree-cfg.h (delete_tree_cfg_annotations): Adjust prototype.
7051 * cgraph.c (release_function_body): Do not push/pop cfun.
7052 * final.c (rest_of_clean_state): Adjust.
7053 * graphite.c (graphite_finalize): Likewise.
7054 * tree-ssa-copy.c (fini_copy_prop): Likewise.
7055 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
7056 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
7057 (tree_unroll_loops_completely): Likewise.
7058 (pass_complete_unrolli::execute): Likewise.
7059 * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates):
7060 Add function argument and use it instead of cfun.
7061 * tree-ssa-loop-niter.h (free_numbers_of_iterations_estimates):
7063 * tree-ssa-loop.c (tree_ssa_loop_done): Adjust.
7064 * tree-ssa.c (delete_tree_ssa): Add function argument and use it
7066 * tree-ssa.h (delete_tree_ssa): Adjust prototype.
7067 * tree-ssanames.c (fini_ssanames): Add function argument and use it
7069 * tree-ssanames.c (fini_ssanames): Adjust prototype.
7070 * tree-vrp.c (execute_vrp): Adjust.
7071 * value-prof.c (free_histograms): Add function argument and use it
7073 * value-prof.h (free_histograms): Adjust prototype.
7075 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
7077 * tree.h (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES)
7078 (OACC_KERNELS_BODY, OACC_KERNELS_CLAUSES, OACC_KERNELS_COMBINED)
7079 (OACC_PARALLEL_COMBINED): Don't define macros. Adjust all users.
7081 2015-10-27 Tom de Vries <tom@codesourcery.com>
7083 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add and use var
7086 2015-10-27 Bin Cheng <bin.cheng@arm.com>
7088 * loop-invariant.c (struct def): New field can_prop_to_addr_uses.
7089 (inv_can_prop_to_addr_use): New function.
7090 (record_use): Call can_prop_to_addr_uses, set the new field.
7091 (get_inv_cost): Count cost if inv can't be propagated into its
7094 2015-10-26 Doug Evans <dje@google.com>
7096 * config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
7098 2015-10-26 Eric Botcazou <ebotcazou@adacore.com>
7100 * match.pd (fold_widened_comparison): Apply simplifications to all
7103 2015-10-26 Simon Dardis <simon.dardis@imgtec.com>
7105 * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook.
7106 * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document.
7107 * doc/tm.texi: Regenerated.
7108 * reorg.c (dbr_schedule): Use new hook.
7109 * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New.
7111 2015-10-26 Jeff Law <law@redhat.com>
7113 PR tree-optimization/68013
7114 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
7115 Make sure the first block in the path is in VISITED_BBs.
7117 2015-10-26 Richard Biener <rguenther@suse.de>
7118 Dominik Vogt <vogt@linux.vnet.ibm.com>
7121 * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
7122 Properly prune ref->ref for accesses outside of ref.
7124 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
7126 * gimple-fold.c (replace_stmt_with_simplification): Don't allow
7127 new statements to be inserted if inplace. Allow calls to have
7130 2015-10-26 Richard Biener <rguenther@suse.de>
7132 * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
7133 (do_valueize): New function.
7134 (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
7136 * tree-ssa-threadedge.c: Remove builtins.h include, include
7138 (fold_assignment_stmt): Remove.
7139 (threadedge_valueize): New function.
7140 (record_temporary_equivalences_from_stmts): Use
7141 gimple_fold_stmt_to_constant_1, note additional cleanup
7144 2015-10-26 Richard Biener <rguenther@suse.de>
7146 * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
7147 ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
7149 2015-10-26 Alan Hayward <alan.hayward@arm.com>
7151 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
7152 VEC_COND_EXPR types.
7154 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7156 * auto-inc-dec.c (insert_move_insn_before): Delete.
7157 (attempt_change): Remember to cost the simple move in the
7158 FORM_PRE_ADD and FORM_POST_ADD cases.
7160 2015-10-26 Kaz Kojima <kkojima@gcc.gnu.org>
7163 * config/sh/sh.c (sh_vector_mode_supported_p): Use
7164 TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
7166 2015-10-26 Tom de Vries <tom@codesourcery.com>
7168 * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
7170 (intra_create_variable_infos): ... here.
7172 2015-10-26 Tom de Vries <tom@codesourcery.com>
7174 * tree-ssa-structalias.c (intra_create_variable_infos): Add
7175 restrict_pointer_p and recursive_restrict_p variables.
7177 2015-10-26 Tom de Vries <tom@codesourcery.com>
7179 * tree-ssa-structalias.c (intra_create_variable_infos): Inline
7180 get_vi_for_tree call.
7182 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7185 * optabs.c (expand_atomic_compare_and_swap): Handle case when
7186 ptarget_oval or ptarget_bool are const0_rtx.
7188 2015-10-26 Christian Bruel <christian.bruel@st.com>
7190 * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
7191 * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
7192 * cp/method.c (implicitly_declare_fn): Likewise.
7193 * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
7194 * java/class.c (add_method_1): Likewise.
7196 2015-10-26 Richard Biener <rguenther@suse.de>
7198 * alloc-pool.h (base_pool_allocator): Use placement new.
7199 (base_pool_allocator::remove): Likewise. Compute size outside of
7202 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
7204 * builtins.c (do_real_to_int_conversion): New function.
7205 (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
7206 (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
7208 * match.pd: Add rules previously handled by fold_fixed_mathfn
7209 and fold_builtin_int_roundingfn.
7211 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
7213 * match.pd: Use macros to define built-in operator lists.
7215 2015-10-20 Richard Sandiford <richard.sandiford@arm.com>
7216 Richard Biener <rguenther@suse.de>
7218 * genmatch.c (dt_simplify::gen): Skip captures that are
7220 (parser::parse_expr): Allow captures in results too.
7221 * builtins.c (fold_builtin_cexp): Delete.
7222 (fold_builtin_1): Handle constant cexp arguments here.
7223 * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
7225 2015-10-26 Mikhail Maltsev <maltsevm@gmail.com>
7227 * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
7228 conditional compilation.
7229 (base_pool_allocator::remove): Use flag_checking.
7231 2015-10-25 John David Anglin <danglin@gcc.gnu.org>
7233 * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
7236 * dojump.c (do_compare_and_jump): Canonicalize both function and
7239 2015-10-25 Uros Bizjak <ubizjak@gmail.com>
7242 * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
7245 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
7248 * ipa-polymorphic-call.c
7249 (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
7250 instance offset with offset of outer type.
7252 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
7254 * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
7256 2015-10-23 Caroline Tice <cmtice@google.com>
7258 (from Richard Biener
7259 * tree.c (int_cst_hasher::hash): Replace XOR with more efficient
7260 call to iterative_hash_host_wide_int.
7262 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
7264 * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
7267 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
7269 * tree-vect-generic.c (expand_vector_operations_1): Check
7270 optab exists before use it.
7272 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
7274 * tree-vect-generic.c (expand_vector_condition): Avoid
7275 uninitialized variable warning.
7277 2015-10-23 Jeff Law <law@redhat.com>
7279 * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
7281 (execute_todo): Call it here.
7282 * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
7284 (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
7286 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
7287 Szabolcs Nagy <szabolcs.nagy@arm.com>
7289 * config.gcc (enable_secureplt): Add *-linux*-musl*.
7291 2015-10-23 Jeff Law <law@redhat.com>
7293 PR tree-optimization/67830
7294 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
7295 Explicitly verify the mask has no bits outside the type of
7296 the innermost operands.
7298 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
7299 Szabolcs Nagy <szabolcs.nagy@arm.com>
7301 * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
7302 (MUSL_DYNAMIC_LINKER64): Define.
7303 (GNU_USER_DYNAMIC_LINKER32): Update.
7304 (GNU_USER_DYNAMIC_LINKER64): Update.
7305 (CHOOSE_DYNAMIC_LINKER): Update.
7307 * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
7308 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
7309 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
7310 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
7311 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
7312 (CHOOSE_DYNAMIC_LINKER): Update.
7313 (INCLUDE_DEFAULTS): Redefine.
7315 * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
7317 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
7319 * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
7320 comparing addresses.
7322 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
7324 * fold-const.c (operand_equal_p): Handle matching of vector
7327 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
7329 * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
7331 2015-10-23 Steve Ellcey <sellcey@imgtec.com>
7332 Andrew Pinski <apinski@cavium.com>
7334 PR rtl-optimization/67736
7335 * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
7338 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
7341 * tree.c (build_truth_vector_type): Support BLK mode
7342 returned for boolean vector.
7344 2015-10-23 Alan Hayward <alan.hayward@arm.com>
7346 PR tree-optimization/65947
7348 (vect_is_simple_reduction_1): Find condition reductions.
7349 (vect_model_reduction_cost): Add condition reduction costs.
7350 (get_initial_def_for_reduction): Add condition reduction initial var.
7351 (vect_create_epilog_for_reduction): Add condition reduction epilog.
7352 (vectorizable_reduction): Condition reduction support.
7353 * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
7354 * doc/sourcebuild.texi (Vector-specific attributes): Document
7357 2015-10-23 Richard Biener <rguenther@suse.de>
7359 * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
7362 2015-10-23 Richard Biener <rguenther@suse.de>
7363 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7365 * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
7366 into (A ^ B) - B to match.pd
7367 Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
7369 * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
7371 (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
7373 (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
7375 (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
7377 (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
7378 INTEGER_CST@1)): New simplifier.
7380 2015-10-23 Richard Sandiford <richard.sandiford@arm.com>
7382 * builtins.c (integer_valued_real_p): Move to fold-const.c.
7383 (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
7384 (fold_builtin_ceil, fold_builtin_round): Delete.
7385 (fold_builtin_1): Handle constant trunc, floor, ceil and round
7387 * convert.c (convert_to_real): Remove narrowing of rounding
7389 * fold-const.h (integer_valued_real_unary_p)
7390 (integer_valued_real_binary_p, integer_valued_real_call_p)
7391 (integer_valued_real_single_p, integer_valued_real_p): Declare.
7392 * fold-const.c (tree_single_nonnegative_warnv_p): Move
7393 name_registered_for_update_p check to SSA_NAME case statement.
7394 Don't call tree_simple_nonnegative_warnv_p for SSA names.
7395 (integer_valued_real_unary_p, integer_valued_real_binary_p)
7396 (integer_valued_real_call_p, integer_valued_real_single_p)
7397 (integer_valued_real_invalid_p): New functions.
7398 (integer_valued_real_p): Move from fold-const.c and rework
7399 to call the functions above. Handle SSA names.
7400 * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
7401 * gimple-fold.c (gimple_assign_integer_valued_real_p)
7402 (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
7403 (gimple_stmt_integer_valued_real_p): New functions.
7404 * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
7405 Fold f(x)->x for the same f if x is known to be integer-valued.
7406 Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
7407 the result. Canonicalize floor(x) as trunc(x) if x is
7410 2015-10-23 Tom de Vries <tom@codesourcery.com>
7412 * tree-ssa-structalias.c (intra_create_variable_infos): Use
7413 make_constraint_from.
7415 2015-10-23 Tom de Vries <tom@codesourcery.com>
7417 * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
7418 setting of is_full_var in case of a single field.
7420 2015-10-22 Martin Sebor <msebor@redhat.com>
7423 * config/i386/i386.opt: Add missing periods to the ends of sentences.
7424 * config/msp430/msp430.opt: Same.
7426 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
7428 * doc/extend.exp (Global Register Variables): Rewrite.
7430 2015-10-22 Jeff Law <law@redhat.com>
7432 * genattrtab.c (main): If we do not have any annul-true or annul-false
7433 slots, then write out a dummy eligible_for_annul_true or
7434 eligible_for_annul_false as needed.
7436 2015-10-22 Nick Clifton <nickc@redhat.com>
7438 * config/msp430/msp430.opt: Add -msilicon-errata and
7439 -msilicon-errata-warn.
7440 * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
7442 * doc/invoke.texi: Document new options.
7444 2015-10-22 Richard Biener <rguenther@suse.de>
7446 PR tree-optimization/58497
7447 * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
7448 (expand_vector_operations_1): Use it. Lower operations on
7449 all uniform vectors to scalar operations if the HW supports it.
7451 2015-10-22 Richard Biener <rguenther@suse.de>
7453 PR tree-optimization/19049
7454 PR tree-optimization/65962
7455 * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
7456 to strided accesses if single-element interleaving doesn't work.
7458 2015-10-22 Richard Biener <rguenther@suse.de>
7462 * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
7463 (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
7464 (expand_unop): Likewise.
7466 2015-10-22 Richard Biener <rguenther@suse.de>
7468 * fold-const.c (fold_addr_of_array_ref_difference): Properly
7469 convert operands before folding a MINUS_EXPR.
7470 (fold_binary_loc): Move simplification of MINUS_EXPR on
7471 converted POINTER_PLUS_EXPRs ...
7472 * match.pd: ... here.
7474 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
7476 * builtins.c (fold_builtin_tan): Delete.
7477 (fold_builtin_1): Handle constant tan arguments here.
7478 * match.pd: Simplify (tan (atan x)) to x.
7480 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
7482 * builtins.c (fold_builtin_cproj): Delete.
7483 (fold_builtin_1): Handle constant arguments here.
7484 (build_complex_cproj): Move and rename to...
7485 * tree.c: (build_complex_inf): ...this.
7486 * tree.h (build_complex_inf): Declare.
7487 * match.pd: Fold cproj(x)->x if x has no infinity.
7488 Use build_complex_inf for existing cproj rules.
7490 2015-10-22 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7493 * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
7494 already have a comparison result.
7496 2015-10-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7499 * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
7500 (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
7501 (aarch64_classify_address): Likewise.
7502 (aarch64_secondary_reload): Likewise.
7503 (aarch64_override_options_after_change_1): Adjust.
7504 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
7505 Use aarch64_nopcrelative_literal_loads.
7506 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
7507 * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
7510 2015-10-21 Martin Sebor <msebor@redhat.com>
7513 * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
7514 (print_filtered_help): Reference aliased option's name and encourage
7515 readers to use it in preference to the alias if the former is not
7516 documented. Mention when using an option is diagnosed.
7517 * gcc.c (display_help): End each sentence with a period.
7519 * common.opt: End each sentence that describes an option with
7521 * config/aarch64/aarch64.opt: Same.
7522 * config/alpha/alpha.opt: Same.
7523 * config/arc/arc.opt: Same.
7524 * config/arm/arm.opt: Same.
7525 * config/avr/avr.opt: Same.
7526 * config/bfin/bfin.opt: Same.
7527 * config/c6x/c6x.opt: Same.
7528 * config/cr16/cr16.opt: Same.
7529 * config/cris/cris.opt: Same.
7530 * config/cris/linux.opt: Same.
7531 * config/darwin.opt: Same.
7532 * config/epiphany/epiphany.opt: Same.
7533 * config/fr30/fr30.opt: Same.
7534 * config/frv/frv.opt: Same.
7535 * config/ft32/ft32.opt: Same.
7536 * config/g.opt: Same.
7537 * config/h8300/h8300.opt: Same.
7538 * config/i386/cygming.opt: Same.
7539 * config/i386/djgpp.opt: Same.
7540 * config/i386/i386.opt: Same.
7541 * config/i386/interix.opt: Same.
7542 * config/i386/mingw-w64.opt: Same.
7543 * config/i386/mingw.opt: Same.
7544 * config/ia64/ia64.opt: Same.
7545 * config/ia64/ilp32.opt: Same.
7546 * config/iq2000/iq2000.opt: Same.
7547 * config/linux.opt: Same.
7548 * config/lm32/lm32.opt: Same.
7549 * config/lynx.opt: Same.
7550 * config/m32c/m32c.opt: Same.
7551 * config/m32r/m32r.opt: Same.
7552 * config/m68k/ieee.opt: Same.
7553 * config/m68k/m68k.opt: Same.
7554 * config/mcore/mcore.opt: Same.
7555 * config/mep/mep.opt: Same.
7556 * config/microblaze/microblaze.opt: Same.
7557 * config/mips/mips.opt: Same.
7558 * config/mmix/mmix.opt: Same.
7559 * config/mn10300/mn10300.opt: Same.
7560 * config/moxie/moxie.opt: Same.
7561 * config/msp430/msp430.opt: Same.
7562 * config/nios2/elf.opt: Same.
7563 * config/nios2/nios2.opt: Same.
7564 * config/nvptx/nvptx.opt: Same.
7565 * config/pa/pa-hpux.opt: Same.
7566 * config/pa/pa-hpux1010.opt: Same.
7567 * config/pa/pa-hpux1111.opt: Same.
7568 * config/pa/pa-hpux1131.opt: Same.
7569 * config/pa/pa.opt: Same.
7570 * config/pa/pa64-hpux.opt: Same.
7571 * config/pdp11/pdp11.opt: Same.
7572 * config/rl78/rl78.opt: Same.
7573 * config/rs6000/476.opt: Same.
7574 * config/rs6000/aix64.opt: Same.
7575 * config/rs6000/darwin.opt: Same.
7576 * config/rs6000/linux64.opt: Same.
7577 * config/rs6000/rs6000.opt: Same.
7578 * config/rs6000/sysv4.opt: Same.
7579 * config/s390/s390.opt: Same.
7580 * config/s390/tpf.opt: Same.
7581 * config/sh/sh.opt: Same.
7582 * config/sol2.opt: Same.
7583 * config/sparc/long-double-switch.opt: Same.
7584 * config/sparc/sparc.opt: Same.
7585 * config/spu/spu.opt: Same.
7586 * config/stormy16/stormy16.opt: Same.
7587 * config/tilegx/tilegx.opt: Same.
7588 * config/tilepro/tilepro.opt: Same.
7589 * config/v850/v850.opt: Same.
7590 * config/vax/vax.opt: Same.
7591 * config/visium/visium.opt: Same.
7592 * config/vms/vms.opt: Same.
7593 * config/vxworks.opt: Same.
7594 * config/xtensa/xtensa.opt: Same.
7596 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
7597 Sebastian Pop <s.pop@samsung.com>
7599 * graphite-scop-detection.c (parameter_index_in_region): Update call to
7600 invariant_in_sese_p_rec.
7601 * graphite-sese-to-poly.c (extract_affine): Same.
7602 * sese.c (invariant_in_sese_p_rec): Pass in an extra
7603 parameter has_vdefs.
7604 (scalar_evolution_in_region): Return chrec_dont_know when the scalar
7605 variable depends on virtual definitions in the current region.
7606 * sese.h (invariant_in_sese_p_rec): Update declaration.
7608 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
7609 Sebastian Pop <s.pop@samsung.com>
7611 * graphite-scop-detection.c (build_scops): Do not handle scops
7612 with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
7613 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
7615 2015-10-21 Mikhail Maltsev <maltsevm@gmail.com>
7617 * config.in: Regenerate.
7618 * configure: Regenerate.
7619 * configure.ac (CHECKING_P): Define.
7620 * system.h: Use CHECKING_P.
7622 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
7625 * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
7626 is negative we don't know the type.
7627 (check_stmt_for_type_change): Skip constructors of non-polymorphic
7628 types as those won't help devirutalization.
7630 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
7632 * fold-const.c (operand_equal_p): Add code matching empty constructors.
7634 2015-10-21 Eric Botcazou <ebotcazou@adacore.com>
7636 * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
7638 (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
7639 Add comments on sign of the result.
7640 * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
7641 Recurse on operand #1 instead of operand #0.
7642 <CEIL_MOD_EXPR>: Do not recurse.
7643 <ROUND_MOD_EXPR>: Likewise.
7645 2015-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7647 * cfgrtl.c (pass_free_cfg::execute): Adjust.
7648 * final.c (dbr_sequence_length): Always define.
7649 (shorten_branches): Adjust.
7650 * genattr-common.c (main): Always define DELAY_SLOTS.
7651 * genattr.c (main): Unconditionally declare functions and define
7652 macros related to delay slots.
7653 * genattrtab.c (write_eligible_delay): Adjust.
7654 (main): Always write out delay slot functions.
7655 * opts.c (default_options_table): Adjust.
7656 * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
7657 (redirect_with_delay_list_safe_p): Likewise.
7658 (fill_simple_delay_slots): Likewise.
7659 (fill_slots_from_thread): Likewise.
7660 (make_return_insns): Likewise.
7661 (dbr_schedule): Likewise.
7662 (rest_of_handle_delay_slots): Likewise.
7663 (pass_delay_slots::gate): Likewise.
7664 * toplev.c (process_options): Likewise.
7666 2015-10-21 Richard Henderson <rth@redhat.com>
7668 * targhooks.c (default_addr_space_pointer_mode): Remove check
7669 for generic address space.
7670 (default_addr_space_address_mode): Likewise.
7671 (default_addr_space_valid_pointer_mode): Likewise.
7672 (default_addr_space_legitimate_address_p): Likewise.
7673 (default_addr_space_legitimize_address): Likewise.
7674 * target.def (addr_space.pointer_mode): Update documentation
7675 of default behavior.
7676 (addr_space.address_mode): Likewise.
7679 * expr.c (expand_expr_real_2): Use convert_modes on disjoint
7682 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
7684 * builtins.c (fold_builtin_cabs): Delete.
7685 (fold_builtin_1): Update accordingly. Handle constant arguments here.
7686 * match.pd: Add rules previously handled by fold_builtin_cabs.
7688 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
7690 * fold-const.h (fold_strip_sign_ops): Delete.
7691 * fold-const.c (fold_strip_sign_ops): Likewise.
7692 (fold_unary_loc, fold_binary_loc): Remove calls to it.
7693 * builtins.c (fold_builtin_cos, fold_builtin_cosh)
7694 (fold_builtin_ccos): Delete.
7695 (fold_builtin_pow): Don't call fold_strip_sign_ops.
7696 (fold_builtin_hypot, fold_builtin_copysign): Likewise.
7697 Remove fndecl argument.
7698 (fold_builtin_1): Update calls accordingly. Handle constant
7699 cos, cosh, ccos and ccosh here.
7701 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
7703 * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
7704 * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
7705 * common.opt (fssa-backprop): New option.
7706 * fold-const.h (negate_mathfn_p): Declare.
7707 * fold-const.c (negate_mathfn_p): Make public.
7708 * timevar.def (TV_TREE_BACKPROP): New.
7709 * tree-pass.h (make_pass_backprop): Declare.
7710 * passes.def (pass_backprop): Add.
7711 * gimple-ssa-backprop.c: New file.
7713 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
7714 Sebastian Pop <s.pop@samsung.com>
7716 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
7717 Do not call create_empty_if_region_on_edge when cond_expr is true.
7718 (translate_isl_ast_node_for): Check whether a guard has been generated.
7720 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
7722 * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
7723 (operator=): Removed.
7724 (dr_info): Make alias_set number the last argument with default
7725 value of invalid_alias_set.
7726 * graphite-sese-to-poly.c (build_scop_drs): Update constructor
7728 (rewrite_reductions_out_of_ssa): Iterate only through the
7729 basic blocks which are inside region.
7730 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
7731 * sese.h (struct sese_l): Removed assignment operator.
7732 (split_region_for_bb): Removed dead code.
7734 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
7736 * graphite-poly.h (struct dr_info): Removed conversion constructor.
7737 (struct scop): Renamed scop::region to scop::scop_info
7738 (scop_set_region): Same.
7739 (SCOP_REGION): Removed
7740 (SCOP_CONTEXT): Removed.
7741 (POLY_SCOP_P): Removed.
7742 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
7743 Rename scop->region to scop->scop_info.
7744 (add_parameters_to_ivs_params): Same.
7745 (graphite_regenerate_ast_isl): Same.
7746 * graphite-poly.c (new_scop): Same.
7748 (print_scop_params): Same.
7749 * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
7750 (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
7751 (dot_all_scops_1): Rename scop->region to scop->scop_info.
7752 (scop_detection::nb_pbbs_in_loops): Same.
7753 (find_scop_parameters): Same.
7754 (try_generate_gimple_bb): Same.
7755 (gather_bbs::before_dom_children): Same.
7756 (gather_bbs::after_dom_children): Same.
7757 (build_scops): Same.
7758 * graphite-sese-to-poly.c (build_scop_scattering): Same.
7759 (extract_affine_chrec): Same.
7760 (extract_affine): Same.
7761 (set_scop_parameter_dim): Same.
7762 (build_loop_iteration_domains): Same.
7763 (create_pw_aff_from_tree): Same.
7764 (add_param_constraints): Same.
7765 (build_scop_iteration_domain): Same.
7766 (build_scop_drs): Same.
7767 (analyze_drs_in_stmts): Same.
7768 (insert_out_of_ssa_copy_on_edge): Same.
7769 (rewrite_close_phi_out_of_ssa):Same.
7770 (rewrite_reductions_out_of_ssa):Same.
7771 (handle_scalar_deps_crossing_scop_limits):Same.
7772 (rewrite_cross_bb_scalar_deps):Same.
7773 (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
7774 (build_poly_scop):Same.
7775 (build_alias_set): Use pointer to dr_info.
7776 * graphite.c (print_graphite_scop_statistics):
7777 (graphite_transform_loops):
7778 * sese.h (struct sese_l): Remove conversion constructor.
7780 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
7783 * tree.c (verify_type): Verify that TYPE_MODE match
7784 between TYPE_CANONICAL and type.
7785 * expr.c (store_expr_with_bounds): Revert my previous change.
7786 * expmed.c (store_bit_field_1): Revert prevoius change.
7787 * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
7788 to match for all types.
7790 2015-10-21 Nathan Sidwell <nathan@codesourcery.com>
7792 * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
7795 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
7797 * doc/tm.texi: Regenerated.
7798 * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
7799 * stor-layout.c (layout_type): Use mode to get vector mask size.
7800 * target.def (get_mask_mode): New.
7801 * targhooks.c (default_get_mask_mode): New.
7802 * targhooks.h (default_get_mask_mode): New.
7803 * tree-vect-stmts.c (get_same_sized_vectype): Add special case
7805 * tree.c (MAX_BOOL_CACHED_PREC): New.
7806 (nonstandard_boolean_type_cache): New.
7807 (build_nonstandard_boolean_type): New.
7808 (make_vector_type): Vector mask has no canonical type.
7809 (build_truth_vector_type): New.
7810 (build_same_sized_truth_vector_type): New.
7811 (truth_type_for): Support vector masks.
7812 * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
7813 (build_truth_vector_type): New.
7814 (build_same_sized_truth_vector_type): New.
7815 (build_nonstandard_boolean_type): New.
7816 * tree-cfg.c (verify_gimple_comparison) Require boolean
7817 vector type for vector comparison.
7818 (verify_gimple_assign_ternary): Likewise.
7819 * optabs.c (expand_vec_cond_expr): Accept boolean vector as
7821 * tree-vect-stmts.c (vectorizable_condition): Use boolean
7822 vector type for vector comparison.
7823 * tree-vect-generic.c (elem_op_func): Add new operand to hold
7825 (do_unop): Adjust to modified function type.
7826 (do_binop): Likewise.
7827 (do_plus_minus): Likewise.
7828 (do_negate); Likewise.
7829 (expand_vector_piecewise): Likewise.
7830 (do_cond): Likewise.
7831 (do_compare): Use comparison instead of condition.
7832 (expand_vector_divmod): Use boolean vector type for comparison.
7833 (expand_vector_operations_1): Skip scalar mask operations.
7835 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
7837 * omp-low.c (simd_clone_create): Set in_other_partition
7840 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
7842 * doc/extend.exp (Local Register Variables): Rewrite.
7844 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
7846 * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
7847 and x*x in cases where the operands are sign ops. Extend these
7848 rules to handle copysign as a sign op (including for cos, cosh
7849 and pow, which already treated negate and abs as sign ops).
7851 2015-10-21 Uros Bizjak <ubizjak@gmail.com>
7854 * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
7855 for 64-bit MS_ABI targets also when default incoming stack boundary
7858 2015-10-21 Richard Biener <rguenther@suse.de>
7860 * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
7861 cond stmts, enhanced and split out from ...
7862 (vn_phi_eq): ... here.
7864 2015-10-21 Richard Biener <rguenther@suse.de>
7867 * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
7868 (tree_ssa_name_nonnegative_warnv_p): Fold into ...
7869 (tree_single_nonnegative_warnv_p): ... here. For SSA names
7870 make sure they are not registered for update.
7872 2015-10-21 Richard Biener <rguenther@suse.de>
7874 PR tree-optimization/68026
7875 * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
7876 unsigned VARYING values.
7878 2015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
7880 * asan.c (asan_emit_stack_protection): Don't pass local stack to
7881 asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
7882 NULL and use local stack than.
7883 (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
7884 in addition to __asan_init.
7885 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
7886 (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
7887 * asan.h (asan_intercepted_p): Handle new string builtins.
7888 * ubsan.c (ubsan_use_new_style_p): New function.
7889 (ubsan_instrument_float_cast): If location is unknown, assign
7890 input_location to loc. Propagate loc to ubsan_create_data if
7891 ubsan_use_new_style_p returned true.
7893 2015-10-21 Jeff Law <law@redhat.com>
7895 * Makefile.in (OBJS): Remove sched-vis.c
7896 * sched-vis.c: Removed. Code moved into...
7897 * print-rtl.c: Here. Include cfg.h, pretty-print.h and print-rtl.h.
7898 * rtl.h: Remove prototypes for functions now living in print-rtl.c
7899 * print-rtl.h Add prototypes for new functions in print-rtl.c.
7900 * auto-inc-dec.c: Include print-rtl.h
7901 * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
7902 * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
7904 * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
7907 2015-10-21 Richard Biener <rguenther@suse.de>
7908 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7910 * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
7912 * doc/implement-c.texi (Integers Implementation): Make GCC's promises
7913 about signed left shift stronger and clarify the cases when they're
7915 Move (a * (1 << b)) is (a << b) to match.pd.
7916 Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
7917 Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
7918 Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
7920 * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
7922 (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
7923 (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
7924 (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
7926 (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
7928 (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
7930 2015-10-21 Gregor Richards <gregor.richards@uwaterloo.ca>
7931 Szabolcs Nagy <szabolcs.nagy@arm.com>
7932 Alan Modra <amodra@gmail.com>
7934 * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
7935 * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
7936 (LINK_SPEC): Add %(link_secure_plt).
7937 (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
7938 * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
7940 2015-10-20 Gregor Richards <gregor.richards@uwaterloo.ca>
7941 Szabolcs Nagy <szabolcs.nagy@arm.com>
7943 * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
7944 (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
7946 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7948 * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
7950 (fusion_load_store): Use it.
7951 * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
7952 ldp and stp in VD modes.
7953 * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
7954 (store_pair<mode>, VD): Likewise.
7956 2015-10-20 Vladimir Makarov <vmakarov@redhat.com>
7958 PR rtl-optimization/67609
7959 * lra-splill.c (lra_final_code_change): Don't remove all
7962 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7964 * simplify-rtx.c (simplify_binary_operation): If either operand was
7965 a constant pool reference use them if all other simplifications failed.
7967 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7969 * config/aarch64/aarch64.md
7970 (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
7971 * config/aarch64/aarch64-simd.md
7972 (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
7973 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
7974 (aarch64_fpconst_pow_of_2): New function.
7975 (aarch64_vec_fpconst_pow_of_2): Likewise.
7976 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
7978 (aarch64_vec_fpconst_pow_of_2): Likewise.
7979 * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
7980 (aarch64_fp_vec_pow2): Likewise.
7982 2015-10-20 Uros Bizjak <ubizjak@gmail.com>
7984 * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
7985 (ALPHA_ARG_SIZE): Ditto. Remove unused NAMED argument.
7986 * config/alpha/alpha.c (alpha_function_arg_advance): Update
7987 ALPHA_ARG_SIZE usage.
7988 (alpha_arg_partial_bytes): Ditto.
7990 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
7993 * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
7994 error_mark_node decls.
7996 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
8000 * common/config/i386/i386-common.c (ix86_handle_option): Remove
8001 OPT_miamcu handling.
8002 * config/i386/i386.c (PTA_NO_80387): New macro.
8003 (processor_alias_table): Add PTA_NO_80387 to lakemont.
8004 (ix86_option_override_internal): Update MASK_80387 from
8005 PTA_NO_80387. Don't warn x87/MMX/SSE/AVX for -miamcu. Warn
8006 SSE math only if 80387 is supported. Don't change
8008 (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
8010 * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
8011 if TARGET_80387 is true and TARGET_IAMCU is false.
8012 (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
8013 is true and TARGET_IAMCU_P is false.
8015 2015-10-20 Richard Biener <rguenther@suse.de>
8017 PR tree-optimization/68017
8018 * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
8020 2015-10-20 Martin Liska <mliska@suse.cz>
8022 * cgraphclones.c (cgraph_node::create_virtual_clone):
8023 Verify cgraph_node.local.versionable instead of calling
8024 tree_versionable_function_p.
8025 * ipa-cp.c (determine_versionability): Save the information
8026 to ipa_node_params summary.
8027 (ipcp_versionable_function_p): Use it.
8028 (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
8029 (ipcp_generate_summary): Do not compute cgraph_node
8031 * ipa-inline-analysis.c (inline_generate_summary): Compute
8032 versionability for all cgraph nodes.
8033 * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
8034 ipa_node_params::versionability.
8035 * ipa-prop.h (struct ipa_node_params): Declare it.
8037 2015-10-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8040 * varasm.c (assemble_variable): Move special vtv handling to..
8041 (handle_vtv_comdat_sections): .. here. New function.
8042 (output_object_block): Handle vtv sections.
8044 2015-10-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
8047 * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
8049 2015-10-20 Arkadiusz Drabczyk <arkadiusz@drabczyk.org>
8051 * doc/extend.texi: Update documentation WRT inline functions.
8053 2015-10-20 Alan Modra <amodra@gmail.com>
8056 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
8057 * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
8058 (TARGET_CAN_SPLIT_STACK_64BIT): Define.
8060 2015-10-19 Pierre-Marie de Rodat <derodat@adacore.com>
8062 PR rtl-optimization/66790
8063 * df.h (DF_MIR): New macro.
8064 (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
8065 (DF_MIR_INFO_BB): New macro.
8066 (DF_MIR_IN, DF_MIR_OUT): New macros.
8067 (struct df_mir_bb_info): New.
8068 (df_mir): New macro.
8069 (df_mir_add_problem, df_mir_simulate_one_insn): New forward
8071 (df_mir_get_bb_info): New.
8072 * df-problems.c (struct df_mir_problem_data): New.
8073 (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
8074 df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
8075 df_mir_confluence_0, df_mir_confluence_n,
8076 df_mir_transfer_function, df_mir_free, df_mir_top_dump,
8077 df_mir_bottom_dump, df_mir_verify_solution_start,
8078 df_mir_verify_solution_end): New.
8080 (df_mir_add_problem, df_mir_simulate_one_insn): New.
8081 * timevar.def (TV_DF_MIR): New.
8082 * ree.c: Include bitmap.h
8083 (add_removable_extension): Add an INIT_REGS parameter. Use it
8084 to skip zero-extensions that may get an uninitialized register.
8085 (find_removable_extensions): Compute must-initialized registers
8086 using the MIR dataflow problem. Update the call to
8087 add_removable_extension.
8088 (find_and_remove_re): Call df_mir_add_problem.
8090 2015-10-19 Segher Boessenkool <segher@kernel.crashing.org>
8092 * common/config/mn10300/mn10300-common.c
8093 (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
8094 Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
8096 2015-10-19 David Wohlferd <dw@LimeGreenSocks.com>
8098 * doc/extend.texi (Explicit Register Variables): Simplify and
8099 avoid unnecessary and confusion abbreviations. Update cross
8101 doc/implement-c.tex: Update cross reference.
8103 2015-10-19 Jeff Law <law@redhat.com>
8105 * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
8106 that create irreducible loops unless the path elimiantes a multiway
8109 2015-10-19 Richard Biener <rguenther@suse.de>
8111 PR tree-optimization/67975
8112 * tree-cfg.h (extract_true_false_controlled_edges): Declare.
8113 * tree-cfg.c (extract_true_false_controlled_edges): Split out
8114 core worker from ...
8115 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
8116 * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
8117 instead of block number for PHIs with two or one args.
8118 (vn_phi_eq): Compare edge predicates of PHIs that are in different
8121 2015-10-19 Richard Biener <rguenther@suse.de>
8123 * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
8124 (gimple_stmt_nonnegative_warnv_p): Use it.
8125 * match.pd (CPROJ): New operator list.
8126 (cproj (complex ...)): Move simplifications from ...
8127 * builtins.c (fold_builtin_cproj): ... here.
8129 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
8131 * config/i386/i386.c (ix86_expand_vector_move): Use
8132 GET_MODE_BITSIZE for IA MCU psABI to get vector natural
8135 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
8137 * doc/invoke.texi: Replace @optindex with @opindex.
8139 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
8142 * config/i386/i386.c (ix86_valid_target_attribute_tree): If
8143 arch= is set, clear all bits in x_ix86_isa_flags, except for
8144 ISA_64BIT, ABI_64, ABI_X32, and CODE16.
8146 2015-10-19 Joost VandeVondele <vondele@gnu.gcc.org>
8149 * common.opt (fkeep-static-functions): New option.
8150 * doc/invoke.texi: Document it.
8151 * cgraphunit.c (cgraph_node::finalize_function): Use it.
8153 2015-10-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8155 * sched-int.h (struct autopref_multipass_data_): Remove offset
8156 field. Add min_offset, max_offset, multi_mem_insn_p fields.
8157 * haifa-sched.c (analyze_set_insn_for_autopref): New function.
8158 (autopref_multipass_init): Use it. Handle PARALLEL sets.
8159 (autopref_rank_data): New function.
8160 (autopref_rank_for_schedule): Use it.
8161 (autopref_multipass_dfa_lookahead_guard_1): Likewise.
8163 2015-10-18 Mikhail Maltsev <maltsevm@gmail.com>
8166 * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
8168 2015-10-18 Iain Sandoe <iain@codesourcery.com>
8170 * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
8171 (HAVE_LD_SYSROOT): New. (SYSROOT_SPEC): New.
8172 (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
8173 (STANDARD_STARTFILE_PREFIX_1): New.
8174 (STANDARD_STARTFILE_PREFIX_2): New.
8176 2015-10-18 Iain Sandoe <iain@codesourcery.com>
8178 * config/darwin-driver.c (darwin_default_min_version): Refactor code.
8179 (darwin_driver_init): Note a version-min when provided on the c/l.
8180 * config/darwin.h (%darwin_minversion): Remove.
8181 * config/i386/darwin.h: Likewise.
8182 * config/rs6000/darwin.h: Likewise.
8183 * config/darwin.opt (mmacosx-version-min=): Use the configured default,
8184 rather than an arbitrary constant.
8186 2015-10-18 Iain Sandoe <iain@codesourcery.com>
8188 * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
8189 PPC, detect conflicts between -arch and multilib settings. Detect
8190 and warn about conflicts between multiple -arch definitions.
8192 2015-10-18 Iain Sandoe <iain@codesourcery.com>
8194 * config/darwin-driver.c: Adjust includes to add diagnostic-core.
8196 2015-10-16 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8198 * lra-constraints.c (add_next_usage_insn): Change argument type
8199 from rtx to rtx_insn *.
8201 2015-10-16 H.J. Lu <hongjiu.lu@intel.com>
8203 * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
8206 2015-10-16 Andrew MacLeod <amacleod@redhat.com>
8208 * config/tilepro/gen-mul-tables.cc: Adjust include files.
8209 * config/tilegx/mul-tables.c: Regenerate.
8210 * config/tilepro/mul-tables.c: Regenerate.
8212 * config/tilegx/tilegx-c.c: Adjust include files.
8213 * config/tilegx/tilegx.c: Likewise.
8214 * config/tilepro/tilepro-c.c: Likewise.
8215 * config/tilepro/tilepro.c: Likewise.
8216 * config/aarch64/aarch64-builtins.c: Likewise.
8217 * config/aarch64/aarch64.c: Likewise.
8218 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
8219 * config/alpha/alpha.c: Likewise.
8220 * config/arc/arc.c: Likewise.
8221 * config/arm/aarch-common.c: Likewise.
8222 * config/arm/arm-builtins.c: Likewise.
8223 * config/arm/arm-c.c: Likewise.
8224 * config/arm/arm.c: Likewise.
8225 * config/avr/avr-c.c: Likewise.
8226 * config/avr/avr-devices.c: Likewise.
8227 * config/avr/avr-log.c: Likewise.
8228 * config/avr/avr.c: Likewise.
8229 * config/bfin/bfin.c: Likewise.
8230 * config/c6x/c6x.c: Likewise.
8231 * config/cr16/cr16.c: Likewise.
8232 * config/cris/cris.c: Likewise.
8233 * config/darwin-c.c: Likewise.
8234 * config/darwin-driver.c: Likewise.
8235 * config/darwin.c: Likewise.
8236 * config/default-c.c: Likewise.
8237 * config/epiphany/epiphany.c: Likewise.
8238 * config/epiphany/mode-switch-use.c: Likewise.
8239 * config/epiphany/resolve-sw-modes.c: Likewise.
8240 * config/fr30/fr30.c: Likewise.
8241 * config/frv/frv.c: Likewise.
8242 * config/ft32/ft32.c: Likewise.
8243 * config/glibc-c.c: Likewise.
8244 * config/h8300/h8300.c: Likewise.
8245 * config/i386/host-cygwin.c: Likewise.
8246 * config/i386/host-mingw32.c: Likewise.
8247 * config/i386/i386-c.c: Likewise.
8248 * config/i386/i386.c: Likewise.
8249 * config/i386/msformat-c.c: Likewise.
8250 * config/i386/winnt-cxx.c: Likewise.
8251 * config/i386/winnt-stubs.c: Likewise.
8252 * config/i386/winnt.c: Likewise.
8253 * config/ia64/ia64-c.c: Likewise.
8254 * config/ia64/ia64.c: Likewise.
8255 * config/iq2000/iq2000.c: Likewise.
8256 * config/lm32/lm32.c: Likewise.
8257 * config/m32c/m32c-pragma.c: Likewise.
8258 * config/m32c/m32c.c: Likewise.
8259 * config/m32r/m32r.c: Likewise.
8260 * config/mcore/mcore.c: Likewise.
8261 * config/mep/mep-pragma.c: Likewise.
8262 * config/mep/mep.c: Likewise.
8263 * config/microblaze/microblaze-c.c: Likewise.
8264 * config/microblaze/microblaze.c: Likewise.
8265 * config/mips/mips-tables.opt
8266 * config/mips/mips.c: Likewise.
8267 * config/mmix/mmix.c: Likewise.
8268 * config/mn10300/mn10300.c: Likewise.
8269 * config/moxie/moxie.c: Likewise.
8270 * config/msp430/msp430-c.c: Likewise.
8271 * config/msp430/msp430.c: Likewise.
8272 * config/nds32/nds32-cost.c: Likewise.
8273 * config/nds32/nds32-fp-as-gp.c: Likewise.
8274 * config/nds32/nds32-intrinsic.c: Likewise.
8275 * config/nds32/nds32-isr.c: Likewise.
8276 * config/nds32/nds32-md-auxiliary.c: Likewise.
8277 * config/nds32/nds32-memory-manipulation.c: Likewise.
8278 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
8279 * config/nds32/nds32-predicates.c: Likewise.
8280 * config/nds32/nds32.c: Likewise.
8281 * config/nios2/nios2.c: Likewise.
8282 * config/nvptx/mkoffload.c: Likewise.
8283 * config/nvptx/nvptx.c: Likewise.
8284 * config/pa/pa.c: Likewise.
8285 * config/pdp11/pdp11.c: Likewise.
8286 * config/rl78/rl78-c.c: Likewise.
8287 * config/rl78/rl78.c: Likewise.
8288 * config/rs6000/host-darwin.c: Likewise.
8289 * config/rs6000/rs6000-c.c: Likewise.
8290 * config/rs6000/rs6000-linux.c: Likewise.
8291 * config/rs6000/rs6000.c: Likewise.
8292 * config/rx/rx.c: Likewise.
8293 * config/s390/s390-c.c: Likewise.
8294 * config/s390/s390.c: Likewise.
8295 * config/sh/sh-c.c: Likewise.
8296 * config/sh/sh-mem.cc: Likewise.
8297 * config/sh/sh.c: Likewise.
8298 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
8299 * config/sh/sh_treg_combine.cc: Likewise.
8300 * config/sol2-c.c: Likewise.
8301 * config/sol2-cxx.c: Likewise.
8302 * config/sol2-stubs.c: Likewise.
8303 * config/sol2.c: Likewise.
8304 * config/sparc/sparc-c.c: Likewise.
8305 * config/sparc/sparc.c: Likewise.
8306 * config/spu/spu-c.c: Likewise.
8307 * config/spu/spu.c: Likewise.
8308 * config/stormy16/stormy16.c: Likewise.
8309 * config/v850/v850-c.c: Likewise.
8310 * config/v850/v850.c: Likewise.
8311 * config/vax/vax.c: Likewise.
8312 * config/visium/visium.c: Likewise.
8313 * config/vms/vms-c.c: Likewise.
8314 * config/vms/vms.c: Likewise.
8315 * config/vxworks.c: Likewise.
8316 * config/winnt-c.c: Likewise.
8317 * config/xtensa/xtensa.c: Likewise.
8319 2015-10-16 Christian Bruel <christian.bruel@st.com>
8322 * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
8323 (FUNCTION_BOUNDARY_P): New macro:
8324 * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
8326 * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
8327 * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
8328 * target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
8329 * function.c (allocate_struct_function): Call
8330 relayout_function hook.
8331 * passes.c (rest_of_decl_compilation): Likewise.
8333 2015-10-16 Christian Bruel <christian.bruel@st.com>
8336 * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
8337 * config/arm/arm.c (arm_option_override_internal): Call
8338 arm_override_options_after_change_1.
8339 (arm_override_options_after_change): New function.
8340 (arm_override_options_after_change_1): Likewise.
8341 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
8343 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
8346 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
8349 2015-10-16 Eric Botcazou <ebotcazou@adacore.com>
8351 * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
8352 argument is an ADDR_EXPR.
8354 2015-10-16 Richard Biener <rguenther@suse.de>
8356 * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
8357 and get rid of force_gimple_operand_gsi.
8358 (gimple_fold_builtin_memory_chk): Likewise.
8359 (gimple_fold_builtin_stxcpy_chk): Likewise.
8360 (rewrite_to_defined_overflow): Likewise.
8361 (gimple_convert_to_ptrofftype): New function.
8362 * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
8364 2015-10-16 Richard Biener <rguenther@suse.de>
8366 * tree-nested.h (build_addr): Adjust prototype.
8367 * tree-nested.c (build_addr): Remove context argument and use
8369 (get_static_chain): Adjust calls to build_addr.
8370 (convert_nl_goto_reference): Likewise.
8371 (convert_tramp_reference_op): Likewise.
8372 (finalize_nesting_tree_1): Likewise.
8373 * value-prof.c (gimple_ic): Likewise.
8374 * gimple-low.c (lower_builtin_setjmp): Likewise.
8375 * tree-parloops.c (take_address_of): Likewise.
8376 (create_call_for_reduction_1): Likewise.
8377 * tree-profile.c (gimple_gen_interval_profiler): Likewise.
8378 (gimple_gen_ic_func_profiler): Likewise.
8380 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
8382 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
8385 2015-10-16 Michael Collison <michael.collison@linaro.org>
8386 Andrew Pinski <andrew.pinski@caviumnetworks.com>
8388 * match.pd ((x < y) && (x < z) -> x < min (y,z),
8389 (x > y) and (x > z) -> x > max (y,z))
8391 2015-10-15 Gregor Richards <gregor.richards@uwaterloo.ca>
8392 Szabolcs Nagy <szabolcs.nagy@arm.com>
8394 * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
8395 (DYNAMIC_LINKER): Renamed to ...
8396 (GLIBC_DYNAMIC_LINKER): This.
8397 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
8399 2015-10-15 Marek Polacek <polacek@redhat.com>
8401 * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
8402 gimple_call_builtin instead of is_gimple_call.
8404 2015-10-15 Richard Biener <rguenther@suse.de>
8406 * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
8408 2015-10-15 Richard Biener <rguenther@suse.de>
8410 * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
8411 * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
8412 * tree-vect-loop.c (get_initial_def_for_induction): Drop
8413 use of force_gimple_operand in favor of gimple_build.
8414 Use vect_get_new_ssa_name.
8415 * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
8416 (vectorizable_mask_load_store): Likewise.
8417 (vectorizable_call): Likewise.
8418 (vectorizable_store): Likewise.
8419 (vectorizable_load): Likewise.
8420 (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
8422 2015-10-15 Richard Sandiford <richard.sandiford@arm.com>
8424 PR tree-optimization/67945
8425 * tree-pass.h (PROP_gimple_opt_math): New property flag.
8426 * generic-match-head.c (canonicalize_math_p): New function.
8427 * gimple-match-head.c: Include tree-pass.h.
8428 (canonicalize_math_p): New function.
8429 * match.pd: Group math built-in rules into simplifications
8430 and canonicalizations. Guard the latter with canonicalize_math_p.
8431 * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
8432 PROP_gimple_opt_math property.
8434 2015-10-15 Marek Polacek <polacek@redhat.com>
8436 PR tree-optimization/67953
8437 * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
8439 2015-10-15 Jiong Wang <jiong.wang@arm.com>
8441 * config.gcc: Recognize "." in architecture base name for AArch64.
8443 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
8445 * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
8447 * config/mips/mips.c (mips_setup_incoming_varargs): Use
8448 ROUND_DOWN to calculate off.
8449 (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
8450 (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
8453 2015-10-14 Eric Botcazou <ebotcazou@adacore.com>
8455 * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
8457 2015-10-14 Peter Bergner <bergner@vnet.ibm.com>
8458 Torvald Riegel <triegel@redhat.com>
8461 * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
8462 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
8463 trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
8464 (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
8465 *trechkpt, *treclaim, *tsr, *ttest): ...to this. Add memory barrier.
8466 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
8467 trechkpt, treclaim, tsr, ttest): New define_expands.
8468 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
8469 __TM_FENCE__ for htm.
8470 * doc/extend.texi: Update documentation for htm builtins.
8472 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
8475 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
8476 REG_CFA_EXPRESSION to aligned SSE stores.
8478 2015-10-14 Jeff Law <law@redhat.com>
8480 * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
8481 num_threaded_edges for successful FSM threads too.
8483 2015-10-14 Richard Biener <rguenther@suse.de>
8485 * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
8486 (vect_is_simple_use_1): Likewise. Make overload of vect_is_simple_use.
8487 (vect_get_vec_def_for_operand): Remove unused parameter.
8488 * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
8489 (vect_create_epilog_for_reduction): Likewise.
8490 (vectorizable_reduction): Likewise.
8491 (vectorizable_live_operation): Likewise.
8492 * tree-vect-patterns.c (type_conversion_p): Likewise.
8493 (vect_recog_vector_vector_shift_pattern): Likewise.
8494 (check_bool_pattern): Likewise.
8495 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
8496 (vect_analyze_slp_cost_1): Likewise.
8497 * tree-vect-stmts.c (process_use): Likewise.
8498 (vect_get_vec_def_for_operand): Do not handle reductions.
8499 (vect_get_vec_defs): Adjust.
8500 (vectorizable_mask_load_store): Likewise.
8501 (vectorizable_call): Likewise.
8502 (vectorizable_simd_clone_call): Likewise.
8503 (vect_get_loop_based_defs): Likewise.
8504 (vectorizable_conversion): Likewise.
8505 (vectorizable_assignment): Likewise.
8506 (vectorizable_shift): Likewise.
8507 (vectorizable_operation): Likewise.
8508 (vectorizable_store): Likewise.
8509 (vectorizable_load): Likewise.
8510 (vect_is_simple_cond): Likewise.
8511 (vectorizable_condition): Likewise.
8512 (vect_is_simple_use): Remove unused parameters.
8513 (vect_is_simple_use_1): Adjust and rename.
8515 2015-10-14 Richard Biener <rguenther@suse.de>
8517 PR tree-optimization/67915
8518 * match.pd: Handle comparisons of addresses of STRING_CSTs.
8519 * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
8520 * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
8521 stmt folding in favor of GIMPLE one.
8523 2015-10-14 Marek Polacek <polacek@redhat.com>
8525 PR tree-optimization/67815
8526 * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
8527 (reassociate_bb): Call it.
8529 2015-10-14 Richard Biener <rguenther@suse.de>
8531 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
8532 Reset info at start.
8533 (vect_analyze_group_access_1): Add debug print.
8534 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
8535 (vect_compute_single_scalar_iteration_cost): ... to this.
8536 (vect_analyze_loop_2): Adjust.
8537 * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
8538 * tree-vectorizer.h: ... here.
8539 (add_stmt_info_to_vec): Remove.
8540 * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
8542 2015-10-14 Dominik Vogt <vogt@linux.vnet.ibm.com>
8544 * targhooks.c (default_target_option_pragma_parse): Do not warn if
8545 called on behalf of "#pragma GCC pop_options".
8547 2015-10-14 Tom de Vries <tom@codesourcery.com>
8549 * cfganal.c (verify_no_unreachable_blocks): New function.
8550 (inverted_post_order_compute) [ENABLE_CHECKING]: Call
8551 verify_no_unreachable_blocks.
8552 cfganal.h (verify_no_unreachable_blocks): Declare.
8554 2015-10-13 Mikhail Maltsev <maltsevm@gmail.com>
8556 * common.opt: Add flag_checking.
8557 * system.h (CHECKING_P): Define.
8559 2015-10-13 Jakub Jelinek <jakub@redhat.com>
8560 Aldy Hernandez <aldyh@redhat.com>
8561 Ilya Verbin <ilya.verbin@intel.com>
8563 * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
8564 BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
8565 BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
8566 BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
8567 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
8568 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
8569 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
8570 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
8571 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
8572 BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
8573 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
8574 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
8575 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
8576 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
8577 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
8578 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
8579 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
8580 (struct cgraph_simd_clone_arg): Adjust comment.
8581 * coretypes.h (struct gomp_ordered): New forward decl.
8582 * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
8583 set critical clauses to it.
8584 (gimple_build_omp_ordered): Return gomp_ordered * instead of
8585 gimple *. Add CLAUSES argument, set ordered clauses to it.
8586 (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
8588 * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
8589 GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
8590 * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP. Add another bit
8591 to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
8592 GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP. Adjust
8593 GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
8594 Add another bit to GF_OMP_TARGET_KIND_MASK mask. Add
8595 GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
8597 GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
8598 (gomp_critical): Add clauses field.
8599 (gomp_ordered): New struct.
8600 (is_a_helper <gomp_ordered *>::test): New inline.
8601 (gimple_build_omp_critical): Add CLAUSES argument.
8602 (gimple_build_omp_ordered): Likewise. Return gomp_ordered *
8603 instead of gimple *.
8604 (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
8605 gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
8606 gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
8607 gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
8609 * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
8610 (dump_gimple_omp_target): Handle enter data and exit data.
8611 (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
8612 (dump_gimple_omp_critical): Print clauses.
8613 (dump_gimple_omp_ordered): New function.
8614 (dump_gimple_omp_task): Handle taskloop.
8615 (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
8617 * gimple-walk.c (walk_gimple_op): Walk clauses on
8618 GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
8619 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
8620 (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
8621 (struct gimplify_omp_ctx): Add loop_iter_var,
8622 target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
8623 and target_firstprivatize_array_bases fields.
8624 (delete_omp_context): Release loop_iter_var.
8625 (gimplify_bind_expr): Handle ORT_NONE.
8626 (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
8627 ORT_COMBINED_TARGET.
8628 (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
8629 OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
8630 (omp_firstprivatize_variable): Handle ORT_NONE. Adjust check for
8631 ORT_TARGET for the addition of ORT_COMBINED_TARGET. Handle
8632 ctx->target_map_scalars_firstprivate.
8633 (omp_add_variable): Handle ORT_NONE. Allow map clause together with
8634 data sharing clauses. For data sharing clause with VLA decl
8635 on omp target/target data don't add firstprivate for the pointer.
8636 Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
8637 (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
8638 the addition of ORT_COMBINED_TARGET.
8639 (omp_notice_variable): Handle ORT_NONE. Adjust check for ORT_TARGET
8640 for the addition of ORT_COMBINED_TARGET. Handle implicit mapping of
8641 pointers as zero length array sections and
8642 ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
8644 (omp_check_private): Handle omp_member_access_dummy_var vars.
8645 (find_decl_expr): New function.
8646 (gimplify_scan_omp_clauses): Add CODE argument. For OMP_CLAUSE_IF
8647 complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
8648 Handle OMP_CLAUSE_GANG separately. Handle
8649 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
8650 clauses. Diagnose linear clause on combined
8651 distribute {, parallel for} simd construct, unless it is the loop
8652 iterator. Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
8653 Handle map clauses with COMPONENT_REF. Initialize
8654 ctx->target_map_scalars_firstprivate,
8655 ctx->target_firstprivatize_array_bases and
8656 ctx->target_map_pointers_as_0len_arrays. Add firstprivate for
8657 linear clause even to target region if combined. Remove
8658 map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
8659 OMP_TARGET_{,ENTER_,EXIT_}DATA. For GOMP_MAP_FIRSTPRIVATE_POINTER
8660 map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
8661 Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}. Handle
8662 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
8663 For linear clause on worksharing loop combined with parallel add
8664 shared clause on the parallel. Handle OMP_CLAUSE_REDUCTION
8665 with MEM_REF OMP_CLAUSE_DECL. Set DECL_NAME on
8666 omp_member_access_dummy_var vars. Add lastprivate clause to outer
8668 (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
8669 If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
8670 GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
8672 (gimplify_adjust_omp_clauses): Add CODE argument. Handle removal
8673 of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
8674 in target body. Handle removal of struct mapping if struct is not
8675 seen in target body. Remove GOMP_MAP_STRUCT map clause on
8676 OMP_TARGET_EXIT_DATA. Adjust check for ORT_TARGET for the
8677 addition of ORT_COMBINED_TARGET. Use GOMP_MAP_FIRSTPRIVATE_POINTER
8678 instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
8679 for VLAs. Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
8680 clause appear together. Handle
8681 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}. Don't remove map
8682 clause if it has map-type-modifier always. Handle
8683 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
8685 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
8686 Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
8688 (gimplify_omp_for): Likewise. Handle OMP_TASKLOOP. Initialize
8689 loop_iter_var. Use OMP_FOR_ORIG_DECLS. Fix handling of lastprivate
8690 iterators in doacross loops.
8691 (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
8692 gimplify_adjust_omp_clauses callers. Use ORT_COMBINED_TARGET
8693 for OMP_TARGET_COMBINED. Adjust check for ORT_TARGET
8694 for the addition of ORT_COMBINED_TARGET.
8695 (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
8696 gimplify_adjust_omp_clauses callers. Handle OMP_TARGET_ENTER_DATA
8697 and OMP_TARGET_EXIT_DATA.
8698 (gimplify_omp_ordered): New function.
8699 (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
8700 OMP_TARGET_EXIT_DATA. Use gimplify_omp_ordered for OMP_ORDERED.
8701 Gimplify clauses on OMP_CRITICAL.
8702 * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
8703 expand_GOMP_SIMD_ORDERED_END): New functions.
8704 * internal-fn.def (GOMP_SIMD_ORDERED_START,
8705 GOMP_SIMD_ORDERED_END): New internal functions.
8706 * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
8707 BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
8708 BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
8709 BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
8710 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
8711 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
8712 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
8713 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
8714 BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
8715 BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
8716 BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
8717 BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
8718 (BUILT_IN_GOMP_TASK): Add INT argument to the end.
8719 (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
8721 (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
8722 GOMP_target_data_41, adjust type.
8723 (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
8724 GOMP_target_update_41, adjust type.
8725 * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
8727 (struct omp_for_data): Add ordered and simd_schedule fields.
8728 (omp_member_access_dummy_var, unshare_and_remap_1,
8729 unshare_and_remap, is_taskloop_ctx): New functions.
8730 (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
8731 (extract_omp_for_data): Handle taskloops and doacross loops
8732 and simd schedule modifier.
8733 (omp_adjust_chunk_size): New function.
8734 (get_ws_args_for): Use it.
8735 (lookup_sfield): Change first argument to splay_tree_key,
8736 add overload with first argument tree.
8737 (maybe_lookup_field): Likewise.
8738 (use_pointer_for_field): Handle omp_member_access_dummy_var.
8739 (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
8740 task_shared_vars, clear TREE_ADDRESSABLE on the copy.
8741 (build_outer_var_ref): Add LASTPRIVATE argument, handle
8742 taskloops and omp_member_access_dummy_var vars.
8743 (build_sender_ref): Change first argument to splay_tree_key,
8744 add overload with first argument tree.
8745 (install_var_field): For mask & 8 use &DECL_UID as key instead
8747 (fixup_child_record_type): Const qualify *.omp_data_i.
8748 (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
8749 C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
8750 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
8751 OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
8752 on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
8753 (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
8754 (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
8756 (add_taskreg_looptemp_clauses): New function.
8757 (scan_omp_parallel): Use it.
8758 (scan_omp_task): Likewise.
8759 (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
8760 For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
8761 (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
8762 and GF_OMP_TARGET_KIND_EXIT_DATA. Formatting fixes. Allow the
8763 sandwiched taskloop constructs. Type check
8764 OMP_CLAUSE_DEPEND_{KIND,SOURCE}. Allow ordered simd inside of simd
8765 region. Diagnose depend(source) or depend(sink:...) on
8766 target constructs or task/taskloop.
8767 (handle_simd_reference): Use get_name.
8768 (lower_rec_input_clauses): Likewise. Ignore all
8769 OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
8770 Allow _LOOPTEMP_ clause on GOMP_TASK. Unshare new_var
8771 before passing it to omp_clause_{default,copy}_ctor. Handle
8772 OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL. Set
8773 lastprivate_firstprivate flag for linear that needs copyin and
8774 copyout. Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
8775 (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
8776 on taskloop lookup decl in outer context. Pass true to
8777 build_outer_var_ref lastprivate argument. Handle
8778 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
8779 outside of outer taskloop for.
8780 (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
8782 (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
8783 GOMP_TASK. Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE. Handle
8784 omp_member_access_dummy_var vars. Handle OMP_CLAUSE_REDUCTION
8785 with MEM_REF OMP_CLAUSE_DECL. Use new lookup_sfield overload.
8786 (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
8787 abstract origin. Handle omp_member_access_dummy_var vars.
8788 (expand_parallel_call): Use expand_omp_build_assign.
8789 (expand_task_call): Handle taskloop construct expansion. Add
8790 REGION argument. Use GOMP_TASK_* defines instead of hardcoded
8791 integers. Add priority argument to GOMP_task* calls. Or in
8792 GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
8794 (expand_omp_build_assign): Add prototype. Add AFTER
8795 argument, if true emit statements after *GSI_P and continue linking.
8796 (expand_omp_taskreg): Adjust expand_task_call caller.
8797 (expand_omp_for_init_counts): Rename zero_iter_bb argument to
8798 zero_iter1_bb and first_zero_iter to first_zero_iter1, add
8799 zero_iter2_bb and first_zero_iter2 arguments, handle computation
8800 of counts even for ordered loops.
8801 (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
8802 (expand_omp_ordered_source, expand_omp_ordered_sink,
8803 expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
8805 (expand_omp_for_generic): Use omp_adjust_chunk_size. Handle linear
8806 clauses on worksharing loop. Handle DOACROSS loop expansion.
8807 (expand_omp_for_static_nochunk): Handle linear clauses on
8808 worksharing loop. Adjust expand_omp_for_init_counts
8810 (expand_omp_for_static_chunk): Likewise. Use omp_adjust_chunk_size.
8811 (expand_omp_simd): Handle addressable fd->loop.v. Adjust
8812 expand_omp_for_init_counts callers.
8813 (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
8815 (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
8816 Handle doacross loops.
8817 (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
8818 GF_OMP_TARGET_KIND_EXIT_DATA. Pass flags and depend arguments to
8819 GOMP_target_{41,update_41,enter_exit_data} libcalls.
8820 (expand_omp): Don't expand ordered depend constructs here, record
8821 ord_stmt instead for later expand_omp_for_generic.
8822 (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
8823 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
8824 clause as stand-alone directive.
8825 (lower_omp_ordered_clauses): New function.
8826 (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
8827 don't lower anything.
8828 (lower_omp_for_lastprivate): Use last _looptemp_ clause
8829 on taskloop for comparison.
8830 (lower_omp_for): Handle taskloop constructs. Adjust OMP_CLAUSE_DECL
8831 and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
8832 expansion for linear adjustments.
8833 (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
8834 (lower_depend_clauses): Assert not seeing sink/source depend kinds.
8835 Set TREE_ADDRESSABLE on array. Change first argument from gimple *
8836 to tree * pointing to the stmt's clauses.
8837 (lower_omp_taskreg): Adjust lower_depend_clauses caller.
8838 (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
8839 and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
8840 GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
8841 map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
8842 clauses. Always use short kind and 8-bit align shift.
8843 (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
8844 (struct lower_omp_regimplify_operands_data): New type.
8845 (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
8847 (lower_omp_1): Use lower_omp_regimplify_operands instead of
8848 gimple_regimplify_operands.
8849 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
8850 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
8851 clause as stand-alone directive.
8852 (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
8853 (simd_clone_mangle): Mangle the various linear kinds
8855 (simd_clone_adjust_argument_types): Handle
8856 SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
8857 (simd_clone_init_simd_arrays): Don't do anything for uval.
8858 (simd_clone_adjust): Handle
8859 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
8860 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
8861 Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
8862 * omp-low.h (omp_member_access_dummy_var): New prototype.
8863 * passes.def (pass_simduid_cleanup): Schedule another copy of the
8864 pass after all optimizations.
8865 * tree.c (omp_clause_code_name): Add entries for
8866 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
8867 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
8868 (omp_clause_num_ops): Likewise. Bump number of OMP_CLAUSE_REDUCTION
8869 arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
8870 (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
8871 OMP_CLAUSE_REDUCTION 5 arguments. Handle
8872 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
8873 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
8875 * tree-core.h (enum omp_clause_linear_kind): New.
8876 (struct tree_omp_clause): Change type of map_kind
8877 from unsigned char to unsigned int. Add subcode.if_modifier
8878 and subcode.linear_kind fields.
8879 (enum omp_clause_code): Add
8880 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
8881 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
8882 (OMP_CLAUSE_REDUCTION): Document
8883 OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
8884 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
8885 * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
8886 (OMP_CRITICAL): Move before OMP_SINGLE. Add OMP_CRITICAL_CLAUSES
8888 (OMP_ORDERED): Move before OMP_SINGLE. Add OMP_ORDERED_CLAUSES
8890 (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
8892 * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
8893 (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
8895 (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
8896 (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
8897 (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
8898 (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
8899 OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
8900 OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
8901 OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
8902 OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
8903 OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
8904 OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
8905 OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
8906 OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
8907 OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
8908 * tree-inline.c (remap_gimple_stmt): Handle clauses on
8909 GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL. For
8910 IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
8911 * tree-nested.c (convert_nonlocal_omp_clauses): Handle
8912 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
8913 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
8914 clauses. Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
8915 (convert_local_omp_clauses): Likewise.
8916 * tree-pretty-print.c (dump_omp_clause): Handle
8917 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
8918 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
8919 clauses. Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
8920 OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
8921 OMP_CLAUSE_DEPEND_{SOURCE,SINK}. Use "delete" for
8922 GOMP_MAP_FORCE_DEALLOC. Handle
8923 GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
8924 (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
8925 and clauses on OMP_ORDERED and OMP_CRITICAL.
8926 * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
8927 Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
8928 (vectorize_loops): Adjust comments.
8929 (pass_simduid_cleanup::execute): Likewise.
8930 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
8931 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
8932 * wide-int.h (wi::gcd): New.
8934 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
8936 * config/i386/i386.c (classify_argument): Use CEIL where applicable.
8937 (ix86_function_arg_advance): Ditto.
8938 (ix86_function_arg): Ditto.
8939 (ix86_gimplify_va_arg): Ditto.
8940 (ix86_class_max_nregs): Ditto.
8941 (inline_memory_move_cost): Ditto.
8942 (ix86_set_reg_reg_cost): Ditto.
8943 * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
8945 2015-10-13 Alexandre Oliva <aoliva@redhat.com>
8948 * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
8950 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
8952 * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
8953 ROUND_UP macro and UNITS_PER_WORD * 2.
8954 * config/sparc/sparc.c (sparc_compute_frame_size):
8955 Use ROUND_UP and ROUND_DOWN macros where applicable.
8956 (function_arg_record_value, function_arg_record_value_1)
8957 (function_arg_record_value_1): Ditto.
8958 (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
8959 alignment to double-word.
8960 (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
8961 (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
8964 2015-10-13 Nikolai Bozhenov <n.bozhenov@samsung.com>
8966 * rtl.h (print_insn): Fix prototype.
8968 2015-10-13 Tom de Vries <tom@codesourcery.com>
8970 * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
8971 -1. Add assert that returned entry matches phi argument.
8972 (parallelize_loops): Move calls to init_stmt_vec_info_vec and
8973 free_stmt_vec_info_vec ...
8974 (gather_scalar_reductions): ... here. Initialize gimple_uids of phis
8977 2014-10-13 Yuri Rumyantsev <ysrumyan@gmail.com>
8979 PR tree-optimization/67909, 67947
8980 * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
8981 really skip the inner loop.
8983 2015-10-13 Jeff Law <law@redhat.com>
8985 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
8986 Allow single block jump threading paths.
8988 2015-10-13 Tom de Vries <tom@codesourcery.com>
8990 PR tree-optimization/67476
8991 * doc/invoke.texi (@item parloops-schedule): New item.
8992 * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
8993 * tree-parloops.c: Include params-enum.h.
8994 (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
8996 2015-10-13 Tom de Vries <tom@codesourcery.com>
8998 * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
8999 * params-enum.h: New file.
9000 * opts.c (handle_param): Handle case that param arg is a string.
9001 * params-list.h: Handle DEFPARAMENUM5 in params.def.
9002 * params.c (find_param): New function, factored out of ...
9003 (set_param_value): ... here.
9004 (param_string_value_p): New function.
9005 * params.h (struct param_info): Add value_names field.
9006 (find_param, param_string_value_p): Declare.
9008 2015-10-13 Tom de Vries <tom@codesourcery.com>
9010 PR tree-optimization/67476
9011 * omp-low.c (expand_omp_for_generic): Handle original loop tree.
9013 2015-10-13 Richard Biener <rguenther@suse.de>
9015 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
9016 the data dependence vector.
9017 (vect_peeling_hash_insert): Get the peeling hash table as argument.
9018 (vect_peeling_hash_get_lowest_cost): Likewise.
9019 (vect_enhance_data_refs_alignment): Adjust.
9020 (struct _vect_peel_info, struct _vect_peel_extended_info,
9021 struct peel_info_hasher): Move from ...
9022 * tree-vectorizer.h: ... here.
9023 (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
9024 (LOOP_VINFO_PEELING_HTAB): Likewise.
9025 (struct _loop_vec_info): Remove min_profitable_iters and
9026 peeling_htab members.
9027 * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
9029 (destroy_loop_vec_info): Adjust.
9030 (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
9031 (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
9032 to estimate alias versioning cost.
9033 * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
9035 2015-10-13 Richard Sandiford <richard.sandiford@arm.com>
9037 * real.h (real_isinteger): Declare.
9038 * real.c (real_isinteger): New function.
9039 * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
9040 if y is an even integer.
9042 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
9045 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
9046 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
9047 counts when these are more informative.
9049 2015-10-12 Jeff Law <law@redhat.com>
9051 * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
9052 (fsm_find_control_stmt_paths): Change name of first argument to
9053 more accurately relfect what it really is. Handle simplification
9054 of GIMPLE_COND after finding a thread path for NAME.
9055 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
9056 nontrivial conditions to be handled by FSM threader.
9057 (thread_through_normal_block): Extract the name to looup via
9058 FSM threader from COND_EXPR.
9060 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
9061 restriction that traced SSA_NAME is a user variable.
9063 2015-10-12 Tom de Vries <tom@codesourcery.com>
9065 PR tree-optimization/67476
9066 * omp-low.c (expand_omp_for_generic): Add missing phis.
9068 2015-10-12 Tom de Vries <tom@codesourcery.com>
9070 PR tree-optimization/67476
9071 * omp-low.c (expand_omp_for_generic): Handle simple latch.
9073 2015-10-12 Christophe Lyon <christophe.lyon@linaro.org>
9075 * config/aarch64/aarch64-simd-builtins.def: Update builtins
9076 tables: add tbl3 and tbx4.
9077 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
9078 (aarch64_tbx4v8qi): New.
9079 * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
9080 (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
9081 Rewrite using builtin functions.
9082 * config/aarch64/iterators.md (UNSPEC_TBX): New.
9084 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
9086 * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
9088 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
9089 Use ROUND_UP and ROUND_DOWN macros where applicable.
9090 (rs6000_darwin64_record_arg_flush): Ditto.
9091 (rs6000_function_arg): Use ROUND_UP to calculate align_words.
9092 (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
9095 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
9097 * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
9098 (AARCH64_ROUND_DOWN): Ditto.
9099 * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
9101 2015-10-12 Richard Biener <rguenther@suse.de>
9104 * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
9105 code that analyzes IVs on each stmt but in a cheaper way avoiding
9108 2015-10-12 Nick Clifton <nickc@redhat.com>
9110 * config/msp430/msp430.c (msp430_mcu_names): Rename to
9111 msp430_mcu_data, add fields for ISA and hardware multiply
9112 support. Import latest data from the devices.csv file.
9113 (msp430_override_option): Use the data from the new array.
9114 (msp430_use_f5_series_hwmult): Likewise.
9115 (use_32bit_hwmult): Likewise.
9116 (msp430_no_hwmult): Likewise.
9117 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
9119 * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
9120 not recognised then no hardware multiply support is assumed and
9121 that only the MSP430 ISA is allowed.
9123 2015-10-12 Richard Biener <rguenther@suse.de>
9125 * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
9127 (vect_analyze_loop_2): ... here.
9129 2015-10-11 Jason Merrill <jason@redhat.com>
9132 * expr.c (store_field): Call store_constructor directly when
9133 storing a CONSTRUCTOR into a target smaller than its type.
9134 Guard against unsafe bitwise copy.
9136 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
9138 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
9139 counts when these are more informative.
9141 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
9143 * tree-profile.c (tree_profiling): Do not clear
9144 pure/const when not instrumenting.
9145 (pass tree_profile): Add dump of symtab.
9147 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
9149 * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
9151 (fold_addr_of_array_ref_difference): Likewise.
9153 2015-10-11 Jeff Law <law@redhat.com>
9155 * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
9156 tree-ssa-threadbackward.c.
9157 (fsm_find_control_statement_thread_paths): Likewise.
9158 (thread_through_normal_block): Break out FSM bits and move them
9159 into a new function in tree-ssa-threadbackward.c. Call new function
9161 Minimize header file usage.
9162 * tree-ssa-threadbackward.h: New file.
9163 * tree-ssa-threadbackward.c: Likewise.
9164 * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
9166 2015-10-11 Uros Bizjak <ubizjak@gmail.com>
9168 * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
9170 2015-10-11 Segher Boessenkool <segher@kernel.crashing.org>
9172 PR rtl-optimization/67864
9173 * bb-reorder (reorder_basic_blocks_simple): Prefer existing
9174 fallthrough edges for conditional jumps. Don't sort candidate
9175 edges if not optimizing for speed.
9177 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9179 * defaults.h (REVERSE_CONDITION): New default definition.
9180 * jump.c (reversed_comparison_code_parts): Adjust.
9182 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9184 * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
9185 check HARD_FRAME_POINTER_IS_ARG_POINTER.
9187 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9189 * defaults.h (FRAME_ADDR_RTX): New default definition.
9190 * builtins.c (expand_builtin_return_addr): Adjust.
9192 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9194 * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
9195 * builtins.c (expand_builtin_return_addr): Adjust.
9197 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9199 * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
9200 * builtins.c (expand_builtin_return_addr): Adjust.
9201 * doc/tm.texi: Likewise.
9202 * doc/tm.texi.in: Likewise.
9203 * except.c (expand_builtin_unwind_init): Likewise.
9205 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9207 * builtins.c (expand_builtin_return_addr): Adjust.
9208 * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
9210 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
9212 * tree.c (type_with_interoperable_signedness): New.
9213 (gimple_canonical_types_compatible_p): Use it.
9214 * tree.h (type_with_interoperable_signedness): Declare
9216 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
9218 * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
9219 and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
9220 when OEP_ADDRESS_OF is se.
9222 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
9223 Sebastian Pop <s.pop@samsung.com>
9225 * graphite-dependences.c (scop_get_dependences): Add dump of the
9226 data dependence graph.
9227 * graphite-poly.c (print_isl_union_map): New.
9228 (debug_isl_union_map): New.
9229 * graphite-poly.h (print_isl_union_map): Declare.
9230 (debug_isl_union_map): Declare.
9232 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
9233 Sebastian Pop <s.pop@samsung.com>
9235 * graphite-poly.c (print_iteration_domain): Remove verbosity.
9236 Remove OpenScop formatting.
9237 (print_iteration_domains): Same.
9238 (debug_iteration_domain): Same.
9239 (debug_iteration_domains): Same.
9242 (dump_gbb_cases): Same.
9243 (dump_gbb_conditions): Same.
9246 (print_pbb_body): Same.
9248 (print_scop_params): Same.
9249 (print_scop_context): Same.
9251 (debug_pbb_domain): Same.
9253 (debug_scop_context): Same.
9255 (debug_scop_params): Same.
9256 * graphite-poly.h: Same.
9257 * graphite.c (graphite_transform_loops): Same.
9259 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9261 * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
9262 call that isn't needed.
9264 2015-10-09 Jeff Law <law@redhat.com>
9266 * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
9267 rather than moving each name to the freelist individually.
9269 2015-10-09 Steve Ellcey <sellcey@imgtec.com>
9271 * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
9272 * frame-header-opt.c: New file.
9273 * config/mips/mips-proto.h (mips_register_frame_header_opt):
9275 * config/mips/mips.c (mips_compute_frame_info): Check
9276 optimize_call_stack flag.
9277 (mips_option_override): Register new frame_header_opt pass.
9278 (mips_frame_info, mips_int_mask, mips_shadow_set,
9279 machine_function): Move these types to...
9280 * config/mips/mips.h: here.
9281 (machine_function): Add does_not_use_frame_header and
9282 optimize_call_stack fields.
9283 * config/mips/t-mips (frame-header-opt.o): Add new make rule.
9284 * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
9286 * config/mips/mips.opt (mframe-header-opt): Add new option.
9288 2015-10-09 Uros Bizjak <ubizjak@gmail.com>
9290 * config/i386/i386.c
9291 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
9292 ROUND_DOWN where applicable.
9294 2015-10-09 Jeff Law <law@redhat.com>
9296 * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
9299 2015-10-09 Renlin Li <renlin.li@arm.com>
9301 * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
9302 operands[0] and operands[2].
9303 (neon_vtrn<mode>_insn): Likewise.
9304 (neon_vzip<mode>_insn): Likewise.
9306 2015-10-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
9308 * match.pd: ((X inner_op C0) outer_op C1) New pattern.
9309 ((X & C2) << C1): Expand to...
9310 (X {&,^,|} C2 << C1): ...This.
9311 ((X & C2) >> C1): Expand to...
9312 (X {&,^,|} C2 >> C1): ...This.
9314 2015-10-09 Alexander Fomin <alexander.fomin@intel.com>
9317 * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
9318 Adjust embedded rounding/SAE specifier position.
9319 (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
9320 (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
9321 (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
9322 (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
9323 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
9325 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
9327 2015-10-09 Martin Jambor <mjambor@suse.cz>
9329 tree-optimization/67794
9330 * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
9331 between types of state,ents but accept original definitions as a
9333 (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
9334 iterate over definitions.
9336 2015-10-09 James Norris <jnorris@codesourcery.com>
9338 * config/rs6000/rs6000.c (rs6000_offload_options): New.
9339 (TARGET_OFFLOAD_OPTIONS): New.
9341 2015-10-09 Alexandre Oliva <aoliva@redhat.com>
9344 * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
9347 * function.c (expand_function_end): Move return value
9348 promotion past the handling of PARALLELs and CONCATs.
9350 PR rtl-optimization/67828
9351 * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
9352 (tree_may_unswitch_on): Don't unswitch on expressions
9353 involving undefined values.
9355 2015-10-09 Richard Biener <rguenther@suse.de>
9357 * genmatch.c (print_operand): Fix formatting.
9358 (dt_node::append_simplify): Warn for multiple simplifiers
9359 that match the same pattern.
9360 * match.pd (log (exp @0)): Remove duplicates.
9362 2015-10-09 Richard Biener <rguenth@suse.de>
9365 * gimple-fold.c (optabs-query.h): Include
9366 (gimple_fold_builtin_memory_op): Allow unaligned stores
9367 when movmisalign_optabs are available.
9369 2015-10-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9372 * config/arm/arm.md (movmisalign<mode>): New.
9373 * config/arm/iterators.md (HSI): New.
9375 2015-10-09 Richard Biener <rguenther@suse.de>
9377 PR tree-optimization/67891
9378 * gimple-match.h (gimple_simplified_result_is_gimple_val):
9380 (gimple_resimplify1): Declare.
9381 (gimple_resimplify2): Likewise.
9382 (gimple_resimplify3): Likewise.
9383 * gimple-match-head.c (gimple_resimplify1): Export.
9384 (gimple_resimplify2): Likewise.
9385 (gimple_resimplify3): Likewise.
9386 (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
9387 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
9388 * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
9389 to avoid creating stmts without VN info.
9391 2015-10-08 Jan Hubicka <hubicka@ucw.cz>
9393 * ipa-icf.c (sem_item::compare_symbol_references): Fix use
9396 2015-10-08 Jeff Law <law@redhat.com>
9398 * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
9399 and release_ssa_name in two places.
9400 (gimple_stringop_fixed_value): Similarly.
9402 * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
9405 * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
9406 unlink_stmt_vdef and release_ssa_name_fn.
9408 * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
9411 2015-10-08 H.J. Lu <hongjiu.lu@intel.com>
9413 * config/i386/i386.c (ix86_compute_frame_layout): Round up the
9414 SSE register save area to 16 bytes only if the incoming stack
9415 boundary is no less than 16 bytes.
9417 2015-10-08 Jeff Law <law@redhat.com>
9419 * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
9420 release_ssa_name. Fix typo in comment.
9422 2015-10-08 Nathan Sidwell <nathan@acm.org>
9424 * config/nvptx/nvptx.h (struct machine_function): Add comment.
9425 * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
9426 may return pointer as well as in memory.
9427 (nvptx_output_return): Likewise.
9429 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
9431 * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
9432 (fold_builtin_1): Update accordingly. Handle constant arguments here.
9433 * match.pd: Add rules previously handled by fold_builtin_sqrt
9434 and fold_builtin_cbrt.
9436 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
9438 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
9439 * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
9440 * fold-const.h (tree_unary_nonnegative_warnv_p)
9441 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
9442 (tree_expr_nonnegative_warnv_p): Add depth parameters.
9443 * fold-const.c: Include gimple-fold.h and params.h.
9444 (tree_ssa_name_nonnegative_warnv_p): New function.
9445 (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
9446 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
9447 (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
9448 Add a depth parameter and increment it for recursive calls to
9449 tree_expr_nonnegative_warnv_p. Use tree_ssa_name_nonnegative_warnv_p
9450 to handle SSA names.
9451 * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
9452 (gimple_stmt_nonnegative_warnv_p): Declare.
9453 * tree-vrp.c (remove_range_assertions): Remove assert that condition
9454 cannot be proven false.
9455 (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
9456 (gimple_stmt_nonnegative_warnv_p): Move to...
9457 * gimple-fold.c: ...here. Add depth parameters and pass them
9458 down to the tree routines. Accept statements that aren't
9459 assignments or calls but just return false for them.
9460 (gimple_val_nonnegative_real_p): Delete.
9461 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
9462 tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
9463 Check HONOR_NANs first.
9465 2015-10-08 Martin Jambor <mjambor@suse.cz>
9467 * ipa-cp.c (meet_with_1): Make the argument of abs signed. Remove
9470 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
9472 * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
9473 in the tail of outer-loop.
9475 2015-10-08 David Edelsohn <dje.gcc@gmail.com>
9477 * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
9480 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
9482 * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
9483 "cfghooks.h", add prototypes for introduced new functions.
9484 (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
9485 checks on ability of loop unswitching to tree_unswitch_single_loop;
9486 invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
9487 on innermost loop check.
9488 (tree_unswitch_single_loop): Add all required checks on ability of
9489 loop unswitching under zero recursive level guard.
9490 (tree_unswitch_outer_loop): New function.
9491 (find_loop_guard): Likewise.
9492 (empty_bb_without_guard_p): Likewise.
9493 (used_outside_loop_p): Likewise.
9494 (get_vop_from_header): Likewise.
9495 (hoist_guard): Likewise.
9496 (check_exit_phi): Likewise.
9498 2015-10-08 Marek Polacek <polacek@redhat.com>
9500 * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
9503 2015-10-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9506 * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
9507 create_tmp_var_raw instead of create_tmp_var.
9509 2015-10-07 Jan Hubicka <hubicka@ucw.cz>
9511 * expr.c (store_expr_with_bounds): Handle aggregate moves from
9513 * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
9514 to define gimple type system; compare aggregates only by size.
9516 2015-10-07 Jeff Law <law@redhat.com>
9518 * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
9519 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
9520 here instead. Tighten test to avoid setting LOOPS_NEED_FIXUP
9523 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
9524 Sebastian Pop <s.pop@samsung.com>
9526 * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
9527 * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
9528 (generate_isl_schedule): Same.
9529 * graphite-optimize-isl.c (scop_get_domains): Same.
9530 (apply_schedule_map_to_scop): Same.
9531 * graphite-poly.c (print_iteration_domains): Same.
9532 (remove_gbbs_in_scop): Same.
9536 * graphite-poly.h (struct scop): Rename bbs to pbbs.
9538 * graphite-scop-detection.c (compare_bb_depths): Remove.
9539 (graphite_sort_dominated_info): Remove.
9540 (try_generate_gimple_bb): Move out of scop_detection.
9541 (all_non_dominated_preds_marked_p): Remove.
9542 (build_scop_bbs_1): Remove.
9543 (build_scop_bbs): Remove.
9544 (nb_pbbs_in_loops): Do not use SCOP_BBS.
9545 (find_scop_parameters): Same.
9546 (sese_dom_walker): Rename gather_bbs.
9547 (before_dom_children): Call try_generate_gimple_bb and collect gbb
9549 (build_scops): Call gather_bbs.
9550 * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
9551 (add_conditions_to_constraints): Same.
9552 (build_scop_iteration_domain): Same.
9553 (build_scop_drs): Same.
9554 (new_pbb_from_pbb): Same.
9555 * sese.c (new_sese_info): Create bbs.
9556 * sese.h (struct sese_info_t): Add bbs.
9558 2015-10-07 David Edelsohn <dje.gcc@gmail.com>
9560 * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
9561 encoding in 64-bit mode.
9563 2015-10-07 Uros Bizjak <ubizjak@gmail.com>
9566 * config/i386/i386.c (ix86_option_override_internal): Always use
9567 8-byte minimum stack boundary in 64-bit mode.
9568 (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
9569 (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
9570 Add a REG_CFA_EXPRESSION note if needed.
9571 (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
9572 (ix86_handle_force_align_arg_pointer_attribute): New.
9573 (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
9574 (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
9575 with ix86_handle_force_align_arg_pointer_attribute.
9576 * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
9578 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
9579 Sebastian Pop <s.pop@samsung.com>
9581 * graphite-scop-detection.c (parameter_index_in_region): Remove
9582 use of SESE_ADD_PARAMS.
9583 (find_scop_parameters): Same.
9584 * sese.c (new_sese_info): Same.
9585 * sese.h (struct sese_info_t): Remove add_params.
9586 (SESE_ADD_PARAMS): Remove.
9588 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
9589 Sebastian Pop <s.pop@samsung.com>
9591 * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
9594 (copy_internal_parameters): Same.
9595 (translate_isl_ast_to_gimple): Use an sese_l.
9596 (build_iv_mapping): Same.
9597 * graphite-poly.c (new_sese): Rename new_sese_info.
9598 (free_sese): Rename free_sese_info.
9599 * graphite-poly.h (struct scop): Use an sese_info_p.
9600 (scop_set_region): Same.
9601 * graphite-scop-detection.c (struct sese_l): Moved...
9602 (get_entry_bb): Moved...
9603 (get_exit_bb): Moved...
9604 (parameter_index_in_region_1): Use an sese_info_p.
9605 (parameter_index_in_region): Same.
9606 (scan_tree_for_params): Same.
9607 (find_params_in_bb): Same.
9608 (sese_dom_walker): Use an sese_l.
9609 * graphite-sese-to-poly.c (remove_invariant_phi): Same.
9610 (reduction_phi_p): Same.
9611 (parameter_index_in_region_1): Use an sese_info_p.
9612 (propagate_expr_outside_region): Use an sese_l.
9613 * graphite.c: Replace uses of SCOP_REGION.
9614 * sese.c (sese_record_loop): Use an sese_info_p.
9615 (build_sese_loop_nests): Same.
9616 (sese_build_liveouts_use): Same.
9617 (sese_build_liveouts_bb): Same.
9618 (sese_build_liveouts_bb): Same.
9619 (sese_bad_liveouts_use): Same.
9620 (sese_reset_debug_liveouts_bb): Same.
9621 (sese_build_liveouts): Same.
9622 (new_sese): Renamed new_sese_info.
9623 (free_sese): Renamed free_sese_info.
9624 (set_rename): Use an sese_info_p.
9625 (graphite_copy_stmts_from_block): Same.
9626 (copy_bb_and_scalar_dependences): Same.
9627 (outermost_loop_in_sese_1): Use an sese_l.
9628 (outermost_loop_in_sese): Same.
9629 (if_region_set_false_region): Use an sese_info_p.
9630 (move_sese_in_condition): Same.
9631 (scalar_evolution_in_region): Use an sese_l.
9632 * sese.h (struct sese_l): ... here.
9633 (SESE_ENTRY): Remove.
9634 (SESE_ENTRY_BB): Remove.
9635 (SESE_EXIT): Remove.
9636 (SESE_EXIT_BB): Remove.
9637 (sese_contains_loop): Use an sese_info_p.
9638 (sese_nb_params): Same.
9639 (bb_in_sese_p): Use an sese_l.
9640 (stmt_in_sese_p): Same.
9641 (defined_in_sese_p): Same.
9642 (loop_in_sese_p): Same.
9643 (sese_loop_depth): Same.
9644 (struct ifsese_s): Use an sese_info_p.
9645 (gbb_loop_at_index): Use an sese_l.
9646 (nb_common_loops): Same.
9647 (scev_analyzable_p): Same.
9649 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
9651 * config/i386/i386.c (ix86_conditional_register_usage): Use
9652 CALL_USED_REGISTERS_MASK.
9653 * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
9655 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
9658 * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
9659 * configure: Regenerated.
9661 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
9664 * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
9665 (ix86_set_current_function): This.
9666 (TARGET_EXPAND_TO_RTL_HOOK): Removed.
9668 2015-10-07 Richard Biener <rguenther@suse.de>
9670 * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
9671 (vinfo_for_stmt): Adjust.
9672 (set_vinfo_for_stmt): Likewise.
9673 * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
9674 * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
9675 * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
9677 (vect_analyze_loop_1): Remove.
9678 (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
9679 inner loop when vectorizing an outer loop by splitting out from ...
9680 (vect_analyze_loop_form): ... here.
9682 2015-10-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9685 * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
9686 Use create_tmp_var_raw instead of create_tmp_var.
9688 2015-10-07 Richard Sandiford <richard.sandiford@arm.com>
9690 * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
9691 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
9692 * real.c (CACHED_FRACTION): New helper macro.
9693 (dconst_third_ptr): Use it.
9694 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
9695 * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
9697 (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
9699 2015-10-06 Jeff Law <law@redhat.com>
9701 PR tree-optimization/67816
9702 * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
9703 from remove_jump_threads_starting_at. Accept an edge rather than
9705 * tree-ssa-threadupdate.c (removed_edges): New hash table.
9706 (remove_jump_threads_including): Note edges that get removed from
9707 the CFG for later pruning of jump threading paths including them.
9708 (thread_through_all_blocks): Remove paths which include edges that
9710 * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
9711 on each outgoing edges when optimizing away a control statement.
9713 2015-10-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9715 * reorg.c (emit_delay_sequence): Store list of delay slot insns
9716 in a vector instead of rtx_insn_list.
9717 (add_to_delay_list): Likewise.
9718 (delete_from_delay_slot): Likewise.
9719 (optimize_skip): Likewise.
9720 (redirect_with_delay_list_safe_p): Likewise.
9721 (check_annul_list_true_false): Likewise.
9722 (steal_delay_list_from_target): Likewise.
9723 (steal_delay_list_from_fallthrough): Likewise.
9724 (redundant_insn): Likewise.
9725 (fill_simple_delay_slots): Likewise.
9726 (fill_slots_from_thread): Likewise.
9727 (fill_eager_delay_slots): Likewise.
9728 (relax_delay_slots): Likewise.
9730 2015-10-06 Sandra Loosemore <sandra@codesourcery.com>
9732 * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
9733 For -mgpopt=local, also exclude unintialized common symbols.
9734 * doc/invoke.texi (Nios II Options): Document the change.
9736 2015-10-07 Kugan Vivekanandarajah <kuganv@linaro.org>
9738 * config/aarch64/iterators.md (vwcore): Add missing cases for
9741 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
9742 Sebastian Pop <s.pop@samsung.com>
9744 * graphite-poly.c (new_scop): Initialize drs.
9745 * graphite-poly.h (struct dr_info): New.
9746 (struct scop): Add drs.
9747 * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
9748 (pdr_add_memory_accesses): Same.
9749 (build_poly_dr): Same.
9750 (build_alias_set): Same.
9751 (build_scop_drs): Same.
9752 (build_pbb_drs): Remove.
9753 * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
9754 * tree-data-ref.h (data_reference): Remove alias_set.
9756 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
9757 Sebastian Pop <s.pop@samsung.com>
9759 * graphite-poly.c (free_data_refs_aux): Remove.
9760 (free_gimple_poly_bb): Do not call free_data_refs_aux.
9761 * graphite-poly.h (struct base_alias_pair): Remove.
9762 * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
9763 base_alias_pair and dr->aux.
9764 (build_alias_set): Same.
9765 * tree-data-ref.c (create_data_ref): Initialize alias_set.
9766 * tree-data-ref.h (data_reference): Add alias_set.
9768 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
9769 Sebastian Pop <s.pop@samsung.com>
9771 * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
9772 Do not set PDR_BASE_OBJECT_SET.
9773 * graphite-poly.h (poly_dr): Same.
9774 (PDR_BASE_OBJECT_SET): Remove.
9775 (new_poly_dr): Update decl.
9776 * graphite-sese-to-poly.c (build_poly_dr): Update call to
9778 (write_alias_graph_to_ascii_dimacs): Remove.
9779 (write_alias_graph_to_ascii_dot): Remove.
9780 (write_alias_graph_to_ascii_ecc): Remove.
9781 (dr_same_base_object_p): Remove.
9782 (build_alias_set_optimal_p): Rename build_alias_set. Remove dead
9784 (build_base_obj_set_for_drs): Remove.
9785 (dump_alias_graphs): Remove.
9786 (build_scop_drs): Remove dead code.
9788 2015-10-05 Michael Meissner <meissner@linux.vnet.ibm.com>
9789 Peter Bergner <bergner@vnet.ibm.com>
9792 * config/rs6000/rs6000.md (extenddftf2): In the expander, only
9793 allow registers, but provide insns for the combiner to create for
9794 loads from memory. Separate VSX code from non-VSX code. For
9795 non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
9796 externaldftf2_internal to externaldftf2_fprs. Reorder constraints
9797 so that registers come before memory operations. Drop support from
9798 converting DFmode to TFmode, if the DFmode value is in a GPR
9800 (extenddftf2_fprs): Likewise.
9801 (extenddftf2_internal): Likewise.
9802 (extenddftf2_vsx): Likewise.
9803 (extendsftf2): In the expander, only allow registers, but provide
9804 insns for the combiner to create for stores and loads.
9806 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9808 * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
9809 from the decl parameter.
9811 2015-10-06 Nathan Sidwell <nathan@codesourcery.com>
9814 * gimple-fold.c (gimple_fold_builtin): Add break after
9815 BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
9817 2015-10-06 H.J. Lu <hongjiu.lu@intel.com>
9819 * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
9820 to scop->isl_context.
9822 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
9824 * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
9825 (output_probe_stack_range): Rotate the loop and simplify.
9826 (thumb1_expand_prologue): Tweak sorry message.
9827 * config/arm/arm.md (probe_stack): Use bare string.
9829 2015-10-06 Nick Clifton <nickc@redhat.com>
9831 * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
9833 2015-10-06 Nick Clifton <nickc@redhat.com>
9835 * config/msp430/msp430.c (ATTR_NOINIT): New constant.
9836 (ATTR_PERSIST): New constant.
9837 (msp430_data_attr): New function - verifies an attribute that only
9838 applies to variables.
9839 (msp430_attributes): Add noinit and persistent attributes.
9840 (noinit_section): New variable.
9841 (presis_section): New variable.
9842 (TARGET_ASM_INIT_SECTIONS): Define.
9843 (msp430_init_sections): New function - initialises the noinit and
9844 persist section variables.
9845 (msp430_select_section): Add support for noinit and persist
9847 (msp430_section_type_flags): Likewise.
9848 * doc/extend.texi: Document the reent, critical, wakeup, noinit
9849 and persistent attributes.
9851 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
9852 Sebastian Pop <s.pop@samsung.com>
9854 * graphite-dependences.c (scop_get_transformed_schedule): Remove.
9855 (no_violations): Remove.
9856 (subtract_commutative_associative_deps): Remove.
9857 (compute_deps): Do not call subtract_commutative_associative_deps.
9858 (transform_is_safe): Remove.
9859 (graphite_legal_transform): Remove.
9860 * graphite-poly.h (graphite_legal_transform): Remove.
9862 2015-10-05 Aditya Kumar <hiraditya@msn.com>
9864 * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
9865 which are in this region are passed so gcc_assert and remove redundant
9867 * sese.c (sese_build_liveouts): Pass only those bbs which are not
9869 (sese_bad_liveouts_use): Only BBs which are not in region are passed so
9870 gcc_assert on that and remove unnecessary computation.
9871 (sese_build_liveouts_use): Same.
9873 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
9875 * graphite-dependences.c (scop_get_reads): Renamed scop->context
9876 to scop->param_context.
9877 (scop_get_must_writes): Same.
9878 (scop_get_may_writes): Same.
9879 (scop_get_original_schedule): Same.
9880 (scop_get_transformed_schedule): Same.
9881 (subtract_commutative_associative_deps): Same.
9882 * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
9883 (generate_isl_context): Same.
9884 (generate_isl_schedule): Same.
9885 (scop_to_isl_ast): Same.
9886 (graphite_regenerate_ast_isl): Same.
9887 * graphite-optimize-isl.c (scop_get_domains): Same.
9888 (optimize_isl): Renamed scop->context to scop->param_context.
9889 * graphite-poly.c (new_poly_bb): Change the type of argument to
9891 (new_scop): Renamed scop->context to scop->param_context.
9893 (print_scop_context): Same.
9894 * graphite-poly.h (new_poly_dr): Change the type of argument from
9895 void* to data_reference_p.
9896 (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
9897 (new_poly_bb): Change the type of argument from void* to
9899 (pbb_set_black_box): Same.
9900 (struct scop): Rename context to param_context, ctx to isl_context.
9901 * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
9902 Move declarations closer to assignment.
9903 (find_params_in_bb): Same.
9904 (find_scop_parameters): Same.
9905 * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
9906 Global to be used for statement IDs.
9907 (isl_id_for_pbb): Use ssa_name_version_typesize.
9908 (simple_copy_phi_p): Move declarations closer to assignment.
9909 (build_pbb_scattering_polyhedrons): Same.
9910 (build_scop_scattering): Same.
9911 (isl_id_for_ssa_name): Same.
9912 (extract_affine_name): Same.
9913 (extract_affine_int): Same.
9914 (extract_affine): Same.
9915 (set_scop_parameter_dim): Use renamed member.
9916 (build_loop_iteration_domains): Same.
9917 (add_param_constraints): Same.
9918 (build_scop_iteration_domain): Same.
9919 (pdr_add_data_dimensions): Same.
9920 (build_poly_dr): Same.
9921 (build_scop_drs): Move declarations closer to assignment.
9922 (analyze_drs_in_stmts): Same.
9923 (insert_out_of_ssa_copy): Same.
9924 (insert_out_of_ssa_copy_on_edge): Same.
9925 (propagate_expr_outside_region): Same.
9926 (rewrite_phi_out_of_ssa): Same.
9927 (rewrite_degenerate_phi): Same.
9928 (rewrite_reductions_out_of_ssa): Same.
9929 (rewrite_cross_bb_scalar_dependence): Same.
9930 (handle_scalar_deps_crossing_scop_limits): Same.
9931 (rewrite_cross_bb_scalar_deps): Same.
9932 * graphite.c (graphite_transform_loops): Use renamed member.
9934 2015-10-06 Uros Bizjak <ubizjak@gmail.com>
9937 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
9938 create_tmp_var_raw instead of create_tmp_var.
9940 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9943 * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
9944 Use create_tmp_var_raw instead of create_tmp_var.
9946 2015-10-06 Alexander Fomin <alexander.fomin@intel.com>
9949 * config/i386/sse.md (define_split vec_select/V8FI): Restrict
9950 split for upper-bank registers when target does not support
9952 (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
9953 split when target does not support AVX512VL.
9955 2015-10-06 David Edelsohn <dje.gcc@gmail.com>
9958 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
9959 Adjust to use create_tmp_var_raw instead of create_tmp_var.
9961 2015-10-06 Nick Clifton <nickc@redhat.com>
9963 * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
9966 2015-10-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
9968 * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
9969 (case ${target}): Add znver1.
9970 * config/i386/cpuid.h(bit_CLZERO): Define.
9971 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
9972 -march=native recognize znver1 processors.
9973 * config/i386/i386-c.c (ix86_target_macros_internal): Add
9974 znver1, clzero def_and_undef.
9975 * config/i386/i386.c (struct processor_costs znver1_cost): New.
9976 (m_znver1): New definition.
9977 (m_AMD_MULTIPLE): Includes m_znver1.
9978 (processor_target_table): Add znver1 entry.
9979 (ix86_target_string) : Add clzero entry.
9980 (static const char *const cpu_names): Add znver1 entry.
9981 (ix86_option_override_internal): Add znver1 instruction sets.
9982 (PTA_CLZERO) : New definition.
9983 (ix86_option_override_internal): Handle new clzerooption.
9984 (ix86_issue_rate): Add znver1.
9985 (ix86_adjust_cost): Add znver1.
9986 (ia32_multipass_dfa_lookahead): Add znver1.
9987 (has_dispatch): Add znver1.
9988 * config/i386/i386.h (TARGET_znver1): New definition.
9989 (TARGET_CLZERO): Define.
9990 (TARGET_CLZERO_P): Define.
9991 (struct ix86_size_cost): Add TARGET_ZNVER1.
9992 (enum processor_type): Add PROCESSOR_znver1.
9993 * config/i386/i386.md (define_attr "cpu"): Add znver1.
9994 (set_attr znver1_decode): New definitions for znver1.
9995 * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
9997 * config/i386/mmx.md (set_attr znver1_decode): New definitions
9999 * config/i386/sse.md (set_attr znver1_decode): Likewise.
10000 * config/i386/x86-tune.def: Add znver1 tunings.
10001 * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
10002 * doc/invoke.texi: Add details about znver1
10004 2015-10-06 Richard Biener <rguenther@suse.de>
10006 PR tree-optimization/67859
10007 * tree-ssa-pre.c (create_expression_by_pieces): Properly
10008 discard not inserted stmts.
10010 2015-10-06 Jonathan Wakely <jwakely@redhat.com>
10012 * doc/extend.texi (Template Instantiation): Reorder options and
10013 de-emphasize -frepo.
10014 * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
10015 example instead of -frepo.
10017 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
10020 * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
10021 use create_tmp_var_raw rather than create_tmp_var.
10023 2015-10-06 Richard Biener <rguenther@suse.de>
10025 * tree-vectorizer.h (vec_info): New base class for...
10026 (_loop_vec_info): ... this and ...
10027 (_bb_vec_info): ... this.
10028 (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
10029 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
10030 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
10031 vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
10032 vect_destroy_datarefs): Adjust interface to take a vec_info *
10033 rather than both a loop_vec_info and a bb_vec_info argument.
10034 * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
10035 vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
10036 vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
10037 vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
10039 * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
10040 (destroy_loop_vec_info, vect_analyze_loop_2,
10041 vect_is_simple_reduction_1, get_initial_def_for_induction,
10042 vect_create_epilog_for_reduction, vectorizable_reduction,
10043 vectorizable_live_operation, vect_transform_loop): Adjust.
10044 * tree-vect-patterns.c (type_conversion_p,
10045 vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
10046 vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
10047 vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
10048 check_bool_pattern, vect_recog_bool_pattern,
10049 vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
10050 * tree-vect-slp.c (vect_get_and_check_slp_defs,
10051 vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
10052 vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
10053 vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
10054 (new_bb_vec_info): Initialize base classs.
10055 * tree-vect-stmts.c (record_stmt_cost, process_use,
10056 vect_get_vec_def_for_operand, vect_finish_stmt_generation,
10057 vectorizable_mask_load_store, vectorizable_call,
10058 vectorizable_simd_clone_call, vectorizable_conversion,
10059 vectorizable_assignment, vectorizable_shift,
10060 vectorizable_operation, vectorizable_store,
10061 vectorizable_load, vect_is_simple_cond, vectorizable_condition,
10062 new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
10063 * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
10065 2015-10-05 Kaz Kojima <kkojima@gcc.gnu.org>
10068 * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
10069 create_tmp_var_raw rather than create_tmp_var.
10071 2015-10-05 Marek Polacek <polacek@redhat.com>
10073 * tree-ssa-loop-im.c
10074 (move_computations_dom_walker::before_dom_children): Don't set
10075 SSA_NAME_ANTI_RANGE_P.
10076 * tree-ssa-phiopt.c (value_replacement): Likewise.
10078 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
10079 Sebastian Pop <s.pop@samsung.com>
10081 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
10083 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
10084 Sebastian Pop <s.pop@samsung.com>
10086 * graphite-poly.c (new_gimple_poly_bb): ... here.
10087 (free_data_refs_aux): ... here.
10088 (free_gimple_poly_bb): ... here.
10089 (remove_gbbs_in_scop): ... here.
10090 (new_scop): Call new_sese.
10091 (free_scop): Call remove_gbbs_in_scop and free_sese.
10092 * graphite-poly.h (base_alias_pair): ... here.
10093 (new_gimple_poly_bb): Declare.
10094 (free_gimple_poly_bb): Declare.
10095 * graphite-scop-detection.c (parameter_index_in_region_1):
10096 (parameter_index_in_region): ... here.
10097 (scan_tree_for_params): ... here.
10098 (find_params_in_bb): ... here.
10099 (find_scop_parameters): ... here.
10100 (build_scops): Call find_scop_parameters.
10101 * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
10102 (free_scops): Move...
10103 (single_pred_cond_non_loop_exit): Move...
10104 (sese_dom_walker::before_dom_children): Move...
10105 (sese_dom_walker::after_dom_children): Move...
10106 (build_poly_scop): Move...
10107 * graphite-sese-to-poly.h (base_alias_pair): Move...
10108 * graphite.c (free_scops): ... here.
10110 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
10111 Sebastian Pop <s.pop@samsung.com>
10113 * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
10114 (trivially_empty_bb_p): Move...
10115 (same_close_phi_node): Move...
10116 (new_gimple_poly_bb): Move...
10117 (compare_bb_depths): Move...
10118 (graphite_sort_dominated_info): Move...
10119 (remove_duplicate_close_phi): Move...
10120 (make_close_phi_nodes_unique): Move...
10121 (canonicalize_loop_closed_ssa): Move...
10122 (canonicalize_loop_closed_ssa_form): Move...
10123 (loop_ivs_can_be_represented): Move...
10124 (single_pred_cond_non_loop_exit): Move...
10125 (graphite_can_represent_init): Move...
10126 (graphite_can_represent_scev): Move...
10127 (stmt_has_simple_data_refs_p): Move...
10128 (stmt_has_side_effects): Move...
10129 (graphite_can_represent_stmt): Move...
10130 (scop_detection): ... here.
10131 (sese_dom_walker): ... and here.
10132 (build_scops): Call all moved functions.
10133 * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
10134 (all_non_dominated_preds_marked_p): Move...
10135 (build_scop_bbs_1): Move...
10136 (build_scop_bbs): Move...
10137 (set_scop_parameter_dim): Move...
10138 (nb_pbbs_in_loops): Move...
10139 (build_poly_scop): Do not call all the moved functions.
10141 2015-10-05 Martin Jambor <mjambor@suse.cz>
10142 Jan Hubicka <hubicka@ucw.cz>
10144 * ipa-cp.c (ipcp_alignment_lattice): New type.
10145 (ipcp_param_lattices): Use the above to represent alignment.
10146 (ipcp_alignment_lattice::print): New function.
10147 (print_all_lattices): Use it to print alignment information.
10148 (ipcp_alignment_lattice::top_p): New function.
10149 (ipcp_alignment_lattice::bottom_p): Likewise.
10150 (ipcp_alignment_lattice::set_to_bottom): Likewise.
10151 (ipcp_alignment_lattice::meet_with_1): Likewise.
10152 (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
10153 (set_all_contains_variable): Use set_to_bottom of alignment lattice.
10154 (initialize_node_lattices): Likewise.
10155 (propagate_alignment_accross_jump_function): Work with the new class
10156 for alignment lattices.
10157 (propagate_constants_accross_call): Pass only the alignment lattice to
10158 propagate_alignment_accross_jump_function.
10159 (ipcp_store_alignment_results): Work with the new class for alignment
10162 2015-10-05 Marek Polacek <polacek@redhat.com>
10164 PR tree-optimization/67821
10165 * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
10167 2015-10-05 Thomas Schwinge <thomas@codesourcery.com>
10170 * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
10172 (mkoffload_cleanup): ... this. Adjust all users.
10173 (maybe_unlink): Look at save_temps and verbose flags instead of
10175 (main): Parse "-save-temps" flag.
10176 (generate_target_descr_file, generate_target_offloadend_file)
10177 (generate_host_descr_file, prepare_target_image): Pass it on.
10178 * config/nvptx/mkoffload.c (tool_cleanup): Implement.
10179 (mkoffload_cleanup): New function.
10180 (maybe_unlink): Look at save_temps and verbose flags instead of
10182 (main): Instead of calling utils_cleanup, register atexit handler
10183 for mkoffload_cleanup.
10184 (main): Parse "-save-temps" flag.
10185 (compile_native, main): Pass it on.
10186 * lto-wrapper.c (compile_offload_image): Likewise.
10188 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10190 * gimple.h (gimple_op_ptr): Require a non const gimple *.
10191 (gimple_assign_lhs_ptr): Likewise.
10192 (gimple_assign_rhs1_ptr): Likewise.
10193 (gimple_assign_rhs2_ptr): Likewise.
10194 (gimple_assign_rhs3_ptr): Likewise.
10195 (gimple_call_lhs_ptr): Likewise.
10196 (gimple_call_fn_ptr): Likewise.
10197 (gimple_call_chain_ptr): Likewise.
10198 (gimple_call_arg_ptr): Likewise.
10199 (gimple_cond_lhs_ptr): Likewise.
10200 (gimple_cond_rhs_ptr): Likewise.
10201 (gimple_switch_index_ptr): Likewise.
10202 (gimple_return_retval_ptr): Likewise.
10204 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10206 * gimple.h (gimple_asm_input_op_ptr): Remove.
10207 (gimple_asm_output_op_ptr): Likewise.
10209 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10211 * gimple.h (gimple_location_ptr): Remove.
10212 * tree-vrp.c (check_all_array_refs): Adjust.
10214 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10216 * tree-ssa-operands.c (build_uses): store tree * instead of
10218 (finalize_ssa_uses): Adjust.
10219 (append_use): Likewise.
10220 (verify_ssa_operands): Likewise.
10222 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
10224 * real.h (build_real_truncate): Declare.
10225 * tree.c (build_real_truncate): New function.
10226 (strip_float_extensions): Use it.
10227 * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
10228 (fold_builtin_hypot, fold_builtin_pow): Likewise.
10229 * match.pd: Likewise.
10231 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
10232 Jiong Wang <jiong.wang@arm.com>
10234 * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
10236 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
10238 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
10239 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
10240 (aarch64_print_operand, aarch64_float_const_representable_p)
10241 (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
10242 instead of REAL_VALUE_FROM_CONST_DOUBLE.
10243 * config/arc/arc.c (arc_print_operand): Likewise.
10244 * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
10245 (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
10246 (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
10248 * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
10249 (consttable_16): Likewise.
10250 * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
10251 * config/avr/avr.c (avr_print_operand): Likewise.
10252 * config/bfin/bfin.md: Likewise (in a define_split).
10253 * config/c6x/c6x.md: Likewise (in a define_split).
10254 * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
10255 (cr16_print_operand): Likewise.
10256 * config/cris/cris.c (cris_print_operand): Likewise.
10257 * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
10258 * config/fr30/fr30.c (fr30_print_operand): Likewise.
10259 (fr30_const_double_is_zero): Likewise.
10260 * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
10261 * config/frv/frv.md: Likewise (in a define_split).
10262 * config/frv/predicates.md (int_2word_operand): Likewise.
10263 * config/h8300/h8300.c (h8300_print_operand): Likewise.
10264 * config/i386/i386.c (standard_80387_constant_p): Likewise.
10265 (ix86_print_operand, ix86_split_to_parts): Likewise.
10266 * config/i386/i386.md: Likewise (in a define_split).
10267 * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
10268 * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
10269 * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
10270 * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
10271 (print_operand): Likewise.
10272 * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
10273 * config/mep/mep.md: Likewise (in define_split).
10274 * config/microblaze/microblaze.c (microblaze_const_double_ok)
10275 (print_operand): Likewise.
10276 * config/mips/mips.md (consttable_float): Likewise.
10277 * config/mmix/mmix.c (mmix_intval): Likewise.
10278 * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
10279 * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
10280 * config/pa/pa.c (pa_singlemove_string): Likewise.
10281 * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
10282 (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
10283 * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
10284 (output_toc): Likewise.
10285 * config/rs6000/rs6000.md: Likewise (in define_splits).
10286 * config/rx/rx.c (rx_print_operand): Likewise.
10287 * config/s390/s390.c (s390_output_pool_entry): Likewise.
10288 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
10289 * config/sh/sh.md (consttable_sf, consttable_df): Likewise
10290 (and also in define_splits).
10291 * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
10292 (fp_high_losum_p): Likewise.
10293 * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
10294 (*movsf_high): Likewise.
10295 * config/spu/spu.c (const_double_to_hwint): Likewise.
10296 * config/v850/v850.c (const_double_split): Likewise.
10297 * config/vax/vax.c (vax_float_literal): Likewise.
10298 * config/visium/visium.c (visium_expand_copysign): Likewise.
10299 * config/visium/visium.md: Likewise (in define_split).
10300 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
10301 * config/xtensa/xtensa.c (print_operand): Likewise.
10302 (xtensa_output_literal): Likewise.
10303 * cprop.c (implicit_set_cond_p): Likewise.
10304 * dwarf2out.c (insert_float): Likewise.
10305 * expmed.c (expand_mult, make_tree): Likewise.
10306 * expr.c (compress_float_constant): Likewise.
10307 * rtlanal.c (split_double): Likewise.
10308 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
10309 (simplify_const_unary_operation, simplify_binary_operation_1)
10310 (simplify_const_binary_operation): Likewise.
10311 (simplify_const_relational_operation): Likewise.
10312 * varasm.c (output_constant_pool_2): Likewise.
10314 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
10316 * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
10317 instead of CONST_DOUBLE_FROM_REAL_VALUE.
10318 (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
10319 * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
10320 instead of CONST_DOUBLE_FROM_REAL_VALUE.
10321 * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
10322 * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
10323 (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
10324 (ix86_emit_swsqrtsf): Likewise.
10325 * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
10326 * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
10327 (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
10328 * config/pa/pa.c (pa_expand_builtin): Likewise.
10329 * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
10330 (rs6000_scale_v2df): Likewise.
10331 * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
10332 * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
10333 (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
10334 * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
10335 (vec_ctul): Likewise.
10336 * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
10337 * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
10338 * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
10339 * cse.c (fold_rtx): Likewise.
10340 * emit-rtl.c (immed_double_const): Likewise (in comments).
10341 (init_emit_once): Likewise.
10342 * expr.c (compress_float_constant, expand_expr_real_1)
10343 (const_vector_from_tree): Likewise.
10344 * optabs.c (expand_float, expand_fix): Likewise.
10345 * reg-stack.c (reg_to_stack): Likewise.
10346 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
10347 (simplify_const_unary_operation, simplify_binary_operation_1)
10348 (simplify_const_binary_operation, simplify_relational_operation)
10349 (simplify_immed_subreg): Likewise.
10351 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
10353 * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
10354 * doc/tm.texi: Regenerate.
10355 * real.h (REAL_ARITHMETIC): Delete.
10356 * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
10357 (ix86_expand_round_sse4): Use real_arithmetic instead of
10359 * config/i386/sse.md (round<mode>2): Likewise.
10360 * rtl.h (rtx_to_tree_code): Likewise (in comment).
10361 * explow.c (rtx_to_tree_code): Likewise (in comment).
10362 * match.pd: Likewise.
10363 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
10364 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
10365 (expand_pow_as_sqrts): Likewise.
10366 * tree-pretty-print.c (dump_generic_node): Remove code that
10367 was conditional on REAL_ARITHMETIC being undefined.
10369 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
10371 * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
10372 * doc/tm.texi: Regenerate.
10373 * real.h (real_less): Declare.
10374 (REAL_VALUES_LESS): Delete.
10375 * real.c (real_less): New function.
10376 (real_compare): Use it.
10377 * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
10378 of REAL_VALUES_LESS.
10379 * config/microblaze/microblaze.c (microblaze_const_double_ok):
10381 * fold-const.c (fold_convert_const_int_from_real): Likewise.
10382 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
10383 (simplify_const_relational_operation): Likewise.
10384 * tree-call-cdce.c (check_pow): Likewise.
10385 (gen_conditions_for_pow_cst_base): Likewise.
10387 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
10389 * real.h (REAL_VALUES_IDENTICAL): Delete.
10390 * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
10391 instead of REAL_VALUES_IDENTICAL.
10392 * fold-const.c (operand_equal_p): Likewise.
10393 * ipa-icf.c (sem_variable::equals): Likewise.
10394 * tree-complex.c (some_nonzerop): Likewise.
10395 (expand_complex_multiplication): Likewise.
10396 * tree.c (simple_cst_equal): Likewise.
10397 * varasm.c (compare_constant): Likewise.
10399 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
10401 * real.h (real_equal): Declare.
10402 (REAL_VALUES_EQUAL): Delete.
10403 * real.c (real_equal): New function.
10404 (real_compare): Use it.
10405 * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
10406 * doc/tm.texi: Regenerate.
10407 * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
10408 real_equal instead of REAL_VALUES_EQUAL.
10409 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
10410 * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
10411 (fp_const_from_val): Likewise.
10412 * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
10413 * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
10414 (floating_exact_log2): Likewise.
10415 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
10416 * config/vax/vax.c (vax_float_literal): Likewise.
10417 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
10418 * cprop.c (implicit_set_cond_p): Likewise.
10419 * expmed.c (expand_mult): Likewise.
10420 * fold-const.c (const_binop): Likewise.
10421 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
10422 (simplify_const_binary_operation): Likewise.
10423 (simplify_const_relational_operation): Likewise.
10424 * tree-call-cdce.c (check_pow): Likewise.
10425 (gen_conditions_for_pow_cst_base): Likewise.
10426 * tree-inline.c (estimate_num_insns): Likewise.
10427 * tree-ssa-dom.c (record_equality): Likewise.
10428 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
10429 (gimple_expand_builtin_pow): Likewise.
10430 (pass_optimize_widening_mul::execute): Likewise.
10431 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
10432 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
10433 * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
10435 2015-10-05 Richard Biener <rguenther@suse.de>
10438 * ipa-inline-analysis.c (estimate_function_body_sizes): Only
10439 consider loop header PHI defs as IVs.
10441 2015-10-05 Richard Biener <rguenther@suse.de>
10443 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
10445 (create_expression_by_pieces): ... here and build GIMPLE
10446 calls directly. Use gimple_build API and avoid force_gimple_operand.
10447 (insert_into_preds_of_block): Simplify.
10448 (do_regular_insertion): Add comment.
10450 2015-10-04 Jason Merrill <jason@redhat.com>
10452 * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
10454 2015-10-04 Uros Bizjak <ubizjak@gmail.com>
10456 * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
10457 check for general register.
10458 (ix86_emit_save_regs): Ditto.
10459 (ix86_emit_save_regs_using_mov): Ditto.
10460 (ix86_emit_restore_regs_using_pop): Ditto.
10461 (ix86_emit_restore_regs_using_mov): Ditto.
10463 2015-10-03 Marek Polacek <polacek@redhat.com>
10465 * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
10466 (insn-dfatab.o): Likewise.
10468 2015-10-03 Max Filippov <jcmvbkbc@gmail.com>
10470 * config.gcc (xtensa*-*-uclinux*): New configuration.
10471 * config/xtensa/uclinux.h: New file.
10472 * config/xtensa/uclinux.opt: New file.
10474 2015-10-03 Jonathan Wakely <jwakely@redhat.com>
10476 * doc/cpp.texi (Standard Predefined Macros): Document value of
10477 __cplusplus for C++14.
10479 2015-10-02 Bernd Schmidt <bernds@codesourcery.com>
10481 * gcc.c (process_command): Use spec_machine rather than
10482 spec_host_machine to build tooldir_prefix2.
10484 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
10485 Bernd Schmidt <bernds@codesourcery.com>
10487 * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
10488 (Token, Stmt): Remove structs.
10489 (decls, vars, fns): Remove variables.
10490 (alloc_comment, append_stmt, is_keyword): Remove macros.
10491 (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
10492 (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
10493 (parse_init, parse_file): Remove functions.
10494 (read_file): Accept a pointer to a length and store into it.
10495 (process): Don't try to parse the input file, just write it out as
10496 a string, but looking for maps. Also write out the length.
10497 (main): Don't use "-S" to compile PTX code.
10499 2015-10-02 Jeff Law <law@redhat.com>
10501 * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
10504 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
10507 * config/nvptx/mkoffload.c (main): Scan the argument vector for
10508 -fopenmp, and skip generating an offloading image if specified.
10510 2015-10-02 Uros Bizjak <ubizjak@gmail.com>
10512 * system.h (ROUND_UP): New macro definition.
10513 (ROUND_DOWN): Ditto.
10514 * ggc-page.c (ROUND_UP): Remove local macro definition.
10515 (PAGE_ALIGN): Implement using ROUND_UP macro.
10517 * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
10518 * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
10520 (ix86_compute_frame_layout): Ditto.
10521 (ix86_expand_prologue): Ditto.
10522 (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
10523 to round down values.
10524 (expand_set_or_movmem_via_rep): Ditto.
10526 2015-10-02 Marek Polacek <polacek@redhat.com>
10528 * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
10530 2015-10-02 Aditya Kumar <aditya.k7@samsung.com>
10532 * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
10533 (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
10534 * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
10535 (free_gimple_bb): Renamed free_gimple_poly_bb.
10536 (try_generate_gimple_bb): Hoist loop invariant code.
10537 (analyze_drs_in_stmts): Same.
10538 (build_scop_drs): Call renamed functions.
10539 (new_pbb_from_pbb): Same.
10540 (scop_ivs_can_be_represented): Delete as functionality now moved to
10541 graphite-scop-detection.c
10542 (build_poly_scop): Remove call to scop_ivs_can_be_represented.
10544 2015-10-02 Aditya Kumar <hiraditya@msn.com>
10546 * graphite-scop-detection.c (stmt_has_side_effects): New function
10547 outlined from stmt_simple_for_scop_p.
10548 (graphite_can_represent_stmt): Same.
10549 (stmt_simple_for_scop_p): Moved code out of this function for better
10552 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
10554 * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
10556 (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
10558 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10560 * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
10562 2015-10-02 Vladimir Makarov <vmakarov@redhat.com>
10564 PR rtl-optimization/67756
10565 * lra-constraints.c (match_reload): Add a new parameter. Use it
10566 for creating a pseudo with the same value.
10567 (curr_insn_transform): Pass a new argument to match_reload.
10569 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
10571 * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
10572 (expand_vec_perm_even_odd_1): Handle V64QImode.
10573 (ix86_expand_vec_perm_const_1): Try expansion with
10574 expand_vec_perm_even_odd_trunc as well.
10575 * config/i386/sse.md (VI124_AVX512F): Rename to ...
10576 (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
10578 (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
10579 (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
10580 to V32HI and V16SI.
10581 (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
10582 (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
10583 (define_expand "vec_unpacks_lo_<mode>"): Ditto.
10584 (define_expand "vec_unpacks_hi_<mode>"): Ditto.
10585 (define_expand "vec_unpacku_lo_<mode>"): Ditto.
10586 (define_expand "vec_unpacku_hi_<mode>"): Ditto.
10588 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
10590 * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
10591 -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
10593 2015-10-02 Jason Merrill <jason@redhat.com>
10596 * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
10597 (diagnose_tm_1_op): Also diagnose volatile accesses in
10598 transaction_safe function.
10600 2015-10-02 Jonathan Wakely <jwakely@redhat.com>
10602 * system.h (malloc.h): Don't include obsolete header.
10604 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10606 * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
10607 (TLS_SECTION_ASM_FLAG): Delete.
10609 2015-10-02 Marek Polacek <polacek@redhat.com>
10612 * doc/invoke.texi: Document -Wduplicated-cond.
10613 * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
10614 (insn-dfatab.o): Likewise.
10615 * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
10618 2015-10-02 Oleg Endo <olegendo@gcc.gnu.org>
10620 * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
10623 2015-10-02 Renlin Li <renlin.li@arm.com>
10625 * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
10627 2015-10-02 Renlin Li <renlin.li@arm.com>
10630 * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
10632 2015-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10634 PR rtl-optimization/67786
10635 PR rtl-optimization/67787
10636 * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
10637 it modifies a reg used in the condition calculation.
10639 2015-10-02 James Greenhalgh <james.greenhalgh@arm.com>
10641 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
10642 alternatives for reads from memory and moves from general-purpose
10644 (*aarch64_combinez_be<mode>): Likewise.
10646 2015-10-02 Kai Tietz <ktietz70@googlemail.com>
10649 * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
10650 selectany within this function without need to keep attribute.
10651 (i386_pe_encode_section_info): Remove selectany-code.
10653 2015-10-02 Richard Biener <rguenther@suse.de>
10655 * tree-ssa-sccvn.c (has_VN_INFO): New function.
10656 (free_scc_vn): Use it.
10657 (visit_use): Remove dead code and refactor to use gassign
10658 and use less indentation.
10660 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10664 * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
10665 (rs6000_cannot_copy_insn_p): New function.
10666 * config/rs6000/rs6000.md (cannot_copy): New attribute.
10667 (load_toc_v4_PIC_1_normal): Set cannot_copy.
10668 (load_toc_v4_PIC_1_476): Ditto.
10670 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
10672 * graphite-scop-detection.c (struct sese_l): New conversion constructor
10673 so that this type can be pushed into a vec.
10674 (class scop_builder): use sese_l to collect scops.
10675 (get_scops): New getter function.
10676 (remove_intersecting_scops): Use sese_l instead of scops_p.
10677 (intersects): Same.
10680 (remove_subscops): Same.
10681 (build_scops): Add scops to vec<scops_p> once all the scops have been
10684 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
10686 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
10687 Renamed type from gimple_bb_p to gimple_poly_bb_p.
10688 (translate_isl_ast_node_user): Same.
10689 * graphite-poly.c (new_poly_bb): Same.
10690 * graphite-poly.h (gbb_from_bb): Same.
10692 * graphite-sese-to-poly.c (new_gimple_bb):
10693 gimple_bb_p -> gimple_poly_bb_p
10694 (build_scop_scattering): Same.
10695 (find_params_in_bb): Same.
10696 (add_conditions_to_domain): Same.
10697 (sese_dom_walker::before_dom_children): Same.
10698 (analyze_drs_in_stmts): Same.
10699 (new_pbb_from_pbb): Same.
10700 (free_data_refs_aux): New pointer to type base_alias_pair.
10701 * graphite-sese-to-poly.h: Same.
10702 * sese.c (if_region_set_false_region): Fixed Indentation.
10703 (move_sese_in_condition): Same.
10705 2015-10-01 Sebastian Pop <s.pop@samsung.com>
10706 Aditya Kumar <aditya.k7@samsung.com>
10708 PR tree-optimization/66980
10709 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
10710 when data reference analysis has failed.
10712 2015-10-01 Sebastian Pop <s.pop@samsung.com>
10713 Aditya Kumar <aditya.k7@samsung.com>
10715 PR tree-optimization/67754
10716 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
10717 scev analysis on the same loop nest as analyze_drs_in_stmts.
10718 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
10720 (try_generate_gimple_bb): Call outermost_loop_in_sese.
10721 (analyze_drs_in_stmts): Same.
10722 * sese.c (outermost_loop_in_sese): ...here.
10724 2015-10-01 Sebastian Pop <s.pop@samsung.com>
10725 Aditya Kumar <aditya.k7@samsung.com>
10727 PR tree-optimization/67754
10728 * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
10729 recursion on the inner loops.
10731 2015-10-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10733 * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
10734 function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
10735 tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
10736 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
10737 tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
10739 2015-10-01 Marek Polacek <polacek@redhat.com>
10742 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
10743 create_tmp_var_raw rather than create_tmp_var.
10745 2015-10-01 Marek Polacek <polacek@redhat.com>
10747 PR tree-optimization/67769
10748 * tree-ssa-phiopt.c (conditional_replacement): Call
10749 reset_flow_sensitive_info_in_bb.
10750 (minmax_replacement): Likewise.
10751 (abs_replacement): Likewise.
10753 2015-10-01 Nathan Sidwell <nathan@codesourcery.com>
10755 * builtins.c: Don't include gomp-constants.h.
10756 (fold_builtin_1): Don't fold acc_on_device here.
10757 * gimple-fold.c: Include gomp-constants.h.
10758 (gimple_fold_builtin_acc_on_device): New.
10759 (gimple_fold_builtin): Call it.
10761 2015-10-01 H.J. Lu <hongjiu.lu@intel.com>
10763 * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
10764 (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
10766 2015-10-01 James Greenhalgh <james.greenhalgh@arm.com>
10768 * config/arm/aarch-common-protos.h
10769 (aarch_accumulator_forwarding): New.
10770 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
10771 * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
10772 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
10773 * config/arm/cortex-a53.md: Rewrite.
10775 2015-10-01 Richard Biener <rguenther@suse.de>
10777 * gimple-match.h (mprts_hook): Declare.
10778 * gimple-match.head.c (mprts_hook): Define.
10779 (maybe_push_res_to_seq): Use new hook.
10780 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
10781 * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
10782 (vn_ssa_aux::has_constants): Remove.
10783 * tree-ssa-sccvn.c: Include gimple-match.h.
10784 (VN_INFO_GET): Assert we don't re-use SSA names.
10785 (vn_get_expr_for): Remove.
10786 (expr_has_constants): Likewise.
10787 (stmt_has_constants): Likewise.
10788 (simplify_binary_expression): Likewise.
10789 (simplify_unary_expression): Likewise.
10790 (vn_lookup_simplify_result): New hook.
10791 (visit_copy): Adjust.
10792 (visit_reference_op_call): Likewise.
10793 (visit_phi): Likewise.
10794 (visit_use): Likewise.
10795 (process_scc): Likewise.
10796 (init_scc_vn): Likewise.
10797 (visit_reference_op_load): Likewise. Use match-and-simplify and
10798 a gimple seq for inserted expressions.
10799 (try_to_simplify): Remove GENERIC stmt combining code.
10800 (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
10801 * tree-ssa-pre.c (eliminate_insert): Adjust.
10802 (eliminate_dom_walker::before_dom_children): Likewise.
10804 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10806 * doc/invoke.texi (Optimization Options): Add
10807 -freorder-blocks-algorithm=.
10808 (Optimize Options) <-O>: Add -freorder-blocks.
10809 <-O2>: Remove -freorder-blocks. Add -freorder-blocks-algorithm=stc.
10810 <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
10811 <-freorder-blocks>: Also enabled at levels -O and -Os.
10812 <-freorder-blocks-algorithm=>: Document new option.
10814 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10816 * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
10817 with flag_reorder_blocks_algorithm.
10818 * common.opt (freorder-blocks-algorithm=): New flag.
10819 (reorder_blocks_algorithm): New enum.
10820 * flag-types.h (reorder_blocks_algorithm): New enum.
10821 * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
10822 and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
10824 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10826 * bb-reorder.c: Add intro comment.
10827 (reorder_basic_blocks_software_trace_cache): Print a header to
10829 (edge_order): New function.
10830 (reorder_basic_blocks_simple): New function.
10831 (reorder_basic_blocks): Choose between the STC and the simple
10832 algorithms (always choose the former).
10834 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10836 * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
10837 function, factored out from ...
10838 (reorder_basic_blocks): ... here.
10840 2015-10-01 Tom de Vries <tom@codesourcery.com>
10842 * tree-cfg.c (dump_function_to_file): Dump function attributes using
10843 __attribute__(()) string. Move dumping of function attributes to before
10846 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
10849 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
10850 * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
10851 based on gold linker version.
10852 * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
10853 HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
10854 * configure, config.in: Regenerate.
10856 2015-10-01 Alan Modra <amodra@gmail.com>
10858 * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
10859 r2_setup_needed when TARGET_SINGLE_PIC_BASE.
10860 (rs6000_output_mi_thunk): Likewise.
10862 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
10864 * config/nvptx/mkoffload.c (process): Change offload data format.
10866 2015-09-30 Jeff Law <law@redhat.com>
10868 * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
10869 with constant conditions.
10870 * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
10871 (remove_ctrl_stmt_and_useless_edges): No longer static.
10872 * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
10873 (remove_ctrl_stmt_and_useless_edges): Likewise.
10875 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
10876 Cesar Philippidis <cesar@codesourcery.com>
10878 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
10879 (TARGET_GOACC_VALIDATE_DIMS): Override.
10880 * target.def (TARGET_GOACC): New target hook prefix.
10881 (validate_dims): New hook.
10882 * targhooks.h (default_goacc_validate_dims): New.
10883 * omp-low.c (oacc_validate_dims): New.
10884 (execute_oacc_device_lower): New.
10885 (default_goacc_validate_dims): New.
10886 (pass_data_oacc_device_lower): New.
10887 (pass_oacc_device_lower): New pass.
10888 (make_pass_oacc_device_lower): New.
10889 * tree-pass.h (make_pass_oacc_device_lower): Declare.
10890 * passes.def (pass_oacc_device_lower): Add it.
10891 * doc/tm.texi: Rebuilt.
10892 * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
10893 * doc/invoke.texi (oaccdevlow): Document tree dump flag.
10895 2015-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
10897 PR rtl-optimization/67037
10898 * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
10900 2015-09-30 Bernd Schmidt <bernds@redhat.com>
10902 * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
10903 * passes.c: Include tree-ssanames.h.
10904 (execute_function_todo): Flush the pending free SSA_NAMEs after
10905 eliminating unreachable basic blocks.
10906 * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
10907 (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
10908 (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
10909 (flush_ssanames_freelist): New function.
10910 (release_ssaname_fn): Put released names on the queue.
10911 (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
10912 * tree-ssanames.h (flush_ssanames_freelist): Declare.
10914 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
10916 * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
10917 (generate_target_descr_file, generate_target_offloadend_file)
10918 (generate_host_descr_file, prepare_target_image): Pass it on.
10919 * config/nvptx/mkoffload.c (main): Parse "-v" flag.
10920 (compile_native, main): Pass it on.
10921 * lto-wrapper.c (compile_offload_image): Likewise.
10923 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
10924 Ilya Verbin <ilya.verbin@intel.com>
10925 Andrey Turetskiy <andrey.turetskiy@intel.com>
10927 * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
10928 (prepare_target_image, main): Refactor argv building to use
10931 2015-09-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10933 * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
10934 * config/spu/spu.c (spu_expand_atomic_op): New function.
10935 * config/spu/spu.md (AINT): New mode iterator.
10936 (ATOMIC): New code iterator.
10937 (atomic_name, atomic_pred): New code predicates.
10938 ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
10939 ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
10940 (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
10941 "atomic_<atomic_name>_fetch<mode>"): Likewise.
10943 2015-09-30 Ilya Enkovich <enkovich.gnu@gmail.com>
10945 * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
10947 (scalar_chain::convert_reg): Likewise.
10949 2015-09-30 Richard Biener <rguenther@suse.de>
10951 * builtins.c: Add comment that no new simplifications should
10954 2015-09-30 Marek Polacek <polacek@redhat.com>
10956 PR tree-optimization/67690
10957 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
10958 reset_flow_sensitive_info_in_bb.
10959 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
10960 * tree-ssanames.c: Include "gimple-iterator.h".
10961 (reset_flow_sensitive_info_in_bb): New function.
10962 * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
10964 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
10966 * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
10967 variable, replacing it with...
10968 (offload_abi): ... this new variable. Adjust all users.
10969 * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
10971 2015-09-30 Matthias Klose <doko@ubuntu.com>
10973 * configure.ac: Remove extraneous ;;.
10974 * configure: Regenerate.
10976 2015-09-29 James Bowman <james.bowman@ftdichip.com>
10978 * config/ft32/predicates.md (ft32_imm_operand): New predicate.
10979 * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
10980 predicate, disallow register for operand 2.
10982 2015-09-29 Aditya Kumar <aditya.k7@samsung.com>
10984 * graphite-dependences.c (scop_get_dependences): Moved in down
10985 in order to be visible to its caller.
10986 * graphite-poly.h: Removed compute_deps, and extend_schedule.
10988 2015-09-29 Sebastian Pop <s.pop@samsung.com>
10989 Aditya Kumar <aditya.k7@samsung.com>
10991 PR tree-optimization/67754
10992 * graphite-optimize-isl.c (optimize_isl): Call
10993 isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
10995 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
10997 * builtins.c (expand_builtin_acc_on_device): Delete.
10998 (expand_builtin): Don't call it.
10999 (fold_builtin_1): Fold acc_on_device.
11001 2015-09-29 H.J. Lu <hongjiu.lu@intel.com>
11003 * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
11004 (ix86_nsaved_sseregs): Likewise.
11006 2015-09-29 Jeff Law <law@redhat.com>
11008 * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
11009 computation of unused value.
11011 * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
11012 * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
11013 inline macro expansion.
11015 * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
11017 * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
11018 (gen_shl_sext): Likewise.
11019 * config/sh/sh.md (divsi3): Likewise.
11020 (imm->ext_dest_operand splitter): Likewise.
11022 2015-09-29 Sebastian Pop <s.pop@samsung.com>
11023 Aditya Kumar <aditya.k7@samsung.com>
11025 * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
11026 (nb_data_writes_in_bb): Remove.
11027 (split_pbb): Remove.
11028 (split_reduction_stmt): Remove.
11029 (is_reduction_operation_p): Remove.
11030 (phi_contains_arg): Remove.
11031 (follow_ssa_with_commutative_ops): Remove.
11032 (detect_commutative_reduction_arg): Remove.
11033 (detect_commutative_reduction_assign): Remove.
11034 (follow_inital_value_to_phi): Remove.
11035 (edge_initial_value_for_loop_phi): Remove.
11036 (initial_value_for_loop_phi): Remove.
11037 (used_outside_reduction): Remove.
11038 (detect_commutative_reduction): Remove.
11039 (translate_scalar_reduction_to_array_for_stmt): Remove.
11040 (remove_phi): Remove.
11041 (dr_indices_valid_in_loop): Remove.
11042 (close_phi_written_to_memory): Remove.
11043 (translate_scalar_reduction_to_array): Remove.
11044 (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
11045 (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
11046 (rewrite_commutative_reductions_out_of_ssa): Remove.
11047 (build_poly_scop): Remove call to
11048 rewrite_commutative_reductions_out_of_ssa.
11050 2015-09-29 Evandro Menezes <e.menezes@samsung.com>
11052 * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
11053 Add new insn types for vector load and store pairs.
11054 * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
11055 types "neon_ldp{,_q}".
11056 * config/arm/cortex-a57.md (neon_load_c): Add insn types
11058 (neon_store_complex): Add insn types "neon_stp{,_q}".
11059 * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
11060 "neon_{ldp,stp}_q".
11062 2015-09-29 Jeff Law <law@redhat.com>
11064 * config/rx/constraints.md (Int08): Fix undefined left shift
11066 (Sint08, Sint16, Sint24): Likewise.
11067 * config/rx/rx.c (rx_get_stack_layout): Likewise.
11069 * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
11072 * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
11073 left shift behaviour.
11074 * config/msp430/constraints.md ('L' constraint): Similarly.
11075 ('Ys' constraint): Similarly.
11077 2015-09-29 Richard Biener <rguenther@suse.de>
11079 PR tree-optimization/67170
11080 * tree-ssa-alias.h (get_continuation_for_phi): Adjust
11081 the translate function pointer parameter to get the
11082 bool whether to disambiguate only by reference.
11083 (walk_non_aliased_vuses): Likewise.
11084 * tree-ssa-alias.c (maybe_skip_until): Adjust.
11085 (get_continuation_for_phi_1): Likewise.
11086 (get_continuation_for_phi): Likewise.
11087 (walk_non_aliased_vuses): Likewise.
11088 * tree-ssa-sccvn.c (const_parms): New bitmap.
11089 (vn_reference_lookup_3): Adjust for interface change.
11090 Disambiguate parameters pointing to readonly memory.
11091 (free_scc_vn): Free const_parms.
11092 (run_scc_vn): Initialize const_parms from a fn spec attribute.
11094 2015-09-29 Richard Biener <rguenther@suse.de>
11096 PR tree-optimization/67741
11097 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
11098 builtin calls with correct signature.
11100 2015-09-29 Ilya Enkovich <enkovich.gnu@gmail.com>
11103 * config/i386/i386.c: Include dbgcnt.h.
11104 (has_non_address_hard_reg): New.
11105 (convertible_comparison_p): New.
11106 (scalar_to_vector_candidate_p): New.
11107 (remove_non_convertible_regs): New.
11108 (scalar_chain): New.
11109 (scalar_chain::scalar_chain): New.
11110 (scalar_chain::~scalar_chain): New.
11111 (scalar_chain::add_to_queue): New.
11112 (scalar_chain::mark_dual_mode_def): New.
11113 (scalar_chain::analyze_register_chain): New.
11114 (scalar_chain::add_insn): New.
11115 (scalar_chain::build): New.
11116 (scalar_chain::compute_convert_gain): New.
11117 (scalar_chain::replace_with_subreg): New.
11118 (scalar_chain::replace_with_subreg_in_insn): New.
11119 (scalar_chain::emit_conversion_insns): New.
11120 (scalar_chain::make_vector_copies): New.
11121 (scalar_chain::convert_reg): New.
11122 (scalar_chain::convert_op): New.
11123 (scalar_chain::convert_insn): New.
11124 (scalar_chain::convert): New.
11125 (convert_scalars_to_vector): New.
11126 (pass_data_stv): New.
11128 (make_pass_stv): New.
11129 (ix86_option_override): Created and register stv pass.
11130 (flag_opts): Add -mstv.
11131 (ix86_option_override_internal): Likewise.
11132 * config/i386/i386.md (SWIM1248x): New.
11133 (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
11134 (and<mode>3): Use SWIM1248x iterator instead of SWIM.
11135 (*anddi3_doubleword): New.
11136 (*zext<mode>_doubleword): New.
11137 (*zextsi_doubleword): New.
11138 (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
11139 (*<code>di3_doubleword): New.
11140 * config/i386/i386.opt (mstv): New.
11141 * dbgcnt.def (stv_conversion): New.
11143 2015-09-29 Tom de Vries <tom@codesourcery.com>
11145 * tree-cfg.c (dump_function_to_file): Dump function attributes.
11147 2015-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
11150 * config/sh/sh.c (sh_override_options_after_change): New.
11151 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
11152 (sh_option_override): Move align_loops, align_jumps and
11153 align_functions handling into sh_override_options_after_change.
11155 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
11157 * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
11158 (nvptx_record_offload_symbol): Record function execution geometry.
11159 * config/nvptx/mkoffload.c (process): Include launch geometry in
11161 * omp-low.c (oacc_launch_pack): New.
11162 (replace_oacc_fn_attrib): New.
11163 (set_oacc_fn_attrib): New.
11164 (get_oacc_fn_attrib): New.
11165 (expand_omp_target): Create keyed varargs for GOACC_parallel call
11167 * omp-low.h (get_oacc_fn_attrib): Declare.
11168 * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
11169 (DEF_FUNCTION_TYPE_VAR_11): Delete.
11170 * tree.h (OMP_CLAUSE_EXPR): New.
11171 * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
11173 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
11174 Sebastian Pop <s.pop@samsung.com>
11176 * sese.c (invariant_in_sese_p_rec): Remove unused variable.
11178 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
11179 Sebastian Pop <s.pop@samsung.com>
11181 * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
11182 * graphite-scop-detection.c (struct sese_l): New type.
11183 (get_entry_bb): API for getting entry bb of SESE.
11184 (get_exit_bb): API for getting exit bb of SESE.
11185 (class debug_printer): New type. Simple printer in debug mode.
11186 (trivially_empty_bb_p): New. Return true when BB is empty or
11187 contains only debug instructions.
11188 (graphite_can_represent_expr): Call scalar_evoution_in_region
11189 instead of analyze_scalar_evolution. Pass in scop instead of only
11191 (stmt_has_simple_data_refs_p): Pass in scop instead of only the
11193 (stmt_simple_for_scop_p): Same.
11194 (harmful_stmt_in_bb): Same.
11195 (graphite_can_represent_loop): Deleted.
11196 (struct scopdet_info): Deleted.
11197 (scopdet_basic_block_info): Deleted.
11198 (build_scops_1): Deleted.
11199 (bb_in_sd_region): Deleted.
11200 (find_single_entry_edge): Deleted.
11201 (find_single_exit_edge): Deleted.
11202 (create_single_entry_edge): Deleted.
11203 (sd_region_without_exit): Deleted.
11204 (create_single_exit_edge): Deleted.
11205 (unmark_exit_edges): Deleted.
11206 (mark_exit_edges): Deleted.
11207 (create_sese_edges): Deleted.
11208 (build_graphite_scops): Deleted.
11209 (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
11210 (build_scops): Use the new scop_builder to build scops.
11211 (dot_all_scops_1): Use the new pretty printer. Print loop father
11213 (loop_body_is_valid_scop): New. Return true if loop body is a
11215 (class scop_builder): New. Builds SCoPs for polyhedral
11217 (scop_builder): New constructor.
11218 (static sese_l invalid_sese): sese_l with invalid edges.
11219 (get_sese): Get an sese (from a loop) if possible, invalid_sese
11221 (get_nearest_dom_with_single_entry): Get nearest dominator of a
11222 basic_block with single entry. Return NULL if we get to the
11223 beginning of a function.
11224 (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
11225 a basic_block with single exit. Return NULL if we get to the
11226 beginning of a function.
11227 (print_sese): Pretty-print SESE.
11228 (merge_sese): Merge two SESEs if possible and return the new SESE.
11229 (build_scop_depth): Start building the SCoP within a loop nest.
11230 (build_scop_breadth): Start building the SCoP at a single loop
11231 depth. Merge adjacent SESEs if valid.
11232 (can_represent_loop_1): Returns true if Graphite can represent
11233 loop inside SCoP. Helper for can_represent_loop.
11234 (can_represent_loop): Returns true if Graphite can represent LOOP
11235 and all its nested loops in SCoP.
11236 (loop_is_valid_scop): Returns true if LOOP and all its nests
11237 constitute a valid SCoP.
11238 (region_has_one_loop): Returns true of a region has only one loop.
11239 (add_scop): Add SCoP to the list of valid scops. Removes an
11240 already existing scop if it intersects with or subsumed by this one.
11241 (harmful_stmt_in_region): Returns true if SCoP has any statment
11242 which cannot be represented by Graphite.
11243 (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
11244 (remove_subscops): Remove any SCoP from the list of already found
11245 SCoPs, if subsumed by S1.
11246 (intersects): Return true if region bounded by SCoPs S1 and S2
11248 (remove_intersecting_scops): Remove any SCoP which intersects with S1.
11249 * graphite.c (print_graphite_scop_statistics):
11250 (print_graphite_statistics): Print SCoP info while debugging.
11251 (graphite_initialize): Early exit in case number of loops in a
11252 function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
11253 basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
11254 (graphite_finalize):
11255 * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
11256 * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
11257 (recompute_all_dominators): Recalculate POST_DOMINATORS.
11258 * tree-cfg.c (print_loops): Print the function name while printing
11261 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
11262 Sebastian Pop <s.pop@samsung.com>
11264 PR tree-optimization/67700
11265 * graphite-sese-to-poly.c (parameter_index_in_region): Call
11266 invariant_in_sese_p_rec.
11267 (extract_affine): Same.
11268 (rewrite_cross_bb_scalar_deps): Call update_ssa.
11269 * sese.c (invariant_in_sese_p_rec): Export. Handle vdefs and vuses.
11270 * sese.h (invariant_in_sese_p_rec): Declare.
11272 2015-09-28 David Wohlferd <dw@LimeGreenSocks.com>
11274 * doc/extend.texi (Asm Labels): Break out text for data vs functions.
11276 2015-09-28 Jiong Wang <jiong.wang@arm.com>
11279 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11280 Jiong Wang <jiong.wang@arm.com>
11282 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
11283 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
11284 (REG_CLASS_NAMES): Likewise.
11285 (REG_CLASS_CONTENTS): Likewise.
11286 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
11287 (aarch64_register_move_cost): Likewise.
11288 (aarch64_load_symref_appropriately): Invoke the new added pattern if
11290 * config/aarch64/constraints.md (Uc0): New constraint.
11292 2015-09-28 Daniel Hellstrom <daniel@gaisler.com>
11294 * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
11296 2015-09-28 David Edelsohn <dje.gcc@gmail.com>
11298 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
11299 SECTION_EXCLUDE in XO mapping class.
11301 2015-09-28 Oleg Endo <olegendo@gcc.gnu.org>
11304 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
11305 and handle ne and eq codes.
11306 * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
11307 (sh_recog_treg_set_expr): Early accept negt_reg_operand. Eearly reject
11308 CONST_INT_P. Use reverse_condition.
11309 (sh_split_treg_set_expr): Likewise.
11311 2015-09-28 James Greenhalgh <james.greenhalgh@arm.com>
11313 * config/arm/types.md (type): Add rotate_imm.
11314 * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
11315 ROR immediate case.
11316 (*rorsi3_insn_uxtw): Likewise.
11317 * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
11318 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
11319 * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
11321 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11323 PR rtl-optimization/67481
11324 * ifcvt.c (contains_ccmode_rtx_p): New function.
11325 (insn_valid_noce_process_p): Use it.
11327 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11329 PR rtl-optimization/67456
11330 PR rtl-optimization/67464
11331 PR rtl-optimization/67465
11332 * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
11333 move in the mode of x. Handle combination of complex and simple
11334 block pairs as well as the case when one is empty.
11336 2015-09-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11338 * doc/gimple.texi: Update references to gimple_statement_base.
11339 * gdbhooks.py: Likewise.
11340 * gimple.h: Likewise.
11342 2015-09-28 Daniel Cederman <cederman@gaisler.com>
11344 * config/sparc/driver-sparc.c: map LEON to leon3
11346 2015-09-28 Daniel Cederman <cederman@gaisler.com>
11348 * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
11349 and make it inverse to change default
11350 * config/sparc/sync.md: Only use supervisor ASI for CASA when in
11352 * doc/invoke.texi: Document change of default
11354 2015-09-28 Daniel Cederman <cederman@gaisler.com>
11356 * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
11357 true on %f0 for a target without FPU.
11358 * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
11360 (untyped_return): Do not load %f0 for a target without FPU.
11362 2015-09-28 Andrew Pinski <apinski@cavium.com>
11364 * config/aarch64/aarch64.md (prefetch):
11365 Change the predicate of operand 0 to register_operand.
11367 2015-09-27 Uros Bizjak <ubizjak@gmail.com>
11369 * config/i386/predicates.md (register_sse4nonimm_operand): New
11371 * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
11372 (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
11373 Use register_sse4nonimm_operand as operand 0 predicate.
11374 (*vec_extractv8hi_sse2): Remove insn pattern.
11375 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
11376 *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
11378 2015-09-27 Oleg Endo <olegendo@gcc.gnu.org>
11379 Kaz Kojima <kkojima@gcc.gnu.org>
11382 * config/sh/sh-protos.h (sh_lra_p): Declare.
11383 * config/sh/sh.c (sh_lra_p): Make non-static.
11384 * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
11385 arith_reg_operand for operands[1]. Remove TARGET_SHMEDIA case.
11386 Expand into addsi3_scr if operands[2] if needed.
11387 (*addsi3_compact): Rename to *addsi3_compact_lra. Use
11388 arith_reg_operand for operands[1]. Allow it only when LRA is enabled.
11389 (addsi3_scr, *addsi3): New insn_and_split patterns.
11391 2015-09-27 Alexandre Oliva <aoliva@redhat.com>
11393 PR rtl-optimization/64164
11394 PR tree-optimization/67312
11395 PR middle-end/67340
11396 PR middle-end/67490
11398 * cfgexpand.c (parm_in_stack_slot_p): Remove.
11399 (ssa_default_def_partition): Remove.
11400 (get_rtl_for_parm_ssa_default_def): Remove.
11401 (set_rtl): Check that RTL assignments match expectations.
11402 Loop on SUBREGs, CONCATs and PARALLELs subexprs. Set only the
11403 default def location for params and results. Record SSA names
11404 or types in REG and MEM attrs, respectively.
11405 (set_parm_rtl): New.
11406 (expand_one_ssa_partition): Drop logic that assigned MEMs with
11407 unassigned addresses.
11408 (adjust_one_expanded_partition_var): Don't accept NULL RTL on
11409 deferred stack alloc vars.
11410 (expand_used_vars): Skip partitions holding parm default defs.
11411 Move adjust_one_expanded_partition_var loop...
11412 (pass_expand::execute): ... here. Drop redundant assert.
11413 Adjust comments before the final loop over all ssa names.
11414 Require assigned rtl of parms and results to match exactly.
11415 Reset its attributes to match them, not any other variables in
11416 the same partition.
11417 (expand_debug_expr): Use entry value for PARM's default defs
11418 only iff they have zero nondebug uses.
11419 * cfgexpand.h (parm_in_stack_slot_p): Remove.
11420 (get_rtl_for_parm_ssa_default_def): Remove.
11421 (set_parm_rtl): Declare.
11422 * doc/invoke.texi: Improve wording.
11423 * explow.c (promote_decl_mode): Fix promote_function_mode for
11424 result decls not by reference.
11425 (promote_ssa_mode): Disregard BLKmode from promote_decl, and
11426 bypass TYPE_MODE to get the actual vector mode.
11427 * function.c: Include tree-dfa.h. Revert 2015-08-14's and
11428 2015-08-19's changes as follows. Drop include of
11429 basic-block.h and df.h.
11430 (rtl_for_parm): Remove.
11431 (maybe_reset_rtl_for_parm): Remove.
11432 (parm_in_unassigned_mem_p): Remove.
11433 (use_register_for_decl): Add logic for RESULT_DECLs matching
11434 assign_parms' behavior.
11435 (split_complex_args): Revert.
11436 (assign_parms_augmented_arg_list): Revert. Add comment
11437 referencing the logic above.
11438 (assign_parm_adjust_stack_rtl): Revert.
11439 (assign_parm_setup_block): Revert. Use set_parm_rtl instead
11440 of SET_DECL_RTL. Set up a REG if the parm demands so.
11441 (assign_parm_setup_reg): Revert. Consolidated SET_DECL_RTL
11442 calls into a single set_parm_rtl. Set up a temporary RTL
11443 temporarily for expand_assignment.
11444 (assign_parm_setup_stack): Revert. Use set_parm_rtl.
11445 (assign_parms_unsplit_complex): Revert. Use set_parm_rtl.
11446 (assign_bounds): Revert.
11447 (assign_parms): Revert. Use set_parm_rtl.
11448 (allocate_struct_function): Relayout result and parms of
11449 non-abstruct functions.
11450 (expand_function_start): Revert. Use set_parm_rtl. If the
11451 result is not a hard reg, create a pseudo from the promoted
11452 mode of the default def. Promote static chain mode.
11453 * tree-outof-ssa.c (remove_ssa_form): Drop unused
11454 partition_has_default_def. Set up
11455 partitions_for_parm_default_defs.
11456 (finish_out_of_ssa): Remove partition_has_default_def.
11457 Release partitions_for_parm_default_defs.
11458 * tree-outof-ssa.h (struct ssaexpand): Remove
11459 partition_has_default_def. Add
11460 partitions_for_parm_default_defs.
11461 * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
11463 (build_ssa_conflict_graph): Fix conflict-detection of default
11464 defs of even unused default defs of params and results.
11465 (for_all_parms): New.
11466 (create_default_def): New.
11467 (register_default_def): New.
11468 (coalesce_with_default): New.
11469 (create_outofssa_var_map): Create default defs for all parms
11470 and results, and register their partitions. Add GIMPLE_RETURN
11471 operands as coalesce candidates with results. Add default
11472 defs of each parm or result as coalesce candidates with its
11473 other defs. Mark each result def, and each default def of
11474 parms, as used_in_copy.
11475 (gimple_can_coalesce_p): Call it. Call use_register_for_decl
11476 with the ssa names, even anonymous ones. Drop
11477 parm_in_stack_slot_p calls. Require same signedness and
11479 (coalesce_ssa_name): Add coalesce candidates for all defs of
11480 each parm and result, even unused ones.
11481 (parm_default_def_partition_arg): New type.
11482 (set_parm_default_def_partition): New.
11483 (get_parm_default_def_partitions): New.
11484 * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
11485 * tree-ssa-live.c (partition_view_init): Regard unused defs of
11486 parms and results as used.
11487 (verify_live_on_entry): Don't error out just because they're
11490 2015-09-26 David Edelsohn <dje.gcc@gmail.com>
11492 * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
11493 (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
11494 (output_fde): Don't output length for debug_frame on AIX.
11495 (output_call_frame_info): Don't output length for debug_frame on AIX.
11496 (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
11497 HAVE_XCOFF_DWARF_EXTRAS.
11498 (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
11499 HAVE_XCOFF_DWARF_EXTRAS.
11500 (output_compilation_unit_header): Don't output length on AIX.
11501 (output_pubnames): Don't output length on AIX.
11502 (output_aranges): Delete argument. Compute length locally. Don't
11503 output length on AIX.
11504 (output_line_info): Don't output length on AIX.
11505 (dwarf2out_finish): Don't compute aranges_length.
11506 * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
11507 (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
11508 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
11509 symbol decoration for AIX.
11510 (rs6000_xcoff_debug_unwind_info): New.
11511 (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
11513 (rs6000_xcoff_declare_function_name): Emit different
11514 .function pseudo-op when DWARF2_DEBUG. Don't call
11515 xcoffout_declare_function for DWARF2_DEBUG.
11516 * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
11518 * config/rs6000/aix71.h: New.
11519 * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
11521 * configure: Regenerate.
11522 * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
11525 2015-09-26 Jeff Law <law@redhat.com>
11527 * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
11529 * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
11532 * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
11535 * config/mips/mips.c (mips_compute_frame_info): Fix left shift
11536 undefined behaviour.
11538 * config/cris/cris.md (asrandb): Fix left shift undefined
11540 (asrandw): Likewise.
11542 2015-09-25 Vladimir Makarov <vmakarov@redhat.com>
11545 * lra-constarints.c (match_reload): Check presence of the input pseudo
11546 in the output operand.
11548 2015-09-25 Tobias Burnus <burnus@net-b.de>
11550 * doc/invoke.texi (-fsanitize): Minor wording tweak.
11552 2015-09-25 Tobias Burnus <burnus@net-b.de>
11554 * doc/invoke.texi (-fsanitize): Update URLs.
11556 2015-09-25 Teresa Johnson <tejohnson@google.com>
11558 * opts.c (finish_options): Unset -freorder-blocks-and-partition
11559 if not using profile.
11561 2015-09-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
11563 PR pretty-print/67567
11564 * pretty-print.c (pp_string): Add gcc_checking_assert.
11565 * pretty-print.h (output_buffer_append_r): Likewise.
11567 2015-09-25 Oleg Endo <olegendo@gcc.gnu.org>
11570 * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
11571 addr2 individually. Don't emit logical or insn if one is known to
11572 be aligned approriately.
11573 (sh_expand_cmpnstr): Likewise.
11575 2015-09-25 Richard Sandiford <richard.sandiford@arm.com>
11577 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
11578 __builtin_aarch64_fp[sc]r arguments into a register.
11580 2015-09-25 H.J. Lu <hongjiu.lu@intel.com>
11582 * config.gcc (x86_archs): Replace lakemount with lakemont.
11583 (with_cpu): Likewise.
11584 (with_arch): Likewise.
11585 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
11586 PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT. Replace
11587 __tune_lakemount__ with __tune_lakemont__.
11588 * config/i386/i386.c (lakemount_cost): Renamed to ...
11589 (lakemont_cost): This.
11590 (m_LAKEMOUNT): Renamed to ...
11591 (m_LAKEMONT): This.
11592 (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
11593 (processor_target_table): Replace "lakemount" with "lakemont".
11594 (processor_alias_table): Likewise.
11595 (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
11596 PROCESSOR_LAKEMONT.
11597 (ix86_adjust_cost): Likewise.
11598 (ia32_multipass_dfa_lookahead): Likewise.
11599 * config/i386/i386.h (processor_type): Likewise.
11600 * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
11601 * doc/invoke.texi: Replace lakemount with lakemont. Replace
11602 Lakemount with Lakemont.
11604 2015-09-24 H.J. Lu <hongjiu.lu@intel.com>
11606 * config.gcc (x86_archs): Replace iamcu with lakemount.
11607 (with_cpu): Likewise.
11608 (with_arch): Likewise.
11609 * doc/invoke.texi: Likewise.
11610 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
11611 PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT. Replace
11612 __tune_iamcu__ with __tune_lakemount__.
11613 * config/i386/i386.c (iamcu_cost): Renamed to ...
11614 (lakemount_cost): This.
11615 (m_IAMCU): Renamed to ...
11616 (m_LAKEMOUNT): This.
11617 (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
11618 (processor_target_table): Replace "iamcu" with "lakemount".
11619 (processor_alias_table): Likewise.
11620 (ix86_issue_rate): Replace PROCESSOR_IAMCU with
11621 PROCESSOR_LAKEMOUNT.
11622 (ix86_adjust_cost): Likewise.
11623 (ia32_multipass_dfa_lookahead): Likewise.
11624 * config/i386/i386.h (processor_type): Likewise.
11625 * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
11627 2015-09-24 John David Anglin <danglin@gcc.gnu.org>
11629 * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
11630 * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
11632 * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
11633 (pa_expand_compare_and_swap_loop): New.
11634 (pa_maybe_emit_compare_and_swap_exchange_loop): New.
11635 * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
11636 atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
11637 (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
11638 (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
11641 2015-09-24 Michael Collison <michael.collison@linaro.org>
11644 * read-md.c (read_name): Allow mode iterators inside angle
11645 brackets in rtl expressions.
11647 2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
11650 * ira-color.c (update_allocno_cost): Add parameter.
11651 (update_costs_from_allocno): Decrease conflict cost. Pass the new
11654 2015-09-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
11657 * opts-common.c (prune_options): Discard all -fdiagnostics-color
11658 but the last one, which is moved to the front to be processed
11660 * opts.c (enable_warning_as_error): Reject options that do not
11663 2015-09-24 Jiong Wang <jiong.wang@arm.com>
11665 * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
11667 2015-09-24 Jiong Wang <jiong.wang@arm.com>
11669 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
11670 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
11671 (aarch64_cannot_force_const_mem): Likewise.
11672 (aarch64_classify_address): Likewise.
11673 (aarch64_classify_symbolic_expression): Likewise.
11674 (aarch64_print_operand): Likewise.
11675 (aarch64_classify_symbol): Likewise.
11676 (aarch64_mov_operand_p): Likewise.
11677 * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
11678 (aarch64_mov_operand): Likewise.
11680 2015-09-24 Segher Boessenkool <segher@kernel.crashing.org>
11682 * config/rs6000/rs6000.c (debug_stack_info): Invert the test
11683 for info->spe_gp_size.
11685 2015-09-24 Richard Biener <rguenther@suse.de>
11688 * lto-cgraph.c (compute_ltrans_boundary): Do not stream
11691 2015-09-24 Thomas Schwinge <thomas@codesourcery.com>
11693 * tree-object-size.c (plus_stmt_object_size)
11694 (cond_expr_object_size): Change the formal parameters from gimple
11696 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
11697 * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
11698 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
11700 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11702 * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
11703 Check for ld -type pie on Solaris 11.x and 12.
11704 * configure: Regenerate.
11705 * config.in: Regenerate.
11707 * gcc.c (LD_PIE_SPEC): Allow redefinition.
11709 * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
11710 (STARTFILE_SPEC): Use it.
11711 (ENDFILE_CRTEND_SPEC): Define.
11712 (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
11713 (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
11714 ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
11715 [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
11716 (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
11717 * config/i386/sol2.h (ENDFILE_SPEC): Remove.
11718 (ENDFILE_ARCH_SPEC): Define.
11719 * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
11721 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11723 * configure.ac (gcc_cv_solaris_crts): New test.
11724 * configure. Regenerate.
11725 * config.in: Regenerate.
11726 * config/sol2.h (STARTFILE_SPEC): Simplify, provide
11727 HAVE_SOLARIS_CRTS variant.
11729 2015-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11731 * tree-inline.h (count_insns_seq): Delete prototype.
11732 (estimate_num_insns_seq): Define prototype.
11733 * tree-inline.c (count_insns_seq): Delete.
11734 (estimate_num_insns_seq): Remove static qualifier.
11735 * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
11736 with estimate_num_insns_seq.
11738 2015-09-24 Richard Biener <rguenther@suse.de>
11740 * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
11742 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
11743 and base for MEM_REF and TARGET_MEM_REF. Handle BIT_FIELD_REF
11745 (ao_ref_init_from_vn_reference): Record clique and base in the
11747 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
11749 2015-09-24 Richard Biener <rguenther@suse.de>
11751 PR tree-optimization/48885
11752 * tree-ssa-structalias.c (visit_loadstore): Handle default defs
11753 as not including any restrict tags from other pointers.
11755 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
11757 * gcc.c (handle_foffload_option): Don't lose the trailing NUL
11758 character when appending to offload_targets.
11760 * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
11761 offload targets by commas, not colons.
11762 * config.in: Regenerate.
11763 * configure: Likewise.
11764 * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
11765 instead of setting up the default offload targets here...
11766 (process_command): ..., do it here.
11768 * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
11769 targets are separated by commas.
11770 * config.h.in: Regenerate.
11772 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
11773 Nathan Sidwell <nathan@codesourcery.com>
11775 * omp-low.h (omp_reduction_init_op): Declare.
11776 * omp-low.c (omp_reduction_init_op): New, broken out of ...
11777 (omp_reduction_init): ... here. Call it.
11778 * tree-parloops.c (initialize_reductions): Use
11779 omp_reduction_init_op.
11781 2015-09-23 Richard Biener <rguenther@suse.de>
11783 PR middle-end/67662
11784 * fold-const.c (fold_binary_loc): Do not reassociate two vars with
11785 undefined overflow unless they will cancel out.
11787 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
11789 * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
11792 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
11795 * opts.h (write_langs): Declare.
11796 * opts-global.c (write_langs): Make it extern.
11798 2015-09-23 Oleg Endo <olegendo@gcc.gnu.org>
11801 * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
11802 overlapping regs when matching the pattern.
11804 2015-09-23 James Greenhalgh <james.greenhalgh@arm.com>
11806 * config/aarch64/aarch64-simd.md
11807 (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
11808 (aarch64_float_truncate_hi_v4sf_le): New.
11809 (aarch64_float_truncate_hi_v4sf_be): Likewise.
11811 2015-09-23 Richard Biener <rguenther@suse.de>
11813 * tree-ssa-structalias.c (intra_create_variable_infos): Build
11814 representatives for all restrict qualified pointer destinations.
11816 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
11818 * config/i386/i386.md (define_code_attr mshift): New.
11819 (define_mode_iterator SWI1248_AVX512BW): Rename ...
11820 (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
11822 (define_insn "*k<logic><mode>"): Use new iterator name.
11823 (define_insn "*<mshift><mode>3"): New.
11825 2015-09-23 Mikhail Maltsev <maltsevm@gmail.com>
11827 PR middle-end/67649
11828 * memory-block.h (memory_block_pool::allocate): Use valgrind API to
11829 mark the block as accessible.
11831 2015-09-22 Segher Boessenkool <segher@kernel.crashing.org>
11833 * function.c (thread_prologue_and_epilogue_insns): Delete
11834 orig_entry_edge argument to try_shrink_wrapping.
11835 * shrink-wrap.c (can_get_prologue): New function.
11836 (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
11837 (try_shrink_wrapping): Delete orig_entry_edge argument. Use
11838 can_get_prologue where needed. Remove code that finds a single
11839 edge for the prologue. Remove code that tests if any reg clobbered
11840 by the prologue is live on the prologue edge. Remove code that finds
11841 the new prologue edge after duplicating blocks. Make a new prologue
11843 * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
11845 2015-09-22 Jeff Law <law@redhat.com>
11847 * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
11850 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
11852 * doc/invoke.texi (-Wmultiple-inheritance, -Wvirtual-inheritance,
11853 -Wtemplates, -Wnamespaces): Document.
11855 2015-09-22 Tom de Vries <tom@codesourcery.com>
11857 PR tree-optimization/67671
11858 * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
11859 pointer references as restrict.
11861 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
11863 * config/nios2/nios2.c (nios2_legitimize_address): When handling
11864 'reg + reloc' cases, allow first operand to be non-REG, and use
11865 force_reg() to enforce address pattern.
11867 2015-09-22 Alexander Fomin <alexander.fomin@intel.com>
11870 * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
11871 (define_mode_iterator VI12_AVX_AVX512F): New.
11872 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
11873 all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
11874 (define_insn "*<code><mode>3"): ... Into new pattern using
11875 VI12_AVX_AVX512F iterators without masking.
11877 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
11879 * config.gcc: Support "skylake-avx512".
11880 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
11881 PROCESSOR_SKYLAKE_AVX512.
11882 * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
11883 (processor_target_table): Add "skylake-avx512".
11884 (PTA_SKYLAKE_AVX512): Define.
11885 (ix86_option_override_internal): Add "skylake_avx512".
11886 (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
11887 F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
11888 * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
11889 (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
11890 * doc/invoke.texi (skylake-avx512): New.
11892 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
11894 * config/i386/i386.md (define_insn "kunpckhi"): Fix
11895 operand in pattern.
11896 (define_insn "kunpcksi"): Ditto.
11897 (define_insn "kunpckdi"): Ditto.
11899 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
11901 * config/i386/i386.md (define_split not/xor SWI1248x): Use
11902 iterator instead of fixed modes.
11904 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
11906 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
11907 Adjust declaration.
11908 * config/aarch64/aarch64.c (aarch64_emit_bic): New.
11909 (aarch64_gen_atomic_ldop): Adjust comment. Add parameter
11910 out_result. Update to support update-fetch operations.
11911 * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
11912 Adjust for change to aarch64_gen_atomic_ldop.
11913 (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
11914 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
11915 (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
11916 (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
11917 (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
11919 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
11921 * config/aarch64/aarch64-protos.h
11922 (aarch64_atomic_ldop_supported_p): Declare.
11923 * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
11924 (enum aarch64_atomic_load_op_code): New.
11925 (aarch64_emit_atomic_load_op): New.
11926 (aarch64_gen_atomic_ldop): Update to support load-operate
11928 * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
11930 (aarch64_atomic_<atomic_optab><mode>): New.
11931 (aarch64_atomic_<atomic_optab><mode>_lse): New.
11932 (atomic_fetch_<atomic_optab><mode>): Change to an expander.
11933 (aarch64_atomic_fetch_<atomic_optab><mode>): New.
11934 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
11936 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
11938 * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
11939 (UNSPECV_ATOMIC_LDOP_OR): New.
11940 (UNSPECV_ATOMIC_LDOP_BIC): New.
11941 (UNSPECV_ATOMIC_LDOP_XOR): New.
11942 (UNSPECV_ATOMIC_LDOP_PLUS): New.
11943 (ATOMIC_LDOP): New.
11944 (atomic_ldop): New.
11945 (aarch64_atomic_load<atomic_ldop><mode>): New.
11947 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
11949 * config/aarch64/aarch64.md
11950 (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
11953 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
11955 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
11957 * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
11958 (aarch64_gen_atomic_ldop): New.
11959 (aarch64_split_atomic_op): Fix whitespace and add a comment.
11960 * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
11961 (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
11962 (atomic_exchange<mode>): Replace with an expander.
11963 (aarch64_atomic_exchange<mode>): New.
11964 (aarch64_atomic_exchange<mode>_lse): New.
11965 (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
11966 (aarch64_atomic_swp<mode>): New.
11968 2015-09-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
11970 * tree-inline.c (expand_call_inline): Use inform for extra note.
11971 Do not give a note with UNKNOWN_LOCATION.
11972 Replace input_location with gimple_location (stmt).
11973 Use true/false instead of TRUE/FALSE.
11975 2015-09-22 Tom de Vries <tom@codesourcery.com>
11977 PR tree-optimization/67666
11978 * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
11979 with single field non-conservative.
11981 2015-09-21 David S. Miller <davem@davemloft.net>
11985 2015-09-11 David S. Miller <davem@davemloft.net>
11987 * config/sparc/constraints.md: Make "U" constraint a real register
11989 * config/sparc/sparc.c (TARGET_LRA_P): Define.
11990 (D_MODES, DF_MODES): Add missing cast.
11991 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
11992 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
11993 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
11995 * config/sparc/sparc.h (PROMOTE_MODE): Define.
11996 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
11997 provide these insn when flag_pic.
11999 2015-09-17 David S. Miller <davem@davemloft.net>
12001 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
12003 * config/sparc/sparc.c (sparc_secondary_memory_needed): New
12005 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
12006 (HARD_REGNO_CALLER_SAVE_MODE): Define.
12007 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
12008 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
12009 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
12010 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
12011 provide when flag_pic.
12013 2015-09-21 Jeff Law <law@redhat.com>
12015 * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
12018 2015-09-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12020 * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
12022 2015-09-21 Richard Biener <rguenther@suse.de>
12024 * passes.c (rest_of_decl_compilation): Do not call
12025 dwarf2out_early_global_decl for aliases.
12027 2015-09-21 Richard Biener <rguenther@suse.de>
12030 * dwarf2out.c (add_location_or_const_value_attribute): Remove
12031 attribute parameter. Early exit if either DW_AT_const_value
12032 or DW_AT_location are present already.
12033 (gen_variable_die): Adjust caller.
12034 (dwarf2out_late_global_decl): Likewise.
12036 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
12039 * config/sh/sh.c (sh_remove_overlapping_post_inc,
12040 sh_peephole_emit_move_insn): Add new functions.
12041 * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
12042 sh_peephole_emit_move_insn): Declere them.
12043 * config/sh/sh.md: Use them in various peephole2 patterns.
12045 2015-09-21 Richard Biener <rguenther@suse.de>
12047 PR middle-end/67651
12048 * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
12049 address with -fno-delete-null-pointer-checks.
12051 2015-09-21 Alan Lawrence <alan.lawrence@arm.com>
12053 * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
12054 (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
12055 (reduc_uplus_v16qi): Remove.
12057 * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
12058 (reduc_<VEC_reduc_name>_v2df): Remove.
12059 (reduc_<VEC_reduc_name>_v4sf): Remove.
12060 (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
12062 * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
12063 gen_ function by removing * prefix.
12064 (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
12066 2015-09-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
12068 PR middle-end/60832
12069 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
12070 Print i_bound without converting it to a tree.
12072 2015-09-21 Bilyan Borisov <bilyan.borisov@arm.com>
12074 * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
12075 operands[4] operands[5] swap with std::swap, removed tmp variable.
12076 (arm_evpc_neon_vzip): Replaced in0/in1 and
12077 out0/out1 swaps with std::swap, removed x variable.
12078 (arm_evpc_neon_vtrn): Replaced in0/int1 and
12079 out0/out1 swaos with std::swap, removed x variable.
12080 (arm_expand_vec_perm_const_1): Replaced
12081 d->op0/d->op1 swap with std::swap, removed x variable.
12082 (arm_evpc_neon_vuzp): Replaced in0/in1 and
12083 out0/out1 swaps with std::swap, removed x variable.
12085 2015-09-21 Jonathan Yong <10walls@gmail.com>
12087 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
12088 sysroot/usr/lib/32api for additional win32 libraries,
12089 fixes failing Cygwin bootstrapping.
12091 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
12093 * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
12095 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
12098 * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
12099 (*mov_t_msb_neg): Rewrite negc pattern.
12101 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
12103 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
12104 immediate generation code.
12106 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
12108 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
12109 redundant immediate generation code.
12111 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
12113 * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
12114 (AARCH64_NUM_BITMASKS): Remove.
12115 (aarch64_bitmasks_cmp): Remove.
12116 (aarch64_build_bitmask_table): Remove.
12118 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
12120 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
12121 slow immediate matching loops with a faster algorithm.
12123 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
12125 * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
12128 2015-09-20 Jeff Law <law@redhat.com>
12130 PR tree-optimization/47679
12131 * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
12132 * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
12133 * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
12134 (thread_through_normal_block): Use record_temporary_equivalences.
12136 2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
12138 * coretypes.h (gimple): Change typedef to be a forward declaration.
12139 * gimple.h (gimple_statement_base): rename to gimple.
12140 * (all functions and types using gimple): Adjust.
12141 * *.[ch]: Likewise.
12143 2015-09-19 Andrew Dixie <andrewd@gentrack.com>
12144 David Edelsohn <dje.gcc@gmail.com>
12146 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
12147 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
12148 (EH_FRAME_THROUGH_COLLECT2): Define.
12149 (EH_TABLES_CAN_BE_READ_ONLY): Define.
12150 (ASM_OUTPUT_DWARF_PCREL): Define.
12151 (ASM_OUTPUT_DWARF_DATAREL): Define.
12153 2015-09-19 John David Anglin <danglin@gcc.gnu.org>
12155 * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
12158 2015-09-18 Jeff Law <law@redhat.com>
12160 PR tree-optimization/47679
12161 * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped. Move
12163 (dom_opt_dom_walker): New private member holding the avail_exprs_stack
12164 object. Update constructor.
12165 (pass_dominator::execute): Corresponding chagnes to declaration
12166 and initialization of avail_exprs_stack. Update constructor call
12167 for dom_opt_dom_walker object.
12168 (lookup_avail_expr, record_cond): Accept additional argument. Pass
12169 it down to children as needed.
12170 (record_equivalences_from_incoming_edge): Likewise.
12171 (eliminate_redundant_computations): Likewise.
12172 (record_equivalences_from_stmt): Likewise.
12173 (simplify_stmt_for_jump_threading): Likewise.
12174 (record_temporary_equivalences): Likewise.
12175 (optimize_stmt): Likewise.
12176 (dom_opt_dom_walker::thread_across_edge): Update access to
12177 avail_exprs_stack object and pass it to children as needed.
12178 (dom_opt_dom_walker::before_dom_children): Similarly.
12179 (dom_opt_dom_walker::after_dom_children): Similarly.
12180 * tree-ssa-threadedge.c (pfn_simplify): New typedef.
12181 (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
12182 Add avail_expr_stack argument. Pass it to children as needed.
12183 (dummy_simplify): Likewise.
12184 (simplify_control_stmt_condition): Likewise.
12185 (thread_around_empty_blocks): Likewise.
12186 (thread_through_normal_block): Likewise.
12187 (thread_across_edge): Likewise.
12188 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
12189 * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
12191 PR tree-optimization/47679
12192 * tree-ssa-dom.c (const_and_copies): No longer file scoped. Move
12194 (dom_opt_dom_walker): New private member holding the const_and_copies
12195 object. Update constructor.
12196 (pass_dominator::execute): Corresponding changes to declaration
12197 and initialization of const_and_copies. Update constructor call
12198 for the dom_opt_dom_walker object.
12199 (record_temporary_equivalences): Accept const_and_copies argument
12200 pass it down to children as needed.
12201 (record_equality): Likewise.
12202 (record_equivalences_from_incoming_edge): Likewise.
12203 (cprop_into_successor_phis, optimize_stmt): Likewise.
12204 (eliminate_redundant_computations): Likewise.
12205 (dom_opt_dom_walker::thread_across_edge): Update access to
12206 const_and_copies object and pass it to children as needed.
12207 (dom_opt_dom_walker::before_dom_children): Similarly.
12208 (dom_opt_dom_walker::after_dom_children): Similarly.
12210 PR tree-optimization/47679
12211 * tree-ssa-dom.c (avail_exprs): No longer file scoped. Bury
12212 it into the avail_exprs_stack class.
12213 (pass_dominator::execute): Corresponding changes to declaration
12214 and initialization of avail_exprs. Pass avail_exprs to
12215 dump_dominator_optimization_stats.
12216 (record_cond): Extract avail_exprs from avail_exprs_stack.
12217 (lookup_avail_expr): Similarly.
12218 (htab_staticstics): Remove unnecessary prototype. Move to earlier
12220 (dump_dominator_optimization_stats): Make static and prototype.
12221 Add argument for the hash table to dump.
12222 (debug_dominator_optimization_stats): Remove.
12223 * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
12225 (debug_dominator_optimization_stats): Similarly.
12226 * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
12227 "void" in prototype for pop_to_marker method. Add accessor method
12228 for the underlying avail_exprs table.
12230 * tree-ssa-threadedge.c: Remove trailing whitespace.
12232 2014-09-18 John David Anglin <danglin@gcc.gnu.org>
12234 * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
12236 (pa_ldil_cint_p): Likewise.
12237 * config/pa/pa.c (pa_cint_ok_for_move): likewise.
12238 (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
12240 * config/pa/pa.md: Likewise.
12242 2015-09-18 David Malcolm <dmalcolm@redhat.com>
12244 * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
12245 * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
12246 (diagnostic_show_locus): Likewise.
12247 (diagnostic_print_caret_line): Likewise.
12248 * diagnostic-show-locus.c: New file.
12250 2015-09-18 David Edelsohn <dje.gcc@gmail.com>
12252 * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
12253 "back" parameter. Declare label in #if block.
12255 2015-09-18 Uros Bizjak <ubizjak@gmail.com>
12257 PR middle-end/67619
12258 * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
12259 the address to a register.
12261 2015-09-18 Jeff Law <law@redhat.com>
12263 PR tree-optimization/47679
12264 * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
12265 * tree-ssa-dom.c: Remove unnecessary header includes.
12266 (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
12267 (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
12268 (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
12269 (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
12270 (pass_phi_only_cprop::execute): Likewise.
12271 (make_pass_phi_only_cprop): Likewise.
12272 * tree-ssa-phionlycprop.c: New file with moved code. Eliminate
12273 uses of file scoped statics by passing the required objects
12274 as parameters wherever needed.
12276 2015-09-18 Andrew Dixie <andrewd@gentrack.com>
12277 David Edelsohn <dje.gcc@gmail.com>
12279 * defaults.h (EH_FRAME_SECTION_NAME): Depend on
12280 EH_FRAME_THROUGH_COLLECT2.
12281 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
12283 * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
12284 even if EH_FRAME_SECTION_NAME is undefined. Restrict special
12285 collect2 labels to EH_FRAME_THROUGH_COLLECT2.
12286 * except.c (switch_to_exception_section): Use a read-only section
12287 even if EH_FRAME_SECTION_NAME is undefined.
12288 * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
12289 * collect2.c (write_c_file_stat): Provide dbase on AIX.
12290 (scan_prog_file): Don't export __dso_handle nor
12291 __gcc_unwind_dbase.
12292 * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
12293 (EH_TABLES_CAN_BE_READ_ONLY): Define.
12294 (ASM_OUTPUT_DWARF_PCREL): Define.
12295 (ASM_OUTPUT_DWARF_DATAREL): Define.
12296 (EH_FRAME_THROUGH_COLLECT2): Define.
12297 (EH_FRAME_IN_DATA_SECTION): Delete.
12298 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
12299 * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
12301 (rs6000_asm_output_dwarf_datarel): Declare.
12302 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
12303 (rs6000_aix_asm_output_dwarf_datarel): New.
12304 (rs6000_xcoff_asm_init_sections): Don't set exception_section.
12305 * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
12306 (EH_FRAME_THROUGH_COLLECT2): Define.
12307 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
12308 (EH_FRAME_THROUGH_COLLECT2): Define.
12309 (EH_TABLES_CAN_BE_READ_ONLY): Define.
12310 * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
12311 (EH_FRAME_THROUGH_COLLECT2): New.
12312 (ASM_OUTPUT_DWARF_DATAREL): New.
12313 * doc/tm.texi: Regenerate.
12315 2015-09-18 Richard Biener <rguenther@suse.de>
12317 * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
12318 we're in early phase.
12319 (schedule_generic_params_dies_gen): Likewise.
12320 (gen_remaining_tmpl_value_param_die_attribute): Do only as much
12321 work as possible, retaining unhandled cases.
12322 (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
12323 clear out generic_type_instances at the end.
12324 (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
12325 (dwarf2out_early_finish): ... here. Do most of
12326 gen_remaining_tmpl_value_param_die_attribute here.
12328 2015-09-18 Alan Lawrence <alan.lawrence@arm.com>
12330 PR tree-optimization/67283
12331 * tree-sra.c (type_consists_of_records_p): Rename to...
12332 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
12333 (completely_scalarize_record): Rename to...
12334 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
12335 (scalarize_elem): New.
12336 (analyze_all_variable_accesses): Follow renamings.
12338 2015-09-18 Richard Biener <rguenther@suse.de>
12340 * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
12343 2015-09-18 Richard Biener <rguenther@suse.de>
12345 PR tree-optimization/66142
12346 * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
12347 treat MEM[&x] and x the same.
12348 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
12349 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
12350 when we simplified sth.
12351 (vn_reference_maybe_forwprop_address): Likewise.
12352 (valueize_refs_1): When we simplified through
12353 vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
12354 set valueized_anything to true.
12355 (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
12356 one ref kills the other instead of just a offset-based test.
12357 * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
12358 for the operand_equal_p test to compare bases and also compare
12361 2015-09-17 Christian Bruel <christian.bruel@st.com>
12363 * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
12365 2015-09-17 Richard Henderson <rth@redhat.com>
12368 * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
12369 pointers that encode the alignment of the object.
12371 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
12373 PR rtl-optimization/66790
12374 * df-problems.c (LIVE): Amend documentation.
12376 2015-09-17 Richard Sandiford <richard.sandiford@arm.com>
12378 * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
12380 (GTFILES): Replace optabs.c with optabs-libfunc.c.
12381 * genopinit.c (main): Add an include guard to insn-opinit.h.
12382 Protect the rtx_code parts with NUM_RTX_CODE.
12383 * optabs.h: Split parts out to...
12384 * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
12385 * optabs.c: Split parts out to...
12386 * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
12387 * cilk-common.c: Include optabs-query.h rather than optabs.h.
12388 * fold-const.c: Likewise.
12389 * target-globals.c: Likewise.
12390 * tree-if-conv.c: Likewise.
12391 * tree-ssa-forwprop.c: Likewise.
12392 * tree-ssa-loop-prefetch.c: Likewise.
12393 * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
12394 Remove unncessary include files.
12395 * tree-ssa-phiopt.c: Likewise.
12396 * tree-ssa-reassoc.c: Likewise.
12397 * tree-switch-conversion.c: Likewise.
12398 * tree-vect-data-refs.c: Likewise.
12399 * tree-vect-generic.c: Likewise.
12400 * tree-vect-loop.c: Likewise.
12401 * tree-vect-patterns.c: Likewise.
12402 * tree-vect-slp.c: Likewise.
12403 * tree-vect-stmts.c: Likewise.
12404 * tree-vrp.c: Likewise.
12405 * toplev.c: Include optabs-query.h and optabs-libfuncs.h
12406 rather than optabs.h.
12407 * expr.c: Include optabs-tree.h.
12408 * function.c: Likewise.
12410 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
12412 PR middle-end/65958
12413 * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
12414 * config/arm/arm-protos.h (output_probe_stack_range): Declare.
12415 * config/arm/arm.c: Include common/common-target.h.
12416 (use_return_insn): Return 0 if the static chain register was saved
12417 above a non-APCS frame.
12418 (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
12419 (struct scratch_reg): New.
12420 (get_scratch_register_on_entry): New function.
12421 (release_scratch_register_on_entry): Likewise.
12422 (arm_emit_probe_stack_range): Likewise.
12423 (output_probe_stack_range): Likewise.
12424 (arm_expand_prologue): Factor out code dealing with the IP register
12425 for nested function and adjust it for stack checking.
12426 Invoke arm_emit_probe_stack_range if static builtin stack checking
12428 (thumb1_expand_prologue): Sorry out if static builtin stack checking
12430 (arm_expand_epilogue): Add the saved static chain register, if any, to
12431 the amount of pre-pushed registers to pop.
12432 (arm_frame_pointer_required): Return true if static stack checking is
12433 enabled and we want to catch the exception with the EABI unwinder.
12434 * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
12435 (UNSPEC_PROBE_STACK_RANGE): Likewise.
12436 * config/arm/arm.md (probe_stack): New insn.
12437 (probe_stack_range): Likewise.
12439 2015-09-17 Richard Biener <rguenther@suse.de>
12441 * genmatch.c (parser::parse_expr): Improve error message
12442 for mis-placed flags.
12444 2015-09-17 Richard Biener <rguenther@suse.de>
12446 * passes.c (rest_of_decl_compilation): Always call early_global_decl
12447 debug hook when we created a varpool node.
12448 * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
12449 dwarf2out_early_global_decl, when not just add location or
12450 value attributes to existing DIEs.
12452 2015-09-17 James Greenhalgh <james.greenhalgh@arm.com>
12454 * config/aarch64/aarch64.md (copysigndf3): New.
12455 (copysignsf3): Likewise.
12457 2015-09-17 David S. Miller <davem@davemloft.net>
12459 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
12460 * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
12461 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
12462 (HARD_REGNO_CALLER_SAVE_MODE): Define.
12463 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
12464 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
12465 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
12466 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
12467 provide when flag_pic.
12469 2015-09-17 Kaz Kojima <kkojima@gcc.gnu.org>
12471 * config/sh/sh.c (label_ref_list_d_pool): Adjust to
12472 object_allocator change.
12474 2015-09-17 Bin Cheng <bin.cheng@arm.com>
12476 PR tree-optimization/66388
12477 * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
12478 (dump_iv): Dump no_overflow information.
12479 (alloc_iv): Initialize new field for struct iv.
12480 (mark_bivs): Count number of no_overflow bivs.
12481 (find_deriving_biv_for_expr, record_biv_for_address_use): New
12483 (idx_find_step): Call new functions above.
12484 (add_candidate_1, add_candidate): New paramter.
12485 (add_iv_candidate_for_biv): Add sizetype cand for BIV.
12486 (get_computation_aff): Simplify convertion of cand for BIV.
12487 (get_computation_cost_at): Step cand's base if necessary.
12489 2015-09-17 Bin Cheng <bin.cheng@arm.com>
12491 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
12493 (tree_simplify_using_condition): Ditto.
12494 (simplify_using_initial_conditions): Ditto.
12495 (loop_exits_before_overflow): Pass new argument to function
12496 simplify_using_initial_conditions. Remove case for type conversions
12498 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
12500 * tree-scalar-evolution.c (simple_iv): Simplify type conversions
12501 in iv base using loop initial conditions.
12503 2015-09-16 Jeff Law <law@redhat.com>
12505 PR tree-optimization/47679
12506 * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
12507 (free_all_edge_infos): Use it.
12508 (allocate_edge_info): Free preexisting edge info data.
12509 (pass_dominator::execute): Set up initial edge info structures.
12510 (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
12511 thread_across_edge.
12512 * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
12513 If non-null, then push/pop markers appropriately.
12514 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
12515 * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
12516 thread-across_edge.
12518 2015-09-16 James Bowman <james.bowman@ftdichip.com>
12520 * config/ft32/ft32.c: Fix the memory address space predicate.
12522 2015-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
12525 * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
12526 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
12528 2015-09-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
12530 * toplev.h (check_global_declaration): Remove declaration.
12531 * toplev.c (check_global_declaration): Move to ...
12532 * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
12533 (analyze_functions): Update call.
12535 2015-09-16 David S. Miller <davem@davemloft.net>
12537 * lra-constraints.c (simplify_operand_subreg): Do not assume that
12538 lowpart of a SUBREG has offset zero.
12540 2015-09-16 Jeff Law <law@redhat.com>
12542 PR tree-optimization/47679
12543 * tree-ssa-dom.c (enum expr_kind): Moved from here to
12544 tree-ssa-scopedtables.h.
12545 (struct hashable_expr, class expr_hash_elt): Likewise.
12546 (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
12547 Move associated methods into tree-ssa-scopedtables.c.
12548 (avail_expr_hash, initialize_expr_from_cond): Similarly.
12549 (hashable_expr_equal_p, add_expr_commutative): Likewise.
12550 (add_hashable_expr): Likewise.
12551 (record_cond): Delete element directly.
12552 * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
12553 private copy ctor and assignment operator methods.
12554 (expr_elt_hasher): Inline trivial methods.
12555 (initialize_expr_from_cond): Prototype.
12556 * tree-ssa-scopedtables.c: Add necessary includes, functions and
12557 methods that were previously in tree-ssa-dom.c. Improve various
12560 2015-09-16 Paolo Carlini <paolo.carlini@oracle.com>
12562 * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
12564 2015-09-16 Segher Boessenkool <segher@kernel.crashing.org>
12567 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
12570 2015-09-16 Richard Biener <rguenther@suse.de>
12572 PR middle-end/67253
12573 * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
12574 location of possibly shared trees.
12576 2015-09-16 Richard Biener <rguenther@suse.de>
12578 PR middle-end/67271
12579 * fold-const.c (native_encode_expr): Bail out on bogus offsets.
12581 2015-09-16 Eric Botcazou <ebotcazou@adacore.com>
12583 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
12584 offset and size computations instead of HOST_WIDE_INT.
12586 2015-09-16 Richard Biener <rguenther@suse.de>
12588 PR middle-end/67442
12589 * fold-const.c (extract_muldiv_1): Properly extend multiplication
12590 result before builting a tree via wide_int_to_tree.
12592 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
12594 * Makefile.in: Add memory-block.cc
12595 (pool_allocator::initialize): Use fixed block size.
12596 (pool_allocator::release): Use memory_block_pool.
12597 (pool_allocator::allocate): Likewise.
12598 * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
12600 * cfg.c (initialize_original_copy_tables): Likewise.
12601 * cselib.c (elt_list_pool, elt_loc_list_pool,
12602 cselib_val_pool): Likewise.
12603 * df-problems.c (df_chain_alloc): Likewise.
12604 * df-scan.c (df_scan_alloc): Likewise.
12605 * dse.c (cse_store_info_pool, rtx_store_info_pool,
12606 read_info_type_pool, insn_info_type_pool, bb_info_pool,
12607 group_info_pool, deferred_change_pool): Likewise.
12608 * et-forest.c (et_nodes, et_occurrences): Likewise.
12609 * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
12610 ipcp_agg_lattice_pool): Likewise.
12611 * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
12612 * ipa-profile.c (histogram_pool): Likewise.
12613 * ipa-prop.c (ipa_refdesc_pool): Likewise.
12614 * ira-build.c (live_range_pool, allocno_pool, object_pool,
12615 initiate_cost_vectors, pref_pool, copy_pool): Likewise.
12616 * ira-color.c (update_cost_record_pool): Likewise.
12617 * lra-lives.c (lra_live_range_pool): Likewise.
12618 * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
12619 * memory-block.cc: New file.
12620 * memory-block.h: New file.
12621 * regcprop.c (queued_debug_insn_change_pool): Use common block size.
12622 * sched-deps.c (sched_deps_init): Likewise.
12623 * sel-sched-ir.c (sched_lists_pool): Likewise.
12624 * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
12625 * tree-sra.c (access_pool): Likewise.
12626 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
12627 * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
12628 * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
12629 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
12630 * tree-ssa-strlen.c (strinfo_pool): Likewise.
12631 * tree-ssa-structalias.c (variable_info_pool): Likewise.
12632 * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
12633 location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
12635 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
12637 * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
12639 (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
12642 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
12644 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
12645 to pass TLS call argument, according to current ABI.
12646 * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
12647 callx0 for TLS call, according to current ABI.
12649 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
12651 * tree-eh.c (lower_try_finally_dup_block): Clear location information
12652 on stack restore statements.
12653 (decide_copy_try_finally): Do not consider a stack restore statement as
12654 coming from sources.
12656 2015-09-15 Uros Bizjak <ubizjak@gmail.com>
12658 * config/alpha/alpha.c (alpha_expand_block_clear): Use
12659 HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
12661 2015-09-15 Jeff Law <law@redhat.com>
12663 PR tree-optimization/47679
12664 * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
12665 methods and private members.
12666 (avail_exprs_stack): Similarly. Change type of global
12667 from a pair of expr_hash_elt_t to the new class.
12668 (expr_elt_hasher::hash): Corresponding changes.
12669 (expr_elt_hasher::equal): Similarly.
12670 (avail_expr_hash): Similarly.
12671 (pass_dominator::execute): Similarly.
12672 (dom_opt_dom_walker::thread_across_edge): Similarly.
12673 (record_cond): Similarly.
12674 (dom_opt_dom_walker::before_dom_children): Similarly.
12675 (dom_opt_dom_walker::after_dom_children): Similarly.
12676 (lookup_avail_expr): Likewise.
12677 (initialize_hash_element): Now a expr_hash_elt constructor.
12678 (initialize_hash_element_from_expr): Similarly.
12679 (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
12680 (free_expr_hash_elt): Call dtor for the element.
12681 (remove_local_expressions_from_table): Now the "pop_to_marker"
12682 method in the available_exprs_stack class.
12683 (avail_expr_stack::record_expr): Method factored out.
12684 (print_expr_hash_elt): Now a method in the expr_hash_elt class.
12686 (hashable_expr_equal_p): Fix formatting.
12688 2015-09-15 David Malcolm <dmalcolm@redhat.com>
12690 * input.h (location_get_source_line): Drop "expanded_location"
12691 param in favor of a file and line number.
12692 * input.c (location_get_source_line): Likewise.
12693 (dump_location_info): Update for change in signature of
12694 location_get_source_line.
12695 * diagnostic.c (diagnostic_print_caret_line): Likewise.
12697 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
12699 * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
12700 Bump to 4KB for SJLJ exceptions.
12701 (STACK_CHECK_PROTECT): Likewise. Bump to 8KB for SJLJ exceptions.
12702 * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
12703 * doc/tm.texi: Regenerate.
12705 2015-09-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12707 * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
12708 of -1 when shifting. Change type of val to unsigned HOST_WIDE_INT.
12711 2015-09-15 Richard Biener <rguenther@suse.de>
12713 PR tree-optimization/67470
12714 * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
12715 structure for PHI hoisting by inserting a forwarder block
12718 2015-09-15 Christian Bruel <christian.bruel@st.com>
12720 * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
12721 (arm_option_print): New function.
12723 2015-09-15 Christian Bruel <christian.bruel@st.com>
12726 * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
12727 * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
12728 Remove flags parameter.
12729 * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
12730 (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
12731 (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
12732 (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
12733 (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
12734 (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
12735 (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
12736 * config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
12738 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
12740 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
12742 * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
12743 AARCH64_VALID_SIMD_DREG_MODE.
12745 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
12747 * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
12748 aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
12749 (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
12750 (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
12751 aarch64_ld4_lane<mode>): Combine together, making...
12752 (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
12753 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
12754 aarch64_st4_lane<mode>): Combine together, making...
12755 (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
12756 * config/aarch64/iterators.md (nregs): Add comment.
12758 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
12760 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
12761 Change operand mode from <V_TWO_ELEM> to BLK.
12762 (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
12763 (aarch64_vec_store_lanesoi_lane<mode): Likewise
12764 (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
12765 (aarch64_ld2_lane<mode>): Likewise.
12766 (aarch64_st2_lane<VQ:mode>): Likewise.
12767 * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
12769 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
12771 * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
12772 Change operand mode from <V_FOUR_ELEM> to BLK.
12773 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
12774 (aarch64_vec_store_lanesxi_lane<mode): Likewise.
12775 (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
12776 (aarch64_ld4_lane<mode>): Likewise.
12777 (aarch64_st4_lane<mode>): Likewise.
12778 * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
12780 2015-09-15 Richard Biener <rguenther@suse.de>
12782 PR middle-end/67563
12783 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
12784 transfer EH info from old to new stmt.
12785 (replace_call_with_value): Likewise.
12786 (replace_call_with_call_and_fold): Likewise.
12787 (gimple_fold_builtin_memory_op): Likewise.
12788 (gimple_fold_builtin_memset): Likewise.
12789 (gimple_fold_builtin_stpcpy): Likewise.
12790 (gimple_fold_call): Likewise.
12792 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
12794 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
12796 * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
12797 (aarch64_simd_intEI_type_node): Likewise.
12798 (aarch64_simd_builtin_std_type): Remove EImode case.
12799 (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
12800 * config/aarch64/aarch64-modes.def: Remove EImode.
12802 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
12804 * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
12805 Change operand mode from <V_THREE_ELEM> to BLK.
12806 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
12807 (aarch64_vec_store_lanesci_lane<mode>): Likewise.
12808 (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
12809 (aarch64_ld3_lane<mode>): Likewise.
12810 (aarch64_st3_lane<mode>): Likewise.
12811 * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
12813 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
12815 * config/aarch64/aarch64-simd.md
12816 (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
12817 Change all TImode operands to BLKmode.
12818 (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
12819 Change all EImode operands to BLKmode.
12820 (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
12821 Change all OImode operands to BLKmode.
12823 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
12824 and call set_mem_size.
12825 (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
12827 * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
12829 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
12831 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
12833 (aarch64_vec_store_lanesoi_lane<mode>): ...this.
12835 (vec_store_lanesci_lane<mode>): Rename to...
12836 (aarch64_vec_store_lanesci_lane<mode>): ...this.
12838 (vec_store_lanesxi_lane<mode>): Rename to...
12839 (aarch64_vec_store_lanesxi_lane<mode>): ...this.
12841 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
12842 aarch64_st4_lane<mode>): Follow renaming.
12844 2015-09-15 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12846 * config/s390/s390.c (s390_const_operand_ok): Add missing
12849 2015-09-15 Richard Biener <rguenther@suse.de>
12852 * lto-streamer.h (lto_location_cache::current_sysp): Properly
12854 * lto-streamer-out.c (clear_line_info): Likewise.
12856 2015-09-15 Richard Biener <rguenther@suse.de>
12858 * doc/match-and-simplify.texi: Fix wording.
12860 2015-09-15 Bin Cheng <bin.cheng@arm.com>
12862 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
12863 unnecessary type conversion in op1.
12865 2015-09-14 Segher Boessenkool <segher@kernel.crashing.org>
12867 * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
12868 (dup_block_and_redirect): Delete function.
12869 (can_dup_for_shrink_wrapping): New function.
12870 (fix_fake_fallthrough_edge): New function.
12871 (try_shrink_wrapping): Rewrite function.
12872 (convert_to_simple_return): Call fix_fake_fallthrough_edge.
12874 2015-09-14 Rich Felker <dalias@libc.org>
12876 * configure.ac: Change target pattern for sh TLS support
12877 test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
12878 * configure: Regenerate.
12880 2015-09-14 Jeff Law <law@redhat.com>
12882 PR tree-optimization/47679
12883 * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
12884 type rather than void *.
12886 2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
12889 * diagnostic.c (diagnostic_initialize): Do not set
12890 some_warnings_are_errors.
12891 (diagnostic_finish): Use DK_WERROR count instead.
12892 (diagnostic_report_diagnostic): Do not set
12893 some_warnings_are_errors.
12894 * diagnostic.h (struct diagnostic_context): Remove
12895 some_warnings_are_errors.
12897 2015-09-14 Richard Sandiford <richard.sandiford@arm.com>
12899 * config/sparc/predicates.md (const_all_ones_operand): Use
12900 CONSTM1_RTX to simplify definition.
12902 2015-09-14 Oleg Endo <olegendo@gcc.gnu.org>
12905 * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
12908 2015-09-14 Chung-Lin Tang <cltang@codesourcery.com>
12910 * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
12911 OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
12912 OPT_fshow_column to handled saved option cases.
12913 (append_compiler_options): Do not skip the above added options.
12915 2015-09-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12918 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
12919 nopcrelative_literal_loads.
12920 (aarch64_classify_address): Likewise.
12921 (aarch64_constant_pool_reload_icode): Define.
12922 (aarch64_secondary_reload): Handle secondary reloads for
12924 (aarch64_override_options): Handle nopcrelative_literal_loads.
12925 (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
12926 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
12928 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
12929 * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
12930 * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
12932 * doc/invoke.texi (mpc-relative-literal-loads): Document.
12934 2015-09-14 John David Anglin <danglin@gcc.gnu.org>
12936 PR middle-end/67401
12937 * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
12938 sync_compare_and_swap_optab libcall to target_oval.
12940 2015-09-14 Marek Polacek <polacek@redhat.com>
12942 * rtlanal.c (split_double): Cast to unsigned when shifting a negative
12944 * sched-int.h (UNKNOWN_DEP_COST): Likewise.
12946 2015-09-11 Mark Wielaard <mjw@redhat.com>
12949 * toplev.c (check_global_declaration): Check and use
12950 warn_unused_const_variable.
12951 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
12952 (-Wunused-variable): Remove non-constant. For C implies
12953 -Wunused-const-variable.
12954 (-Wunused-const-variable): New.
12956 2015-09-14 Richard Biener <rguenther@suse.de>
12958 * doc/match-and-simplify.texi: Update for changed syntax
12959 of inner ifs and the new switch expression.
12961 2015-09-14 Yuri Rumyantsev <ysrumyan@gmail.com>
12963 * config/i386/haswell.md: New file describing Haswell pipeline.
12964 * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
12965 haswell-like processors.
12966 (ix86_reassociation_width): Increase reassociation width for 64-bit
12967 Haswell processor family.
12968 * config/i386/i386.md: Introduce haswell cpu and include new md file.
12970 2015-09-14 Richard Biener <rguenther@suse.de>
12972 * doc/match-and-simplify.texi: Fixup some formatting issues
12973 and document the 's' flag.
12975 2015-09-13 Olivier Hainque <hainque@adacore.com>
12976 Eric Botcazou <ebotcazou@adacore.com>
12978 * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
12979 gr6 as possible values, defaulting to gr5. Set target_cpu_default2.
12980 * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
12981 (TARGET_CPU_gr5): Likewise.
12982 (TARGET_CPU_gr6): Likewise.
12983 (MULTILIB_DEFAULTS): Likewise.
12984 * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
12985 for mcpu=gr5 and mcpu=gr6.
12986 (MULTILIB_DIRNAMES): Adjust accordingly.
12988 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12990 * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
12991 (mem_ref_p): Likewise.
12992 (outermost_indep_loop): Adjust.
12993 (mem_ref_in_stmt): Likewise.
12994 (determine_max_movement): Likewise.
12995 (mem_ref_alloc): Likewise.
12996 (record_mem_ref_loc): Likewise.
12997 (set_ref_stored_in_loop): Likewise.
12998 (mark_ref_stored): Likewise.
12999 (gather_mem_refs_stmt): Likewise.
13000 (mem_refs_may_alias_p): Likewise.
13001 (for_all_locs_in_loop): Likewise.
13002 (struct rewrite_mem_ref_loc): Likewise.
13003 (rewrite_mem_refs): Likewise.
13004 (struct first_mem_ref_loc_1): Likewise.
13005 (first_mem_ref_loc): Likewise.
13006 (struct sm_set_flag_if_changed): Likewise.
13007 (execute_sm_if_changed_flag_set): Likewise.
13008 (execute_sm): Likewise.
13009 (hoist_memory_references):
13010 (struct ref_always_accessed): Likewise.
13011 (ref_always_accessed_p): Likewise.
13012 (refs_independent_p): Likewise.
13013 (record_dep_loop): Likewise.
13014 (ref_indep_loop_p_1): Likewise.
13015 (ref_indep_loop_p_2): Likewise.
13016 (ref_indep_loop_p): Likewise.
13017 (can_sm_ref_p): Likewise.
13018 (find_refs_for_sm): Likewise.
13019 (tree_ssa_lim_finalize): Likewise.
13021 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13023 * dwarf2out.c (dw_attr_ref): Remove typedef.
13024 (dw_line_info_ref): Likewise.
13025 (pubname_ref): Likewise.
13026 (dw_ranges_ref): Likewise.
13027 (dw_ranges_by_label_ref): Likewise.
13028 (comdat_type_node_ref): Likewise.
13030 (get_AT_low_pc): Likewise.
13031 (get_AT_hi_pc): Likewise.
13032 (get_AT_string): Likewise.
13033 (get_AT_flag): Likewise.
13034 (get_AT_unsigned): Likewise.
13035 (get_AT_ref): Likewise.
13036 (get_AT_file): Likewise.
13037 (remove_AT): Likewise.
13038 (print_die): Likewise.
13039 (check_die): Likewise.
13040 (die_checksum): Likewise.
13041 (attr_checksum_ordered): Likewise.
13042 (struct checksum_attributes): Likewise.
13043 (collect_checksum_attributes): Likewise.
13044 (die_checksum_ordered): Likewise.
13045 (same_die_p): Likewise.
13046 (is_declaration_die): Likewise.
13047 (clone_die): Likewise.
13048 (clone_as_declaration): Likewise.
13049 (copy_declaration_context): Likewise.
13050 (break_out_comdat_types): Likewise.
13051 (copy_decls_walk): Likewise.
13052 (output_location_lists): Likewise.
13053 (external_ref_hasher::hash): Likewise.
13054 (optimize_external_refs_1): Likewise.
13055 (build_abbrev_table): Likewise.
13056 (size_of_die): Likewise.
13057 (unmark_all_dies): Likewise.
13058 (size_of_pubnames): Likewise.
13059 (output_die_abbrevs): Likewise.
13060 (output_die): Likewise.
13061 (output_pubnames): Likewise.
13062 (add_ranges_num): Likewise.
13063 (add_ranges_by_labels): Likewise.
13064 (add_high_low_attributes): Likewise.
13065 (gen_producer_string): Likewise.
13066 (dwarf2out_set_name): Likewise.
13067 (new_line_info_table): Likewise.
13068 (prune_unused_types_walk_attribs): Likewise.
13069 (prune_unused_types_update_strings): Likewise.
13070 (prune_unused_types): Likewise.
13071 (resolve_addr): Likewise.
13072 (optimize_location_lists_1): Likewise.
13073 (index_location_lists): Likewise.
13074 (dwarf2out_finish): Likewise.
13076 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13078 * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
13080 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13082 * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
13083 (dump_asserts_for): Adjust.
13084 (register_new_assert_for): Likewise.
13085 (process_assert_insertions): Likewise.
13086 (insert_range_assertions): Likewise.
13088 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13090 * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
13091 and remove typedef.
13092 (new_temp_expr_table): Adjust.
13093 (free_temp_expr_table): Likewise.
13094 (version_to_be_replaced_p): Likewise.
13095 (make_dependent_on_partition): Likewise.
13096 (add_to_partition_kill_list): Likewise.
13097 (remove_from_partition_kill_list): Likewise.
13098 (add_dependence): Likewise.
13099 (finished_with_expr): Likewise.
13100 (process_replaceable): Likewise.
13101 (kill_expr): Likewise.
13102 (kill_virtual_exprs): Likewise.
13103 (mark_replaceable): Likewise.
13104 (find_replaceable_in_bb): Likewise.
13105 (find_replaceable_exprs): Likewise.
13106 (debug_ter): Likewise.
13108 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13110 * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
13111 (struct btr_user): Rename from btr_user_s.
13112 (struct btr_def): Rename from btr_def_s.
13113 (find_btr_def_group): Adjust.
13114 (add_btr_def): Likewise.
13115 (new_btr_user): Likewise.
13116 (note_other_use_this_block): Likewise.
13117 (compute_defs_uses_and_gen): Likewise.
13118 (link_btr_uses): Likewise.
13119 (build_btr_def_use_webs): Likewise.
13120 (block_at_edge_of_live_range_p): Likewise.
13121 (btr_def_live_range): Likewise.
13122 (combine_btr_defs): Likewise.
13123 (move_btr_def): Likewise.
13124 (migrate_btr_def): Likewise.
13125 (migrate_btr_defs): Likewise.
13127 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13129 * var-tracking.c (shared_hash_def): Rename to shared_hash.
13130 (shared_hash): Remove typedef.
13131 (struct dataflow_set): Adjust.
13132 (shared_hash_unshare): Likewise.
13133 (dataflow_set_merge): Likewise.
13134 (vt_initialize): Likewise.
13135 (vt_finalize): Likewise.
13137 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13139 * var-tracking.c (struct location_chain): Rename from
13140 location_chain_def.
13141 (struct variable_part): Adjust.
13142 (variable_htab_free): Likewise.
13143 (unshare_variable): Likewise.
13144 (get_init_value): Likewise.
13145 (get_addr_from_local_cache): Likewise.
13146 (drop_overlapping_mem_locs): Likewise.
13147 (val_reset): Likewise.
13148 (struct variable_union_info): Likewise.
13149 (variable_union): Likewise.
13150 (find_loc_in_1pdv): Likewise.
13151 (insert_into_intersection): Likewise.
13152 (intersect_loc_chains): Likewise.
13153 (canonicalize_loc_order_check): Likewise.
13154 (canonicalize_values_mark): Likewise.
13155 (canonicalize_values_star): Likewise.
13156 (canonicalize_vars_star): Likewise.
13157 (variable_merge_over_cur): Likewise.
13158 (remove_duplicate_values): Likewise.
13159 (variable_post_merge_new_vals): Likewise.
13160 (variable_post_merge_perm_vals): Likewise.
13161 (find_mem_expr_in_1pdv): Likewise.
13162 (dataflow_set_preserve_mem_locs): Likewise.
13163 (dataflow_set_remove_mem_locs): Likewise.
13164 (variable_part_different_p): Likewise.
13165 (onepart_variable_different_p): Likewise.
13166 (find_src_set_src): Likewise.
13167 (dump_var): Likewise.
13168 (set_slot_part): Likewise.
13169 (clobber_slot_part): Likewise.
13170 (delete_slot_part): Likewise.
13171 (vt_expand_var_loc_chain): Likewise.
13172 (emit_note_insn_var_location): Likewise.
13173 (vt_finalize): Likewise.
13175 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13177 * dse.c (store_info_t): Remove typedef.
13178 (group_info_t): Likewise.
13179 (const_group_info_t): Likewise.
13180 (deferred_change_t): Likewise.
13181 (get_group_info): Adjust.
13182 (free_store_info): Likewise.
13183 (canon_address): Likewise.
13184 (clear_rhs_from_active_local_stores): Likewise.
13185 (record_store): Likewise.
13186 (replace_read): Likewise.
13187 (check_mem_read_rtx): Likewise.
13188 (scan_insn): Likewise.
13189 (remove_useless_values): Likewise.
13190 (dse_step1): Likewise.
13191 (dse_step2_init): Likewise.
13192 (dse_step2_nospill): Likewise.
13193 (scan_stores_nospill): Likewise.
13194 (scan_reads_nospill): Likewise.
13195 (dse_step3_exit_block_scan): Likewise.
13196 (dse_step3): Likewise.
13197 (dse_step5_nospill): Likewise.
13198 (dse_step6): Likewise.
13200 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13202 * alias.c (alias_set_entry_d): Rename to alias_set_entry.
13203 (alias_set_entry): Remove typedef.
13204 (alias_set_subset_of): Adjust.
13205 (alias_sets_conflict_p): Likewise.
13206 (init_alias_set_entry): Likewise.
13207 (get_alias_set): Likewise.
13208 (new_alias_set): Likewise.
13209 (record_alias_subset): Likewise.
13211 2015-09-13 Gerald Pfeifer <gerald@pfeifer.com>
13213 * doc/install.texi (Downloading the source): Mark up
13214 contrib/download_prerequisites properly and drop leading "./".
13216 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13218 * config/arc/arc.h: Remove define of STRUCT_VALUE.
13219 * config/lm32/lm32.h: Likewise.
13220 * config/mep/mep.h: Likewise.
13221 * config/visium/visium.h: Likewise.
13222 * system.h: Poison STRUCT_VALUE macro.
13224 2015-09-12 John David Anglin <danglin@gcc.gnu.org>
13226 * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
13227 CONSTANT_P operands.
13229 2015-09-11 David S. Miller <davem@davemloft.net>
13231 * config/sparc/constraints.md: Make "U" constraint a real register
13233 * config/sparc/sparc.c (TARGET_LRA_P): Define.
13234 (D_MODES, DF_MODES): Add missing cast.
13235 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
13236 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
13237 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
13239 * config/sparc/sparc.h (PROMOTE_MODE): Define.
13240 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
13241 provide these insn when flag_pic.
13243 2015-09-11 Jeff Law <law@redhat.com>
13245 PR tree-optimization/47679
13246 * tree-ssa-dom.c (struct cond_equivalence): Update comment.
13247 * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
13248 member with m_. Update inline member functions as necessary. Add
13250 * tree-ssa-scopedtables.c: Update const_and_copies's member
13251 functions to use m_ prefix to access the stack.
13253 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
13255 * graphite-optimize-isl.c (disable_tiling): Remove.
13256 (get_schedule_for_band): Do not use disable_tiling.
13257 (get_prevector_map): Delete function.
13258 (enable_polly_vector): Remove.
13259 (get_schedule_for_band_list): Remove dead code.
13261 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
13263 * graphite-optimize-isl.c (get_tile_map): Refactor.
13264 (get_schedule_for_band): Same.
13265 (getScheduleForBand): Same.
13266 (get_prevector_map): Same.
13267 (get_schedule_for_band_list): Same.
13268 (get_schedule_map): Same.
13269 (get_single_map): Same.
13270 (apply_schedule_map_to_scop): Same.
13271 (optimize_isl): Same.
13273 2015-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13276 * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
13278 * config/aarch64/iterators.md (GPF_TF_F16): New.
13281 2015-09-10 Nathan Sidwell <nathan@acm.org>
13283 * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
13284 (nvptx_reorg): Adjust comments.
13286 2015-09-15 John David Anglin <danglin@gcc.gnu.org>
13289 * configure.ac: Check if setenv and unsetenv are declared.
13290 * configure: Rebuild.
13291 * config.in: Rebuild.
13292 * system.h: Declare setenv and unsetenv if not declared.
13294 2015-09-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13296 * config/rs6000/rs6000.c (swap_web_entry): Update preceding
13297 commentary to simplify permute mask adjustment equation.
13298 (special_handling_values): Add SH_VPERM.
13299 (const_load_sequence_p): New function.
13300 (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
13301 the mask loaded from the constant pool.
13302 (adjust_vperm): New function.
13303 (handle_special_swappables): Call adjust_vperm.
13304 (dump_swap_insn_table): Handle SH_VPERM.
13306 2015-09-10 H.J. Lu <hongjiu.lu@intel.com>
13308 * shrink-wrap.c (requires_stack_frame_p): Remove static.
13309 * shrink-wrap.h (requires_stack_frame_p): Put back.
13311 2015-09-10 Richard Sandiford <richard.sandiford@arm.com>
13313 * reload1.c (elimination_costs_in_insn): Locally turn
13314 -Wmaybe-uninitialized into a warning.
13316 2015-09-10 Segher Boessenkool <segher@kernel.crashing.org>
13318 * shrink-wrap.c (requires_stack_frame_p): Make static.
13319 (prepare_shrink_wrap): Likewise.
13320 (dup_block_and_redirect): Likewise.
13321 * shrink-wrap.h: Remove declarations of those functions.
13323 2015-09-10 Mark Wielaard <mjw@redhat.com>
13325 * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
13327 2015-09-10 Oleg Endo <olegendo@gcc.gnu.org>
13330 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
13331 missing simplify_gen_subreg.
13333 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13335 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
13336 the vector element is bigger than 64 bit.
13338 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13340 * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
13341 ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
13343 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13345 * config/s390/s390.c: Add V1TImode to constant pool modes.
13347 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13350 * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
13351 predicate. Set predicable_short_it attr to "no".
13353 2015-09-10 Jiong Wang <jiong.wang@arm.com>
13355 PR rtl-optimization/67421
13356 * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
13357 left wide shift tranformation.
13359 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
13361 * common/config/arc/arc-common.c: Remove references to A5.
13362 * config/arc/arc-opts.h: Likewise.
13363 * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
13364 * config/arc/arc.opt, config/arc/constraints.md: Likewise.
13365 * config/arc/t-arc-newlib: Likewise.
13367 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
13369 * config/arc/arc.md (length): Fix attribute length for conditional
13370 executed instructions with long immediate.
13372 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13374 * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
13375 type for second alternative.
13377 2015-09-10 Markus Trippelsdorf <markus@trippelsdorf.de>
13379 * doc/invoke.texi (Downloading GCC): Mention
13380 contrib/download_prerequisites script.
13382 2015-09-10 Jakub Jelinek <jakub@redhat.com>
13385 * gimplify.c (gimplify_omp_for): If inner stmt is not found
13386 for combined loop, assert seen_error () and return GS_ERROR.
13388 PR middle-end/67521
13389 * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
13390 if decl is already in outer->variables.
13392 PR middle-end/67517
13393 * gimplify.c (gimplify_scan_omp_clauses): Instead of
13394 asserting that decl is not specified in octx->variables,
13395 break out of the loop if it is.
13398 * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
13399 iterator is not explicitly determined, but is defined inside
13400 of the combined workshare region, handle it like if it has
13401 DECL_EXPR in OMP_FOR_PRE_BODY.
13403 2015-09-09 Nathan Sidwell <nathan@acm.org>
13405 * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
13406 (*cmp<mode>): Add assembler spacing.
13407 (setcc_int<mode>, set_cc_float<mode>): Likewise.
13408 * config/nvptx/nvptx.c (nvptx_option_override): Override debug
13410 (write_func_decl_from_insn): Refactor argument loops & comma emission.
13411 (nvptx_expand_call): Likewise.
13412 (nvptx_output_call_insn): Likewise.
13413 (nvptx_reorg_subreg): Add spacing.
13415 2015-09-09 Marek Polacek <polacek@redhat.com>
13417 PR middle-end/67512
13418 * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
13421 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
13424 * doc/invoke.texi ([Wsubobject-linkage]): Document.
13426 2015-09-09 Tom de Vries <tom@codesourcery.com>
13428 * params-list.h: Add missing copyright notice.
13430 2015-09-09 Nathan Sidwell <nathan@acm.org>
13432 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
13433 sel_truesi, not andsi.
13435 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13437 * config/arm/arm.md (*subsi3_compare0): Rename to...
13438 (subsi3_compare0): ... This.
13439 (modsi3): New define_expand.
13440 * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
13441 when operand is power of 2.
13443 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13445 * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
13446 (*neg<mode>2_compare0): Rename to...
13447 (neg<mode>2_compare0): ... This.
13448 * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
13449 Move check for speed inside the if-then-elses. Reflect
13450 CSNEG sequence in MOD by power of 2 case.
13452 2015-09-09 Alan Modra <amodra@gmail.com>
13455 * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
13456 reload replacement for PRE_MODIFY address reg.
13458 2015-09-09 Sebastian Pop <s.pop@samsung.com>
13460 PR tree-optimization/53852
13461 * config.in: Regenerate.
13462 * configure: Regenerate.
13463 * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
13464 * graphite-optimize-isl.c (optimize_isl): Stop computation when
13465 PARAM_MAX_ISL_OPERATIONS is reached.
13466 * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
13467 * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
13468 result equal to isl_stat_ok as the status now can be isl_error_quota.
13469 (subtract_commutative_associative_deps): Same.
13470 (compute_deps): Same.
13472 2015-09-08 Aditya Kumar <hiraditya@msn.com>
13473 Sebastian Pop <s.pop@samsung.com>
13475 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
13476 Return the parameter if it was saved in corresponding
13477 parameter_rename_map of the region.
13478 (copy_def): Copy def from sese region to the newly created region.
13479 (copy_internal_parameters): Copy all the internal parameters defined
13480 within a region to the newly created region.
13481 (graphite_regenerate_ast_isl): Copy parameters to the new region before
13482 translating isl to gimple.
13483 * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
13484 the loop-nest does not have any data-references.
13485 (build_graphite_scops): Create a scop only when there is at least one
13487 (contains_only_close_phi_nodes): Deleted.
13488 (print_graphite_scop_statistics): Deleted
13489 (print_graphite_statistics): Deleted
13490 (limit_scops): Deleted.
13491 (build_scops): Removed call to limit_scops.
13492 * sese.c (new_sese): Construct.
13493 (free_sese): Destruct.
13494 (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
13496 (set_rename): Pass sese region so that parameters inside the region can
13497 be added to its parameter_rename_map.
13498 (rename_uses): Pass sese region.
13499 (graphite_copy_stmts_from_block): Do not copy parameters that have been
13500 generated in the header of the scop. For each SSA_NAME in the
13501 parameter_rename_map rename its usage.
13502 (invariant_in_sese_p_rec): Return false if tree t is defined outside
13504 (scalar_evolution_in_region): If the tree t is invariant just return t.
13505 * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
13506 struct sese to keep track of all the parameters which need renaming.
13507 * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
13509 * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
13511 2015-09-08 Tom de Vries <tom@codesourcery.com>
13513 * Makefile.in (generated_files): Add params.list.
13514 (params.list, s-params.list): Add rule.
13515 * params.h (enum compiler_param): Include params-list.h. Move define
13516 DEFPARAM, include params.def and undef DEFPARAM ...
13517 * params-list.h: ... here. New file.
13519 2015-09-08 David Malcolm <dmalcolm@redhat.com>
13521 * pretty-print.h (printer_fn): Fix typo in comment.
13523 2015-09-07 Jeff Law <law@redhat.com>
13525 * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
13527 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13529 * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
13530 (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
13531 (arm_neon_fp16_hw): New.
13533 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13535 * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
13536 UNITS_PER_WORD >= 4.
13538 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13540 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
13541 aarch64_simd_vec_unpacks_hi_<mode>): New insn.
13542 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
13543 (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
13544 (aarch64_float_extend_lo_v2df): Rename to...
13545 (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
13547 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
13548 (float_extend_lo): Add v4sf.
13550 * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
13551 * config/aarch64/iterators.md (VQ_HSF): New iterator.
13552 (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
13553 (Vwide): New mode_attr.
13555 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13557 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
13558 aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
13559 aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
13560 vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
13561 V4HF and V8HF variants to iterator.
13563 * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
13565 * config/aarch64/iterators.md (VDQF_F16): New.
13566 (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
13568 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13570 * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
13571 vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
13572 vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
13573 vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
13574 vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
13575 vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
13576 vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
13577 vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
13578 vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
13579 vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
13580 vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
13581 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
13582 vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
13583 vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
13584 vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
13585 vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
13586 vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
13587 vld1q_dup_f16): New.
13589 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13591 * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
13592 Reparameterize to...
13593 (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
13594 (aarch64_float_truncate_hi_v4sf): Reparameterize to...
13595 (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
13597 * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
13599 (float_truncate_lo_): Use BUILTIN_VDF iterator.
13601 * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
13603 * config/aarch64/iterators.md (VDF, Vdtype): New.
13604 (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
13606 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13608 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
13609 * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
13610 (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
13611 Add __builtin_aarch64_simd_hf.
13612 * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
13613 float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
13614 vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
13615 vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
13616 vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
13617 vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
13618 vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
13619 vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
13620 vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
13622 * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
13623 V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
13624 (VDC, Vdbl): Add V4HF.
13626 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13628 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
13629 V4HFmode and V8HFmode.
13630 (aarch64_split_simd_move): Add case for V8HFmode.
13631 * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
13632 (aarch64_simd_builtin_std_type): Handle HFmode.
13633 (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
13635 * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
13636 aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
13637 (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
13639 * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
13642 * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
13643 * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
13645 (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
13646 vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
13647 vst1q_lane_f16): New.
13648 * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
13649 (VALLDI_F16, VALL_F16): New.
13650 (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
13651 Add cases for V4HF and V8HF.
13652 (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
13654 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13656 * config/arm/arm-builtins.c (VAR11, VAR12): New.
13657 * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
13658 vld4_dup): Add v4hf variant.
13659 (vget_high, vget_low): Add v8hf variant.
13660 (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
13661 vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
13662 v4hf and v8hf variants.
13664 * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
13666 (V_DOUBLE): Add case for V4HF.
13668 (V_HALF): Add case for V8HF.
13669 (VDQX): Add V4HF, V8HF.
13670 (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
13671 V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
13673 * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
13674 neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
13675 vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
13676 neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
13677 neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
13678 neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
13679 vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
13680 neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
13681 neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
13683 (neon_vcreate, neon_vreinterpretv8qi<mode>,
13684 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
13685 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
13686 Change VDX to VD_RE.
13688 (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
13689 neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
13690 Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
13692 * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
13693 float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
13694 vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
13695 vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
13696 vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
13697 vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
13698 vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
13699 vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
13700 vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
13702 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13704 * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
13705 vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
13706 vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
13707 vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
13708 vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
13709 vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
13710 vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
13711 vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
13712 vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
13713 vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
13716 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13718 * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
13720 * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
13722 * config/arm/arm-builtins.c (v8hf_UP): New.
13723 (arm_init_simd_builtin_types): Initialise Float16x8_t.
13725 * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
13727 * config/arm/arm_neon.h (float16x8_t): New typedef.
13729 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13731 * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
13732 vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
13733 vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
13734 vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
13735 vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
13736 vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
13737 vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
13738 vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
13739 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
13740 vreinterpret_u16_f16, vreinterpret_u32_f16): New.
13742 2015-09-07 Ilya Verbin <ilya.verbin@intel.com>
13744 * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
13745 non-alphanumeric characters in the symbol name.
13747 2015-09-07 Marek Polacek <polacek@redhat.com>
13749 PR inline-asm/67448
13750 * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
13753 2015-09-07 Marek Polacek <polacek@redhat.com>
13755 * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
13757 2015-09-04 Paolo Bonzini <bonzini@gnu.org>
13759 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
13762 2015-09-04 Jakub Jelinek <jakub@redhat.com>
13764 PR middle-end/67452
13765 * tree-ssa-live.c: Include cfgloop.h.
13766 (remove_unused_locals): Clear loop->simduid if simduid is about
13767 to be removed from cfun->local_decls.
13769 2015-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
13772 * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
13775 2015-09-04 Tom de Vries <tom@codesourcery.com>
13777 * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
13779 2015-09-04 Jeff Law <law@redhat.com>
13781 * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
13782 unnecessary constructor. It's now trivial and implemented inside...
13783 * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
13784 constructor. Add comments to various methods. Remove unused
13786 * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
13787 * tree-vrp.c (identify_jump_threads): Likewise.
13788 * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
13789 indentation issues.
13790 (thread_across_edge): Similarly.
13791 (record_temporary_equivalences_from_stmts_at_dest): Remove unused
13792 arguments in constructor call.
13794 2015-09-04 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
13796 * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
13797 temp path contains a '-'.
13799 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
13800 Petr Murzin <petr.murzin@intel.com>
13801 Kirill Yukhin <kirill.yukhin@intel.com>
13803 * config/i386/i386-builtin-types.def
13804 (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
13805 (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
13806 (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
13807 (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
13808 * config/i386/i386.c
13809 (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
13810 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
13811 IX86_BUILTIN_SCATTERALTDIV16SI.
13812 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
13813 __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
13814 __builtin_ia32_scatteraltdiv8si.
13815 (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
13816 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
13817 IX86_BUILTIN_SCATTERALTDIV16SI.
13818 (ix86_vectorize_builtin_scatter): New.
13819 (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
13820 ix86_vectorize_builtin_scatter.
13822 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
13823 Petr Murzin <petr.murzin@intel.com>
13824 Kirill Yukhin <kirill.yukhin@intel.com>
13826 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
13827 * doc/tm.texi: Regenerate.
13828 * target.def: Add scatter builtin.
13829 * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
13830 for loads/stores in case of gather/scatter accordingly.
13831 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
13832 STMT_VINFO_GATHER_P(S).
13833 (vect_check_gather): Rename to ...
13834 (vect_check_gather_scatter): this.
13835 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
13836 STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
13837 (vect_check_gather_scatter): Use it instead of vect_check_gather.
13838 (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
13839 variable and new checkings for it accordingly.
13840 * tree-vect-stmts.c
13841 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
13842 STMT_VINFO_GATHER_P(S).
13843 (vect_check_gather_scatter): Use it instead of vect_check_gather.
13844 (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
13846 2015-09-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
13848 * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
13850 (mulv16qi3): New define_expand.
13852 2015-09-03 Martin Sebor <msebor@redhat.com>
13855 * doc/extend.texi (Other Builtins): Document when the address
13856 of a built-in function can be taken.
13858 2015-09-03 Richard Biener <rguenther@suse.de>
13860 * dwarf2out.c (flush_limbo_die_list): Split out from ...
13861 (dwarf2out_early_finish): ... here.
13862 (dwarf2out_finish): Do not call dwarf2out_early_finish but
13863 flush_limbo_die_list. Assert we have no deferred asm names.
13865 2015-09-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13867 * optabs.c (expand_binop): Don't create a broadcast vector with a
13868 source element wider than the inner mode.
13870 2015-09-03 Richard Biener <rguenther@suse.de>
13872 * varasm.c (output_constant): Use fold_convert instead of
13875 2015-09-03 Tom de Vries <tom@codesourcery.com>
13877 PR tree-optimization/65637
13878 * omp-low.c (expand_omp_for_static_chunk): Handle case that
13879 fin_bb has 2 predecessors.
13881 2015-09-03 Tom de Vries <tom@codesourcery.com>
13883 PR tree-optimization/65637
13884 * omp-low.c (find_phi_with_arg_on_edge): New function.
13885 (expand_omp_for_static_chunk): Fix inner loop phi.
13887 2015-09-03 Tom de Vries <tom@codesourcery.com>
13889 PR tree-optimization/65637
13890 * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
13893 2015-09-03 Tom de Vries <tom@codesourcery.com>
13895 * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
13897 2015-09-03 Tom de Vries <tom@codesourcery.com>
13899 * doc/invoke.texi (parloops-chunk-size): Add item.
13900 * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
13901 * tree-parloops.c: Include params.h.
13902 (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
13903 param parloops-chunk-size is used.
13905 2015-09-03 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
13907 PR middle-end/67351
13908 * fold-const.c (fold_binary_loc) : Move
13909 Transform (x >> c) << c into x & (-1<<c) or
13910 transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
13911 types using simplify and match.
13912 * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
13913 (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
13915 2015-09-03 Richard Biener <rguenther@suse.de>
13918 * tree-ssa-structalias.c (ctor_for_analysis): New function.
13919 (create_variable_info_for_1): Use ctor_for_analysis instead
13920 of get_constructor.
13921 (create_variable_info_for): Likewise.
13923 2015-09-02 Charles Baylis <charles.baylis@linaro.org>
13926 * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
13927 in new callgraph edge.
13929 2015-09-02 Christophe Lyon <christophe.lyon@linaro.org>
13934 * config/aarch64/aarch64-simd.md
13935 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
13936 gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
13937 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
13938 gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
13940 2015-09-02 Alan Modra <amodra@gmail.com>
13942 * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
13943 * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
13944 (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
13946 2015-09-02 Alan Modra <amodra@gmail.com>
13949 * config/rs6000/predicates.md (current_file_function_operand): Don't
13950 return true for weak symbols.
13951 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
13953 2015-09-01 Matthew Fortune <matthew.fortune@imgtec.com>
13954 Andrew Bennett <andrew.bennett@imgtec.com>
13956 * config/mips/mips-opts.h (mips_cb_setting): New enum.
13957 * config/mips/mips-protos.h: Add definitions for
13958 mips_output_jump and mips_output_equal_conditional_branch
13959 * config/mips/mips.c (MIPS_JR): Change to support the
13961 (mips_emit_compare): Add support for the MIPS R6 conditional
13963 (mips_process_sync_loop): Likewise.
13964 (mips_output_order_conditional_branch): Likewise.
13965 (mips16_build_call_stub): Change MIPS_CALL to
13967 (mips_print_operand_punctuation): Update 's' case to only
13968 apply to micromips r2.
13969 (mips_adjust_insn_length): Add support for forbidden slot
13971 (mips_avoid_hazard): Likewise.
13972 (mips_reorg_process_insns): Likewise.
13973 (mips_output_jump): New function.
13974 (mips_output_equal_conditional_branch): Likewise.
13975 (mips_output_conditional_branch): Use jrc/bc if compact
13976 branch support is enabled. Ensure the forbidden slots
13977 between the two branch instructions is filled with a nop.
13978 (mips_option_override): Add support to process the compact
13979 branch option and set the correct defaults. Prevent
13980 non-explict relocs being using for MIPS R6.
13981 (mips_trampoline_init): Add compact branch support.
13982 (mips_mult_zero_zero_cost): Allow zero initialisation of
13983 accumulators with TARGET_DSP.
13984 * config/mips/mips.h (TARGET_CB_NEVER): New define.
13985 (TARGET_CB_MAYBE): New define.
13986 (TARGET_CB_ALWAYS): New define.
13987 (ISA_HAS_DELAY_SLOTS): New define.
13988 (ISA_HAS_COMPACT_BRANCHES): New define.
13989 (ISA_HAS_JRC): New define.
13990 (MIPS_BRANCH_C): New define.
13991 (MIPS_CALL): Removed.
13992 (MICROMIPS_J): Removed.
13993 * config/mips/mips.md (compact_form): New attr.
13994 (hazard): Add support for forbidden slots.
13995 (define_delay): Add support for compact branches.
13996 (*branch_order<mode>): Likewise.
13997 (*branch_order<mode>_inverted): Likewise.
13998 (*branch_equality<mode>): Likewise.
13999 (*branch_equality<mode>_inverted): Likewise.
14000 (*jump_absolute): Likewise.
14001 (*jump_pic): Likewise.
14002 (indirect_jump): Use mips_output_jump to produce assembly output.
14003 (tablejump_<mode>"): Likewise.
14004 (*<optab>"): Likewise.
14005 (<optab>_internal): Likewise.
14006 (sibcall_internal): Likewise.
14007 (sibcall_value_internal): Likewise.
14008 (sibcall_value_multiple_internal): Likewise.
14009 (call_internal): Likewise.
14010 (call_split): Likewise.
14011 (call_internal_direct): Likewise.
14012 (call_direct_split): Likewise.
14013 (call_value_internal): Likewise.
14014 (call_value_split): Likewise.
14015 (call_value_internal_direct): Likewise.
14016 (call_value_direct_split): Likewise.
14017 (call_value_multiple_internal): Likewise.
14018 (call_value_multiple_split): Likewise.
14019 (mips_get_fcsr_mips16_<mode>): Likewise.
14020 (mips_set_fcsr_mips16_<mode>): Likewise.
14021 (tls_get_tp_mips16_<mode>): Likewise.
14022 * config/mips/mips.opt: Add -mcompact-branches option.
14023 * config/mips/predicates.md (order_operator): Ensure the
14024 conditional compact branches are only used if the ISA them.
14025 * doc/invoke.texi: Document -mcompact-branches option.
14027 2015-09-01 Vladimir Makarov <vmakarov@redhat.com>
14030 * lra-lives.c (process_bb_lives): Process move pseudos with the
14031 same value for copies and preferences
14032 * lra-constraints.c (match_reload): Create match reload pseudo
14033 with the same value from single dying input pseudo.
14035 2015-09-01 Ilya Enkovich <enkovich.gnu@gmail.com>
14038 * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
14040 2015-09-01 Aldy Hernandez <aldyh@redhat.com>
14042 * trans-mem.c: Add contributed-by.
14043 * trans-mem.h: Same.
14045 2015-09-01 Richard Biener <rguenther@suse.de>
14047 * expr.c (expand_expr_real_1): For expanding TERed defs
14048 set the current location to that of the def if not UNKNOWN.
14050 2015-09-01 David Sherwood <david.sherwood@arm.com>
14052 * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
14054 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14056 * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
14057 then_cost, else_cost fields. Change branch_cost field to unsigned int.
14058 (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
14059 Include rtl-iter.h.
14060 (noce_simple_bbs): New function.
14061 (noce_try_move): Bail if basic blocks are not simple.
14062 (noce_try_store_flag): Likewise.
14063 (noce_try_store_flag_constants): Likewise.
14064 (noce_try_addcc): Likewise.
14065 (noce_try_store_flag_mask): Likewise.
14066 (noce_try_cmove): Likewise.
14067 (noce_try_minmax): Likewise.
14068 (noce_try_abs): Likewise.
14069 (noce_try_sign_mask): Likewise.
14070 (noce_try_bitop): Likewise.
14071 (bbs_ok_for_cmove_arith): New function.
14072 (noce_emit_all_but_last): Likewise.
14073 (noce_emit_insn): Likewise.
14074 (noce_emit_bb): Likewise.
14075 (noce_try_cmove_arith): Handle non-simple basic blocks.
14076 (insn_valid_noce_process_p): New function.
14077 (contains_mem_rtx_p): Likewise.
14078 (bb_valid_for_noce_process_p): Likewise.
14079 (noce_process_if_block): Allow non-simple basic blocks
14082 2015-08-31 Alan Lawrence <alan.lawrence@arm.com>
14084 * tree-ssa-dom.c (record_equivalences_from_phis,
14085 record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
14086 (lookup_avail_expr): Likewise, and remove comment and unused temp.
14088 2015-09-01 Nick Clifton <nickc@redhat.com>
14090 * config/msp430/msp430.opt (mcpu): Fix typo.
14092 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14094 * config/aarch64/aarch64.c (aarch64_set_current_function):
14095 Re-layout any vector parameters have non-simd layout.
14096 * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
14098 (aarch64_simd_expand_args): Delete call to the above.
14100 2015-08-31 Mike Frysinger <vapier@gentoo.org>
14102 * doc/invoke.texi (asan-stack): Add space before option.
14104 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
14106 * tree.h (zerop): New function.
14107 * tree.c (zerop): Likewise.
14108 (element_precision): Handle expressions.
14109 * match.pd (define_predicates): Add zerop.
14110 (x <= +Inf): Fix comment.
14111 (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
14112 * fold-const.c (fold_binary_loc): ... here. Remove.
14114 2015-08-31 Richard Biener <rguenther@suse.de>
14116 PR middle-end/67381
14117 * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
14119 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
14121 * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
14122 (CEXPI): New operator list.
14123 (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
14124 imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
14126 * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
14128 2015-08-31 Tom de Vries <tom@codesourcery.com>
14130 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
14131 (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
14133 (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
14134 (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
14135 (rewrite_into_loop_closed_ssa): ... here.
14136 (replace_uses_in_dominated_bbs): Remove function.
14137 (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
14138 rewrite_into_loop_closed_ssa_1.
14140 2015-08-31 Michael Matz <matz@suse.de>
14142 * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
14143 enter entry and exit blocks for reverse post order.
14145 2015-08-31 Richard Biener <rguenther@suse.de>
14147 * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
14148 (lto_location_cache::current_sysp): Likewise.
14149 (output_block::current_sysp): Likewise.
14150 * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
14151 (lto_location_cache::apply_location_cache): Properly record
14152 system header locations.
14153 (lto_location_cache::input_location): Input whether a file
14154 is a system header.
14155 * lto-streamer-out.c (lto_output_location): Stream whether a file
14156 is a system header.
14158 2015-08-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14161 * gcc.c (env_manager::xput): Replace strndup by xstrndup.
14163 2015-08-31 Tom de Vries <tom@codesourcery.com>
14165 * tree-ssa-loop-manip.c (find_uses_to_rename_use)
14166 (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
14167 Improve function header comments.
14169 2015-08-30 Michael Collison <michael.collison@linaro.org>
14172 * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
14175 2015-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14177 * config/rs6000/rs6000.c (swap_web_entry): Enlarge
14178 special_handling bitfield.
14179 (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
14180 (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
14181 that represents a general xxpermdi.
14182 (insn_is_swappable_p): Add handling for vec_concat of two
14183 doublewords, which maps to a specific xxpermdi.
14184 (adjust_xxpermdi): New function.
14185 (adjust_concat): Likewise.
14186 (handle_special_swappables): Call adjust_xxpermdi and
14188 (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
14190 2015-08-30 Rich Felker <dalias@libc.org>
14192 * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
14193 case instead of sh[123456ble]-*-*.
14195 2015-08-29 Anatoly Sokolov <aesok@post.ru>
14197 * ira.c (print_unform_and_important_classes,
14198 print_translated_classes): Remove reg_class_names static array.
14199 (print_unform_and_important_classes): Rename to ...
14200 (print_uniform_and_important_classes): ... this.
14201 (ira_debug_allocno_classes): Update accordingly.
14203 2015-08-29 Tom de Vries <tom@codesourcery.com>
14205 PR tree-optimization/46193
14206 * omp-low.c (omp_reduction_init): Handle pointer type for min or max
14209 2015-08-28 Jeff Law <law@redhat.com>
14212 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
14213 unable to find X NE 0 in the tables, return X as the simplified
14215 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
14216 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
14218 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
14219 after removing the control flow statement and unnecessary edges.
14221 2015-08-28 Alan Lawrence <alan.lawrence@arm.com>
14224 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
14226 PR tree-optimization/67283
14227 * tree-sra.c (type_consists_of_records_p): Rename to...
14228 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
14230 (completely_scalarize_record): Rename to...
14231 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
14233 (scalarize_elem): New.
14235 2015-08-28 Jiong Wang <jiong.wang@arm.com>
14237 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
14238 SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
14239 (aarch64_symbol_type): Likewise.
14240 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
14242 (aarch64_expand_mov_immediate): Likewise.
14243 (aarch64_print_operand): Likewise.
14244 (aarch64_classify_tls_symbol): Likewise.
14246 2015-08-28 Richard Biener <rguenther@suse.de>
14248 * cgraphunit.c (symbol_table::compile): Move early debug generation
14250 (symbol_table::finalize_compilation_unit): ... back here and
14251 add a !seen_error () guard.
14253 2015-08-27 Sebastian Pop <s.pop@samsung.com>
14255 * toplev.c (process_options): Do not use flag_loop_block,
14256 flag_loop_interchange, and flag_loop_strip_mine. Add check for
14257 flag_loop_optimize_isl.
14259 2015-08-27 Sebastian Pop <s.pop@samsung.com>
14261 * Makefile.in (OBJS): Remove graphite-blocking.o and
14262 graphite-interchange.o.
14263 * common.opt (floop-strip-mine, floop-interchange, floop-block):
14264 Alias of floop-nest-optimize.
14265 * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
14266 Document as alias of -floop-nest-optimize.
14267 * graphite-blocking.c: Remove.
14268 * graphite-interchange.c: Remove.
14269 * graphite-optimize-isl.c: Include dumpfile.h.
14270 (getScheduleForBand): Add dump for tiled loops. Use
14271 PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
14272 * graphite-poly.c (scop_max_loop_depth): Remove.
14273 (print_scattering_function_1): Remove.
14274 (print_scattering_function): Remove.
14275 (print_scattering_functions): Remove.
14276 (debug_scattering_function): Remove.
14277 (debug_scattering_functions): Remove.
14278 (apply_poly_transforms): Remove use of flag_loop_block,
14279 flag_loop_strip_mine, and flag_loop_interchange.
14280 (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
14282 (print_pdr_access_layout): Remove.
14283 (print_pdr): Print ISL representation.
14284 (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
14285 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
14287 (openscop_print_pbb_domain): Remove.
14288 (print_pbb): Remove call to print_scattering_function.
14289 (openscop_print_scop_context): Remove.
14290 (print_scop_context): Do not print matrices anymore.
14291 (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
14292 SCOP_TRANSFORMED_SCHEDULE.
14293 (print_isl_set): Add printing of a new line.
14294 (print_isl_map): Same.
14295 (print_isl_aff): Same.
14296 (print_isl_constraint): Same.
14297 (loop_to_lst): Remove.
14298 (scop_to_lst): Remove.
14299 (lst_indent_to): Remove.
14300 (print_lst): Remove.
14301 (debug_lst): Remove.
14302 (dot_lst_1): Remove.
14304 (reverse_loop_at_level): Remove.
14305 (reverse_loop_for_pbbs): Remove.
14306 * graphite-poly.h (pdr_dim_iter_domain): Remove.
14307 (pdr_nb_params): Remove.
14308 (pdr_alias_set_dim): Remove.
14309 (pdr_subscript_dim): Remove.
14310 (pdr_iterator_dim): Remove.
14311 (pdr_parameter_dim): Remove.
14312 (same_pdr_p): Remove.
14313 (struct poly_scattering): Remove.
14314 (struct poly_bb): Remove _original, _transformed, _saved.
14315 (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
14316 (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
14317 (PBB_NB_LOCAL_VARIABLES): Remove.
14318 (PBB_NB_SCATTERING_TRANSFORM): Remove.
14319 (schedule_to_scattering): Remove.
14320 (number_of_write_pdrs): Remove.
14321 (pbb_dim_iter_domain): Remove.
14322 (pbb_nb_params): Remove.
14323 (pbb_nb_scattering_orig): Remove.
14324 (pbb_nb_scattering_transform): Remove.
14325 (pbb_nb_dynamic_scattering_transform): Remove.
14326 (pbb_nb_local_vars): Remove.
14327 (pbb_iterator_dim): Remove.
14328 (pbb_parameter_dim): Remove.
14329 (psco_scattering_dim): Remove.
14330 (psct_scattering_dim): Remove.
14331 (psct_local_var_dim): Remove.
14332 (psco_iterator_dim): Remove.
14333 (psct_iterator_dim): Remove.
14334 (psco_parameter_dim): Remove.
14335 (psct_parameter_dim): Remove.
14336 (psct_dynamic_dim): Remove.
14337 (psct_static_dim): Remove.
14338 (psct_add_local_variable): Remove.
14339 (new_lst_loop): Remove.
14340 (new_lst_stmt): Remove.
14341 (free_lst): Remove.
14342 (copy_lst): Remove.
14343 (lst_add_loop_under_loop): Remove.
14344 (lst_depth): Remove.
14345 (lst_dewey_number): Remove.
14346 (lst_dewey_number_at_depth): Remove.
14347 (lst_pred): Remove.
14348 (lst_succ): Remove.
14349 (lst_find_pbb): Remove.
14350 (find_lst_loop): Remove.
14351 (lst_find_first_pbb): Remove.
14352 (lst_empty_p): Remove.
14353 (lst_find_last_pbb): Remove.
14354 (lst_contains_p): Remove.
14355 (lst_contains_pbb): Remove.
14356 (lst_create_nest): Remove.
14357 (lst_remove_from_sequence): Remove.
14358 (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
14359 (lst_niter_for_loop): Remove.
14360 (pbb_update_scattering): Remove.
14361 (lst_update_scattering_under): Remove.
14362 (lst_update_scattering): Remove.
14363 (lst_insert_in_sequence): Remove.
14364 (lst_replace): Remove.
14365 (lst_substitute_3): Remove.
14366 (lst_distribute_lst): Remove.
14367 (lst_remove_all_before_including_pbb): Remove.
14368 (lst_remove_all_before_excluding_pbb): Remove.
14369 (struct scop): Remove original_schedule, transformed_schedule, and
14371 (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
14372 (SCOP_SAVED_SCHEDULE): Remove.
14373 (poly_scattering_new): Remove.
14374 (poly_scattering_free): Remove.
14375 (poly_scattering_copy): Remove.
14376 (store_scattering_pbb): Remove.
14377 (store_lst_schedule): Remove.
14378 (restore_lst_schedule): Remove.
14379 (store_scattering): Remove.
14380 (restore_scattering_pbb): Remove.
14381 (restore_scattering): Remove.
14382 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
14383 Remove scattering_dimensions. Do not use pbb_dim_iter_domain:
14384 compute the scattering polyhedron dimension from the dimension of
14386 (build_scop_scattering): Update call to
14387 build_pbb_scattering_polyhedrons.
14388 (build_poly_scop): Remove call to scop_to_lst.
14389 * graphite.c (graphite_transform_loops): Add call to print_scop.
14390 (gate_graphite_transforms): Remove use of flag_loop_block,
14391 flag_loop_interchange, and flag_loop_strip_mine.
14393 2015-08-27 Sebastian Pop <s.pop@samsung.com>
14395 * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
14396 * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
14397 -floop-nest-optimize.
14398 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
14399 (generate_luj_sepclass): Remove.
14400 (generate_luj_options): Remove.
14401 (set_options): Remove opt_luj.
14402 (scop_to_isl_ast): Remove opt_luj.
14403 * graphite-optimize-isl.c (getScheduleForBand): Remove check for
14404 flag_loop_unroll_jam.
14405 (getPrevectorMap_full): Remove.
14406 (getScheduleForBandList): Remove map_sepcl.
14407 (getScheduleMap): Same.
14408 (apply_schedule_map_to_scop): Remove sepcl.
14409 (optimize_isl): Same.
14410 * graphite-poly.c (apply_poly_transforms): Remove check for
14411 flag_loop_unroll_jam.
14412 (new_poly_bb): Remove map_sepclass.
14413 * graphite-poly.h (struct poly_bb): Same.
14414 * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
14415 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
14416 (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
14417 * toplev.c (process_options): Remove flag_loop_unroll_jam.
14419 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
14422 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
14423 (addqi3_cc): Ditto.
14424 (UNSPEC_ADD_CARRY): Remove.
14425 (addqi3_cconly_overflow): New expander.
14426 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
14427 Adjust for changed add<mode>3_carry.
14428 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
14429 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
14430 (<plusminus_insn><mode>3_carry): Remove expander.
14431 (*<plusminus_insn><mode>3_carry): Split insn pattern to
14432 add<mode>3_carry and sub<mode>3_carry.
14433 (plusminus_carry_mnemonic): Remove code attribute.
14434 (add<mode>3_carry): Canonicalize insn pattern.
14435 (*addsi3_carry_zext): Ditto.
14436 (sub<mode>3_carry): Ditto.
14437 (*subsi3_carry_zext): Ditto.
14438 (adcx<mode>3): Remove insn pattern.
14439 (addcarry<mode>): New insn pattern.
14440 (subborrow<mode>): Ditto.
14441 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
14442 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
14443 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
14444 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
14445 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
14446 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
14447 Rewrite expander to not clobber carry flag chains.
14449 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
14451 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
14452 instead of a rotate.
14454 2015-08-27 Marek Polacek <polacek@redhat.com>
14456 PR middle-end/67005
14457 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
14458 an entry into an irreducible region.
14460 2015-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
14462 * configure: Regenerate.
14464 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
14466 PR tree-optimization/67283
14467 * tree-sra.c (type_consists_of_records_p): Rename to...
14468 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
14470 (completely_scalarize_record): Rename to...
14471 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
14472 (scalarize_elem): New.
14474 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
14476 * tree-sra.c (completely_scalarize_var): Rename to...
14477 (create_total_scalarization_access): ... Here. Drop call to
14478 completely_scalarize_record.
14480 (analyze_all_variable_accesses): Replace completely_scalarize_var
14481 with create_total_scalarization_access and completely_scalarize_record.
14483 2015-08-27 Alan Modra <amodra@gmail.com>
14486 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
14489 2015-08-27 Richard Biener <rguenther@suse.de>
14491 * passes.c (rest_of_decl_compilation): Guard early_global_decl
14492 call with !seen_error ().
14493 * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
14494 early debug generation and finish...
14495 (symbol_table::compile): ... here to put it after a !seen_error ()
14498 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14500 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
14503 2015-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14504 Andre Vieira <andre.simoesdiasvieira@arm.com>
14506 * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
14507 (*cb<optab><mode>1): Likewise.
14508 (*tb<optab><mode>1): Likewise.
14509 (*cb<optab><mode>1): Likewise.
14510 * config/aarch64/iterators.md (inv_cb): New code attribute.
14511 (inv_tb): Likewise.
14512 * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
14513 * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
14515 2015-08-27 Richard Biener <rguenther@suse.de>
14517 * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
14519 2015-08-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
14521 * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
14524 2015-08-26 Michael Meissner <meissner@linux.vnet.ibm.com>
14526 * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
14529 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
14531 (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
14532 floating point in VSX registers.
14533 (rs6000_output_move_128bit): Always print out the set insn if we
14534 can't generate an appropriate 128-bit move.
14535 (rs6000_generate_compare): Add support for IEEE 128-bit floating
14536 point in VSX registers comparisons.
14537 (rs6000_expand_float128_convert): Likewise.
14539 * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
14540 predicate for only GPR hard registers.
14542 * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
14543 modes to iterators. Add new iterators for moving 128-bit values in
14544 scalar FPR registers and VSX registers.
14545 (FMOVE128): Likewise.
14546 (FMOVE128_FPR): Likewise.
14547 (FMOVE128_GPR): Likewise.
14548 (FMOVE128_VSX): Likewise.
14549 (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
14552 (IBM128): Likewise.
14553 (TFIFKF): Likewise.
14554 (RELOAD): Add IEEE 128-bit floating point modes.
14555 (signbittf2): Convert TF insns to add support for new IEEE 128-bit
14556 floating point in VSX registers modes.
14557 (signbit<mode>2, IBM128 iterator): Likewise.
14558 (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
14559 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
14560 (negtf2): Likewise.
14561 (neg<mode>2, TFIFKF iterator): Likewise.
14562 (negtf2_internal): Likewise.
14563 (abstf2): Likewise.
14564 (abs<mode>2, TFIFKF iterator): Likewise.
14565 (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
14566 VSX insn support for negate, absolute value, and negative absolute
14568 (ieee_128bit_vsx_neg<mode>2): Likewise.
14569 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
14570 (ieee_128bit_vsx_abs<mode>2): Likewise.
14571 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
14572 (ieee_128bit_vsx_nabs<mode>2): Likewise.
14573 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
14574 (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
14575 floating point in VSX registers.
14576 (unpack<mode>_dm): Likewise.
14577 (unpack<mode>_nodm): Likewise.
14578 (pack<mode>): Likewise.
14579 (unpackv1ti): Likewise.
14580 (unpack<mode>, FMOVE128_VSX iterator): Likewise.
14581 (packv1ti): Likewise.
14582 (pack<mode>, FMOVE128_VSX iterator): Likewise.
14583 (extenddftf2): Add support for IEEE 128-bit floating point in VSX
14585 (extenddftf2_internal): Likewise.
14586 (trunctfdf2): Likewise.
14587 (trunctfdf2_internal2): Likewise.
14588 (fix_trunc_helper): Likewise.
14589 (fix_trunctfdi2"): Likewise.
14590 (floatditf2): Likewise.
14591 (floatuns<mode>tf2): Likewise.
14592 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
14593 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
14594 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
14595 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
14596 (float<SDI:mode><IFKF:mode>2): Likewise.
14597 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
14599 2015-08-26 Renlin Li <renlin.li@arm.com>
14601 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
14603 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
14604 Jiong Wang <jiong.wang@arm.com>
14606 * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
14607 (tlsie_tiny_<mode>): New define_insn.
14608 (tlsie_tiny_sidi): Likewise.
14609 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
14611 (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
14612 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
14614 (aarch64_expand_mov_immediate): Likewise.
14615 (aarch64_print_operand): Likewise.
14616 (arch64_classify_tls_symbol): Likewise.
14618 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
14620 * config/arm/arm-arches.def: Replace single value flags with
14621 an initializer built from ARM_FSET_MAKE_CPU1.
14622 * config/arm/arm-cores.def: Likewise.
14623 * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
14624 derivation from the ARM_CORE macro definition, use the given value
14626 (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
14627 ARM_ARCH macro definition, use the given value instead.
14629 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
14631 * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
14633 (struct builtin_description): Replace field mask with field
14635 (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
14636 (IWMMXT2_BUILTIN): Likewise.
14637 (IWMMXT2_BUILTIN2): Likewise.
14638 (FP_BUILTIN): Likewise.
14639 (CRC32_BUILTIN): Likewise.
14640 (CRYPTO_BUILTIN): Likewise.
14641 (iwmmx_mbuiltin): Likewise.
14642 (iwmmx2_mbuiltin): Likewise.
14643 (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
14644 struct builtin_description.
14646 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
14648 * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
14649 (struct builtin_description): Change type of mask to unsigned
14651 * config/arm/arm-protos.h (insn_flags): Declare as type
14653 (tune_flags): Likewise.
14654 * config/arm/arm.c (feature_count): New.
14655 (insn_flags): Define as type arm_feature_set.
14656 (tune_flags): Likewise.
14657 (struct processors): Define field flags as type arm_feature_set.
14658 (all_cores): Update for change to struct processors.
14659 (all_architectures): Likewise.
14660 (arm_option_check_internal): Use arm_feature_set and ARM_FSET
14662 (arm_option_override_internal): Likewise.
14663 (arm_option_override): Likewise.
14665 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
14666 Jiong Wang <jiong.wang@arm.com>
14668 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
14669 tls size for tiny, small, large memory model.
14670 (aarch64_load_symref_appropriately): Support new symbol types.
14671 (aarch64_expand_mov_immediate): Likewise.
14672 (aarch64_print_operand): Likewise.
14673 (aarch64_classify_tls_symbol): Likewise.
14674 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
14675 (aarch64_symbol_type): Likewise.
14676 * config/aarch64/aarch64.md (tlsle): Deleted.
14677 (tlsle12_<mode>): New define_insn.
14678 (tlsle24_<mode>): Likewise.
14679 (tlsle32_<mode>): Likewise.
14680 (tlsle48_<mode>): Likewise.
14681 * doc/sourcebuild.texi (AArch64-specific attributes): Document
14684 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
14686 * config/arm/arm-protos.h (FL_NONE): New.
14688 (arm_feature_set): New.
14689 (ARM_FSET_MAKE): New.
14690 (ARM_FSET_MAKE_CPU1): New.
14691 (ARM_FSET_MAKE_CPU2): New.
14692 (ARM_FSET_CPU1): New.
14693 (ARM_FSET_CPU2): New.
14694 (ARM_FSET_EMPTY): New.
14695 (ARM_FSET_ANY): New.
14696 (ARM_FSET_HAS_CPU1): New.
14697 (ARM_FSET_HAS_CPU2): New.
14698 (ARM_FSET_HAS_CPU): New.
14699 (ARM_FSET_ADD_CPU1): New.
14700 (ARM_FSET_ADD_CPU2): New.
14701 (ARM_FSET_DEL_CPU1): New.
14702 (ARM_FSET_DEL_CPU2): New.
14703 (ARM_FSET_UNION): New.
14704 (ARM_FSET_INTER): New.
14705 (ARM_FSET_XOR): New.
14706 (ARM_FSET_EXCLUDE): New.
14707 (AFM_FSET_IS_EMPTY): New.
14708 (ARM_FSET_CPU_SUBSET): New.
14710 2015-08-26 Jiong Wang <jiong.wang@arm.com>
14712 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
14713 SYMBOL_TLSLE to SYMBOL_TLSLE24.
14714 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
14716 (aarch64_expand_mov_immediate): Likewise.
14717 (aarch64_print_operand): Likewise.
14718 (aarch64_classify_symbol): Likewise.
14720 2015-08-26 Jiong Wang <jiong.wang@arm.com>
14722 * config/aarch64/aarch64.opt (mtls-size): New entry.
14723 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
14724 (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
14725 * doc/invoke.texi (AArch64 Options): Document -mtls-size.
14727 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
14729 * config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
14730 ARM_CORE entry. Fix some white-space.
14731 * config/arm/arm.c: Remove FL_FOR_ARCH derivation from
14732 ARM_CORE definition.
14734 2015-08-26 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
14736 * fold-const.c (fold_binary_loc) : Move Optimize
14737 root(x)*root(y) as root(x*y) to match.pd.
14738 Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
14739 Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
14740 Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
14741 Move Optimize x/expN(y) into x*expN(-y) to match.pd.
14742 * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
14743 (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
14744 (mult (exps:s @0) (exps:s @1)) : New simplifier.
14745 (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
14746 (rdiv @0 (exps:s @1)) : New simplifier.
14748 2015-08-25 Joseph Myers <joseph@codesourcery.com>
14750 * gcc.c (driver::finalize): Only assign to extra_specs if
14753 2015-08-25 Marek Polacek <polacek@redhat.com>
14755 PR middle-end/67330
14756 * varasm.c (declare_weak): Return after giving an error.
14758 2015-08-25 David Malcolm <dmalcolm@redhat.com>
14760 * gcc-main.c (main): Add params to driver ctor.
14761 * gcc.c (class env_manager): New.
14763 (env_manager::init): New.
14764 (env_manager::get): New.
14765 (env_manager::xput): New.
14766 (env_manager::restore): New.
14767 Poison getenv and putenv.
14768 (DEFAULT_TARGET_SYSTEM_ROOT): New.
14769 (target_system_root): Update initialization to use
14770 DEFAULT_TARGET_SYSTEM_ROOT.
14771 (struct spec_list): Add field "default_ptr".
14772 (INIT_STATIC_SPEC): Initialize new field "default_ptr".
14773 (init_spec): Likewise.
14774 (set_spec): Clear field "default_ptr".
14775 (read_specs): Free "spec" and "buffer".
14776 (xputenv): Reimplement in terms of env_manager.
14777 (process_command): Replace ::getenv calls with calls to the
14778 env_manager singleton.
14779 (process_brace_body): Free string in three places.
14780 (driver::driver): New.
14781 (driver::~driver): New.
14782 (used_arg): Convert from a function to...
14783 (class used_arg_t): ...this class, and...
14784 (used_arg): ...this new global instance.
14785 (used_arg_t::finalize): New function.
14786 (getenv_spec_function): Add "const" to local "value". Replace
14787 ::getenv call with call to the env_manager singleton.
14788 (path_prefix_reset): New function.
14789 (driver::finalize): New function.
14790 * gcc.h (driver::driver): New.
14791 (driver::~driver): New.
14792 (driver::finalize): New.
14794 2015-08-25 Nathan Sidwell <nathan@acm.org>
14796 * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
14797 target doesn't have one.
14799 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
14802 * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
14804 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
14807 * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
14808 a define_insn, remove second alternative.
14810 2015-08-25 Thomas Schwinge <thomas@codesourcery.com>
14811 Joseph Myers <joseph@codesourcery.com>
14813 * gcc.c (struct switchstr): Expand comment.
14815 2015-08-25 Nathan Sidwell <nathan@acm.org>
14817 * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
14818 (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
14820 2015-08-25 Richard Biener <rguenther@suse.de>
14822 PR middle-end/67306
14823 * genmatch.c (expr::gen_transform): Verify the result of
14824 builtin_decl_implicit.
14825 (dt_simplify::gen_1): Likewise.
14827 2015-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
14829 * config/arm/constraints.md: Also list Cs and US ARM-specific
14830 constraints as used.
14832 2015-08-24 Kaz Kojima <kkojima@gcc.gnu.org>
14835 * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
14837 (nonpic_symbol_mentioned_p): Likewise.
14838 (sh_delegitimize_address): Likewise.
14839 (sh_function_ok_for_sibcall): Take into account weak symbols.
14840 (sh_expand_sym_label2reg): New.
14841 * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
14842 * config/sh/sh.md (UNSPEC_PCREL): New enum.
14843 (call_pcrel): Use sh_expand_sym_label2reg.
14844 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
14845 (symPCREL_label2reg) New expand.
14847 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
14849 * graphite-poly.c: Change type of region from void* to sese.
14850 * graphite-poly.h (struct scop): Changing the type of scop::region
14851 from void* to sese. Change accessor macro accordingly.
14852 * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
14854 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
14856 * graphite-scop-detection.c (stmt_simple_for_scop_p):
14857 Constrain only on INTEGER_TYPE.
14859 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
14862 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
14863 -mefficient-unaligned-vsx on ISA 2.7.
14865 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
14866 option to a masked option.
14868 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
14869 logic for -mefficient-unaligned-vsx so that it is set via an arch
14870 ISA option, instead of being set if -mtune=power8 is set. Move
14871 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
14872 near other default option handling.
14874 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
14876 * genflags.c (gen_macro): Delete.
14877 (gen_proto): Don't create GEN.*CALL.* macros.
14878 * gensupport.h (get_file_location): Declare.
14879 * gensupport.c (rtx_locs): New variable.
14880 (read_md_rtx): Record rtx locations.
14881 (get_file_location): New function.
14882 * target-insns.def (call, call_pop, call_value, call_value_pop)
14883 (sibcall, sibcall_value): New patterns.
14884 * gentarget-def.c (parse_argument): New function.
14885 (def_target_insn): Use it. Handle optional operands. Raise an
14886 error if an .md pattern has the wrong number of operands for the
14887 pattern name. Remove the names of unused operands from the prototype.
14888 * builtins.c (expand_builtin_apply): Use targetm functions
14889 instead of HAVE_call_value and GEN_CALL_VALUE.
14890 * calls.c (emit_call_1): Likewise. Remove support for sibcall_pop
14891 and sibcall_value_pop.
14892 * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
14894 * config/alpha/alpha.md (untyped_call): Likewise.
14895 * config/iq2000/iq2000.md (untyped_call): Likewise.
14896 * config/m68k/m68k.md (untyped_call): Likewise.
14897 * config/mips/mips.md (untyped_call): Likewise.
14898 * config/pa/pa.md (untyped_call): Likewise.
14899 * config/rs6000/rs6000.md (untyped_call): Likewise.
14900 * config/sparc/sparc.md (untyped_call): Likewise.
14901 * config/tilegx/tilegx.md (untyped_call): Likewise.
14902 * config/tilepro/tilepro.md (untyped_call): Likewise.
14903 * config/visium/visium.md (untyped_call): Likewise.
14904 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
14905 gen_call_value instead of GEN_CALL_VALUE.
14906 * config/arm/arm.md (untyped_call): Likewise.
14907 * config/cr16/cr16.c (cr16_function_arg): Remove reference to
14910 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
14912 * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
14913 (have_cbranchcc4): New variable.
14914 (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
14915 (noce_get_condition): Use it instead of HAVE_cbranchcc4.
14916 (if_convert): Initialize have_cbranchcc4.
14918 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
14920 * builtins.c (expand_cmpstrn): Rename to...
14921 (expand_cmpstrn_or_cmpmem): ...this.
14922 (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
14923 (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
14924 Remove mode argument.
14925 (expand_builtin): Update accordingly.
14927 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
14929 * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
14930 (expand_builtin_strcmp, expand_builtin_strncmp): Use them. Remove
14931 references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
14932 * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
14933 Add predicates for operands 0 and 3.
14934 * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
14936 * config/sh/sh.md (cmpstrnsi): Change the length predicate from
14937 immediate_operand to nonmemory_operand.
14939 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
14941 * df-scan.c (df_insn_info_init_fields): New function, split out
14943 (df_insn_create_insn_record): ...here.
14944 (df_insn_info_free_fields): New function, split out from...
14945 (df_insn_info_delete): ...here.
14946 (df_insn_rescan): Use the new functions instead of freeing and
14947 reallocating the df_insn_info.
14949 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
14951 * doc/install.texi (Binaries): Remove links no longer valid.
14953 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
14955 * config/nvptx/mkoffload.c (process): Replace
14956 GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
14958 2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
14961 * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
14963 2015-08-24 Renlin Li <renlin.li@arm.com>
14965 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
14966 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
14967 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
14968 * config/arm/constraints.md ("j"): Add check for high code.
14970 2015-08-24 Tom de Vries <tom@codesourcery.com>
14972 PR tree-optimization/65468
14973 * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
14976 2015-08-24 Nathan Sidwell <nathan@acm.org>
14978 * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
14979 change to nvptx_type_from_mode call. Use arg_promotion for both
14980 split and non-split args.
14982 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
14984 * target-insns.def (movstr): New pattern.
14985 * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
14986 (expand_movstr): Use targetm rather than HAVE_movstr/
14989 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
14991 * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
14994 2015-08-24 Andrew Pinski <apinski@cavium.com>
14996 * config/aarch64/aarch64-tuning-flags.def: Remove all index to
14997 AARCH64_EXTRA_TUNING_OPTION.
14998 * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
15000 (aarch64_extra_tuning_flags): Base the shifted value on the index
15001 instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
15002 * config/aarch64/aarch64.c: Remove the last argument to
15003 AARCH64_EXTRA_TUNING_OPTION.
15005 2015-08-23 Nathan Sidwell <nathan@acm.org>
15007 * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
15009 (nvptx_declare_function_name): Insert formatting tabs for
15012 2015-08-23 Tom de Vries <tom@codesourcery.com>
15014 * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
15015 parm_decl, rather than generating a dummy default def in cfun.
15016 * tree-cfg.c (replace_ssa_name): Assume no default defs. Make sure
15017 ssa_name from cfun and child_fn do not share a stmt as def stmt.
15018 (move_stmt_op): Handle PARM_DECl.
15019 (gather_ssa_name_hash_map_from): New function.
15020 (move_sese_region_to_fn): Add default defs for function params, and add
15021 them to vars_map. Release copied ssa names.
15022 * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
15024 2015-08-23 Tom de Vries <tom@codesourcery.com>
15026 * doc/sourcebuild.texi: Rename vect_no_int_max with
15027 vect_no_int_min_max. Update description.
15029 2015-08-22 Andrew Pinski <apinski@cavium.com>
15031 * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
15032 * config/aarch64/aarch64-protos.h
15033 (aarch64_fusion_pairs_index): New enum.
15034 (aarch64_fusion_pairs): Base the shifted value on the index instead
15035 Rewrite AARCH64_FUSE_ALL to be based on the end index.
15036 of the argument to AARCH64_FUSION_PAIR.
15037 * config/aarch64/aarch64.c: Remove the last argument to
15038 AARCH64_FUSION_PAIR.
15040 2015-08-22 Mikhail Maltsev <maltsevm@gmail.com>
15042 * dominance.c (new_zero_array): Define.
15043 (dom_info): Redefine as class with proper encapsulation.
15044 (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
15046 (dom_info::dom_info, ~dom_info): Define. Use new/delete for memory
15047 allocations/deallocations. Pass function as parameter (instead of
15049 (dom_info::get_idom): Define accessor method.
15050 (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
15051 link_roots, calc_idoms): Redefine as class members. Do not use cfun.
15052 (calculate_dominance_info): Adjust to use dom_info class.
15053 (verify_dominators): Likewise.
15055 2015-08-21 Alexandre Oliva <aoliva@redhat.com>
15057 * print-rtl.c (print_rtx): Check the correct range for
15058 flag_dump_unnumbered_links to behave as documented.
15060 PR rtl-optimization/67227
15061 PR rtl-optimization/64164
15062 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
15063 (nonoverlapping_memrefs_p): Test offsets and sizes when given
15064 identical gimple_reg exprs.
15066 2015-08-21 Nathan Sidwell <nathan@acm.org>
15068 * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
15070 * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
15071 crtl->stack_alignment_needed to determine alignment.
15072 (nvptx_get_drap_rtx): New.
15073 (TARGET_GET_DRAP_RTX): Override.
15074 * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
15076 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
15078 * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
15080 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
15082 * configure.ac: Remove uwin* cases.
15083 * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
15084 i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
15085 i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
15086 i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
15087 * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
15088 i[34567]86-*-uwin*, powerpc-*-beos*.
15090 2015-08-21 Richard Sandiford <richard.sandiford@arm.com>
15092 * gencodes.c (gencodes): Print the comma for the preceding
15093 enum value rather than the current one. Use aliased enum values
15094 rather than #defines for compiled-out patterns.
15095 (main): Update accordingly. Replace LAST_INSN_CODE with
15097 * lra.c (insn_code_data): Update accordingly.
15098 (finish_insn_code_data_once, get_static_insn_data): Likewise.
15099 * recog.h (target_recog): Likewise.
15100 (preprocess_insn_constraints): Change parameter to unsigned int.
15101 * recog.c (preprocess_insn_constraints): Likewise.
15102 (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
15103 * tree-vect-stmts.c (vectorizable_operation): Simplify.
15105 2015-08-21 Markus Trippelsdorf <markus@trippelsdorf.de>
15107 PR rtl-optimization/61657
15108 * loop-iv.c (iv_number_of_iterations): Declare up and down as
15109 unsigned. Remove superflous uint64_t cast.
15111 2014-08-21 Felix Yang <felix.yang@huawei.com>
15112 Jiji Jiang <jiangjiji@huawei.com>
15114 * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
15115 argument and get builtin function code directly from CALL.
15116 (gimple_stringop_fixed_value): Modified accordingly.
15117 (gimple_stringops_transform, gimple_stringops_values_to_profile):
15118 Modified accordingly and only accept BUILT_IN_NORMAL string operations.
15120 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
15122 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
15124 2015-08-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
15126 * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
15128 Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
15129 Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
15130 Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
15131 Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
15132 Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
15133 Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
15134 Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
15135 Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
15136 Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
15137 Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
15139 * match.pd (SIN ) : New Operator.
15140 (TAN) : New Operator.
15141 (mult (SQRT@1 @0) @1) : New simplifier.
15142 (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
15143 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
15144 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
15145 (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
15146 (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
15147 (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
15148 (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
15149 (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
15150 (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
15151 (rdiv @0 (POW:s @1 @2)) : New simplifier.
15153 2015-08-21 Bin Cheng <bin.cheng@arm.com>
15155 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
15156 loop if EXPR is simplified to const value.
15158 2015-08-21 Yury Gribov <y.gribov@samsung.com>
15160 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
15161 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
15163 2015-08-21 Richard Biener <rguenther@suse.de>
15165 PR middle-end/67285
15166 * gimple-fold.c (replace_stmt_with_simplification): Assert
15167 seq is empty when replacing a call with itself but different
15169 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
15170 a call require that it is const.
15172 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15174 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
15175 * builtins.c (get_object_alignment_2): Adjust.
15176 * varasm.c (align_variable): Likewise.
15177 (get_variable_align): Likewise.
15178 (build_constant_desc): Likewise.
15179 (force_const_mem): Likewise.
15180 * doc/tm.texi.in: Likewise.
15181 * doc/tm.texi: Regenerate.
15183 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15185 * genconfig.c (main): Always define HAVE_cc0.
15186 * recog.c (rest_of_handle_peephole2): Adjust.
15188 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15190 * reorg.c (relax_delay_slots): Don't use #if to check value of
15193 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15195 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
15196 * targhooks.c (default_have_conditional_execution): Adjust.
15198 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
15200 * rtl.h (rtvec_all_equal_p): Declare.
15201 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
15202 * rtl.c (rtvec_all_equal_p): New function.
15203 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
15204 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
15205 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
15206 * config/arm/arm.c (neon_vdup_constant): Likewise.
15207 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
15208 * config/tilegx/constraints.md (W, Y): Likewise.
15209 * config/tilepro/constraints.md (W, Y): Likewise.
15210 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
15211 (classify_immediate): Use unwrap_const_vec_duplicate.
15212 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
15213 (reg_or_v2s8bit_operand): Likewise.
15214 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
15215 (reg_or_v4s8bit_operand): Likewise.
15217 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15219 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
15220 (vec_shasigma_be): New #define.
15221 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
15222 (VPMSUMH): Likewise.
15223 (VPMSUMW): Likewise.
15224 (VPMSUMD): Likewise.
15225 (VPMSUM): New BU_P8V_OVERLOAD_2.
15226 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
15227 entries for VEC_MADD and VEC_VPMSUM.
15229 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
15231 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
15232 Multiply argument avr_n_flash by 64 to match unit of "KiB".
15233 (avr_pgm_check_var_decl): Same.
15235 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
15237 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
15238 initialization of HFmode scalar type (float16_t) to...
15239 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
15242 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
15244 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
15245 having an -mfp16-format.
15247 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
15249 * config/i386/predicates.md (vector_all_ones_operand): Use
15250 CONSTM1_RTX to simplify definition.
15252 2015-08-20 Richard Biener <rguenther@suse.de>
15254 * toplev.c (compile_file): Remove loop calling late_global_decl
15256 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
15257 on decls we assembled.
15259 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
15261 * common/config/aarch64/aarch64-common.c
15262 (AARCH64_CPU_NAME_LENGTH): Delete.
15263 (aarch64_option_extension): New.
15264 (all_extensions): Likewise.
15265 (processor_name_to_arch): Likewise.
15266 (arch_to_arch_name): Likewise.
15268 (all_architectures): Likewise.
15269 (aarch64_get_extension_string_for_isa_flags): Likewise.
15270 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
15271 architecture names.
15272 * config/aarch64/aarch64-protos.h
15273 (aarch64_get_extension_string_for_isa_flags): New.
15274 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
15275 (aarch64_option_print): Get the string to print from
15276 aarch64_get_extension_string_for_isa_flags.
15277 (aarch64_declare_function_name): Likewise.
15278 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
15279 (MCPU_TO_MARCH_SPEC): This.
15280 (ASM_CPU_SPEC): Use it.
15281 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
15282 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
15283 (EXTRA_SPEC_FUNCTIONS): Use it.
15285 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
15287 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
15288 expansion when !ISA_HAS_LWL_LWR.
15289 (mips_block_move_straight): Update the size of elements copied to
15290 account for alignment when !ISA_HAS_LWL_LWR.
15291 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
15293 2015-08-19 Jiong Wang <jiong.wang@arm.com>
15295 * expr.c (expand_expr_real_2): Check gimple statement during
15296 LSHIFT_EXPR expand.
15298 2015-08-19 Magnus Granberg <zorry@gentoo.org>
15300 * common.opt (fstack-protector): Initialize to -1.
15301 (fstack-protector-all): Likewise.
15302 (fstack-protector-strong): Likewise.
15303 (fstack-protector-explicit): Likewise.
15304 * configure.ac: Add --enable-default-ssp.
15305 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
15306 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
15308 * doc/install.texi: Document --enable-default-ssp.
15309 * config.in: Regenerated.
15310 * configure: Likewise.
15312 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
15314 PR rtl-optimization/64164
15315 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
15316 (parm_in_stack_slot_p): ... this. Disregard mode, what
15317 matters is whether the parm will live in a pseudo or a stack
15319 (expand_one_ssa_partition): Deal with params without a default
15320 def. Disregard mode.
15321 * cfgexpand.h: Renamed function declaration.
15322 * tree-ssa-coalesce.c: Adjust.
15323 * function.c (split_complex_args): Allocate stack slot for
15324 unassigned parms before splitting.
15325 (parm_in_unassigned_mem_p): New. Use it instead of
15326 parm_maybe_byref_p throughout this file.
15327 (assign_parm_setup_block): Use it. Accept pseudos in the
15328 expand-assigned rtl.
15329 (assign_parm_setup_reg): Drop BLKmode requirement.
15330 (assign_parm_setup_stack): Allocate and fill in the address of
15331 unassigned MEM parms.
15333 2015-08-19 David Sherwood <david.sherwood@arm.com>
15335 * genmodes.c (emit_mode_unit_size_inline): New function.
15336 (emit_mode_unit_precision_inline): New function.
15337 (emit_insn_modes_h): Emit new #define. Emit new functions.
15338 (emit_mode_unit_size): New function.
15339 (emit_mode_unit_precision): New function.
15340 (emit_mode_adjustments): Add mode_unit_size adjustments.
15341 (emit_insn_modes_c): Emit new arrays.
15342 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
15343 use new inline methods.
15345 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15347 * config/aarch64/aarch64.c (bit_count): Delete prototype
15349 (aarch64_print_operand): Use popcount_hwi instead of the above.
15351 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15353 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
15356 2015-08-19 Marek Polacek <polacek@redhat.com>
15358 PR middle-end/67133
15359 * gimple-ssa-isolate-paths.c
15360 (insert_trap_and_remove_trailing_statements): Rename to ...
15361 (insert_trap): ... this. Don't remove trailing statements; split
15363 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
15365 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
15368 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
15369 conditionalize the whole on __GNUC__. Add fallback code
15370 depending neither on undefined nor implementation-defined behaviour.
15372 2015-08-19 Jiong Wang <jiong.wang@arm.com>
15374 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
15375 whitespaces with tab.
15377 2015-08-19 Florian Weimer <fweimer@redhat.com>
15379 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
15380 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
15381 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
15382 Move Name_Ids instantiation to the Prj.Proc package, to avoid
15385 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15387 * config/arm/arm.c (bounds_check): Use %wd print format
15388 for HOST_WIDE_INT arguments.
15390 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
15392 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
15393 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
15394 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
15395 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
15396 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
15397 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
15398 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
15399 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
15400 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
15403 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
15405 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
15406 function.c, graphite-scop-detection.c, haifa-sched.c,
15407 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
15408 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
15409 varasm.c: Remove typedefs of structs.
15411 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
15413 * config/rs6000/altivec.h (vec_adde): New define.
15414 (vec_addec): Likewise.
15415 (vec_double): Likewise.
15416 (vec_bperm): Likewise.
15417 (vec_gb): Likewise.
15418 * config/rs6000/rs6000-builtin.def (ADDE): New
15419 BU_ALTIVEC_OVERLOAD_3.
15421 (DOUBLE): New BU_VSX_OVERLOAD_1.
15422 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
15423 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
15424 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
15425 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
15426 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
15427 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
15428 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
15429 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
15430 and P8V_BUILTIN_VEC_VBPERMQ.
15432 2015-08-18 Jason Merrill <jason@redhat.com>
15434 * print-tree.c (print_node): Handle TREE_BINFO.
15436 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
15438 PR middle-end/36757
15439 * builtins.c (expand_builtin_signbit): Add asserts to make sure
15440 we can expand BUILT_IN_SIGNBIT inline.
15441 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
15442 * doc/extend.texi: Document the type-generic __builtin_signbit.
15444 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
15446 PR rtl-optimization/67218
15447 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
15448 (simplify_unary_operation_1): Use it.
15450 2015-08-18 Marek Polacek <polacek@redhat.com>
15452 PR middle-end/67222
15453 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
15454 if the call isn't valid.
15455 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
15456 gimple_call_builtin_p.
15457 (call_may_clobber_ref_p_1): Likewise.
15458 (stmt_kills_ref_p): Likewise.
15460 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
15462 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
15463 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
15464 (mips_hard_regno_scratch_ok): Likewise.
15465 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
15466 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
15468 2015-08-18 Bin Cheng <bin.cheng@arm.com>
15470 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
15471 (determine_value_range): Call refine_value_range_using_guard for
15472 each loop initial condition to improve value range.
15474 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
15476 * config/i386/i386.c: Remove include of fibheap.h.
15478 2015-08-17 Richard Biener <rguenther@suse.de>
15480 PR tree-optimization/67221
15481 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
15482 (sccvn_dom_walker::before_dom_children): Mark backedges of
15483 non-executable blocks as not executable.
15485 2015-08-17 David Sherwood <david.sherwood@arm.com>
15487 * config/arm/arm.c (neon_element_bits): Replace call to
15488 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
15489 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
15490 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
15491 (neon_vdup_lane<mode>): Likewise.
15492 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
15493 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
15494 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
15495 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
15496 * config/spu/spu.c (arith_immediate_p): Likewise.
15497 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
15498 * expr.c (expand_expr_real_2): Likewise.
15499 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
15500 * simplify-rtx.c (simplify_immed_subreg): Likewise.
15501 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
15502 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
15504 * fold-const.c (fold_binary_loc): Replace call to
15505 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
15506 GET_MODE_UNIT_PRECISION (m).
15508 2015-08-17 Mike Stump <mikestump@comcast.net>
15510 * config/arm/arm.c (arm_block_move_unaligned_straight):
15511 Emit normal move instead of unaligned load when source or destination
15512 are appropriately aligned.
15514 2015-08-17 Richard Biener <rguenther@suse.de>
15515 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
15517 PR middle-end/16107
15518 * match.pd (div (coss (op @0) : New simplifier.
15520 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
15522 PR rtl-optimization/64164
15524 PR middle-end/66983
15525 PR rtl-optimization/67000
15526 PR middle-end/67034
15527 PR middle-end/67035
15528 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
15529 * tree-ssa-copyrename.c: Removed.
15530 * opts.c (default_options_table): Drop -ftree-copyrename. Add
15531 -ftree-coalesce-vars.
15532 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
15533 * common.opt (ftree-copyrename): Ignore.
15534 (ftree-coalesce-inlined-vars): Likewise.
15535 * doc/invoke.texi: Remove the ignored options above.
15536 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
15537 * tree-ssa-coalesce.h: ... here.
15538 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
15539 headers required by it.
15540 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
15541 across variables when flag_tree_coalesce_vars. Check register
15542 use and promoted modes to allow coalescing. Do not coalesce
15543 maybe-byref parms with SSA_NAMEs of other variables, or
15544 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
15545 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
15546 with its member functions to tree-ssa-coalesce.c.
15547 (var_map_base_init): Likewise. Renamed to
15548 compute_samebase_partition_bases.
15549 (partition_view_normal): Drop want_bases parameter.
15550 (partition_view_bitmap): Likewise.
15551 * tree-ssa-live.h: Adjust declarations.
15552 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
15553 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
15554 default defs at the entry point.
15555 (dump_part_var_map): New.
15556 (compute_optimized_partition_bases): New, called by...
15557 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
15558 of compute_samebase_partition_bases. Adjust.
15559 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
15560 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
15561 (ssa_default_def_partition): New.
15562 (get_rtl_for_parm_ssa_default_def): New.
15563 (align_local_variable, add_stack_var): Support anonymous SSA
15565 (defer_stack_allocation): Likewise. Declare earlier.
15566 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
15567 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
15568 Do no record deferred-allocation marker in
15569 SA.partition_to_pseudo.
15570 (expand_stack_vars): Adjust check for the marker in it.
15571 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
15572 redundant MEM attr setting.
15573 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
15575 (expand_one_stack_var): ... this. New wrapper to check and
15576 skip already expanded SSA partitions.
15577 (record_alignment_for_reg_var): New, factored out of...
15578 (expand_one_var): ... this.
15579 (expand_one_ssa_partition): New.
15580 (adjust_one_expanded_partition_var): New.
15581 (expand_one_register_var): Check and skip already expanded SSA
15583 (expand_used_vars): Don't create DECLs for anonymous SSA
15584 names. Expand all SSA partitions, then adjust all SSA names.
15585 (pass::execute): Replace the loops that set
15586 SA.partition_to_pseudo from partition leaders and cleared
15587 DECL_RTL for multi-location variables, and that which used to
15588 rename vars and set attrs, with one that clears DECL_RTL and
15589 checks that PARMs and RESULTs default_defs match DECL_RTL.
15590 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
15591 * emit-rtl.c: Include stor-layout.h.
15592 (set_reg_attrs_for_parm): Handle NULL decl.
15593 (set_reg_attrs_for_decl_rtl): Take mode from expression if
15595 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
15596 rather than its possibly-NULL DECL.
15597 * explow.c (promote_ssa_mode): New.
15598 * explow.h (promote_ssa_mode): Declare.
15599 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
15600 (read_complex_part): Export.
15601 * expr.h (read_complex_part): Declare.
15602 * cfgexpand.h (parm_maybe_byref_p): Declare.
15603 * function.c: Include cfgexpand.h.
15604 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
15605 (use_register_for_parm_decl): Wrapper for the above to
15606 special-case the result_ptr.
15607 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
15608 (split_complex_args): Take assign_parm_data_all argument.
15609 Pass it to rtl_for_parm. Set up rtl and context for split
15610 args. Reset complex parm before fetching its default decl
15612 (assign_parms_unsplit_complex): Use the default-def complex
15613 parm rtl if it matches the components.
15614 (assign_parms_augmented_arg_list): Adjust.
15615 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
15616 multiple locations. Recognize split complex args.
15617 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
15618 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
15619 (assign_parm_setup_block): Prefer SSA-assigned location, and
15620 fill in its address if the memory location of a maybe-byref
15621 parm was not assigned by cfgexpand.
15622 (assign_parm_setup_reg): Likewise. Adjust its mode as
15623 needed. Use entry_parm for equiv if stack_parm is NULL. Make
15624 sure passed_pointer parms don't need conversion. Copy address
15625 or value as needed.
15626 (assign_parm_setup_stack): Prefer SSA-assigned location.
15627 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
15628 rtl before testing for pointer bounds. Special-case result_ptr.
15629 (expand_function_start): Maybe reset DECL_RTL of result.
15630 Prefer SSA-assigned location for result and static chain.
15631 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
15632 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
15633 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
15634 anonymous SSA names. Use promote_ssa_mode.
15635 (get_temp_reg): Likewise.
15636 (remove_ssa_form): Adjust.
15637 * stor-layout.c (layout_decl): Don't set mem attributes of
15639 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
15640 and get its reg_usage for reg invalidation.
15641 (compute_bb_dataflow): Pass it insn.
15642 (emit_notes_in_bb): Likewise.
15644 2015-08-14 Marek Polacek <polacek@redhat.com>
15646 * tree-core.h (tree_base): Fix typo.
15648 2015-08-14 Marek Polacek <polacek@redhat.com>
15650 PR middle-end/67133
15651 * gimple.c (infer_nonnull_range_by_attribute): Check that the
15652 nonnull argument position is not outside function arguments.
15654 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
15657 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
15658 'lconst_atomic' with 'const_atomic'.
15659 (atomic_fetch_<optab><mode>): Likewise.
15660 (atomic_<optab>_fetch<mode>): Likewise.
15661 * config/aarch64/iterators.md (lconst-atomic): Move below
15663 (const_atomic): New.
15665 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
15666 Bernd Schmidt <bernds@codesourcery.com>
15668 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
15670 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
15671 (DWARF2_DEBUGGING_INFO): Don't define.
15672 * debug.h (dwarf2_lineno_debug_hooks): Declare.
15673 * toplev.c (process_options): Add a case for it.
15674 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
15675 (dwarf2out_init): Skip most initializations if
15676 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
15678 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
15679 DWARF2_LINENO_DEBUGGING_INFO.
15680 * opts.c (set_debug_level): Likewise.
15682 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
15684 * config/arm/types.md (is_neon_type): Add missing types.
15686 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
15688 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
15690 * config/i386/i386.c (PTA_SKYLAKE): New macros.
15691 (processor_alias_table): Add skylake description.
15692 (enum processor_model): Add skylake processor.
15693 (arch_names_table): Add skylake record.
15694 * doc/invoke.texi: Add skylake item.
15696 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
15698 * ira-int.h: Include recog.h.
15699 * ira-build.c: Don't include recog.h.
15700 * ira-color.c: Likewise.
15701 * ira-conflicts.c: Likewise.
15702 * ira-costs.c: Likewise.
15703 * ira-emit.c: Likewise.
15704 * ira-lives.c: Likewise.
15706 * sched-deps.c: Likewise.
15707 * sel-sched.c: Likewise.
15708 * target-globals.c: Likewise.
15710 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
15713 * reload1.c (elimination_costs_in_insn): Make it obvious to the
15714 compiler that the n_dups and n_operands loop bounds are invariant.
15716 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15718 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
15719 expressions in A and B.
15721 2015-08-13 Richard Biener <rguenther@suse.de>
15723 * tree.c (nonnull_arg_p): Move from ...
15724 * tree-vrp.c (nonnull_arg_p): ... here.
15725 * tree.h (nonnull_arg_p): Declare.
15726 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
15727 here, register ptr != 0 for nonnull_arg_p pointer arguments.
15728 Properly initialize static chain and by-reference result pointer.
15729 (run_scc_vn): Adjust.
15731 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
15733 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
15736 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
15738 * config/aarch64/aarch64-protos.h
15739 (aarch64_gen_atomic_cas): Declare.
15740 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
15741 Choose appropriate instruction pattern for the target.
15742 (aarch64_gen_atomic_cas): New.
15743 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
15744 (atomic_compare_and_swap<mode>_1): Rename to
15745 aarch64_compare_and_swap<mode>. Fix some indentation.
15746 (aarch64_compare_and_swap<mode>_lse): New.
15747 (aarch64_atomic_cas<mode>): New.
15749 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
15751 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
15754 2015-08-13 Richard Biener <rguenther@suse.de>
15756 PR tree-optimization/67191
15757 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
15758 assert we value-numbered last stmts operand because it can validly
15759 trigger for unreachable code.
15761 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15763 PR rtl-optimization/67103
15764 * ifcvt.c (noce_try_store_flag_constants): Move
15765 x = (-(test != 0) & (b - a)) + a transformation to...
15766 (noce_try_cmove): ... Here. Try it if normal conditional
15769 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
15771 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
15773 * config/mips/mips.md (processor): Remove w32 and w64.
15775 2015-08-13 Richard Biener <rguenther@suse.de>
15777 PR tree-optimization/66502
15778 PR tree-optimization/67167
15779 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
15780 backedge arguments.
15781 (vn_phi_lookup): Adjust.
15782 (vn_phi_insert): Likewise.
15783 (visit_phi): Prefer to value-number to another PHI node
15784 over value-numbering to a PHI argument.
15785 (init_scc_vn): Mark DFS back edges.
15787 2015-08-13 Richard Biener <rguenther@suse.de>
15789 * gimple.h (gcall::code_): New constant static member.
15790 (gcond::code_): Likewise.
15791 * gimple.c (gcall::code_): Define.
15792 (gcond::code_): Likewise.
15793 (is_a_helper <const gcond *>): Add.
15794 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
15795 and forward to a new gcall overload with less checking and a
15796 cheaper way to access the operand.
15797 (gimple_call_lhs_ptr): Likewise.
15798 (gimple_call_set_lhs): Likewise.
15799 (gimple_call_internal_p): Likewise.
15800 (gimple_call_with_bounds_p): Likewise.
15801 (gimple_call_set_with_bounds): Likewise.
15802 (gimple_call_internal_fn): Likewise.
15803 (gimple_call_set_ctrl_altering): Likewise.
15804 (gimple_call_ctrl_altering_p): Likewise.
15805 (gimple_call_fntype): Likewise.
15806 (gimple_call_fn): Likewise.
15807 (gimple_call_fn_ptr): Likewise.
15808 (gimple_call_set_fndecl): Likewise.
15809 (gimple_call_fndecl): Likewise.
15810 (gimple_call_chain): Likewise.
15811 (gimple_call_num_args): Likewise.
15812 (gimple_call_arg): Likewise.
15813 (gimple_call_arg_ptr): Likewise.
15814 (gimple_call_set_arg): Likewise.
15815 (gimple_call_noreturn_p): Likewise.
15816 (gimple_cond_code): Likewise.
15817 (gimple_cond_lhs): Likewise.
15818 (gimple_cond_rhs): Likewise.
15819 (gimple_has_lhs): Reduce checking.
15821 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
15823 PR middle-end/25529
15824 * match.pd (div (mult @0 @1) @1) : New simplifier.
15826 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
15829 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
15830 predicate to allow construction of vector constants using the
15831 VSLDOI vector shift instruction.
15833 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
15836 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
15837 the number of bytes to be shifted left and filled in with either
15838 all zero or all one bits.
15839 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
15841 (output_vec_const_move): On power8, generate XXLORC to generate
15842 a vector constant with all 1's. Do a split if we need to use a
15843 VSLDOI instruction.
15845 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
15846 properly test for the MSB.
15848 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
15849 vector constants that can be created with VSLDOI.
15851 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
15854 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
15855 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
15856 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
15857 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
15858 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
15859 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
15860 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
15861 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
15862 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
15864 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
15866 * config/xtensa/constraints.md (define_constraint "Y"): New
15868 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
15869 * config/xtensa/linux.h (ASM_SPEC): Likewise.
15870 * config/xtensa/predicates.md (move_operand): Match constants
15871 and symbols in the presence of TARGET_AUTO_LITPOOLS.
15872 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
15873 immediate references to TLS data.
15874 (xtensa_emit_move_sequence): Don't force constants to memory in
15875 the presence of TARGET_AUTO_LITPOOLS.
15876 (print_operand): Add 'y' format, same as default, but capable of
15877 printing SF mode constants as well.
15878 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
15879 (movsf_internal): Add movi pattern that loads literal.
15880 (movsf, movdf): Don't force constants to memory in the presence
15881 of TARGET_AUTO_LITPOOLS.
15882 (movdf_internal): Add 'Y' constraint.
15883 * config/xtensa/xtensa.opt (mauto-litpools): New option.
15884 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
15886 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
15888 * config/arm/arm-fpus.def: Replace booleans with feature flags.
15890 * config/arm/arm.c (ARM_FPU): Update macro.
15891 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
15892 (TARGET_FP16): Likewise.
15893 (TARGET_CRYPTO): Likewise.
15894 (TARGET_NEON): Likewise.
15895 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
15898 2015-08-12 Tom de Vries <tom@codesourcery.com>
15902 * doc/install.texi: Remove --with_host_libstdcxx item. Update
15903 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
15904 accordingly. Mention default for --with-stage1-ldflags.
15906 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
15908 * config/arm/arm.h (arm_fpu_feature_set): New.
15909 (ARM_FPU_FSET_HAS): New.
15910 (FPU_FL_NONE): New.
15911 (FPU_FL_NEON): New.
15912 (FPU_FL_FP16): New.
15913 (FPU_FL_CRYPTO): New.
15915 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15917 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
15918 after -mcmodel=large -fPIC sorry.
15920 2015-08-12 Richard Biener <rguenther@suse.de>
15922 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
15923 comparison operand order and commutative ternary op operand order.
15924 (sccvn_dom_walker::cond_stack): New state to track temporary
15926 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
15928 (sccvn_dom_walker::record_cond): Add a single temporary conditional
15930 (sccvn_dom_walker::record_conds): Add a temporary conditional
15931 expressions and all related expressions also true/false.
15932 (sccvn_dom_walker::before_dom_children): Record temporary
15933 expressions based on the controlling condition of a single
15934 predecessor. When trying to simplify a conditional statement
15935 lookup expressions we might have inserted earlier.
15937 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
15940 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
15941 to ARM core registers.
15943 2015-08-12 Nathan Sidwell <nathan@acm.org>
15945 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
15946 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
15948 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
15950 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
15951 line with comments.
15952 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
15954 2015-08-12 Richard Biener <rguenther@suse.de>
15956 * gimple.h (remove_pointer): New trait.
15957 (GIMPLE_CHECK2): New inline template function.
15958 (gassign::code_): New constant static member.
15959 (is_a_helper<const gassign *>): Add.
15960 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
15961 and forward to a new gassign overload with less checking and a
15962 cheaper way to access the operand.
15963 (gimple_assign_lhs_ptr): Likewise.
15964 (gimple_assign_set_lhs): Likewise.
15965 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
15967 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
15969 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
15971 (gimple_assign_rhs_code): Likewise.
15972 * gimple.c (gassign::code_): Define.
15974 2015-08-12 Richard Biener <rguenther@suse.de>
15976 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
15977 Eliminate edges marked as not executable by SCCVN.
15978 * tree-ssa-sccvn.c: Include gimple-iterator.h.
15979 (cond_dom_walker): Rename to sccvn_dom_walker.
15980 (sccvn_dom_walker::before_dom_children): Value-number defs
15982 (run_scc_vn): Remove loop value-numbering all SSA names.
15983 Drop not visited SSA names to varying.
15985 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
15987 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
15988 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
15989 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
15990 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
15991 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
15992 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
15993 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
15994 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
15995 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
15997 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
16000 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
16001 to enum feature_priority and feature_list.
16002 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
16003 and isa_names_table.
16005 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
16007 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
16008 vect_induction_def.
16010 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
16014 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
16015 account when deciding what was the command-line status.
16017 2015-08-11 Nathan Sidwell <nathan@acm.org>
16019 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
16021 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
16022 we're not the only contributor to target phi.
16024 2015-08-11 Jiong Wang <jiong.wang@arm.com>
16026 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
16029 2015-08-11 Tom de Vries <tom@codesourcery.com>
16031 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
16033 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
16035 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
16037 * config/i386/i386.md (cpu): Remove knl.
16039 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
16042 PR middle-end/66332
16043 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
16044 open-coded sequence.
16045 * omp-low.c (oacc_process_reduction_data): Remove handline of
16046 GOMP_DEVICE_HOST_NONSHM.
16048 * lto-streamer-in.c (lto_input_mode_table): Adjust to
16049 GET_MODE_INNER changes.
16051 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
16052 Ilya Verbin <ilya.verbin@intel.com>
16054 * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
16056 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
16058 * doc/options.texi (EnabledBy): Document that the argument must be
16060 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
16061 Not enabled by -Wall.
16062 * optc-gen.awk: Give nicer error messages. Detect if the argument
16063 of EnabledBy is not a Common option.
16064 * common.opt (Wnull-dereference): Not enabled by -Wall.
16065 * opt-functions.awk (lang_enabled_by): Nicer error messages.
16067 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
16069 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
16070 model == 0x4f as Broadwell.
16072 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
16074 PR rtl-optimization/67028
16075 * combine.c (simplify_comparison): Fix comment. Rearrange code.
16076 Add test to see if a const_int fits in the new mode.
16078 2015-08-07 DJ Delorie <dj@redhat.com>
16080 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
16082 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
16084 PR rtl-optimization/67029
16085 * ira-color.c: Include "recog.h" before including "ira-int.h".
16086 * target-globals.c: Likewise.
16087 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
16088 adds an alternative_mask argument and use it instead of
16089 preferred_alternatives.
16090 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
16091 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
16092 * sched-deps.c: Include "ira-int.h" after including "ira.h".
16093 (sched_analyze_insn): Update call to
16094 ira_implicitly_set_insn_hard_regs.
16095 * sel-sched.c: Include "ira-int.h" after including "ira.h".
16096 (implicit_clobber_conflict_p): Update call to
16097 ira_implicitly_set_insn_hard_regs.
16099 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
16101 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
16103 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
16106 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
16107 currently_expanding_to_rtl is set.
16109 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
16111 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
16112 * configure: Regenerate.
16114 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16115 Jiong Wang <jiong.wang@arm.com>
16117 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
16118 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
16119 (REG_CLASS_NAMES): Likewise.
16120 (REG_CLASS_CONTENTS): Likewise.
16121 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
16122 (aarch64_register_move_cost): Likewise.
16123 (aarch64_load_symref_appropriately): Invoke the new added pattern if
16125 * config/aarch64/constraints.md (Uc0): New constraint.
16127 2015-08-06 Jiong Wang <jiong.wang@arm.com>
16129 * config/aarch64/constraints.md (Usf): Add the test of
16130 aarch64_is_noplt_call_p.
16132 2015-08-06 Jiong Wang <jiong.wang@arm.com>
16134 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
16136 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
16137 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
16138 (call_symbol): Likewise.
16140 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
16142 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
16143 for vectorizing multiplication patterns.
16144 * tree-vectorizer.h: Adjust the number of patterns.
16146 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
16148 * config/i386/sse.md (*vec_concatv2df): Declare added
16149 alternatives as sselog type.
16151 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16153 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
16156 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16158 * config/s390/s390.c (s390_expand_tbegin): Expand either
16159 tbegin_1_z13 or tbegin_1 depending on VX flag.
16160 * config/s390/s390.md ("tbegin_1_z13"): New expander.
16162 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16164 * config/s390/s390.opt: Clarify description for -mzvector
16165 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
16168 2015-08-06 Richard Biener <rguenther@suse.de>
16170 * gimple.h (gimple_call_set_fn): Access op member directly.
16171 (gimple_call_chain_ptr): Likewise.
16172 (gimple_call_set_chain): Likewise.
16173 (gimple_cond_lhs_ptr): Likewise.
16174 (gimple_cond_set_lhs): Likewise.
16175 (gimple_cond_rhs_ptr): Likewise.
16176 (gimple_cond_set_rhs): Likewise.
16177 (gimple_cond_true_label): Likewise.
16178 (gimple_cond_set_true_label): Likewise.
16179 (gimple_cond_set_false_label): Likewise.
16180 (gimple_cond_false_label): Likewise.
16181 (gimple_label_label): Likewise.
16182 (gimple_label_set_label): Likewise.
16183 (gimple_goto_set_dest): Likewise.
16184 (gimple_asm_input_op): Likewise.
16185 (gimple_asm_input_op_ptr): Likewise.
16186 (gimple_asm_set_input_op): Likewise.
16187 (gimple_asm_output_op): Likewise.
16188 (gimple_asm_output_op_ptr): Likewise.
16189 (gimple_asm_set_output_op): Likewise.
16190 (gimple_asm_clobber_op): Likewise.
16191 (gimple_asm_set_clobber_op): Likewise.
16192 (gimple_asm_label_op): Likewise.
16193 (gimple_asm_set_label_op): Likewise.
16194 (gimple_switch_index): Likewise.
16195 (gimple_switch_index_ptr): Likewise.
16196 (gimple_return_retval_ptr): Likewise.
16197 (gimple_return_retval): Likewise.
16198 (gimple_return_set_retval): Likewise.
16199 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
16200 (gimple_switch_label): Likewise.
16201 (gimple_switch_set_label): Likewise.
16203 2015-08-06 Richard Biener <rguenther@suse.de>
16205 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
16206 bool comparison canonicalization and restrict to integers.
16208 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
16210 * coretypes.h (enum symbol_visibility): Relocate here.
16211 * flag-types.h (enum symbol_visibility): Remove.
16212 * tree-core.h (enum symbol_visibility): Remove.
16214 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
16217 * config/rs6000/rs6000.c (rs6000_emit_prologue): Check
16218 for no_split_stack function attribute along with
16220 (rs6000_expand_split_stack_prologue): Likewise.
16222 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
16223 Jeff Law <law@redhat.com>
16226 * doc/invoke.texi (Wnull-dereference): New.
16227 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
16228 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
16229 Warn for potential NULL dereferences.
16230 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
16231 * ubsan.c (instrument_nonnull_arg): Call
16232 infer_nonnull_range_by_attribute.
16233 (instrument_nonnull_return): Likewise.
16234 * common.opt (Wnull-dereference); New.
16235 * gimple.c (infer_nonnull_range): Remove bool arguments.
16236 (infer_nonnull_range_by_dereference): New.
16237 (infer_nonnull_range_by_attribute): New.
16238 * gimple.h: Update declarations.
16240 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
16242 * gensupport.c (sequence_num): Replace with...
16243 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
16244 ...these new variables.
16245 (init_rtx_reader_args_cb): Update accordingly.
16246 (get_num_code_insns): Likewise.
16247 (read_md_rtx): Rework to use a while loop and get_c_test.
16248 Use the new counters. Remove redundant DEFINE_SUBST case.
16249 * genoutput.c (gen_split): Delete.
16250 (main): Don't call it.
16252 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
16254 * gensupport.h (get_c_test): Declare.
16255 * gensupport.c (get_c_test): New function.
16256 * genconditions.c (main): Use it.
16257 * genrecog.c (validate_pattern): Likewise.
16258 (match_pattern_1): Likewise. Remove c_test argument.
16259 (match_pattern): Update accordingly and remove c_test argument.
16260 (main): Update accordingly.
16262 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
16264 * gensupport.h (get_num_insn_codes): Declare.
16265 * gensupport.c (get_num_insn_codes): New function.
16266 * genattrtab.c (optimize_attrs): Rename max_insn_code to
16268 (main): Likewise. Use get_num_insn_codes.
16269 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
16271 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
16273 PR middle-end/66311
16274 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
16275 is zero- rather than sign-extended.
16277 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
16279 * target-insns.def (can_extend): Delete.
16281 2015-08-05 Richard Biener <rguenther@suse.de>
16283 PR tree-optimization/67121
16284 * tree-if-conv.c (combine_blocks): Clear range-info produced
16285 by stmts no longer executed conditionally.
16287 2015-08-05 Nick Clifton <nickc@redhat.com>
16289 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
16290 to allow identical far pointers to remain.
16292 2015-08-05 Richard Biener <rguenther@suse.de>
16294 PR middle-end/67120
16295 * match.pd: Compare address bases with == if they are decls
16296 or SSA names, not operand_equal_p. Otherwise fail.
16298 2015-08-05 Richard Biener <rguenther@suse.de>
16300 PR tree-optimization/67055
16301 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
16304 * g++.dg/torture/pr67055.C: New testcase.
16306 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
16308 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
16310 (define_attr "enabled"): Handle avx521vl and noavx512vl.
16311 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
16312 AVX-512 alternative out of SSE.
16313 (define_insn "*vec_concatv2df"): Ditto.
16315 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
16317 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
16318 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
16319 CODE_FOR_avx_ptestv4di.
16320 * config/i386/sse.md (define_mode_iterator V_AVX): New.
16321 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
16322 (define_insn "avx_ptest256"): Merge this ...
16323 (define_insn "sse4_1_ptest"): And this ...
16324 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
16326 2015-08-05 Richard Biener <rguenther@suse.de>
16328 PR tree-optimization/67109
16329 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
16330 against too big groups. Print whether this is a load or store
16331 group. Rename from ...
16332 (vect_analyze_group_access): ... this which is now a wrapper
16333 dissolving an invalid group.
16334 (vect_analyze_data_ref_accesses): Print whether this is a load
16337 2015-08-05 Richard Biener <rguenther@suse.de>
16339 PR middle-end/67107
16340 * match.pd: Guard const_binop result checking against NULL_TREE
16343 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
16345 * cse.c (cse_insn): Restoring old behaviour for src_eqv
16346 when dest and value in the REG_EQUAL are same and dest
16347 is STRICT_LOW_PART.
16349 2015-08-04 Anatoly Sokolov <aesok@post.ru>
16351 * config/moxie/moxie.h (PRINT_OPERAND,
16352 PRINT_OPERAND_ADDRESS): Remove macros.
16353 * config/moxie/moxie-protos.h (moxie_print_operand,
16354 moxie_print_operand_address): Remove declaration.
16355 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
16356 TARGET_PRINT_OPERAND_ADDRESS): Define.
16357 (moxie_print_operand, moxie_print_operand_address): Make static.
16359 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
16362 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
16363 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
16365 2015-08-04 Richard Biener <rguenther@suse.de>
16367 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
16369 (dt_operand::gen_gimple_expr): Adjust.
16371 2015-08-04 Richard Biener <rguenther@suse.de>
16373 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
16374 bool compares on RHS.
16375 * match.pd: Add X ==/!= !X is false/true pattern.
16377 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
16379 * config/aarch64/aarch64.c: Change inner loop statement cost
16380 to be consistent with other targets.
16382 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
16384 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
16387 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
16389 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
16390 (machine_function): Remove pseudos field.
16392 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16394 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
16395 Exit early and use target_option_current_node if processing current
16398 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16400 * doc/extend.texi (AArch64 Function Attributes): New node.
16401 (AArch64 Pragmas): Likewise.
16403 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16405 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
16406 Initialize simd builtins if TARGET_SIMD.
16407 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
16408 Make sure that the builtins are initialized only once no matter how
16409 many times the function is called.
16410 (aarch64_init_builtins): Unconditionally initialize crc builtins.
16411 (aarch64_relayout_simd_param): New function.
16412 (aarch64_simd_expand_args): Use above during argument expansion.
16413 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
16414 simd builtins if TARGET_SIMD.
16415 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
16417 (aarch64_relayout_simd_types): Likewise.
16419 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16421 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
16422 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
16423 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
16424 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
16426 (aarch64_reset_previous_fndecl): New function.
16427 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
16429 * config/aarch64/aarch64-c.c: New file.
16430 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
16431 Push and pop options at beginning and end. Remove ifdef
16432 __ARM_FEATURE_CRC32.
16433 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
16434 Add pragma +nothing+simd and +nothing+crypto where appropriate.
16435 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
16436 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
16438 (aarch64_register_pragmas): Likewise.
16439 (aarch64_reset_previous_fndecl): Likewise.
16440 (aarch64_process_target_attr): Likewise.
16441 (aarch64_override_options_internal): Likewise.
16443 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16445 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
16447 (aarch64_can_inline_p): Likewise.
16448 (TARGET_CAN_INLINE_P): Define.
16450 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16452 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
16453 Remove static. Handle OPT_mgeneral_regs_only,
16454 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
16455 OPT_momit_leaf_frame_pointer.
16456 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
16457 (aarch64_attr_opt_type): New enum.
16458 (aarch64_attribute_info): New struct.
16459 (aarch64_handle_attr_arch): New function.
16460 (aarch64_handle_attr_cpu): Likewise.
16461 (aarch64_handle_attr_tune): Likewise.
16462 (aarch64_handle_attr_isa_flags): Likewise.
16463 (aarch64_attributes): New table.
16464 (aarch64_process_one_target_attr): New function.
16465 (num_occurences_in_str): Likewise.
16466 (aarch64_process_target_attr): Likewise.
16467 (aarch64_option_valid_attribute_p): Likewise.
16468 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
16469 * config/aarch64/aarch64-protos.h: Include input.h
16470 (aarch64_handle_option): Declare prototype.
16472 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16474 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
16475 * config/aarch64/aarch64.c: Include target-globals.h
16476 (aarch64_previous_fndecl): New variable.
16477 (aarch64_set_current_function): New function.
16478 (TARGET_SET_CURRENT_FUNCTION): Define.
16480 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16482 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
16483 (explicit_arch): Likewise.
16484 (x_aarch64_isa_flags): Likewise.
16485 (mgeneral-regs-only): Mark as Save.
16486 (mfix-cortex-a53-835769): Likewise.
16487 (mcmodel=): Likewise.
16488 (mstrict-align): Likewise.
16489 (momit-leaf-frame-pointer): Likewise.
16490 (mtls-dialect): Likewise.
16491 (master=): Likewise.
16492 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
16493 (aarch64_isa_flags): Remove extern declaration.
16494 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
16495 to indicate success or failure.
16496 (aarch64_validate_march): Likewise.
16497 (aarch64_validate_mtune): Likewise.
16498 (aarch64_isa_flags): Delete.
16499 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
16500 instead of aarch64_isa_flags.
16501 (aarch64_get_tune_cpu): New function.
16502 (aarch64_get_arch): Likewise.
16503 (aarch64_override_options): Use above and set up explicit_tune_core
16505 (aarch64_print_extension): Move earlier in file. Add isa_flags
16506 argument and use that instead of the global aarch64_isa_flags.
16507 (aarch64_option_save): New function.
16508 (aarch64_option_restore): Likewise.
16509 (aarch64_option_print): Likewise.
16510 (aarch64_declare_function_name): Likewise.
16511 (aarch64_start_file): Delete.
16512 (TARGET_ASM_FILE_START): Do not define.
16513 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
16514 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
16517 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16519 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
16520 flag_omit_leaf_frame_pointer to 2.
16522 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16524 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
16526 (TARGET_FIX_ERR_A53_835769): New macro.
16527 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
16528 handling of opts->x_aarch64_fix_a53_err835769.
16529 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
16530 than aarch64_fix_a53_err835769.
16531 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
16532 * config/aarch64/aarch64-linux.h: Likewise.
16534 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
16536 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
16537 ix86_expand_int_movcc as boolean.
16539 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16541 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
16542 (aarch64_cpu_string): Likewise.
16543 (aarch64_tune_string): Likewise.
16544 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
16545 (aarch64_parse_extension): Return aarch64_parse_opt_result.
16546 Add extra argument to put result into.
16547 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
16548 (aarch64_parse_cpu): Add arguments to put results into. Return
16549 aarch64_parse_opt_result.
16550 (aarch64_parse_tune): Likewise.
16551 (aarch64_override_options_after_change_1): New function.
16552 (aarch64_override_options_internal): New function.
16553 (aarch64_validate_mcpu): Likewise.
16554 (aarch64_validate_march): Likewise.
16555 (aarch64_validate_mtune): Likewise.
16556 (aarch64_override_options): Update to reflect above changes.
16557 Move some logic into aarch64_override_options_internal.
16558 Initialize target_option_default_node and target_option_current_node.
16559 (aarch64_override_options_after_change): Move logic into
16560 aarch64_override_options_after_change_1 and call it with global_options.
16561 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
16562 flag values from that.
16564 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16566 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
16567 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
16568 * config/aarch64/aarch64.c (struct processor): Add arch field.
16569 (all_architectures): Handle above, move above all_cores.
16570 (all_cores): Handle above.
16571 (aarch64_parse_arch): Handle above changes.
16572 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
16573 above. Update comments.
16574 (armv8.1-a): Likewise.
16575 * config/aarch64/aarch64-cores.def: Update according to above.
16576 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
16577 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
16578 aarch64_arch_driver_info.
16580 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16582 * config/aarch64/aarch64.c (struct processor): Add ident field.
16583 Rename core sched_core.
16584 (all_cores): Handle above changes.
16585 (all_architectures): Likewise.
16586 (aarch64_parse_arch): Likewise.
16587 (aarch64_override_options): Likewise.
16589 2015-08-04 Richard Biener <rguenther@suse.de>
16591 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
16592 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
16593 comparisons embedded in [VEC_]COND_EXPRs.
16595 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
16597 * tree-if-conv.c: Fix various typos in comments.
16598 * tree-vect-stmts.c: Likewise.
16600 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
16602 PR tree-optimization/67043
16603 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
16604 preheader after hoisting invariant in it.
16605 (find_defs): Force recomputation of all luids.
16607 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
16609 * config/rs6000/htm.md (tabort.): Restrict the source operand to
16610 using a base register.
16612 2015-08-03 David Malcolm <dmalcolm@redhat.com>
16614 * main.c (main): Pass in NULL for toplev's external_timer.
16615 * timevar.c: Include coretypes.h.
16616 (class timer::named_items): New.
16617 (timer::named_items::named_items): New.
16618 (timer::named_items::~named_items): New.
16619 (timer::named_items::push): New.
16620 (timer::named_items::pop): New.
16621 (timer::named_items::print): New.
16622 (timer::timer): Initialize field "m_jit_client_items".
16623 (timer::~timer): New.
16624 (timer::push): Move bulk of implementation to...
16625 (timer::push_internal): ...here. New function.
16626 (timer::pop): Move bulk of implementation to...
16627 (timer::pop_internal): ...here. New function.
16628 (timer::push_client_item): New.
16629 (timer::pop_client_item): New.
16630 (timer::print_row): New function, taken from timer::print.
16631 (timer::print): Print "GCC items" header if we also have client
16632 items. Move row-printing to timer::print_row. Print any client
16634 (timer::get_topmost_item_name): New method.
16635 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
16636 (TV_JIT_CLIENT_CODE): New.
16637 * timevar.h (timer::push_client_item): New declaration.
16638 (timer::pop_client_item): New declaration.
16639 (timer::get_topmost_item_name): New method.
16640 (timer::push_internal): New declaration.
16641 (timer::pop_internal): New declaration.
16642 (timer::print_row): New declaration.
16643 (timer::named_items): New declaration.
16644 (timer::m_jit_client_items): New field.
16645 (timer): Add friend class named_items.
16646 (auto_timevar::auto_timevar): Add timer param.
16647 (auto_timevar::~auto_timevar): Use field "m_timer".
16648 (auto_timevar::m_timer): New field.
16649 * toplev.c (initialize_rtl): Add g_timer as param when
16650 constructing auto_timevar instance.
16651 (toplev::toplev): Add "external_timer" param, and use it to
16652 initialize the "g_timer" global if non-NULL.
16653 (toplev::~toplev): If this created "g_timer", delete it.
16654 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
16655 with "external_timer" timer *.
16657 2015-08-03 Alexander Basov <coohpt@gmail.com>
16659 PR middle-end/64744
16660 PR middle-end/48470
16661 PR middle-end/43404
16662 * cfgexpand.c (expand_one_var): Add check if stack is going to
16663 be used in naked function.
16664 * expr.c (expand_expr_addr_expr_1): Remove excess checking
16665 whether expression should not reside in MEM.
16666 * function.c (use_register_for_decl): Do not use registers for
16667 non-register things (volatile, float, BLKMode) in naked functions.
16669 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
16672 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
16673 Adjust splits to match new pattern.
16675 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
16677 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
16680 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
16681 point in VSX registers.
16683 * config/rs6000/constraints.md (wb constraint): Document unused
16685 (we constraint): Likewise.
16686 (wo constraint): Likewise.
16687 (wp constraint): New constraint for IEEE 128-bit floating point in
16689 (wq constraint): Likewise.
16691 * config/rs6000/predicates.md (easy_fp_constant): Add support for
16692 IEEE 128-bit floating point in VSX registers.
16693 (easy_scalar_constant): Likewise.
16695 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
16696 constraints (wp, wq) for IEEE 128-bit floating point in VSX
16698 (rs6000_init_hard_regno_mode_ok): Likewise.
16700 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
16701 floating point in VSX registers.
16704 (VSX_M2): Likewise.
16710 (vsx_le_permute_<mode>): Add support to properly swap bytes for
16711 IEEE 128-bit floating point in VSX registers on little endian.
16712 (vsx_le_undo_permute_<mode>): Likewise.
16713 (vsx_le_perm_load_<mode>): Likewise.
16714 (vsx_le_perm_store_<mode>): Likewise.
16715 (splitters for IEEE 128-bit fp moves): Likewise.
16717 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
16720 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
16721 floating point in VSX registers.
16724 * doc/md.text (Machine Constraints): Document wp and wq
16725 constraints on PowerPC.
16727 2015-08-03 Jeff Law <law@redhat.com>
16729 PR middle-end/66314
16730 PR gcov-profile/66899
16731 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
16732 iterate over the jump threading paths when an element in the
16733 jump threading paths array is eliminated.
16735 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
16737 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
16739 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
16741 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
16742 is_use_properly_guarded the variable def_preds. Free its
16743 contents before returning.
16744 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
16745 (is_use_properly_guarded): Replace local variable def_preds with
16746 a parameter. Adjust accordingly. Only update *def_preds if it's
16749 2015-08-03 Richard Biener <rguenther@suse.de>
16751 * genmatch.c (simplify::for_subst_vec): New member.
16752 (binary_ok): New helper for for lowering.
16753 (lower_for): Delay substituting operators into result expressions
16754 if we can merge the results eventually again.
16755 (capture_info::walk_result): Adjust for user_id appearing as
16756 result expression operator.
16757 (expr::gen_transform): Likewise.
16758 (dt_simplify::gen_1): Likewise.
16759 (dt_simplify::gen): Pass not substituted operators to tail
16760 functions or initialize local variable with it.
16761 (decision_tree::gen): Adjust function signature.
16762 * match.pd: Fix tests against global code and add default
16763 cases to switch stmts.
16765 2015-08-03 Richard Biener <rguenther@suse.de>
16767 * genmatch.c (dt_simplify::gen): Create captures array
16768 with an initializer.
16770 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16772 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
16773 the host compiler is affected by placement new aliasing bug.
16774 * configure: Regenerate.
16775 * Makefile.in (ALIASING_FLAGS): New variable.
16776 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
16778 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
16781 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
16782 (negmulsf3_vfp): Likewise.
16783 (muldf3negdf_vfp): Disable for -frounding-math.
16784 (mulsf3negsf_vfp): Likewise.
16785 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
16786 fix MULT cost with -frounding-math.
16788 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16790 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
16791 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
16792 explicit. Prefer to add the flag whenever possible.
16793 (noce_process_if_block): Try noce_try_store_flag_constants before
16796 2015-08-03 Richard Biener <rguenther@suse.de>
16798 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
16799 New hash-map to record equivalent transforms.
16800 (dt_node::analyze): Populate the equivalent transforms hash-map.
16801 (dt_simplify::info): Add reference to hash-map entry.
16802 (dt_simplify::gen): If we have split out a function for the
16803 transform, generate a call to it.
16804 (sinfo_hashmap_traits::hash): New function.
16805 (compare_op): New helper function for ...
16806 (sinfo_hashmap_traits::equal_keys): ... this new function.
16807 (decision_tree::gen): Split out common equivalent transforms
16810 2015-08-03 Richard Biener <rguenther@suse.de>
16812 * gimple-fold.c (fold_gimple_assign): Remove folding of
16813 the comparison in COND_EXPRs.
16815 2015-08-03 Richard Biener <rguenther@suse.de>
16817 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
16818 on the rhs of assignments first simplify the embedded
16821 2015-08-03 Richard Biener <rguenther@suse.de>
16823 PR tree-optimization/66917
16824 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
16826 (DR_VECT_AUX): New macro.
16827 (set_dr_misalignment): Adjust.
16828 (dr_misalignment): Likewise.
16829 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
16830 Compute whether the base is at least element aligned.
16831 * tree-vect-stmts.c (ensure_base_align): Adjust.
16832 (vectorizable_store): If the base is not element aligned
16833 preserve alignment of the original access if misalignment is unknown.
16834 (vectorizable_load): Likewise.
16836 2015-08-02 Martin Sebor <msebor@redhat.com>
16838 * c-family/c.opt (-Wframe-address): New warning option.
16839 * doc/invoke.texi (Wframe-address): Document it.
16840 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
16841 Clarify possible effects of calling the functions with non-zero
16842 arguments and mention -Wframe-address.
16843 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
16845 2015-08-01 Michael Collison <michael.collison@linaro.org
16846 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
16848 * config/arm/arm.md (*arm_smin_cmp): New pattern.
16849 (*arm_umin_cmp): Likewise.
16851 2015-08-01 Caroline Tice <cmtice@google.com>
16854 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
16856 (vtbl_find_mangled_name): New function.
16857 (vtbl_register_mangled_name): New function.
16858 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
16859 mangled name in mangled name vectors.
16860 (find_or_create_vtbl_map_node): Ditto.
16861 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
16862 update recursion_depth on function entry; pass it to every recursive
16863 call; automatically exit if depth > 25 (give up looking at that point).
16864 (verify_bb_vtables): Initialize recursion_depth and pass it to
16865 var_is_used_for_virtual_call_p.
16866 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
16867 global variable decls.
16868 (vtbl_register_mangled_name): New extern function decl.
16870 2015-08-01 Tom de Vries <tom@codesourcery.com>
16872 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
16874 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
16876 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
16877 operation_no_trapping_overflow. Allow non-overflow operations.
16878 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
16881 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
16884 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
16886 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16888 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
16889 Enable for TARGET_32BIT.
16890 (*if_move_neg): Likewise.
16892 2015-07-31 Nick Clifton <nickc@redhat.com>
16894 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
16895 Returns true for __model__.
16896 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
16898 2015-07-31 Alan Modra <amodra@gmail.com>
16901 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
16902 (rs6000_emit_prologue): Set it.
16903 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
16905 2015-07-31 Richard Biener <rguenther@suse.de>
16907 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
16908 -> X == (C1 ^ C2) which is already implemented in match.pd.
16909 Remove redundant dispatching to fold_relational_const.
16910 Move unordered self and NaN compares ...
16911 * match.pd: ... as patterns here. Remove some stray captures
16914 2015-07-31 Petr Murzin <petr.murzin@intel.com>
16916 * config/i386/i386.c
16917 (bdesc_special_args): Convert mask type from signed to unsigned for
16919 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
16920 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
16921 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
16922 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
16923 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
16924 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
16925 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
16926 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
16927 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
16928 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
16929 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
16930 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
16931 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
16932 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
16933 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
16934 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
16935 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
16936 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
16937 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
16938 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
16939 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
16940 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
16941 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
16942 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
16943 * config/i386/i386-builtin-types.def
16944 (V16QI_FTYPE_V16SI): Remove.
16945 (V8DF_FTYPE_V8SI): Ditto.
16946 (V8HI_FTYPE_V8DI): Ditto.
16947 (V8SI_FTYPE_V8DI): Ditto.
16948 (V8SF_FTYPE_V8DF): Ditto.
16949 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
16950 (V16HI_FTYPE_V16SI): Ditto.
16951 (V16SF_FTYPE_V16HI): Ditto.
16952 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
16953 (V16SF_FTYPE_V16SI): Ditto.
16954 (V4DI_FTYPE_V4DI): Ditto.
16955 (V16SI_FTYPE_V16SF): Ditto.
16956 (V16SF_FTYPE_FLOAT): Ditto.
16957 (V8DF_FTYPE_DOUBLE): Ditto.
16958 (V8DI_FTYPE_INT64): Ditto.
16959 (V8DI_FTYPE_V4DI): Ditto.
16960 (V16QI_FTYPE_V8DI): Ditto.
16961 (UINT_FTYPE_V4SF): Ditto.
16962 (UINT64_FTYPE_V4SF): Ditto.
16963 (UINT_FTYPE_V2DF): Ditto.
16964 (UINT64_FTYPE_V2DF): Ditto.
16965 (V16SI_FTYPE_V16SI): Ditto.
16966 (V8DI_FTYPE_V8DI): Ditto.
16967 (V16SI_FTYPE_PV4SI): Ditto.
16968 (V16SF_FTYPE_PV4SF): Ditto.
16969 (V8DI_FTYPE_PV2DI): Ditto.
16970 (V8DF_FTYPE_PV2DF): Ditto.
16971 (V4DI_FTYPE_PV2DI): Ditto.
16972 (V4DF_FTYPE_PV2DF): Ditto.
16973 (V16SI_FTYPE_PV2SI): Ditto.
16974 (V16SF_FTYPE_PV2SF): Ditto.
16975 (V8DI_FTYPE_PV4DI): Ditto.
16976 (V8DF_FTYPE_PV4DF): Ditto.
16977 (V8SF_FTYPE_FLOAT): Ditto.
16978 (V4SF_FTYPE_FLOAT): Ditto.
16979 (V4DF_FTYPE_DOUBLE): Ditto.
16980 (V8SF_FTYPE_PV4SF): Ditto.
16981 (V8SI_FTYPE_PV4SI): Ditto.
16982 (V4SI_FTYPE_PV2SI): Ditto.
16983 (V8SF_FTYPE_PV2SF): Ditto.
16984 (V8SI_FTYPE_PV2SI): Ditto.
16985 (V16SF_FTYPE_PV8SF): Ditto.
16986 (V16SI_FTYPE_PV8SI): Ditto.
16987 (V8DI_FTYPE_V8SF): Ditto.
16988 (V4DI_FTYPE_V4SF): Ditto.
16989 (V2DI_FTYPE_V4SF): Ditto.
16990 (V64QI_FTYPE_QI): Ditto.
16991 (V32HI_FTYPE_HI): Ditto.
16992 (V8UHI_FTYPE_V8UHI): Ditto.
16993 (V16UHI_FTYPE_V16UHI): Ditto.
16994 (V32UHI_FTYPE_V32UHI): Ditto.
16995 (V2UDI_FTYPE_V2UDI): Ditto.
16996 (V4UDI_FTYPE_V4UDI): Ditto.
16997 (V8UDI_FTYPE_V8UDI): Ditto.
16998 (V4USI_FTYPE_V4USI): Ditto.
16999 (V8USI_FTYPE_V8USI): Ditto.
17000 (V16USI_FTYPE_V16USI): Ditto.
17001 (V2DF_FTYPE_V2DF_UINT64): Ditto.
17002 (V2DI_FTYPE_V2DF_V2DF): Ditto.
17003 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
17004 (V8DF_FTYPE_V8DF_V8DI): Ditto.
17005 (V4SF_FTYPE_V4SF_UINT64): Ditto.
17006 (V4SI_FTYPE_V4SF_V4SF): Ditto.
17007 (V16SF_FTYPE_V16SF_V16SI): Ditto.
17008 (V64QI_FTYPE_V32HI_V32HI): Ditto.
17009 (V32HI_FTYPE_V16SI_V16SI): Ditto.
17010 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
17011 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
17012 (V32HI_FTYPE_V64QI_V64QI): Ditto.
17013 (V32HI_FTYPE_V32HI_V32HI): Ditto.
17014 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
17015 (V16SI_FTYPE_V16SI_V4SI): Ditto.
17016 (V16SI_FTYPE_V16SI_V16SI): Ditto.
17017 (V16SI_FTYPE_V32HI_V32HI): Ditto.
17018 (V16SI_FTYPE_V16SI_SI): Ditto.
17019 (V8DI_FTYPE_V8DI_V8DI): Ditto.
17020 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
17021 (V8DI_FTYPE_V16SI_V16SI): Ditto.
17022 (V8DI_FTYPE_V8DI_V2DI): Ditto.
17023 (QI_FTYPE_QI): Ditto.
17024 (SI_FTYPE_SI): Ditto.
17025 (DI_FTYPE_DI): Ditto.
17026 (QI_FTYPE_QI_QI): Ditto.
17027 (QI_FTYPE_QI_INT): Ditto.
17028 (HI_FTYPE_HI_INT): Ditto.
17029 (SI_FTYPE_SI_INT): Ditto.
17030 (DI_FTYPE_DI_INT): Ditto.
17031 (HI_FTYPE_V16QI_V16QI): Ditto.
17032 (SI_FTYPE_V32QI_V32QI): Ditto.
17033 (DI_FTYPE_V64QI_V64QI): Ditto.
17034 (QI_FTYPE_V8HI_V8HI): Ditto.
17035 (HI_FTYPE_V16HI_V16HI): Ditto.
17036 (SI_FTYPE_V32HI_V32HI): Ditto.
17037 (QI_FTYPE_V4SI_V4SI): Ditto.
17038 (QI_FTYPE_V8SI_V8SI): Ditto.
17039 (QI_FTYPE_V2DI_V2DI): Ditto.
17040 (QI_FTYPE_V4DI_V4DI): Ditto.
17041 (QI_FTYPE_V8DI_V8DI): Ditto.
17042 (HI_FTYPE_V16SI_V16SI): Ditto.
17043 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
17044 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
17045 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
17046 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
17047 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
17048 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
17049 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
17050 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
17051 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
17052 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
17053 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
17054 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
17055 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
17056 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
17057 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
17058 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
17059 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
17060 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
17061 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
17062 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
17063 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
17064 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
17065 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
17066 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
17067 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
17068 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
17069 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
17070 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
17071 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
17072 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
17073 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
17074 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
17075 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
17076 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
17077 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
17078 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
17079 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
17080 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
17081 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
17082 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
17083 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
17084 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
17085 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
17086 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
17087 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
17088 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
17089 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
17090 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
17091 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
17092 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
17093 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
17094 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
17095 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
17096 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
17097 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
17098 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
17099 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
17100 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
17101 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
17102 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
17103 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
17104 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
17105 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
17106 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
17107 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
17108 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
17109 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
17110 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
17111 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
17112 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
17113 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
17114 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
17115 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
17116 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
17117 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
17118 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
17119 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
17120 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
17121 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
17122 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
17123 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
17124 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
17125 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
17126 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
17127 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
17128 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
17129 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
17130 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
17131 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
17132 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
17133 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
17134 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
17135 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
17136 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
17137 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
17138 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
17139 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
17140 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
17141 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
17142 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
17143 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
17144 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
17145 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
17146 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
17147 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
17148 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
17149 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
17150 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
17151 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
17152 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
17153 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
17154 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
17155 (HI_FTYPE_HI): Ditto.
17156 (HI_FTYPE_V16QI): Ditto.
17157 (SI_FTYPE_V32QI): Ditto.
17158 (DI_FTYPE_V64QI): Ditto.
17159 (QI_FTYPE_V8HI): Ditto.
17160 (HI_FTYPE_V16HI): Ditto.
17161 (SI_FTYPE_V32HI): Ditto.
17162 (QI_FTYPE_V4SI): Ditto.
17163 (QI_FTYPE_V8SI): Ditto.
17164 (HI_FTYPE_V16SI): Ditto.
17165 (QI_FTYPE_V2DI): Ditto.
17166 (QI_FTYPE_V4DI): Ditto.
17167 (QI_FTYPE_V8DI): Ditto.
17168 (V16QI_FTYPE_HI): Ditto.
17169 (V32QI_FTYPE_SI): Ditto.
17170 (V64QI_FTYPE_DI): Ditto.
17171 (V8HI_FTYPE_QI): Ditto.
17172 (V16HI_FTYPE_HI): Ditto.
17173 (V32HI_FTYPE_SI): Ditto.
17174 (V4SI_FTYPE_QI): Ditto.
17175 (V4SI_FTYPE_HI): Ditto.
17176 (V8SI_FTYPE_QI): Ditto.
17177 (V8SI_FTYPE_HI): Ditto.
17178 (V2DI_FTYPE_QI): Ditto.
17179 (V4DI_FTYPE_QI): Ditto.
17180 (HI_FTYPE_HI_HI): Ditto.
17181 (SI_FTYPE_SI_SI): Ditto.
17182 (DI_FTYPE_DI_DI): Ditto.
17183 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
17184 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
17185 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
17186 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
17187 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
17188 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
17189 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
17190 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
17191 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
17192 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
17193 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
17194 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
17195 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
17196 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
17197 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
17198 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
17199 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
17200 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
17201 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
17202 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
17203 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
17204 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
17205 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
17206 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
17207 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
17208 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
17209 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
17210 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
17211 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
17212 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
17213 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
17214 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
17215 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
17216 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
17217 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
17218 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
17219 (V16SI_FTYPE_HI): Ditto.
17220 (V8DI_FTYPE_QI): Ditto.
17221 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
17222 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
17223 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
17224 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
17225 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
17226 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
17227 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
17228 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
17229 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
17230 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
17231 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
17232 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
17233 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
17234 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
17235 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
17236 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
17237 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
17238 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
17239 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
17240 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
17241 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
17242 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
17243 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
17244 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
17245 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
17246 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
17247 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
17248 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
17249 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
17250 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
17251 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
17252 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
17253 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
17254 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
17255 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
17256 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
17257 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
17258 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
17259 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
17260 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
17261 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
17262 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
17263 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
17264 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
17265 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
17266 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
17267 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
17268 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
17269 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
17270 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
17271 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
17272 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
17273 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
17274 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
17275 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
17276 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
17277 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
17278 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
17279 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
17280 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
17281 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
17282 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
17283 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
17284 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
17285 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
17286 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
17287 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
17288 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
17289 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
17290 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
17291 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
17292 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
17293 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
17294 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
17295 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
17296 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
17297 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
17298 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
17299 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
17300 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
17301 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
17302 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
17303 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
17304 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
17305 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
17306 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
17307 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
17308 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
17309 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
17310 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
17311 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
17312 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
17313 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
17314 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
17315 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
17316 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
17317 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
17318 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
17319 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
17320 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
17321 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
17322 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
17323 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
17324 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
17325 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
17326 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
17327 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
17328 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
17329 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
17330 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
17331 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
17332 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
17333 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
17334 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
17335 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
17336 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
17337 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
17338 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
17339 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
17340 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
17341 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
17342 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
17343 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
17344 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
17345 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
17346 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
17347 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
17348 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
17349 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
17350 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
17351 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
17352 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
17353 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
17354 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
17355 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
17356 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
17357 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
17358 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
17359 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
17360 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
17361 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
17362 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
17363 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
17364 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
17365 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
17366 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
17367 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
17368 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
17369 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
17370 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
17371 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
17372 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
17373 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
17374 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
17375 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
17376 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
17377 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
17378 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
17379 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
17380 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
17381 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
17382 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
17383 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
17384 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
17385 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
17386 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
17387 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
17388 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
17389 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
17390 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
17391 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
17392 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
17393 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
17394 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
17395 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
17396 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
17397 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
17398 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
17399 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
17400 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
17401 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
17402 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
17403 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
17404 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
17405 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
17406 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
17407 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
17408 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
17409 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
17410 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
17411 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
17412 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
17413 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
17414 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
17415 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
17416 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
17417 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
17418 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
17419 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
17420 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
17421 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
17422 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
17423 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
17424 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
17425 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
17426 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
17427 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
17428 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
17429 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
17430 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
17431 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
17432 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
17433 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
17434 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
17435 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
17436 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
17437 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
17438 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
17439 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
17440 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
17441 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
17442 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
17443 (QI_FTYPE_V8DF_INT_QI): Ditto.
17444 (QI_FTYPE_V4DF_INT_QI): Ditto.
17445 (QI_FTYPE_V2DF_INT_QI): Ditto.
17446 (HI_FTYPE_V16SF_INT_HI): Ditto.
17447 (QI_FTYPE_V8SF_INT_QI): Ditto.
17448 (QI_FTYPE_V4SF_INT_QI): Ditto.
17449 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
17451 2015-07-31 Richard Biener <rguenther@suse.de>
17453 * gimple-fold.c (fold_gimple_assign): Remove folding of
17456 2015-07-31 Tom de Vries <tom@codesourcery.com>
17458 PR tree-optimization/66846
17459 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
17460 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
17461 (expand_omp_target) [ENABLE_CHECKING]: Same.
17462 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
17463 cfun if !LOOPS_NEED_FIXUP.
17464 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
17465 that omp_for already has its own loop struct.
17466 * tree-parloops.c (create_phi_for_local_result)
17467 (create_call_for_reduction): Handle simple latch bb.
17468 (create_parallel_loop): Add simple latch bb to preserve
17469 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
17470 (gen_parallel_loop): Remove call to cancel_loop_tree.
17471 (parallelize_loops): Skip loops that are inner loops of parallelized
17473 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
17474 verify_loop_structure.
17476 2015-07-30 Anatoly Sokolov <aesok@post.ru>
17478 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
17479 * config/v850/v850.md (RV_REGNUM): New constants.
17480 * config/v850/v850.c (v850_libcall_value): New functions.
17481 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
17482 (TARGET_LIBCALL_VALUE): Define.
17484 2015-07-30 Anatoly Sokolov <aesok@post.ru>
17486 * rtl.h (lowpart_subreg): Move in file.
17487 * loop-iv.c (lowpart_subreg): Move to...
17488 * simplify-rtx.c (lowpart_subreg): ...here.
17489 (simplify_binary_operation_1): Use lowpart_subreg instead of
17490 simplify_gen_subreg.
17491 * expr.c (expand_expr_real_2): Ditto.
17492 * emit-rtl.c (gen_lowpart_common): Ditto.
17493 * combine.c (gen_lowpart_for_combine): Ditto.
17494 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
17495 expand_debug_source_expr): Ditto.
17497 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
17499 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
17500 (expand_builtin_atomic_clear): Remove support for atomic_clear
17503 2015-07-30 Richard Biener <rguenther@suse.de>
17505 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
17506 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
17507 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
17508 redundant operand canonicalization.
17510 2015-07-30 David Sherwood <david.sherwood@arm.com>
17512 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
17513 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
17514 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
17515 * config/arm/arm.c (neon_valid_immediate): Likewise.
17516 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
17517 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
17518 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
17519 (expand_vec_perm_vpshufb2_vpermq): Likewise.
17520 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
17521 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
17522 * config/i386/sse.md
17523 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
17524 (*ssse3_palignr<mode>_perm): Likewise.
17525 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
17526 * config/spu/spu.c (arith_immediate_p): Likewise.
17527 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
17528 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
17530 2015-07-30 Richard Biener <rguenther@suse.de>
17532 * genmatch.c (decision_tree::gen_gimple): Merge with ...
17533 (decision_tree::gen_generic): ... this into ...
17534 (decision_tree::gen): ... this.
17535 (main): Adjust callers.
17537 2015-07-30 Richard Biener <rguenther@suse.de>
17539 * genmatch.c (verbose): New global.
17540 (warning_at): Add overload with source_location.
17541 (capture_info::capture_info): Add bool whether generating gimple
17542 or generic. Add gimple member.
17543 (capture_info::cinfo): Add capture member.
17544 (capture_info::walk_match): Record capture. Warn on
17545 non-captured leafs.
17546 (capture_info::walk_c_expr): Add more fragments captures cannot
17547 escape through. Warn on escaped captures.
17548 (dt_simplify::gen_1): Warn on operands we force to have no
17550 (main): Initialize verbose.
17551 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
17553 2015-07-30 Richard Biener <rguenther@suse.de>
17555 PR middle-end/67053
17556 * match.pd: Allow both operands to independently have conversion
17557 when simplifying compares of addresses.
17559 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
17563 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
17564 around those cases that need one.
17566 2015-07-29 Aditya Kumar <hiraditya@msn.com>
17568 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
17570 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
17572 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
17573 New. Copied from config/i386/gnu-user.h.
17574 (ASM_COMMENT_START): Likewise.
17575 (DBX_REGISTER_NUMBER): Likewise.
17577 2015-07-29 Richard Biener <rguenther@suse.de>
17579 * gimple-fold.c (fold_gimple_cond): Remove.
17580 (fold_stmt_1): Do not call it.
17582 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
17584 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
17585 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
17587 * config/aarch64/aarch64-modes.def: Add HFmode.
17589 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
17590 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
17592 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
17593 aarch64_promoted_type): New.
17595 (aarch64_float_const_representable_p): Disable HFmode.
17596 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
17597 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
17598 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
17600 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
17601 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
17603 * config/aarch64/iterators.md (GPF_F16): New.
17605 2015-07-29 Richard Biener <rguenther@suse.de>
17607 * match.pd: Merge address comparison patterns and make them
17608 handle some more cases.
17610 2015-07-29 Richard Biener <rguenther@suse.de>
17612 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
17613 (parser::parse_capture): Add bool argument on whether to reject
17615 (parser::parse_expr): Adjust.
17616 (parser::parse_op): Likewise.
17617 (parser::parse_pattern): Likewise.
17619 2015-07-29 Richard Biener <rguenther@suse.de>
17621 * gimple-fold.c (has_use_on_stmt): New function.
17622 (replace_stmt_with_simplification): Use it to allow
17623 abnormals originally referenced in the stmt.
17624 (fold_stmt_1): Canonicalize operand order.
17626 2015-07-28 David Sherwood <david.sherwood@arm.com>
17628 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
17629 GET_MODE_INNER unconditionally.
17630 * config/spu/spu.c (arith_immediate_p): Likewise.
17631 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
17632 * expmed.c (synth_mult): Remove check for VOIDmode result from
17634 (expand_mult_const): Likewise.
17635 * fold-const.c (fold_binary_loc): Replace call to element_precision
17636 with call to GET_MODE_PRECISION.
17637 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
17639 (emit_mode_inner): Likewise.
17640 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
17642 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
17643 (GET_MODE_UNIT_PRECISION): Likewise.
17644 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
17645 * simplify-rtx.c (simplify_immed_subreg): Likewise.
17646 * stor-layout.c (bitwise_type_for_mode): Update assert.
17647 (element_precision): Remove.
17649 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
17651 * target-insns.def (reload_load_address): New targetm instruction
17653 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
17655 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
17657 * target-insns.def (atomic_test_and_set): New targetm instruction
17659 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
17660 HAVE_*/gen_* interface.
17662 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
17664 * target-insns.def (can_extend, ptr_extend): New targetm instruction
17666 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
17667 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
17668 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
17669 * rtlanal.c (nonzero_bits1): Likewise.
17670 (num_sign_bit_copies1): Likewise.
17672 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
17674 * target-insns.def (eh_return): New targetm instruction pattern.
17675 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
17677 * function.c (thread_prologue_and_epilogue_insns): Remove
17678 preprocessor condition.
17680 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
17682 * target-insns.def (indirect_jump): New targetm instruction pattern.
17683 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
17686 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
17688 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
17689 instead of nonimmediate_operand. Remove C condiition.
17691 2015-07-28 Richard Biener <rguenther@suse.de>
17693 * match.pd: Add more simplification of address comparisons.
17695 2015-07-28 Richard Biener <rguenther@suse.de>
17697 * match.pd: Re-order two cases in comparison with max/min
17698 value simplification to make it apply for bools.
17700 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17702 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
17703 Handle simple SIGN_EXTEND or ZERO_EXTEND.
17704 (aarch64_rtx_costs): Properly strip extend or extract before
17705 passing down to rtx costs again.
17707 2015-07-28 Nick Clifton <nickc@redhat.com>
17709 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
17710 Optimizes the case where -mes0 is active and a constant symbolic
17712 * config/rl78/rl78-protos.h: Prototype the new function.
17713 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
17715 2015-07-28 Tom de Vries <tom@codesourcery.com>
17717 * tree-parloops.c (reduc_stmt_res): New function.
17718 (initialize_reductions, add_field_for_reduction)
17719 (create_phi_for_local_result, create_loads_for_reductions)
17720 (create_stores_for_reduction, build_new_reduction): Handle case that
17721 reduc_stmt is a phi.
17722 (gather_scalar_reductions): Allow double_reduc reductions.
17724 2015-07-28 Richard Biener <rguenther@suse.de>
17726 * fold-const.c (fold_comparison): Remove equality folding
17727 of decl addresses ...
17728 * match.pd: ... here and merge with existing pattern.
17730 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
17732 PR tree-optimization/66828
17733 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
17734 from int64_t to uint64_t.
17736 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
17738 * opts-common.c (read_cmdline_option): List DriverOnly enum values
17739 as valid only in the error message of the driver, not in the
17740 messages of the language compilers.
17742 2015-07-27 Tom de Vries <tom@codesourcery.com>
17744 * tree-parloops.c (gather_scalar_reductions): Simplify function
17747 2015-07-27 Marek Polacek <polacek@redhat.com>
17749 * ipa-devirt.c (types_same_for_odr): Fix typo.
17751 2015-07-27 Jason Merrill <jason@redhat.com>
17754 * dwarf2out.c (gen_inlined_subroutine_die): Check
17755 cgraph_function_possibly_inlined_p.
17757 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
17759 * config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
17760 Place integer variant first.
17761 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
17763 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
17766 * config/arm/arm-builtins.c (enum arm_builtins):
17767 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
17768 (ARM_BUILTIN_NEON_BASE): Rename macro to....
17769 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
17770 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
17771 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
17773 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
17776 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
17777 Add qualifier_lane_index.
17778 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
17779 (arm_getlane_qualifiers): Use qualifier_lane_index.
17780 (arm_lanemac_qualifiers): Rename to...
17781 (arm_mac_n_qualifiers): ...this.
17782 (LANEMAC_QUALIFIERS): Rename to...
17783 (MAC_N_QUALIFIERS): ...this.
17784 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
17785 (arm_setlane_qualifiers): Use qualifier_lane_index.
17786 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
17787 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
17788 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
17789 (arm_expand_neon_builtin): Handle qualifier_lane_index.
17791 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
17792 * config/arm/arm.c (bounds_check): Likewise, improve error message.
17793 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
17794 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
17795 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
17796 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
17797 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
17798 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
17799 qualifiers to TERNOP_IMM.
17800 (vdup_lane): Change qualifiers to GETLANE.
17801 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
17802 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
17803 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
17804 vqdmlsl_n): Change qualifiers to MAC_N.
17806 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
17807 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
17808 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
17809 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
17810 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
17811 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
17812 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
17813 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
17814 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
17815 Remove call to neon_lane_bounds.
17817 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
17819 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
17820 Place integer variant first.
17822 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
17824 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
17825 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
17826 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
17827 for armv6kz targets.
17828 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
17829 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
17830 (FL_FOR_ARCH6ZK): Remove.
17831 (FL_FOR_ARCH6KZ): New.
17832 (arm_arch6zk): New declaration.
17833 * config/arm/arm-tables.opt: Regenerate.
17834 * config/arm/arm.c (arm_arch6kz): New.
17835 (arm_option_override): Set arm_arch6kz.
17836 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
17837 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
17838 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
17840 2015-07-27 Marek Polacek <polacek@redhat.com>
17844 * doc/invoke.texi: Document -Wtautological-compare.
17846 2015-07-27 Richard Biener <rguenther@suse.de>
17848 * genmatch.c (decision_tree::gen_gimple): Split out large
17849 subtrees into separate functions.
17850 (decision_tree::gen_generic): Likewise.
17852 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
17854 * config/alpha/alpha.c: Use SUBREG_P predicate.
17855 * config/alpha/predicates.md: Ditto.
17857 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
17859 * config.host (s390*-*-*): Include driver-native.c only when
17860 building with s390* as host *and* target.
17862 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
17865 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
17866 T bit register modified_between_p check.
17868 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
17870 * config/i386/i386.c: Use SUBREG_P predicate.
17871 * config/i386/i386.md: Ditto.
17872 * config/i386/sse.md: Ditto.
17873 * config/i386/predicates.md: Ditto.
17875 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
17878 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
17879 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
17881 2015-07-25 Sebastian Pop <s.pop@samsung.com>
17883 * Makefile.in: Remove use of TREEBROWSER.
17884 * config.in: Regenerated.
17885 * configure: Regenerated.
17886 * configure.ac: Remove definition of TREEBROWSER.
17887 * tree-browser.c: Removed.
17888 * tree-browser.def: Removed.
17890 2015-07-25 Sebastian Pop <s.pop@samsung.com>
17892 * graphite-scop-detection.c: Include gimple-pretty-print.h.
17893 (stmt_simple_for_scop_p): Print when a stmt is not handled in
17895 (scopdet_basic_block_info): Print when a loop or bb cannot be
17896 represented in Graphite.
17898 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
17901 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
17902 execution guard when min_size is less than size_needed.
17904 2015-07-25 Sebastian Pop <s.pop@samsung.com>
17906 * doc/install.texi: Document supported versions of ISL.
17908 2015-07-25 Jeff Law <law@redhat.com>
17912 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
17913 unable to find X NE 0 in the tables, return X as the simplified
17915 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
17916 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
17917 to VISISTED_BBS. */
17918 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
17919 after removing the control flow statement and unnecessary edges.
17921 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
17924 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
17926 PR rtl-optimization/64164
17927 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
17928 * tree-ssa-copyrename.c: Removed.
17929 * opts.c (default_options_table): Drop -ftree-copyrename. Add
17930 -ftree-coalesce-vars.
17931 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
17932 * common.opt (ftree-copyrename): Ignore.
17933 (ftree-coalesce-inlined-vars): Likewise.
17934 * doc/invoke.texi: Remove the ignored options above.
17935 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
17936 * tree-ssa-coalesce.h: ... here.
17937 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
17938 headers required by it.
17939 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
17940 across variables when flag_tree_coalesce_vars. Check register
17941 use and promoted modes to allow coalescing. Moved to
17942 tree-ssa-coalesce.c.
17943 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
17944 with its member functions to tree-ssa-coalesce.c.
17945 (var_map_base_init): Likewise. Renamed to
17946 compute_samebase_partition_bases.
17947 (partition_view_normal): Drop want_bases parameter.
17948 (partition_view_bitmap): Likewise.
17949 * tree-ssa-live.h: Adjust declarations.
17950 * tree-ssa-coalesce.c: Include explow.h.
17951 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
17952 default defs at the entry point.
17953 (dump_part_var_map): New.
17954 (compute_optimized_partition_bases): New, called by...
17955 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
17956 of compute_samebase_partition_bases. Adjust.
17957 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
17958 * cfgexpand.c (leader_merge): New.
17959 (get_rtl_for_parm_ssa_default_def): New.
17960 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
17961 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
17962 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
17963 redundant MEM attr setting.
17964 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
17966 (expand_one_stack_var): ... this. New wrapper to check and
17967 skip already expanded SSA partitions.
17968 (record_alignment_for_reg_var): New, factored out of...
17969 (expand_one_var): ... this.
17970 (expand_one_ssa_partition): New.
17971 (adjust_one_expanded_partition_var): New.
17972 (expand_one_register_var): Check and skip already expanded SSA
17974 (expand_used_vars): Don't create DECLs for anonymous SSA
17975 names. Expand all SSA partitions, then adjust all SSA names.
17976 (pass::execute): Replace the loops that set
17977 SA.partition_to_pseudo from partition leaders and cleared
17978 DECL_RTL for multi-location variables, and that which used to
17979 rename vars and set attrs, with one that clears DECL_RTL and
17980 checks that PARMs and RESULTs default_defs match DECL_RTL.
17981 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
17982 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
17983 * explow.c (promote_ssa_mode): New.
17984 * explow.h (promote_ssa_mode): Declare.
17985 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
17986 * function.c: Include cfgexpand.h.
17987 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
17988 (use_register_for_parm_decl): Wrapper for the above to
17989 special-case the result_ptr.
17990 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
17991 (split_complex_args): Take assign_parm_data_all argument.
17992 Pass it to rtl_for_parm. Set up rtl and context for split
17994 (assign_parms_augmented_arg_list): Adjust.
17995 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
17996 multiple locations. Recognize split complex args.
17997 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
17998 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
17999 (assign_parm_setup_block): Prefer SSA-assigned location.
18000 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
18001 if stack_parm is NULL.
18002 (assign_parm_setup_stack): Prefer SSA-assigned location.
18003 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
18004 rtl before testing for pointer bounds. Special-case result_ptr.
18005 (expand_function_start): Maybe reset DECL_RTL of result.
18006 Prefer SSA-assigned location for result and static chain.
18007 Factor out DECL_RESULT and SET_DECL_RTL.
18008 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
18009 anonymous SSA names. Use promote_ssa_mode.
18010 (get_temp_reg): Likewise.
18011 (remove_ssa_form): Adjust.
18012 * stor-layout.c (layout_decl): Don't set mem attributes of
18014 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
18015 and get its reg_usage for reg invalidation.
18016 (compute_bb_dataflow): Pass it insn.
18017 (emit_notes_in_bb): Likewise.
18019 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
18021 * config/i386/i386.c (ix86_va_start): Remove
18022 unneeded !TARGET_64BIT check.
18023 (ix86_gimplify_va_arg): Ditto.
18025 2015-07-24 Tom de Vries <tom@codesourcery.com>
18027 * graphite-sese-to-poly.c (build_poly_scop): Always call
18028 rewrite_commutative_reductions_out_of_ssa.
18030 2015-07-24 Tom de Vries <tom@codesourcery.com>
18032 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
18033 flag_associative_math to FLOAT_TYPE_P. Honour
18034 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
18036 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
18039 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
18040 and "%qD" in warning_at instead of "%q+D" in warning.
18042 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
18044 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
18045 (ix86_function_abi): Cleanup.
18047 2015-07-24 Michael Darling <darlingm@gmail.com>
18050 * acinclude.m4: Reflects renaming of configure.in to configure.ac
18051 * configure: Likewise
18052 * configure.ac: Likewise
18053 * doc/install.texi: Likewise
18054 * doc/tm.texi: Likewise
18055 * doc/tm.texi.in: Likewise
18057 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18059 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
18060 manually swapping values.
18061 * cse.c (fold_rtx): Likewise.
18062 * lra-eliminations.c (form_sum): Likewise.
18064 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
18067 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
18068 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
18069 (*jcc_1, *jcc_2, jump, simple_return_internal)
18070 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
18071 Set length_nobnd attribute instead of length attribute.
18072 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
18073 (length_nobnd): Remove attribute.
18074 (length): Remove length_nobnd processing.
18076 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
18078 * gimplify.c (omp_default_clause): New function. Reorganize flow
18079 for clarity. Broken out of ...
18080 (omp_notice_variable): ... here.
18082 2015-07-24 Gary Funck <gary@intrepid.com>
18084 PR middle-end/66984
18085 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
18086 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
18088 2015-07-24 Tom de Vries <tom@codesourcery.com>
18090 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
18091 exit-first loop transform.
18093 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
18096 * tree-cfg.c (struct replace_decls_d): New struct.
18097 (replace_block_vars_by_duplicates_1): New function.
18098 (replace_block_vars_by_duplicates): Use it to replace the decls
18099 in the value exprs by duplicates.
18101 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
18103 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
18104 -shared, -symbolic, -rdynamic.
18106 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
18109 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
18110 -dynamic-linker within %{!static %{!shared, and -rdynamic within
18113 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
18116 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
18117 edge summary is available.
18119 2015-07-24 Richard Biener <rguenther@suse.de>
18121 * genmatch.c (struct dt_node): Add statistic fields.
18122 (dt_node::analyze): New method.
18123 (decision_tree::gen_gimple): Call analyze on the root node
18124 and print statistics to stderr.
18125 (decision_tree::gen_generic): Likewise.
18127 2015-07-24 Richard Biener <rguenther@suse.de>
18129 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
18130 against the highest or lowest possible integer ...
18131 * match.pd: ... as patterns here.
18133 2015-07-24 Richard Biener <rguenther@suse.de>
18135 * genmatch.c (struct capture_info): Add same_as field.
18136 (capture_info::capture_info): Initialize same_as.
18137 (capture_info::walk_match): Compute same_as.
18138 (capture_info::walk_result): Compute stuff for the leader.
18139 (capture_info::walk_c_expr): Likewise.
18140 (dt_simplify::gen_1): Only look at leaders when deciding
18141 to force no side-effects or emit side-effects of omitted operands.
18143 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18145 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
18146 reg note to the GPR -> FPR save instructions.
18148 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18150 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
18152 (s390_expand_insv): Don't generate risbg pattern for constant zero
18154 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
18155 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
18158 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
18160 * config/s390/s390.c (s390_reorg): Clean up handling of processors
18163 (s390_issue_rate): Likewise.
18164 (s390_sched_reorder): Likewise.
18165 (s390_sched_variable_issue): Likewise.
18166 (s390_loop_unroll_adjust): Likewise.
18167 (s390_option_override): Likewise.
18169 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
18171 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
18172 processor capabilities with -march=native.
18173 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
18174 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
18175 (S390_TARGET_BITS_STRING): Macro to simplify specs.
18177 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
18179 * config/s390/s390.c (s390_issue_rate): Handle
18180 PROCESSOR_2094_Z9_EC.
18181 (s390_option_override): Likewise.
18182 (s390_adjust_priority): Likewise.
18184 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
18186 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
18187 when cross compiling.
18189 2015-07-24 Richard Biener <rguenther@suse.de>
18191 * fold-const.c (maybe_canonicalize_comparison_1): Move
18192 A code CST canonicalization ...
18193 * match.pd: ... to a pattern here.
18195 2015-07-24 Jiong Wang <jiong.wang@arm.com>
18198 2015-07-22 Jiong Wang <jiong.wang@arm.com>
18200 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
18201 (HONOR_REG_ALLOC_ORDER): Define.
18203 2015-07-24 Richard Biener <rguenther@suse.de>
18205 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
18206 * fold-const.c (fold_comparison): Move parameter does not
18207 alias &local simplification ...
18208 * match.pd: ... as a pattern here.
18210 2015-07-24 Richard Biener <rguenther@suse.de>
18212 * gimple-fold.c (replace_stmt_with_simplification): Special-case
18213 valueizing call operands.
18214 * gimple-match-head.c (maybe_push_res_to_seq): Take
18215 number of call arguments from ops array.
18216 (do_valueize): New function.
18217 (gimple_simplify): Return true if valueization changed
18218 any operand even if the result didn't simplify further.
18220 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
18222 PR middle-end/25530
18223 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
18225 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
18227 PR middle-end/25529
18228 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
18230 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
18232 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
18235 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
18237 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
18240 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
18242 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
18243 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
18245 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
18246 ms_va_list_type_node initialization.
18248 2015-07-23 Jeff Law <law@redhat.com>
18251 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
18252 unable to find X NE 0 in the tables, return X as the simplified
18254 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
18255 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
18256 to VISISTED_BBS. */
18257 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
18258 after removing the control flow statement and unnecessary edges.
18260 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
18262 * tree-pass.h (get_current_pass_name): Removed.
18264 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
18266 PR rtl-optimization/64164
18267 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
18268 * tree-ssa-copyrename.c: Removed.
18269 * opts.c (default_options_table): Drop -ftree-copyrename. Add
18270 -ftree-coalesce-vars.
18271 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
18272 * common.opt (ftree-copyrename): Ignore.
18273 (ftree-coalesce-inlined-vars): Likewise.
18274 * doc/invoke.texi: Remove the ignored options above.
18275 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
18276 * tree-ssa-coalesce.h: ... here.
18277 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
18278 headers required by it.
18279 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
18280 across variables when flag_tree_coalesce_vars. Check register
18281 use and promoted modes to allow coalescing. Moved to
18282 tree-ssa-coalesce.c.
18283 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
18284 with its member functions to tree-ssa-coalesce.c.
18285 (var_map_base_init): Likewise. Renamed to
18286 compute_samebase_partition_bases.
18287 (partition_view_normal): Drop want_bases parameter.
18288 (partition_view_bitmap): Likewise.
18289 * tree-ssa-live.h: Adjust declarations.
18290 * tree-ssa-coalesce.c: Include explow.h.
18291 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
18292 default defs at the entry point.
18293 (dump_part_var_map): New.
18294 (compute_optimized_partition_bases): New, called by...
18295 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
18296 of compute_samebase_partition_bases. Adjust.
18297 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
18298 * cfgexpand.c (leader_merge): New.
18299 (get_rtl_for_parm_ssa_default_def): New.
18300 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
18301 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
18302 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
18303 redundant MEM attr setting.
18304 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
18306 (expand_one_stack_var): ... this. New wrapper to check and
18307 skip already expanded SSA partitions.
18308 (record_alignment_for_reg_var): New, factored out of...
18309 (expand_one_var): ... this.
18310 (expand_one_ssa_partition): New.
18311 (adjust_one_expanded_partition_var): New.
18312 (expand_one_register_var): Check and skip already expanded SSA
18314 (expand_used_vars): Don't create DECLs for anonymous SSA
18315 names. Expand all SSA partitions, then adjust all SSA names.
18316 (pass::execute): Replace the loops that set
18317 SA.partition_to_pseudo from partition leaders and cleared
18318 DECL_RTL for multi-location variables, and that which used to
18319 rename vars and set attrs, with one that clears DECL_RTL and
18320 checks that PARMs and RESULTs default_defs match DECL_RTL.
18321 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
18322 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
18323 * explow.c (promote_ssa_mode): New.
18324 * explow.h (promote_ssa_mode): Declare.
18325 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
18326 * function.c: Include cfgexpand.h.
18327 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
18328 (use_register_for_parm_decl): Wrapper for the above to
18329 special-case the result_ptr.
18330 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
18331 (split_complex_args): Take assign_parm_data_all argument.
18332 Pass it to rtl_for_parm. Set up rtl and context for split
18334 (assign_parms_augmented_arg_list): Adjust.
18335 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
18336 multiple locations. Recognize split complex args.
18337 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
18338 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
18339 (assign_parm_setup_block): Prefer SSA-assigned location.
18340 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
18341 if stack_parm is NULL.
18342 (assign_parm_setup_stack): Prefer SSA-assigned location.
18343 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
18344 rtl before testing for pointer bounds. Special-case result_ptr.
18345 (expand_function_start): Maybe reset DECL_RTL of result.
18346 Prefer SSA-assigned location for result and static chain.
18347 Factor out DECL_RESULT and SET_DECL_RTL.
18348 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
18349 anonymous SSA names. Use promote_ssa_mode.
18350 (get_temp_reg): Likewise.
18351 (remove_ssa_form): Adjust.
18352 * stor-layout.c (layout_decl): Don't set mem attributes of
18354 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
18355 and get its reg_usage for reg invalidation.
18356 (compute_bb_dataflow): Pass it insn.
18357 (emit_notes_in_bb): Likewise.
18359 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
18362 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
18364 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
18365 (rs6000_emit_2insn_and): Handle dot forms.
18366 * config/rs6000/rs6000.md (and<mode>3): Adjust.
18367 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
18368 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
18370 2015-07-23 Richard Biener <rguenther@suse.de>
18372 * generic-match-head.c: Include cgraph.h.
18373 * gimple-match-head.c: Likewise.
18374 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
18376 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
18377 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
18380 2015-07-23 Richard Biener <rguenther@suse.de>
18382 * gimple-fold.c (fold_gimple_cond): Do not require folding
18383 results to pass valid_gimple_rhs_p.
18384 * tree-cfg.h (fold_cond_expr_cond): Remove.
18385 * tree-cfg.c (fold_cond_expr_cond): Likewise.
18386 (make_edges): Do not call it.
18387 * tree-inline.c (tree_function_versioning): Likewise.
18389 2015-07-23 Tom de Vries <tom@codesourcery.com>
18391 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
18392 vect_force_simple_reduction.
18393 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
18394 (vect_is_simple_reduction_1): Add and handle
18395 need_wrapping_integral_overflow parameter.
18396 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
18397 need_wrapping_integral_overflow parameter.
18398 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
18399 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
18402 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
18404 PR tree-optimization/66926,66951
18405 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
18406 INNER_LOOP and fix up condition for renaming virtual operands.
18408 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18410 * combine.c (try_combine): Use std::swap instead of manually
18413 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
18415 * config/mips/i6400.md: New file.
18416 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
18417 (mips64r6): Likewise.
18419 * config/mips/mips-tables.opt: Regenerate.
18420 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
18421 (mips_issue_rate): Add support for i6400.
18422 (mips_multipass_dfa_lookahead): Likewise.
18423 * config/mips/mips.h (TUNE_I6400): Define.
18424 * config/mips/mips.md: Include i6400.md.
18425 (processor): Add i6400.
18426 * doc/invoke.texi (-march=@var{arch}): Add i6400.
18428 2015-07-23 Richard Biener <rguenther@suse.de>
18430 PR middle-end/66916
18431 * match.pd: Guard widen and sign-change comparison simplification
18434 2015-07-23 Richard Biener <rguenther@suse.de>
18436 PR tree-optimization/66945
18437 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
18438 ::before_dom_children): Force the propagators idea of
18439 non-executable edges to materialize, not what the folder
18442 2015-07-23 Richard Biener <rguenther@suse.de>
18444 * gimple.h (gimple_cond_make_false): Use 0 != 0.
18445 (gimple_cond_make_true): Use 1 != 0.
18447 2015-07-22 DJ Delorie <dj@redhat.com>
18449 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
18452 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
18453 (ashrhi3): Likewise.
18454 (lshrhi3): Likewise.
18455 (movhi): Take advantage of zero-extend to load small constants.
18456 (movpsi): Likewise.
18457 (and<mode>3): Likewise.
18458 (zero_extendqihi2): Likewise.
18459 (zero_extendqisi2): New.
18460 * config/msp430/constraints.md (N,O): New.
18461 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
18463 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
18466 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
18467 to enum feature_priority and feature_list.
18468 (fold_builtin_cpu): Add F_AES to enum processor_features
18469 and isa_names_table.
18471 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
18474 * config/i386/linux-common.h (MPX_SPEC): Use linker option
18475 for 64bit target only.
18477 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
18479 * config/nvptx/nvptx.c: Expand some comments.
18481 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
18483 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
18484 (cortex_a53_advsimd): ...This.
18486 2015-07-22 Richard Biener <rguenther@suse.de>
18488 * genmatch.c (expr::gen_transform): Clarify error message
18489 and display location.
18491 2015-07-22 Richard Biener <rguenther@suse.de>
18493 * genmatch.c (struct operand): Add location member.
18494 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
18496 (struct simplify): Remove match_location and result_location
18498 (elsehwere): Adjust.
18500 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
18502 * config/mips/m5100.md: New file.
18503 * config/mips/mips-cpus.def (m5100, m5101): Define.
18504 * config/mips/mips-tables.opt: Regenerate.
18505 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
18506 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
18507 -march=m5101 to -mips32r5.
18508 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
18509 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
18511 * config/mips/mips.md: Include m5100.md.
18512 (processor): Add m5100.
18513 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
18515 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
18517 * config/mips/mips-cpus.def (interaptiv): Define.
18518 * config/mips/mips-tables.opt: Regenerate.
18519 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
18521 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
18522 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
18524 2015-07-22 Jiong Wang <jiong.wang@arm.com>
18527 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
18528 (HONOR_REG_ALLOC_ORDER): Define.
18530 2015-07-22 Richard Biener <rguenther@suse.de>
18532 PR tree-optimization/66952
18533 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
18534 blocks we end up executing unconditionally reset all SSA
18535 info such as range and alignment.
18536 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
18537 * tree-ssanames.c (reset_flow_sensitive_info): New function.
18539 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
18541 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
18544 2015-07-22 Richard Biener <rguenther@suse.de>
18546 * genmatch.c (parser::parse_result): Properly handle
18547 match with result operands and conditions.
18549 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
18552 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
18553 Add qualifier_struct_load_store_lane_index.
18554 (aarch64_types_loadstruct_lane_qualifiers): Use
18555 qualifier_struct_load_store_lane_index for lane index argument for
18557 (aarch64_types_storestruct_lane_qualifiers): Ditto.
18558 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
18559 (aarch64_simd_expand_args): Add new argument describing mode of
18560 builtin. Check lane bounds for arguments with
18561 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
18562 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
18563 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
18564 (aarch64_simd_expand_builtin): Handle arguments with
18565 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
18566 aarch64_simd_expand_args.
18567 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
18568 vst[234]_lane with BUILTIN_VALLDIF.
18569 * config/aarch64/aarch64-simd.md:
18570 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
18571 endianness reversal on lane index.
18572 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
18573 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
18574 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
18575 (vec_store_lanesci_lane<mode>): Ditto.
18576 (vec_store_lanesxi_lane<mode>): Ditto.
18577 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
18578 reversal of lane index.
18579 (aarch64_ld3_lane<mode>): Ditto.
18580 (aarch64_ld4_lane<mode>): Ditto.
18581 (aarch64_st2_lane<mode>): Ditto.
18582 (aarch64_st3_lane<mode>): Ditto.
18583 (aarch64_st4_lane<mode>): Ditto.
18584 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
18585 to qmode. Add new mode parameter. Update uses.
18586 (__LD3_LANE_FUNC): Ditto.
18587 (__LD4_LANE_FUNC): Ditto.
18588 (__ST2_LANE_FUNC): Ditto.
18589 (__ST3_LANE_FUNC): Ditto.
18590 (__ST4_LANE_FUNC): Ditto.
18592 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
18594 * doc/invoke.texi (Language Independent Options): Rename node to
18595 Diagnostic Message Formatting Options.
18597 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
18600 * lra-remat.c (operand_to_remat): Prevent using insns with input
18601 subregs processed separately by IRA.
18603 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
18605 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
18607 (single_imm_use): Check for iterator node.
18608 (num_imm_uses): Likewise.
18609 * tree-ssa-operands.c (has_zero_uses_1): Delete.
18610 (single_imm_use_1): Check for iterator node.
18612 2015-07-21 Mike Frysinger <vapier@gentoo.org>
18613 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
18615 * configure.ac: Add check for new options in isl-0.15.
18616 * config.in, configure: Rebuilt.
18617 * graphite-blocking.c: Include <isl/constraint.h>
18618 * graphite-interchange.c, graphite-poly.c: Likewise.
18619 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
18620 * graphite.c: Likewise.
18621 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
18623 * graphite-dependences.c: Include <isl/constraint.h>.
18624 (max_number_of_out_dimensions): Returns isl_stat.
18625 (extend_schedule_1): Likewise
18626 (extend_schedule): Corresponding changes.
18627 * graphite-optimize-isl.c: Include <isl/constraint.h> and
18629 (getSingleMap): Change return type of isl_stat.
18630 (optimize_isl): Conditionally use
18631 isl_options_set_schedule_serialize_sccs.
18632 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
18633 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
18635 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
18638 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
18639 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
18641 2015-07-21 Richard Biener <rguenther@suse.de>
18643 PR tree-optimization/66948
18644 * genmatch.c (capture_info::walk_match): Also recurse to
18645 captures. Properly compute expr state from captures of
18647 * match.pd: Add single-use guards to
18648 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
18650 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
18652 * config/nvptx/mkoffload.c (process): Add static destructor call.
18654 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18656 PR middle-end/66915
18657 * match.pd (A - B -> A + (-B)): Don't allow folding
18658 when type if a fixed-point type.
18660 2015-07-20 DJ Delorie <dj@redhat.com>
18662 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
18663 (iorqi3_real): Likewise for set1.
18665 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
18667 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
18670 2015-07-20 Aditya Kumar <hiraditya@msn.com>
18672 * graphite-isl-ast-to-gimple.c:
18673 Refactor so that each function can access 'region'. This will help
18674 maintain a parameter rename_map within a region.
18676 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18678 * config/rs6000/rs6000.md (*lt0_disi): New.
18680 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18683 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
18684 "available letters" comment.
18685 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
18686 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
18687 and_2rld_operand): Delete.
18688 (and_operand): Adjust.
18689 (rotate_mask_operator): New.
18690 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
18691 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
18692 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
18693 extract_ME): Delete.
18694 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
18695 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
18696 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
18697 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
18698 rs6000_emit_2insn_and): New.
18699 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
18700 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
18701 includes_rldic_lshift_p, includes_rldicr_lshift_p,
18702 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
18703 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
18704 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
18705 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
18706 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
18707 rs6000_emit_2insn_and): New.
18708 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
18709 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
18711 <NOT>: Don't fall through to next case.
18712 <AND>: Handle the various rotate-and-mask cases directly.
18713 <IOR>: Always cost as one insn.
18714 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
18715 (and<mode>3): Adjust expander for the new patterns.
18716 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
18717 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
18718 (*and<mode>3_imm_dot_shifted): New.
18719 (*and<mode>3_mask): Delete, rewrite as ...
18720 (and<mode>3_mask): ... New.
18721 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
18722 (andsi3_internal0_nomc): Delete.
18723 (*andsi3_internal6): Delete.
18724 (*and<mode>3_2insn): New.
18725 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
18726 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
18727 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
18728 *insvdi_internal3): Delete.
18729 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
18730 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
18731 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
18732 *ior<mode>_mask): New.
18733 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
18734 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
18735 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
18736 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
18738 (ashr<mode>3): Delete expander.
18739 (*ashr<mode>3): Rename to ...
18740 (ashr<mode>3): ... This.
18741 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
18742 (*rotldi3_internal4, *rotldi3_internal5 and split,
18743 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
18744 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
18745 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
18746 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
18747 (splitter for loading a mask): Adjust.
18748 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
18750 2015-07-20 Marek Polacek <polacek@redhat.com>
18752 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
18753 output_add_clobbers, output_added_clobbers_hard_reg_p,
18754 gen_rtx_scratch): Remove declarations.
18756 2015-07-20 Marek Polacek <polacek@redhat.com>
18759 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
18761 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18763 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
18764 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
18766 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18768 * combine.c (combine_simplify_rtx): Move simplification step
18769 before various transformations/substitutions.
18771 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
18773 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
18774 (struct int_traits): Likewise.
18776 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18778 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
18779 function to vmsdbgout_function_decl.
18781 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
18784 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
18785 from misaligned positions.
18786 (ix86_expand_pinsr): Reject insertions to misaligned positions.
18788 2015-07-18 Sebastian Pop <s.pop@samsung.com>
18790 PR middle-end/46851
18791 PR middle-end/60340
18792 * Makefile.in: Removed omega.o.
18793 * common.opt: Document flag fcheck-data-deps as deprecated.
18794 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
18795 its associated params: omega-max-vars, omega-max-geqs,
18796 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
18797 omega-max-keys, omega-eliminate-redundant-constraints.
18798 * doc/loop.texi: Remove all the section on Omega.
18799 * graphite-blocking.c: Include missing params.h: it used to be
18800 included through tree-data-ref.h and omega.h.
18801 * graphite-isl-ast-to-gimple.c: Same.
18802 * graphite-optimize-isl.c: Same.
18803 * graphite-sese-to-poly.c: Same.
18804 * graphite.c: Same.
18807 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
18808 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
18809 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
18810 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
18811 * passes.def: Remove pass_check_data_deps.
18812 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
18813 (dump_conflict_function): Same.
18814 (dump_subscript): Same.
18815 (print_direction_vector): Same.
18816 (print_dir_vectors): Same.
18817 (print_lambda_vector): Same.
18818 (print_dist_vectors): Same.
18819 (dump_data_dependence_relation): Same.
18820 (dump_data_dependence_relations): Same.
18821 (dump_dist_dir_vectors): Same.
18823 (init_omega_eq_with_af): Removed.
18824 (omega_extract_distance_vectors): Removed.
18825 (omega_setup_subscript): Removed.
18826 (init_omega_for_ddr_1): Removed.
18827 (init_omega_for_ddr): Removed.
18828 (ddr_consistent_p): Removed.
18829 (compute_affine_dependence): Do not use omega to check data
18831 (compute_data_dependences_for_bb): Removed.
18832 (analyze_all_data_dependences): Removed.
18833 (tree_check_data_deps): Removed.
18834 * tree-data-ref.h: Do not include omega.h.
18835 (compute_data_dependences_for_bb): Removed.
18836 (tree_check_data_deps): Removed.
18837 * tree-ssa-loop.c (pass_check_data_deps): Removed.
18838 (make_pass_check_data_deps): Removed.
18839 * tree-ssa-phiopt.c: Include params.h.
18840 * tree-vect-data-refs.c: Same.
18841 * tree-vect-slp.c: Same.
18843 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
18845 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
18846 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
18847 (mem->fpreg splitters): Ditto.
18848 (general_operand->nonimmediate_operand splitter): Use explicit modes.
18849 Disable DFmode for TARGET_64BIT.
18851 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
18854 * config/i386/i386.c (ix86_expand_prologue): Replicate static
18855 chain on the stack.
18857 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
18859 * config/nvptx/mkoffload.c (process): Constify host data.
18860 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
18861 Constify host data.
18862 (generate_host_descr_file): Likewise.
18864 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
18865 Sebastian Pop <s.pop@samsung.com>
18867 PR middle-end/61929
18868 * graphite-dependences.c (add_pdr_constraints): Renamed
18869 pdr->extent to pdr->subscript_sizes.
18870 * graphite-interchange.c (build_linearized_memory_access): Add
18871 back all gcc_assert's that the "isl_int to isl_val conversion"
18872 patch has removed. Refactored.
18873 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
18874 * graphite-poly.c (new_poly_dr): Same.
18875 (free_poly_dr): Same.
18876 * graphite-poly.h (struct poly_dr): Same.
18877 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
18878 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
18879 * graphite-scop-detection.h: Fix space.
18880 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
18881 back all gcc_assert's removed by a previous patch.
18882 (wrap): Remove the_isl_ctx global variable that the same patch has
18884 (build_loop_iteration_domains): Same.
18885 (add_param_constraints): Same.
18886 (pdr_add_data_dimensions): Same. Refactored.
18887 (build_poly_dr): Renamed extent to subscript_sizes.
18889 2015-07-17 Marek Polacek <polacek@redhat.com>
18891 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
18892 * match.pd: ... here.
18894 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
18896 * config/nvptx/mkoffload.c (process): Constify target data.
18897 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
18898 Constify target data.
18899 (generate_target_offloadend_file): Likewise.
18901 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
18903 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
18904 to allow renaming of PHI arguments on edges incoming from outer
18905 loop header, add corresponding check before start PHI iterator.
18906 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
18907 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
18908 with true force_vectorize. Set-up dominator for outer loop too.
18909 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
18910 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
18911 was marked with force_vectorize and has restricted cfg.
18912 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
18914 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
18915 do peeling for outer loops.
18917 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
18918 Matthias Klose <doko@ubuntu.com>
18920 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
18921 build-sysroot, sysroot from the `Miscenalleous configure options' to
18922 the `Directories' section and strip trailing `/' from with_sysroot.
18923 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
18924 * configure: Regenerated.
18926 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
18929 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
18930 (TARGET_HARD_DF_REGS): Ditto.
18931 (TARGET_HARD_XF_REGS): Ditto.
18932 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
18933 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
18934 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
18935 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
18936 (*movsf_internal): Add alternatives 16 and 17. Enable
18937 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
18939 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
18941 PR rtl-optimization/66891
18942 * calls.c (expand_call): Wrap precompute_register_parameters with
18943 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
18945 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
18947 * config/nvptx/mkoffload.c (process): Constify mapping variables.
18948 Define target data struct and initialize it.
18950 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
18952 PR rtl-optimization/66626
18953 * ira.h (emit-rtl.h): Include.
18954 (non_spilled_static_chain_regno_p): New.
18955 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
18956 unless it is non spilled static chain pseudo.
18957 (assign_hard_rego): Spill memory profitable allocno unless it is
18958 non spilled static chain pseudo.
18959 (allocno_spill_priority_compare): Put non spilled static chain
18960 pseudo at the end of sorted array.
18961 (improve_allocation): Do nothing if we have static chain and
18963 (allocno__priority_compare_func): Put non spilled static chain
18964 pseudo at the beginning of sorted array.
18965 (move_spill_restore): Ignore non spilled static chain pseudo.
18966 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
18967 to non spilled static chain pseudo.
18968 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
18969 pseudo at the beginning of sorted array.
18970 (spill_for): Spill non spilled static chain pseudo last.
18971 * lra-constraints.c (lra_constraints): Remove static chain pseudo
18972 check for equivalence.
18974 2015-07-16 Martin Liska <mliska@suse.cz>
18977 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
18978 dst_ctx if it does not exist.
18980 2015-07-16 Martin Liska <mliska@suse.cz>
18982 * hash-set.h (remove): New function.
18983 (iterator): New iteration class for hash_set.
18985 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
18987 * genattrtab.c (make_canonical): Add a file_location parameter.
18988 Use fatal_at rather than fatal.
18989 (get_attr_value): Likewise. Update call to make_canonical.
18990 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
18991 (make_internal_attr): Update calls accordingly.
18993 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
18995 * read-md.h (message_with_line, error_with_line): Delete.
18996 * read-md.c (message_with_line, error_with_line): Delete.
18997 * gensupport.h: Include read-md.h.
18998 (md_rtx_info): New structure.
18999 (read_md_rtx): Use it. Return a bool success value.
19000 * gensupport.c (read_md_rtx): Likewise.
19001 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
19002 (main): Update after interface changes.
19003 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
19004 (main): Update after interface changes.
19005 * genattrtab.c (insn_code_number): Delete.
19006 (optimize_attrs): Add a max_insn_code parameter and use it instead
19007 of insn_code_number.
19008 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
19009 Use *_at rather than *_with_line functions.
19010 (gen_insn): Likewise.
19011 (gen_delay): Likewise.
19012 (gen_insn_reserv): Likewise.
19013 (gen_bypass): Take an md_rtx_info rather than an rtx.
19014 (main): Update after interface changes. Use a local max_insn_code
19015 variable instead of insn_code_number.
19016 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
19017 an rtx. Use fatal_at rather than fatal.
19018 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
19019 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
19020 (gen_absence_set, gen_final_absence_set, gen_automaton)
19021 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
19022 (main): Update after interface changes.
19023 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
19025 (main): Update after interface changes.
19026 * genconditions.c (main): Use new read_md_rtx interface.
19027 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
19028 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
19029 (main): Update after interface changes.
19030 * genemit.c (insn_code_number, insn_index_number): Delete.
19031 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
19032 Use fatal_at rather than fatal.
19033 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
19035 (gen_split): Likewise.
19036 (main): Update after interface changes.
19037 * genextract.c (line_no): Delete.
19038 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
19039 Update call to walk_rtx.
19040 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
19041 rather than message_with_line.
19042 (walk_rtx): Add an md_rtx_info argument. Update call to
19043 VEC_safe_set_locstr.
19044 (main): Update after interface changes.
19045 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
19046 and lineno. Use error_at rather than separate message_with_line
19047 calls and have_error assignments.
19048 (main): Update after interface changes.
19049 * genmddump.c (main): Use new read_md_rtx interface.
19050 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
19051 (main): Update after interface changes.
19052 * genoutput.c (next_code_number): Delete.
19053 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
19054 (gen_peephole, gen_expand, gen_split): Likewise.
19055 (note_constraint): Likewise. Use *_at rather than *_with_line
19057 (main): Update after interface changes.
19058 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
19060 (main): Update after interface changes.
19061 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
19062 than an rtx and lineno.
19063 (process_define_constraint): Likewise.
19064 (process_define_register_constraint): Likewise.
19065 (main): Update after interface changes.
19066 * genrecog.c (next_insn_code, pattern_lineno): Delete.
19067 (validate_pattern): Replace top-level rtx with an md_rtx_info.
19068 Use *_at rather than *_with_line functions.
19069 (match_pattern_2): Likewise.
19070 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
19071 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
19072 Use *_at rather than *_with_line functions.
19073 * gentarget-def.c (add_insn): New function.
19074 (main): Use it. Use new read_md_rtx interface.
19076 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
19078 * gensupport.h (compute_test_codes): Take a file_location rather
19079 than a line number.
19080 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
19081 rather than *_with_line functions.
19082 (process_define_predicate): Update call to compute_test_codes.
19083 * genpreds.c (validate_exp): Take a file_location rather than a
19084 line number. Use *_at functions rather than *_with_line functions.
19085 (process_define_predicate): Update call to validate_exp.
19086 (constraint_data): Replace lineno field with a file_location.
19087 (add_constraint): Take a file_location rather than a line number.
19088 Use *_at functions rather than *_with_line functions. Fix error
19089 message for address constraints. Update after changes to
19090 validate_exp, constraint_data and compute_test_codes.
19091 (process_define_constraint): Update accordingly.
19092 (process_define_register_constraint): Likewise.
19094 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
19096 * genoutput.c (data): Use a file_location to record the source
19099 (idata, idata_end): Remove initialization.
19100 (constraint_data): Replace lineno with a file_location.
19101 (output_insn_data): Update after changes to data.
19102 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
19103 (scan_operands): Likewise, using *_at rather than *_with_line
19105 (process_template): Likewise.
19106 (validate_insn_alternatives): Likewise.
19107 (validate_insn_operands): Likewise.
19108 (validate_optab_operands): Likewise.
19109 (init_insn_for_nothing): Initialize idata and idata_end.
19110 (note_constraint): Update after changes to constraint_data,
19111 using at rather than with_line functions.
19112 (mdep_constraint_len): Take a file_location rather than a
19113 line number. Use at rather than with_line functions.
19115 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
19117 * read-md.h (fatal_at): Declare.
19118 * read-md.c (fatal_at): New function.
19119 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
19120 to record the source position.
19121 (check_attr_test): Take a file_location instead of a line number.
19122 Use fatal_at instead of fatal.
19123 (check_attr_value): Update after above changes, using "at"
19124 rather than "with_line" reporting functions.
19125 (convert_set_attr_alternative): Likewise.
19126 (gen_attr): Likewise.
19127 (check_defs): Likewise. Don't assign to read_md_filename.
19128 (gen_insn): Update initialization after above changes.
19129 (gen_delay): Likewise.
19130 (write_insn_cases): Print the filename for a define_peephole.
19131 (gen_insn_reserv): Take a line number as argument and update
19132 the call to check_attr_test.
19133 (main): Pass a line number to gen_insn_reserv.
19135 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
19137 * read-md.h (file_location): New structure.
19138 (directive_handler_t): Take a file_location rather than a line number.
19139 (message_at, error_at): Declare.
19140 (read_skip_construct): Delete.
19141 * read-md.c (message_with_line_1): Replace with...
19142 (message_at_1): ...this new function.
19143 (message_at, error_at): New functions.
19144 (message_with_line, error_with_line): Update to use message_at_1.
19145 (handle_enum): Take a file_location rather than a line number
19146 and use error_at for error reporting.
19147 (handle_include): Likewise.
19148 (read_skip_construct): Likewise. Make static.
19149 (handle_file): Update after above changes. Pass a file_location
19150 rather than a line number to handle_directive.
19151 * gensupport.c (queue_elem): Replace separate filename and lineno
19152 with a file_location.
19153 (queue_pattern): Replace filename and lineno arguments with a
19154 file_location. Update after change to queue_elem.
19155 (process_define_predicate): Replace lineno argument with a
19156 file_location and use error_at for error reporting. Update
19157 after above changes.
19158 (process_rtx): Likewise.
19159 (subst_pattern_match): Likewise.
19160 (get_alternatives_number): Likewise.
19161 (alter_predicate_for_insn): Likewise.
19162 (rtx_handle_directive): Likewise.
19163 (is_predicable): Update after above changes, using error_at rather
19164 than error_with_line.
19165 (has_subst_attribute): Likewise.
19166 (identify_predicable_attribute): Likewise.
19167 (alter_attrs_for_subst_insn): Likewise.
19168 (process_one_cond_exec): Likewise.
19169 (process_substs_on_one_elem): Likewise.
19170 (process_define_subst): Likewise.
19171 (check_define_attr_duplicates): Likewise.
19172 (read_md_rtx): Update after change to queue_elem.
19174 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
19176 * genoutput.c (next_index_number): Delete.
19177 (data): Remove index_number.
19178 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
19179 (main): Remove manipulation of next_index_number.
19181 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
19183 * genattrtab.c (check_attr_value): Remove handling of null attrs.
19184 (make_canonical): Likewise.
19186 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
19188 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
19189 instead of adjust_address_nv.
19190 (restore_stack_nonlocal): Likewise.
19191 (nonlocal_goto): Likewise.
19193 2015-07-16 Tom de Vries <tom@codesourcery.com>
19195 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
19196 not have a corresponding loop header phi.
19198 2015-07-16 Tom de Vries <tom@codesourcery.com>
19200 * tree-parloops.c (create_loads_for_reductions): Handle case that
19201 reduction is unused.
19203 2015-07-16 Richard Biener <rguenther@suse.de>
19205 PR tree-optimization/66894
19206 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
19207 about deriving NE_EXPR from truncated values.
19209 2015-07-16 Martin Liska <mliska@suse.cz>
19212 (object_allocator): Add new class.
19213 (pool_allocator::initialize): Use the underlying class.
19214 (pool_allocator::allocate): Likewise.
19215 (pool_allocator::remove): Likewise.
19216 (operator new): A new generic allocator.
19217 * asan.c (struct asan_mem_ref): Remove unused members.
19218 (asan_mem_ref_new): Replace new operator with
19219 object_allocator::allocate.
19220 (free_mem_ref_resources): Change deallocation.
19221 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
19222 with object_allocator.
19223 * config/sh/sh.c (add_constant): Replace new operator with
19224 object_allocator::allocate.
19225 (sh_reorg): Change call to a release method.
19226 * cselib.c (struct elt_list): Remove unused members.
19227 (new_elt_list): Replace new operator with
19228 object_allocator::allocate.
19229 (new_elt_loc_list): Likewise.
19230 (new_cselib_val): Likewise.
19231 (unchain_one_elt_list): Change delete operator with remove method.
19232 (unchain_one_elt_loc_list): Likewise.
19233 (unchain_one_value): Likewise.
19234 (cselib_finish): Release newly added static allocators.
19235 * cselib.h (struct cselib_val): Remove unused members.
19236 (struct elt_loc_list): Likewise.
19237 * df-problems.c (df_chain_alloc): Replace pool_allocator with
19239 * df-scan.c (struct df_scan_problem_data): Likewise.
19240 (df_scan_alloc): Likewise.
19241 * df.h (struct dataflow): Likewise.
19242 * dse.c (struct read_info_type): Likewise.
19243 (struct insn_info_type): Likewise.
19244 (struct dse_bb_info_type): Likewise.
19245 (struct group_info): Likewise.
19246 (struct deferred_change): Likewise.
19247 (get_group_info): Likewise.
19248 (delete_dead_store_insn): Likewise.
19249 (free_read_records): Likewise.
19250 (replace_read): Likewise.
19251 (check_mem_read_rtx): Likewise.
19252 (scan_insn): Likewise.
19253 (dse_step1): Likewise.
19254 (dse_step7): Likewise.
19255 * et-forest.c (struct et_occ): Remove unused members.
19256 (et_new_occ): Use allocate instead of new operator.
19257 (et_new_tree): Likewise.
19258 (et_free_tree): Call release method explicitly.
19259 (et_free_tree_force): Likewise.
19260 (et_free_pools): Likewise.
19261 (et_split): Use remove instead of delete operator.
19262 * et-forest.h (struct et_node): Remove unused members.
19263 * ipa-cp.c: Change pool_allocator to object_allocator.
19264 * ipa-inline-analysis.c: Likewise.
19265 * ipa-profile.c: Likewise.
19266 * ipa-prop.c: Likewise.
19267 * ipa-prop.h: Likewise.
19268 * ira-build.c (initiate_cost_vectors): Cast return value.
19269 (ira_allocate_cost_vector): Likewise.
19270 * ira-color.c (struct update_cost_record): Remove unused members.
19271 * lra-int.h (struct lra_live_range): Likewise.
19272 (struct lra_copy): Likewise.
19273 (struct lra_insn_reg): Likewise.
19274 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
19275 * lra.c (new_insn_reg): Replace new operator with allocate method.
19276 (free_insn_regs): Same for operator delete.
19277 (finish_insn_regs): Release new static allocator.
19278 (finish_insn_recog_data): Likewise.
19279 (lra_free_copies): Replace delete operator with remove method.
19280 (lra_create_copy): Replace operator new with allocate method.
19281 (invalidate_insn_data_regno_info): Same for remove method.
19282 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
19283 (free_debug_insn_changes): Replace delete operator with remove method.
19284 (replace_oldest_value_reg): Replace operator new with allocate method.
19285 (pass_cprop_hardreg::execute): Release new static variable.
19286 * sched-deps.c (sched_deps_init): Change pool_allocator to
19288 * sel-sched-ir.c: Likewise.
19289 * sel-sched-ir.h: Likewise.
19290 * stmt.c (expand_case): Likewise.
19291 (expand_sjlj_dispatch_table): Likewise.
19292 * tree-sra.c (struct access): Remove unused members.
19293 (struct assign_link): Likewise.
19294 (sra_deinitialize): Release newly added static pools.
19295 (create_access_1):Replace operator new with allocate method.
19296 (build_accesses_from_assign): Likewise.
19297 (create_artificial_child_access): Likewise.
19298 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
19299 pool_allocator to object_allocator.
19300 * tree-ssa-pre.c: Likewise.
19301 * tree-ssa-reassoc.c: Likewise.
19302 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
19303 * tree-ssa-strlen.c: Likewise.
19304 * tree-ssa-structalias.c: Likewise.
19305 * var-tracking.c (onepart_pool_allocate): New function.
19306 (unshare_variable): Use the newly added function.
19307 (variable_merge_over_cur): Likewise.
19308 (variable_from_dropped): Likewise.
19309 (variable_was_changed): Likewise.
19310 (set_slot_part): Likewise.
19311 (emit_notes_for_differences_1): Likewise.
19312 (vt_finalize): Release newly added static pools.
19314 2015-07-16 Martin Jambor <mjambor@suse.cz>
19316 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
19317 all uses. Fix two typos in its general comment.
19318 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
19320 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
19322 * config/i386/linux-common.h (LINK_MPX): New.
19323 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
19324 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
19325 indicating '-z bndplt' support by linker.
19326 * configure: Regenerate.
19327 * config.in: Regenerate.
19329 2015-07-16 Richard Biener <rguenther@suse.de>
19331 * fold-const.c (fold_widened_comparison): Remove.
19332 (fold_sign_changed_comparison): Likewise.
19333 (fold_comparison): Move widened and sign-changed comparison
19335 * match.pd: ... to patterns here.
19336 * generic-match-head.c: Include target.h.
19337 * gimple-match-head.c: Likewise.
19339 2015-07-16 Richard Biener <rguenther@suse.de>
19341 * tree-ssa-dom.c (dom_valueize): New function.
19342 (record_temporary_equivalences): Also record equivalences
19343 for dominating stmts that have uses of equivalences we are
19346 2015-07-16 Bin Cheng <bin.cheng@arm.com>
19348 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
19349 add_autoinc_candidates.
19350 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
19351 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
19352 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
19353 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
19355 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
19356 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
19357 Remove parameter struct iv*. Call add_autoinc_candidates here.
19358 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
19359 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
19361 (find_iv_candidates): Call new functions.
19363 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
19365 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
19366 uninitialized-variable warning.
19368 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
19371 * config/sh/sh.md (movdi): Split simple reg move to two movsi
19372 when the destination is R0.
19374 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
19377 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
19378 * config/i386/i386.c (ix86_expand_pextr): New function.
19379 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
19380 for non-lowpart subregs.
19381 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
19382 (insv<mode>): Use SWI248 mode iterator.
19383 (insv<mode>_1): Ditto.
19385 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
19386 Sebastian Pop <s.pop@samsung.com>
19388 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
19389 iterator to use_stmt.
19391 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
19392 Sebastian Pop <s.pop@samsung.com>
19394 * graphite-scop-detection.c (build_scops_1): Discard scops for
19397 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
19398 Sebastian Pop <s.pop@samsung.com>
19400 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
19401 case of a return statement in scop.
19403 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
19404 Sebastian Pop <s.pop@samsung.com>
19406 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
19407 INTEGER_TYPE parameters.
19408 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
19409 VECTOR_CST in scan_tree_for_params.
19410 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
19412 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
19414 * gimple-pretty-print.h: Don't include pretty-print.h.
19415 * tree-streamer.h: Don't include lto-streamer.h.
19416 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
19417 * gimple-streamer-in.c: Remove redundant includes.
19418 * gimple-streamer-out.c: Likewise.
19419 * ipa-devirt.c: Likewise.
19420 * ipa-icf.c: Likewise.
19421 * ipa-inline-analysis.c: Likewise.
19422 * ipa-polymorphic-call.c: Likewise.
19423 * ipa-profile.c: Likewise.
19424 * ipa-prop.c: Likewise.
19425 * ipa-pure-const.c: Likewise.
19426 * lto-cgraph.c: Likewise.
19427 * lto-streamer-in.c: Likewise.
19428 * lto-streamer-out.c: Likewise.
19429 * lto-streamer.c: Likewise.
19430 * tree-streamer-in.c: Likewise.
19431 * tree-streamer-out.c: Likewise.
19432 * tree-streamer.c: Likewise.
19434 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
19436 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
19438 * opts.c: Remove multiline #include comment.
19440 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
19442 * config/nvptx/mkoffload.c (process): Add C++ protection to
19445 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
19448 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
19449 null before IEEE 128-bit floating point support patch.
19451 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19453 * simplify-rtx.c (simplify_ternary_operation): Add simplification
19454 for (!c) != {0,...,0} ? a : b for vector modes.
19456 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
19457 Martin Jambor <mjambor@suse.cz>
19459 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
19460 struct func_body_info* instead of struct ipa_node_params*, expecting
19461 fbi->info to be filled in. Replace throughout. Adjust call to
19462 ipa_load_from_parm_agg.
19463 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
19464 instead of struct ipa_node_params*. Adjust calls to other functions
19465 so that they pass either fbi or fbi->info.
19466 (set_switch_stmt_execution_predicate): Likewise.
19467 (will_be_nonconstant_predicate): Likewise.
19468 (compute_bb_predicates): Likewise.
19469 (estimate_function_body_sizes): Move asserts earlier. Fill in
19470 struct func_body_info, replace parms_info with fbi.info. Adjust
19471 calls to functions that now accept struct func_body_info.
19472 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
19473 (struct func_body_info): Likewise.
19474 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
19475 remove static. Adjust callers.
19476 (ipa_load_from_parm_agg): Remove.
19477 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
19478 (func_body_info): Likewise.
19479 (ipa_load_from_parm_agg): Adjust prototype.
19481 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19483 * gensupport.c (rtx_handle_directive): Adjust.
19484 * read-rtl.c (apply_iterators): Take vector to add rtxs to
19485 instead of expr list rtx.
19486 (add_define_attr_for_define_subst): Likewise.
19487 (add_define_subst_attr): Likewise.
19488 (read_subst_mapping): Likewise.
19489 (read_rtx): Likewise.
19490 * rtl.h (read_rtx): Adjust.
19492 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19494 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
19496 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
19499 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
19500 (*tls_local_dynamic_base_64_<mode>): Ditto.
19501 (*tls_local_dynamic_base_64_largepic): Ditto.
19502 (tls_global_dynamic_64_<mode>): Update expander pattern.
19503 (tls_local_dynamic_base_64_<mode>): Ditto.
19505 2015-07-15 Richard Biener <rguenther@suse.de>
19507 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
19508 and bool_var == 1 -> bool_var simplifications ...
19509 * match.pd: ... to patterns here. Factor out negate_expr_p
19510 cases from the A - B -> A + (-B) patterns as negate_expr_p
19511 predicate and add a -(A + B) -> (-B) - A pattern.
19513 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
19515 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
19517 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
19518 Robert Suchanek <robert.suchanek@imgtec.com>
19520 * config/mips/mips.c (mips_int_mask): New enum.
19521 (mips_shadow_set): Likewise.
19522 (int_mask): New variable.
19523 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
19524 (machine_function): Add int_mask and use_shadow_register_set.
19525 (mips_attribute_table): Add attribute handlers for interrupt and
19526 use_shadow_register_set.
19527 (mips_interrupt_mask): New static function.
19528 (mips_handle_interrupt_attr): Likewise.
19529 (mips_handle_use_shadow_register_set_attr): Likewise.
19530 (mips_use_shadow_register_set): Change return type to enum
19531 mips_shadow_set. Add argument handling for use_shadow_register_set
19533 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
19534 compare with mips_shadow_set enum.
19535 (mips_compute_frame_info): Add interrupt mask and
19536 use_shadow_register_set to per-function information structure.
19537 Add a stack slot for EPC unconditionally.
19538 (mips_expand_prologue): Compare use_shadow_register_set value
19539 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
19540 masked interrupt register but in EIC mode use K0 and save Cause in K0.
19541 EPC saved and restored unconditionally. Use PMODE_INSN macro when
19542 copying the stack pointer from the shadow register set.
19543 * config/mips/mips.h (SR_IM0): New define.
19544 * config/mips/mips.md (mips_rdpgpr): Rename to...
19545 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
19546 * doc/extend.texi (Declaring Attributes of Functions): Document
19547 optional arguments for interrupt and use_shadow_register_set
19550 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
19552 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
19553 interrupt attribute.
19554 (mips_expand_prologue): Disable the floating point unit in an ISR.
19555 * config/mips/mips.h (SR_COP1): New define.
19557 2015-07-15 Richard Biener <rguenther@suse.de>
19559 * genmatch.c (parser::peek, parser::peek_ident): Add argument
19560 to tell how many tokens to peek ahead (default 1).
19561 (parser::eat_token, parser::eat_ident): Return token consumed.
19562 (parser::parse_result): Parse new switch statement.
19563 * match.pd: Use case statements where appropriate.
19565 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
19567 PR rtl-optimization/58066
19568 * calls.c (expand_call): Precompute register parameters before stack
19569 alignment is performed.
19571 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
19573 PR rtl-optimization/66838
19574 * postreload.c (reload_cse_move2add): Also process
19575 CALL_INSN_FUNCTION_USAGE when resetting information of
19576 call-clobbered registers.
19578 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
19579 Cesar Philippidis <cesar@codesourcery.com>
19580 Chung-Lin Tang <cltang@codesourcery.com>
19582 * config/nios2/constraints.md (U, v): New constraints.
19583 * config/nios2/predicates.md (rdprs_dcache_operand): New.
19584 (ldstex_memory_operand): New.
19585 * config/nios2/sync.md: New file.
19586 * config/nios2/nios2.md (unspecv): Add new builtin function
19588 (rdprs, flushd, flushda, wrpie, eni): New patterns.
19589 (top-level): Include sync.md.
19590 * config/nios2/nios2.c (N2_FTYPES): Add function types for
19592 (N2_BUILTINS): Add arch field setting, add new builtins.
19593 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
19595 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
19596 Also handle ldex/stex/ldsex/stsex builtins.
19597 (nios2_expand_rdprs_builtin): New function.
19598 (nios2_expand_cache_builtin): New function.
19599 (nios2_expand_wrpie_builtin): New function.
19600 (nios2_expand_eni_builtin): New function.
19601 (nios2_expand_builtin): Add arch field handling and new builtin
19603 * doc/extend.texi (Altera Nios II Built-in Functions): Document
19605 * doc/md.texi (Machine Constraints): Document U and v constraints.
19607 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
19608 Cesar Philippidis <cesar@codesourcery.com>
19609 Chung-Lin Tang <cltang@codesourcery.com>
19611 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
19612 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
19613 callee_save_reg_size and uses_anonymous_args fields.
19614 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
19615 (nios2_create_cfa_notes): New function.
19616 (nios2_adjust_stack): New function for adjusting stack.
19617 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
19618 Use nios2_adjust_stack.
19619 (nios2_expand_epilogue): Likewise.
19620 (nios2_expand_return): New function.
19621 (nios2_can_use_return_insn): Update for CDX pop.n usage.
19622 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
19623 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
19624 * config/nios2/nios2.md (return): Use nios2_expand_return.
19626 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
19627 Cesar Philippidis <cesar@codesourcery.com>
19628 Chung-Lin Tang <cltang@codesourcery.com>
19630 * config/nios2/predicates.md (pop_operation): New.
19631 (ldwm_operation, stwm_operation): New.
19632 (nios2_hard_register_operand): New.
19633 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
19634 (ldstwm_operation_p): Declare.
19635 (gen_ldstwm_peep): Declare.
19636 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
19637 (base_reg_adjustment_p): New.
19638 (pop_operation_p): New.
19639 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
19640 (nios2_ldstwm_regset_p): New.
19641 (ldstwm_operation_p): New.
19643 (nios2_ldst_parallel): New.
19644 (struct ldswm_operand): Declare.
19645 (compare_ldstwm_operands): New.
19646 (can_use_cdx_ldstw): New.
19647 (gen_ldstwm_peep): New.
19648 * config/nios2/nios2-ldstwm.sml: New.
19649 * config/nios2/nios2.md: Include ldstwm.md.
19650 * config/nios2/ldstwm.md: Generated.
19652 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
19653 Cesar Philippidis <cesar@codesourcery.com>
19654 Chung-Lin Tang <cltang@codesourcery.com>
19656 * config/nios2/nios2.h (LABEL_ALIGN): Define.
19657 (REG_ALLOC_ORDER): Define.
19658 (ADJUST_REG_ALLOC_ORDER): Define.
19659 (HONOR_REG_ALLOC_ORDER): Define.
19660 (CDX_REG_P): Define.
19661 (ANDCLEAR_INT): Define.
19662 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
19663 (nios2_label_align): Declare.
19664 (nios2_cdx_narrow_form_p): Declare.
19665 (nios2_adjust_reg_alloc_order): Declare.
19666 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
19668 (nios2_large_unspec_reloc_p): New function, split from...
19669 (nios2_legitimate_pic_operand_p): ...here.
19670 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
19671 (nios2_print_operand_punct_valid_p): New.
19672 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
19673 (split_mem_address): New.
19674 (split_alu_insn): New.
19676 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
19677 (enum nios2_add_insn_kind): New.
19678 (nios2_add_insn_names, nios2_add_insn_narrow): New.
19679 (nios2_add_insn_classify): New.
19680 (nios2_add_insn_asm): New.
19681 (nios2_cdx_narrow_form_p): New.
19682 (label_align, min_labelno, max_labelno): New.
19683 (nios2_reorg): New.
19684 (nios2_label_align): New.
19685 (nios2_adjust_reg_alloc_order): New.
19686 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
19687 (TARGET_MACHINE_DEPENDENT_REORG): Define.
19688 * config/nios2/constraints.md (P): New constraint.
19689 * config/nios2/predicates.md (const_and_operand): New.
19690 (and_operand): New.
19691 (stack_memory_operand): New.
19692 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
19693 (length): Update to use nios2_cdx_narrow_form_p().
19694 (type): Add new insn type values.
19695 (control, alu, st, ld, shift): Update insn reservations with
19696 new insn type values.
19697 (*high, *lo_sum): Define new insn patterns for constant generation.
19698 (movqi_internal, movhi_internal, movsi_internal): Reduce
19699 alternatives, update asm template to handle CDX variants, update
19701 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
19702 template, update type attributes.
19703 (extendhisi2, extendqi<mode>2): Likewise.
19704 (addsi3): Change to use function for asm string.
19705 (subsi3): Add CDX notation to asm template, update type attributes.
19706 (negsi3, one_cmplsi3): Likewise.
19707 (andsi3): New pattern, specialized from logical patterns.
19708 (<code>si3): Remove and case, combine alternatives, update asm
19710 (<shift_op>si3): Add CDX notation, update type attributes.
19711 (rotrsi3): Update type attribute.
19712 (*merge, extzv, insv): New insn patterns.
19713 (return): Change to define_expand.
19714 (simple_return): Add CDX notation, update type attributes.
19715 (indirect_jump): Add CDX notation.
19716 (jump): Update asm cases, update length attribute expression.
19717 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
19718 (nios2_cbranch): Update asm cases and length attribute expression
19719 to handle CDX variants.
19720 (nios2_cmp<code>): Update asm template.
19721 (nop): Add CDX notation, update type attributes.
19722 (trap): Add CDX notation.
19723 (ctrapsi4): Update asm cases and length attribute expression to
19724 handle CDX variant.
19725 * doc/md.texi (Machine Constraints): Document P constraint.
19727 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
19728 Cesar Philippidis <cesar@codesourcery.com>
19729 Chung-Lin Tang <cltang@codesourcery.com>
19731 * config/nios2/nios2.h (SMALL_INT12): New macro.
19732 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
19733 (nios2_valid_addr_expr_p): Use it.
19734 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
19735 with implicit "io" instructions on R2.
19736 * config/nios2/constraints.md (w): New constraint.
19737 * config/nios2/predicates.md (ldstio_memory_operand): New.
19738 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
19739 operand predicate and constraint.
19740 (ld<bh>io_signed, st<bhw>io>): Likewise.
19741 * doc/md.texi (Machine Constraints): Document w constraint.
19743 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
19744 Cesar Philippidis <cesar@codesourcery.com>
19745 Chung-Lin Tang <cltang@codesourcery.com>
19747 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
19748 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
19749 Nios II architecture level.
19750 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
19751 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
19752 (OPTION_DEFAULT_SPECS): Define.
19753 (ASM_SPEC): Add -march= spec strings.
19754 * config/nios2/nios2.c (nios2_option_override): Check for
19755 conflicts involving new options.
19756 * config.gcc (nios2*-*-*): Support --with-arch=.
19757 * doc/invoke.texi (Option Summary, Nios II Options): Document
19758 -march=, -mbmx, and -mcdx.
19760 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
19762 PR rtl-optimization/66626
19763 * lra-constraints.c (lra_constraints): Prevent equivalence
19764 substitution for static chain pseudo in functions with nonlocal
19767 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
19769 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
19770 (nios2_emit_stack_limit_check): Add size parameter. Handle
19771 -fstack-limit-symbol as well as -fstack-limit-register.
19772 (nios2_expand_prologue): Emit only a single stack limit check,
19773 even if multiple stack adjustments are required.
19774 (nios2_option_override): Diagnose unsupported combination of -fpic
19775 and -stack-limit-symbol.
19777 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
19779 * Makefile.in (top_srcdir): New.
19780 * configure.ac: Use AM_ZLIB.
19781 * configure: Regeneated.
19783 2015-07-14 Matthias Klose <doko@ubuntu.com>
19786 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
19788 2015-07-14 Richard Biener <rguenther@suse.de>
19790 PR tree-optimization/66863
19791 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
19792 what we record for conversion use stmt lhs inequalities.
19794 2015-07-14 Richard Biener <rguenther@suse.de>
19796 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
19797 (decision_tree::gen_gimple): Likewise.
19799 2015-07-14 Tom de Vries <tom@codesourcery.com>
19801 * gcc.c (greater_than_spec_func): Declare forward.
19802 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
19803 -ftree-parallelize-loops={0,1}.
19804 (static_spec_functions): Add greater_than_spec_func function with name
19806 (greater_than_spec_func): New function.
19808 2015-07-14 Richard Biener <rguenther@suse.de>
19810 * tree-ssa-dom.c (record_temporary_equivalences): Merge
19811 wideing type conversion case from record_equivalences_from_incoming_edge
19812 and use record_equality to record equivalences.
19813 (record_equivalences_from_incoming_edge): Call
19814 record_temporary_equivalences.
19816 2015-07-14 Richard Biener <rguenther@suse.de>
19818 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
19819 (struct if_expr): New.
19820 (struct with_expr): Likewise.
19821 (is_a_helper): Add helpers for if_expr and with_expr.
19822 (struct simplify): Add simplify_kind enum and member. Remove
19824 (simplify::simplify): Adjust.
19825 (lower_commutative): Adjust.
19826 (lower_opt_convert): Likewise.
19827 (lower_cond): Likewise.
19828 (replace_id): Handle with_expr and if_expr.
19829 (lower_for): Adjust.
19830 (dt_simplify::gen_1): New recursive worker, split out from ...
19831 (dt_simplify::gen): ... here. Deal with if and with expansion
19833 (capture_info::capture_info): Take context argument
19834 (capture_info::walk_result): Only analyze specific result.
19835 (parser::parse_result): New function.
19836 (parser::parse_simplify): Adjust to parse ifs with then end
19838 (parser::parse_if): Simplify.
19839 (parser::parse_pattern): Pass down simplify kind.
19840 * match.pd: Convert if structure to new syntax.
19842 2015-07-13 Marek Polacek <polacek@redhat.com>
19844 * rtl.c (rtx_equal_p_cb): Fix typo.
19846 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
19848 * omega.h: Don't include config.h, don't include params.h again if
19849 omega.h has already been included.
19850 * graphite-poly.h: Include sese.h.
19851 * graphite.c: Don't include sese.h, remove needless includes and
19852 minimize includes outside #ifdef HAVE_isl block.
19853 * graphite-blocking.c: Don't include sese.h, remove needless includes,
19854 and wrap entire file in #ifdef HAVE_isl
19855 * graphite-dependences.c: Likewise.
19856 * graphite-interchange.c: Likewise.
19857 * graphite-isl-ast-to-gimple.c: Likewise.
19858 * graphite-optimize-isl.c: Likewise.
19859 * graphite-poly.c: Likewise.
19860 * graphite-scop-detection.c: Likewise.
19861 * graphite-sese-to-poly.c: Likewise.
19863 2015-07-13 Tom de Vries <tom@codesourcery.com>
19865 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
19867 2015-07-13 Renlin Li <renlin.li@arm.com>
19870 * simplify-rtx.c (simplify_const_relational_operation): Add
19871 side_effects_p checks.
19873 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
19875 * bitmap.h: Fix double word typos.
19876 * builtins.c: Same.
19878 * cfgloopmanip.c: Same.
19881 * cgraphclones.c: Same.
19883 * config/aarch64/aarch64-protos.h: Same.
19884 * config/aarch64/aarch64.c: Same.
19885 * config/aarch64/aarch64.md: Same.
19886 * config/arm/arm.md: Same.
19887 * config/arm/arm1020e.md: Same.
19888 * config/arm/arm1026ejs.md: Same.
19889 * config/arm/arm926ejs.md: Same.
19890 * config/arm/fa526.md: Same.
19891 * config/arm/fa606te.md: Same.
19892 * config/arm/fa626te.md: Same.
19893 * config/arm/fa726te.md: Same.
19894 * config/arm/fmp626.md: Same.
19895 * config/darwin.c: Same.
19896 * config/epiphany/epiphany.c: Same.
19897 * config/frv/frv.c: Same.
19898 * config/ft32/ft32.c: Same.
19899 * config/gnu-user.h: Same.
19900 * config/h8300/constraints.md: Same.
19901 * config/i386/i386.c: Same.
19902 * config/i386/i386.md: Same.
19903 * config/iq2000/iq2000.md: Same.
19904 * config/mips/mips.c: Same.
19905 * config/mmix/mmix.md: Same.
19906 * config/moxie/moxie.c: Same.
19907 * config/nds32/nds32.md: Same.
19908 * config/pa/pa.h: Same.
19909 * config/rs6000/aix.h: Same.
19910 * config/rs6000/rs6000.h: Same.
19911 * config/sh/sh.c: Same.
19912 * config/tilegx/tilegx.md: Same.
19913 * config/tilepro/gen-mul-tables.cc: Same.
19916 * doc/invoke.texi: Same.
19918 * dwarf2out.c: Same.
19921 * genmatch.c: Same.
19922 * gimplify.c: Same.
19923 * hash-table.h: Same.
19924 * internal-fn.c: Same.
19926 * ipa-devirt.c: Same.
19929 * ipa-profile.c: Same.
19930 * ipa-prop.c: Same.
19931 * ipa-prop.h: Same.
19934 * reg-stack.c: Same.
19935 * regcprop.c: Same.
19940 * tree-inline.c: Same.
19941 * tree-sra.c: Same.
19942 * tree-ssa-dom.c: Same.
19943 * tree-ssa-loop-ivopts.c: Same.
19944 * tree-ssa-structalias.c: Same.
19945 * tree-ssa-tail-merge.c: Same.
19946 * tree-ssa-ter.c: Same.
19947 * tree-ssa-threadupdate.c: Same.
19948 * tree-ssa-uninit.c: Same.
19949 * tree-ssanames.c: Same.
19950 * tree-vect-loop-manip.c: Same.
19951 * tree-vrp.c: Same.
19953 * valtrack.c: Same.
19956 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
19958 PR middle-end/66726
19959 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
19960 tree_ssa_phiopt_worker): Call it.
19962 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
19964 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
19965 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
19968 2015-07-11 Marek Polacek <polacek@redhat.com>
19970 PR middle-end/66353
19971 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
19972 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
19973 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
19974 rather than bb_has_abnormal_call_pred.
19975 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
19976 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
19977 rather than bb_has_abnormal_call_pred.
19979 2015-07-10 Anatoly Sokolov <aesok@post.ru>
19981 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
19982 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
19983 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
19984 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
19985 v850_legitimate_address_p): New functions.
19986 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
19988 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
19991 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
19992 indirect sibcall with register arguments if register available
19993 for argument passing.
19994 (init_cumulative_args): Set cfun->machine->arg_reg_available
19995 to (cum->nregs > 0) or to true if function has a variable
19997 (function_arg_advance_32): Set cfun->machine->arg_reg_available
19998 to false if cum->nregs <= 0.
19999 * config/i386/i386.h (machine_function): Add arg_reg_available.
20001 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
20003 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
20004 and gen_higpart instead of gen_rtx_SUBREG.
20005 * config/i386/i386.md
20006 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
20007 (read-modify peephole2): Use gen_lowpart instead of
20008 gen_rtx_SUBREG for operand 5.
20010 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
20012 * config/tilepro/gen-mul-tables.cc (main): Change include list for
20014 * config/tilepro/mul-tables.c: Regenerate.
20015 * config/tilegx/mul-tables.c: Regenerate.
20017 2015-07-10 Richard Biener <rguenther@suse.de>
20019 * fold-const.c (distribute_bit_expr): Remove.
20020 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
20021 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
20022 to A & (B | C) and simplifying A << C1 << C2 to ...
20023 * match.pd: ... patterns here.
20025 2015-07-10 Jiong Wang <jiong.wang@arm.com>
20027 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
20028 Mark mem as READONLY and NOTRAP for PIC symbol.
20030 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
20032 * gimple-predict.h: New file.
20033 (gimple_predict_predictor, gimple_predict_set_predictor,
20034 gimple_predict_outcome, gimple_predict_set_outcome,
20035 gimple_build_predict): Relocate here.
20036 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
20037 gimple_predict_outcome, gimple_predict_set_outcome): Move to
20039 * gimple.c (gimple_build_predict): Move to gimple-predict.h
20040 * basic-block.h: Don't include cfghooks.h.
20041 * backend.h: Don't include predict.h.
20042 * cfghooks.h: Include predict.h.
20043 * gimple-pretty-print.c: Include gimple-predict.h.
20044 * gimplify.c: Likwise.
20045 * predict.c: Adjust includes.
20046 * tree-inline.c: Likewise.
20047 * asan.c: Likewise.
20048 * auto-inc-dec.c: Likewise.
20049 * auto-profile.c: Likewise.
20050 * bb-reorder.c: Likewise.
20051 * builtins.c: Likewise.
20052 * caller-save.c: Likewise.
20053 * calls.c: Likewise.
20054 * cfganal.c: Likewise.
20055 * cfgbuild.c: Likewise.
20057 * cfgcleanup.c: Likewise.
20058 * cfgexpand.c: Likewise.
20059 * cfghooks.c: Likewise.
20060 * cfgloopanal.c: Likewise.
20061 * cfgloop.c: Likewise.
20062 * cfgloopmanip.c: Likewise.
20063 * cfgrtl.c: Likewise.
20064 * cgraph.c: Likewise.
20065 * cgraphunit.c: Likewise.
20066 * combine.c: Likewise.
20067 * cprop.c: Likewise.
20070 * dojump.c: Likewise.
20072 * except.c: Likewise.
20073 * expmed.c: Likewise.
20074 * expr.c: Likewise.
20075 * final.c: Likewise.
20076 * fold-const.c: Likewise.
20077 * function.c: Likewise.
20078 * fwprop.c: Likewise.
20079 * gcc-plugin.h: Likewise.
20080 * gcse.c: Likewise.
20081 * genattrtab.c: Likewise.
20082 * genemit.c: Likewise.
20083 * gengtype.c: Likewise.
20084 * genopinit.c: Likewise.
20085 * genoutput.c: Likewise.
20086 * genpreds.c: Likewise.
20087 * genrecog.c: Likewise.
20088 * gimple-fold.c: Likewise.
20089 * gimple-iterator.c: Likewise.
20090 * gimple-ssa-isolate-paths.c: Likewise.
20091 * gimple-ssa-strength-reduction.c: Likewise.
20092 * graph.c: Likewise.
20093 * graphite-blocking.c: Likewise.
20094 * graphite.c: Likewise.
20095 * graphite-dependences.c: Likewise.
20096 * graphite-interchange.c: Likewise.
20097 * graphite-isl-ast-to-gimple.c: Likewise.
20098 * graphite-optimize-isl.c: Likewise.
20099 * graphite-poly.c: Likewise.
20100 * graphite-scop-detection.c: Likewise.
20101 * graphite-sese-to-poly.c: Likewise.
20102 * haifa-sched.c: Likewise.
20103 * ifcvt.c: Likewise.
20104 * internal-fn.c: Likewise.
20105 * ipa-cp.c: Likewise.
20106 * ipa-profile.c: Likewise.
20107 * ipa-split.c: Likewise.
20108 * ipa-utils.c: Likewise.
20109 * ira-build.c: Likewise.
20110 * ira-color.c: Likewise.
20111 * ira-conflicts.c: Likewise.
20112 * ira-costs.c: Likewise.
20113 * ira-emit.c: Likewise.
20114 * ira-lives.c: Likewise.
20115 * jump.c: Likewise.
20116 * loop-doloop.c: Likewise.
20117 * loop-init.c: Likewise.
20118 * loop-invariant.c: Likewise.
20119 * loop-unroll.c: Likewise.
20120 * lower-subreg.c: Likewise.
20121 * lra-assigns.c: Likewise.
20123 * lra-coalesce.c: Likewise.
20124 * lra-constraints.c: Likewise.
20125 * lra-lives.c: Likewise.
20126 * lto-cgraph.c: Likewise.
20127 * lto-streamer-in.c: Likewise.
20128 * mode-switching.c: Likewise.
20129 * modulo-sched.c: Likewise.
20130 * omp-low.c: Likewise.
20131 * optabs.c: Likewise.
20132 * passes.c: Likewise.
20133 * postreload.c: Likewise.
20134 * postreload-gcse.c: Likewise.
20135 * profile.c: Likewise.
20136 * recog.c: Likewise.
20137 * regstat.c: Likewise.
20138 * reload1.c: Likewise.
20139 * reorg.c: Likewise.
20140 * rtlanal.c: Likewise.
20141 * sched-ebb.c: Likewise.
20142 * sel-sched-ir.c: Likewise.
20143 * sese.c: Likewise.
20144 * shrink-wrap.c: Likewise.
20145 * simplify-rtx.c: Likewise.
20146 * stmt.c: Likewise.
20147 * store-motion.c: Likewise.
20148 * tracer.c: Likewise.
20149 * trans-mem.c: Likewise.
20150 * tree-call-cdce.c: Likewise.
20151 * tree-cfg.c: Likewise.
20152 * tree-cfgcleanup.c: Likewise.
20153 * tree-chkp.c: Likewise.
20154 * tree-complex.c: Likewise.
20155 * tree-eh.c: Likewise.
20156 * tree-if-conv.c: Likewise.
20157 * tree-loop-distribution.c: Likewise.
20158 * tree-outof-ssa.c: Likewise.
20159 * tree-parloops.c: Likewise.
20160 * tree-predcom.c: Likewise.
20161 * tree-pretty-print.c: Likewise.
20162 * tree-profile.c: Likewise.
20163 * tree-sra.c: Likewise.
20164 * tree-ssa.c: Likewise.
20165 * tree-ssa-coalesce.c: Likewise.
20166 * tree-ssa-dce.c: Likewise.
20167 * tree-ssa-dom.c: Likewise.
20168 * tree-ssa-forwprop.c: Likewise.
20169 * tree-ssa-ifcombine.c: Likewise.
20170 * tree-ssa-loop-ch.c: Likewise.
20171 * tree-ssa-loop-im.c: Likewise.
20172 * tree-ssa-loop-ivcanon.c: Likewise.
20173 * tree-ssa-loop-ivopts.c: Likewise.
20174 * tree-ssa-loop-manip.c: Likewise.
20175 * tree-ssa-loop-prefetch.c: Likewise.
20176 * tree-ssa-loop-unswitch.c: Likewise.
20177 * tree-ssa-math-opts.c: Likewise.
20178 * tree-ssa-phiopt.c: Likewise.
20179 * tree-ssa-pre.c: Likewise.
20180 * tree-ssa-reassoc.c: Likewise.
20181 * tree-ssa-sink.c: Likewise.
20182 * tree-ssa-tail-merge.c: Likewise.
20183 * tree-ssa-threadedge.c: Likewise.
20184 * tree-ssa-threadupdate.c: Likewise.
20185 * tree-switch-conversion.c: Likewise.
20186 * tree-tailcall.c: Likewise.
20187 * tree-vect-data-refs.c: Likewise.
20188 * tree-vect-loop.c: Likewise.
20189 * tree-vect-loop-manip.c: Likewise.
20190 * tree-vectorizer.c: Likewise.
20191 * tree-vrp.c: Likewise.
20192 * ubsan.c: Likewise.
20193 * value-prof.c: Likewise.
20194 * varasm.c: Likewise.
20195 * var-tracking.c: Likewise.
20196 * config/aarch64/aarch64-builtins.c: Likewise.
20197 * config/aarch64/aarch64.c: Likewise.
20198 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
20199 * config/alpha/alpha.c: Likewise.
20200 * config/arc/arc.c: Likewise.
20201 * config/arm/arm.c: Likewise.
20202 * config/avr/avr.c: Likewise.
20203 * config/bfin/bfin.c: Likewise.
20204 * config/c6x/c6x.c: Likewise.
20205 * config/cr16/cr16.c: Likewise.
20206 * config/cris/cris.c: Likewise.
20207 * config/darwin.c: Likewise.
20208 * config/darwin-c.c: Likewise.
20209 * config/epiphany/epiphany.c: Likewise.
20210 * config/epiphany/mode-switch-use.c: Likewise.
20211 * config/epiphany/resolve-sw-modes.c: Likewise.
20212 * config/fr30/fr30.c: Likewise.
20213 * config/frv/frv.c: Likewise.
20214 * config/ft32/ft32.c: Likewise.
20215 * config/h8300/h8300.c: Likewise.
20216 * config/i386/i386.c: Likewise.
20217 * config/i386/winnt.c: Likewise.
20218 * config/ia64/ia64.c: Likewise.
20219 * config/iq2000/iq2000.c: Likewise.
20220 * config/lm32/lm32.c: Likewise.
20221 * config/m32c/m32c.c: Likewise.
20222 * config/m32r/m32r.c: Likewise.
20223 * config/m68k/m68k.c: Likewise.
20224 * config/mcore/mcore.c: Likewise.
20225 * config/mep/mep.c: Likewise.
20226 * config/microblaze/microblaze.c: Likewise.
20227 * config/mips/mips.c: Likewise.
20228 * config/mmix/mmix.c: Likewise.
20229 * config/mn10300/mn10300.c: Likewise.
20230 * config/moxie/moxie.c: Likewise.
20231 * config/msp430/msp430.c: Likewise.
20232 * config/nds32/nds32.c: Likewise.
20233 * config/nds32/nds32-cost.c: Likewise.
20234 * config/nds32/nds32-fp-as-gp.c: Likewise.
20235 * config/nds32/nds32-intrinsic.c: Likewise.
20236 * config/nds32/nds32-isr.c: Likewise.
20237 * config/nds32/nds32-md-auxiliary.c: Likewise.
20238 * config/nds32/nds32-memory-manipulation.c: Likewise.
20239 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
20240 * config/nds32/nds32-predicates.c: Likewise.
20241 * config/nios2/nios2.c: Likewise.
20242 * config/nvptx/nvptx.c: Likewise.
20243 * config/pa/pa.c: Likewise.
20244 * config/pdp11/pdp11.c: Likewise.
20245 * config/rl78/rl78.c: Likewise.
20246 * config/rs6000/rs6000.c: Likewise.
20247 * config/rx/rx.c: Likewise.
20248 * config/s390/s390.c: Likewise.
20249 * config/sh/sh.c: Likewise.
20250 * config/sh/sh-mem.cc: Likewise.
20251 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
20252 * config/sh/sh_treg_combine.cc: Likewise.
20253 * config/sparc/sparc.c: Likewise.
20254 * config/spu/spu.c: Likewise.
20255 * config/stormy16/stormy16.c: Likewise.
20256 * config/tilegx/tilegx.c: Likewise.
20257 * config/tilepro/tilepro.c: Likewise.
20258 * config/v850/v850.c: Likewise.
20259 * config/vax/vax.c: Likewise.
20260 * config/visium/visium.c: Likewise.
20261 * config/xtensa/xtensa.c: Likewise.
20263 2015-07-10 Richard Biener <rguenther@suse.de>
20265 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
20266 (decision_tree::gen_gimple): Likewise.
20267 (decision_tree::gen_generic): Likewise.
20269 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
20272 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
20273 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
20275 2015-07-10 Jakub Jelinek <jakub@redhat.com>
20277 PR middle-end/66820
20278 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
20279 or ORT_TASK contexts.
20280 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
20283 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20285 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
20288 2015-07-10 Tom de Vries <tom@codesourcery.com>
20290 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
20291 insert nit + 1 bound.
20293 2015-07-10 Richard Biener <rguenther@suse.de>
20295 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
20296 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
20297 (if_convertible_loop_p_1): For this always compute bb predicates.
20298 (if_convertible_loop_p): And free them.
20300 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20302 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
20305 2015-07-10 Richard Biener <rguenther@suse.de>
20307 PR tree-optimization/66823
20308 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
20309 inverted predicate.
20311 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
20313 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
20314 to handle mips[32|64]r3 and mips[32|64]r5.
20316 2015-07-09 Jakub Jelinek <jakub@redhat.com>
20318 PR middle-end/66633
20319 * tree-nested.c (get_static_chain): Or in a flag into
20320 info->static_chain_added.
20321 (get_frame_field, get_nonlocal_debug_decl): Likewise.
20322 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
20323 2015-07-01 changes.
20324 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
20325 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
20328 PR tree-optimization/66718
20329 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
20331 (vect_simd_lane_linear): New function.
20332 (vectorizable_simd_clone_call): Support using linear arguments for
20333 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
20335 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
20338 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
20340 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
20342 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
20343 Use machine mode, not enum machine_mode in the prototype.
20345 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
20346 classify 128-bit floating point support.
20347 (FLOAT128_IBM_P): Likewise.
20348 (FLOAT128_VECTOR_P): Likewise.
20349 (FLOAT128_2REG_P): Likewise.
20350 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
20351 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
20352 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
20353 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
20355 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
20356 tests against TFmode/TDmode, since those modes do not use VSX
20358 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
20360 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
20361 tests against TFmode, etc.
20362 (invalid_e500_subreg): Add tests against IFmode/KFmode.
20363 (reg_offset_addressing_ok_p): Likewise.
20364 (rs6000_legitimate_offset_address_p): Likewise.
20365 (rs6000_legitimize_address): Likewise.
20366 (rs6000_legitimize_reload_address): Likewise.
20367 (rs6000_legitimate_address_p): Clean up tests against TFmode and
20368 TDmode to use the new helper macros, which will include IFmode and
20370 (rs6000_emit_move): Likewise.
20371 (rs6000_darwin64_record_arg_recurse): Likewise.
20372 (print_operand): Likewise.
20373 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
20374 that uses a single vector register as a vector and not as a
20375 floating point register in terms of the calling sequence.
20376 (rs6000_discover_homogeneous_aggregate): Likewise.
20377 (rs6000_return_in_memory): Likewise.
20378 (init_cumulative_args): Likewise.
20379 (rs6000_function_arg_boundary): Likewise.
20380 (rs6000_function_arg_advance_1): Likewise.
20381 (rs6000_function_arg): Likewise.
20382 (rs6000_pass_by_reference): Likewise.
20383 (rs6000_gimplify_va_arg): Likewise.
20384 (rs6000_secondary_reload_memory): Use machine_mode not enum
20386 (rs6000_split_multireg_move): Use new helper macros.
20387 (spe_func_has_64bit_regs_p): Likewise.
20388 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
20389 (output_toc): Use new helper macros.
20390 (rs6000_register_move_cost): Likewise.
20391 (rs6000_function_value): Add IEEE 128-bit floating point calling
20393 (rs6000_libcall_value): Likewise.
20394 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
20395 floating point support.
20396 (rs6000_vector_mode_supported_p): Likewise.
20398 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
20400 PR rtl-optimization/66782
20401 * lra-int.h (struct lra_insn_recog_data): Add comment about
20402 clobbered hard regs for arg_hard_regs.
20403 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
20404 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
20405 Add condition for processing used hard regs.
20406 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
20407 Process clobbered hard regs.
20409 2015-07-09 Michael Matz <matz@suse.de>
20411 * genmatch.c (fprintf_indent): New function.
20412 (operand::gen_transform): Add indent parameter.
20413 (expr::gen_transform, c_expr::gen_transform,
20414 capture::gen_transform): Ditto and use fprintf_indent.
20415 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
20416 (dt_operand::gen, dt_operand::gen_predicate,
20417 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
20418 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
20419 (decision_tree::gen_gimple): Adjust calls and indent generated
20421 (decision_tree::gen_generic): Ditto.
20422 (write_predicate): Ditto.
20424 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
20427 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
20428 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
20429 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
20430 {GENERAL,SSE,MMX}_REG_P where appropriate.
20432 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
20434 * lto-streamer.h: Don't include target.h and alloc-pool.h.
20435 * builtins.c: Adjust includes.
20436 * gimple.c: Likewise.
20437 * ipa-icf.c: Likewise.
20438 * lto-opts.c: Likewise.
20439 * ipa-reference.c: Likewise.
20440 * lto-section-out.c: Likewise.
20441 * lto-streamer-in.c: Likewise.
20442 * lto-streamer-out.c: Likewise.
20443 * opts-global.c: Likewise.
20444 * symtab.c: Likewise.
20445 * tree-chkp.c: Likewise.
20446 * tree-ssa-live.c: Likewise.
20447 * tree-streamer-in.c: Likewise.
20448 * tree-streamer-out.c: Likewise.
20449 * config/darwin.c: Likewise.
20450 * config/i386/winnt.c: Likewise.
20452 2015-07-09 Richard Biener <rguenther@suse.de>
20454 * genmatch.c (struct expr): Add force_single_use flag.
20455 (expr::expr): Add copy constructor.
20456 (capture_info::walk_match): Gather force_single_use captures.
20457 (expr::gen_transform): Use possibly NULLified sequence.
20458 (dt_simplify::gen): Apply single-use restrictions by NULLifying
20459 seq if any constrained expr is not single-use.
20460 (parser::parse_expr): Refactor to allow multiple flags. Handle
20461 's' flag to force an expression have a single-use if the pattern
20462 simplifies to more than one statement.
20463 * match.pd: Convert most single_use conditionals to :s flags.
20465 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
20467 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
20468 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
20469 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
20471 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
20473 * flags.h: Don't include flag-types.h or options.h.
20474 * opts-common.c: Adjust includes.
20475 * opts-global.c: Likewise.
20476 * common/config/epiphany/epiphany-common.c: Likewise.
20478 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
20481 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
20484 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
20487 * config/i386/i386.c (ix86_return_in_memory): Return true
20488 if int_size_in_bytes returns negative for IA MCU.
20490 2015-07-09 Marek Polacek <polacek@redhat.com>
20492 PR tree-optimization/66718
20493 * Makefile.in (OBJS): Add gimple-laddress.o.
20494 * passes.def: Schedule pass_laddress.
20495 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
20496 * tree-pass.h (make_pass_laddress): Declare.
20497 * gimple-laddress.c: New file.
20499 2015-07-09 Richard Biener <rguenther@suse.de>
20501 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
20503 2015-07-09 Richard Biener <rguenther@suse.de>
20505 PR tree-optimization/66807
20506 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
20508 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
20510 * function.c (stack_protect_epilogue): Use if rather than switch for
20511 check targetm.have_stack_protect_test.
20513 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20515 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
20516 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
20517 * config/arc/arc.h: Likewise.
20518 * config/arm/arm.h: Likewise.
20519 * config/bfin/bfin.h: Likewise.
20520 * config/epiphany/epiphany.h: Likewise.
20521 * config/frv/frv.h: Likewise.
20522 * config/ia64/ia64.h: Likewise.
20523 * config/iq2000/iq2000.h: Likewise.
20524 * config/lm32/lm32.h: Likewise.
20525 * config/m32r/m32r.h: Likewise.
20526 * config/mcore/mcore.h: Likewise.
20527 * config/mep/mep.h: Likewise.
20528 * config/microblaze/microblaze.h: Likewise.
20529 * config/mips/mips.h: Likewise.
20530 * config/mmix/mmix.h: Likewise.
20531 * config/mn10300/mn10300.h: Likewise.
20532 * config/nds32/nds32.h: Likewise.
20533 * config/nios2/nios2.h: Likewise.
20534 * config/pa/pa.h: Likewise.
20535 * config/rl78/rl78.h: Likewise.
20536 * config/sh/sh.h: Likewise.
20537 * config/sparc/sparc.h: Likewise.
20538 * config/stormy16/stormy16.h: Likewise.
20539 * config/tilegx/tilegx.h: Likewise.
20540 * config/tilepro/tilepro.h: Likewise.
20541 * config/v850/v850.h: Likewise.
20542 * config/xtensa/xtensa.h: Likewise.
20543 * doc/tm.texi: Regenerate.
20544 * doc/tm.texi.in: Adjust.
20545 * combine.c (simplify_set): Likewise.
20546 (simplify_comparison): Likewise.
20547 * expr.c (store_constructor): Likewise.
20548 * internal-fn.c (expand_arith_overflow): Likewise.
20549 * reload.c (push_reload): Likewise.
20550 (find_reloads): Likewise.
20551 (find_reloads_subreg_address): Likewise.
20552 * reload1.c (eliminate_regs_1): Likewise.
20553 * rtlanal.c (nonzero_bits1): Likewise.
20554 (num_sign_bit_copies1): Likewise.
20555 * simplify-rtx.c (simplify_truncation): Likewise.
20557 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20559 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
20560 of AUTO_INC_DEC with the preprocessor.
20561 * combine.c (combine_instructions): Likewise.
20562 (can_combine_p): Likewise.
20563 (try_combine): Likewise.
20564 * emit-rtl.c (try_split): Likewise.
20565 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
20566 * lower-subreg.c (resolve_simple_move): Likewise.
20567 * lra.c (update_inc_notes): Likewise.
20568 * recog.c (asm_operand_ok): Likewise.
20569 (constrain_operands): Likewise.
20570 * regrename.c (scan_rtx_address): Likewise.
20571 * reload.c (update_auto_inc_notes): Likewise.
20572 (reg_inc_found_and_valid_p): Likewise.
20573 * reload1.c (reload): Likewise.
20574 (emit_input_reload_insns): Likewise.
20575 (delete_output_reload): Likewise.
20576 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
20577 * valtrack.c (cleanup_auto_inc_dec): Likewise.
20579 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20581 * rtl.h: Always define AUTO_INC_DEC.
20582 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
20583 * combine.c (combine_instructions): Likewise.
20584 (can_combine_p): Likewise.
20585 (try_combine): Likewise.
20586 * emit-rtl.c (try_split): Likewise.
20587 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
20588 * lower-subreg.c (resolve_simple_move): Likewise.
20589 * lra.c (update_inc_notes): Likewise.
20590 * recog.c (asm_operand_ok): Likewise.
20591 (constrain_operands): Likewise.
20592 * regrename.c (scan_rtx_address): Likewise.
20593 * reload.c (update_auto_inc_notes): Likewise.
20594 (find_equiv_reg): Likewise.
20595 * reload1.c (reload): Likewise.
20596 (reload_as_needed): Likewise.
20597 (choose_reload_regs): Likewise.
20598 (emit_input_reload_insns): Likewise.
20599 (delete_output_reload): Likewise.
20600 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
20601 * valtrack.c (cleanup_auto_inc_dec): Likewise.
20603 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20605 * combine.c (can_combine_def_p): Don't check the value of
20606 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
20607 (combinable_i3pat): Likewise.
20608 (mark_used_regs_combine): Likewise.
20609 * regrename.c (rename_chains): Likewise.
20610 * reload.c (find_reloads_address): Likewise.
20611 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
20613 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20615 * combine.c (update_rsp_from_reg_equal): Don't check if
20616 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
20617 (reg_nonzero_bits_for_combine): Likewise.
20618 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
20620 * config/frv/frv.h: Likewise.
20621 * config/lm32/lm32.h: Likewise.
20622 * config/mep/mep.h: Likewise.
20623 * config/mips/mips.h: Likewise.
20624 * config/rs6000/rs6000.h: Likewise.
20625 * config/sh/sh.h: Likewise.
20626 * config/tilegx/tilegx.h (enum reg_class): Likewise.
20627 * config/tilepro/tilepro.h: Likewise.
20628 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
20629 * doc/tm.texi: Regenerate.
20630 * doc/tm.texi.in: Adjust.
20631 * rtlanal.c (nonzero_bits1): Likewise.
20633 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20635 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
20636 with the preprocessor.
20637 (combine_instructions): Likewise.
20638 (try_combine): Likewise.
20640 (distribute_notes): Likewise.
20642 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20644 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
20646 (simplify_set): Likewise.
20647 * cse.c (cse_insn): Likewise.
20648 * fold-const.c (fold_single_bit_test): Likewise.
20649 (fold_unary_loc): Likewise.
20650 * postreload.c (reload_cse_simplify_set): Likewise.
20651 (reload_cse_simplify_operands): Likewise.
20653 2015-07-08 Jiong Wang <jiong.wang@arm.com>
20655 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
20656 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
20658 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
20661 * config/i386/x86intrin.h: Include <adxintrin.h> even if
20662 __iamcu__ is defined.
20664 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
20666 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
20668 2015-07-08 Iain Sandoe <iain@codesourcery.com>
20671 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
20672 names from preservation.
20674 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
20677 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
20679 (function_arg_advance_32): Don't pass vectors in registers for
20681 (function_arg_32): Likewise.
20682 (ix86_return_in_memory): Don't return vectors in registers for
20685 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
20687 PR middle-end/66334
20688 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
20689 hard regno live at the start of BB with incoming abnormal edges.
20690 * lra-lives.c (process_bb_lives): Ditto.
20692 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
20695 * config/nvptx/mkoffload.c (main): Create an offload image only in
20696 64-bit configurations.
20698 2015-07-08 Martin Liska <mliska@suse.cz>
20701 * tree-sra.c (create_access_1): Call ctor without brackets.
20702 (create_artificial_child_access): Likewise.
20704 2015-07-08 Richard Biener <rguenther@suse.de>
20706 PR tree-optimization/66793
20707 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
20708 Properly split the block after stmts ending it.
20710 2015-07-08 Richard Biener <rguenther@suse.de>
20712 PR tree-optimization/66794
20713 * passes.c (execute_function_todo): Assert that post-dominators
20715 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
20716 Free post-dominators.
20718 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20720 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
20723 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
20725 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
20726 more than or equal 8 and less than 32 when optimizing for size.
20728 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20730 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
20731 COSTS_N_INSNS (1) and increment it appropriately throughout the
20734 2015-07-08 Richard Biener <rguenther@suse.de>
20736 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
20738 2015-07-08 Alan Modra <amodra@gmail.com>
20740 * target.def (rtx_costs): Remove "code" param, add "mode".
20741 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
20742 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
20743 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
20744 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
20745 call. Track mode when given in rtx.
20746 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
20747 (default_address_cost): Pass Pmode to rtx_cost.
20748 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
20749 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
20751 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
20752 (notreg_cost): Add mode param. Use it.
20753 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
20754 mode param and pass to set_src_cost. Update all calls.
20755 (hash_scan_set): Formatting.
20756 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
20757 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
20759 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
20760 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
20761 emit_store_flag): Update set_src_cost and rtx_cost calls.
20762 * auto-inc-dec.c (attempt_change): Likewise.
20763 * calls.c (precompute_register_parameters): Likewise.
20764 * combine.c (expand_compound_operation, make_extraction,
20765 force_to_mode, distribute_and_simplify_rtx): Likewise.
20766 * dojump.c (prefer_and_bit_test): Likewise.
20767 * dse.c (find_shift_sequence): Likewise.
20768 * expr.c (compress_float_constant): Likewise.
20769 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
20770 * ifcvt.c (noce_try_sign_mask): Likewise.
20771 * loop-doloop.c (doloop_optimize): Likewise.
20772 * loop-invariant.c (create_new_invariant): Likewise.
20773 * lower-subreg.c (shift_cost, compute_costs): Likewise.
20774 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
20775 lshift_cheap_p): Likewise.
20776 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
20777 try_replace_in_use, reload_cse_move2add): Likewise.
20778 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
20780 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
20781 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
20782 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
20783 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
20784 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
20785 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
20787 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
20788 * config/arc/arc.c (arc_rtx_costs): Likewise.
20789 * config/arm/arm.c (arm_rtx_costs): Likewise.
20790 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
20791 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
20792 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
20793 * config/cris/cris.c (cris_rtx_costs): Likewise.
20794 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
20795 * config/frv/frv.c (frv_rtx_costs): Likewise.
20796 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
20797 * config/i386/i386.c (ix86_rtx_costs): Likewise.
20798 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
20799 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
20800 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
20801 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
20802 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
20803 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
20804 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
20805 * config/mep/mep.c (mep_rtx_cost): Likewise.
20806 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
20807 * config/mips/mips.c (mips_rtx_costs): Likewise.
20808 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
20809 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
20810 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
20811 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
20812 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
20813 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
20814 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
20815 * config/pa/pa.c (hppa_rtx_costs): Likewise.
20816 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
20817 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
20818 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
20819 * config/s390/s390.c (s390_rtx_costs): Likewise.
20820 * config/sh/sh.c (sh_rtx_costs): Likewise.
20821 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
20822 * config/spu/spu.c (spu_rtx_costs): Likewise.
20823 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
20824 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
20825 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
20826 * config/v850/v850.c (v850_rtx_costs): Likewise.
20827 * config/vax/vax.c (vax_rtx_costs): Likewise.
20828 * config/visium/visium.c (visium_rtx_costs): Likewise.
20829 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
20830 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
20831 "code" param, and pass as outer_code to first rtx_cost call. Pass
20832 mode to rtx_cost calls.
20833 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
20835 (aarch64_rtx_costs_wrapper): Update.
20836 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
20837 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
20839 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
20840 and rtx_cost calls.
20841 (avr_operand_rtx_cost): Similarly.
20842 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
20843 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
20844 * config/mips/mips.c (mips_stack_address_p): Comment typo.
20845 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
20846 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
20847 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
20849 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
20850 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
20851 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
20852 * doc/tm.texi: Regenerate.
20854 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
20856 * tree-core.h: Include symtab.h.
20857 * rtl.h: Include hard-reg-set.h but not flags.h.
20858 (HARD_CONST): Remove condition compilation involving HARD_CONST since
20859 hard-reg-set.h is always included.
20860 * regs.h: Don't include hard-reg-set.h or rtl.h.
20861 * cfg.h: Include dominance.h.
20862 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
20863 * backend.h: New. Aggregate commonly used backend header files.
20864 * gimple-ssa.h: Don't include tree-hasher.h.
20865 * ssa.h: New. Aggregate commonly used SSA header files.
20866 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
20867 * sel-sched-ir.h: Flatten includes.
20868 * lra-int.h: Flatten completely.
20869 * sel-sched-dump.h: Flatten includes.
20870 * ira-int.h: Flatten includes.
20871 * gimple-streamer.h: Remove all includes.
20872 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
20873 * resource.h: Flatten hard-reg-set.h and df.h.
20874 * sched-int.h: Flatten insn-arrt.h and df.h.
20875 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
20876 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
20877 * genattrtab.c (write_header): Adjust generated includes.
20878 * genautomata.c (main): Likewise.
20879 * genconditions.c (write-header): Likewise.
20880 * genemit.c (main): Likewise.
20881 * gengtype.c (open_base_files): Likewise.
20882 * genopinit.c (main): Likewise.
20883 * genoutput.c (output_prologue): Likewise.
20884 * genpeep.c (main): Likewise.
20885 * genpreds.c (write_insn_preds_c): Likewise.
20886 * genrecog.c (write_header): Likewise.
20887 * alias.c: Adjust includes.
20888 * asan.c: Likewise.
20889 * attribs.c: Likewise.
20890 * auto-inc-dec.c: Likewise.
20891 * auto-profile.c: Likewise.
20892 * bb-reorder.c: Likewise.
20893 * bt-load.c: Likewise.
20894 * builtins.c: Likewise.
20895 * caller-save.c: Likewise.
20896 * calls.c: Likewise.
20897 * ccmp.c: Likewise.
20899 * cfganal.c: Likewise.
20900 * cfgbuild.c: Likewise.
20901 * cfgcleanup.c: Likewise.
20902 * cfgexpand.c: Likewise.
20903 * cfghooks.c: Likewise.
20904 * cfgloop.c: Likewise.
20905 * cfgloopanal.c: Likewise.
20906 * cfgloopmanip.c: Likewise.
20907 * cfgrtl.c: Likewise.
20908 * cgraph.c: Likewise.
20909 * cgraphbuild.c: Likewise.
20910 * cgraphclones.c: Likewise.
20911 * cgraphunit.c: Likewise.
20912 * cilk-common.c: Likewise.
20913 * combine-stack-adj.c: Likewise.
20914 * combine.c: Likewise.
20915 * compare-elim.c: Likewise.
20916 * convert.c: Likewise.
20917 * coverage.c: Likewise.
20918 * cppbuiltin.c: Likewise.
20919 * cprop.c: Likewise.
20921 * cselib.c: Likewise.
20922 * data-streamer-in.c: Likewise.
20923 * data-streamer-out.c: Likewise.
20924 * data-streamer.c: Likewise.
20925 * dbxout.c: Likewise.
20928 * debug.c: Likewise.
20929 * df-core.c: Likewise.
20930 * df-problems.c: Likewise.
20931 * df-scan.c: Likewise.
20933 * dojump.c: Likewise.
20934 * dominance.c: Likewise.
20935 * domwalk.c: Likewise.
20936 * double-int.c: Likewise.
20938 * dumpfile.c: Likewise.
20939 * dwarf2asm.c: Likewise.
20940 * dwarf2cfi.c: Likewise.
20941 * dwarf2out.c: Likewise.
20942 * emit-rtl.c: Likewise.
20943 * et-forest.c: Likewise.
20944 * except.c: Likewise.
20945 * explow.c: Likewise.
20946 * expmed.c: Likewise.
20947 * expr.c: Likewise.
20948 * final.c: Likewise.
20949 * fixed-value.c: Likewise.
20950 * fold-const.c: Likewise.
20951 * function.c: Likewise.
20952 * fwprop.c: Likewise.
20953 * gcc-plugin.h: Likewise.
20954 * gcse-common.c: Likewise.
20955 * gcse.c: Likewise.
20956 * generic-match-head.c: Likewise.
20957 * ggc-page.c: Likewise.
20958 * gimple-builder.c: Likewise.
20959 * gimple-expr.c: Likewise.
20960 * gimple-fold.c: Likewise.
20961 * gimple-iterator.c: Likewise.
20962 * gimple-low.c: Likewise.
20963 * gimple-match-head.c: Likewise.
20964 * gimple-pretty-print.c: Likewise.
20965 * gimple-ssa-isolate-paths.c: Likewise.
20966 * gimple-ssa-strength-reduction.c: Likewise.
20967 * gimple-streamer-in.c: Likewise.
20968 * gimple-streamer-out.c: Likewise.
20969 * gimple-walk.c: Likewise.
20970 * gimple.c: Likewise.
20971 * gimplify-me.c: Likewise.
20972 * gimplify.c: Likewise.
20973 * godump.c: Likewise.
20974 * graph.c: Likewise.
20975 * graphite-blocking.c: Likewise.
20976 * graphite-dependences.c: Likewise.
20977 * graphite-interchange.c: Likewise.
20978 * graphite-isl-ast-to-gimple.c: Likewise.
20979 * graphite-optimize-isl.c: Likewise.
20980 * graphite-poly.c: Likewise.
20981 * graphite-scop-detection.c: Likewise.
20982 * graphite-sese-to-poly.c: Likewise.
20983 * graphite.c: Likewise.
20984 * haifa-sched.c: Likewise.
20985 * hw-doloop.c: Likewise.
20986 * ifcvt.c: Likewise.
20987 * init-regs.c: Likewise.
20988 * internal-fn.c: Likewise.
20989 * ipa-chkp.c: Likewise.
20990 * ipa-comdats.c: Likewise.
20991 * ipa-cp.c: Likewise.
20992 * ipa-devirt.c: Likewise.
20993 * ipa-icf-gimple.c: Likewise.
20994 * ipa-icf.c: Likewise.
20995 * ipa-inline-analysis.c: Likewise.
20996 * ipa-inline-transform.c: Likewise.
20997 * ipa-inline.c: Likewise.
20998 * ipa-polymorphic-call.c: Likewise.
20999 * ipa-profile.c: Likewise.
21000 * ipa-prop.c: Likewise.
21001 * ipa-pure-const.c: Likewise.
21002 * ipa-ref.c: Likewise.
21003 * ipa-reference.c: Likewise.
21004 * ipa-split.c: Likewise.
21005 * ipa-utils.c: Likewise.
21006 * ipa-visibility.c: Likewise.
21008 * ira-build.c: Likewise.
21009 * ira-color.c: Likewise.
21010 * ira-conflicts.c: Likewise.
21011 * ira-costs.c: Likewise.
21012 * ira-emit.c: Likewise.
21013 * ira-lives.c: Likewise.
21015 * jump.c: Likewise.
21016 * langhooks.c: Likewise.
21018 * loop-doloop.c: Likewise.
21019 * loop-init.c: Likewise.
21020 * loop-invariant.c: Likewise.
21021 * loop-iv.c: Likewise.
21022 * loop-unroll.c: Likewise.
21023 * lower-subreg.c: Likewise.
21024 * lra-assigns.c: Likewise.
21025 * lra-coalesce.c: Likewise.
21026 * lra-constraints.c: Likewise.
21027 * lra-eliminations.c: Likewise.
21028 * lra-lives.c: Likewise.
21029 * lra-remat.c: Likewise.
21030 * lra-spills.c: Likewise.
21032 * lto-cgraph.c: Likewise.
21033 * lto-compress.c: Likewise.
21034 * lto-opts.c: Likewise.
21035 * lto-section-in.c: Likewise.
21036 * lto-section-out.c: Likewise.
21037 * lto-streamer-in.c: Likewise.
21038 * lto-streamer-out.c: Likewise.
21039 * lto-streamer.c: Likewise.
21041 * mode-switching.c: Likewise.
21042 * modulo-sched.c: Likewise.
21043 * omega.c: Likewise.
21044 * omp-low.c: Likewise.
21045 * optabs.c: Likewise.
21046 * opts-global.c: Likewise.
21047 * passes.c: Likewise.
21048 * plugin.c: Likewise.
21049 * postreload-gcse.c: Likewise.
21050 * postreload.c: Likewise.
21051 * predict.c: Likewise.
21052 * print-rtl.c: Likewise.
21053 * print-tree.c: Likewise.
21054 * profile.c: Likewise.
21055 * real.c: Likewise.
21056 * realmpfr.c: Likewise.
21057 * recog.c: Likewise.
21059 * reg-stack.c: Likewise.
21060 * regcprop.c: Likewise.
21061 * reginfo.c: Likewise.
21062 * regrename.c: Likewise.
21063 * regstat.c: Likewise.
21064 * reload.c: Likewise.
21065 * reload1.c: Likewise.
21066 * reorg.c: Likewise.
21067 * resource.c: Likewise.
21068 * rtl-chkp.c: Likewise.
21069 * rtlanal.c: Likewise.
21070 * rtlhooks.c: Likewise.
21071 * sanopt.c: Likewise.
21072 * sched-deps.c: Likewise.
21073 * sched-ebb.c: Likewise.
21074 * sched-rgn.c: Likewise.
21075 * sched-vis.c: Likewise.
21076 * sdbout.c: Likewise.
21077 * sel-sched-dump.c: Likewise.
21078 * sel-sched-ir.c: Likewise.
21079 * sel-sched.c: Likewise.
21080 * sese.c: Likewise.
21081 * shrink-wrap.c: Likewise.
21082 * simplify-rtx.c: Likewise.
21083 * stack-ptr-mod.c: Likewise.
21084 * stmt.c: Likewise.
21085 * stor-layout.c: Likewise.
21086 * store-motion.c: Likewise.
21087 * stringpool.c: Likewise.
21088 * symtab.c: Likewise.
21089 * target-globals.c: Likewise.
21090 * targhooks.c: Likewise.
21091 * toplev.c: Likewise.
21092 * tracer.c: Likewise.
21093 * trans-mem.c: Likewise.
21094 * tree-affine.c: Likewise.
21095 * tree-browser.c: Likewise.
21096 * tree-call-cdce.c: Likewise.
21097 * tree-cfg.c: Likewise.
21098 * tree-cfgcleanup.c: Likewise.
21099 * tree-chkp-opt.c: Likewise.
21100 * tree-chkp.c: Likewise.
21101 * tree-chrec.c: Likewise.
21102 * tree-complex.c: Likewise.
21103 * tree-data-ref.c: Likewise.
21104 * tree-dfa.c: Likewise.
21105 * tree-diagnostic.c: Likewise.
21106 * tree-dump.c: Likewise.
21107 * tree-eh.c: Likewise.
21108 * tree-emutls.c: Likewise.
21109 * tree-if-conv.c: Likewise.
21110 * tree-inline.c: Likewise.
21111 * tree-into-ssa.c: Likewise.
21112 * tree-iterator.c: Likewise.
21113 * tree-loop-distribution.c: Likewise.
21114 * tree-nested.c: Likewise.
21115 * tree-nrv.c: Likewise.
21116 * tree-object-size.c: Likewise.
21117 * tree-outof-ssa.c: Likewise.
21118 * tree-parloops.c: Likewise.
21119 * tree-phinodes.c: Likewise.
21120 * tree-predcom.c: Likewise.
21121 * tree-pretty-print.c: Likewise.
21122 * tree-profile.c: Likewise.
21123 * tree-scalar-evolution.c: Likewise.
21124 * tree-sra.c: Likewise.
21125 * tree-ssa-address.c: Likewise.
21126 * tree-ssa-alias.c: Likewise.
21127 * tree-ssa-ccp.c: Likewise.
21128 * tree-ssa-coalesce.c: Likewise.
21129 * tree-ssa-copy.c: Likewise.
21130 * tree-ssa-copyrename.c: Likewise.
21131 * tree-ssa-dce.c: Likewise.
21132 * tree-ssa-dom.c: Likewise.
21133 * tree-ssa-dse.c: Likewise.
21134 * tree-ssa-forwprop.c: Likewise.
21135 * tree-ssa-ifcombine.c: Likewise.
21136 * tree-ssa-live.c: Likewise.
21137 * tree-ssa-loop-ch.c: Likewise.
21138 * tree-ssa-loop-im.c: Likewise.
21139 * tree-ssa-loop-ivcanon.c: Likewise.
21140 * tree-ssa-loop-ivopts.c: Likewise.
21141 * tree-ssa-loop-manip.c: Likewise.
21142 * tree-ssa-loop-niter.c: Likewise.
21143 * tree-ssa-loop-prefetch.c: Likewise.
21144 * tree-ssa-loop-unswitch.c: Likewise.
21145 * tree-ssa-loop.c: Likewise.
21146 * tree-ssa-math-opts.c: Likewise.
21147 * tree-ssa-operands.c: Likewise.
21148 * tree-ssa-phiopt.c: Likewise.
21149 * tree-ssa-phiprop.c: Likewise.
21150 * tree-ssa-pre.c: Likewise.
21151 * tree-ssa-propagate.c: Likewise.
21152 * tree-ssa-reassoc.c: Likewise.
21153 * tree-ssa-sccvn.c: Likewise.
21154 * tree-ssa-scopedtables.c: Likewise.
21155 * tree-ssa-sink.c: Likewise.
21156 * tree-ssa-strlen.c: Likewise.
21157 * tree-ssa-structalias.c: Likewise.
21158 * tree-ssa-tail-merge.c: Likewise.
21159 * tree-ssa-ter.c: Likewise.
21160 * tree-ssa-threadedge.c: Likewise.
21161 * tree-ssa-threadupdate.c: Likewise.
21162 * tree-ssa-uncprop.c: Likewise.
21163 * tree-ssa-uninit.c: Likewise.
21164 * tree-ssa.c: Likewise.
21165 * tree-ssanames.c: Likewise.
21166 * tree-stdarg.c: Likewise.
21167 * tree-streamer-in.c: Likewise.
21168 * tree-streamer-out.c: Likewise.
21169 * tree-streamer.c: Likewise.
21170 * tree-switch-conversion.c: Likewise.
21171 * tree-tailcall.c: Likewise.
21172 * tree-vect-data-refs.c: Likewise.
21173 * tree-vect-generic.c: Likewise.
21174 * tree-vect-loop-manip.c: Likewise.
21175 * tree-vect-loop.c: Likewise.
21176 * tree-vect-patterns.c: Likewise.
21177 * tree-vect-slp.c: Likewise.
21178 * tree-vect-stmts.c: Likewise.
21179 * tree-vectorizer.c: Likewise.
21180 * tree-vrp.c: Likewise.
21181 * tree.c: Likewise.
21182 * tsan.c: Likewise.
21183 * ubsan.c: Likewise.
21184 * valtrack.c: Likewise.
21185 * value-prof.c: Likewise.
21186 * var-tracking.c: Likewise.
21187 * varasm.c: Likewise.
21188 * varpool.c: Likewise.
21189 * vmsdbgout.c: Likewise.
21190 * vtable-verify.c: Likewise.
21192 * wide-int.cc: Likewise.
21193 * xcoffout.c: Likewise.
21194 * config/aarch64/aarch64-builtins.c: Likewise.
21195 * config/aarch64/aarch64.c: Likewise.
21196 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
21197 * config/alpha/alpha.c: Likewise.
21198 * config/arc/arc.c: Likewise.
21199 * config/arm/aarch-common.c: Likewise.
21200 * config/arm/arm-builtins.c: Likewise.
21201 * config/arm/arm-c.c: Likewise.
21202 * config/arm/arm.c: Likewise.
21203 * config/avr/avr-c.c: Likewise.
21204 * config/avr/avr-log.c: Likewise.
21205 * config/avr/avr.c: Likewise.
21206 * config/bfin/bfin.c: Likewise.
21207 * config/c6x/c6x.c: Likewise.
21208 * config/cr16/cr16.c: Likewise.
21209 * config/cris/cris.c: Likewise.
21210 * config/darwin-c.c: Likewise.
21211 * config/darwin.c: Likewise.
21212 * config/epiphany/epiphany.c: Likewise.
21213 * config/epiphany/mode-switch-use.c: Likewise.
21214 * config/epiphany/resolve-sw-modes.c: Likewise.
21215 * config/fr30/fr30.c: Likewise.
21216 * config/frv/frv.c: Likewise.
21217 * config/ft32/ft32.c: Likewise.
21218 * config/h8300/h8300.c: Likewise.
21219 * config/i386/i386-c.c: Likewise.
21220 * config/i386/i386.c: Likewise.
21221 * config/i386/msformat-c.c: Likewise.
21222 * config/i386/winnt-cxx.c: Likewise.
21223 * config/i386/winnt-stubs.c: Likewise.
21224 * config/i386/winnt.c: Likewise.
21225 * config/ia64/ia64-c.c: Likewise.
21226 * config/ia64/ia64.c: Likewise.
21227 * config/iq2000/iq2000.c: Likewise.
21228 * config/lm32/lm32.c: Likewise.
21229 * config/m32c/m32c-pragma.c: Likewise.
21230 * config/m32c/m32c.c: Likewise.
21231 * config/m32r/m32r.c: Likewise.
21232 * config/m68k/m68k.c: Likewise.
21233 * config/mcore/mcore.c: Likewise.
21234 * config/mep/mep-pragma.c: Likewise.
21235 * config/mep/mep.c: Likewise.
21236 * config/microblaze/microblaze-c.c: Likewise.
21237 * config/microblaze/microblaze.c: Likewise.
21238 * config/mips/mips.c: Likewise.
21239 * config/mmix/mmix.c: Likewise.
21240 * config/mn10300/mn10300.c: Likewise.
21241 * config/moxie/moxie.c: Likewise.
21242 * config/msp430/msp430-c.c: Likewise.
21243 * config/msp430/msp430.c: Likewise.
21244 * config/nds32/nds32-cost.c: Likewise.
21245 * config/nds32/nds32-fp-as-gp.c: Likewise.
21246 * config/nds32/nds32-intrinsic.c: Likewise.
21247 * config/nds32/nds32-isr.c: Likewise.
21248 * config/nds32/nds32-md-auxiliary.c: Likewise.
21249 * config/nds32/nds32-memory-manipulation.c: Likewise.
21250 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
21251 * config/nds32/nds32-predicates.c: Likewise.
21252 * config/nds32/nds32.c: Likewise.
21253 * config/nios2/nios2.c: Likewise.
21254 * config/nvptx/nvptx.c: Likewise.
21255 * config/pa/pa.c: Likewise.
21256 * config/pdp11/pdp11.c: Likewise.
21257 * config/rl78/rl78-c.c: Likewise.
21258 * config/rl78/rl78.c: Likewise.
21259 * config/rs6000/rs6000-c.c: Likewise.
21260 * config/rs6000/rs6000.c: Likewise.
21261 * config/rx/rx.c: Likewise.
21262 * config/s390/s390-c.c: Likewise.
21263 * config/s390/s390.c: Likewise.
21264 * config/sh/sh-c.c: Likewise.
21265 * config/sh/sh-mem.cc: Likewise.
21266 * config/sh/sh.c: Likewise.
21267 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
21268 * config/sh/sh_treg_combine.cc: Likewise.
21269 * config/sol2-c.c: Likewise.
21270 * config/sol2-cxx.c: Likewise.
21271 * config/sol2-stubs.c: Likewise.
21272 * config/sol2.c: Likewise.
21273 * config/sparc/sparc-c.c: Likewise.
21274 * config/sparc/sparc.c: Likewise.
21275 * config/spu/spu-c.c: Likewise.
21276 * config/spu/spu.c: Likewise.
21277 * config/stormy16/stormy16.c: Likewise.
21278 * config/tilegx/mul-tables.c: Likewise.
21279 * config/tilegx/tilegx-c.c: Likewise.
21280 * config/tilegx/tilegx.c: Likewise.
21281 * config/tilepro/mul-tables.c: Likewise.
21282 * config/tilepro/tilepro-c.c: Likewise.
21283 * config/tilepro/tilepro.c: Likewise.
21284 * config/v850/v850-c.c: Likewise.
21285 * config/v850/v850.c: Likewise.
21286 * config/vax/vax.c: Likewise.
21287 * config/visium/visium.c: Likewise.
21288 * config/vms/vms-c.c: Likewise.
21289 * config/vms/vms.c: Likewise.
21290 * config/vxworks.c: Likewise.
21291 * config/xtensa/xtensa.c: Likewise.
21293 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
21295 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
21296 Remove operand constraints. Change operand 2 predicate to
21297 nonmemory operand. Limit const_int values to mode bitsize. Only
21298 allow const_int values less than 32 when optimizing for size.
21299 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
21300 Remove operand constraints.
21301 (*bt<mode>): Use SImode for const_int values less than 32.
21302 (regmode): Remove mode attribute.
21304 2015-07-07 Anatoly Sokolov <aesok@post.ru>
21306 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
21307 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
21308 moxie_legitimate_address_p): New functions.
21309 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
21311 2015-07-07 Tom de Vries <tom@codesourcery.com>
21313 PR tree-optimization/66642
21314 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
21315 header comment. Rename split_edge variable to edge_at_split. Split
21316 exit edge to create new loop exit bb. Insert loop exit phis in new
21319 2015-07-07 Tom de Vries <tom@codesourcery.com>
21321 * tree-cfg.c (get_virtual_phi): New function.
21322 * tree-cfg.h (get_virtual_phi): Declare.
21323 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
21324 (rewrite_virtuals_into_loop_closed_ssa): New function.
21325 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
21327 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
21328 (transform_to_exit_first_loop_alt): Use
21329 rewrite_virtuals_into_loop_closed_ssa.
21331 2015-07-07 Richard Biener <rguenther@suse.de>
21333 * fold-const.c (fold_binary_loc): Move
21334 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
21335 * match.pd: ... here.
21336 Add (X * C1) % C2 -> 0 simplification pattern derived from
21339 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
21342 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
21343 change for target/65249.
21345 2015-07-07 Paulo Matos <pmatos@broadcom.com>
21347 * symtab.c (address_matters_1): Fix typo in comment above.
21348 (can_increase_alignment_p): Likewise.
21350 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
21352 * function.c (free_after_compilation): Clear PROP_cfg in
21353 f->curr_properties.
21355 2015-07-07 Richard Biener <rguenther@suse.de>
21357 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
21359 (add_control_edge): Remove excessive vertical space in dumping.
21360 (process_ssa_edge_worklist): Simulate at most one statement and
21361 return whether we did. Do not simulate PHIs if they are in a
21362 BB not yet simulated.
21363 (ssa_propagate): Adjust to always drain the BB worklist whenever
21364 a BB is available there, likewise the VARYING edges list before
21365 the interesting edge list.
21367 2015-07-07 Christian Bruel <christian.bruel@st.com>
21370 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
21372 2015-07-07 Richard Biener <rguenther@suse.de>
21374 PR middle-end/66739
21375 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
21378 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
21380 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
21381 modes for operands 0 and 3. Use SImode for operands 2 and 3.
21382 Copy operand 0 to a temporary if !ext_register_operand. Remove
21383 ancient extract_bit_field workaround.
21384 (insv<mode>_1): Rename from mov<mode>_insv_1.
21385 (*insvqi): Rename from *movqi_insv_2.
21386 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
21387 for renamed insvsi_1.
21388 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
21390 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
21392 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
21393 call to nvptx_reorg_subreg.
21395 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
21397 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
21398 * graphite-dependencies.c, graphite-interchange.c,
21399 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
21400 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
21403 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
21405 * match.pd: Remove element_mode inside HONOR_*.
21406 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
21407 (~X | X -> -1, ~X ^ X -> -1): Merge.
21408 * tree.c (build_each_one_cst): New function.
21409 * tree.h (build_each_one_cst): Likewise.
21411 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
21413 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
21416 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
21418 * config.gcc <mips*-*-*>: Add fused-madd.opt.
21419 * config/mips/mips.opt (mfused-madd): Remove.
21420 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
21421 * config/mips/mips.h (TARGET_MIPS8000): New.
21422 (ISA_HAS_FP_MADD4_MSUB4): Remove.
21423 (ISA_HAS_FP_MADDF_MSUBF): Remove.
21424 (ISA_HAS_FP_MADD3_MSUB3): Remove.
21425 (ISA_HAS_NMADD4_NMSUB4): Remove.
21426 (ISA_HAS_NMADD3_NMSUB3): Remove.
21427 (ISA_HAS_FUSED_MADD4): New.
21428 (ISA_HAS_UNFUSED_MADD4): New.
21429 (ISA_HAS_FUSED_MADDF): New.
21430 (ISA_HAS_FUSED_MADD3): New.
21431 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
21432 (*fma<mode>4_madd3) New.
21433 (*fma<mode>4_madd4) New.
21434 (*fma<mode>4_maddf) New.
21436 (*fms<mode>4_msub3) New.
21437 (*fms<mode>4_msub4) New.
21439 (*fnma<mode>4_nmadd3) New.
21440 (*fnma<mode>4_nmadd4) New.
21442 (*fnms<mode>4_nmsub3) New.
21443 (*fnms<mode>4_nmsub4) New.
21444 (*madd4<mode>) Modify to be unfused only.
21445 (*msub4<mode>) Modify to be unfused only.
21446 (*nmadd4<mode>) Modify to be unfused only.
21447 (*nmsub4<mode>) Modify to be unfused only.
21448 (*madd3<mode>) Remove.
21449 (*msub3<mode>) Remove.
21450 (*nmadd3<mode>) Remove.
21451 (*nmsub3<mode>) Remove.
21452 (*nmadd3<mode>_fastmath) Remove.
21453 (*nmsub3<mode>_fastmath) Remove.
21454 (*nmadd4<mode>_fastmath) Update condition.
21455 (*nmsub4<mode>_fastmath) Update condition.
21457 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
21460 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
21461 alignment attribute, exploring one level down for records and arrays.
21463 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
21465 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
21466 modes for operands 0 and 1. Use SImode for operands 2 and 3.
21467 Copy operand 1 to a temporary if !ext_register_operand. Remove
21468 ancient extract_bit_field workaround.
21469 (*extv<mode>): Rename from *mov<mode>_extv_1.
21470 (*extvqi): Rename from *movqi_extv_1.
21471 (extzv<mode>): Rename from extzv. Use SWI248 modes for
21472 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
21473 to a temporary if !ext_register_operand. Remove ancient
21474 extract_bit_field workaround.
21475 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
21476 (*extzvqi): Rename from *movqi_extzv_2.
21477 (*testqi_ext_3): Remove modes from const_int_operand predicated
21478 operands. Add "n" constraint.
21479 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
21480 operand. Add "J" constraint.
21481 (*btsq, *btrq, *btcq peephole2s): Remove mode from
21482 const_0_to_63 predicated operand.
21483 (regmode): New insn attribute.
21484 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
21485 to nonmemory_operand. Use regmode insn attribute.
21486 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
21487 (*jcc_bt<mode>_mask): Remove mode from operand 3.
21488 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
21489 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
21490 operands. Use "N" constraint instead of "n".
21492 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
21494 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
21496 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
21499 * config/i386/i386.c (iamcu_cost): New.
21500 (m_IAMCU): Likewise.
21501 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
21502 (processor_target_table): Add an entry for "iamcu".
21503 (processor_alias_table): Likewise.
21504 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
21505 (ix86_adjust_cost): Likewise.
21506 (ia32_multipass_dfa_lookahead): Likewise.
21507 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
21508 * config/i386/x86-tune.def: Updated for m_IAMCU.
21510 2015-07-06 Richard Biener <rguenther@suse.de>
21512 PR tree-optimization/66772
21513 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
21514 values are available in the PHI node BB when there are
21515 still unexecutable edges.
21517 2015-07-06 Richard Biener <rguenther@suse.de>
21519 PR tree-optimization/66767
21520 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
21521 Make sure to build the alignment test on a SSA name without
21522 final alignment info valid only if the alignment test
21525 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
21528 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
21529 loop start when inserting LSETUP.
21531 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
21534 * config/i386/i386.c (ix86_option_override_internal): Allow
21535 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
21537 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21539 * read-md.c (decimal_string): Rename to ...
21540 (md_decimal_string): ... this.
21541 (handle_enum): Reflect this.
21543 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
21546 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
21548 2015-07-06 Richard Biener <rguenther@suse.de>
21550 PR middle-end/66759
21551 * match.pd: Add missing constraint of y to REAL_CST in
21552 REAL_CST - x CMP y to y - CST CMP x simplification.
21554 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
21556 PR tree-optimization/66757
21557 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
21559 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
21560 Sandra Loosemore <sandra@codesourcery.com>
21562 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
21563 Delete extern declaration.
21564 (gprel_constant_p): Add extern declaration.
21565 * config/nios2/constraints.md ("S"): Use gprel_constant_p
21566 instead of nios2_symbol_ref_in_small_data_p.
21567 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
21568 (nios2_symbol_ref_in_small_data_p): Make static.
21569 (gprel_constant_p): Make non-static.
21571 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
21573 * doc/fragments.texi (Target Fragment): Convert debian.org
21575 * doc/install.texi (Configuration): Ditto.
21577 2015-07-05 Jakub Jelinek <jakub@redhat.com>
21579 PR tree-optimization/66718
21580 * tree-vect-stmts.c (vectorizable_call): Replace uses of
21581 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
21583 PR tree-optimization/66718
21584 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
21585 vectorizable_load, vectorizable_condition): Move vectype,
21586 nunits, ncopies computation after checking what kind of statement
21589 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21591 * target-insns.def (extv, extzv, insv): New targetm instruction
21593 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
21595 * recog.c (simplify_while_replacing): Likewise.
21597 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21599 * target-insns.def (doloop_begin, doloop_end): New targetm
21600 instruction patterns.
21601 * loop-init.c: Include target.h.
21602 (pass_loop2::gate): Use the new targetm patterns instead of
21603 HAVE_*/gen_* interface.
21604 (pass_rtl_doloop::gate): Likewise.
21605 (pass_rtl_doloop::execute): Remove preprocessor condition.
21606 * hw-doloop.c: Build unconditionally.
21607 * loop-doloop.c: Likewise.
21608 (doloop_optimize): Use the new targetm patterns instead of
21609 HAVE_*/gen_* interface.
21610 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
21611 * modulo-sched.c (doloop_register_get): Likewise.
21613 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21615 * target-insns.def (clear_cache): New targetm instruction pattern.
21616 * builtins.c (expand_builtin___clear_cache): Use it instead of
21617 HAVE_*/gen_* interface.
21619 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21621 * target-insns.def (allocate_stack, check_stack, probe_stack)
21622 (probe_stack_address, split_stack_prologue, split_stack_space_check):
21623 New targetm instruction patterns.
21624 * explow.c (allocate_dynamic_stack_space): Use them instead of
21625 HAVE_*/gen_* interface.
21626 (emit_stack_probe): Likewise.
21627 (probe_stack_range): Likewise.
21628 * function.c (thread_prologue_and_epilogue_insns): Likewise.
21630 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21632 * target-insns.def (stack_protect_set, stack_protect_test): New
21633 targetm instruction patterns.
21634 * cfgexpand.c (stack_protect_prologue): Use them instead of
21635 HAVE_*/gen_* interface.
21636 * function.c (stack_protect_epilogue): Likewise.
21638 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21640 * expr.h (gen_move_insn_uncast): Delete.
21641 * expr.c (gen_move_insn_uncast): Delete.
21643 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21645 * target-insns.def (restore_stack_block, restore_stack_function)
21646 (restore_stack_nonlocal, save_stack_block, save_stack_function)
21647 (save_stack_nonlocal): New targetm instruction patterns.
21648 * builtins.c (expand_builtin_apply): Use them instead of
21649 HAVE_*/gen_* interface.
21650 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
21652 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21654 * target-insns.def (trap): New targetm instruction pattern.
21655 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
21657 * explow.c (allocate_dynamic_stack_space): Likewise.
21658 * ifcvt.c (find_if_header): Likewise.
21660 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21662 * target-insns.def (prefetch): New targetm instruction pattern.
21663 * tree-ssa-loop-prefetch.c: Include targeth.
21664 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
21665 of HAVE_*/gen_* interface.
21666 * builtins.c (expand_builtin_prefetch): Likewise.
21667 * toplev.c (process_options): Likewise.
21669 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21671 * target-insns.def (untyped_call, untyped_return): New targetm
21672 instruction patterns.
21673 * builtins.c (expand_builtin_apply): Use them instead of
21674 HAVE_*/gen_* interface.
21675 (result_vector): Define unconditionally.
21677 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21679 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
21680 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
21681 (nonlocal_goto_receiver): New targetm instruction patterns.
21682 * builtins.c (expand_builtin_setjmp_setup): Use them instead
21683 of HAVE_*/gen_* interface.
21684 (expand_builtin_setjmp_receiver): Likewise.
21685 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
21686 * except.c (expand_dw2_landing_pad_for_region): Likewise.
21688 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21690 * target.def: Add code_for_* hooks.
21691 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
21692 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
21693 * target-insns.def (casesi, tablejump): New targetm instruction
21695 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
21696 (do_tablejump): Likewise.
21697 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
21698 (expand_sjlj_dispatch_table): Likewise.
21699 * targhooks.c (default_case_values_threshold): Likewise.
21701 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
21703 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
21704 Use rtx_insn * instead of rtx.
21705 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
21706 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
21707 (nios2_call_tls_get_addr): Likewise.
21708 (nios2_emit_expensive_div): Likewise.
21709 (nios2_emit_move_sequence): Change return type to bool.
21710 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
21711 Change return type to bool.
21713 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
21716 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
21718 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
21721 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
21722 of register_operand. Remove constraint.
21724 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
21726 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
21727 the first argument.
21729 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
21731 * attribs.c (decl_attributes): Guard inform with the return value
21732 of the preceding warning.
21734 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
21736 * doc/invoke.texi (moverride): Move to correct section.
21738 2015-07-03 Richard Biener <rguenther@suse.de>
21740 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
21742 (dt_operand::gen_gimple_expr): After valueizing operands
21743 re-canonicalize operand order for commutative tree codes.
21745 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
21748 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
21750 (__crc32w): Likewise.
21751 (__crc32d): Likewise.
21752 (__rdpmc): Likewise.
21753 (__rdtscp): Likewise.
21754 (_rdpmc): Likewise.
21755 (_rdtscp): Likewise.
21756 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
21759 2015-07-03 Richard Biener <rguenther@suse.de>
21761 * fold-const.c (fold_mathfn_compare): Remove.
21762 (fold_inf_compare): Likewise.
21763 (fold_comparison): Move floating point comparison simplifications...
21764 * match.pd: ... to patterns here. Introduce simple_comparisons
21765 operator list and use it for patterns formerly in fold_comparison.
21767 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
21769 PR tree-optimization/66119
21770 * toplev.c (process_options): Don't set up default values for
21771 the sra_max_scalarization_size_{speed,size} parameters.
21772 * tree-sra (analyze_all_variable_accesses): If no values
21773 have been set for the sra_max_scalarization_size_{speed,size}
21774 parameters, call get_move_ratio to get target defaults.
21776 2015-07-03 Richard Biener <rguenther@suse.de>
21778 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
21779 * match.pd: ... here.
21781 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
21784 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
21785 is not actually the default on FreeBSD.
21787 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21789 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
21791 (CMPGE_8HI): Likewise.
21792 (CMPGE_4SI): Likewise.
21793 (CMPGE_2DI): Likewise.
21794 (CMPGE_U16QI): Likewise.
21795 (CMPGE_U8HI): Likewise.
21796 (CMPGE_U4SI): Likewise.
21797 (CMPGE_U2DI): Likewise.
21798 (CMPLE_16QI): Likewise.
21799 (CMPLE_8HI): Likewise.
21800 (CMPLE_4SI): Likewise.
21801 (CMPLE_2DI): Likewise.
21802 (CMPLE_U16QI): Likewise.
21803 (CMPLE_U8HI): Likewise.
21804 (CMPLE_U4SI): Likewise.
21805 (CMPLE_U2DI): Likewise.
21806 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
21807 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
21808 ALTIVEC_BUILTIN_VEC_CMPLE.
21809 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
21810 floating-point vector modes.
21811 (vector_nlt<mode>): New define_expand.
21812 (vector_nltu<mode>): Likewise.
21813 (vector_ngt<mode>): Likewise.
21814 (vector_ngtu<mode>): Likewise.
21816 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
21818 PR rtl-optimization/66706
21819 * combine.c (make_compound_operation): If an AND of SUBREG of
21820 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
21822 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
21824 * tree-pass.h (make_pass_ch_vect): New.
21825 * passes.def: Add pass_ch_vect just before pass_if_conversion.
21827 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
21828 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
21829 make_pass_ch_vect): New.
21830 (pass_ch): Extend ch_base.
21832 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
21833 (ch_base::copy_headers): ...here.
21835 2015-07-02 Richard Biener <rguenther@suse.de>
21837 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
21838 * fold-const.c (get_pointer_modulus_and_residue): Remove.
21839 (fold_binary_loc): Implement (T)ptr & CST in terms of
21840 get_pointer_alignment_1.
21841 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
21842 Make sure to build the alignment test on a SSA name without
21843 final alignment info valid only after the prologue.
21845 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
21847 * config/cris/cris.md ("epilogue"): Remove condition.
21848 ("prologue"): Ditto.
21850 2015-07-02 Richard Biener <rguenther@suse.de>
21852 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
21853 parameter to record a condition that is false.
21854 (record_conditions): When recording an extra NE_EXPR that is
21855 true also record a EQ_EXPR that is false.
21857 2015-07-02 Bin Cheng <bin.cheng@arm.com>
21859 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
21860 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
21861 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
21862 (set_iv, find_interesting_uses_address, add_candidate_1): New
21863 argument to alloc_iv.
21864 (find_interesting_uses_op, find_interesting_uses_cond): Don't
21865 duplicate struct iv.
21866 (free_loop_data): Don't free struct iv explicitly.
21867 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
21869 2015-07-01 DJ Delorie <dj@redhat.com>
21871 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
21873 (SUPPORTS_DISCRIMINATOR): Define.
21875 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
21878 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
21879 there are no CALLs in the same pattern.
21881 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
21883 PR rtl-optimization/61047
21884 * rtlanal.c (get_initial_register_offset): New function.
21885 (rtx_addr_can_trap_p_1): Check offsets of stack references.
21887 2015-07-01 Richard Biener <rguenther@suse.de>
21889 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
21890 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
21891 ~X CMP C -> X CMP' ~C to ...
21892 * match.pd: ... patterns here.
21894 2015-07-01 Nick Clifton <nickc@redhat.com>
21896 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
21897 a 16-bit value into a 20-bit memory slot.
21899 2015-07-01 Jiong Wang <jiong.wang@arm.com>
21901 * doc/sourcebuild.texi (AArch64-specific attributes): Document
21902 "aarch64_tiny", "aarch64_small", "aarch64_large",
21903 "aarch64_little_endian", "aarch64_big_endian".
21905 2015-07-01 Jiong Wang <jiong.wang@arm.com>
21907 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
21908 Document "aarch64_small_fpic".
21910 2015-07-01 Jiong Wang <jiong.wang@arm.com>
21912 * configure.ac: Add check for aarch64 assembler -fpic relocation
21914 * configure: Regenerate.
21915 * config.in: Regenerate.
21916 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
21917 to -fPIC if not support of -fpic relocation modifier in assembler.
21919 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
21922 * rtl.c (classify_insn): Handle returns in PARALLELs.
21924 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
21926 PR middle-end/66633
21927 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
21928 to true if the function is nested and if not optimizing.
21929 (convert_local_omp_clauses): Initialize need_frame to true if the
21930 function contains nested functions and if not optimizing.
21932 2015-07-01 Richard Biener <rguenther@suse.de>
21934 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
21935 (X & Y) ^ Y -> ~X & Y transforms to ...
21936 * match.pd: ... here.
21938 2015-07-01 Richard Biener <rguenther@suse.de>
21940 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
21941 of converts to avoid uninteresting noise from the conversion
21942 simplifying patterns.
21944 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
21946 * config/c6x/c6x.c (try_rename_operands): Do not depend on
21947 gcc_assert evaluating its argument for side-effect.
21949 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
21952 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
21955 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
21957 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
21958 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
21959 (hash_scc): Add this_ref_p and ref_p parameters and pass them
21960 to the inner DFS walk.
21962 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
21964 * target-insns.def (jump): New targetm instruction pattern.
21965 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
21966 instead of gen_jump.
21967 (fix_up_crossing_landing_pad): Likewise.
21968 (add_labels_and_missing_jumps): Likewise.
21969 (fix_crossing_conditional_branches): Likewise.
21970 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
21971 (force_nonfallthru_and_redirect): Likewise.
21972 * cse.c (cse_insn): Likewise.
21973 * expmed.c (expand_divmod): Likewise.
21974 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
21975 * haifa-sched.c (init_before_recovery): Likewise.
21976 (sched_create_recovery_edges): Likewise.
21977 * ifcvt.c (find_cond_trap): Likewise.
21978 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
21979 (expand_float, expand_fix): Likewise.
21980 * stmt.c (emit_jump): Likewise.
21982 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
21984 * defaults.h (HAVE_load_multiple, gen_load_multiple)
21985 (HAVE_store_multiple, gen_store_multiple): Delete.
21986 * target-insns.def (load_multiple, store_multiple): New targetm
21987 instruction patterns.
21988 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
21989 of HAVE_*/gen_* interface.
21991 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
21993 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
21994 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
21995 (gen_mem_signal_fence): Delete.
21996 * target-insns.def (mem_signal_fence, mem_thread_fence)
21997 (memory_barrier): New targetm instruction patterns.
21998 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
22000 (expand_mem_signal_fence): Likewise.
22002 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
22004 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
22005 * target-insns.def (epilogue, prologue, sibcall_prologue): New
22006 targetm instruction patterns.
22007 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
22009 * calls.c (expand_call): Likewise.
22010 * cfgrtl.c (cfg_layout_finalize): Likewise.
22011 * df-scan.c (df_get_entry_block_def_set): Likewise.
22012 (df_get_exit_block_use_set): Likewise.
22013 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
22014 * final.c (final_start_function): Likewise.
22015 * function.c (thread_prologue_and_epilogue_insns): Likewise.
22016 (reposition_prologue_and_epilogue_notes): Likewise.
22017 * reorg.c (find_end_label): Likewise.
22018 * toplev.c (process_options): Likewise.
22020 2015-06-30 David Malcolm <dmalcolm@redhat.com>
22022 * typed-splay-tree.h: New file.
22024 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
22027 * lra-int.h (lra_substitute_pseudo): Add a parameter.
22028 (lra_substitute_pseudo_within_insn): Ditto.
22029 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
22031 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
22032 to lra_substitute_pseudo.
22033 * lra-lives.c (process_bb_lives): Add an argument to
22034 lra_substitute_pseudo_within_insn call.
22035 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
22036 argument to lra_substitute_pseudo and
22037 lra_substitute_pseudo_within_insn calls.
22038 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
22040 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
22042 * configure: Regenerated.
22044 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
22046 * config.gcc: Support i[34567]86-*-elfiamcu target.
22047 * config/i386/iamcu.h: New.
22048 * config/i386/i386.opt: Add -miamcu.
22049 * doc/invoke.texi: Document -miamcu.
22050 * common/config/i386/i386-common.c (ix86_handle_option): Turn
22051 off x87/MMX/SSE/AVX codegen for -miamcu.
22052 * config/i386/i386-c.c (ix86_target_macros_internal): Define
22053 __iamcu/__iamcu__ for -miamcu.
22054 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
22055 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
22056 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
22057 * config/i386/i386.c (ix86_option_override_internal): Ignore and
22058 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
22059 MCU by default. Default long double to 64-bit for Intel MCU.
22060 Turn on -freg-struct-return for Intel MCU. Issue an error when
22061 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
22063 (function_arg_advance_32): Pass value whose size is no larger
22064 than 8 bytes in registers for Intel MCU.
22065 (function_arg_32): Likewise.
22066 (ix86_return_in_memory): Return value whose size is no larger
22067 than 8 bytes in registers for Intel MCU.
22068 (iamcu_alignment): New function.
22069 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
22071 (ix86_local_alignment): Don't increase alignment for Intel MCU.
22072 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
22075 2015-06-30 Marek Polacek <polacek@redhat.com>
22077 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
22078 both operands of the resulting expression.
22080 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
22081 the final expression with the operand's type and then convert
22082 it to the type of the expression.
22084 2015-06-30 Richard Biener <rguenther@suse.de>
22086 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
22087 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
22088 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
22089 * match.pd: ... to patterns here.
22091 2015-06-30 Richard Biener <rguenther@suse.de>
22093 PR tree-optimization/66704
22094 * tree-vect-data-refs.c (vect_setup_realignment): Use
22095 make_ssa_name for non-SSA name source.
22097 2015-06-30 Jakub Jelinek <jakub@redhat.com>
22099 PR middle-end/66702
22100 * omp-low.c (simd_clone_adjust): Handle addressable linear
22101 or uniform parameters or non-gimple type uniform parameters.
22103 2015-06-30 Richard Biener <rguenther@suse.de>
22105 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
22106 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
22107 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
22108 * match.pd: ... here.
22109 Add a few cases of A - B -> A + (-B) when B "easily" negates.
22110 Move (x & y) | x -> x and friends before
22111 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
22113 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
22115 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
22116 -mfix-ut699 is not specified.
22117 (leon3_load): Rename into...
22118 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
22121 2015-06-30 Marek Polacek <polacek@redhat.com>
22123 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
22124 * match.pd: ... here.
22126 2015-06-30 Richard Biener <rguenther@suse.de>
22128 * target-insns.def (canonicalize_funcptr_for_compare): Add.
22129 * fold-const.c (build_range_check): Replace uses of
22130 HAVE_canonicalize_funcptr_for_compare.
22131 (fold_widened_comparison): Likewise.
22132 (fold_sign_changed_comparison): Likewise.
22133 * dojump.c: Include "target.h".
22134 (do_compare_and_jump): Replace uses of
22135 HAVE_canonicalize_funcptr_for_compare and
22136 gen_canonicalize_funcptr_for_compare.
22137 * expr.c (do_store_flag): Likewise.
22139 2015-06-30 Tom de Vries <tom@codesourcery.com>
22141 PR tree-optimization/66652
22142 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
22143 max_loop_iterations to determine if nit + 1 overflows.
22145 2015-06-30 Richard Biener <rguenther@suse.de>
22147 * tree-vrp.c (register_edge_assert_for_2): Also register
22148 asserts for dominating conversion results.
22150 2015-06-30 Bin Cheng <bin.cheng@arm.com>
22152 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
22153 field in struct iv.
22155 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
22158 * configure.ac: Fix filds and fildq test for 64-bit.
22159 * configure: Regenerated.
22161 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
22163 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
22164 (nvptx_reorg): Here. Keep the non-subreg pieces.
22166 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
22168 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
22169 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
22171 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
22173 * config/i386/i386.md (*jcc_1): Use %! in asm template.
22174 Set attribute "length_nobnd" instead of "length".
22177 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
22179 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
22181 * config/nios2/nios2.c (nios2_delegitimize_address): Make
22182 assert less restrictive.
22184 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
22187 * cgraphunit.c (cgraph_node::finalize_function): Do not call
22188 do_warn_unused_parameter.
22189 * function.c (do_warn_unused_parameter): Move from here.
22190 * function.h (do_warn_unused_parameter): Do not declare.
22192 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
22195 * gcc.target/arm/armv-sync-comp-swap.c: New.
22196 * gcc.target/arm/armv-sync-op-acquire.c: New.
22197 * gcc.target/arm/armv-sync-op-full.c: New.
22198 * gcc.target/arm/armv-sync-op-release.c: New.
22200 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
22203 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
22204 initial acquire barrier with final barrier.
22206 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
22209 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
22210 initial acquire barrier with final barrier.
22212 2015-06-29 Richard Henderson <rth@redhat.com>
22214 * config/i386/constraints.md (Bf): New constraint.
22215 * config/i386/i386-c.c (ix86_target_macros): Define
22216 __GCC_ASM_FLAG_OUTPUTS__.
22217 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
22219 * doc/extend.texi (FlagOutputOperands): Document them.
22221 2015-06-29 Jiong Wang <jiong.wang@arm.com>
22223 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
22224 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
22226 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
22227 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
22228 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
22229 (aarch64_symbol_context): Ditto.
22230 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
22231 and use new pattern name.
22232 (aarch64_expand_mov_immediate): Ditto.
22233 (aarch64_print_operand): Ditto.
22234 (aarch64_classify_tls_symbol): Ditto.
22236 2015-06-29 Marek Polacek <polacek@redhat.com>
22237 Marc Glisse <marc.glisse@inria.fr>
22239 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
22240 * match.pd: ... pattern here.
22242 2015-06-29 Tom de Vries <tom@codesourcery.com>
22244 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
22245 function structure.
22247 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
22249 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
22250 feature description, split out the native option, add a link to
22251 the feature documentation, rearrange and slightly rewrite text.
22252 (Aarch64 options, -mcpu): Likewise.
22253 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
22254 +rdma implies Adv. SIMD.
22256 2015-06-29 Marek Polacek <polacek@redhat.com>
22259 * function.c (stack_protect_epilogue): Remove a cast to int.
22260 * doc/invoke.texi: Update -Wswitch-bool description.
22262 2015-06-29 Richard Biener <rguenther@suse.de>
22264 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
22265 * fold-const.c (fold_binary_loc): Move &A - &B simplification
22266 via ptr_difference_const ...
22267 * match.pd: ... here.
22268 When matching (X ^ Y) == Y also match with swapped operands.
22270 2015-06-29 Richard Biener <rguenther@suse.de>
22272 * lto-streamer.h (LTO_major_version): Bump to 5.
22274 2015-06-29 Richard Biener <rguenther@suse.de>
22276 PR tree-optimization/66677
22277 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
22278 STMT_VINFO_VEC_STMT clobbering less strict.
22280 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
22282 PR middle-end/64130
22283 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
22284 division, compute max and min when value ranges for dividend and
22285 divisor are available.
22287 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
22288 Sandra Loosemore <sandra@codesourcery.com>
22290 * regrename.h (regrename_do_replace): Change to return bool.
22291 * regrename.c (rename_chains): Check return value of
22292 regname_do_replace.
22293 (regrename_do_replace): Re-validate the modified insns and
22294 return bool status.
22295 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
22296 Update to match rename_chains changes.
22297 * config/c6x/c6x.c (try_rename_operands): Assert that
22298 regrename_do_replace returns true.
22300 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
22302 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
22303 operand 2 here. Use copy_addr_to_reg to copy non-index
22304 register operand 2 to a temporary.
22305 (<mode>_stx): Ditto for operand 1.
22306 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
22307 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
22308 (ix86_store_bounds): Ditto.
22310 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
22312 * print-tree.c (print_node) [TREE_VEC]: Print its length.
22314 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
22316 * gimple.c (gimple_call_set_fndecl): Remove.
22317 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
22318 build1_loc directly instead of build_fold_addr_expr_loc.
22320 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
22322 * hash-map.h (hash_map::traverse): Use the definition of the
22323 Key typedef rather than the typedef itself.
22325 2015-06-26 Martin Jambor <mjambor@suse.cz>
22328 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
22329 NULL instead of calling dump_enabled_p.
22331 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
22333 * config/aarch64/aarch64.opt: (override): New.
22334 * doc/invoke.texi (override): Document.
22335 * config/aarch64/aarch64.c (aarch64_flag_desc): New
22336 (aarch64_fusible_pairs): Likewise.
22337 (aarch64_tuning_flags): Likewise.
22338 (aarch64_tuning_override_function): Likewise.
22339 (aarch64_tuning_override_functions): Likewise.
22340 (aarch64_parse_one_option_token): Likewise.
22341 (aarch64_parse_boolean_options): Likewise.
22342 (aarch64_parse_fuse_string): Likewise.
22343 (aarch64_parse_tune_string): Likewise.
22344 (aarch64_parse_one_override_token): Likewise.
22345 (aarch64_parse_override_string): Likewise.
22346 (aarch64_override_options): Parse the -override string if it
22349 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
22351 * config/aarch64/aarch64-protos.h (tune_params): Remove
22352 const from members.
22353 (aarch64_tune_params): Remove const, change to no longer be
22355 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
22356 change to no longer be a pointer, initialize to generic_tunings.
22357 (aarch64_min_divisions_for_recip_mul): Change dereference of
22358 aarch64_tune_params to member access.
22359 (aarch64_reassociation_width): Likewise.
22360 (aarch64_rtx_mult_cost): Likewise.
22361 (aarch64_address_cost): Likewise.
22362 (aarch64_branch_cost): Likewise.
22363 (aarch64_rtx_costs): Likewise.
22364 (aarch64_register_move_cost): Likewise.
22365 (aarch64_memory_move_cost): Likewise.
22366 (aarch64_sched_issue_rate): Likewise.
22367 (aarch64_builtin_vectorization_cost): Likewise.
22368 (aarch64_override_options): Take a copy of the selected tuning
22369 struct in to aarch64_tune_params, rather than just setting
22370 a pointer, change dereferences of aarch64_tune_params to member
22372 (aarch64_override_options_after_change): Change dereferences of
22373 aarch64_tune_params to member access.
22374 (aarch64_macro_fusion_p): Likewise.
22375 (aarch_macro_fusion_pair_p): Likewise.
22376 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
22378 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
22380 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
22381 (aarch64_tune_flags): Likewise.
22382 (AARCH64_TUNE_FMA_STEERING): Likewise.
22383 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
22384 to AARCH64_FL_USE_FMA_STEERING_PASS.
22385 (cortex-a57.cortex-a53): Likewise.
22386 (cortex-a72): Use cortexa72_tunings.
22387 (cortex-a72.cortex-a53): Likewise.
22388 (exynos-m1): Likewise.
22389 * config/aarch64/aarch64-protos.h (tune_params): Add
22390 a field: extra_tuning_flags.
22391 * config/aarch64/aarch64-tuning-flags.def: New.
22392 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
22393 (aarch64_extra_tuning_flags): Likewise.
22394 (aarch64_tune_params): Declare here.
22395 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
22396 (cortexa53_tunings): Likewise.
22397 (cortexa57_tunings): Likewise.
22398 (thunderx_tunings): Likewise.
22399 (xgene1_tunings): Likewise.
22400 (cortexa72_tunings): New.
22401 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
22402 (gate): Check against aarch64_tune_params.
22403 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
22406 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
22408 * config/aarch64/aarch64-fusion-pairs.def: New.
22409 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
22410 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
22411 aarch64_fusion_pairs.
22412 (AARCH64_FUSE_MOV_MOVK): Likewise.
22413 (AARCH64_FUSE_ADRP_ADD): Likewise.
22414 (AARCH64_FUSE_MOVK_MOVK): Likewise.
22415 (AARCH64_FUSE_ADRP_LDR): Likewise.
22416 (AARCH64_FUSE_CMP_BRANCH): Likewise.
22418 2015-06-26 Jiong Wang <jiong.wang@arm.com>
22420 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
22421 SYMBOL_SMALL_GOT_28K.
22422 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
22423 relocation modifiers.
22424 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
22425 (ldr_got_small_28k_<mode>): New.
22426 (ldr_got_small_28k_sidi): New.
22427 * config/aarch64/iterators.md (got_modifier): New mode iterator.
22428 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
22429 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
22430 SYMBOL_SMALL_GOT_28K.
22431 (aarch64_rtx_costs): Add costs for new instruction sequences.
22432 (initialize_aarch64_code_model): Initialize new model.
22433 (aarch64_classify_symbol): Recognize new model and new symbol classification.
22434 (aarch64_asm_preferred_eh_data_format): Support new model.
22435 (aarch64_load_symref_appropriately): Generate new instruction
22436 sequences for -fpic.
22437 (TARGET_USE_PSEUDO_PIC_REG): New definition.
22438 (aarch64_use_pseudo_pic_reg): New function.
22440 2015-06-26 Jiong Wang <jiong.wang@arm.com>
22442 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
22443 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
22444 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
22445 (aarch64_expand_mov_immediate): Ditto.
22446 (aarch64_print_operand): Ditto.
22447 (aarch64_classify_symbol): Ditto.
22449 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
22451 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
22453 2015-06-26 Bin Cheng <bin.cheng@arm.com>
22456 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
22457 assertion failed. Remove assertion itself.
22459 2015-06-26 Richard Biener <rguenther@suse.de>
22461 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
22462 and -A CMP CST -> A CMP -CST which is redundant with a pattern
22464 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
22465 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
22466 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
22467 * match.pd: ... patterns here.
22469 2015-06-26 Marek Polacek <polacek@redhat.com>
22471 * match.pd ((x | y) & ~(x & y) -> x ^ y,
22472 (x | y) & (~x ^ y) -> x & y): New patterns.
22474 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
22476 * rtl.h (emit): Add an optional boolean parameter to control
22477 whether barriers are emitted.
22478 * emit-rtl.c (emit): Likewise.
22479 * gensupport.c (get_emit_function): Return null rather than "emit".
22480 * genemit.c (gen_emit_seq): Handle the null return value.
22481 Don't emit barriers after the final instruction in the sequence.
22482 * gentarget-def.c (main): Don't emit barriers after the instruction.
22484 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22486 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
22487 TARGET_UNIFIED_ASM.
22489 2015-06-26 Richard Biener <rguenther@suse.de>
22491 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
22493 2015-06-26 Richard Biener <rguenther@suse.de>
22495 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
22496 irrespective on whether the inner operation has a single use
22497 of both off are constant.
22499 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
22500 Segher Boessenkool <segher@kernel.crashing.org>
22503 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
22504 before doing PUT_MODE or PUT_CODE on operands to avoid
22505 in-place RTX modification.
22507 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
22509 * gentarget-def.c (def_target_insn): Cast return of strtol to
22512 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
22514 * gimple.h (gimple_call_set_fn): Move inline function.
22515 * gimple.c (gimple_call_set_fn): Relocate here.
22517 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
22521 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
22522 the replacement insn will work.
22524 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
22526 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
22529 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
22531 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
22532 * cgraph.h: Include ipa-ref.h and plugin-api.h.
22533 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
22534 (symtab_node::address_can_be_compared_p): Move function.
22535 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
22537 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
22538 * auto-profile.c: Likewise.
22539 * bb-reorder.c: Likewise.
22540 * builtins.c: Likewise.
22541 * calls.c: Likewise.
22542 * cfgexpand.c: Likewise.
22543 * cgraphbuild.c: Likewise.
22544 * cgraphclones.c: Likewise.
22545 * cgraphunit.c: Likewise.
22546 * combine.c: Likewise.
22547 * coverage.c: Likewise.
22548 * data-streamer-in.c: Likewise.
22549 * data-streamer-out.c: Likewise.
22550 * data-streamer.c: Likewise.
22551 * dbxout.c: Likewise.
22552 * dwarf2out.c: Likewise.
22553 * except.c: Likewise.
22554 * expr.c: Likewise.
22555 * final.c: Likewise.
22556 * fold-const.c: Likewise.
22557 * ggc-page.c: Likewise.
22558 * gimple-fold.c: Likewise.
22559 * gimple-iterator.c: Likewise.
22560 * gimple-pretty-print.c: Likewise.
22561 * gimple-streamer-in.c: Likewise.
22562 * gimple-streamer-out.c: Likewise.
22563 * gimple.c: Likewise.
22564 * gimplify.c: Likewise.
22565 * ipa-chkp.c: Likewise.
22566 * ipa-comdats.c: Likewise.
22567 * ipa-cp.c: Likewise.
22568 * ipa-devirt.c: Likewise.
22569 * ipa-icf-gimple.c: Likewise.
22570 * ipa-icf.c: Likewise.
22571 * ipa-inline-analysis.c: Likewise.
22572 * ipa-inline-transform.c: Likewise.
22573 * ipa-inline.c: Likewise.
22574 * ipa-polymorphic-call.c: Likewise.
22575 * ipa-profile.c: Likewise.
22576 * ipa-prop.c: Likewise.
22577 * ipa-pure-const.c: Likewise.
22578 * ipa-ref.c: Likewise.
22579 * ipa-reference.c: Likewise.
22580 * ipa-split.c: Likewise.
22581 * ipa-utils.c: Likewise.
22582 * ipa-visibility.c: Likewise.
22584 * langhooks.c: Likewise.
22585 * lto-cgraph.c: Likewise.
22586 * lto-compress.c: Likewise.
22587 * lto-opts.c: Likewise.
22588 * lto-section-in.c: Likewise.
22589 * lto-section-out.c: Likewise.
22590 * lto-streamer-in.c: Likewise.
22591 * lto-streamer-out.c: Likewise.
22592 * lto-streamer.c: Likewise.
22593 * omp-low.c: Likewise.
22594 * opts-global.c: Likewise.
22595 * passes.c: Likewise.
22596 * predict.c: Likewise.
22597 * print-tree.c: Likewise.
22598 * profile.c: Likewise.
22600 * sanopt.c: Likewise.
22601 * stor-layout.c: Likewise.
22602 * symtab.c: Likewise.
22603 * toplev.c: Likewise.
22604 * trans-mem.c: Likewise.
22605 * tree-cfg.c: Likewise.
22606 * tree-chkp.c: Likewise.
22607 * tree-eh.c: Likewise.
22608 * tree-emutls.c: Likewise.
22609 * tree-inline.c: Likewise.
22610 * tree-nested.c: Likewise.
22611 * tree-parloops.c: Likewise.
22612 * tree-pretty-print.c: Likewise.
22613 * tree-profile.c: Likewise.
22614 * tree-sra.c: Likewise.
22615 * tree-ssa-alias.c: Likewise.
22616 * tree-ssa-live.c: Likewise.
22617 * tree-ssa-loop-ivcanon.c: Likewise.
22618 * tree-ssa-loop-ivopts.c: Likewise.
22619 * tree-ssa-pre.c: Likewise.
22620 * tree-ssa-sccvn.c: Likewise.
22621 * tree-ssa-strlen.c: Likewise.
22622 * tree-ssa-structalias.c: Likewise.
22623 * tree-streamer-in.c: Likewise.
22624 * tree-streamer-out.c: Likewise.
22625 * tree-streamer.c: Likewise.
22626 * tree-switch-conversion.c: Likewise.
22627 * tree-tailcall.c: Likewise.
22628 * tree-vect-data-refs.c: Likewise.
22629 * tree-vect-stmts.c: Likewise.
22630 * tree-vectorizer.c: Likewise.
22631 * tree.c: Likewise.
22632 * tsan.c: Likewise.
22633 * ubsan.c: Likewise.
22634 * value-prof.c: Likewise.
22635 * varasm.c: Likewise.
22636 * varpool.c: Likewise.
22637 * config/arm/arm.c: Likewise.
22638 * config/bfin/bfin.c: Likewise.
22639 * config/c6x/c6x.c: Likewise.
22640 * config/cris/cris.c: Likewise.
22641 * config/darwin-c.c: Likewise.
22642 * config/darwin.c: Likewise.
22643 * config/i386/i386.c: Likewise.
22644 * config/i386/winnt.c: Likewise.
22645 * config/microblaze/microblaze.c: Likewise.
22646 * config/mips/mips.c: Likewise.
22647 * config/rs6000/rs6000.c: Likewise.
22648 * config/rx/rx.c: Likewise.
22649 * config/s390/s390.c: Likewise.
22650 * config/tilegx/mul-tables.c: Likewise.
22652 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22654 * config/aarch64/aarch64.c, config/alpha/alpha.c,
22655 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
22656 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
22657 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
22658 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
22659 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
22660 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
22661 config/microblaze/microblaze.c, config/mips/mips.c,
22662 config/mmix/mmix.c, config/mn10300/mn10300.c,
22663 config/moxie/moxie.c, config/msp430/msp430.c,
22664 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
22665 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
22666 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
22667 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
22668 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
22669 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
22670 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
22671 target-def.h include.
22672 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
22674 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22676 * Makefile.in (TARGET_DEF): Add target-insns.def.
22677 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
22678 (build/gentarget-def.o): New rule.
22679 (genprogrtl): Add target-def.
22680 * target-insns.def, gentarget-def.c: New files.
22681 * target.def: Add targetm.have_* and targetm.gen_* hooks,
22682 based on the contents of target-insns.def.
22683 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
22684 (HAVE_return, gen_return): Delete.
22685 * target-def.h: Include insn-target-def.h.
22686 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
22687 instead of direct calls. Rely on them to do the appropriate assertions.
22688 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
22689 (convert_jumps_to_returns): Use targetm interface instead of
22691 (thread_prologue_and_epilogue_insns): Likewise.
22692 * reorg.c (find_end_label, dbr_schedule): Likewise.
22693 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
22694 * shrink-wrap.c (convert_to_simple_return): Likewise.
22695 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
22697 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22699 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
22700 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
22701 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
22702 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
22703 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
22704 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
22705 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
22706 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
22707 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
22708 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
22709 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
22710 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
22711 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
22712 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
22713 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
22714 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
22717 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22719 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
22720 (unbounded_int_hashmap_traits::key_type): Likewise.
22721 * hash-map.h (hash_map): Get the key type from the traits.
22722 * hash-traits.h (default_hash_traits): By default, inherit from the
22723 template parameter.
22724 * alias.c (alias_set_traits): Delete.
22725 (alias_set_entry_d::children): Use alias_set_hash as the first
22726 template parameter.
22727 (record_alias_subset): Update accordingly.
22728 * except.c (tree_hash_traits): Delete.
22729 (type_to_runtime_map): Use tree_hash as the first template parameter.
22730 (init_eh): Update accordingly.
22731 * genmatch.c (capture_id_map_hasher): Delete.
22732 (cid_map_t): Use nofree_string_hash as first template parameter.
22733 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
22734 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
22735 Use symbol_compare_hash as the first template parameter in
22736 subdivide_hash_map.
22737 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
22738 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
22739 template parameter.
22740 * passes.c (pass_registry_hasher): Delete.
22741 (name_to_pass_map): Use nofree_string_hash as the first template
22743 (register_pass_name): Update accordingly.
22744 * sanopt.c (sanopt_tree_map_traits): Delete.
22745 (sanopt_tree_triplet_map_traits): Delete.
22746 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
22747 template parameter.
22748 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
22749 the first template parameter.
22750 * sese.c (rename_map_hasher): Delete.
22751 (rename_map_type): Use tree_ssa_name_hash as the first template
22753 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
22754 (function_summary::m_map): Use map_hash as the first template
22756 (function_summary::release): Update accordingly.
22757 * tree-if-conv.c (phi_args_hash_traits): Delete.
22758 (predicate_scalar_phi): Use tree_operand_hash as the first template
22759 parameter to phi_arg_map.
22760 * tree-inline.h (dependence_hasher): Delete.
22761 (copy_body_data::dependence_map): Use dependence_hash as the first
22762 template parameter.
22763 * tree-inline.c (remap_dependence_clique): Update accordingly.
22764 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
22765 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
22767 (addr_stridxptr): Update accordingly.
22768 * value-prof.c (profile_id_traits): Delete.
22769 (cgraph_node_map): Use profile_id_hash as the first template
22771 (init_node_map): Update accordingly.
22772 * config/alpha/alpha.c (string_traits): Delete.
22773 (machine_function::links): Use nofree_string_hash as the first
22774 template parameter.
22775 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
22776 * config/m32c/m32c.c (pragma_traits): Delete.
22777 (pragma_htab): Use nofree_string_hash as the first template parameter.
22778 (m32c_note_pragma_address): Update accordingly.
22779 * config/mep/mep.c (pragma_traits): Delete.
22780 (pragma_htab): Use nofree_string_hash as the first template parameter.
22781 (mep_note_pragma_flag): Update accordingly.
22782 * config/mips/mips.c (mips16_flip_traits): Delete.
22783 (mflip_mips16_htab): Use nofree_string_hash as the first template
22785 (mflip_mips16_use_mips16_p): Update accordingly.
22786 (local_alias_traits): Delete.
22787 (mips16_local_aliases): Use nofree_string_hash as the first template
22789 (mips16_local_alias): Update accordingly.
22791 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22793 * hash-map-traits.h (default_hashmap_traits): Delete.
22795 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22797 * hash-map-traits.h (unbounded_hashmap_traits): New class.
22798 (unbounded_int_hashmap_traits): Likewise.
22799 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
22801 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22803 * ipa-icf.h (symbol_compare_hash): New class.
22804 (symbol_compare_hashmap_traits): Use it.
22805 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
22806 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
22807 (mem_alloc_description::reverse_mem_map_t): Remove redundant
22808 default_hashmap_traits.
22809 * sanopt.c (sanopt_tree_triplet_hash): New class.
22810 (sanopt_tree_triplet_map_traits): Use it.
22812 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22814 * gengtype-parse.c (require_template_declaration): Allow '+' in
22815 template parameters. Consolidate cases.
22816 * hash-traits.h (int_hash): New class.
22817 * alias.c (alias_set_hash): New structure.
22818 (alias_set_traits): Use it.
22819 * symbol-summary.h (function_summary::map_hash): New class.
22820 (function_summary::summary_hashmap_traits): Use it.
22821 * tree-inline.h (dependence_hash): New class.
22822 (dependence_hasher): Use it.
22823 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
22824 * value-prof.c (profile_id_hash): New class.
22825 (profile_id_traits): Use it.
22827 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22829 * config/mips/mips.c (mips16_flip_traits): Use it.
22830 (local_alias_traits, mips16_local_aliases): Convert from a map of
22831 rtxes to a map of symbol names.
22832 (mips16_local_alias): Update accordingly.
22834 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22836 * hash-traits.h (string_hash, nofree_string_hash): New classes.
22837 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
22838 * passes.c (pass_registry_hasher): Likewise.
22839 * config/alpha/alpha.c (string_traits): Likewise.
22840 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
22841 * config/m32c/m32c.c (pragma_traits): Likewise.
22842 * config/mep/mep.c (pragma_traits): Likewise.
22844 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22846 * tree-hash-traits.h (tree_hash): New class.
22847 * except.c: Include tree-hash-traits.h.
22848 (tree_hash_traits): Use tree_hash.
22850 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22852 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
22853 * sese.c: Include tree-hash-traits.h.
22854 (rename_map_hasher): Use tree_ssa_name_hasher.
22856 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22858 * tree-hash-traits.h (tree_decl_hash): New class.
22859 * tree-ssa-strlen.c: Include tree-hash-traits.h.
22860 (stridxlist_hash_traits): Use tree_decl_hash.
22862 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22864 * tree-hash-traits.h: New file.
22865 (tree_operand_hash): New class.
22866 * sanopt.c: Include tree-hash-traits.h.
22867 (sanopt_tree_map_traits): Use tree_operand_hash.
22868 * tree-if-conv.c: Include tree-hash-traits.h.
22869 (phi_args_hash_traits): Use tree_operand_hash.
22870 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
22871 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
22873 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22875 * hash-map-traits.h: Include hash-traits.h.
22876 (simple_hashmap_traits): New class.
22877 * mem-stats.h (hash_map): Change the default traits to
22878 simple_hashmap_traits<default_hash_traits<Key> >.
22880 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22882 * hash-table.h: Update comments.
22884 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22886 * hash-traits.h (default_hash_traits): New structure.
22887 * hash-set.h (default_hashset_traits): Delete.
22888 (hash_set): Use default_hash_traits<Key> instead of
22889 default_hashset_traits. Delete hash_entry type and use Key directly.
22890 * ipa-devirt.c (pair_traits): Delete.
22891 (default_hash_traits <type_pair>): Override.
22892 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
22893 (odr_types_equivalent_p, add_type_duplicate): Likewise.
22895 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22897 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
22899 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22901 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
22902 (has_is_empty, is_empty_helper): Delete.
22903 (has_mark_deleted, mark_deleted_helper): Delete.
22904 (has_mark_empty, mark_empty_helper): Delete.
22905 (hash_table::is_deleted): Call the Descriptor unconditionally.
22906 (hash_table::is_empty): Likewise.
22907 (hash_table::mark_deleted): Likewise.
22908 (hash_table::mark_empty): Likewise.
22910 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22912 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
22913 redundant typedefs and members.
22914 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
22915 redundant typedefs.
22916 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
22917 * ipa-devirt.c (odr_name_hasher): Likewise.
22918 (polymorphic_call_target_hasher): Likewise.
22919 * ira-costs.c (cost_classes_hasher): Likewise.
22920 * statistics.c (stats_counter_hasher): Likewise.
22921 * trans-mem.c (log_entry_hasher): Likewise.
22922 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
22923 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
22924 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
22925 * var-tracking.c (variable_hasher): Likewise.
22926 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
22927 Remove redundant typedefs and members.
22929 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22931 * hash-traits.h (ggc_cache_hasher): Rename to...
22932 (ggc_cache_remove): ...this and remove typedefs.
22933 (ggc_cache_ptr_hash): New class.
22934 * hash-table.h: Update commentary.
22935 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
22936 rather than ggc_cache_hasher.
22937 (const_wide_int_hasher, reg_attr_hasher): Likewise.
22938 (const_double_hasher, const_fixed_hasher): Likewise.
22939 * function.c (insn_cache_hasher): Likewise.
22940 * trans-mem.c (tm_wrapper_hasher): Likewise.
22941 * tree.h (tree_decl_map_cache_hasher): Likewise.
22942 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
22943 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
22944 * ubsan.c (tree_type_map_cache_hasher): Likewise.
22945 * varasm.c (tm_clone_hasher): Likewise.
22946 * config/i386/i386.c (dllimport_hasher): Likewise.
22947 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
22948 (tree_hasher): Likewise.
22950 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22952 * hash-traits.h (ggc_hasher): Rename to...
22953 (ggc_remover): ...this and remove typedefs.
22954 (ggc_cache_hasher): Update accordingly. Add typedefs.
22955 (ggc_ptr_hash): New class.
22956 * hash-table.h: Update comment.
22957 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
22959 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
22960 (tree_descriptor_hasher): Likewise.
22961 * cgraph.c (function_version_hasher): Likewise.
22962 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
22963 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
22964 (dw_loc_list_hasher, addr_hasher): Likewise.
22965 * function.h (used_type_hasher): Likewise.
22966 * function.c (temp_address_hasher): Likewise.
22967 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
22968 * libfuncs.h (libfunc_hasher): Likewise.
22969 * lto-streamer.h (decl_state_hasher): Likewise.
22970 * optabs.c (libfunc_decl_hasher): Likewise.
22971 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
22972 * varasm.c (section_hasher, object_block_hasher): Likewise.
22973 (const_rtx_desc_hasher): Likewise.
22974 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
22975 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
22977 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22979 * hash-traits.h (free_ptr_hash): New class.
22980 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
22981 rather than typed_free_remove. Remove redudant typedefs.
22982 (external_ref_hasher): Likewise.
22983 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
22984 (ehspec_hasher): Likewise.
22985 * ggc-common.c (saving_hasher): Likewise.
22986 * gimplify.c (gimplify_hasher): Likewise.
22987 * haifa-sched.c (delay_i2_hasher): Likewise.
22988 * loop-invariant.c (invariant_expr_hasher): Likewise.
22989 * loop-iv.c (biv_entry_hasher): Likewise.
22990 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
22991 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
22992 * tree-cfg.c (locus_discrim_hasher): Likewise.
22993 * tree-eh.c (finally_tree_hasher): Likewise.
22994 * tree-into-ssa.c (var_info_hasher): Likewise.
22995 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
22996 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
22997 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
22998 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
22999 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
23000 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
23001 (shared_bitmap_hasher): Likewise.
23002 * tree-ssa-threadupdate.c (redirection_data): Likewise.
23003 * tree-vectorizer.h (peel_info_hasher): Likewise.
23004 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
23005 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
23007 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23009 * hash-table.h: Update comments.
23010 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
23011 (nofree_ptr_hash): New class.
23012 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
23013 than typed_noop_remove. Remove redudant typedefs.
23014 * attribs.c (attribute_hasher): Likewise.
23015 * cfg.c (bb_copy_hasher): Likewise.
23016 * cselib.c (cselib_hasher): Likewise.
23017 * dse.c (invariant_group_base_hasher): Likewise.
23018 * dwarf2cfi.c (trace_info_hasher): Likewise.
23019 * dwarf2out.c (macinfo_entry_hasher): Likewise.
23020 (comdat_type_hasher, loc_list_hasher): Likewise.
23021 * gcse.c (pre_ldst_expr_hasher): Likewise.
23022 * genmatch.c (id_base): Likewise.
23023 * genrecog.c (test_pattern_hasher): Likewise.
23024 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
23025 * haifa-sched.c (delay_i1_hasher): Likewise.
23026 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
23027 * ipa-icf.h (congruence_class_group_hash): Likewise.
23028 * ipa-profile.c (histogram_hash): Likewise.
23029 * ira-color.c (allocno_hard_regs_hasher): Likewise.
23030 * lto-streamer.h (string_slot_hasher): Likewise.
23031 * lto-streamer.c (tree_entry_hasher): Likewise.
23032 * plugin.c (event_hasher): Likewise.
23033 * postreload-gcse.c (expr_hasher): Likewise.
23034 * store-motion.c (st_expr_hasher): Likewise.
23035 * tree-sra.c (uid_decl_hasher): Likewise.
23036 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
23037 (ssa_name_var_hash): Likewise.
23038 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
23039 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
23040 * tree-ssa-pre.c (pre_expr_d): Likewise.
23041 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
23042 * vtable-verify.h (registration_hasher): Likewise.
23043 * vtable-verify.c (vtbl_map_hasher): Likewise.
23044 * config/arm/arm.c (libcall_hasher): Likewise.
23045 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
23046 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
23047 * config/sol2.c (comdat_entry_hasher): Likewise.
23048 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
23049 (print_fold_checksum, fold_checksum_tree): Likewise.
23050 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
23051 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
23052 (fold_build_call_array_loc): Likewise.
23053 * tree-ssa-ccp.c (gimple_htab): Likewise.
23054 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
23055 rather than pointer_type.
23057 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23059 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
23060 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
23062 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23064 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
23065 (ggc_hasher::ggc_mx): Likewise.
23066 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
23067 that duplicate ggc_hasher ones.
23069 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23071 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
23072 (gt_cleare_cache): Check here for deleted and empty entries.
23073 Replace handle_cache_entry with a call to keep_cache_entry.
23074 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
23075 (ggc_cache_hasher::keep_cache_entry): New function.
23076 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
23077 (tm_wrapper_hasher::keep_cache_entry): New function.
23078 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
23079 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
23080 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
23081 (type_cache_hasher::keep_cache_entry): New function.
23082 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
23083 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
23084 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
23085 (tree_type_map_cache_hasher::keep_cache_entry): New function.
23086 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
23087 (tm_clone_hasher::keep_cache_entry): New function.
23088 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
23089 (dllimport_hasher::keep_cache_entry): New function.
23091 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23093 * hash-table.h: Include hash-traits.h.
23094 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
23095 (ggc_cache_hasher): Move to...
23096 * hash-traits.h: ...this new file.
23098 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
23100 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
23101 struct cl_optimization.
23102 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
23103 * tree.c (make_node_stat): Allocate cl_optimization struct.
23104 (copy_node_stat): Allocate and copy cl_optimization struct.
23106 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
23108 * function.h (struct incoming_args): Move struct.
23109 (pass_by_reference, reference_callee_copied): Remove prototypes.
23110 * emit-rtl.h (struct incoming_args): Relocate struct here.
23111 * calls.h (pass_by_reference, reference_callee_copied): Relocate
23113 * function.c (pass_by_reference, reference_callee_copied): Move.
23114 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
23115 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
23116 * ipa-chkp.c: Include calls.h.
23118 2015-06-25 Andrew Macleod <amacleod@redhat.com>
23120 * alias.h (alias_set_type): Move typedef.
23121 * coretypes.h (alias_set_type): Relocate typedef here.
23122 * rtl.h: Don't include alias.h.
23124 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
23126 * cgraph.h (cgraph_rtl_info): Move to rtl.h
23127 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
23129 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
23130 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
23132 * calls.c: Include hard-reg-set.h before rtl.h.
23135 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
23136 Vladimir Makarov <vmakarov@redhat.com>
23138 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
23141 2015-06-25 Richard Biener <rguenther@suse.de>
23143 * fold-const.c (fold_binary_loc): Move simplification of
23144 (X <<>> C1) & C2 ...
23145 * match.pd: ... here.
23147 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
23149 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
23151 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23153 * match.pd: Add patterns for vec_conds between 1 and 0.
23155 2015-06-25 Richard Biener <rguenther@suse.de>
23157 * tree-vect-stmts.c (vectorizable_conversion): Do not set
23158 STMT_VINFO_VEC_STMT for SLP.
23159 (vectorizable_store): Likewise.
23160 (vectorizable_load): Likewise.
23161 (vect_transform_stmt): Catch SLP vectorization clobbering
23162 STMT_VINFO_VEC_STMT.
23164 2015-06-25 Richard Biener <rguenther@suse.de>
23166 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
23168 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
23169 cleanup resulting dead code and parameters.
23170 (vect_transform_slp_perm_load): Adjust.
23172 2015-06-25 Nick Clifton <nickc@redhat.com>
23174 * config/bfin/bfin.c (bfin_expand_prologue): Set
23175 current_function_static_stack_size if flag_stack_usage_info is set.
23176 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
23177 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
23178 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
23179 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
23181 2015-06-25 Tom de Vries <tom@codesourcery.com>
23183 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
23184 comment that the generated IV is unsigned.
23186 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23189 * config/arm/arm.c (arm_dbx_register_number): Return
23190 DWARF_FRAME_REGISTERS by default.
23192 2015-06-25 Tom de Vries <tom@codesourcery.com>
23194 * dominance.c (calculate_dominance_info): Fix verify_dominators call
23195 argument. Call verify_dominator when reusing dominator info.
23197 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
23200 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
23201 an additional element of the unspec vector. Modify indices
23203 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
23204 * config/sh/sh.c (prepare_move_operands): Pass incremented
23205 const_int to gen_GOTaddr2picreg.
23206 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
23208 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
23210 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
23211 Condition on TARGET_FLOAT.
23213 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
23215 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
23218 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
23220 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
23222 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
23223 aarch64_err_no_fpadvsimd.
23225 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
23226 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
23227 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
23228 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
23229 Turn error into assert, test TARGET_FLOAT.
23230 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
23233 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
23236 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
23238 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
23240 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
23242 2015-06-24 Renlin Li <renlin.li@arm.com>
23244 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
23245 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
23247 2015-06-24 Richard Biener <rguenther@suse.de>
23249 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
23251 (lower_opt_convert): Support lowering of conditional view_convert.
23252 (parser::parse_operation): Likewise.
23253 (parser::parse_for): Likewise.
23255 2015-06-24 Renlin Li <renlin.li@arm.com>
23257 * varasm.c (emit_local): Use unsigned int for align variable.
23259 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23262 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
23263 for negative numbers.
23265 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23267 PR rtl-optimization/66306
23268 * reload.c (find_reloads): Swap the match_dup info for
23269 commutative operands.
23271 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23273 * config/s390/vx-builtins.md
23274 ("vec_scatter_element<mode>_<non_vec_int>")
23275 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
23276 attribute with bhfgq.
23278 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23280 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
23282 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23284 * config/s390/s390-builtin-types.def: Add flag to indicate the
23285 options under which the function type is needed.
23286 * config/s390/s390-builtins.def: Add flag to indicate the options
23287 under which the builtin is enabled.
23288 * config/s390/s390-builtins.h: Add flags parameter to macro
23290 (bflags_for_builtin): New function.
23291 (flags_for_builtin): Renamed to ...
23292 (opflags_for_builtin): ... this.
23293 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
23294 flags_for_builtin to bflags_for_builtin and
23295 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
23296 * config/s390/s390.c: Add initialization of bflags_builtin and
23297 opflags_builtin arrays.
23298 Remove code for flags_builtin.
23299 (s390_init_builtins): Only create builtin function types if one of
23300 their flags is active.
23301 Only create builtins if all of their flags are active.
23302 (s390_expand_builtin): Rename flags_for_builtin to
23303 opflags_for_builtin.
23305 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23307 * config/s390/vecintrin.h: Remove internal builtins.
23309 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23311 * config/s390/s390.c (s390_secondary_reload): Fix check for
23312 GENERAL_REGS register class.
23314 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23316 * config/s390/s390.c (s390_support_vector_misalignment): Call
23317 default implementation for !TARGET_VX.
23319 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23321 * config/s390/s390.c (s390_legitimate_constant_p): Add
23324 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23326 * config/s390/s390.c (s390_vector_abi): New variable definition.
23327 (s390_check_type_for_vector_abi): New function.
23328 (TARGET_ASM_FILE_END): New macro definition.
23329 (s390_asm_file_end): New function.
23330 (s390_function_arg): Call s390_check_type_for_vector_abi.
23331 (s390_gimplify_va_arg): Likewise.
23332 * configure: Regenerate.
23333 * configure.ac: Check for .gnu_attribute Binutils feature.
23335 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
23338 * config/bfin/bfin.c (hwloop_optimize): Initialize
23339 JUMP_LABEL for newly created jump.
23341 2015-06-23 Tristan Gingold <gingold@adacore.com>
23343 * collect-utils.c (collect_wait): Unlink the response file here
23345 (do_wait): ...here.
23346 (utils_cleanup): ...and here.
23348 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
23350 * df-scan.c: Don't include target-def.h.
23351 * targhooks.c: Likewise.
23352 * config/arm/arm-c.c: Likewise.
23353 * config/i386/i386-c.c: Likewise.
23354 * config/nds32/nds32-cost.c: Likewise.
23355 * config/nds32/nds32-fp-as-gp.c: Likewise.
23356 * config/nds32/nds32-intrinsic.c: Likewise.
23357 * config/nds32/nds32-isr.c: Likewise.
23358 * config/nds32/nds32-md-auxiliary.c: Likewise.
23359 * config/nds32/nds32-memory-manipulation.c: Likewise.
23360 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
23361 * config/nds32/nds32-predicates.c: Likewise.
23363 2015-06-23 Richard Biener <rguenther@suse.de>
23365 PR tree-optimization/66636
23366 * tree-vect-stmts.c (vectorizable_store): Properly compute the
23367 def type for further defs for strided stores.
23369 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
23371 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
23372 conditional selects.
23373 (setcc_int<mode>, setcc_float<mode>): Reformat.
23375 2015-06-23 Marek Polacek <polacek@redhat.com>
23377 * match.pd ((x + y) - (x | y) -> x & y,
23378 (x + y) - (x & y) -> x | y): New patterns.
23380 2015-06-23 Ludovic Courtès <ludo@gnu.org>
23383 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
23384 '-dynamic-linker' within %{!shared: ...}.
23386 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
23389 * config/i386/predicates.md (addsub_vm_operator): New predicate.
23390 (addsub_vs_operator): Ditto.
23391 (addsub_vs_parallel): Ditto.
23392 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
23393 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
23394 Put minus RTX before plus and adjust vec_merge selector.
23395 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
23396 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
23397 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
23398 (addsub vec_merge splitters): New combiner splitters.
23399 (addsub vec_select/vec_concat splitters): Ditto.
23401 2015-06-23 Bin Cheng <bin.cheng@arm.com>
23403 PR tree-optimization/66449
23404 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
23405 POINTER_PLUS_EXPR for pointers.
23407 2015-06-23 Alan Modra <amodra@gmail.com>
23409 * rtlanal.c (commutative_operand_precedence): Correct comments.
23410 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
23411 declaration. Return an int. Distinguish REG,REG return from
23413 (struct simplify_plus_minus_op_data): Make local to function.
23414 (simplify_plus_minus): Don't set canonicalized if merely sorting
23415 registers. Avoid packing ops if nothing changes. White space fixes.
23417 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
23419 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
23420 -fdump-ada-spec is passed but not if -fsyntax-only is.
23422 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
23425 * lra-lives.c (process_bb_lives): Check insn copying the same
23426 reload pseudo and don't create a copy for it.
23428 2015-06-22 Tom de Vries <tom@codesourcery.com>
23430 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
23433 2015-06-22 Tom de Vries <tom@codesourcery.com>
23435 * builtins.def (DEF_GOMP_BUILTIN): Test
23436 'flag_tree_parallelize_loops > 1' instead of
23437 'flag_tree_parallelize_loops'. Test flag_cilkplus.
23439 2015-06-22 Tom de Vries <tom@codesourcery.com>
23441 * dominance.c (calculate_dominance_info): Verify dominators if
23444 2015-06-22 Marek Polacek <polacek@redhat.com>
23446 * match.pd ((x ^ y) ^ (x | y) -> x & y,
23447 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
23448 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
23449 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
23451 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
23454 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
23455 cost of embedded comparison.
23457 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23460 * config/rs6000/predicates.md (altivec_register_operand): Permit
23461 virtual stack registers.
23462 (vsx_register_operand): Likewise.
23463 (vfloat_operand): Likewise.
23464 (vint_operand): Likewise.
23465 (vlogical_operand): Likewise.
23467 2015-06-22 Richard Biener <rguenther@suse.de>
23469 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
23470 and single_scalar_iteration_cost members.
23471 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
23472 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
23473 (vect_get_single_scalar_iteration_cost): Remove.
23474 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
23475 Use LOOP_VINFO_SCALAR_ITERATION_COST.
23476 * tree-vect-loop.c (destroy_loop_vec_info): Free
23478 (vect_get_single_scalar_iteration_cost): Compute result into
23479 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
23480 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
23481 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
23482 (vect_estimate_min_profitable_iters): Use them.
23484 2015-06-22 Christian Bruel <christian.bruel@st.com>
23487 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
23488 (TARGET_INSERT_ATTRIBUTES): Define.
23489 (thumb_flipper): New var.
23490 * config/arm/arm.opt (-mflip-thumb): New switch.
23492 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
23493 Martin Liska <mliska@suse.cz>
23496 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
23497 construction of arg_types.
23498 (sem_function::sem_function): Likewise.
23499 (sem_function::~sem_function): Remove destruction of arg_types.
23500 (sem_function::compatible_parm_types_p): New function.
23501 (sem_function::equals_wpa): Reorg matching of return values
23502 and parameter types.
23503 (sem_function::equals_private): Reorg mathcing of argument types.
23504 (sem_function::parse_tree_args): Remove.
23505 * ipa-icf.h (init_wpa): Do not call it.
23506 (parse_tree_args): Remove.
23507 (compatible_parm_types_p): Declare.
23508 (result_type): Remove.
23509 (arg_types): Remove.
23511 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
23514 * ipa-polymorphic-call.c
23515 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
23516 initializing alias oracle; fix formating; set base_alias_set if it
23519 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
23521 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
23522 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
23523 (find_inc): Likewise.
23524 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
23526 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
23527 * df-scan.c (df_swap_refs): Remove.
23528 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
23529 * dominance.c (link_roots): Use std::swap instead of manually swapping.
23530 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
23531 * fold-const.c (fold_relational_const): Likewise.
23532 * genattrtab.c (simplify_test_exp): Likewise.
23533 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
23534 gimple_simplify): Likewise.
23535 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
23536 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
23537 * ipa-devirt.c (add_type_duplicate): Likewise.
23538 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
23539 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
23540 * lra.c (lra_create_copy): Likewise.
23541 * lto-streamer-out.c (DFS::DFS): Likewise.
23542 * modulo-sched.c (get_sched_window): Likewise.
23543 * omega.c (omega_pretty_print_problem): Likewise.
23544 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
23545 * reload1.c (reloads_unique_chain_p): Likewise.
23546 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
23547 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
23549 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
23551 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
23552 predicate_mem_writes): Likewise.
23553 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
23554 * tree-predcom.c (combine_chains): Likewise.
23555 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
23556 refs_may_alias_p_1): Likewise.
23557 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
23558 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
23559 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
23560 number_of_iterations_cond): Likewise.
23561 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
23562 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
23563 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
23564 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
23565 * tree-vrp.c (extract_range_from_binary_expr_1,
23566 extract_range_from_unary_expr_1): Likewise.
23568 2015-06-20 Marek Polacek <polacek@redhat.com>
23570 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
23572 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
23575 * config/sh/sh.c (prepare_move_operands): Replace subreg
23576 index term with R0 for base and index addressing.
23578 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
23580 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
23582 (movsf_aarch64): Change condition from register_operand to
23583 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
23584 load1. Change type for alternative 7 to store1.
23585 (movdf_aarch64): Likewise.
23587 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
23589 * config/vax/vax.md: Adjust sign/zero extend patterns to
23590 handle SUBREGs in operands[1].
23592 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23594 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
23595 of manually swapping.
23596 (expand_vec_perm_interleave2): Likewise.
23598 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
23600 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
23601 reuse bounds created for abnormal ssa names.
23603 2015-06-19 Jakub Jelinek <jakub@redhat.com>
23605 * config/nvptx/nvptx.md (allocate_stack): Rename to...
23606 (allocate_stack_<mode>): ... this, and add :P on both
23607 match_operand and unspec.
23608 (allocate_stack): New expander.
23610 2015-06-19 Christian Bruel <christian.bruel@st.com>
23614 * config/arm/arm.c (arm_set_current_function): Handle
23615 explicit default options.
23617 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
23619 * config/i386/i386.md (*movsicc_noc_zext): New insn.
23620 (zero-extended cmove with mem peephole2): New pattern.
23621 (cmove with mem peephole2): Merge patterns.
23623 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
23625 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
23627 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
23629 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
23630 * config/mips/mips.md (*madd4<mode>): Ditto.
23631 (*nmadd3<mode>) Ditto.
23632 (*nmadd4<mode>_fastmath): Ditto.
23633 (*nmadd3<mode>_fastmath): Ditto.
23634 (*nmsub4<mode>): Ditto.
23635 (*nmsub3<mode>): Ditto.
23636 (*nmsub4<mode>_fastmath): Ditto.
23637 (*nmsub3<mode>_fastmath): Ditto.
23639 2015-06-18 Michael Matz <matz@suse.de>
23641 PR middle-end/66253
23642 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
23643 grouped strided stores.
23644 (vectorizable_load): Don't use the DR from first_stmt in
23645 the non-SLP grouped strided case.
23647 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
23650 * function.c (assign_bounds): Add arguments assign_regs,
23651 assign_special, assign_bt.
23652 (assign_parms): For vararg functions handle bounds in BT
23653 and special slots after incoming vararg bounds.
23655 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
23657 PR middle-end/66568
23658 * cfgexpand.c (expand_return): Handle missing bounds.
23659 (expand_gimple_stmt_1): Likewise.
23660 * tree-chkp.c (chkp_expand_zero_bounds): New.
23661 * tree-chkp.h (chkp_expand_zero_bounds): New.
23663 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
23665 PR middle-end/66567
23666 * ipa-chkp.c (chkp_maybe_create_clone): Require
23667 functions to be instrumentable.
23668 * tree-chkp.c (chkp_replace_function_pointer): Use
23669 chkp_instrumentable_p instead of attribute check.
23671 2015-06-18 Richard Biener <rguenther@suse.de>
23673 PR tree-optimization/66510
23674 * tree-vect-stmts.c (vectorizable_load): Properly compute the
23675 number of vector loads for SLP permuted loads.
23676 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
23677 check the stride for loop vectorization.
23678 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
23679 vectorization factor.
23680 (vect_analyze_group_access): If the group size is not a power
23681 of two require a epilogue loop.
23682 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
23683 compute and optimizing and alias test pruning after final
23684 vectorization factor computation.
23685 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
23687 (vect_transform_slp_perm_load): Properly compute the original
23688 number of vector load stmts.
23690 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
23692 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
23693 "unlikely character , in @var" warning.
23695 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
23697 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
23698 (ix86_function_arg_advance): Ditto.
23699 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
23701 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
23703 * function.h (struct rtl_data): Remove struct and accessor macros.
23704 * emit-rtl.h (struct rtl_data): Relocate to here.
23705 * Makefile.in (GTFILES): Add emit-rtl.h.
23706 * df-core.c: Include emit-rtl.h.
23707 * genattrtab.c: Likewise.
23708 * genconditions.c: Likewise.
23709 * genpreds.c: Likewise.
23710 * genrecog.c: Likewise.
23711 * regcprop.c: Likewise.
23712 * resource.c: Likewise.
23713 * sched-rgn.c: Likewise.
23714 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
23715 * config/i386/winnt.c: Likewise.
23717 2015-06-17 Jakub Jelinek <jakub@redhat.com>
23719 PR middle-end/66429
23720 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
23721 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
23722 and has_force_vectorize_loops flags from cfun into
23724 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
23725 if simduid is non-NULL.
23726 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
23727 * passes.def (pass_simduid_cleanup): Add new pass after loop
23729 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
23730 indirection from htab argument's type.
23731 (shrink_simd_arrays): New function.
23732 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
23733 Don't call adjust_simduid_builtins if there are no loops.
23734 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
23735 (pass_simduid_cleanup::execute): New method.
23736 (make_pass_simduid_cleanup): New function.
23738 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
23740 * tree-core.h (tree_target_option): Make opts field a pointer to a
23741 cl_target_option instead of an instance of the struct.
23742 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
23744 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
23745 TARGET_OPTION_NODE.
23746 (copy_node_stat): Allocate and copy struct cl_target_option.
23748 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
23750 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
23751 Remove conditional exposure of prototypes.
23752 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
23753 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
23754 definitions in tree.h with functions.
23755 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
23757 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
23759 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
23761 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
23762 (*cmp<mode>_signed): ... this.
23763 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
23764 (*cmp<mode>_unsigned): ... this. Remove %b.
23766 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
23768 * coretypes.h: Include input.h and as-a.h.
23769 * rtl.h: Include input.h and as-a.h for generator files.
23770 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
23771 * vec.c: Don't include diagnostic-core.h.
23772 * alias.c: Do not include input.h, line-map.h or is-a.h.
23773 * asan.c: Likewise.
23774 * attribs.c: Likewise.
23775 * auto-inc-dec.c: Likewise.
23776 * auto-profile.c: Likewise.
23777 * bb-reorder.c: Likewise.
23778 * bt-load.c: Likewise.
23779 * builtins.c: Likewise.
23780 * caller-save.c: Likewise.
23781 * calls.c: Likewise.
23782 * ccmp.c: Likewise.
23784 * cfganal.c: Likewise.
23785 * cfgbuild.c: Likewise.
23786 * cfgcleanup.c: Likewise.
23787 * cfgexpand.c: Likewise.
23788 * cfghooks.c: Likewise.
23789 * cfgloop.c: Likewise.
23790 * cfgloop.h: Likewise.
23791 * cfgloopanal.c: Likewise.
23792 * cfgloopmanip.c: Likewise.
23793 * cfgrtl.c: Likewise.
23794 * cgraph.c: Likewise.
23795 * cgraphbuild.c: Likewise.
23796 * cgraphclones.c: Likewise.
23797 * cgraphunit.c: Likewise.
23798 * cilk-common.c: Likewise.
23799 * combine-stack-adj.c: Likewise.
23800 * combine.c: Likewise.
23801 * compare-elim.c: Likewise.
23802 * convert.c: Likewise.
23803 * coverage.c: Likewise.
23804 * cppbuiltin.c: Likewise.
23805 * cprop.c: Likewise.
23807 * cselib.c: Likewise.
23808 * data-streamer-in.c: Likewise.
23809 * data-streamer-out.c: Likewise.
23810 * data-streamer.c: Likewise.
23811 * dbxout.c: Likewise.
23814 * debug.c: Likewise.
23815 * df-core.c: Likewise.
23816 * df-problems.c: Likewise.
23817 * df-scan.c: Likewise.
23820 * diagnostic-core.h: Likewise.
23821 * diagnostic.c: Likewise.
23822 * dojump.c: Likewise.
23823 * dominance.c: Likewise.
23824 * domwalk.c: Likewise.
23825 * double-int.c: Likewise.
23827 * dumpfile.c: Likewise.
23828 * dumpfile.h: Likewise.
23829 * dwarf2asm.c: Likewise.
23830 * dwarf2cfi.c: Likewise.
23831 * dwarf2out.c: Likewise.
23832 * emit-rtl.c: Likewise.
23833 * et-forest.c: Likewise.
23834 * except.c: Likewise.
23835 * explow.c: Likewise.
23836 * expmed.c: Likewise.
23837 * expr.c: Likewise.
23838 * final.c: Likewise.
23839 * fixed-value.c: Likewise.
23840 * fold-const.c: Likewise.
23841 * function.c: Likewise.
23842 * fwprop.c: Likewise.
23843 * gcc-plugin.h: Likewise.
23844 * gcse.c: Likewise.
23845 * generic-match-head.c: Likewise.
23846 * ggc-page.c: Likewise.
23847 * gimple-builder.c: Likewise.
23848 * gimple-expr.c: Likewise.
23849 * gimple-fold.c: Likewise.
23850 * gimple-iterator.c: Likewise.
23851 * gimple-low.c: Likewise.
23852 * gimple-match-head.c: Likewise.
23853 * gimple-pretty-print.c: Likewise.
23854 * gimple-ssa-isolate-paths.c: Likewise.
23855 * gimple-ssa-strength-reduction.c: Likewise.
23856 * gimple-streamer-in.c: Likewise.
23857 * gimple-streamer-out.c: Likewise.
23858 * gimple-streamer.h: Likewise.
23859 * gimple-walk.c: Likewise.
23860 * gimple.c: Likewise.
23861 * gimplify-me.c: Likewise.
23862 * gimplify.c: Likewise.
23863 * godump.c: Likewise.
23864 * graph.c: Likewise.
23865 * graphite-blocking.c: Likewise.
23866 * graphite-dependences.c: Likewise.
23867 * graphite-interchange.c: Likewise.
23868 * graphite-isl-ast-to-gimple.c: Likewise.
23869 * graphite-optimize-isl.c: Likewise.
23870 * graphite-poly.c: Likewise.
23871 * graphite-scop-detection.c: Likewise.
23872 * graphite-sese-to-poly.c: Likewise.
23873 * graphite.c: Likewise.
23874 * haifa-sched.c: Likewise.
23875 * hw-doloop.c: Likewise.
23876 * ifcvt.c: Likewise.
23877 * init-regs.c: Likewise.
23878 * input.c: Likewise.
23879 * internal-fn.c: Likewise.
23880 * ipa-chkp.c: Likewise.
23881 * ipa-comdats.c: Likewise.
23882 * ipa-cp.c: Likewise.
23883 * ipa-devirt.c: Likewise.
23884 * ipa-icf-gimple.c: Likewise.
23885 * ipa-icf.c: Likewise.
23886 * ipa-inline-analysis.c: Likewise.
23887 * ipa-inline-transform.c: Likewise.
23888 * ipa-inline.c: Likewise.
23889 * ipa-polymorphic-call.c: Likewise.
23890 * ipa-profile.c: Likewise.
23891 * ipa-prop.c: Likewise.
23892 * ipa-pure-const.c: Likewise.
23893 * ipa-ref.c: Likewise.
23894 * ipa-reference.c: Likewise.
23895 * ipa-split.c: Likewise.
23896 * ipa-utils.c: Likewise.
23897 * ipa-visibility.c: Likewise.
23899 * ira-build.c: Likewise.
23900 * ira-color.c: Likewise.
23901 * ira-conflicts.c: Likewise.
23902 * ira-costs.c: Likewise.
23903 * ira-emit.c: Likewise.
23904 * ira-lives.c: Likewise.
23906 * jump.c: Likewise.
23907 * langhooks.c: Likewise.
23909 * loop-doloop.c: Likewise.
23910 * loop-init.c: Likewise.
23911 * loop-invariant.c: Likewise.
23912 * loop-iv.c: Likewise.
23913 * loop-unroll.c: Likewise.
23914 * lower-subreg.c: Likewise.
23915 * lra-assigns.c: Likewise.
23916 * lra-coalesce.c: Likewise.
23917 * lra-constraints.c: Likewise.
23918 * lra-eliminations.c: Likewise.
23919 * lra-lives.c: Likewise.
23920 * lra-remat.c: Likewise.
23921 * lra-spills.c: Likewise.
23923 * lto-cgraph.c: Likewise.
23924 * lto-compress.c: Likewise.
23925 * lto-opts.c: Likewise.
23926 * lto-section-in.c: Likewise.
23927 * lto-section-out.c: Likewise.
23928 * lto-streamer-in.c: Likewise.
23929 * lto-streamer-out.c: Likewise.
23930 * lto-streamer.c: Likewise.
23932 * mode-switching.c: Likewise.
23933 * modulo-sched.c: Likewise.
23934 * omega.c: Likewise.
23935 * omp-low.c: Likewise.
23936 * optabs.c: Likewise.
23937 * opts-global.c: Likewise.
23938 * opts.h: Likewise.
23939 * passes.c: Likewise.
23940 * plugin.c: Likewise.
23941 * postreload-gcse.c: Likewise.
23942 * postreload.c: Likewise.
23943 * predict.c: Likewise.
23944 * pretty-print.h: Likewise.
23945 * print-rtl.c: Likewise.
23946 * print-tree.c: Likewise.
23947 * profile.c: Likewise.
23948 * real.c: Likewise.
23949 * realmpfr.c: Likewise.
23950 * recog.c: Likewise.
23952 * reg-stack.c: Likewise.
23953 * regcprop.c: Likewise.
23954 * reginfo.c: Likewise.
23955 * regrename.c: Likewise.
23956 * regstat.c: Likewise.
23957 * reload.c: Likewise.
23958 * reload1.c: Likewise.
23959 * reorg.c: Likewise.
23960 * resource.c: Likewise.
23961 * rtl-chkp.c: Likewise.
23962 * rtl-error.c: Likewise.
23963 * rtlanal.c: Likewise.
23964 * rtlhooks.c: Likewise.
23965 * sanopt.c: Likewise.
23966 * sched-deps.c: Likewise.
23967 * sched-ebb.c: Likewise.
23968 * sched-rgn.c: Likewise.
23969 * sched-vis.c: Likewise.
23970 * sdbout.c: Likewise.
23971 * sel-sched-dump.c: Likewise.
23972 * sel-sched-ir.c: Likewise.
23973 * sel-sched.c: Likewise.
23974 * sese.c: Likewise.
23975 * shrink-wrap.c: Likewise.
23976 * simplify-rtx.c: Likewise.
23977 * stack-ptr-mod.c: Likewise.
23978 * statistics.c: Likewise.
23979 * stmt.c: Likewise.
23980 * stor-layout.c: Likewise.
23981 * store-motion.c: Likewise.
23982 * streamer-hooks.c: Likewise.
23983 * stringpool.c: Likewise.
23984 * symtab.c: Likewise.
23985 * target-globals.c: Likewise.
23986 * targhooks.c: Likewise.
23987 * toplev.c: Likewise.
23988 * tracer.c: Likewise.
23989 * trans-mem.c: Likewise.
23990 * tree-affine.c: Likewise.
23991 * tree-browser.c: Likewise.
23992 * tree-call-cdce.c: Likewise.
23993 * tree-cfg.c: Likewise.
23994 * tree-cfgcleanup.c: Likewise.
23995 * tree-chkp-opt.c: Likewise.
23996 * tree-chkp.c: Likewise.
23997 * tree-chrec.c: Likewise.
23998 * tree-complex.c: Likewise.
23999 * tree-data-ref.c: Likewise.
24000 * tree-dfa.c: Likewise.
24001 * tree-diagnostic.c: Likewise.
24002 * tree-dump.c: Likewise.
24003 * tree-eh.c: Likewise.
24004 * tree-emutls.c: Likewise.
24005 * tree-if-conv.c: Likewise.
24006 * tree-inline.c: Likewise.
24007 * tree-into-ssa.c: Likewise.
24008 * tree-iterator.c: Likewise.
24009 * tree-loop-distribution.c: Likewise.
24010 * tree-nested.c: Likewise.
24011 * tree-nrv.c: Likewise.
24012 * tree-object-size.c: Likewise.
24013 * tree-outof-ssa.c: Likewise.
24014 * tree-parloops.c: Likewise.
24015 * tree-phinodes.c: Likewise.
24016 * tree-predcom.c: Likewise.
24017 * tree-pretty-print.c: Likewise.
24018 * tree-profile.c: Likewise.
24019 * tree-scalar-evolution.c: Likewise.
24020 * tree-sra.c: Likewise.
24021 * tree-ssa-address.c: Likewise.
24022 * tree-ssa-alias.c: Likewise.
24023 * tree-ssa-ccp.c: Likewise.
24024 * tree-ssa-coalesce.c: Likewise.
24025 * tree-ssa-copy.c: Likewise.
24026 * tree-ssa-copyrename.c: Likewise.
24027 * tree-ssa-dce.c: Likewise.
24028 * tree-ssa-dom.c: Likewise.
24029 * tree-ssa-dse.c: Likewise.
24030 * tree-ssa-forwprop.c: Likewise.
24031 * tree-ssa-ifcombine.c: Likewise.
24032 * tree-ssa-live.c: Likewise.
24033 * tree-ssa-loop-ch.c: Likewise.
24034 * tree-ssa-loop-im.c: Likewise.
24035 * tree-ssa-loop-ivcanon.c: Likewise.
24036 * tree-ssa-loop-ivopts.c: Likewise.
24037 * tree-ssa-loop-manip.c: Likewise.
24038 * tree-ssa-loop-niter.c: Likewise.
24039 * tree-ssa-loop-prefetch.c: Likewise.
24040 * tree-ssa-loop-unswitch.c: Likewise.
24041 * tree-ssa-loop.c: Likewise.
24042 * tree-ssa-math-opts.c: Likewise.
24043 * tree-ssa-operands.c: Likewise.
24044 * tree-ssa-phiopt.c: Likewise.
24045 * tree-ssa-phiprop.c: Likewise.
24046 * tree-ssa-pre.c: Likewise.
24047 * tree-ssa-propagate.c: Likewise.
24048 * tree-ssa-reassoc.c: Likewise.
24049 * tree-ssa-sccvn.c: Likewise.
24050 * tree-ssa-scopedtables.c: Likewise.
24051 * tree-ssa-sink.c: Likewise.
24052 * tree-ssa-strlen.c: Likewise.
24053 * tree-ssa-structalias.c: Likewise.
24054 * tree-ssa-tail-merge.c: Likewise.
24055 * tree-ssa-ter.c: Likewise.
24056 * tree-ssa-threadedge.c: Likewise.
24057 * tree-ssa-threadupdate.c: Likewise.
24058 * tree-ssa-uncprop.c: Likewise.
24059 * tree-ssa-uninit.c: Likewise.
24060 * tree-ssa.c: Likewise.
24061 * tree-ssanames.c: Likewise.
24062 * tree-stdarg.c: Likewise.
24063 * tree-streamer-in.c: Likewise.
24064 * tree-streamer-out.c: Likewise.
24065 * tree-streamer.c: Likewise.
24066 * tree-switch-conversion.c: Likewise.
24067 * tree-tailcall.c: Likewise.
24068 * tree-vect-data-refs.c: Likewise.
24069 * tree-vect-generic.c: Likewise.
24070 * tree-vect-loop-manip.c: Likewise.
24071 * tree-vect-loop.c: Likewise.
24072 * tree-vect-patterns.c: Likewise.
24073 * tree-vect-slp.c: Likewise.
24074 * tree-vect-stmts.c: Likewise.
24075 * tree-vectorizer.c: Likewise.
24076 * tree-vrp.c: Likewise.
24077 * tree.c: Likewise.
24078 * tsan.c: Likewise.
24079 * ubsan.c: Likewise.
24080 * valtrack.c: Likewise.
24081 * value-prof.c: Likewise.
24082 * var-tracking.c: Likewise.
24083 * varasm.c: Likewise.
24084 * varpool.c: Likewise.
24085 * vmsdbgout.c: Likewise.
24086 * vtable-verify.c: Likewise.
24088 * wide-int.cc: Likewise.
24089 * xcoffout.c: Likewise.
24090 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
24091 * common/common-targhooks.c: Likewise.
24092 * config/aarch64/aarch64-builtins.c: Likewise.
24093 * config/aarch64/aarch64.c: Likewise.
24094 * config/alpha/alpha.c: Likewise.
24095 * config/arc/arc.c: Likewise.
24096 * config/arm/aarch-common.c: Likewise.
24097 * config/arm/arm-builtins.c: Likewise.
24098 * config/arm/arm-c.c: Likewise.
24099 * config/arm/arm.c: Likewise.
24100 * config/avr/avr-c.c: Likewise.
24101 * config/avr/avr-log.c: Likewise.
24102 * config/avr/avr.c: Likewise.
24103 * config/bfin/bfin.c: Likewise.
24104 * config/c6x/c6x.c: Likewise.
24105 * config/cr16/cr16.c: Likewise.
24106 * config/cris/cris.c: Likewise.
24107 * config/darwin-c.c: Likewise.
24108 * config/darwin.c: Likewise.
24109 * config/default-c.c: Likewise.
24110 * config/epiphany/epiphany.c: Likewise.
24111 * config/epiphany/mode-switch-use.c: Likewise.
24112 * config/epiphany/resolve-sw-modes.c: Likewise.
24113 * config/fr30/fr30.c: Likewise.
24114 * config/frv/frv.c: Likewise.
24115 * config/ft32/ft32.c: Likewise.
24116 * config/glibc-c.c: Likewise.
24117 * config/h8300/h8300.c: Likewise.
24118 * config/i386/i386-c.c: Likewise.
24119 * config/i386/i386.c: Likewise.
24120 * config/i386/msformat-c.c: Likewise.
24121 * config/i386/winnt-cxx.c: Likewise.
24122 * config/i386/winnt-stubs.c: Likewise.
24123 * config/i386/winnt.c: Likewise.
24124 * config/ia64/ia64-c.c: Likewise.
24125 * config/ia64/ia64.c: Likewise.
24126 * config/iq2000/iq2000.c: Likewise.
24127 * config/lm32/lm32.c: Likewise.
24128 * config/m32c/m32c-pragma.c: Likewise.
24129 * config/m32c/m32c.c: Likewise.
24130 * config/m32r/m32r.c: Likewise.
24131 * config/m68k/m68k.c: Likewise.
24132 * config/mcore/mcore.c: Likewise.
24133 * config/mep/mep-pragma.c: Likewise.
24134 * config/mep/mep.c: Likewise.
24135 * config/microblaze/microblaze-c.c: Likewise.
24136 * config/microblaze/microblaze.c: Likewise.
24137 * config/mips/mips.c: Likewise.
24138 * config/mmix/mmix.c: Likewise.
24139 * config/mn10300/mn10300.c: Likewise.
24140 * config/moxie/moxie.c: Likewise.
24141 * config/msp430/msp430-c.c: Likewise.
24142 * config/msp430/msp430.c: Likewise.
24143 * config/nds32/nds32-cost.c: Likewise.
24144 * config/nds32/nds32-fp-as-gp.c: Likewise.
24145 * config/nds32/nds32-intrinsic.c: Likewise.
24146 * config/nds32/nds32-isr.c: Likewise.
24147 * config/nds32/nds32-md-auxiliary.c: Likewise.
24148 * config/nds32/nds32-memory-manipulation.c: Likewise.
24149 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
24150 * config/nds32/nds32-predicates.c: Likewise.
24151 * config/nds32/nds32.c: Likewise.
24152 * config/nios2/nios2.c: Likewise.
24153 * config/nvptx/nvptx.c: Likewise.
24154 * config/pa/pa.c: Likewise.
24155 * config/pdp11/pdp11.c: Likewise.
24156 * config/rl78/rl78-c.c: Likewise.
24157 * config/rl78/rl78.c: Likewise.
24158 * config/rs6000/rs6000-c.c: Likewise.
24159 * config/rs6000/rs6000.c: Likewise.
24160 * config/rx/rx.c: Likewise.
24161 * config/s390/s390-c.c: Likewise.
24162 * config/s390/s390.c: Likewise.
24163 * config/sh/sh-c.c: Likewise.
24164 * config/sh/sh-mem.cc: Likewise.
24165 * config/sh/sh.c: Likewise.
24166 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
24167 * config/sh/sh_treg_combine.cc: Likewise.
24168 * config/sol2-c.c: Likewise.
24169 * config/sol2-cxx.c: Likewise.
24170 * config/sol2-stubs.c: Likewise.
24171 * config/sol2.c: Likewise.
24172 * config/sparc/sparc-c.c: Likewise.
24173 * config/sparc/sparc.c: Likewise.
24174 * config/spu/spu-c.c: Likewise.
24175 * config/spu/spu.c: Likewise.
24176 * config/stormy16/stormy16.c: Likewise.
24177 * config/tilegx/mul-tables.c: Likewise.
24178 * config/tilegx/tilegx-c.c: Likewise.
24179 * config/tilegx/tilegx.c: Likewise.
24180 * config/tilepro/mul-tables.c: Likewise.
24181 * config/tilepro/tilepro-c.c: Likewise.
24182 * config/tilepro/tilepro.c: Likewise.
24183 * config/v850/v850-c.c: Likewise.
24184 * config/v850/v850.c: Likewise.
24185 * config/vax/vax.c: Likewise.
24186 * config/visium/visium.c: Likewise.
24187 * config/vms/vms-c.c: Likewise.
24188 * config/vms/vms.c: Likewise.
24189 * config/vxworks.c: Likewise.
24190 * config/winnt-c.c: Likewise.
24191 * config/xtensa/xtensa.c: Likewise.
24193 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
24195 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
24197 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
24199 2015-06-17 Richard Biener <rguenther@suse.de>
24201 PR tree-optimization/66251
24202 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
24203 stmts for SLP strided stores.
24206 2015-05-22 Richard Biener <rguenther@suse.de>
24208 PR tree-optimization/66251
24209 * tree-vect-stmts.c (vectorizable_conversion): Properly
24210 set STMT_VINFO_VEC_STMT even for the SLP case.
24212 2015-05-26 Michael Matz <matz@suse.de>
24214 PR middle-end/66251
24215 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
24216 STMT_VINFO_VEC_STMT, also with SLP.
24218 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
24221 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
24222 (*avx_addsubv4df3_1s): Ditto.
24223 (*sse3_addsubv2df3_1): Ditto.
24224 (*sse3_addsubv2df3_1s): Ditto.
24225 (*avx_addsubv8sf3_1): Ditto.
24226 (*avx_addsubv8sf3_1s): Ditto.
24227 (*sse3_addsubv4sf3_1): Ditto.
24228 (*sse3_addsubv4sf3_1s): Ditto.
24230 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
24232 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
24233 (SYSROOT_SUFFIX_SPEC): Update.
24234 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
24235 (STARTFILE_PREFIX_SPEC): Update.
24236 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
24237 (MULTILIB_REQUIRED): New.
24238 (MULTILIB_OSDIRNAMES): New.
24239 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
24240 (MULTILIB_REQUIRED): New.
24241 (MULTILIB_OSDIRNAMES): New.
24243 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
24245 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
24246 * config/aarch64/aarch64-options-extensions.def: Update "fP",
24247 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
24248 * config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
24249 (AARCH64_FL_PAN): New.
24250 (AARCH64_FL_LOR): New.
24251 (AARCH64_FL_RDMA): New.
24252 (AARCH64_FL_FOR_ARCH8_1): New.
24253 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
24254 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
24256 2015-06-16 Martin Liska <mliska@suse.cz>
24258 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
24259 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
24262 2015-06-16 Richard Biener <rguenther@suse.de>
24264 * tree-vect-stmts.c (vectorizable_store): Adjust.
24265 (vectorizable_load): Likewise.
24266 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
24268 (vect_create_data_ref_ptr): Likewise.
24269 (bump_vector_ptr): Adjust.
24271 2015-06-16 Richard Biener <rguenther@suse.de>
24273 * tree-vect-stmts.c (vectorizable_load): Properly start loads
24274 with the first element if this is grouped loads.
24276 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
24278 * config/arm/arm-protos.h (struct tune_params): Rename
24279 log_op_non_sc to log_op_non_short_circuit, and rename enum
24280 values to expand SC to SHORT_CIRCUIT.
24281 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
24282 to LOG_OP_NON_SHORT_CIRCUIT.
24283 (arm_fastmul_tune):Likewise
24284 (arm_strongarm_tune): Likewise.
24285 (arm_xscale_tune): Likewise.
24286 (arm_9e_tune): Likewise.
24287 (arm_marvell_pj4_tune): Likewise.
24288 (arm_v6t2_tune): Likewise.
24289 (arm_cortex_tune): Likewise.
24290 (arm_cortex_a8_tune): Likewise.
24291 (arm_cortex_a7_tune): Likewise.
24292 (arm_cortex_a15_tune): Likewise.
24293 (arm_cortex_a53_tune): Likewise.
24294 (arm_cortex_a57_tune): Likewise.
24295 (arm_xgene1_tune): Likewise.
24296 (arm_cortex_a5_tune): Likewise.
24297 (arm_cortex_a9_tune): Likewise.
24298 (arm_cortex_a12_tune): Likewise.
24299 (arm_v7m_tune): Likewise.
24300 (arm_cortex_m7_tune): Likewise.
24301 (arm_v6m_tune): Likewise.
24302 (arm_fa726te_tune): Likewise.
24304 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
24306 * altivec.md: Delete UNSPEC_VMLADDUHM.
24307 (mulv4si3_p8): New pattern.
24308 (mulv4si3): Use it for POWER8.
24309 (mulv8hi3): Use vmladduhm with zero addend.
24310 (altivec_vmladduhm): Descriptive RTL.
24312 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
24314 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
24315 to use neon_move instead of mov_imm.
24316 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
24317 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
24319 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
24320 aarch64_float_const_zero_rtx_p check before TFmode check.
24321 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
24323 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
24324 code and attributes to match. Change condition from register_operand
24325 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
24326 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
24329 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
24332 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
24333 there is no parent.
24335 2015-06-14 Shiva Chen <shiva0217@gmail.com>
24337 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
24338 HOST_WIDE_INT parameter.
24340 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
24343 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
24344 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
24346 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
24348 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
24350 * rtl.h (classify_insn): Declare.
24351 * emit-rtl.c (classify_insn): Move to...
24352 * rtl.c: ...here and add generator support.
24353 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
24354 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
24355 * genemit.c (gen_emit_seq): New function.
24356 (gen_expand, gen_split): Use it.
24358 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
24360 * tree.c (make_vector_stat): Fix comment to state that the
24361 function returns a VECTOR_CST.
24363 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
24365 * gensupport.h (add_implicit_parallel): Declare.
24366 * genrecog.c (add_implicit_parallel): Move to...
24367 * gensupport.c (add_implicit_parallel): ...here.
24368 (process_one_cond_exec): Use it.
24369 * genemit.c (gen_insn): Likewise.
24371 2015-06-13 Iain Sandoe <iain@codesourcery.com>
24374 * passes.c (rest_of_decl_compilation): Do not register globals for
24375 early debug if they are declared in built-ins.
24377 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
24379 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
24381 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24383 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
24385 (noce_try_cmove_arith): Likewise.
24386 (noce_get_alt_condition): Likewise.
24388 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
24390 * common/config/i386/i386-common.c
24391 (OPTION_MASK_ISA_MWAITX_SET): New.
24392 (ix86_handle_option): Handle mwaitx.
24393 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
24394 (x86_64-*-*): Likewise.
24395 * config/i386/mwaitxintrin.h: New header.
24396 * config/i386/cpuid.h (bit_MWAITX): Define.
24397 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
24399 * config/i386/i386.opt (mwaitx): New.
24400 * config/i386/i386-builtin-types.def
24401 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
24402 * config/i386/i386-c.c: Define __MWAITX__ if needed.
24403 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
24405 (ix86_option_override_internal): Handle new option.
24406 (processor_alias_table): Added PTA_MWAITX.
24407 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
24408 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
24409 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
24410 IX86_BUILTIN_MONITORX built-ins.
24411 * config/i386/i386.h (TARGET_MWAITX): New.
24412 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
24414 (mwaitx): New pattern.
24415 (monitorx_<mode>): New pattern.
24416 * config/i386/x86intrin.h: Include mwaitxintrin.h.
24417 * doc/extend.texi: Document monitorx and mwaitx builtins.
24418 * doc/invoke.texi: Document -mmwaitx option.
24420 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
24422 * emit-rtl.c (need_atomic_barrier_p): Mask model with
24423 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
24425 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
24427 * dbxout.c (xcoff_debug_hooks): Provide a function for
24428 register_main_translation_unit hook.
24430 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
24432 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
24433 variants cases from switch.
24434 (rs6000_post_atomic_barrier): Same.
24435 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
24436 (rs6000_expand_atomic_exchange): Same.
24437 (rs6000_expand_atomic_op): Same.
24438 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
24439 SYNC variants cases from switch.
24440 (atomic_load): Same.
24441 (atomic_store): Same.
24443 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
24445 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
24446 CONST_INT for goto.
24448 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
24451 * dwarf2out.c (check_die): Check for common duplicate attributes.
24452 (add_location_or_const_value_attribute): Do not add duplicate
24454 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
24456 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
24457 (gen_type_die_with_usage): Call check_die.
24458 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
24460 2015-06-11 Jason Merrill <jason@redhat.com>
24462 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
24465 2015-06-11 Marek Polacek <polacek@redhat.com>
24467 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
24469 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
24472 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
24473 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
24474 (*addx_extend_sp32): Fix pasto.
24475 (*subx_extend): Rename into...
24476 (*subx_extend_sp32): ...this.
24477 (*adddi3_extend_sp32): Add earlyclobber.
24478 (*subdi3_insn_sp32): Likewise.
24479 (*subdi3_extend_sp32): Likewise.
24480 (*and_not_di_sp32): Likewise.
24481 (*or_not_di_sp32): Likewise.
24482 (*xor_not_di_sp32): Likewise.
24483 (*negdi2_sp32): Likewise.
24484 (*one_cmpldi2_sp32): Likewise.
24486 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
24488 * debug.h (struct gcc_debug_hooks): Add a
24489 register_main_translation_unit hook.
24490 * debug.c (do_nothing_debug_hooks): Provide a function for this
24492 * dbxout.c (dbx_debug_hooks): Likewise.
24493 * sdbout.c (sdb_debug_hooks): Likewise.
24494 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
24495 * dwarf2out.c (main_translation_unit): New global variable.
24496 (dwarf2out_register_main_translation_unit): New function
24497 implementing the new hook.
24498 (dwarf2_debug_hooks): Assign
24499 dwarf2out_register_main_translation_unit to this new hook.
24500 (dwarf2out_init): Associate any main translation unit to
24503 2015-06-11 Marek Polacek <polacek@redhat.com>
24505 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
24507 2015-06-11 Marek Polacek <polacek@redhat.com>
24509 * match.pd: Use single_use throughout.
24511 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24513 * config/arm/arm.c (arm_option_params_internal): When optimising
24514 for speed set max_insns_skipped when arm_restrict_it.
24516 2015-06-11 Christian Bruel <christian.bruel@st.com>
24519 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
24521 (arm_cpu_builtins): New function.
24522 (arm_pragma_target_parse): Call arm_cpu_builtins.
24523 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
24524 (arm_register_target_pragmas): Likewise.
24525 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
24526 Call arm_register_target_pragmas.
24527 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
24528 (arm_pragma_target_parse): Likewise.
24530 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
24532 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
24533 of the second operand.
24535 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
24538 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
24539 to prepare mask operand for AVX512 modes.
24541 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
24544 * doc/md.texi (Machine Constraints): Document that on the PowerPC
24545 if you use a constraint that targets a VSX register, you must use
24546 %x<n> in the template.
24548 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
24550 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
24551 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
24552 (define_insn "trap"): New definition.
24554 2015-06-10 Richard Biener <rguenther@suse.de>
24556 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
24558 (vect_supported_load_permutation_p): ... here. Handle
24559 supportable permutations in reductions.
24560 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
24561 for vectorizing strided group loads.
24563 2015-06-10 Jakub Jelinek <jakub@redhat.com>
24566 * config/i386/i386.c (ix86_split_long_move): For collisions
24567 involving direct tls segment refs, move the UNSPEC_TP possibly
24568 wrapped in ZERO_EXTEND out of the address for lea, to each of
24571 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24573 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
24574 dmb sy. Adjust tabs.
24576 2015-06-10 Tom de Vries <tom@codesourcery.com>
24578 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
24580 2015-06-10 Martin Liska <mliska@suse.cz>
24583 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
24584 all enum values in mem_alloc_origin.
24585 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
24587 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
24588 * bitmap.c (bitmap_register): Likewise.
24589 (dump_bitmap_statistics): Likewise.
24590 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
24591 (ggc_record_overhead): Likewise.
24592 * hash-map.h: Likewise.
24593 * hash-set.h: Likewise.
24594 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
24595 * hash-table.h: Likewise.
24596 * vec.c (vec_prefix::register_overhead): Likewise.
24597 (vec_prefix::release_overhead): Likewise.
24598 (dump_vec_loc_statistics): Likewise.
24600 2015-06-09 Christian Bruel <christian.bruel@st.com>
24603 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
24604 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
24605 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
24606 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
24607 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
24608 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
24609 (arm_valid_target_attribute_p): Likewise.
24610 (arm_set_current_function, arm_can_inline_p): Likewise.
24611 (arm_valid_target_attribute_rec): Likewise.
24612 (arm_previous_fndecl): New variable.
24613 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
24614 (TARGET_CAN_INLINE_P): Define.
24615 (arm_asm_trampoline_template): Emit mode.
24616 (arm_file_start): Don't set unified syntax.
24617 (arm_declare_function_name): Set unified syntax and mode.
24618 (arm_option_override): Init target_option_default_node.
24619 and target_option_current_node.
24620 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
24621 (*call_symbol): Likewise.
24622 * doc/extend.texi: Document ARM/Thumb target attribute.
24623 * doc/invoke.texi: Likewise.
24625 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
24628 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
24629 PR rtl-optimization/64164
24630 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
24631 * tree-ssa-copyrename.c: Removed.
24632 * opts.c (default_options_table): Drop -ftree-copyrename. Add
24633 -ftree-coalesce-vars.
24634 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
24635 * common.opt (ftree-copyrename): Ignore.
24636 (ftree-coalesce-inlined-vars): Likewise.
24637 * doc/invoke.texi: Remove the ignored options above.
24638 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
24639 * tree-ssa-coalesce.h: ... here.
24640 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
24641 headers required by it.
24642 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
24643 across variables when flag_tree_coalesce_vars. Check register
24644 use and promoted modes to allow coalescing. Moved to
24645 tree-ssa-coalesce.c.
24646 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
24647 with its member functions to tree-ssa-coalesce.c.
24648 (var_map_base_init): Likewise. Renamed to
24649 compute_samebase_partition_bases.
24650 (partition_view_normal): Drop want_bases parameter.
24651 (partition_view_bitmap): Likewise.
24652 * tree-ssa-live.h: Adjust declarations.
24653 * tree-ssa-coalesce.c: Include explow.h.
24654 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
24655 default defs at the entry point.
24656 (dump_part_var_map): New.
24657 (compute_optimized_partition_bases): New, called by...
24658 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
24659 of compute_samebase_partition_bases. Adjust.
24660 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
24661 * cfgexpand.c (leader_merge): New.
24662 (get_rtl_for_parm_ssa_default_def): New.
24663 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
24664 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
24665 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
24666 redundant MEM attr setting.
24667 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
24669 (expand_one_stack_var): ... this. New wrapper to check and
24670 skip already expanded SSA partitions.
24671 (record_alignment_for_reg_var): New, factored out of...
24672 (expand_one_var): ... this.
24673 (expand_one_ssa_partition): New.
24674 (adjust_one_expanded_partition_var): New.
24675 (expand_one_register_var): Check and skip already expanded SSA
24677 (expand_used_vars): Don't create DECLs for anonymous SSA
24678 names. Expand all SSA partitions, then adjust all SSA names.
24679 (pass::execute): Replace the loops that set
24680 SA.partition_to_pseudo from partition leaders and cleared
24681 DECL_RTL for multi-location variables, and that which used to
24682 rename vars and set attrs, with one that clears DECL_RTL and
24683 checks that PARMs and RESULTs default_defs match DECL_RTL.
24684 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
24685 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
24686 * explow.c (promote_ssa_mode): New.
24687 * explow.h (promote_ssa_mode): Declare.
24688 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
24689 * function.c: Include cfgexpand.h.
24690 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
24691 (use_register_for_parm_decl): Wrapper for the above to
24692 special-case the result_ptr.
24693 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
24694 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
24695 multiple locations.
24696 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
24697 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
24698 (assign_parm_setup_block): Prefer SSA-assigned location.
24699 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
24700 if stack_parm is NULL.
24701 (assign_parm_setup_stack): Prefer SSA-assigned location.
24702 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
24703 rtl before testing for pointer bounds. Special-case result_ptr.
24704 (expand_function_start): Maybe reset DECL_RTL of result.
24705 Prefer SSA-assigned location for result and static chain.
24706 Factor out DECL_RESULT and SET_DECL_RTL.
24707 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
24708 anonymous SSA names. Use promote_ssa_mode.
24709 (get_temp_reg): Likewise.
24710 (remove_ssa_form): Adjust.
24711 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
24712 and get its reg_usage for reg invalidation.
24713 (compute_bb_dataflow): Pass it insn.
24714 (emit_notes_in_bb): Likewise.
24715 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
24716 fail assert on conversion between unsigned types.
24718 2015-06-09 Tom de Vries <tom@codesourcery.com>
24720 PR tree-optimization/65460
24721 * omp-low.c (expand_omp_target): Set parallelized_function on
24722 cgraph_node for child_fn.
24724 2015-06-09 Tom de Vries <tom@codesourcery.com>
24726 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
24727 parallelized_function before add_new_function.
24729 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
24731 * gcc-plugin.h: Move decls to plugin.h and include it.
24732 * plugin.h: Relocate decls from gcc-plugin.h
24733 * ggc-page.c: Include required header files.
24734 * passes.c: Likewise.
24735 * cgraphunit.c: Likewise.
24737 2015-06-09 Tom de Vries <tom@codesourcery.com>
24739 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
24741 2015-06-09 Jason Merrill <jason@redhat.com>
24744 * toplev.c (check_global_declaration): Don't warn about a clone.
24746 2015-06-09 Marek Polacek <polacek@redhat.com>
24748 PR tree-optimization/66299
24749 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
24750 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
24753 2015-06-09 Richard Biener <rguenther@suse.de>
24755 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
24756 (vect_analyze_slp_instance): Instead do not falsely drop
24759 2015-06-09 Richard Biener <rguenther@suse.de>
24761 PR middle-end/66423
24762 * match.pd: Handle A % (unsigned)(1 << B).
24764 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
24766 * varasm.c (output_object_block_htab): Remove.
24767 (output_object_block_compare): New.
24768 (output_object_blocks): Sort named object_blocks before outputting
24771 2015-06-09 Richard Biener <rguenther@suse.de>
24773 PR tree-optimization/66419
24774 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
24775 consider GROUP_GAP when detecting a perfect subchain.
24777 2015-06-09 Nick Clifton <nickc@redhat.com>
24779 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
24780 place read only data in the .frodata section.
24782 2015-06-09 Shiva Chen <shiva0217@gmail.com>
24784 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
24785 (atomic_store<mode>): Likewise.
24787 2015-06-09 Richard Biener <rguenther@suse.de>
24789 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
24791 2015-06-09 Richard Biener <rguenther@suse.de>
24793 PR middle-end/66413
24794 * tree-inline.c (insert_init_debug_bind): Unshare value.
24796 2015-06-09 Richard Biener <rguenther@suse.de>
24798 PR tree-optimization/66396
24799 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
24800 Rename virtual operands.
24802 2015-06-09 Tom de Vries <tom@codesourcery.com>
24804 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
24805 always return false.
24807 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
24809 PR rtl-optimization/64164
24810 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
24811 * tree-ssa-copyrename.c: Removed.
24812 * opts.c (default_options_table): Drop -ftree-copyrename. Add
24813 -ftree-coalesce-vars.
24814 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
24815 * common.opt (ftree-copyrename): Ignore.
24816 (ftree-coalesce-inlined-vars): Likewise.
24817 * doc/invoke.texi: Remove the ignored options above.
24818 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
24819 * tree-ssa-coalesce.h: ... here.
24820 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
24821 headers required by it.
24822 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
24823 across variables when flag_tree_coalesce_vars. Check register
24824 use and promoted modes to allow coalescing. Moved to
24825 tree-ssa-coalesce.c.
24826 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
24827 with its member functions to tree-ssa-coalesce.c.
24828 (var_map_base_init): Likewise. Renamed to
24829 compute_samebase_partition_bases.
24830 (partition_view_normal): Drop want_bases parameter.
24831 (partition_view_bitmap): Likewise.
24832 * tree-ssa-live.h: Adjust declarations.
24833 * tree-ssa-coalesce.c: Include explow.h.
24834 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
24835 default defs at the entry point.
24836 (dump_part_var_map): New.
24837 (compute_optimized_partition_bases): New, called by...
24838 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
24839 of compute_samebase_partition_bases. Adjust.
24840 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
24841 * cfgexpand.c (leader_merge): New.
24842 (get_rtl_for_parm_ssa_default_def): New.
24843 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
24844 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
24845 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
24846 redundant MEM attr setting.
24847 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
24849 (expand_one_stack_var): ... this. New wrapper to check and
24850 skip already expanded SSA partitions.
24851 (record_alignment_for_reg_var): New, factored out of...
24852 (expand_one_var): ... this.
24853 (expand_one_ssa_partition): New.
24854 (adjust_one_expanded_partition_var): New.
24855 (expand_one_register_var): Check and skip already expanded SSA
24857 (expand_used_vars): Don't create DECLs for anonymous SSA
24858 names. Expand all SSA partitions, then adjust all SSA names.
24859 (pass::execute): Replace the loops that set
24860 SA.partition_to_pseudo from partition leaders and cleared
24861 DECL_RTL for multi-location variables, and that which used to
24862 rename vars and set attrs, with one that clears DECL_RTL and
24863 checks that PARMs and RESULTs default_defs match DECL_RTL.
24864 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
24865 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
24866 * explow.c (promote_ssa_mode): New.
24867 * explow.h (promote_ssa_mode): Declare.
24868 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
24869 * function.c: Include cfgexpand.h.
24870 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
24871 (use_register_for_parm_decl): Wrapper for the above to
24872 special-case the result_ptr.
24873 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
24874 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
24875 multiple locations.
24876 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
24877 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
24878 (assign_parm_setup_block): Prefer SSA-assigned location.
24879 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
24880 if stack_parm is NULL.
24881 (assign_parm_setup_stack): Prefer SSA-assigned location.
24882 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
24883 rtl before testing for pointer bounds. Special-case result_ptr.
24884 (expand_function_start): Maybe reset DECL_RTL of result.
24885 Prefer SSA-assigned location for result and static chain.
24886 Factor out DECL_RESULT and SET_DECL_RTL.
24887 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
24888 anonymous SSA names. Use promote_ssa_mode.
24889 (get_temp_reg): Likewise.
24890 (remove_ssa_form): Adjust.
24891 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
24892 and get its reg_usage for reg invalidation.
24893 (compute_bb_dataflow): Pass it insn.
24894 (emit_notes_in_bb): Likewise.
24895 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
24896 fail assert on conversion between unsigned types.
24898 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
24901 * tree-inline.c (reset_debug_binding): New.
24902 (reset_debug_bindings): Likewise.
24903 (expand_call_inline): Call it.
24905 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
24907 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
24910 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
24912 * lto-streamer-out.c (lto_output_location): Stream
24913 reserved locations correctly.
24914 * lto-streamer-in.c (lto_output_location): Likewise.
24916 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
24918 * coretypes.h: Include hash-table.h and hash-set.h for host files.
24919 * ggc.h: Don't include statistics.h>
24920 * hash-map.h: Remove all includes.
24921 * hash-set.h: Likewise.
24922 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
24923 the include list. Remove <new>.
24924 * inchash.h: Remove all includes.
24925 * mem-stats.h: Likewise.
24926 * vec.h: No special processing for generators or ggc.
24927 * alias.c : Adjust include files.
24928 * alloc-pool.c : Likewise.
24929 * alloc-pool.h : Likewise.
24930 * asan.c : Likewise.
24931 * attribs.c : Likewise.
24932 * auto-inc-dec.c : Likewise.
24933 * auto-profile.c : Likewise.
24934 * bb-reorder.c : Likewise.
24935 * bitmap.c : Likewise.
24936 * bitmap.h : Likewise.
24937 * bt-load.c : Likewise.
24938 * builtins.c : Likewise.
24939 * caller-save.c : Likewise.
24940 * calls.c : Likewise.
24941 * ccmp.c : Likewise.
24942 * cfg.c : Likewise.
24943 * cfganal.c : Likewise.
24944 * cfgbuild.c : Likewise.
24945 * cfgcleanup.c : Likewise.
24946 * cfgexpand.c : Likewise.
24947 * cfghooks.c : Likewise.
24948 * cfgloop.c : Likewise.
24949 * cfgloop.h : Likewise.
24950 * cfgloopanal.c : Likewise.
24951 * cfgloopmanip.c : Likewise.
24952 * cfgrtl.c : Likewise.
24953 * cgraph.c : Likewise.
24954 * cgraphbuild.c : Likewise.
24955 * cgraphclones.c : Likewise.
24956 * cgraphunit.c : Likewise.
24957 * cilk-common.c : Likewise.
24958 * combine-stack-adj.c : Likewise.
24959 * combine.c : Likewise.
24960 * compare-elim.c : Likewise.
24961 * context.c : Likewise.
24962 * convert.c : Likewise.
24963 * coverage.c : Likewise.
24964 * cppbuiltin.c : Likewise.
24965 * cprop.c : Likewise.
24966 * cse.c : Likewise.
24967 * cselib.c : Likewise.
24968 * data-streamer-in.c : Likewise.
24969 * data-streamer-out.c : Likewise.
24970 * data-streamer.c : Likewise.
24971 * data-streamer.h : Likewise.
24972 * dbxout.c : Likewise.
24973 * dce.c : Likewise.
24974 * ddg.c : Likewise.
24975 * debug.c : Likewise.
24976 * df-core.c : Likewise.
24977 * df-problems.c : Likewise.
24978 * df-scan.c : Likewise.
24980 * dfp.c : Likewise.
24981 * dojump.c : Likewise.
24982 * dominance.c : Likewise.
24983 * domwalk.c : Likewise.
24984 * double-int.c : Likewise.
24985 * dse.c : Likewise.
24986 * dumpfile.c : Likewise.
24987 * dwarf2asm.c : Likewise.
24988 * dwarf2cfi.c : Likewise.
24989 * dwarf2out.c : Likewise.
24990 * emit-rtl.c : Likewise.
24991 * et-forest.c : Likewise.
24992 * except.c : Likewise.
24993 * except.h : Likewise.
24994 * explow.c : Likewise.
24995 * expmed.c : Likewise.
24996 * expr.c : Likewise.
24997 * final.c : Likewise.
24998 * fixed-value.c : Likewise.
24999 * fold-const.c : Likewise.
25000 * function.c : Likewise.
25001 * fwprop.c : Likewise.
25002 * gcc-plugin.h : Likewise.
25003 * gcc.c : Likewise.
25004 * gcse-common.c : Likewise.
25005 * gcse.c : Likewise.
25006 * genattrtab.c : Likewise.
25007 * genautomata.c : Likewise.
25008 * genconditions.c : Likewise.
25009 * genemit.c : Likewise.
25010 * generic-match-head.c : Likewise.
25011 * genextract.c : Likewise.
25012 * gengtype-state.c : Likewise.
25013 * gengtype.c : Likewise.
25014 * genhooks.c : Likewise.
25015 * genmatch.c : Likewise.
25016 * genmodes.c : Likewise.
25017 * genrecog.c : Likewise.
25018 * gensupport.c : Likewise.
25019 * ggc-common.c : Likewise.
25020 * ggc-internal.h : Likewise.
25021 * ggc-none.c : Likewise.
25022 * ggc-page.c : Likewise.
25023 * gimple-builder.c : Likewise.
25024 * gimple-expr.c : Likewise.
25025 * gimple-fold.c : Likewise.
25026 * gimple-iterator.c : Likewise.
25027 * gimple-low.c : Likewise.
25028 * gimple-match-head.c : Likewise.
25029 * gimple-pretty-print.c : Likewise.
25030 * gimple-ssa-isolate-paths.c : Likewise.
25031 * gimple-ssa-strength-reduction.c : Likewise.
25032 * gimple-ssa.h : Likewise.
25033 * gimple-streamer-in.c : Likewise.
25034 * gimple-streamer-out.c : Likewise.
25035 * gimple-streamer.h : Likewise.
25036 * gimple-walk.c : Likewise.
25037 * gimple.c : Likewise.
25038 * gimplify-me.c : Likewise.
25039 * gimplify.c : Likewise.
25040 * godump.c : Likewise.
25041 * graph.c : Likewise.
25042 * graphds.c : Likewise.
25043 * graphite-blocking.c : Likewise.
25044 * graphite-dependences.c : Likewise.
25045 * graphite-interchange.c : Likewise.
25046 * graphite-isl-ast-to-gimple.c : Likewise.
25047 * graphite-optimize-isl.c : Likewise.
25048 * graphite-poly.c : Likewise.
25049 * graphite-scop-detection.c : Likewise.
25050 * graphite-sese-to-poly.c : Likewise.
25051 * graphite.c : Likewise.
25052 * haifa-sched.c : Likewise.
25053 * hard-reg-set.h : Likewise.
25054 * hw-doloop.c : Likewise.
25055 * ifcvt.c : Likewise.
25056 * inchash.c : Likewise.
25057 * incpath.c : Likewise.
25058 * init-regs.c : Likewise.
25059 * input.c : Likewise.
25060 * internal-fn.c : Likewise.
25061 * ipa-chkp.c : Likewise.
25062 * ipa-comdats.c : Likewise.
25063 * ipa-cp.c : Likewise.
25064 * ipa-devirt.c : Likewise.
25065 * ipa-icf-gimple.c : Likewise.
25066 * ipa-icf.c : Likewise.
25067 * ipa-inline-analysis.c : Likewise.
25068 * ipa-inline-transform.c : Likewise.
25069 * ipa-inline.c : Likewise.
25070 * ipa-polymorphic-call.c : Likewise.
25071 * ipa-profile.c : Likewise.
25072 * ipa-prop.c : Likewise.
25073 * ipa-pure-const.c : Likewise.
25074 * ipa-ref.c : Likewise.
25075 * ipa-reference.c : Likewise.
25076 * ipa-split.c : Likewise.
25077 * ipa-utils.c : Likewise.
25078 * ipa-visibility.c : Likewise.
25079 * ipa.c : Likewise.
25080 * ira-build.c : Likewise.
25081 * ira-color.c : Likewise.
25082 * ira-conflicts.c : Likewise.
25083 * ira-costs.c : Likewise.
25084 * ira-emit.c : Likewise.
25085 * ira-lives.c : Likewise.
25086 * ira.c : Likewise.
25087 * jump.c : Likewise.
25088 * langhooks.c : Likewise.
25089 * lcm.c : Likewise.
25090 * libfuncs.h : Likewise.
25091 * lists.c : Likewise.
25092 * loop-doloop.c : Likewise.
25093 * loop-init.c : Likewise.
25094 * loop-invariant.c : Likewise.
25095 * loop-iv.c : Likewise.
25096 * loop-unroll.c : Likewise.
25097 * lower-subreg.c : Likewise.
25098 * lra-assigns.c : Likewise.
25099 * lra-coalesce.c : Likewise.
25100 * lra-constraints.c : Likewise.
25101 * lra-eliminations.c : Likewise.
25102 * lra-lives.c : Likewise.
25103 * lra-remat.c : Likewise.
25104 * lra-spills.c : Likewise.
25105 * lra.c : Likewise.
25106 * lto-cgraph.c : Likewise.
25107 * lto-compress.c : Likewise.
25108 * lto-opts.c : Likewise.
25109 * lto-section-in.c : Likewise.
25110 * lto-section-out.c : Likewise.
25111 * lto-streamer-in.c : Likewise.
25112 * lto-streamer-out.c : Likewise.
25113 * lto-streamer.c : Likewise.
25114 * lto-streamer.h : Likewise.
25115 * mcf.c : Likewise.
25116 * mode-switching.c : Likewise.
25117 * modulo-sched.c : Likewise.
25118 * omega.c : Likewise.
25119 * omp-low.c : Likewise.
25120 * optabs.c : Likewise.
25121 * opts-global.c : Likewise.
25122 * opts.h : Likewise.
25123 * passes.c : Likewise.
25124 * plugin.c : Likewise.
25125 * postreload-gcse.c : Likewise.
25126 * postreload.c : Likewise.
25127 * predict.c : Likewise.
25128 * print-rtl.c : Likewise.
25129 * print-tree.c : Likewise.
25130 * profile.c : Likewise.
25131 * read-md.c : Likewise.
25132 * read-md.h : Likewise.
25133 * read-rtl.c : Likewise.
25134 * real.c : Likewise.
25135 * realmpfr.c : Likewise.
25136 * recog.c : Likewise.
25137 * ree.c : Likewise.
25138 * reg-stack.c : Likewise.
25139 * regcprop.c : Likewise.
25140 * reginfo.c : Likewise.
25141 * regrename.c : Likewise.
25142 * regstat.c : Likewise.
25143 * reload.c : Likewise.
25144 * reload1.c : Likewise.
25145 * reorg.c : Likewise.
25146 * resource.c : Likewise.
25147 * rtl-chkp.c : Likewise.
25148 * rtl.c : Likewise.
25149 * rtl.h : Likewise.
25150 * rtlanal.c : Likewise.
25151 * rtlhash.c : Likewise.
25152 * rtlhash.h : Likewise.
25153 * rtlhooks.c : Likewise.
25154 * sanopt.c : Likewise.
25155 * sched-deps.c : Likewise.
25156 * sched-ebb.c : Likewise.
25157 * sched-rgn.c : Likewise.
25158 * sched-vis.c : Likewise.
25159 * sdbout.c : Likewise.
25160 * sel-sched-dump.c : Likewise.
25161 * sel-sched-ir.c : Likewise.
25162 * sel-sched-ir.h : Likewise.
25163 * sel-sched.c : Likewise.
25164 * sese.c : Likewise.
25165 * shrink-wrap.c : Likewise.
25166 * shrink-wrap.h : Likewise.
25167 * simplify-rtx.c : Likewise.
25168 * stack-ptr-mod.c : Likewise.
25169 * statistics.c : Likewise.
25170 * stmt.c : Likewise.
25171 * stor-layout.c : Likewise.
25172 * store-motion.c : Likewise.
25173 * stringpool.c : Likewise.
25174 * symtab.c : Likewise.
25175 * target-globals.c : Likewise.
25176 * targhooks.c : Likewise.
25177 * tlink.c : Likewise.
25178 * toplev.c : Likewise.
25179 * tracer.c : Likewise.
25180 * trans-mem.c : Likewise.
25181 * tree-affine.c : Likewise.
25182 * tree-affine.h : Likewise.
25183 * tree-browser.c : Likewise.
25184 * tree-call-cdce.c : Likewise.
25185 * tree-cfg.c : Likewise.
25186 * tree-cfgcleanup.c : Likewise.
25187 * tree-chkp-opt.c : Likewise.
25188 * tree-chkp.c : Likewise.
25189 * tree-chrec.c : Likewise.
25190 * tree-complex.c : Likewise.
25191 * tree-data-ref.c : Likewise.
25192 * tree-dfa.c : Likewise.
25193 * tree-diagnostic.c : Likewise.
25194 * tree-dump.c : Likewise.
25195 * tree-eh.c : Likewise.
25196 * tree-eh.h : Likewise.
25197 * tree-emutls.c : Likewise.
25198 * tree-hasher.h : Likewise.
25199 * tree-if-conv.c : Likewise.
25200 * tree-inline.c : Likewise.
25201 * tree-inline.h : Likewise.
25202 * tree-into-ssa.c : Likewise.
25203 * tree-iterator.c : Likewise.
25204 * tree-loop-distribution.c : Likewise.
25205 * tree-nested.c : Likewise.
25206 * tree-nrv.c : Likewise.
25207 * tree-object-size.c : Likewise.
25208 * tree-outof-ssa.c : Likewise.
25209 * tree-parloops.c : Likewise.
25210 * tree-phinodes.c : Likewise.
25211 * tree-predcom.c : Likewise.
25212 * tree-pretty-print.c : Likewise.
25213 * tree-profile.c : Likewise.
25214 * tree-scalar-evolution.c : Likewise.
25215 * tree-sra.c : Likewise.
25216 * tree-ssa-address.c : Likewise.
25217 * tree-ssa-alias.c : Likewise.
25218 * tree-ssa-ccp.c : Likewise.
25219 * tree-ssa-coalesce.c : Likewise.
25220 * tree-ssa-copy.c : Likewise.
25221 * tree-ssa-copyrename.c : Likewise.
25222 * tree-ssa-dce.c : Likewise.
25223 * tree-ssa-dom.c : Likewise.
25224 * tree-ssa-dse.c : Likewise.
25225 * tree-ssa-forwprop.c : Likewise.
25226 * tree-ssa-ifcombine.c : Likewise.
25227 * tree-ssa-live.c : Likewise.
25228 * tree-ssa-loop-ch.c : Likewise.
25229 * tree-ssa-loop-im.c : Likewise.
25230 * tree-ssa-loop-ivcanon.c : Likewise.
25231 * tree-ssa-loop-ivopts.c : Likewise.
25232 * tree-ssa-loop-manip.c : Likewise.
25233 * tree-ssa-loop-niter.c : Likewise.
25234 * tree-ssa-loop-prefetch.c : Likewise.
25235 * tree-ssa-loop-unswitch.c : Likewise.
25236 * tree-ssa-loop.c : Likewise.
25237 * tree-ssa-math-opts.c : Likewise.
25238 * tree-ssa-operands.c : Likewise.
25239 * tree-ssa-phiopt.c : Likewise.
25240 * tree-ssa-phiprop.c : Likewise.
25241 * tree-ssa-pre.c : Likewise.
25242 * tree-ssa-propagate.c : Likewise.
25243 * tree-ssa-reassoc.c : Likewise.
25244 * tree-ssa-sccvn.c : Likewise.
25245 * tree-ssa-scopedtables.c : Likewise.
25246 * tree-ssa-sink.c : Likewise.
25247 * tree-ssa-strlen.c : Likewise.
25248 * tree-ssa-structalias.c : Likewise.
25249 * tree-ssa-tail-merge.c : Likewise.
25250 * tree-ssa-ter.c : Likewise.
25251 * tree-ssa-threadedge.c : Likewise.
25252 * tree-ssa-threadupdate.c : Likewise.
25253 * tree-ssa-uncprop.c : Likewise.
25254 * tree-ssa-uninit.c : Likewise.
25255 * tree-ssa.c : Likewise.
25256 * tree-ssanames.c : Likewise.
25257 * tree-stdarg.c : Likewise.
25258 * tree-streamer-in.c : Likewise.
25259 * tree-streamer-out.c : Likewise.
25260 * tree-streamer.c : Likewise.
25261 * tree-streamer.h : Likewise.
25262 * tree-switch-conversion.c : Likewise.
25263 * tree-tailcall.c : Likewise.
25264 * tree-vect-data-refs.c : Likewise.
25265 * tree-vect-generic.c : Likewise.
25266 * tree-vect-loop-manip.c : Likewise.
25267 * tree-vect-loop.c : Likewise.
25268 * tree-vect-patterns.c : Likewise.
25269 * tree-vect-slp.c : Likewise.
25270 * tree-vect-stmts.c : Likewise.
25271 * tree-vectorizer.c : Likewise.
25272 * tree-vectorizer.h : Likewise.
25273 * tree-vrp.c : Likewise.
25274 * tree.c : Likewise.
25275 * tsan.c : Likewise.
25276 * ubsan.c : Likewise.
25277 * valtrack.c : Likewise.
25278 * valtrack.h : Likewise.
25279 * value-prof.c : Likewise.
25280 * var-tracking.c : Likewise.
25281 * varasm.c : Likewise.
25282 * varpool.c : Likewise.
25284 * vmsdbgout.c : Likewise.
25285 * vtable-verify.c : Likewise.
25286 * vtable-verify.h : Likewise.
25287 * web.c : Likewise.
25288 * wide-int.cc : Likewise.
25289 * xcoffout.c : Likewise.
25290 * config/aarch64/aarch64-builtins.c : Likewise.
25291 * config/aarch64/aarch64.c : Likewise.
25292 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
25293 * config/alpha/alpha.c : Likewise.
25294 * config/arc/arc.c : Likewise.
25295 * config/arm/aarch-common.c : Likewise.
25296 * config/arm/arm-builtins.c : Likewise.
25297 * config/arm/arm-c.c : Likewise.
25298 * config/arm/arm.c : Likewise.
25299 * config/avr/avr-c.c : Likewise.
25300 * config/avr/avr-log.c : Likewise.
25301 * config/avr/avr.c : Likewise.
25302 * config/bfin/bfin.c : Likewise.
25303 * config/c6x/c6x.c : Likewise.
25304 * config/cr16/cr16.c : Likewise.
25305 * config/cris/cris.c : Likewise.
25306 * config/darwin-c.c : Likewise.
25307 * config/darwin.c : Likewise.
25308 * config/default-c.c : Likewise.
25309 * config/epiphany/epiphany.c : Likewise.
25310 * config/epiphany/mode-switch-use.c : Likewise.
25311 * config/epiphany/resolve-sw-modes.c : Likewise.
25312 * config/fr30/fr30.c : Likewise.
25313 * config/frv/frv.c : Likewise.
25314 * config/ft32/ft32.c : Likewise.
25315 * config/glibc-c.c : Likewise.
25316 * config/h8300/h8300.c : Likewise.
25317 * config/i386/i386-c.c : Likewise.
25318 * config/i386/i386.c : Likewise.
25319 * config/i386/msformat-c.c : Likewise.
25320 * config/i386/winnt-cxx.c : Likewise.
25321 * config/i386/winnt-stubs.c : Likewise.
25322 * config/i386/winnt.c : Likewise.
25323 * config/ia64/ia64-c.c : Likewise.
25324 * config/ia64/ia64.c : Likewise.
25325 * config/iq2000/iq2000.c : Likewise.
25326 * config/lm32/lm32.c : Likewise.
25327 * config/m32c/m32c-pragma.c : Likewise.
25328 * config/m32c/m32c.c : Likewise.
25329 * config/m32r/m32r.c : Likewise.
25330 * config/m68k/m68k.c : Likewise.
25331 * config/mcore/mcore.c : Likewise.
25332 * config/mep/mep-pragma.c : Likewise.
25333 * config/mep/mep.c : Likewise.
25334 * config/microblaze/microblaze-c.c : Likewise.
25335 * config/microblaze/microblaze.c : Likewise.
25336 * config/mips/mips.c : Likewise.
25337 * config/mmix/mmix.c : Likewise.
25338 * config/mn10300/mn10300.c : Likewise.
25339 * config/moxie/moxie.c : Likewise.
25340 * config/msp430/msp430-c.c : Likewise.
25341 * config/msp430/msp430.c : Likewise.
25342 * config/nds32/nds32-cost.c : Likewise.
25343 * config/nds32/nds32-fp-as-gp.c : Likewise.
25344 * config/nds32/nds32-intrinsic.c : Likewise.
25345 * config/nds32/nds32-isr.c : Likewise.
25346 * config/nds32/nds32-md-auxiliary.c : Likewise.
25347 * config/nds32/nds32-memory-manipulation.c : Likewise.
25348 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
25349 * config/nds32/nds32-predicates.c : Likewise.
25350 * config/nds32/nds32.c : Likewise.
25351 * config/nios2/nios2.c : Likewise.
25352 * config/nvptx/nvptx.c : Likewise.
25353 * config/pa/pa.c : Likewise.
25354 * config/pdp11/pdp11.c : Likewise.
25355 * config/rl78/rl78-c.c : Likewise.
25356 * config/rl78/rl78.c : Likewise.
25357 * config/rs6000/rs6000-c.c : Likewise.
25358 * config/rs6000/rs6000.c : Likewise.
25359 * config/rx/rx.c : Likewise.
25360 * config/s390/s390-c.c : Likewise.
25361 * config/s390/s390.c : Likewise.
25362 * config/sh/sh-c.c : Likewise.
25363 * config/sh/sh-mem.cc : Likewise.
25364 * config/sh/sh.c : Likewise.
25365 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
25366 * config/sh/sh_treg_combine.cc : Likewise.
25367 * config/sol2-c.c : Likewise.
25368 * config/sol2-cxx.c : Likewise.
25369 * config/sol2-stubs.c : Likewise.
25370 * config/sol2.c : Likewise.
25371 * config/sparc/sparc-c.c : Likewise.
25372 * config/sparc/sparc.c : Likewise.
25373 * config/spu/spu-c.c : Likewise.
25374 * config/spu/spu.c : Likewise.
25375 * config/stormy16/stormy16.c : Likewise.
25376 * config/tilegx/mul-tables.c : Likewise.
25377 * config/tilegx/tilegx-c.c : Likewise.
25378 * config/tilegx/tilegx.c : Likewise.
25379 * config/tilepro/mul-tables.c : Likewise.
25380 * config/tilepro/tilepro-c.c : Likewise.
25381 * config/tilepro/tilepro.c : Likewise.
25382 * config/v850/v850-c.c : Likewise.
25383 * config/v850/v850.c : Likewise.
25384 * config/vax/vax.c : Likewise.
25385 * config/visium/visium.c : Likewise.
25386 * config/vms/vms-c.c : Likewise.
25387 * config/vms/vms.c : Likewise.
25388 * config/vxworks.c : Likewise.
25389 * config/winnt-c.c : Likewise.
25390 * config/xtensa/xtensa.c : Likewise.
25392 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
25395 * ipa-utils.h (warn_types_mismatch): Update prototype.
25396 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
25398 (type_mismatch_p): New function.
25399 (warn_types_mismatch): Reorg to work better on non-C++ types.
25400 (odr_types_equivalent_p): Add loc1/loc2 parameters.
25401 (add_type_duplicate): Update.
25403 2015-06-08 Tom de Vries <tom@codesourcery.com>
25405 PR rtl-optimization/66444
25406 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
25409 2015-06-08 Richard Biener <rguenther@suse.de>
25411 PR tree-optimization/66422
25412 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
25413 block after inserted gcc_unreachable.
25415 2015-06-08 Nick Clifton <nickc@redhat.com>
25417 * config/rx/rx.c (rx_function_value): Do not promote vector types.
25418 (rx_promote_function_mode): Likewise.
25419 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
25421 2015-06-08 Jakub Jelinek <jakub@redhat.com>
25423 * genattrtab.c (insn_alternatives): Change type from int *
25425 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
25426 (get_attr_value): Change type of num_alt to uint64_t.
25427 (compute_alternative_mask): Change return type from
25428 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
25429 (make_alternative_compare, mk_attr_alt): Change argument type
25430 from int to uint64_t.
25431 (simplify_test_exp): Change type of i from int to uint64_t.
25432 Shift ((uint64_t) 1) instead of 1 up.
25433 (main): Adjust oballocvec first argument from int to uint64_t.
25434 Shift ((uint64_t) 1) instead of 1 up.
25436 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
25439 * gdbhooks.py: Import sys.
25440 (intptr): New function. Replace int(...) by intptr(...).
25442 2015-06-08 Richard Biener <rguenther@suse.de>
25444 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
25445 adjustment for gaps at the end of a SLP load group properly.
25446 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
25447 all permutations we can generate.
25448 (vect_transform_slp_perm_load): Use the correct group-size.
25450 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
25452 * genmatch.c (expr::gen_transform): For conditions, guess the type
25453 from the second operand.
25455 2015-06-08 Tom de Vries <tom@codesourcery.com>
25457 PR tree-optimization/66442
25458 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
25459 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
25460 if the loop latch is not a singleton. Use
25461 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
25463 2015-06-08 Marek Polacek <polacek@redhat.com>
25466 * toplev.c (check_global_declaration): Don't warn about artificial
25469 2015-06-08 Tom de Vries <tom@codesourcery.com>
25471 PR tree-optimization/66436
25472 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
25474 * gimplify.c: Add tree-dump.h include.
25475 (gimplify_function_tree): Dump function to gimple dump file.
25476 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
25479 2015-06-08 Tom de Vries <tom@codesourcery.com>
25481 PR tree-optimization/66435
25482 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
25485 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
25487 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
25488 of ptr_type_node to not be ptr_to_node.
25489 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
25490 TREE_TYPE of pointers.
25491 * gimple-expr.c (useless_type_conversion): Reorder the check for
25492 function pointers and TYPE_CANONICAL.
25494 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
25497 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
25498 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
25499 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
25501 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
25502 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
25503 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
25504 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
25505 and non iso if unix2003.
25507 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
25509 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
25511 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
25513 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
25514 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
25515 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
25516 except.c, final.c, function.c, gcse-common.c, genemit.c,
25517 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
25518 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
25519 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
25520 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
25523 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
25525 * combine.c (combine_split_insns): Remove cast.
25526 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
25527 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
25528 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
25529 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
25530 * genemit.c (gen_split): Change return type of generated functions to
25532 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
25533 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
25534 gen_peephole2_* functions.
25535 (print_subroutine, main): Likewise.
25536 * recog.c (peephole2_optimize): Remove cast.
25537 (peep2_next_insn): Promote return type to rtx_insn.
25538 * recog.h (peep2_next_insn): Fix prototype.
25539 * rtl.h (try_split, split_insns): Likewise.
25541 2015-06-06 DJ Delorie <dj@redhat.com>
25543 * config/msp430/msp430.c (msp430_asm_integer): Support addition
25544 and subtraction too.
25546 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
25549 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
25550 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
25551 instead of Snd. Disparage Sid/z alternative with '^'.
25553 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
25555 * dwarf2out.c: Remove deferred_locations*.
25556 (dwarf2_debug_hooks): Add early_finish hook.
25557 Remove global_decl hook.
25558 Add early_global_decl and late_global_decl hook.
25559 New global early_dwarf.
25560 New structure set_early_dwarf.
25561 (output_die): Indicate whether a DIE was generated early
25562 when generating assembly with -dA.
25563 (struct limbo_die_struct): Document created_for field.
25564 Remove file_table_last_lookup.
25565 (remove_AT): Return TRUE if successful.
25566 (remove_child_TAG): Clear die_parent.
25567 (reparent_child): New function abstracted from...
25568 (splice_child_die): ...here.
25569 (new_die): ICE if a DIE ends up in limbo too late.
25571 (defer_location): Remove.
25572 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
25573 (fill_variable_array_bounds): New.
25574 (decl_start_label): Call fill_variable_array_bounds.
25575 (gen_formal_parameter_die): Rewrite to reuse previously generated
25577 (gen_subprogram_die): Same.
25578 (gen_variable_die): Same.
25579 (gen_const_die): Same.
25580 (gen_label_die): Same.
25581 (gen_lexical_block_die): Same.
25582 (decl_will_get_specification_p): New.
25583 (local_function_static): New.
25584 (gen_struct_or_union_type_die): Fill in variable-length fields.
25585 (gen_typedef_die): Fill in variable-length typedefs.
25586 (gen_tagged_type_die): Gracefully return on error_mark_node.
25587 Handle re-entrancy.
25588 (gen_type_die_with_usage): Handle variable-length types.
25589 Remove duplicate code for ARRAY_TYPE case.
25590 (process_scope_var): Only process imported modules during early
25592 (dwarf2out_early_global_decl): New.
25593 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
25594 (dwarf2out_type_decl): Set early_dwarf while calling
25596 (dwarf2out_decl): Verify that we did not recreate a previously
25598 Do not return on DECL_EXTERNALs in VAR_DECLs.
25599 Abstract some code to local_function_static.
25600 (lookup_filename): Remove use of file_table_last_lookup.
25601 Gracefully exit on missing file_name.
25602 (dwarf2out_finish): Verify limbo list.
25603 Remove deferred_locations_list use.
25604 Move deferred_asm_name and limbo flushing to...
25605 (dwarf2out_early_finish): ...here. New.
25606 (dwarf2out_c_finalize): Remove set of deferred_location_list,
25607 deferred_asm_name, and file_table_last_lookup.
25608 * cgraph.h (referred_to_p): Add default argument.
25609 * cgraphunit.c (referred_to_p): Add and handle include_self
25611 (analyze_functions): Add first_time argument.
25612 Call check_global_declaration for all symbols.
25613 Call late_global_decl for nodes for moribund nodes.
25614 (finalize_compilation_unit): Add new argument to
25616 Call early_global_decl for functions.
25617 Call early_finish debug hook.
25618 * dbxout.c (dbxout_early_global_decl): New.
25619 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
25620 (dbx_debug_hooks): Add new hooks.
25621 (xcoff_debug_hooks): Same.
25622 * debug.c (do_nothing_debug_hooks): Add early_finish field.
25623 Add early and late debug hooks.
25624 Remove global_decl hook.
25625 * debug.h (struct gcc_debug_hooks): Add early_finish,
25626 early_global_decl, and late_global_decl fields.
25627 Remove global_decl field.
25628 Document gcc_debug_hooks.
25629 * gengtype.c (output_typename): Remove.
25630 * godump.c (go_early_global_decl): New.
25631 (go_late_global_decl): New.
25632 (go_global_decl): Remove.
25633 (dump_go_spec_init): Remove global_decl. Add
25634 {early,late}_global_decl.
25635 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
25636 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
25637 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
25638 (write_global_declarations): Remove.
25639 (global_decl_processing): New.
25640 * langhooks.h (struct lang_hooks_for_decls): Remove
25641 final_write_globals field.
25642 Add post_compilation_parsing_cleanups field.
25643 * passes.c (rest_of_decl_compilation): Call early_global_decl.
25644 * sdbout.c: Add early and late_global_decl hooks. Remove
25645 sdbout_global_decl hook.
25646 Add early_finish field for sdb_debug_hooks.
25647 (sdbout_global_decl): Remove.
25648 (sdbout_early_global_decl): New.
25649 (sdbout_late_global_decl): New.
25650 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
25651 * toplev.c (check_global_declaration): Rename from
25652 check_global_declaration_1.
25653 Adapt to use symtab infrastructure.
25654 (check_global_declarations): Remove.
25655 (emit_debug_global_declarations): Remove.
25656 (compile_file): Remove call to final_write_globals langhook.
25657 Run the actual compilation process.
25658 Perform any post compilation parser cleanups.
25659 Generate late debug info.
25660 * toplev.h (check_global_declaration): New.
25661 (check_global_declaration_1): Remove.
25662 (check_global_declarations): Remove.
25663 (write_global_declarations): Remove.
25664 (emit_debug_global_declarations): Remove.
25665 (global_decl_processing): New.
25666 * tree-core.h (struct tree_block): Add DIE field.
25667 * tree.h (BLOCK_DIE): New.
25668 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
25670 (vmsdbgout_early_global_decl): New.
25671 (vmsdbgout_late_global_decl): New.
25672 Add early_finish debug hook field to vmsdbg_debug_hooks.
25673 Remove vmsdbgout_decl to vmsdbgout_function_decl.
25674 Add early and late_global_decl debug hooks.
25676 2015-06-05 Julian Brown <julian@codesourcery.com>
25677 Sandra Loosemore <sandra@codesourcery.com>
25679 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
25680 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
25681 to print-sysroot-suffix.sh script.
25683 2015-06-05 Tom de Vries <tom@codesourcery.com>
25685 merge from gomp4 branch:
25686 2015-05-28 Tom de Vries <tom@codesourcery.com>
25688 PR tree-optimization/65443
25689 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
25690 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
25691 (try_transform_to_exit_first_loop_alt): New function.
25692 (transform_to_exit_first_loop): Use
25693 try_transform_to_exit_first_loop_alt.
25695 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
25697 * builtins.c (expand_builtin_atomic_compare_exchange): Call
25698 emit_cmp_and_jump_insns with the mode of target.
25700 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
25702 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
25704 2015-06-04 DJ Delorie <dj@redhat.com>
25706 * config/msp430/msp430.md (movsi_s): New. Special case for
25707 storing a 20-bit symbol into a 32-bit register.
25708 * config/msp430/msp430.c (msp430_subreg): Add support for it.
25709 * config/msp430/predicates.md (msp430_symbol_operand): New.
25711 2015-06-04 Sriraman Tallam <tmsriram@google.com>
25713 * c-family/c-common.c (noplt): New attribute.
25714 (handle_noplt_attribute): New handler.
25715 * calls.c (prepare_call_address): Check for noplt
25717 * config/i386/i386.c (ix86_expand_call): Check
25718 for noplt attribute.
25719 (ix86_nopic_noplt_attribute_p): New function.
25720 (ix86_output_call_insn): Output indirect call for non-pic
25722 * doc/extend.texi (noplt): Document new attribute.
25723 * doc/invoke.texi: Document new attribute.
25725 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
25727 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
25728 real.h, and fixed-value.h when included in host source files.
25729 * double-int.h: Remove redundant #includes listed above.
25730 * fixed-value.h: Likewise.
25731 * real.h: Likewise.
25732 * wide-int.h: Likewise.
25733 * inchash.h: Likewise.
25734 * rtl.h: Add some include files When included from a generator file.
25735 * target.h: Remove wide-int.h and insn-modes.h from the include list.
25736 * internal-fn.h: Don't include coretypes.h.
25737 * alias.c: Adjust includes for restructured coretypes.h.
25738 * asan.c: Likewise.
25739 * attribs.c: Likewise.
25740 * auto-inc-dec.c: Likewise.
25741 * auto-profile.c: Likewise.
25742 * bb-reorder.c: Likewise.
25743 * bt-load.c: Likewise.
25744 * builtins.c: Likewise.
25745 * caller-save.c: Likewise.
25746 * calls.c: Likewise.
25747 * ccmp.c: Likewise.
25749 * cfganal.c: Likewise.
25750 * cfgbuild.c: Likewise.
25751 * cfgcleanup.c: Likewise.
25752 * cfgexpand.c: Likewise.
25753 * cfghooks.c: Likewise.
25754 * cfgloop.c: Likewise.
25755 * cfgloop.h: Likewise.
25756 * cfgloopanal.c: Likewise.
25757 * cfgloopmanip.c: Likewise.
25758 * cfgrtl.c: Likewise.
25759 * cgraph.c: Likewise.
25760 * cgraphbuild.c: Likewise.
25761 * cgraphclones.c: Likewise.
25762 * cgraphunit.c: Likewise.
25763 * cilk-common.c: Likewise.
25764 * combine-stack-adj.c: Likewise.
25765 * combine.c: Likewise.
25766 * compare-elim.c: Likewise.
25767 * convert.c: Likewise.
25768 * coverage.c: Likewise.
25769 * cppbuiltin.c: Likewise.
25770 * cprop.c: Likewise.
25772 * cselib.c: Likewise.
25773 * data-streamer-in.c: Likewise.
25774 * data-streamer-out.c: Likewise.
25775 * data-streamer.c: Likewise.
25776 * dbxout.c: Likewise.
25779 * debug.c: Likewise.
25780 * df-core.c: Likewise.
25781 * df-problems.c: Likewise.
25782 * df-scan.c: Likewise.
25785 * dojump.c: Likewise.
25786 * dominance.c: Likewise.
25787 * domwalk.c: Likewise.
25788 * double-int.c: Likewise.
25790 * dumpfile.c: Likewise.
25791 * dwarf2asm.c: Likewise.
25792 * dwarf2cfi.c: Likewise.
25793 * dwarf2out.c: Likewise.
25794 * dwarf2out.h: Likewise.
25795 * emit-rtl.c: Likewise.
25796 * et-forest.c: Likewise.
25797 * except.c: Likewise.
25798 * explow.c: Likewise.
25799 * expmed.c: Likewise.
25800 * expr.c: Likewise.
25801 * final.c: Likewise.
25802 * fixed-value.c: Likewise.
25803 * fold-const.c: Likewise.
25804 * function.c: Likewise.
25805 * fwprop.c: Likewise.
25806 * gcc-plugin.h: Likewise.
25807 * gcse.c: Likewise.
25808 * generic-match-head.c: Likewise.
25809 * ggc-page.c: Likewise.
25810 * gimple-builder.c: Likewise.
25811 * gimple-expr.c: Likewise.
25812 * gimple-fold.c: Likewise.
25813 * gimple-iterator.c: Likewise.
25814 * gimple-low.c: Likewise.
25815 * gimple-match-head.c: Likewise.
25816 * gimple-pretty-print.c: Likewise.
25817 * gimple-ssa-isolate-paths.c: Likewise.
25818 * gimple-ssa-strength-reduction.c: Likewise.
25819 * gimple-streamer-in.c: Likewise.
25820 * gimple-streamer-out.c: Likewise.
25821 * gimple-streamer.h: Likewise.
25822 * gimple-walk.c: Likewise.
25823 * gimple.c: Likewise.
25824 * gimplify-me.c: Likewise.
25825 * gimplify.c: Likewise.
25826 * godump.c: Likewise.
25827 * graph.c: Likewise.
25828 * graphite-blocking.c: Likewise.
25829 * graphite-dependences.c: Likewise.
25830 * graphite-interchange.c: Likewise.
25831 * graphite-isl-ast-to-gimple.c: Likewise.
25832 * graphite-optimize-isl.c: Likewise.
25833 * graphite-poly.c: Likewise.
25834 * graphite-scop-detection.c: Likewise.
25835 * graphite-sese-to-poly.c: Likewise.
25836 * graphite.c: Likewise.
25837 * haifa-sched.c: Likewise.
25838 * hooks.h: Likewise.
25839 * hw-doloop.c: Likewise.
25840 * ifcvt.c: Likewise.
25841 * incpath.c: Likewise.
25842 * init-regs.c: Likewise.
25843 * internal-fn.c: Likewise.
25844 * ipa-chkp.c: Likewise.
25845 * ipa-comdats.c: Likewise.
25846 * ipa-cp.c: Likewise.
25847 * ipa-devirt.c: Likewise.
25848 * ipa-icf-gimple.c: Likewise.
25849 * ipa-icf.c: Likewise.
25850 * ipa-inline-analysis.c: Likewise.
25851 * ipa-inline-transform.c: Likewise.
25852 * ipa-inline.c: Likewise.
25853 * ipa-polymorphic-call.c: Likewise.
25854 * ipa-profile.c: Likewise.
25855 * ipa-prop.c: Likewise.
25856 * ipa-pure-const.c: Likewise.
25857 * ipa-ref.c: Likewise.
25858 * ipa-reference.c: Likewise.
25859 * ipa-split.c: Likewise.
25860 * ipa-utils.c: Likewise.
25861 * ipa-visibility.c: Likewise.
25863 * ira-build.c: Likewise.
25864 * ira-color.c: Likewise.
25865 * ira-conflicts.c: Likewise.
25866 * ira-costs.c: Likewise.
25867 * ira-emit.c: Likewise.
25868 * ira-lives.c: Likewise.
25870 * jump.c: Likewise.
25871 * langhooks.c: Likewise.
25873 * loop-doloop.c: Likewise.
25874 * loop-init.c: Likewise.
25875 * loop-invariant.c: Likewise.
25876 * loop-iv.c: Likewise.
25877 * loop-unroll.c: Likewise.
25878 * lower-subreg.c: Likewise.
25879 * lra-assigns.c: Likewise.
25880 * lra-coalesce.c: Likewise.
25881 * lra-constraints.c: Likewise.
25882 * lra-eliminations.c: Likewise.
25883 * lra-lives.c: Likewise.
25884 * lra-remat.c: Likewise.
25885 * lra-spills.c: Likewise.
25887 * lto-cgraph.c: Likewise.
25888 * lto-compress.c: Likewise.
25889 * lto-opts.c: Likewise.
25890 * lto-section-in.c: Likewise.
25891 * lto-section-out.c: Likewise.
25892 * lto-streamer-in.c: Likewise.
25893 * lto-streamer-out.c: Likewise.
25894 * lto-streamer.c: Likewise.
25896 * mode-switching.c: Likewise.
25897 * modulo-sched.c: Likewise.
25898 * omega.c: Likewise.
25899 * omp-low.c: Likewise.
25900 * optabs.c: Likewise.
25901 * opts-global.c: Likewise.
25902 * passes.c: Likewise.
25903 * plugin.c: Likewise.
25904 * postreload-gcse.c: Likewise.
25905 * postreload.c: Likewise.
25906 * predict.c: Likewise.
25907 * print-rtl.c: Likewise.
25908 * print-tree.c: Likewise.
25909 * profile.c: Likewise.
25910 * real.c: Likewise.
25911 * realmpfr.c: Likewise.
25912 * realmpfr.h: Likewise.
25913 * recog.c: Likewise.
25915 * reg-stack.c: Likewise.
25916 * regcprop.c: Likewise.
25917 * reginfo.c: Likewise.
25918 * regrename.c: Likewise.
25919 * regs.h: Likewise.
25920 * regstat.c: Likewise.
25921 * reload.c: Likewise.
25922 * reload1.c: Likewise.
25923 * reorg.c: Likewise.
25924 * resource.c: Likewise.
25925 * rtl-chkp.c: Likewise.
25926 * rtlanal.c: Likewise.
25927 * rtlhooks.c: Likewise.
25928 * sanopt.c: Likewise.
25929 * sched-deps.c: Likewise.
25930 * sched-ebb.c: Likewise.
25931 * sched-rgn.c: Likewise.
25932 * sched-vis.c: Likewise.
25933 * sdbout.c: Likewise.
25934 * sel-sched-dump.c: Likewise.
25935 * sel-sched-ir.c: Likewise.
25936 * sel-sched.c: Likewise.
25937 * sese.c: Likewise.
25938 * shrink-wrap.c: Likewise.
25939 * shrink-wrap.h: Likewise.
25940 * simplify-rtx.c: Likewise.
25941 * stack-ptr-mod.c: Likewise.
25942 * statistics.c: Likewise.
25943 * stmt.c: Likewise.
25944 * stor-layout.c: Likewise.
25945 * store-motion.c: Likewise.
25946 * stringpool.c: Likewise.
25947 * symtab.c: Likewise.
25948 * target-globals.c: Likewise.
25949 * targhooks.c: Likewise.
25950 * toplev.c: Likewise.
25951 * tracer.c: Likewise.
25952 * trans-mem.c: Likewise.
25953 * tree-affine.c: Likewise.
25954 * tree-affine.h: Likewise.
25955 * tree-browser.c: Likewise.
25956 * tree-call-cdce.c: Likewise.
25957 * tree-cfg.c: Likewise.
25958 * tree-cfgcleanup.c: Likewise.
25959 * tree-chkp-opt.c: Likewise.
25960 * tree-chkp.c: Likewise.
25961 * tree-chrec.c: Likewise.
25962 * tree-complex.c: Likewise.
25963 * tree-data-ref.c: Likewise.
25964 * tree-dfa.c: Likewise.
25965 * tree-diagnostic.c: Likewise.
25966 * tree-dump.c: Likewise.
25967 * tree-eh.c: Likewise.
25968 * tree-emutls.c: Likewise.
25969 * tree-if-conv.c: Likewise.
25970 * tree-inline.c: Likewise.
25971 * tree-into-ssa.c: Likewise.
25972 * tree-iterator.c: Likewise.
25973 * tree-loop-distribution.c: Likewise.
25974 * tree-nested.c: Likewise.
25975 * tree-nrv.c: Likewise.
25976 * tree-object-size.c: Likewise.
25977 * tree-outof-ssa.c: Likewise.
25978 * tree-parloops.c: Likewise.
25979 * tree-phinodes.c: Likewise.
25980 * tree-predcom.c: Likewise.
25981 * tree-pretty-print.c: Likewise.
25982 * tree-pretty-print.h: Likewise.
25983 * tree-profile.c: Likewise.
25984 * tree-scalar-evolution.c: Likewise.
25985 * tree-sra.c: Likewise.
25986 * tree-ssa-address.c: Likewise.
25987 * tree-ssa-alias.c: Likewise.
25988 * tree-ssa-ccp.c: Likewise.
25989 * tree-ssa-coalesce.c: Likewise.
25990 * tree-ssa-copy.c: Likewise.
25991 * tree-ssa-copyrename.c: Likewise.
25992 * tree-ssa-dce.c: Likewise.
25993 * tree-ssa-dom.c: Likewise.
25994 * tree-ssa-dse.c: Likewise.
25995 * tree-ssa-forwprop.c: Likewise.
25996 * tree-ssa-ifcombine.c: Likewise.
25997 * tree-ssa-live.c: Likewise.
25998 * tree-ssa-loop-ch.c: Likewise.
25999 * tree-ssa-loop-im.c: Likewise.
26000 * tree-ssa-loop-ivcanon.c: Likewise.
26001 * tree-ssa-loop-ivopts.c: Likewise.
26002 * tree-ssa-loop-manip.c: Likewise.
26003 * tree-ssa-loop-niter.c: Likewise.
26004 * tree-ssa-loop-prefetch.c: Likewise.
26005 * tree-ssa-loop-unswitch.c: Likewise.
26006 * tree-ssa-loop.c: Likewise.
26007 * tree-ssa-loop.h: Likewise.
26008 * tree-ssa-math-opts.c: Likewise.
26009 * tree-ssa-operands.c: Likewise.
26010 * tree-ssa-phiopt.c: Likewise.
26011 * tree-ssa-phiprop.c: Likewise.
26012 * tree-ssa-pre.c: Likewise.
26013 * tree-ssa-propagate.c: Likewise.
26014 * tree-ssa-reassoc.c: Likewise.
26015 * tree-ssa-sccvn.c: Likewise.
26016 * tree-ssa-scopedtables.c: Likewise.
26017 * tree-ssa-sink.c: Likewise.
26018 * tree-ssa-strlen.c: Likewise.
26019 * tree-ssa-structalias.c: Likewise.
26020 * tree-ssa-tail-merge.c: Likewise.
26021 * tree-ssa-ter.c: Likewise.
26022 * tree-ssa-threadedge.c: Likewise.
26023 * tree-ssa-threadupdate.c: Likewise.
26024 * tree-ssa-uncprop.c: Likewise.
26025 * tree-ssa-uninit.c: Likewise.
26026 * tree-ssa.c: Likewise.
26027 * tree-ssanames.c: Likewise.
26028 * tree-stdarg.c: Likewise.
26029 * tree-streamer-in.c: Likewise.
26030 * tree-streamer-out.c: Likewise.
26031 * tree-streamer.c: Likewise.
26032 * tree-switch-conversion.c: Likewise.
26033 * tree-tailcall.c: Likewise.
26034 * tree-vect-data-refs.c: Likewise.
26035 * tree-vect-generic.c: Likewise.
26036 * tree-vect-loop-manip.c: Likewise.
26037 * tree-vect-loop.c: Likewise.
26038 * tree-vect-patterns.c: Likewise.
26039 * tree-vect-slp.c: Likewise.
26040 * tree-vect-stmts.c: Likewise.
26041 * tree-vectorizer.c: Likewise.
26042 * tree-vrp.c: Likewise.
26043 * tree.c: Likewise.
26044 * tsan.c: Likewise.
26045 * ubsan.c: Likewise.
26046 * valtrack.c: Likewise.
26047 * value-prof.c: Likewise.
26048 * var-tracking.c: Likewise.
26049 * varasm.c: Likewise.
26050 * varpool.c: Likewise.
26051 * vmsdbgout.c: Likewise.
26052 * vtable-verify.c: Likewise.
26054 * wide-int-print.cc: Likewise.
26055 * wide-int-print.h: Likewise.
26056 * wide-int.cc: Likewise.
26057 * xcoffout.c: Likewise.
26058 * config/aarch64/aarch64-builtins.c: Likewise.
26059 * config/aarch64/aarch64.c: Likewise.
26060 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
26061 * config/alpha/alpha.c: Likewise.
26062 * config/arc/arc.c: Likewise.
26063 * config/arm/aarch-common.c: Likewise.
26064 * config/arm/arm-builtins.c: Likewise.
26065 * config/arm/arm-c.c: Likewise.
26066 * config/arm/arm.c: Likewise.
26067 * config/avr/avr-c.c: Likewise.
26068 * config/avr/avr-log.c: Likewise.
26069 * config/avr/avr.c: Likewise.
26070 * config/bfin/bfin.c: Likewise.
26071 * config/c6x/c6x.c: Likewise.
26072 * config/cr16/cr16.c: Likewise.
26073 * config/cris/cris.c: Likewise.
26074 * config/darwin-c.c: Likewise.
26075 * config/darwin.c: Likewise.
26076 * config/default-c.c: Likewise.
26077 * config/epiphany/epiphany.c: Likewise.
26078 * config/epiphany/mode-switch-use.c: Likewise.
26079 * config/epiphany/resolve-sw-modes.c: Likewise.
26080 * config/fr30/fr30.c: Likewise.
26081 * config/frv/frv.c: Likewise.
26082 * config/ft32/ft32.c: Likewise.
26083 * config/glibc-c.c: Likewise.
26084 * config/h8300/h8300.c: Likewise.
26085 * config/i386/i386-c.c: Likewise.
26086 * config/i386/i386.c: Likewise.
26087 * config/i386/msformat-c.c: Likewise.
26088 * config/i386/winnt-cxx.c: Likewise.
26089 * config/i386/winnt-stubs.c: Likewise.
26090 * config/i386/winnt.c: Likewise.
26091 * config/ia64/ia64-c.c: Likewise.
26092 * config/ia64/ia64.c: Likewise.
26093 * config/iq2000/iq2000.c: Likewise.
26094 * config/lm32/lm32.c: Likewise.
26095 * config/m32c/m32c-pragma.c: Likewise.
26096 * config/m32c/m32c.c: Likewise.
26097 * config/m32r/m32r.c: Likewise.
26098 * config/m68k/m68k.c: Likewise.
26099 * config/mcore/mcore.c: Likewise.
26100 * config/mep/mep-pragma.c: Likewise.
26101 * config/mep/mep.c: Likewise.
26102 * config/microblaze/microblaze-c.c: Likewise.
26103 * config/microblaze/microblaze.c: Likewise.
26104 * config/mips/mips.c: Likewise.
26105 * config/mmix/mmix.c: Likewise.
26106 * config/mn10300/mn10300.c: Likewise.
26107 * config/moxie/moxie.c: Likewise.
26108 * config/msp430/msp430-c.c: Likewise.
26109 * config/msp430/msp430.c: Likewise.
26110 * config/nds32/nds32-cost.c: Likewise.
26111 * config/nds32/nds32-fp-as-gp.c: Likewise.
26112 * config/nds32/nds32-intrinsic.c: Likewise.
26113 * config/nds32/nds32-isr.c: Likewise.
26114 * config/nds32/nds32-md-auxiliary.c: Likewise.
26115 * config/nds32/nds32-memory-manipulation.c: Likewise.
26116 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
26117 * config/nds32/nds32-predicates.c: Likewise.
26118 * config/nds32/nds32.c: Likewise.
26119 * config/nios2/nios2.c: Likewise.
26120 * config/nvptx/nvptx.c: Likewise.
26121 * config/pa/pa.c: Likewise.
26122 * config/pdp11/pdp11.c: Likewise.
26123 * config/rl78/rl78-c.c: Likewise.
26124 * config/rl78/rl78.c: Likewise.
26125 * config/rs6000/rs6000-c.c: Likewise.
26126 * config/rs6000/rs6000.c: Likewise.
26127 * config/rx/rx.c: Likewise.
26128 * config/s390/s390-c.c: Likewise.
26129 * config/s390/s390.c: Likewise.
26130 * config/sh/sh-c.c: Likewise.
26131 * config/sh/sh-mem.cc: Likewise.
26132 * config/sh/sh.c: Likewise.
26133 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
26134 * config/sh/sh_treg_combine.cc: Likewise.
26135 * config/sol2-c.c: Likewise.
26136 * config/sol2-cxx.c: Likewise.
26137 * config/sol2-stubs.c: Likewise.
26138 * config/sol2.c: Likewise.
26139 * config/sparc/sparc-c.c: Likewise.
26140 * config/sparc/sparc.c: Likewise.
26141 * config/spu/spu-c.c: Likewise.
26142 * config/spu/spu.c: Likewise.
26143 * config/stormy16/stormy16.c: Likewise.
26144 * config/tilegx/mul-tables.c: Likewise.
26145 * config/tilegx/tilegx-c.c: Likewise.
26146 * config/tilegx/tilegx.c: Likewise.
26147 * config/tilepro/mul-tables.c: Likewise.
26148 * config/tilepro/tilepro-c.c: Likewise.
26149 * config/tilepro/tilepro.c: Likewise.
26150 * config/v850/v850-c.c: Likewise.
26151 * config/v850/v850.c: Likewise.
26152 * config/vax/vax.c: Likewise.
26153 * config/visium/visium.c: Likewise.
26154 * config/vms/vms-c.c: Likewise.
26155 * config/vms/vms.c: Likewise.
26156 * config/vxworks.c: Likewise.
26157 * config/winnt-c.c: Likewise.
26158 * config/xtensa/xtensa.c: Likewise.
26159 * common/config/bfin/bfin-common.c: Likewise.
26161 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
26163 * tree.h (tree_code_for_canonical_type_merging): New function.
26164 * tree.c (gimple_canonical_types_compatible_p): Use
26165 tree_code_for_canonical_type_merging..
26167 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26171 * doc/tm.texi: Regenerate.
26172 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
26173 * target.def (TARGET_RELAXED_ORDERING): Likewise.
26174 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
26175 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
26176 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
26177 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
26178 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
26179 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
26180 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
26182 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26184 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
26185 register fma steering pass.
26186 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
26187 AARCH64_TUNE_FMA_STEERING.
26189 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
26191 * tree.c (verify_type_variant): Verify that type and variant is
26193 (gimple_canonical_types_compatible_p): Look for main variants.
26195 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
26197 * config.gcc (powerpc*-*-*): Add support for a new configure
26198 option --with-advance-toolchain=<xxx> which overrides using the
26199 default header files, libraries and dynamic linker.
26201 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
26202 specs to support the configure --with-advance-toolchain=<xxx>
26204 (INCLUDE_EXTRA_SPEC): Likewise.
26205 (LINK_OS_EXTRA_SPEC32): Likewise.
26206 (LINK_OK_EXTRA_SPEC64): Likewise.
26207 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
26208 (DYNAMIC_LINKER_PREFIX): Likewise.
26209 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
26211 (GLIBC_DYNAMIC_LINKER32): Likewise.
26212 (GLIBC_DYNAMIC_LINKER64): Likewise.
26213 (LINK_OS_LINUX_SPEC32): Likewise.
26214 (LINK_OS_LINUX_SPEC64): Likewise.
26216 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
26217 configuration option.
26219 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
26222 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
26223 to determine current function ABI.
26224 (ix86_function_value_regno_p): Ditto.
26226 2015-06-03 Martin Liska <mliska@suse.cz>
26228 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
26229 * bitmap.h (struct bitmap_usage): Likewise.
26230 * ggc-common.c (struct ggc_usage): Likewise.
26231 * mem-stats.h (struct mem_location): Likewise.
26232 (struct mem_usage): Likewise.
26233 * vec.c (struct vec_usage): Likewise.
26235 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
26237 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
26240 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
26242 * doc/plugins.texi (enum plugin_event): New event.
26243 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
26244 and PLUGIN_FINISH_FUNCTION.
26245 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
26246 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
26248 2015-06-03 Richard Biener <rguenther@suse.de>
26250 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
26251 compute GROUP_GAP for the first element.
26252 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
26255 2015-06-03 Nick Clifton <nickc@redhat.com>
26257 * config/rl78/rl78-real.md: Add peepholes to avoid a register
26258 copy when calling a function.
26259 * config/rl78/rl78.c (need_to_save): Do not push the frame
26260 pointer in an interrupt handler prologue if it is never used.
26262 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26264 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
26266 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
26268 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
26269 reference when cloning alias node.
26271 2015-06-03 Martin Liska <mliska@suse.cz>
26273 * alloc-pool.h (struct pool_usage): Correct space padding.
26274 * ggc-page.c (ggc_print_statistics): Align columns in a report.
26275 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
26276 * tree.c (dump_tree_statistics): Align columns in a report.
26278 2015-06-03 Martin Liska <mliska@suse.cz>
26280 * alloc-pool.c (allocate_pool_descriptor): Remove.
26281 (struct pool_output_info): Likewise.
26282 (print_alloc_pool_statistics): Likewise.
26283 (dump_alloc_pool_statistics): Likewise.
26284 * alloc-pool.h (struct pool_usage): New struct.
26285 (pool_allocator::initialize): Change usage of memory statistics
26286 to a new interface.
26287 (pool_allocator::release): Likewise.
26288 (pool_allocator::allocate): Likewise.
26289 (pool_allocator::remove): Likewise.
26290 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
26291 for a pool allocator.
26292 * mem-stats.h (struct mem_location): Add new ctor.
26293 (struct mem_usage): Add counter for number of
26295 (mem_alloc_description::register_descriptor): New overload of
26296 * mem-stats.h (mem_location::to_string): New function.
26297 * bitmap.h (struct bitmap_usage): Use this new function.
26298 * ggc-common.c (struct ggc_usage): Likewise.
26301 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
26303 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
26304 of GCC_INSN_FLAGS_H block.
26306 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
26308 * explow.c (plus_constant): Update check after force_const_mem call
26309 to see if the value returned is not a NULL_RTX.
26311 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
26313 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
26314 remove instumentation thunks calling reachable functions.
26315 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
26316 * lto/lto-partition.c (privatize_symbol_name_1): New.
26317 (privatize_symbol_name): Privatize both decl and orig_decl
26318 names for instrumented functions.
26319 * cgraph.c (cgraph_node::verify_node): Add transparent
26320 alias chain check for instrumented node.
26322 2015-06-03 Marek Polacek <polacek@redhat.com>
26326 * tree.c (attribute_value_equal): Handle attribute format.
26327 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
26329 2015-06-03 Richard Biener <rguenther@suse.de>
26331 PR tree-optimization/63916
26332 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
26333 Forward-propagate non-invariant addresses by splicing their
26334 reference ops if the result isn't going to be used by PRE.
26335 (vn_reference_lookup_3): Remove pointless assert.
26337 2015-06-03 Richard Biener <rguenther@suse.de>
26339 PR tree-optimization/66375
26340 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
26341 add to the evolution before following SSA edges.
26343 2015-06-03 Bin Cheng <bin.cheng@arm.com>
26345 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
26346 (dump_use, dump_cand, find_induction_variables): Pass new argument
26348 (record_use): Preserve the ssa name information in IV.
26350 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
26352 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
26354 (add_mode_tests): Don't add mode tests if the predicate only
26355 accepts scalar constant integers. Otherwise, allow the mode
26356 of "op" to be VOIDmode if the predicate does accept such integers.
26358 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
26361 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
26362 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
26363 (aarch64_secondary_reload): Likewise
26364 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
26366 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
26369 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
26370 Zhenqiang Chen <zhenqiang.chen@linaro.org>
26373 * cprop.c (try_replace_reg): Check cost of constants before propagating.
26375 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
26377 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
26378 provide access to the IBM extended double floating point mode if
26379 long double is IEEE 128-bit floating point.
26380 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
26381 point if long double is the IBM extended double type.
26383 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
26384 enable adding IEEE 128-bit floating point support.
26385 (-mfloat128-software): Likewise.
26386 (-mfloat128-sw): Likewise.
26388 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
26389 128-bit floating point types to occupy any register if
26390 -mlong-double-64. Do not allow use of IFmode/KFmode unless
26391 -mfloat128-software is enabled.
26392 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
26394 (rs6000_option_override_internal): Add -mfloat128-* support.
26395 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
26397 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
26398 and float128 type nodes.
26399 (ieee128_float_type_node): Likewise.
26400 (ibm128_float_type_node): Likewise.
26402 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26405 * config/aarch64/geniterators.sh: Rewrite in awk.
26407 2015-06-02 Martin Liska <mliska@suse.cz>
26409 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
26410 values to avoid -Wmaybe-uninitialized errors.
26412 2015-06-02 Richard Biener <rguenther@suse.de>
26415 * dwarf2out.c (lookup_context_die): New function.
26416 (resolve_addr): Avoid forcing a full DIE for the
26417 target of a DW_TAG_GNU_call_site during late compilation.
26418 Instead create a stub DIE without a type if we have a
26419 context DIE present.
26421 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
26423 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
26425 2015-06-02 Bin Cheng <bin.cheng@arm.com>
26427 PR tree-optimization/48052
26428 * cfgloop.h (struct control_iv): New.
26429 (struct loop): New field control_ivs.
26430 * tree-ssa-loop-niter.c : Include "stor-layout.h".
26431 (number_of_iterations_lt): Set no_overflow information.
26432 (number_of_iterations_exit): Init control iv in niter struct.
26433 (record_control_iv): New.
26434 (estimate_numbers_of_iterations_loop): Call record_control_iv.
26435 (loop_exits_before_overflow): New. Interface factored out of
26436 scev_probably_wraps_p.
26437 (scev_probably_wraps_p): Factor loop niter related code into
26438 loop_exits_before_overflow.
26439 (free_numbers_of_iterations_estimates_loop): Free control ivs.
26440 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
26442 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
26444 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
26445 the target doesn't belong to the current function.
26447 2015-06-02 Marek Polacek <polacek@redhat.com>
26449 PR middle-end/66345
26450 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
26451 get_maxval_strlen does not produce an INTEGER_CST.
26453 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
26455 * config/arc/constraints.md: Use lower-case names in match_code.
26456 * config/mmix/constraints.md: Likewise.
26458 2015-06-02 Richard Biener <rguenther@suse.de>
26460 PR tree-optimization/65961
26461 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
26462 check and clarify dump message.
26463 (vect_build_slp_tree): If all children are built up from scalars
26464 build up the parent from scalars instead.
26465 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
26467 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
26470 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
26471 instead of print ... .
26473 2015-06-02 Alan Modra <amodra@gmail.com>
26475 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
26478 2015-06-02 Bin Cheng <bin.cheng@arm.com>
26480 PR tree-optimization/52563
26481 PR tree-optimization/62173
26482 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
26483 (alloc_iv, set_iv): New parameter.
26484 (determine_biv_step): Delete.
26485 (find_bivs): Inline original determine_biv_step. Pass new
26486 argument to set_iv.
26487 (idx_find_step): Use no_overflow information for conversion.
26488 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
26489 resolve_mixers handle folded_casts.
26490 (instantiate_scev_name): Change bool parameter to bool pointer.
26491 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
26492 (instantiate_array_ref, instantiate_scev_not): Ditto.
26493 (instantiate_scev_3, instantiate_scev_2): Ditto.
26494 (instantiate_scev_1, instantiate_scev_r): Ditto.
26495 (instantiate_scev_convert, ): Change parameter. Pass argument
26496 to chrec_convert_aggressive.
26497 (instantiate_scev): Change argument.
26498 (resolve_mixers): New parameter and set it.
26499 (scev_const_prop): New argument.
26500 * tree-scalar-evolution.h (resolve_mixers): New parameter.
26501 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
26503 (chrec_convert): New parameter. Move definition below.
26504 (chrec_convert_aggressive): New parameter and set it. Call
26505 convert_affine_scev.
26506 * tree-chrec.h (chrec_convert): New parameter.
26507 (chrec_convert_aggressive): Ditto.
26509 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
26511 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
26512 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
26513 the LHS of a no-return call if its type has variable size.
26514 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
26515 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
26517 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
26519 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
26520 * config.in: Regenerate.
26522 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
26524 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
26525 consecutive accesses within outer-loop with force_vectorize
26526 for references with zero step in inner-loop.
26528 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
26530 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
26531 rather than from gcc/build directory.
26533 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
26536 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
26537 for __sync memory models, emit initial loads and final barriers as
26540 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
26543 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
26544 (aarch64_split_atomic_op): Check for __sync memory models, emit
26545 appropriate initial loads and final barriers.
26547 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
26549 * Makefile.in: Fix gcov dependencies that should
26550 not point to a build folder.
26552 2015-06-01 Richard Biener <rguenther@suse.de>
26555 2015-05-29 Richard Biener <rguenther@suse.de>
26557 PR tree-optimization/66314
26558 * tree-ssa-threadupdate.c (create_block_for_threading): Add
26559 parameter that says which loop the new block belongs to.
26560 (ssa_create_duplicates): Blocks duplicated for the threaded
26561 path belong to the loop of the thread destination.
26563 2015-06-01 Martin Liska <mliska@suse.cz>
26565 * sched-deps.c: Include pool-alloc.h before
26566 cselib.h header file is included.
26568 2015-06-01 Richard Biener <rguenther@suse.de>
26570 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
26573 2015-06-01 Martin Liska <mliska@suse.cz>
26575 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
26576 a function local variable.
26578 2015-06-01 Martin Liska <mliska@suse.cz>
26580 * alloc-pool.c (create_alloc_pool): Remove.
26581 (empty_alloc_pool): Likewise.
26582 (free_alloc_pool): Likewise.
26583 (free_alloc_pool_if_empty): Likewise.
26584 (pool_alloc): Likewise.
26585 (pool_free): Likewise.
26586 * alloc-pool.h: Remove old declarations.
26588 2015-06-01 Martin Liska <mliska@suse.cz>
26590 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
26591 (ira_create_object): Likewise.
26592 (ira_create_allocno): Likewise.
26593 (ira_create_live_range): Likewise.
26594 (copy_live_range): Likewise.
26595 (ira_finish_live_range): Likewise.
26596 (ira_free_allocno_costs): Likewise.
26597 (finish_allocno): Likewise.
26598 (finish_allocnos): Likewise.
26599 (initiate_prefs): Likewise.
26600 (ira_create_pref): Likewise.
26601 (finish_pref): Likewise.
26602 (finish_prefs): Likewise.
26603 (initiate_copies): Likewise.
26604 (ira_create_copy): Likewise.
26605 (finish_copy): Likewise.
26606 (finish_copies): Likewise.
26607 (finish_prefs): Likewise.
26609 2015-06-01 Martin Liska <mliska@suse.cz>
26611 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
26612 (allocate_and_init_ipcp_value): Likewise.
26613 (ipcp_lattice::add_value): Likewise.
26614 (merge_agg_lats_step): Likewise.
26615 (ipcp_driver): Likewise.
26616 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
26617 (ipa_free_all_structures_after_iinln): Likewise.
26618 * ipa-prop.h: Likewise.
26620 2015-06-01 Martin Liska <mliska@suse.cz>
26622 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
26624 (set_hint_predicate): Likewise.
26625 (inline_summary_alloc): Likewise.
26626 (reset_inline_edge_summary): Likewise.
26627 (reset_inline_summary): Likewise.
26628 (set_cond_stmt_execution_predicate): Likewise.
26629 (set_switch_stmt_execution_predicate): Likewise.
26630 (compute_bb_predicates): Likewise.
26631 (estimate_function_body_sizes): Likewise.
26632 (inline_free_summary): Likewise.
26634 2015-06-01 Martin Liska <mliska@suse.cz>
26636 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
26637 (ipa_edge_duplication_hook): Likewise.
26638 (ipa_free_all_structures_after_ipa_cp): Likewise.
26639 (ipa_free_all_structures_after_iinln): Likewise.
26641 2015-06-01 Martin Liska <mliska@suse.cz>
26643 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
26644 (ipa_profile_generate_summary): Likewise.
26645 (ipa_profile_read_summary): Likewise.
26646 (ipa_profile): Likewise.
26648 2015-06-01 Martin Liska <mliska@suse.cz>
26650 * tree-ssa-structalias.c (new_var_info): Use new type-based
26652 (new_constraint): Likewise.
26653 (init_alias_vars): Likewise.
26654 (delete_points_to_sets): Likewise.
26656 2015-06-01 Martin Liska <mliska@suse.cz>
26658 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
26659 (free_strinfo): Likewise.
26660 (pass_strlen::execute): Likewise.
26662 2015-06-01 Martin Liska <mliska@suse.cz>
26664 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
26666 (vn_reference_insert_pieces): Likewise.
26667 (vn_phi_insert): Likewise.
26668 (visit_reference_op_call): Likewise.
26669 (copy_phi): Likewise.
26670 (copy_reference): Likewise.
26671 (process_scc): Likewise.
26672 (allocate_vn_table): Likewise.
26673 (free_vn_table): Likewise.
26675 2015-06-01 Martin Liska <mliska@suse.cz>
26677 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
26679 (add_repeat_to_ops_vec): Likewise.
26680 (get_ops): Likewise.
26681 (maybe_optimize_range_tests): Likewise.
26682 (init_reassoc): Likewise.
26683 (fini_reassoc): Likewise.
26685 2015-06-01 Martin Liska <mliska@suse.cz>
26687 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
26689 (bitmap_set_new): Likewise.
26690 (get_or_alloc_expr_for_constant): Likewise.
26691 (get_or_alloc_expr_for): Likewise.
26692 (phi_translate_1): Likewise.
26693 (compute_avail): Likewise.
26694 (init_pre): Likewise.
26695 (fini_pre): Likewise.
26697 2015-06-01 Martin Liska <mliska@suse.cz>
26699 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
26700 (delete_dep_node): Likewise.
26701 (create_deps_list): Likewise.
26702 (free_deps_list): Likewise.
26703 (sched_deps_init): Likewise.
26704 (sched_deps_finish): Likewise.
26706 2015-06-01 Martin Liska <mliska@suse.cz>
26708 * regcprop.c (free_debug_insn_changes): Use new type-based
26710 (replace_oldest_value_reg): Likewise.
26711 (pass_cprop_hardreg::execute): Likewise.
26713 2015-06-01 Martin Liska <mliska@suse.cz>
26715 * ira-build.c (initiate_cost_vectors): Use new type-based
26717 (ira_allocate_cost_vector): Likewise.
26718 (ira_free_cost_vector): Likewise.
26719 (finish_cost_vectors): Likewise.
26721 2015-06-01 Martin Liska <mliska@suse.cz>
26723 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
26725 (free_sched_pools): Likewise.
26726 * sel-sched-ir.h (_list_alloc): Likewise.
26727 (_list_remove): Likewise.
26729 2015-06-01 Martin Liska <mliska@suse.cz>
26731 * stmt.c (add_case_node): Use new type-based pool allocator.
26732 (expand_case): Likewise.
26733 (expand_sjlj_dispatch_table): Likewise.
26735 2015-06-01 Martin Liska <mliska@suse.cz>
26737 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
26738 (free_bb): Likewise.
26739 (pass_cse_reciprocals::execute): Likewise.
26741 2015-06-01 Martin Liska <mliska@suse.cz>
26743 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
26744 (sra_deinitialize) Likewise.
26745 (create_access_1) Likewise.
26746 (build_accesses_from_assign) Likewise.
26747 (create_artificial_child_access) Likewise.
26749 2015-06-01 Martin Liska <mliska@suse.cz>
26751 * dse.c (get_group_info):Use new type-based pool allocator.
26752 (dse_step0) Likewise.
26753 (free_store_info) Likewise.
26754 (delete_dead_store_insn) Likewise.
26755 (free_read_records) Likewise.
26756 (record_store) Likewise.
26757 (replace_read) Likewise.
26758 (check_mem_read_rtx) Likewise.
26759 (scan_insn) Likewise.
26760 (dse_step1) Likewise.
26761 (dse_step7) Likewise.
26763 2015-06-01 Martin Liska <mliska@suse.cz>
26765 * df-scan.c (struct df_scan_problem_data):Use new type-based
26767 (df_scan_free_internal) Likewise.
26768 (df_scan_alloc) Likewise.
26769 (df_grow_reg_info) Likewise.
26770 (df_free_ref) Likewise.
26771 (df_insn_create_insn_record) Likewise.
26772 (df_mw_hardreg_chain_delete) Likewise.
26773 (df_insn_info_delete) Likewise.
26774 (df_free_collection_rec) Likewise.
26775 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
26776 (df_sort_and_compress_mws) Likewise.
26777 (df_ref_create_structure) Likewise.
26778 (df_ref_record) Likewise.
26780 2015-06-01 Martin Liska <mliska@suse.cz>
26782 * df-problems.c (df_chain_create):Use new type-based pool allocator.
26783 (df_chain_unlink_1) Likewise.
26784 (df_chain_unlink) Likewise.
26785 (df_chain_remove_problem) Likewise.
26786 (df_chain_alloc) Likewise.
26787 (df_chain_free) Likewise.
26788 * df.h (struct dataflow) Likewise.
26790 2015-06-01 Martin Liska <mliska@suse.cz>
26792 * cselib.c (new_elt_list):Use new type-based pool allocator.
26793 (new_elt_loc_list) Likewise.
26794 (unchain_one_elt_list) Likewise.
26795 (unchain_one_elt_loc_list) Likewise.
26796 (unchain_one_value) Likewise.
26797 (new_cselib_val) Likewise.
26798 (cselib_init) Likewise.
26799 (cselib_finish) Likewise.
26801 2015-06-01 Martin Liska <mliska@suse.cz>
26803 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
26804 (sh_reorg) Likewise.
26806 2015-06-01 Martin Liska <mliska@suse.cz>
26808 * cfg.c (initialize_original_copy_tables):Use new type-based
26810 (free_original_copy_tables) Likewise.
26811 (copy_original_table_clear) Likewise.
26812 (copy_original_table_set) Likewise.
26814 2015-06-01 Martin Liska <mliska@suse.cz>
26816 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
26818 (asan_mem_ref_new) Likewise.
26819 (free_mem_ref_resources) Likewise.
26821 2015-06-01 Martin Liska <mliska@suse.cz>
26823 * var-tracking.c (variable_htab_free):Use new type-based
26825 (attrs_list_clear) Likewise.
26826 (attrs_list_insert) Likewise.
26827 (attrs_list_copy) Likewise.
26828 (shared_hash_unshare) Likewise.
26829 (shared_hash_destroy) Likewise.
26830 (unshare_variable) Likewise.
26831 (var_reg_delete_and_set) Likewise.
26832 (var_reg_delete) Likewise.
26833 (var_regno_delete) Likewise.
26834 (drop_overlapping_mem_locs) Likewise.
26835 (variable_union) Likewise.
26836 (insert_into_intersection) Likewise.
26837 (canonicalize_values_star) Likewise.
26838 (variable_merge_over_cur) Likewise.
26839 (dataflow_set_merge) Likewise.
26840 (remove_duplicate_values) Likewise.
26841 (variable_post_merge_new_vals) Likewise.
26842 (dataflow_set_preserve_mem_locs) Likewise.
26843 (dataflow_set_remove_mem_locs) Likewise.
26844 (variable_from_dropped) Likewise.
26845 (variable_was_changed) Likewise.
26846 (set_slot_part) Likewise.
26847 (clobber_slot_part) Likewise.
26848 (delete_slot_part) Likewise.
26849 (loc_exp_insert_dep) Likewise.
26850 (notify_dependents_of_changed_value) Likewise.
26851 (emit_notes_for_differences_1) Likewise.
26852 (vt_emit_notes) Likewise.
26853 (vt_initialize) Likewise.
26854 (vt_finalize) Likewise.
26856 2015-06-01 Martin Liska <mliska@suse.cz>
26858 * ira-color.c (init_update_cost_records):Use new type-based
26860 (get_update_cost_record) Likewise.
26861 (free_update_cost_record_list) Likewise.
26862 (finish_update_cost_records) Likewise.
26863 (initiate_cost_update) Likewise.
26865 2015-06-01 Martin Liska <mliska@suse.cz>
26867 * lra.c (init_insn_regs): Use new type-based pool allocator.
26868 (new_insn_reg) Likewise.
26869 (free_insn_reg) Likewise.
26870 (free_insn_regs) Likewise.
26871 (finish_insn_regs) Likewise.
26872 (init_insn_recog_data) Likewise.
26873 (init_reg_info) Likewise.
26874 (finish_reg_info) Likewise.
26875 (lra_free_copies) Likewise.
26876 (lra_create_copy) Likewise.
26877 (invalidate_insn_data_regno_info) Likewise.
26879 2015-06-01 Martin Liska <mliska@suse.cz>
26881 * lra-lives.c (free_live_range): Use new type-based pool allocator.
26882 (free_live_range_list) Likewise.
26883 (create_live_range) Likewise.
26884 (copy_live_range) Likewise.
26885 (lra_merge_live_ranges) Likewise.
26886 (remove_some_program_points_and_update_live_ranges) Likewise.
26887 (lra_live_ranges_init) Likewise.
26888 (lra_live_ranges_finish) Likewise.
26890 2015-06-01 Martin Liska <mliska@suse.cz>
26892 * et-forest.c (et_new_occ): Use new type-based pool allocator.
26893 (et_new_tree): Likewise.
26894 (et_free_tree): Likewise.
26895 (et_free_tree_force): Likewise.
26896 (et_free_pools): Likewise.
26897 (et_split): Likewise.
26899 2015-06-01 Martin Liska <mliska@suse.cz>
26901 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
26903 * alloc-pool.h (pool_allocator::pool_allocator): New function.
26904 (pool_allocator::release): Likewise.
26905 (inline pool_allocator::release_if_empty): Likewise.
26906 (inline pool_allocator::~pool_allocator): Likewise.
26907 (pool_allocator::allocate): Likewise.
26908 (pool_allocator::remove): Likewise.
26910 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
26912 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
26915 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
26917 * config/arm/arm-protos.h (tune_params): Rename fuseable_ops
26919 * config/arm/arm.c (arm_print_tune_info): Likewise.
26920 (arm_macro_fusion_p): Likewise.
26921 (arm_macro_fusion_pair_p): Likewise.
26923 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
26925 * config/aarch64/aarch64-protos.h (tune_params): Rename
26926 fuseable_ops to fusible_ops.
26927 * config/aarch64/aarch64.c (generic_tunings): Rename
26928 fuseable_ops to fusible_ops.
26929 (cortexa53_tunings): Likewise.
26930 (cortexa57_tunings): Likewise.
26931 (thunderx_tunings): Likewise.
26932 (xgene1_tunings): Likewise.
26933 (aarch64_macro_fusion_p): Likewise.
26934 (aarch64_macro_fusion_pair_p): Likewise.
26936 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
26938 * config/s390/driver-native.c: New file.
26939 * config/s390/x-native: New file.
26940 * config.host: Add new files for s390.
26941 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
26943 * config.gcc: Likewise.
26944 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
26945 * config/s390/s390-opts.h (enum processor_type): Ditto.
26946 * config/s390/s390.c (s390_option_override): Catch unhandled
26949 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
26952 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
26953 redirection for instrumented calls.
26954 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
26955 (append_compiler_options): Append -fcheck-pointer-bounds.
26956 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
26957 (chkp_redirect_edge): New.
26958 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
26959 (chkp_redirect_edge): New.
26961 2015-06-01 Richard Biener <rguenther@suse.de>
26963 PR tree-optimization/66280
26964 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
26967 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26969 * config/aarch64/aarch64.md
26970 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
26973 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
26975 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
26976 Remove obsolete kludge.
26978 2015-06-01 Richard Biener <rguenther@suse.de>
26980 * tree-ssa-reassoc.c (get_rank): Simplify.
26982 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
26984 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
26985 * configure: Regenerated.
26987 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
26989 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
26990 issue (add space between string literal and macro).
26991 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
26993 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
26995 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
26996 implict or explicit -fPIE or -fpie.
26998 2015-05-30 Mike Frysinger <vapier@gentoo.org>
27000 * config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
27002 2015-05-28 DJ Delorie <dj@redhat.com>
27004 * expmed.c (extract_bit_field_1): Avoid clobbering a
27005 yet-to-be-used base/index register.
27007 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
27009 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
27010 (alias_stats): Add num_universal.
27011 (alias_set_subset_of): Special case pointers; be ready for NULL
27013 (alias_sets_conflict_p): Special case pointers; be ready for NULL
27015 (init_alias_set_entry): Break out from ...
27016 (record_alias_subset): ... here; propagate new fields;
27017 allocate children only when really needed.
27018 (get_alias_set): Do less generous pointer globbing.
27019 (dump_alias_stats_in_alias_c): Update statistics.
27021 2015-05-30 Alan Modra <amodra@gmail.com>
27023 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
27024 correct block for use of r12.
27025 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
27027 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
27030 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
27033 2015-05-29 Jakub Jelinek <jakub@redhat.com>
27035 PR tree-optimization/66142
27036 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
27037 virtual phis that feed themselves.
27039 2015-05-29 Richard Biener <rguenther@suse.de>
27041 PR tree-optimization/66314
27042 * tree-ssa-threadupdate.c (create_block_for_threading): Add
27043 parameter that says which loop the new block belongs to.
27044 (ssa_create_duplicates): Blocks duplicated for the threaded
27045 path belong to the loop of the thread destination.
27047 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
27049 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
27050 to cleanup-saved-temps.
27051 * doc/sourcebuild.texi (Clean up generated test files): Expand
27053 (dg-keep-saved-temps): Document new proc.
27054 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
27055 cleanup-saved-temps): Remove.
27057 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
27059 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
27060 gcc_AC_CHECK_DECLS.
27061 * configure: Regenerate.
27063 2015-05-28 Mike Frysinger <vapier@gentoo.org>
27065 * config/nios2/linux.h (CPP_SPEC): Define.
27067 2015-05-28 Mike Frysinger <vapier@gentoo.org>
27069 * config/microblaze/linux.h (CPP_SPEC): Define.
27071 2015-05-28 Mike Frysinger <vapier@gentoo.org>
27073 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
27074 -pthread is specified.
27076 2015-05-28 Richard Biener <rguenther@suse.de>
27078 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
27079 (vect_fixup_scalar_cycles_with_patterns): Likewise.
27080 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
27081 after pattern recog.
27082 (vect_create_epilog_for_reduction): Properly handle reductions
27084 (vectorizable_reduction): Likewise.
27085 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
27087 (vect_get_constant_vectors): Create the correct number of
27088 initial values for reductions.
27089 (vect_schedule_slp_instance): Handle reduction chains that are
27090 type changing properly.
27091 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
27093 2015-05-28 Richard Biener <rguenther@suse.de>
27095 PR tree-optimization/66142
27096 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
27097 values better in memcpy destination handling. Handle non-aliasing
27100 2015-05-28 Lawrence Velázquez <vq@larryv.me>
27103 * config/darwin-c.c (version_components): New global enum.
27104 (parse_version, version_as_legacy_macro)
27105 (version_as_modern_macro, macosx_version_as_macro): New functions.
27106 (version_as_macro): Remove.
27107 (darwin_cpp_builtins): Use new function.
27109 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
27111 * builtins.c (expand_builtin_acc_on_device): Mark parameters
27112 with ATTRIBUTE_UNUSED.
27114 2015-05-28 Julian Brown <julian@codesourcery.com>
27118 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
27119 sequence for !ACCEL_COMPILER.
27121 2015-05-28 Nick Clifton <nickc@redhat.com>
27123 * config/rx/rx.c (push_regs): New function. Extracts code from...
27124 (rx_expand_prologue): ... here. Use push_regs to push even small
27125 spans of registers.
27126 (pop_regs): New function.
27127 (rx_expand_epilogue): Use pop_regs to pop even small spans of
27130 2015-05-28 Richard Biener <rguenther@suse.de>
27132 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
27134 (SLP_INSTANCE_BODY_COST_VEC): Remove.
27135 (vect_update_slp_costs_according_to_vf): Likewise.
27136 (vect_slp_analyze_operations): Update prototype.
27137 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
27138 vect_update_slp_costs_according_to_vf, adjust.
27139 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
27140 (vect_analyze_slp_cost_1): Likewise.
27141 (vect_analyze_slp_cost): Likewise. Properly deal with
27142 widening reduction ops. Commit body costs.
27143 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
27144 cost for loops from here.
27145 (vect_slp_analyze_operations): But do it from here when
27146 the vectorization factor is known and stmts are analyzed.
27147 (vect_bb_vectorization_profitable_p): Simplify.
27148 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
27149 (vect_update_slp_costs_according_to_vf): Remove.
27151 2015-05-27 Magnus Granberg <zorry@gentoo.org>
27152 H.J. Lu <hongjiu.lu@intel.com>
27154 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
27155 (BUILD_CFLAGS): Likewise.
27156 (BUILD_CXXFLAGS): Likewise.
27157 (LINKER): Add @NO_PIE_FLAG@.
27158 (BUILD_LDFLAGS): Likewise.
27159 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
27160 --enable-default-pie.
27161 * common.opt (fPIE): Initialize to -1.
27163 (no-pie): New option.
27164 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
27165 * configure.ac: Add --enable-default-pie.
27166 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
27167 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
27168 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
27169 * gcc.c (NO_PIE_SPEC): New.
27170 (PIE_SPEC): Likewise.
27171 (NO_FPIE1_SPEC): Likewise.
27172 (FPIE1_SPEC): Likewise.
27173 (NO_FPIE2_SPEC): Likewise.
27174 (FPIE2_SPEC): Likewise.
27175 (NO_FPIE2_SPEC): Likewise.
27176 (FPIE_SPEC): Likewise.
27177 (NO_FPIE_SPEC): Likewise.
27178 (NO_FPIC1_SPEC): Likewise.
27179 (FPIC1_SPEC): Likewise.
27180 (NO_FPIC2_SPEC): Likewise.
27181 (FPIC2_SPEC): Likewise.
27182 (NO_FPIC2_SPEC): Likewise.
27183 (FPIC_SPEC): Likewise.
27184 (NO_FPIC_SPEC): Likewise.
27185 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
27186 (FPIE1_OR_FPIC1_SPEC): Likewise.
27187 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
27188 (FPIE2_OR_FPIC2_SPEC): Likewise.
27189 (NO_FPIE_AND_FPIC_SPEC): Likewise.
27190 (FPIE_OR_FPIC_SPEC): Likewise.
27191 (LD_PIE_SPEC): Likewise.
27192 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
27193 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
27194 * config/darwin.h (PIE_SPEC): Renamed to ...
27195 (DARWIN_PIE_SPEC): This.
27196 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
27197 * config/darwin9.h (PIE_SPEC): Renamed to ...
27198 (DARWIN_PIE_SPEC): This.
27199 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
27200 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
27201 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
27202 FPIE2_OR_FPIC2_SPEC.
27203 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
27204 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
27205 * config/sol2.h (ASM_PIC_SPEC): Likewise.
27206 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
27207 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
27208 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
27209 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
27210 * config/m32r/m32r.h (ASM_SPEC): Likewise.
27211 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
27212 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
27213 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
27214 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
27215 * config/sparc/linux.h (ASM_SPEC): Likewise.
27216 * config/sparc/linux64.h (ASM_SPEC): Likewise.
27217 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
27218 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
27219 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
27220 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
27221 * config/sparc/sparc.h (ASM_SPEC): Likewise.
27222 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
27223 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
27224 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
27225 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
27226 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
27227 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
27228 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
27229 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
27230 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
27231 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
27232 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
27233 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
27234 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
27235 * config/vax/linux.h (ASM_SPEC): Likewise.
27236 * doc/install.texi: Document --enable-default-pie.
27237 * doc/invoke.texi: Document -no-pie.
27238 * config.in: Regenerated.
27239 * configure: Likewise.
27241 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
27243 PR rtl-optimization/66168
27244 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
27245 can_move_invariant_reg.
27247 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
27250 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
27251 REG_EQUAL note when doing insert.
27253 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
27254 instead of "%d" for 'o' operand.
27256 2015-05-27 Nathan Sidwell <nathan@acm.org>
27259 * tree.c (build_pointer_type_for_mode): Canonical type does not
27260 inherit can_alias_all.
27261 (build_reference_type_for_mode): Likewise.
27263 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
27265 * expr.h (array_at_struct_end_p): Move to...
27266 (array_ref_element_size): Likewise.
27267 (component_ref_field_offset): Likewise.
27268 * tree.h (array_ref_element_size): ...here.
27269 (array_at_struct_end_p): Likewise.
27270 (component_ref_field_offset): Likewise.
27271 * expr.c (array_ref_element_size): Move to...
27272 (array_ref_low_bound): Likewise.
27273 (array_at_struct_end_p): Likewise.
27274 (array_ref_up_bound): Likewise.
27275 (component_ref_field_offset): Likewise.
27276 * tree.c (array_ref_element_size): ...here.
27277 (array_ref_low_bound): Likewise.
27278 (array_ref_up_bound): Likewise.
27279 (array_at_struct_end_p): Likewise.
27280 (component_ref_field_offset): Likewise.
27282 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
27283 Szabolcs Nagy <szabolcs.nagy@arm.com>
27285 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
27287 2015-05-27 Jason Merrill <jason@redhat.com>
27290 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
27291 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
27292 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
27294 2015-05-22 Aditya Kumar <hiraditya@msn.com>
27296 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
27299 * statistics.c (statistics_fini_pass): Print pass name.
27301 2015-05-27 Richard Biener <rguenther@suse.de>
27303 PR tree-optimization/66272
27305 2014-08-15 Richard Biener <rguenther@suse.de>
27307 PR tree-optimization/62031
27308 * tree-data-ref.c (dr_analyze_indices): Do not set
27309 DR_UNCONSTRAINED_BASE.
27310 (dr_may_alias_p): All indirect accesses have to go the
27311 formerly DR_UNCONSTRAINED_BASE path.
27312 * tree-data-ref.h (struct indices): Remove
27313 unconstrained_base member.
27314 (DR_UNCONSTRAINED_BASE): Remove.
27316 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
27318 * dwarf2out.c: Remove block_map.
27319 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
27320 (gen_lexical_block_die): Same.
27321 (dwarf2out_function_decl): Remove block_map use.
27322 (dwarf2out_c_finalize): Same.
27323 * tree-core.h (struct tree_block): Add die field.
27324 * tree.h (BLOCK_DIE): New.
27326 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27329 * expr.c (memory_load_overlap): New function.
27330 (emit_push_insn): When pushing partial args to the stack would
27331 clobber the register part load the overlapping part into a pseudo
27332 and put it into the hard reg after pushing. Change return type
27333 to bool. Add bool argument.
27334 * expr.h (emit_push_insn): Change return type to bool.
27336 * calls.c (expand_call): Cancel sibcall optimization when encountering
27337 partial argument on targets with ARGS_GROW_DOWNWARD and
27338 !STACK_GROWS_DOWNWARD.
27339 (emit_library_call_value_1): Update callsite of emit_push_insn.
27340 (store_one_arg): Likewise.
27342 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
27344 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
27346 2015-05-27 Martin Liska <mliska@suse.cz>
27348 * Makefile.in: Add additional dependencies related to memory report
27350 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
27351 * bitmap.c (struct bitmap_descriptor_d): Remove.
27352 (struct loc): Likewise.
27353 (struct bitmap_desc_hasher): Likewise.
27354 (bitmap_desc_hasher::hash): Likewise.
27355 (bitmap_desc_hasher::equal): Likewise.
27356 (get_bitmap_descriptor): Likewise.
27357 (bitmap_register): User new memory descriptor API.
27358 (register_overhead): Likewise.
27359 (bitmap_find_bit): Register nsearches and search_iter statistics.
27360 (struct bitmap_output_info): Remove.
27361 (print_statistics): Likewise.
27362 (dump_bitmap_statistics): Use new memory descriptor.
27363 * bitmap.h (struct bitmap_usage): New class.
27364 * genmatch.c: Extend header file inclusion.
27365 * genpreds.c: Likewise.
27366 * ggc-common.c (struct ggc_usage): New class.
27367 (struct ggc_loc_desc_hasher): Remove.
27368 (ggc_loc_desc_hasher::hash): Likewise.
27369 (ggc_loc_desc_hasher::equal): Likewise.
27370 (struct ggc_ptr_hash_entry): Likewise.
27371 (struct ptr_hash_hasher): Likewise.
27372 (ptr_hash_hasher::hash): Likewise.
27373 (ptr_hash_hasher::equal): Likewise.
27374 (make_loc_descriptor): Likewise.
27375 (ggc_prune_ptr): Likewise.
27376 (dump_ggc_loc_statistics): Use new memory descriptor.
27377 (ggc_record_overhead): Likewise.
27378 (ggc_free_overhead): Likewise.
27379 (final_cmp_statistic): Remove.
27380 (cmp_statistic): Likewise.
27381 (ggc_add_statistics): Liekwise.
27382 (ggc_prune_overhead_list): Likewise.
27383 * hash-map-traits.h: New file.
27384 * hash-map.h (struct default_hashmap_traits): Move the traits to a
27385 separate header file.
27386 * hash-set.h: Pass memory statistics info to ctor.
27387 * hash-table.c (void dump_hash_table_loc_statistics): New function.
27388 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
27389 (hash_table::~hash_table): Register memory release operation.
27390 (hash_table::alloc_entries): Handle memory allocation operation.
27391 (hash_table::expand): Likewise.
27392 * inchash.c (iterative_hash_hashval_t): Move implementation to header
27394 (iterative_hash_host_wide_int): Likewise.
27395 * inchash.h (class hash): Likewise.
27396 * mem-stats-traits.h: New file.
27397 * mem-stats.h: New file.
27398 (mem_location): Add new class.
27399 (mem_usage): Likewise.
27400 (mem_alloc_description): Likewise.
27401 * sese.c: Add new header file inclusision.
27402 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
27404 * tree-sra.c: Add new header file inclusision.
27405 * vec.c (struct vec_descriptor): Remove.
27406 (hash_descriptor): Likewise.
27407 (struct vec_usage): Likewise.
27408 (struct ptr_hash_entry): Likewise.
27409 (hash_ptr): Likewise.
27410 (eq_ptr): Likewise.
27411 (vec_prefix::register_overhead): Use new memory descriptor API.
27412 (vec_prefix::release_overhead): Likewise.
27413 (add_statistics): Remove.
27414 (dump_vec_loc_statistics): Use new memory descriptor API.
27415 * vec.h (struct vec_prefix): Likewise.
27416 (va_heap::reserve): Likewise.
27417 (va_heap::release): Likewise.
27418 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
27420 2015-05-27 Richard Biener <rguenther@suse.de>
27422 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
27423 earlier and remove ??? comment.
27424 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
27425 and got called from loop analysis bail out. Always pass the SLP
27426 node to the vectorizable_* functions.
27427 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
27428 the premature SLP check here.
27429 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
27430 detected SLP stmts.
27431 (vect_detect_hybrid_slp_1): Likewise.
27433 2015-05-26 Jeff Law <law@redhat.com>
27435 * combine.c (find_split_point): Verify that the shift count is a
27436 constant when choosing (plus (ashift ...)) as a split point.
27438 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
27439 No functional changes.
27441 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
27443 * ipa-polymorphic-call.c
27444 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
27445 case when call target is already known.
27447 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
27450 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
27451 take into account the case that operands[1] and operands[2]
27452 are the same register.
27454 2015-05-26 Michael Matz <matz@suse.de>
27456 PR middle-end/66251
27458 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
27460 (vect_create_vectorized_demotion_stmts): Always set
27461 STMT_VINFO_VEC_STMT, also with SLP.
27462 (vectorizable_store): Handle strided group stores.
27464 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
27467 * config/aarch64/aarch64.md
27468 (*adds_shift_imm_<mode>): New pattern.
27469 (*subs_shift_imm_<mode>): Likewise.
27470 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
27471 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
27472 (*add_uxt<mode>_shift2): Likewise.
27473 (*add_uxtsi_shift2_uxtw): Likewise.
27474 (*sub_uxt<mode>_shift2): Likewise.
27475 (*sub_uxtsi_shift2_uxtw): Likewise.
27477 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
27479 * config/rs6000/constraints.md (Y, U): Use match_test.
27481 2015-05-26 Christian Bruel <christian.bruel@st.com>
27484 * config/arm/arm.c (arm_option_check_internal)
27485 (arm_option_params_internal): Check opts->target_flags to set macros.
27486 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
27487 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
27488 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
27489 (builtin_define): Replaced with def_or_undef_macro.
27490 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
27491 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
27492 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
27493 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
27494 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
27495 (TARGET_ARM_FEATURE_LDREX_P)
27496 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
27497 * config/arm/arm-c.c (def_or_undef_macro): New function.
27498 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
27500 2015-05-26 Christian Bruel <christian.bruel@st.com>
27502 * c-common.h (builtin_define_with_int_value)
27503 (builtin_define_type_sizeof): Declare.
27504 * c-cppbuiltin.c (builtin_define_with_int_value)
27505 (builtin_define_type_sizeof): Externalize.
27506 (builtin_define_std): Cleanup declaration.
27507 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
27508 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
27509 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
27510 (builtin_define, builtin_assert): New macros.
27512 2015-05-26 Richard Biener <rguenther@suse.de>
27514 PR tree-optimization/66142
27515 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
27516 MEM_REFs for the same base address.
27518 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27521 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
27523 2015-05-26 Jason Merrill <jason@redhat.com>
27525 * configure.ac: Set CXXFLAGS for ISL test.
27526 * configure: Regenerate.
27528 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
27529 strstr and basename.
27530 * configure: Regenerate.
27532 2015-05-26 Richard Biener <rguenther@suse.de>
27534 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
27535 X % C -> X & (C - 1) for C being a power-of two to ...
27536 * match.pd: ... patterns.
27538 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
27540 * match.pd (swapped_tcc_comparison): New operator list.
27541 (-A CMP -B): New simplification.
27542 * fold-const.c (fold_comparison): Remove corresponding code.
27544 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
27546 * caller-save.c (init_caller_save): Base temporary register numbers
27547 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
27548 * cfgloopanal.c (init_set_costs): Likewise.
27549 * dojump.c (prefer_and_bit_test): Likewise.
27550 * expr.c (init_expr_target): Likewise.
27551 * ira.c (setup_prohibited_mode_move_regs): Likewise.
27552 * lower-subreg.c (init_lower_subreg): Likewise.
27553 * postreload.c (reload_cse_regs_1): Likewise.
27555 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
27557 * gensupport.h (compute_test_codes): Declare.
27558 * gensupport.c (compute_predicate_codes): Rename to...
27559 (compute_test_codes): ...this. Generalize error message.
27560 (process_define_predicate): Update accordingly.
27561 * genpreds.c (compute_maybe_allows): Delete.
27562 (add_constraint): Use compute_test_codes to determine whether
27563 something can accept a SUBREG, REG or MEM.
27565 2015-05-26 Torvald Riegel <triegel@redhat.com>
27567 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
27568 'memory model' to align with C++11; fix description of memory orders;
27571 2015-05-26 Richard Biener <rguenther@suse.de>
27573 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
27574 (vect_analyze_loop_operations): ... here. Remove slp parameter,
27575 detect whether we apply SLP. Remove call to
27576 vect_update_slp_costs_according_to_vf.
27577 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
27578 vect_update_slp_costs_according_to_vf from here. Dispatch
27579 to vect_slp_analyze_operations to analyze SLP stmts.
27580 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
27581 unused bb_vec_info parameter, adjust assert.
27582 (vect_slp_analyze_operations): Pass in the slp instance tree
27583 instead of bb_vec_info.
27584 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
27585 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
27587 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
27589 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
27590 Q_REGS. Expand comment.
27591 (REG_CLASS_NAMES): Ditto.
27592 (REG_CLASS_CONTENTS): Ditto.
27594 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
27597 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
27598 when LEGACY_INT_REGNO_P is processed.
27600 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
27602 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
27604 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
27606 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
27607 register if not marked dead/unused, before return.
27609 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
27612 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
27613 is set; check for assembler name at LTO time.
27614 (type_in_anonymous_namespace): Remove hacks, check that all
27615 anonymous types are called "<anon>"
27616 (odr_type_p): Simplify; add check for "<anon>"
27617 (odr_subtypes_equivalent): Add odr_type_p check.
27618 * tree.c (need_assembler_name_p): Even anonymous namespace needs
27621 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
27623 * ipa-utils.h (method_class_type): Remove.
27624 * cgraphunit.c (walk_polymorphic_call_targets): Use
27625 TYPE_METHOD_BASETYPE.
27626 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
27627 on main variants only.
27628 (method_class_type): Remove.
27629 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
27630 (build_type_inheritance_graph): Likewise.
27631 * ipa-icf.c (sem_function::equals_wpa): Likewise.
27632 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
27633 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
27635 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
27637 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
27638 is_typedef_decl, typedef_variant_p): Constify.
27639 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
27640 is_typedef_decl, typedef_variant_p): Constify.
27642 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27644 * defaults.h (gen_tablejump): New function.
27645 (HAVE_tablejump): Add default value.
27647 * stmt.c: Likewise.
27649 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27651 * defaults.h (gen_store_multiple): New function.
27652 (HAVE_store_multiple): Add default value.
27653 * expr.c (move_block_from_reg): Adjust.
27655 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27657 * defaults.h (gen_load_multiple): New function.
27658 (HAVE_load_multiple): Add default value.
27659 * expr.c (move_block_to_reg): Adjust.
27661 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27663 * defaults.h (gen_mem_signal_fence): New function.
27664 (HAVE_mem_signal_fence): Add default value.
27665 * optabs.c: Adjust.
27667 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27669 * defaults.h (gen_memory_barrier): New function.
27670 (HAVE_memory_barrier): Add default value.
27671 * optabs.c: Adjust.
27673 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27675 * defaults.h (gen_mem_thread_fence): New function.
27676 (HAVE_mem_thread_fence): Add default definition.
27677 * optabs.c: Adjust.
27679 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27681 * combine.c (find_split_point): Check the value of HAVE_lo_sum
27682 instead of if it is defined.
27683 (combine_simplify_rtx): Likewise.
27684 * lra-constraints.c (process_address_1): Likewise.
27685 * config/darwin.c: Adjust.
27686 * genconfig.c (main): Always define HAVE_lo_sum.
27688 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
27690 * genmatch.c (parser::parse_operation): Reject expanding
27691 operator-list inside 'for'.
27693 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
27695 * genmatch.c (parser::parse_for): Reject iterator if used as
27698 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
27700 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
27701 after end of id-list.
27703 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
27705 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
27706 we do not try to compute canonical type for type that does not need
27708 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
27710 * tree.h (type_with_alias_set_p): New.
27712 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
27714 * tree.c (gimple_canonical_types_compatible_p): Do not compare
27715 function attributes.
27716 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
27718 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
27720 * Makefile.in (check_gcc_parallelize): Delete.
27721 (lang_checks_parallelized): Update comment.
27723 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
27725 PR rtl-optimization/66237
27726 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
27727 location of an "as_a" cast.
27729 2015-05-22 Jeff Law <law@redhat.com>
27731 * config/pa/pa.md (non-canonical shift-add insns): Remove.
27732 (peepholes with non-canonical RTL sources): Remove.
27733 (peepholes for indexed stores of FP regs in integer modes): Match and
27734 generate canonical RTL.
27736 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
27738 PR tree-optimization/63387
27739 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
27740 ((x ord x) & (y ord y) -> (x ord y),
27741 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
27742 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
27743 vectors like scalars.
27745 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
27747 * convert.c (convert_to_integer, convert_to_vector): Include the
27748 types in the error message.
27750 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
27752 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
27755 2015-05-22 Jeff Law <law@redhat.com>
27757 * config/pa/pa.md (integer_indexed_store splitters): Use
27758 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
27759 insns -- adjusting the constant 2nd operand accordingly.
27761 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
27762 (plus (ashift X log2) Y) if it is a split point.
27764 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
27765 out of hppa_legitimize_address to handle both forms of a multiply
27767 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
27768 Always generate the ASHIFT variant as the result is not directly
27769 used in a MEM. Update comments and refactor slightly to improve
27772 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27775 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
27776 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
27777 (aarch64_composite_type_p): Return false if given type and mode are
27778 for a short vector.
27780 2015-05-22 Richard Biener <rguenther@suse.de>
27782 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
27784 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
27785 patterns when determining whether SLP is pure.
27786 (vect_is_slp_reduction): Remove check for pattern stmts.
27787 (vect_is_simple_reduction_1): Remove dead code.
27788 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
27789 (vect_get_and_check_slp_defs): Pass in the stmt number.
27790 Allow the first def in a reduction to be not a pattern stmt when
27791 the rest of the stmts def are patterns.
27792 (vect_build_slp_tree_1): Allow tcc_expression codes like
27793 SAD_EXPR and DOT_PROD_EXPR.
27794 (vect_build_slp_tree): Adjust.
27795 (vect_analyze_slp): Refactor and move BB vect error message ...
27796 (vect_slp_analyze_bb_1): ... here.
27798 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
27800 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
27801 for CSWTCH temporary.
27803 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27805 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
27806 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
27809 2015-05-22 Richard Biener <rguenther@suse.de>
27811 PR tree-optimization/66251
27812 * tree-vect-stmts.c (vectorizable_conversion): Properly
27813 set STMT_VINFO_VEC_STMT even for the SLP case.
27815 2015-05-22 Marek Polacek <polacek@redhat.com>
27817 * doc/extend.texi: Use @pxref instead of @xref.
27819 2015-05-22 hiraditya <hiraditya@msn.com>
27821 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
27824 2015-05-22 Richard Biener <rguenther@suse.de>
27826 PR tree-optimization/65701
27827 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
27828 Move peeling cost models into one place. Peel for alignment
27829 for single loads only if an aligned load is cheaper than
27832 2015-05-22 Marek Polacek <polacek@redhat.com>
27835 * doc/extend.texi (Enumerator Attributes): New section.
27836 Document syntax of enumerator attributes.
27838 2015-05-22 Richard Biener <rguenther@suse.de>
27840 * tree-vect-loop.c (get_reduction_op): New function.
27841 (vect_model_reduction_cost): Use it, add reduc_index parameter.
27842 Make ready for BB reductions.
27843 (vect_create_epilog_for_reduction): Use get_reduction_op.
27844 (vectorizable_reduction): Init reduc_index to a valid value.
27845 Adjust vect_model_reduction_cost call.
27846 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
27847 operand for reduction defaults. Add SAD_EXPR support.
27848 Assert we have a neutral op for SLP reductions.
27849 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
27850 walking pattern stmt ops only recurse to SSA names.
27852 2015-05-22 Richard Biener <rguenther@suse.de>
27854 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
27855 assert with guard, remove check on detected reduction.
27856 (vect_recog_sad_pattern): Likewise.
27857 (vect_recog_widen_sum_pattern): Likewise.
27859 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27861 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
27862 __always_inline__ attribute.
27863 (vaesdq_u8): Likewise.
27864 (vaesmcq_u8): Likewise.
27865 (vaesimcq_u8): Likewise.
27866 (vsha1cq_u32): Likewise.
27867 (vsha1mq_u32): Likewise.
27868 (vsha1pq_u32): Likewise.
27869 (vsha1h_u32): Likewise.
27870 (vsha1su0q_u32): Likewise.
27871 (vsha1su1q_u32): Likewise.
27872 (vsha256hq_u32): Likewise.
27873 (vsha256h2q_u32): Likewise.
27874 (vsha256su0q_u32): Likewise.
27875 (vsha256su1q_u32): Likewise.
27876 (vmull_p64): Likewise.
27877 (vmull_high_p64): Likewise.
27879 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27881 * final.c (final_scan_insn): Don't check HAVE_peephole with the
27883 * output.h: Likewise.
27884 * genconfig.c (main): Alwways define HAVE_peephole.
27885 * genpeep.c: Don't emit checks of HAVE_peephole.
27887 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27889 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
27890 check HAVE_conditional_move with the preprocessor.
27892 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27894 * genconfig.c (main): Always define HAVE_conditional_move.
27895 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
27896 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
27899 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27901 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
27902 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
27903 and FRAME_POINTER_REGNUM with the preprocessor.
27905 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27907 * defaults.h: Add default for STACK_PUSH_CODE.
27908 * expr.c: Don't redefine STACK_PUSH_CODE.
27909 * recog.c: Likewise.
27911 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27913 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
27914 sched-deps.c: Use if instead of preprocessor checks with
27915 STACK_GROWS_DOWNWARD.
27917 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27919 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
27921 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
27922 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
27923 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
27924 * doc/tm.texi: Regenerate.
27926 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
27929 * config/i386/constraints.md (Bg): New constraint for GOT memory
27931 * config/i386/i386.md (*call_got_x32): New pattern.
27932 (*call_value_got_x32): Likewise.
27933 * config/i386/predicates.md (GOT_memory_operand): New predicate.
27935 2015-05-21 Jakub Jelinek <jakub@redhat.com>
27937 PR tree-optimization/66233
27938 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
27941 2015-05-21 Jeff Law <law@redhat.com>
27943 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
27944 than MULT for shadd sequences.
27946 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
27948 * alias.c (alias_stats): New static var.
27949 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
27950 (dump_alias_stats_in_alias_c): New function.
27951 * alias.h (dump_alias_stats_in_alias_c): Declare.
27952 * tree-ssa-alias.c (dump_alias_stats): Call it.
27954 2015-05-08 Michael Matz <matz@suse.de>
27956 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
27958 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
27959 (STMT_VINFO_STRIDED_P): ... this.
27960 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
27961 (vect_verify_datarefs_alignment): Likewise.
27962 (vect_enhance_data_refs_alignment): Likewise.
27963 (vect_analyze_data_ref_access): Likewise.
27964 (vect_analyze_data_refs): Accept strided stores.
27965 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
27966 (vect_model_load_cost): Adjust for macro rename.
27967 (vectorizable_mask_load_store): Likewise.
27968 (vectorizable_load): Likewise.
27969 (vectorizable_store): Open code strided stores.
27971 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27973 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
27974 Document sqrt_insn.
27976 2015-05-21 Richard Biener <rguenther@suse.de>
27979 * match.pd: Guard pattern optimzing (int)(float)int
27980 conversions to apply only on GIMPLE.
27982 2015-05-21 Jeff Law <law@redhat.com>
27984 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
27985 multiply-accumulate/shift-add insn generation.
27987 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
27990 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
27991 operands[1] are the same.
27993 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
27995 PR middle-end/66221
27996 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
27997 build_distinct_type_copy to copy bounds.
27999 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
28001 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
28002 Change to unsigned int.
28004 2015-05-20 Jeff Law <law@redhat.com>
28006 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
28007 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
28008 (pa_shadd_constant_p): Allow constants for shadd insns rather
28009 than valid scaling constants for memory addresses.
28010 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
28011 * config/pa/predicates.md (mem_shadd_operand): New predicate.
28012 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
28013 (shift-add insns using ASHIFT): New patterns.
28015 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
28017 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
28019 (fix_up_fall_thru_edges): Likewise.
28020 (fix_crossing_conditional_branches): Likewise. Promote jump targets
28021 from to rtx_insn to rtx_code_label where feasible.
28022 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
28023 gen_move_insn (returned type changed to rtx_insn).
28024 * builtins.c (expand_errno_check): Fix arguments of
28025 do_compare_rtx_and_jump (now expects rtx_code_label).
28026 (expand_builtin_acc_on_device): Likewise.
28027 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
28028 invert_jump (now exprects rtx_jump_insn).
28029 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
28030 (construct_init_block): Use rtx_code_label.
28031 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
28032 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
28033 calling redirect_jump.
28034 (patch_jump_insn): Likewise.
28035 (redirect_branch_edge): Likewise.
28036 (force_nonfallthru_and_redirect): Likewise.
28037 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
28039 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
28040 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
28041 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
28042 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
28043 to store the value retured by gen_label_rtx.
28044 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
28046 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
28047 (split_branches): Fix calls of redirect_jump.
28048 * dojump.c (jumpifnot): Promote argument type from rtx to
28050 (jumpifnot_1): Likewise.
28051 (jumpif): Likewise.
28052 (jumpif_1): Likewise.
28053 (do_jump_1): Likewise.
28054 (do_jump): Likewise. Use rtx_code_label when feasible.
28055 (do_jump_by_parts_greater_rtx): Likewise.
28056 (do_jump_by_parts_zero_rtx): Likewise.
28057 (do_jump_by_parts_equality_rtx): Likewise.
28058 (do_compare_rtx_and_jump): Likewise.
28059 * dojump.h: Update function prototypes.
28060 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
28062 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
28064 (emit_label_before): Likewise.
28065 (emit_jump_insn_after_noloc): Likewise.
28066 (emit_jump_insn_after_setloc): Likewise.
28067 (emit_jump_insn_after): Likewise
28068 (emit_jump_insn_before_setloc): Likewise.
28069 (emit_jump_insn_before): Likewise.
28070 (emit_label_before): Promote return type to rtx_code_label.
28071 (emit_label): Likewise.
28072 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
28073 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
28075 (emit_stack_restore): Likewise.
28076 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
28077 (do_cmp_and_jump): Likewise.
28078 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
28079 from rtx to rtx_code_label.
28080 (gen_move_insn_uncast): New function.
28081 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
28082 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
28083 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
28084 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
28085 invert_jump_1 and redirect_jump_1.
28086 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
28087 do_compare_rtx_and_jump.
28088 (expand_addsub_overflow): Likewise.
28089 (expand_neg_overflow): Likewise.
28090 (expand_mul_overflow): Likewise.
28091 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
28092 return value of gen_move_insn.
28093 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
28094 * loop-doloop.c (add_test): Use rtx_code_label.
28095 (doloop_modify): Likewise.
28096 (doloop_optimize): Likewise.
28097 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
28098 * lra-constraints.c (emit_spill_move): Remove cast of value returned
28100 (inherit_reload_reg): Add cast when calling dump_insn_slim.
28101 (split_reg): Likewise.
28102 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
28104 * optabs.c (expand_binop_directly): Remove casts of values returned by
28106 (expand_unop_direct): Likewise.
28107 (expand_abs): Likewise.
28108 (maybe_emit_unop_insn): Likewise.
28109 (maybe_gen_insn): Promote return type to rtx_insn.
28110 * optabs.h: Update prototype of maybe_gen_insn.
28111 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
28113 * recog.c (struct peep2_insn_data): Promote type of insn field to
28115 (peep2_reinit_state): Use NULL instead of NULL_RTX.
28116 (peep2_attempt): Remove casts of insn in peep2_insn_data.
28117 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
28118 * recog.h (struct insn_gen_fn): Promote return types of function
28119 pointers and operator ().from rtx to rtx_insn.
28120 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
28121 (fill_eager_delay_slots): Likewise.
28122 (relax_delay_slots): Likewise.
28123 (make_return_insns): Likewise.
28124 (dbr_schedule): Likewise.
28125 (optimize_skips): Likewise.
28126 (reorg_redirect_jump): Likewise.
28127 (fill_slots_from_thread): Likewise.
28128 * reorg.h: Update prototypes.
28129 * resource.c (find_dead_or_set_registers): Use dyn_cast to
28130 rtx_jump_insn instead of check. Use it's jump_target method.
28131 * rtl.h (rtx_jump_insn::jump_label): Define new method.
28132 (rtx_jump_insn::jump_target): Define new method.
28133 (rtx_jump_insn::set_jump_target): Define new method.
28134 * rtlanal.c (tablejump_p): Promote type of one local variable.
28135 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
28136 (sched_analyze_insn): Likewise.
28137 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
28138 (print_insn): Likewise.
28139 * stmt.c (label_rtx): Promote return type to rtx_insn.
28140 (force_label_rtx): Likewise.
28141 (jump_target_rtx): Define new function.
28142 (expand_label): Use it, get rid of one cast.
28143 (expand_naked_return): Promote rtx to rtx_code_label.
28144 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
28145 (expand_case): Use rtx_code_label instread of rtx where feasible.
28146 (expand_sjlj_dispatch_table): Likewise.
28147 (emit_case_nodes): Likewise.
28148 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
28149 * store-motion.c (insert_store): Make use of new return type of
28150 gen_move_insn and remove a cast.
28151 (replace_store_insn): Likewise.
28153 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
28155 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
28156 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
28158 2015-05-20 Jeff Law <law@redhat.com>
28160 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
28161 dispose of the jump thread path when the jump threading
28162 opportunity is cancelled.
28164 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
28166 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
28167 when printing the caret character.
28169 2015-05-20 Marek Polacek <polacek@redhat.com>
28171 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
28173 2015-05-20 Marek Polacek <polacek@redhat.com>
28175 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
28176 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
28177 * gimple-fold.c (canonicalize_bool): Likewise.
28178 (same_bool_result_p): Likewise.
28179 * tree-if-conv.c (parse_predicate): Likewise.
28181 2015-05-20 Marek Polacek <polacek@redhat.com>
28183 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
28184 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
28186 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28188 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
28189 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
28192 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
28194 * config/mips/mips.h (micromips_globals): Declare.
28196 2015-05-20 David Malcolm <dmalcolm@redhat.com>
28198 * timevar.def (TV_INITIALIZE_RTL): New.
28199 * toplev.c (initialize_rtl): Use an auto_timevar to account this
28200 function's time to TV_INITIALIZE_RTL.
28202 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
28204 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
28205 gimple_build_nop calls.
28206 (chkp_find_bounds_for_elem): Likewise.
28207 (chkp_get_zero_bounds): Likewise.
28208 (chkp_get_none_bounds): Likewise.
28209 (chkp_get_bounds_by_definition): Likewise.
28210 (chkp_generate_extern_var_bounds): Likewise.
28211 (chkp_get_bounds_for_decl_addr): Likewise.
28212 (chkp_get_bounds_for_string_cst): Likewise.
28214 2015-05-20 Bin Cheng <bin.cheng@arm.com>
28216 PR tree-optimization/65447
28217 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
28218 (dump_use, dump_uses): Support to dump sub use.
28219 (record_use): New parameters to support sub use. Remove call to
28221 (record_sub_use, record_group_use): New functions.
28222 (compute_max_addr_offset, split_all_small_groups): New functions.
28223 (group_address_uses, rewrite_use_address): New functions.
28224 (strip_offset): New declaration.
28225 (find_interesting_uses_address): Call record_group_use.
28226 (add_candidate): New assertion.
28227 (infinite_cost_p): Move definition forward.
28228 (add_costs): Check INFTY cost and return immediately.
28229 (get_computation_cost_at): Clear setup cost and dependent bitmap
28231 (determine_use_iv_cost_address): Compute cost for sub uses.
28232 (rewrite_use_address_1): Rename from old rewrite_use_address.
28233 (free_loop_data): Free sub uses.
28234 (tree_ssa_iv_optimize_loop): Call group_address_uses.
28236 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
28237 Jim Wilson <jim.wilson@linaro.org>
28239 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
28240 new fields loadv and storev.
28241 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
28242 Initialize loadv and storev.
28243 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
28244 (cortexa53_extra_costs): Likewise.
28245 (cortexa57_extra_costs): Likewise.
28246 (xgene1_extra_costs): Likewise.
28247 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
28250 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
28252 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
28254 (cortexa8_extra_costs): Likewise.
28255 (cortexa5_extra_costs): Likewise.
28256 (cortexa7_extra_costs): Likewise.
28257 (cortexa12_extra_costs): Likewise.
28258 (cortexa15_extra_costs): Likewise.
28259 (v7m_extra_costs): Likewise.
28261 2015-05-20 Jeff Law <law@redhat.com>
28263 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
28264 instead of open-coded version. Also delete the jump thread created
28265 within this function.
28267 2015-05-20 Alan Modra <amodra@gmail.com>
28269 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
28270 stack adjusting insn. Formatting.
28271 (rs6000_emit_prologue): Track stack adjusting insn, and use of
28272 r12. If possible, emit first -fsplit-stack arg pointer insn
28273 before stack adjust. Don't use r12 to save cr if split-stack.
28275 2015-05-20 Alan Modra <amodra@gmail.com>
28277 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
28279 (rs6000_supports_split_stack): New function.
28280 * config/rs6000/rs6000.c (machine_function): Add
28281 split_stack_arg_pointer.
28282 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
28283 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
28284 rather than virtual_incoming_args_rtx.
28285 (rs6000_va_start): Likewise.
28286 (split_stack_arg_pointer_used_p): New function.
28287 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
28288 (morestack_ref): New var.
28289 (gen_add3_const, rs6000_expand_split_stack_prologue,
28290 rs6000_internal_arg_pointer, rs6000_live_on_entry,
28291 rs6000_split_stack_space_check): New functions.
28292 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
28293 * config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
28294 (UNSPECV_SPLIT_STACK_RETURN): Define.
28295 (split_stack_prologue, load_split_stack_limit,
28296 load_split_stack_limit_di, load_split_stack_limit_si,
28297 split_stack_return, split_stack_space_check): New expands and insns.
28298 * config/rs6000/rs6000-protos.h
28299 (rs6000_expand_split_stack_prologue): Declare.
28300 (rs6000_split_stack_space_check): Declare.
28302 2015-05-20 Alan Modra <amodra@gmail.com>
28304 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
28305 (direct_return): Test vrsave_size rather than vrsave_mask.
28306 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
28307 (rs6000_emit_epilogue): Likewise.
28309 2015-05-20 Alan Modra <amodra@gmail.com>
28311 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
28312 when not saving registers.
28313 (debug_stack_info): Adjust to omit printing unused offsets,
28315 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
28318 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28321 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
28322 value_type to const char *.
28324 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
28326 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
28327 to build a biarch toolchain again.
28329 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
28331 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
28332 or implicit declarations.
28333 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
28335 (get_odr_type): Check type has linkage before adding bases.
28336 (register_odr_type): Check that type has linkage before adding it.
28337 (type_known_to_have_no_deriavations_p): Rename to ..
28338 (type_known_to_have_no_derivations_p): This one.
28339 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
28340 (type_known_to_have_no_derivations_p): This one.
28341 * ipa-polymorphic-call.c
28342 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
28345 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
28347 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
28348 (layout_type): Use RECORD_OR_UNION_TYPE_P.
28350 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28352 * config/s390/s390.c (s390_vector_bool_type_p): New function.
28353 (s390_invalid_binary_op): New function.
28354 (TARGET_INVALID_BINARY_OP): Define macro.
28356 2015-05-19 David Sherwood <david.sherwood@arm.com>
28358 * loop-invariant.c (create_new_invariant): Don't calculate address cost
28359 if mode is not a scalar integer.
28360 (get_inv_cost): Increase computational cost for unused invariants.
28362 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28364 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
28365 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
28366 * config/s390/s390-builtin-types.def: New file.
28367 * config/s390/s390-builtins.def: New file.
28368 * config/s390/s390-builtins.h: New file.
28369 * config/s390/s390-c.c: New file.
28370 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
28371 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
28372 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
28373 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
28375 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
28377 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
28378 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
28379 variable definitions.
28380 (s390_const_operand_ok): New function.
28381 (s390_expand_builtin): Rewrite.
28382 (s390_init_builtins): New function.
28383 (s390_handle_vectorbool_attribute): New function.
28384 (s390_attribute_table): Add s390_vector_bool attribute.
28385 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
28386 (s390_branch_condition_mask): Generate masks for new modes.
28387 (s390_expand_vec_compare_cc): New function.
28388 (s390_mangle_type): Add mangling for vector bool types.
28389 (enum s390_builtin): Remove.
28390 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
28392 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
28393 s390_cpu_cpp_builtins.
28394 (REGISTER_TARGET_PRAGMAS): New macro.
28395 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
28396 (insn_cmp mode attribute): Add new CC modes.
28397 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
28398 (lcbb): New pattern definition.
28399 * config/s390/s390intrin.h: Include vecintrin.h.
28400 * config/s390/t-s390: New file.
28401 * config/s390/vecintrin.h: New file.
28402 * config/s390/vector.md: Include vx-builtins.md.
28403 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
28406 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28408 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
28410 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
28411 (s390_select_ccmode): Likewise.
28412 (s390_canonicalize_comparison): Swap operands if necessary.
28413 (s390_expand_vec_compare_scalar): Expand DFmode compare using
28414 single element vector instructions.
28415 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
28416 (s390_branch_condition_mask): Generate CC masks for the new modes.
28417 * config/s390/s390.md (v0, vf, vd): New mode attributes.
28418 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
28419 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
28420 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
28421 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
28422 (*extend<DSF:mode><BFP:mode>2): New insn definition.
28423 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
28424 (extend<DSF:mode><BFP:mode>2): Turn into expander.
28425 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
28426 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
28427 (sqrt<mode>2): Add vector instruction.
28429 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28431 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
28433 * config/s390/predicates.md (const0_operand, constm1_operand)
28434 (constable_operand): Accept vector operands.
28435 * config/s390/s390-modes.def: Add supported vector modes.
28436 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
28437 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
28438 (s390_bytemask_vector_p, s390_expand_vec_strlen)
28439 (s390_expand_vec_compare, s390_expand_vcond)
28440 (s390_expand_vec_init): Add prototypes.
28441 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
28442 (s390_vector_mode_supported_p): New function.
28443 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
28444 (s390_contiguous_bitmask_vector_p): New function.
28445 (s390_bytemask_vector_p): New function.
28446 (s390_split_ok_p): Vector regs don't work either.
28447 (regclass_map): Add VEC_REGS.
28448 (s390_legitimate_constant_p): Handle vector constants.
28449 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
28450 (legitimate_reload_vector_constant_p): New function.
28451 (s390_preferred_reload_class): Handle CONST_VECTOR.
28452 (s390_reload_symref_address): Likewise.
28453 (s390_secondary_reload): Vector memory instructions only support
28454 short displacements. Rename reload*_nonoffmem* to reload*_la*.
28455 (s390_emit_ccraw_jump): New function.
28456 (s390_expand_vec_strlen): New function.
28457 (s390_expand_vec_compare): New function.
28458 (s390_expand_vcond): New function.
28459 (s390_expand_vec_init): New function.
28460 (s390_dwarf_frame_reg_mode): New function.
28461 (print_operand): Handle addresses with 'O' and 'R' constraints.
28462 (NR_C_MODES, constant_modes): Add vector modes.
28463 (s390_output_pool_entry): Handle vector constants.
28464 (s390_hard_regno_mode_ok): Handle vector registers.
28465 (s390_class_max_nregs): Likewise.
28466 (s390_cannot_change_mode_class): New function.
28467 (s390_invalid_arg_for_unprototyped_fn): New function.
28468 (s390_function_arg_vector): New function.
28469 (s390_function_arg_float): Remove size variable.
28470 (s390_pass_by_reference): Handle vector arguments.
28471 (s390_function_arg_advance): Likewise.
28472 (s390_function_arg): Likewise.
28473 (s390_return_in_memory): Vector values are returned in a VR if
28475 (s390_function_and_libcall_value): Handle vector arguments.
28476 (s390_gimplify_va_arg): Likewise.
28477 (s390_call_saved_register_used): Consider the arguments named.
28478 (s390_conditional_register_usage): Disable v16-v31 for non-vec
28480 (s390_preferred_simd_mode): New function.
28481 (s390_support_vector_misalignment): New function.
28482 (s390_vector_alignment): New function.
28483 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
28484 (TARGET_VECTOR_MODE_SUPPORTED_P)
28485 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
28486 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
28487 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
28488 (TARGET_VECTOR_ALIGNMENT): Define target macro.
28489 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
28490 (FIRST_PSEUDO_REGISTER): Increase value.
28491 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
28492 (VECTOR_REG_P): Define macros.
28493 (FIXED_REGISTERS, CALL_USED_REGISTERS)
28494 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
28495 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
28496 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
28497 Add vector registers.
28498 (CANNOT_CHANGE_MODE_CLASS): Call C function.
28499 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
28500 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
28502 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
28503 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
28504 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
28505 (VR*_REGNUM): New constants.
28506 (ALL): New mode iterator.
28507 (INTALL): Remove mode iterator.
28509 (movti): Implement TImode moves for VRs.
28510 Disable TImode splitter for VR targets.
28511 Implement splitting TImode GPR<->VR moves.
28512 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
28513 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
28514 reload<mode>_la_in, reload<mode>_la_out.
28515 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
28516 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
28517 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
28518 (mov<mode> SF SD): Prefer lder, lde for loading.
28519 Add lrl and strl instructions.
28520 Add vector instructions.
28521 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
28522 Call s390_expand_vec_strlen on z13.
28523 (*cc_to_int): Change predicate to nonimmediate_operand.
28524 (addti3): Rename to *addti3. New expander.
28525 (subti3): Rename to *subti3. New expander.
28526 * config/s390/vector.md: New file.
28528 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28530 * common/config/s390/s390-common.c (processor_flags_table): Add
28532 * config.gcc: Add z13.
28533 * config/s390/s390-opts.h (enum processor_type): Add
28534 PROCESSOR_2964_Z13.
28535 * config/s390/s390.c (s390_adjust_priority): Check for
28536 PROCESSOR_2964_Z13.
28537 (s390_reorg): Likewise.
28538 (s390_sched_reorder): Likewise.
28539 (s390_sched_variable_issue): Likewise.
28540 (s390_loop_unroll_adjust): Likewise.
28541 (s390_option_override): Likewise. Default to -mvx when available.
28542 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
28543 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
28544 (TARGET_VX_ABI): Define macros.
28546 (TARGET_DEFAULT): Add MASK_OPT_VX.
28547 * config/s390/s390.md ("cpu" attribute): Add z13.
28548 ("cpu_facility" attribute): Add vec.
28549 * config/s390/s390.opt (processor_type): Add z13.
28550 (mvx): New options.
28551 * doc/invoke.texi: Add z13 option for -march.
28553 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28555 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
28556 mode check to make sure that only scalar integer values are
28559 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
28561 * tree.c (verify_type_variant): Fix #undef.
28562 (gimple_canonical_types_compatible_p): Move here from lto.c
28563 (verify_type): Verify TYPE_CANONICAL compatibility.
28564 * tree.h (gimple_canonical_types_compatible_p): Declare.
28566 2015-05-19 Jakub Jelinek <jakub@redhat.com>
28568 PR middle-end/66199
28569 * tree.h (OMP_TEAMS_COMBINED): Define.
28570 * gimplify.c (enum gimplify_omp_var_data): Add
28571 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
28572 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
28573 (omp_notice_variable): Accept both ORT_TEAMS
28574 and ORT_COMBINED_TEAMS. Don't recurse if
28575 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
28576 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
28578 (omp_no_lastprivate): New function.
28579 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
28580 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
28581 notice_outer and set appropriate bits, otherwise make
28582 sure default(none) combined constructs won't complain.
28583 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
28584 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
28585 omp_no_lastprivate either remove the clause or turn it
28586 into OMP_CLAUSE_PRIVATE.
28587 (gimplify_omp_for): Fix up handling of implicit
28588 lastprivate or linear iterators.
28589 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
28590 ORT_COMBINED_TEAMS.
28591 * omp-low.c (lower_omp_for_lastprivate): For combined
28592 for simd use fd.loop.n2 from the for rather than simd.
28594 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
28596 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
28597 instead of gen_rtx_raw_REG.
28598 (cris_expand_epilogue): Likewise.
28599 * config/microblaze/microblaze.c (microblaze_classify_address):
28601 * config/sparc/sparc.md: Likewise.
28603 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
28605 * config/alpha/alpha.c (alpha_legitimize_reload_address)
28606 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
28607 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
28608 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
28609 Use CASE_CONST_SCALAR_INT.
28610 (print_operand) <case 'M'>: Use mode_width_operand to check the
28611 value of the constant.
28612 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
28613 * config/alpha/predicates.md (input_operand): Use general_operand
28614 instead of match_code as operand check.
28615 (symbolic_operand): Use match_code with subexpression digits.
28616 * config/alpha/constraints.md (Q): Ditto.
28618 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28620 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
28622 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28624 * config/s390/s390.c (s390_secondary_reload): Fix check for
28625 load/store relative.
28627 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28629 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
28630 alternative_mask to uint64_t.
28632 2015-05-19 Jakub Jelinek <jakub@redhat.com>
28634 PR tree-optimization/66187
28635 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
28636 Pass TYPE_SIGN to tree_int_cst_min_precision. If
28637 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
28639 2015-05-19 David Malcolm <dmalcolm@redhat.com>
28641 * diagnostic.c (diagnostic_report_current_module): Strengthen
28642 local "new_map" from const line_map * to
28643 const line_map_ordinary *.
28644 * genmatch.c (error_cb): Likewise for local "map".
28645 (output_line_directive): Likewise for local "map".
28646 * input.c (expand_location_1): Likewise for local "map".
28647 Pass NULL rather than &map to
28648 linemap_unwind_to_first_non_reserved_loc, since the value is never
28649 read from there, and the value written back not read from here.
28650 (is_location_from_builtin_token): Strengthen local "map" from
28651 const line_map * to const line_map_ordinary *.
28652 (dump_location_info): Strengthen locals "map" from
28653 line_map *, one to const line_map_ordinary *, the other
28654 to const line_map_macro *.
28655 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
28656 const line_map * to const line_map_macro *.
28657 (maybe_unwind_expanded_macro_loc): Add a call to
28658 linemap_check_macro when writing to the "map" field of the
28660 Introduce local const line_map_ordinary * "ord_map", using it in
28661 place of "map" in the part of the function where we know we have
28662 an ordinary map. Strengthen local "m" from const line_map * to
28663 const line_map_ordinary *.
28665 2015-05-19 Nick Clifton <nickc@redhat.com>
28668 * config/msp430/msp430.md (zero_extendhisi2): Add support for
28669 separate source and destination registers.
28671 2015-05-19 Richard Biener <rguenther@suse.de>
28673 PR tree-optimization/66165
28674 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
28675 for no load permutation.
28677 PR tree-optimization/66185
28678 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
28679 when building the SLP node from scalars.
28681 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
28682 Tristan Gingold <gingold@adacore.com>
28684 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
28685 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
28686 (expand_stack_restore): Call record_new_stack_level.
28687 (expand_stack_save): Do not call do_pending_stack_adjust.
28688 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
28689 * calls.c (expand_call): Call record_new_stack_level for alloca.
28690 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
28691 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
28692 (update_sjlj_context): New global function.
28693 * except.h (update_sjlj_context): Declare.
28694 * explow.c (record_new_stack_level): New global function.
28695 (allocate_dynamic_stack_space): Call record_new_stack_level.
28696 * explow.h (record_new_stack_level): Declare.
28697 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
28698 * cfgrtl.c (duplicate_insn_chain): Likewise.
28700 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28702 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
28703 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
28704 STACK_GROWS_DOWNWARD as normal if.
28705 (expand_call): Likewise.
28707 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
28710 * config/sh/sh.md (*round_int_even): New insn_and_split and
28711 accompanying new unnamed split.
28713 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
28715 * bitmap.c (bitmap_set_range): Handle count==1 specially.
28716 (bitmap_clear_range): Likewise.
28717 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
28718 bitmap_set_range unconditionally.
28719 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
28720 * df-scan.c (df_mark_reg): Likewise.
28721 * haifa-sched.c (setup_ref_regs): Likewise.
28722 * sched-rgn.c (update_live_1): Likewise.
28724 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
28726 * regs.h (END_HARD_REGNO): Delete.
28727 (END_REGNO): Move to...
28729 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
28730 * caller-save.c (mark_set_regs): Likewise.
28731 * combine.c (move_deaths, distribute_notes): Likewise.
28732 * cse.c (invalidate, invalidate_for_call): Likewise.
28733 * df-scan.c (df_ref_record): Likewise.
28734 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
28735 (record_last_reg_set_info): Likewise.
28736 * reg-stack.c (convert_regs_exit): Likewise.
28737 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
28738 * resource.c (update_live_status): Likewise.
28739 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
28741 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
28743 * rtl.h (reg_info): Add an nregs field.
28744 (REG_NREGS): Use it.
28745 (SET_REGNO_RAW): Delete.
28746 (set_regno_raw): New function.
28747 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
28748 (END_REGNO): Redefine in terms of REG_NREGS.
28749 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
28751 * emit-rtl.c (set_mode_and_regno): Likewise.
28752 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
28753 instead of SET_REGNO_RAW.
28755 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
28757 * rtl.h (PUT_MODE_RAW): New macro.
28758 (PUT_REG_NOTE_KIND): Use it.
28759 (set_mode_and_regno): Declare.
28760 (gen_raw_REG): Change regno to "unsigned int".
28761 (gen_rtx_REG): Change "unsigned" to "unsigned int".
28762 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
28763 use set_mode_and_regno to change the mode of registers.
28764 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
28765 * emit-rtl.c (set_mode_and_regno): New function.
28766 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
28767 * caller-save.c (reg_save_code): Use set_mode_and_regno.
28768 * expr.c (init_expr_target): Likewise.
28769 * ira.c (setup_prohibited_mode_move_regs): Likewise.
28770 * postreload.c (reload_cse_simplify_operands): Likewise.
28772 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
28774 * caller-save.c (init_caller_save): Use word_mode and
28775 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
28776 * expr.c (init_expr_target): Likewise.
28777 * ira.c (setup_prohibited_mode_move_regs): Likewise.
28778 * postreload.c (reload_cse_regs_1): Likewise.
28780 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
28782 * rtl.def (REG): Change format to "r".
28783 * rtl.h (rtunion): Remove rt_reg.
28784 (reg_info): New structure.
28785 (rtx_def): Add reg field to main union.
28786 (X0REGATTR): Delete.
28787 (REG_CHECK): New macro.
28788 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
28789 * rtl.c (rtx_format): Document "r".
28790 (rtx_code_size): Handle REG specially.
28791 * gengenrtl.c (special_format): Return true for formats
28793 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
28794 Deal with REG_ATTRS after the field loop.
28795 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
28796 * expmed.c (init_expmed): Call gen_raw_REG instead of
28798 * expr.c (init_expr_target): Likewise.
28799 * regcprop.c (maybe_mode_change): Likewise.
28800 * varasm.c (make_decl_rtl): Likewise.
28801 * final.c (leaf_renumber_regs_insn): Return early after
28803 * genemit.c (gen_exp): Handle 'r' fields.
28804 * genpeep.c (match_rtx): Likewise.
28805 * gensupport.c (subst_pattern_match): Likewise.
28806 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
28807 (alter_constraints, subst_dup): Likewise.
28808 * read-rtl.c (read_rtx_code): Likewise.
28809 * print-rtl.c (print_rtx): Likewise.
28810 * genrecog.c (find_operand, find_matching_operand): Likewise.
28811 (validate_pattern, match_pattern_2): Likewise.
28812 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
28813 (rtx_test::regno_field): New function.
28814 (operator ==, safe_to_hoist_p, transition_parameter_type)
28815 (parameter_type_string, print_parameter_value)
28816 (print_nonbool_test, print_test): Handle new enum values.
28817 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
28818 * lra-constraints.c (operands_match_p): Likewise.
28820 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
28822 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
28823 Change type of new_regno to unsigned int.
28824 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
28825 new_regno to unsigned int.
28826 (df_ref_change_reg_with_loc): Remove old_regno parameter.
28827 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
28828 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
28829 (SET_REGNO_RAW): Add space after ",".
28831 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
28833 * rtl.h (REG_NREGS): New macro
28834 * alias.c (record_set): Use it.
28835 * cfgcleanup.c (mark_effect): Likewise.
28836 * combine.c (likely_spilled_retval_1): Likewise.
28837 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
28838 (move_deaths, distribute_notes): Likewise.
28839 * cselib.c (cselib_record_set): Likewise.
28840 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
28841 * df-scan.c (df_mark_reg): Likewise.
28842 * dse.c (look_for_hardregs): Likewise.
28843 * dwarf2out.c (reg_loc_descriptor): Likewise.
28844 (multiple_reg_loc_descriptor): Likewise.
28845 * expr.c (write_complex_part, read_complex_part): Likewise.
28846 (emit_move_complex): Likewise.
28847 * haifa-sched.c (setup_ref_regs): Likewise.
28848 * ira-lives.c (mark_hard_reg_live): Likewise.
28849 * lra.c (lra_set_insn_recog_data): Likewise.
28850 * mode-switching.c (create_pre_exit): Likewise.
28851 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
28852 (reload_combine_recognize_pattern): Likewise.
28853 (reload_combine_note_use, move2add_record_mode): Likewise.
28854 (reload_cse_move2add): Likewise.
28855 * reg-stack.c (subst_stack_regs_pat): Likewise.
28856 * regcprop.c (kill_value, copy_value): Likewise.
28857 (copyprop_hardreg_forward_1): Likewise.
28858 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
28859 (build_def_use): Likewise.
28860 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
28861 (deps_analyze_insn): Likewise.
28862 * sched-rgn.c (check_live_1, update_live_1): Likewise.
28863 * sel-sched.c (count_occurrences_equiv): Likewise.
28864 * valtrack.c (dead_debug_insert_temp): Likewise.
28866 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
28868 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
28869 * dse.c (note_add_store): Likewise.
28870 * ira-lives.c (mark_hard_reg_dead): Likewise.
28871 * loop-invariant.c (mark_reg_store): Likewise.
28872 (mark_reg_death): Likewise.
28873 * postreload.c (reload_combine): Likewise.
28874 (reload_combine_note_store): Likewise.
28875 (reload_combine_note_use): Likewise.
28876 * recog.c (peep2_reg_dead_p): Likewise.
28878 2015-05-19 Alan Modra <amodra@gmail.com>
28880 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
28881 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
28882 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
28884 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
28885 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
28886 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
28887 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
28889 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
28891 * config/mips/mips.md (JOIN_MODE): New mode iterator.
28892 (join2_load_Store<JOIN_MODE:mode>): New pattern.
28893 (join2_loadhi): Likewise.
28894 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
28895 load-load and store-stores.
28896 * config/mips/mips.opt (mload-store-pairs): New option.
28897 (TARGET_LOAD_STORE_PAIRS): New macro.
28898 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
28899 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
28900 * config/mips/mips.c (mips_load_store_bonding_p): New function.
28902 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
28904 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
28906 * dojump.c (do_compare_rtx_and_jump): Likewise.
28907 * expmed.c (emit_store_flag_1): Likewise.
28908 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
28909 * final.c (sprint_ul): Use std::reverse for reversing a string.
28910 * fold-const.c (extract_muldiv_1): Use std::swap.
28911 * genmodes.c (emit_mode_int_n): Likewise.
28912 * ifcvt.c (dead_or_predicable): Likewise.
28913 * ira-build.c (ira_merge_live_ranges): Likewise.
28914 (swap_allocno_copy_ends_if_necessary): Likewise.
28915 * ira.c (ira_setup_alts): Likewise.
28916 * loop-iv.c (iv_analyze_expr): Likewise.
28917 (implies_p): Likewise.
28918 (canon_condition): Likewise.
28919 * lra-constraints.c (swap_operands): Likewise.
28920 * lra-lives.c (lra_merge_live_ranges): Likewise.
28921 * omega.c (swap): Remove.
28923 (omega_unprotect_1): Use std::swap.
28924 (omega_solve_geq): Likewise.
28925 * optabs.c (expand_binop_directly): Likewise.
28926 (expand_binop): Likewise.
28927 (emit_conditional_move): Likewise.
28928 (emit_conditional_add): Likewise.
28929 * postreload.c (reload_cse_simplify_operands): Likewise.
28930 * reg-stack.c (emit_swap_insn): Likewise.
28931 (swap_to_top): Likewise.
28932 (compare_for_stack_reg): Likewise.
28933 (subst_asm_stack_regs): Likewise.
28934 * reload.c (find_reloads): Likewise.
28935 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
28936 * sel-sched.c (invoke_reorder_hooks): Likewise.
28937 (create_block_for_bookkeeping): Likewise.
28938 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
28939 (lambda_matrix_right_hermite): Use std::swap.
28940 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
28941 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
28942 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
28943 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
28944 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
28945 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
28946 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
28947 * tree-vrp.c (compare_ranges): Likewise.
28948 * var-tracking.c (add_with_sets): Likewise.
28949 (vt_find_locations): Likewise.
28951 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
28953 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
28955 (FBSD_ENDFILE_SPEC): Likewise.
28956 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
28957 config/freebsd-spec.h.
28958 (ENDFILE_SPEC): Likewise.
28960 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
28961 Richard Henderson <rth@redhat.com>
28964 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
28965 Check for a memory location that is not a reference (using an AND)
28966 to an unaligned location here.
28967 * config/alpha/predicates.md (normal_memory_operand): Remove.
28969 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
28971 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
28972 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
28974 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
28976 * config/mips/mips.c (micromips_globals): New variable.
28977 (mips_set_compression_mode): Save and reinitialize target-dependent
28978 state for microMIPS.
28980 2015-05-18 Martin Liska <mliska@suse.cz>
28982 * dbgcnt.def: Add new counter.
28983 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
28985 2015-05-18 Martin Liska <mliska@suse.cz>
28987 * dbgcnt.def: Sort counters.
28988 * opts.c (common_handle_option): Do not compile if
28989 -fdbg-cnt-list is enabled.
28991 2015-05-18 Tom de Vries <tom@codesourcery.com>
28993 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
28994 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
28995 address operator to va_list operand.
28996 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
28998 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
29000 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
29001 * config/s390/s390.c (s390_gimplify_va_arg): Same.
29002 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
29004 2015-05-18 Tom de Vries <tom@codesourcery.com>
29006 * tree-ssa-tail-merge.c: Fix whitespace.
29008 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
29010 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
29011 cortex-a17, and cortex-a17.cortex-a7.
29013 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
29016 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
29018 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
29021 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
29022 QImode inner modes for TARGET_AVX512BW. Force mask operand
29023 to a register for AVX512F modes.
29025 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
29027 * toplev.c (emit_debug_global_declarations): Do not output debug info
29028 when doing slim LTO objects.
29030 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
29032 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
29033 odr_types_equivalent_p): Declare.
29034 (odr_type_p): Use gcc_checking_assert.
29035 (type_in_anonymous_namespace_p) Declare.
29036 (type_with_linkage_p): Declare.
29037 * common.opt (Wlto-type-mismatch): New warning.
29038 * ipa-devirt.c (compound_type_base): New function.
29039 (odr_or_derived_type_p): New function.
29040 (odr_types_equivalent_p): New function.
29041 (add_type_duplicate): Simplify.
29042 (type_with_linkage_p): Add hack to prevent false positives on C types
29043 (type_in_anonymous_namespace_p): Likewise.
29044 * tree.c (need_assembler_name_p): Use type_with_linkage.
29045 * tree.h (type_in_anonymous_namespace_p): Remove.
29046 * doc/invoke.texi (-Wlto-type-mismatch): Document
29048 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
29050 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
29051 (verify_type): Verify STRING_FLAG.
29053 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
29056 * tree-pretty-print.c (percent_K_format): Replace locus pointer
29057 with accessor function.
29058 * tree-diagnostic.c (diagnostic_report_current_function): Use
29059 diagnostic_location function.
29060 (maybe_unwind_expanded_macro_loc): Likewise.
29061 (virt_loc_aware_diagnostic_finalizer): Likewise.
29062 (default_tree_printer): Replace locus pointer with accessor function.
29063 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
29064 (diagnostic_set_info_translated): Initialize second location.
29065 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
29066 (diagnostic_show_locus): Handle two locations. Call
29067 diagnostic_print_caret_line.
29068 (diagnostic_print_caret_line): New.
29069 (default_diagnostic_starter): Use diagnostic_location function.
29070 (diagnostic_report_diagnostic): Use diagnostic_location function.
29071 (verbatim): Do not set text.locus.
29072 * diagnostic.h (struct diagnostic_info): Remove location field.
29073 (struct diagnostic_context): Make caret_chars an array of two.
29074 (diagnostic_location): New inline.
29075 (diagnostic_expand_location): Handle two locations.
29076 (diagnostic_same_line): New inline.
29077 (diagnostic_print_caret_line): Declare.
29078 (CARET_LINE_MARGIN): New constant.
29079 * pretty-print.c (pp_printf): Do not set text.locus.
29080 (pp_verbatim): Do not set text.locus.
29081 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
29082 (struct text_info): Replace locus pointer with locations
29083 array. Add accessor functions.
29085 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
29086 Zhenqiang Chen <zhenqiang.chen@linaro.org>
29089 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
29090 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
29091 large constants in register instead of splitting them.
29093 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
29096 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
29097 replacements in memory addresses.
29098 (get_unaligned_address): Ditto.
29100 2015-05-16 James Bowman <james.bowman@ftdichip.com>
29102 * config/ft32/*: New files for FT32 port.
29103 * doc/install.texi: Add FT32 information.
29104 * doc/invoke.texi: Add FT32 information.
29105 * doc/md.texi: Add FT32 information.
29106 * doc/contrib.texi: Self added.
29108 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
29110 PR tree-optimization/64454
29111 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
29112 (-1 - A -> ~A): Remove unnecessary condition.
29114 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
29116 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
29117 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
29118 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
29120 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
29122 * ipa-chkp.h (chkp_wrap_function): New.
29123 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
29124 (chkp_wrap_function_name): New.
29125 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
29126 to get wrapper name.
29127 * lto-cgraph.c: Include ipa-chkp.h.
29128 (input_cgraph_1): Avoid alias chain for wrappers.
29130 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
29132 PR middle-end/66134
29133 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
29134 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
29136 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29138 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
29139 (AARCH64_FL_SLOWMUL): Delete.
29140 (AARCH64_FL_CRC): Redefine to 1<<3.
29141 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
29143 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29145 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
29148 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
29150 * config/alpha/alpha.md (extendqidi2): Use general_operand
29151 instead of some_operand for operand[1] predicate.
29152 (extendhidi2): Ditto.
29153 (cbranchdi4): Use general_operand instead of some_operand
29154 for operand[1] and operands[2] predicates.
29155 (cstoredi4): Ditto.
29156 * config/alpha/predicates.md (some_operand): Remove unused predicate.
29157 (some_ni_operand): Ditto.
29159 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
29161 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
29162 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
29163 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
29164 low part of the constant using alpha_emit_set_const_1.
29165 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
29167 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
29169 * varasm.c (output_constant_pool_1): Pass down alignment from
29170 constant pool entry's descriptor to output_constant_pool_2.
29171 (output_object_block): Add comment prior to call to
29172 output_constant_pool_1.
29174 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
29176 PR rtl-optimization/65862
29177 * target.def (ira_change_pseudo_allocno_class): New hook.
29178 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
29180 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
29181 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
29183 * ira-costs.c (find_costs_and_classes): Call the hook and change
29184 classes when it is necessary.
29185 * doc/tm.texi: Update.
29187 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
29189 * config/i386/i386.md (sibcall_memory): Check that register with
29190 callee address is not also used as one of the arguments, instead
29191 of checking that it is not live after the sibcall.
29192 (sibcall_pop_memory): Ditto.
29193 (sibcall_value_memory): Ditto.
29194 (sibcall_value_pop_memory): Ditto.
29196 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
29198 * generic-match-head.c (types_match): Handle non-types.
29199 * gimple-match-head.c (types_match): Likewise.
29200 * match.pd: Remove unnecessary TREE_TYPE for types_match.
29202 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
29204 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
29205 (csneg3<mode>_insn): Enable expansion of pattern.
29207 2015-05-14 Nick Clifton <nickc@redhat.com>
29209 * config/rl78/rl78.c (rl78_select_section): Select the correct
29210 default section based upon the category of the decl.
29212 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
29214 PR rtl-optimization/30967
29215 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
29216 destination mode for the cost of scc patterns.
29218 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
29220 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
29221 using SWIM248 mode iterator.
29222 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
29223 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
29224 for operand[2] constraint.
29225 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
29227 2015-05-13 Jakub Jelinek <jakub@redhat.com>
29229 PR middle-end/66133
29230 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
29231 make sure it is never noreturn, even when the task body does not
29233 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
29234 right before GIMPLE_OMP_RETURN.
29235 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
29236 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
29237 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
29239 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29241 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
29242 * tree-ssa-math-opts.c: Include params.h
29243 (pow_synth_sqrt_info): New struct.
29244 (representable_as_half_series_p): New function.
29245 (get_fn_chain): Likewise.
29246 (print_nested_fn): Likewise.
29247 (dump_fractional_sqrt_sequence): Likewise.
29248 (dump_integer_part): Likewise.
29249 (expand_pow_as_sqrts): Likewise.
29250 (gimple_expand_builtin_pow): Use above to attempt to expand
29251 pow as series of square roots. Removed now unused variables.
29253 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
29255 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
29256 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
29257 Remove *p0 and *p1 arguments. Rewrite function.
29258 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
29259 (alpha_split_const_mov): Update calls to alpha_extract_integer and
29260 alpha_emit_set_long_const.
29261 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
29262 (alpha_output_mi_thunk_osf): Ditto.
29263 * config/alpha/alpha.md (movti): Do not check operands[1]
29266 2015-05-13 Richard Biener <rguenther@suse.de>
29268 PR tree-optimization/66129
29269 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
29271 (vect_schedule_slp_instance): Fix typo.
29273 2015-05-13 David Malcolm <dmalcolm@redhat.com>
29275 * common.opt (fdump-internal-locations): New option.
29276 * input.c: Include diagnostic-core.h.
29277 (get_end_location): New function.
29278 (write_digit): New function.
29279 (write_digit_row): New function.
29280 (dump_location_range): New function.
29281 (dump_labelled_location_range): New function.
29282 (dump_location_info): New function.
29283 * input.h (dump_location_info): New prototype.
29284 * toplev.c (compile_file): Handle flag_dump_locations.
29286 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
29288 * gimple-expr.h (is_gimple_constant): Reorder.
29289 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
29291 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
29293 * combine.c (simplify_set): When generating a CC set, if the
29294 source already is in the correct mode, do not wrap it in a
29295 compare. Simplify the rest of that code.
29297 2015-05-13 Richard Biener <rguenther@suse.de>
29299 PR tree-optimization/66123
29300 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
29303 2015-05-13 Richard Biener <rguenther@suse.de>
29305 PR middle-end/66110
29306 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
29308 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
29310 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
29312 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
29313 * aclocal.m4: Regenerated with automake-1.11.6.
29315 2015-05-13 Tom de Vries <tom@codesourcery.com>
29317 PR tree-optimization/66010
29318 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
29319 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
29320 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
29321 and rval based on do_deref.
29323 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
29326 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
29327 link time constants into adress expressions and therefore set
29330 2015-05-13 Jakub Jelinek <jakub@redhat.com>
29333 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
29334 Use SWI248 iterator instead of SWI.
29335 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
29336 Use eq_attr "alternative" "0" instead of match_test in
29337 length_immediate attribute computation.
29338 (*mulvhi4, *mulvhi4_1): New define_insns.
29341 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
29342 SIGNED to get precision of non-negative value.
29344 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
29347 * function.c (diddle_return_value_1): Process bounds first.
29348 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
29351 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
29353 PR rtl-optimization/64616
29354 * loop-invariant.c (can_move_invariant_reg): New.
29355 (move_invariant_reg): Call above new function to decide whether
29356 instruction can just be moved, skipping creation of temporary
29359 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
29361 PR target/pr66047.c
29362 * i386.c (ix86_function_sseregparm): Only return -1 if local function
29363 with implied regparm is called from -mno-sse function.
29364 (init_cumulative_args): Output error if ix86_function_sseregparm
29365 return -1 and SSE register would be needed.
29366 (function_arg_advance_32): Likewise.
29367 (function_arg_32): Likewise.
29368 * i386.h (ix86_args): Add decl field.
29370 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
29373 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
29374 inlines across optimization boundary.
29376 2015-05-12 Jason Merrill <jason@redhat.com>
29378 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
29379 string literal and macro name.
29381 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
29383 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
29384 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
29385 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
29387 2015-05-12 David Malcolm <dmalcolm@redhat.com>
29389 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
29390 (-Wmisleading-indentation): New option.
29391 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
29393 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
29395 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
29396 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
29397 (alpha_extract_integer): Ditto.
29398 (alpha_legitimate_constant_p): Ditto.
29399 (alpha_split_tmode_pair): Ditto.
29400 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
29401 (alpha_expand_mov): Ditto.
29402 (print_operand): Remove handling of 'H' modifier.
29403 <case 'm'>: Remove CONST_DOUBLE handling.
29404 (summarize_insn): Handle CONST_WIDE_INT.
29405 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
29407 (movti): Handle CONST_WIDE_INT.
29408 * config/alpha/constraints.md ('H'): Remove constraint definition.
29409 ('G'): Do not match MODE_FLOAT class.
29410 * config/alpha/predicates.md (const0_operand): Also match
29412 (non_add_const_operand): Ditto.
29413 (non_zero_const_operand): Ditto.
29414 (some_operand): Ditto.
29415 (input_operand): Ditto. Handle CONST_WIDE_INT.
29416 (and_operand): Do not match const_double.
29417 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
29419 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
29422 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
29423 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
29424 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
29425 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
29426 is_mm_seq_cst, is_mm_sync): New accessor functions.
29427 * builtins.c (expand_builtin_sync_operation,
29428 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
29429 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
29430 (get_memmodel, expand_builtin_atomic_compare_exchange,
29431 expand_builtin_atomic_load, expand_builtin_atomic_store,
29432 expand_builtin_atomic_clear): Use new accessor routines.
29433 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
29434 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
29435 (maybe_emit_sync_lock_test_and_set): Use new accessors and
29436 MEMMODEL_SYNC_ACQUIRE.
29437 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
29438 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
29439 expand_atomic_store): Use new accessors.
29440 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
29441 * tsan.c (instrument_builtin_call): Update check for memory model beyond
29442 final enum to use MEMMODEL_LAST.
29443 * c-family/c-common.c: Use new accessor for memmodel_base.
29444 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
29446 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
29447 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
29448 mem_thread_fence, *dmb): Likewise.
29449 * config/alpha/alpha.c (alpha_split_compare_and_swap,
29450 alpha_split_compare_and_swap_12): Likewise.
29451 * config/arm/arm.c (arm_expand_compare_and_swap,
29452 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
29453 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
29454 atomic_loaddi): Likewise.
29455 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
29457 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
29458 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
29460 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
29461 atomic_store<mode>, atomic_compare_and_swap<mode>,
29462 atomic_exchange<mode>): Use new accessors.
29463 * config/mips/mips.c (mips_process_sync_loop): Likewise.
29464 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
29465 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
29466 rs6000_post_atomic_barrier): Add new cases.
29467 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
29468 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
29469 (atomic_load<mode>): Add new cases and use new accessors.
29470 (store_quadpti): Add new cases.
29471 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
29473 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
29474 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
29477 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
29479 * ipa-devirt.c (type_with_linkage_p): New function.
29480 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
29482 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
29483 (can_be_name_hashed_p): Simplify.
29484 (hash_odr_name): Check that type has linkage before checking if it is
29486 (types_same_for_odr): Likewise.
29487 (odr_name_hasher::equal): Likewise.
29488 (odr_subtypes_equivalent_p): Likewise.
29489 (warn_types_mismatch): Likewise.
29490 (get_odr_type): Likewise.
29491 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
29492 * ipa-utils.h (odr_type_p): Move offline.
29493 * tree.c (need_assembler_name_p): Fix handling of types
29495 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
29497 2015-05-12 David Malcolm <dmalcolm@redhat.com>
29499 * timevar.c (timevar_enable): Delete in favor of...
29500 (g_timer): New global.
29501 (struct timevar_def): Move to timevar.h inside class timer.
29502 (struct timevar_stack_def): Likewise.
29503 (timevars): Delete global in favor of field "m_timevars" within
29504 class timer in timevar.h
29505 (stack): Likewise, in favor of field "m_stack".
29506 (unused_stack_instances): Likewise, in favor of field
29507 "m_unused_stack_instances".
29508 (start_time): Likewise, in favor of field "m_start_time".
29509 (get_time): Eliminate check for timevar_enable.
29510 (timer::timer): New function, built from part of timevar_init.
29511 (timevar_init): Rewrite idempotency test from using
29512 "timevar_enable" bool to using dynamic allocation of "g_timer".
29513 Move rest of implementation into timer's constructor.
29514 (timevar_push_1): Rename to...
29515 (timer::push): ...this, adding "m_" prefixes to variables that
29516 are now fields of timer.
29517 (timevar_pop_1): Likewise, rename to...
29518 (timer::pop): ...this, and add "m_" prefixes.
29519 (timevar_start): Replace test for "timevar_enable" with one for
29520 "g_timer", and move bulk of implementation to...
29521 (timer::start): ...here, adding "m_" prefixes.
29522 (timevar_stop): Likewise, from here...
29523 (timer::stop): ...to here.
29524 (timevar_cond_start): Likewise, from here...
29525 (timer::cond_start): ...to here.
29526 (timevar_cond_stop): Likewise, from here...
29527 (timer::cond_stop): ...to here.
29528 (validate_phases): Rename to...
29529 (timer::validate_phases): ...this, and add "m_" prefixes. Make
29530 locals "total" and "tv" const.
29531 (timevar_print): Rename to...
29532 (timer::print): ...this, and add "m_" prefixes. Make locals
29533 "total" and "tv" const. Eliminate test for timevar_enable.
29534 * timevar.h (timevar_enable): Eliminate.
29535 (g_timer): New declaration.
29536 (timevar_push_1): Eliminate.
29537 (timevar_pop_1): Eliminate.
29538 (timevar_print): Eliminate.
29539 (class timer): New class.
29540 (timevar_push): Rewrite to use g_timer.
29541 (timevar_pop): Likewise.
29542 * toplev.c (toplev::~toplev): Likewise.
29544 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
29546 * arm-protos.h (arm_sched_autopref): Delete.
29547 (tune_params): Re-organize, use enums for flag values.
29548 (FUSE_OPS): New macro.
29549 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
29550 (ARM_PREFETCH_BENEFICIAL): Likewise.
29551 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
29552 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
29553 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
29554 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
29555 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
29556 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
29557 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
29558 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
29560 (arm_option_override, thumb2_reorg, arm_print_tune_info)
29561 (aarch_macro_fusion_pair_p): Update uses of current_tune.
29562 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
29564 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
29566 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
29569 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
29570 Sandra Loosemore <sandra@codesourcery.com>
29572 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
29574 (REG_CLASS_NAMES): Add "IJMP_REGS".
29575 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
29576 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
29577 use new "c" register constraint.
29578 * config/nios2/constraint.md (c): New register constraint
29579 corresponding to IJMP_REGS.
29581 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
29583 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
29584 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
29585 define_splits): Delete, revamp, transmogrify into ...
29586 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
29587 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
29588 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
29591 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
29593 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
29594 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
29596 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
29598 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
29599 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
29600 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
29601 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
29602 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
29603 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
29604 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
29605 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
29606 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
29607 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
29608 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
29609 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
29610 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
29611 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
29612 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
29613 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
29614 and 30 corresponding splitters): Delete.
29616 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
29618 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
29621 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
29623 * combine.c (recog_for_combine_1): New function, factored out
29624 from recog_for_combine.
29625 (change_zero_ext): New function.
29626 (recog_for_combine): If recog fails, try again with the pattern
29627 modified by change_zero_ext; if that still fails, restore the
29630 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
29632 * combine.c (get_undo_marker): New function.
29633 (undo_to_marker): New function, largely factored out from ...
29634 (undo_all): ... this. Adjust.
29636 2015-05-12 Richard Biener <rguenther@suse.de>
29638 PR tree-optimization/66101
29639 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
29640 fixup if we turn a loop exit edge to a fallthru edge.
29642 2015-05-12 Richard Biener <rguenther@suse.de>
29644 PR tree-optimization/37021
29645 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
29646 (SLP_TREE_TWO_OPERATORS): New define.
29647 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
29648 SLP_TREE_TWO_OPERATORS.
29649 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
29651 (vect_build_slp_tree): Adjust.
29652 (vect_analyze_slp_cost_1): Likewise.
29653 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
29654 emitting two vector stmts and mixing the results.
29656 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
29658 * call.c (print_z_candidates): Remove dead code.
29660 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29662 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
29663 and zEC12_simple_fp.
29664 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
29667 2015-05-12 Tom de Vries <tom@codesourcery.com>
29669 PR tree-optimization/66010
29670 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
29672 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
29673 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
29674 va_lists are passed, and remove corresponding handling.
29675 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
29676 do_deref argument to ifn_va_arg.
29677 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
29680 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29683 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
29684 REG before taking its REGNO.
29686 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
29688 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
29689 rsp->sign_bit_copies and rsp->nonzero_bits into ...
29690 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
29691 present to get more accurate information about the number of sign bit
29692 copies and non zero bits.
29694 2015-05-12 Richard Biener <rguenther@suse.de>
29696 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
29697 do not allow unrolling.
29699 2015-05-11 Richard Henderson <rth@redhat.com>
29701 * config/i386/i386-modes.def (CCP): New.
29702 * config/i386/i386.c (put_condition_code): Handle it.
29703 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
29705 2015-05-11 Richard Henderson <rth@redhat.com>
29707 * target.def (md_asm_clobbers): Replace with...
29708 (md_asm_adjust): this.
29709 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
29710 (TARGET_MD_ASM_ADJUST): New.
29711 * tm.texi: Rebuild.
29712 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
29713 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
29714 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
29716 * cfgexpand.c (check_operand_nalternatives): Accept vector of
29717 constraints instead of lists of outputs and inputs.
29718 (expand_asm_stmt): Save and restore input_location around the
29719 body of the function. Move asm data into vectors instead of
29720 building tree lists. Generate cleanup sequences as needed,
29721 rather than waiting til the end. Use new md_asm_adjust hook.
29723 * config/vxworks.c: Include vec.h before target.h.
29724 * gimple.c: Likewise.
29725 * incpath.c: Likewise.
29726 * mode-switching.c: Likewise.
29728 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
29729 (cris_md_asm_adjust): this.
29730 (TARGET_MD_ASM_CLOBBERS): Remove.
29731 (TARGET_MD_ASM_ADJUST): New.
29732 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
29733 (ix86_md_asm_adjust): this.
29734 (TARGET_MD_ASM_CLOBBERS): Remove.
29735 (TARGET_MD_ASM_ADJUST): New.
29736 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
29737 (mn10300_md_asm_adjust): this.
29738 (TARGET_MD_ASM_CLOBBERS): Remove.
29739 (TARGET_MD_ASM_ADJUST): New.
29740 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
29741 (rs6000_md_asm_adjust): this.
29742 (TARGET_MD_ASM_CLOBBERS): Remove.
29743 (TARGET_MD_ASM_ADJUST): New.
29744 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
29745 (visium_md_asm_adjust): this.
29746 (TARGET_MD_ASM_CLOBBERS): Remove.
29747 (TARGET_MD_ASM_ADJUST): New.
29749 2015-05-11 Richard Henderson <rth@redhat.com>
29751 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
29752 if noutputs is zero.
29753 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
29755 * cfgexpand.c (expand_asm_operands): Merge into...
29756 (expand_asm_stmt): ... here.
29758 * cfgexpand.c (expand_asm_operands): Don't call
29759 resolve_asm_operand_names.
29760 * stmt.c (resolve_asm_operand_names): Clarify block comment.
29762 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
29764 * dwarf2out.c (gen_member_die): Sanity check that we access
29765 TYPE_MAIN_VARIANT for TYPE_METHODS.
29766 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
29767 checking TYPE_METHODS.
29768 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
29770 (build_distinct_type_copy): Clear TYPE_METHODS.
29771 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
29772 (verify_type): Allow TYPE_METHODS to be error_mark_node.
29773 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
29775 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
29777 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
29778 (emit_pattern_before_setloc): Likewise.
29780 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
29782 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
29783 for define_peephole2s.
29784 (get_peephole2_pattern): New function.
29785 (main): Use it. Call validate_pattern.
29787 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
29789 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
29790 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
29791 (Last callee saved reg is different for AVR_TINY architecture)
29793 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
29795 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
29796 when looking for memory references.
29798 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
29801 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
29802 via function pointers.
29804 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
29806 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
29807 indirect call by forcing address into a pseudo with -fno-plt.
29808 * common.opt (flag_plt): New option.
29809 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
29810 ([-fno-plt]): Document.
29812 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
29815 * config/rs6000/option-defaults.h: Add space between string literal
29818 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
29820 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
29821 accross ARM targets.
29823 2015-05-11 Christian Bruel <christian.bruel@st.com>
29825 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
29826 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
29828 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
29830 PR rtl-optimization/66076
29831 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
29832 Don't grow the heap array if it is already big enough from a
29833 previous iteration.
29835 2015-05-11 Christian Bruel <christian.bruel@st.com>
29837 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
29838 (is_called_in_ARM_mode): Remove.
29839 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
29840 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
29841 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
29842 arm_declare_function_name.
29844 2015-05-11 Christian Bruel <christian.bruel@st.com>
29846 * config/arm/arm.c (arm_option_override): Reoganized and split into :
29847 (arm_option_params_internal); New function.
29848 (arm_option_check_internal): New function.
29849 (arm_option_override_internal): New function.
29850 (thumb_code, thumb1_code): Remove.
29851 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
29852 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
29853 (thumb_code, thumb1_code): Remove.
29854 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
29856 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
29858 * config/alpha/alpha.c (alpha_emit_set_const_1)
29859 (alpha_emit_set_long_const, alpha_extract_integer)
29860 (alpha_legitimate_constant_p, alpha_split_const_mov)
29861 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
29862 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
29863 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
29865 * config/alpha/predicates.md (mode_mask_operand): Do not match
29867 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
29868 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
29869 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
29870 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
29871 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
29873 2015-05-11 Jakub Jelinek <jakub@redhat.com>
29876 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
29877 default_binds_local_p_2.
29878 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
29879 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
29881 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
29883 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
29885 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
29887 Patch by Richard Biener
29888 * coverage.c (coverage_obj_init): Delay building of type variant
29889 until the type is finished.
29891 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
29893 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
29894 mismatch between C and C++ type; compoare correctly ARG_TYPES
29895 for non-prototypes and output correctly parameter index for METHOD_TYPE.
29896 (odr_types_equivalent_p): Fix wording of warning about attributes;
29897 it is OK to match prototype and non-prototype.
29899 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
29901 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
29902 TYPE_ARG_TYPES list.
29903 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
29904 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
29906 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
29908 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
29909 * tree.h (is_lang_specific): Constify.
29911 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
29913 PR tree-optimization/64454
29914 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
29917 2015-05-08 Jason Merrill <jason@redhat.com>
29919 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
29920 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
29921 config/darwin.h, config/darwin9.h, config/elfos.h,
29922 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
29923 config/microblaze/microblaze.h, config/mips/mips.h,
29924 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
29925 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
29926 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
29927 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
29928 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
29929 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
29930 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
29931 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
29932 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
29933 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
29934 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
29935 between string literal and macro name.
29937 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29939 * jump.c: Change argument types to rtx_insn *.
29942 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29944 * lra-constraints.c: Change argument type to rtx_insn *.
29946 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29948 * df-problems.c: Change argument type to rtx_insn *.
29950 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29952 * combine.c: Change argument type to rtx_insn *.
29954 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29957 * rtlanal.c: Change argument type to rtx_insn *.
29959 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29961 * sched-deps.c: Change argument types to rtx_insn *.
29962 * sched-int.h: Adjust.
29964 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29966 * dwarf2cfi.c: Change argument type to rtx_insn *.
29968 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29970 * ira.c (decrease_live_ranges_number): Changetype of local
29971 variable to rtx_insn *.
29972 * recog.c: Change argument types to rtx_insn *.
29975 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29977 * reorg.c: Change argument types to rtx_insn *.
29979 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29981 * ira-color.c: Change argument types to rtx_insn *.
29982 * lra-eliminations.c: Likewise.
29985 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29987 * gcse.c: Change argument types to rtx_insn *.
29989 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29991 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
29993 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29995 * emit-rtl.c (emit_debug_insn_before): Change argument type to
29999 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30001 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
30004 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30006 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
30009 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30011 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
30014 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30016 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
30019 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30021 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
30025 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30027 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
30031 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30033 * except.c (can_nonlocal_goto): Change type of argument to
30037 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30039 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
30042 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30044 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
30045 * cfgrtl.c (can_delete_label_p): Adjust.
30048 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30050 * reorg.c (stop_search_p): Change argument to rtx_insn *.
30052 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30054 * except.c (make_reg_eh_region_note): Change argument to
30056 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
30057 * except.h: Adjust.
30059 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30061 * mode-switching.c (commit_mode_sets): Change type of local
30062 variable from rtx to rtx_insn *.
30064 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
30066 * doc/install.texi (--enable-languages): Add missing jit and lto info.
30067 Add ^ to grep command.
30068 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
30069 arg to last gimple_simplify declaration. Add missing gimple_build
30070 declaration for built-in function case with four tree args.
30072 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
30073 Szabolcs Nagy <szabolcs.nagy@arm.com>
30075 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
30076 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
30077 (GNU_USER_DYNAMIC_LINKERN32): Update.
30079 2015-05-08 Richard Biener <rguenther@suse.de>
30081 PR tree-optimization/66036
30082 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
30083 Handle strided group loads.
30084 (vect_verify_datarefs_alignment): Likewise.
30085 (vect_enhance_data_refs_alignment): Likewise.
30086 (vect_analyze_group_access): Likewise.
30087 (vect_analyze_data_ref_access): Likewise.
30088 (vect_analyze_data_ref_accesses): Likewise.
30089 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
30090 (vectorizable_load): Likewise.
30092 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
30094 * config/rs6000/rs6000.md: Require operand inequality in one
30097 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
30098 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
30100 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
30102 * config/rx/rx.md (movdi, movdf): Likewise.
30103 Likewise for define_peephole2s.
30105 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
30107 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
30108 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
30109 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
30110 vtst_u64): Rewrite using gcc vector extensions.
30112 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
30114 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
30115 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
30117 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
30119 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
30121 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
30123 * config/glibc-stdint.h (OPTION_MUSL): Define.
30124 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
30125 Change the definition based on OPTION_MUSL for 64 bit targets.
30126 * config/linux.h (OPTION_MUSL): Redefine.
30127 * config/alpha/linux.h (OPTION_MUSL): Redefine.
30128 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
30129 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
30131 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
30132 Szabolcs Nagy <szabolcs.nagy@arm.com>
30134 * config.gcc (LIBC_MUSL): New tm_defines macro.
30135 * config/linux.h (OPTION_MUSL): Define.
30136 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
30137 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
30138 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
30139 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
30140 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
30141 * config/linux.opt (mmusl): New option.
30142 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
30143 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
30144 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
30145 * configure: Regenerate.
30147 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
30148 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
30151 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
30152 * config/i386/knetbsd-gnu64.h: New file.
30154 2015-05-08 Marek Polacek <polacek@redhat.com>
30157 * doc/invoke.texi: Document -Woverride-init-side-effects.
30159 2015-05-07 Marek Polacek <polacek@redhat.com>
30162 * doc/invoke.texi: Document -Wshift-negative-value.
30164 2015-05-06 Aditya Kumar <hiraditya@msn.com>
30166 * gcov-tool.c (do_merge): Refactore to remove int ret.
30167 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
30168 !type == FUNC to type != FUNC.
30169 * reload.h (struct target_reload): Changee to type of
30170 x_spill_indirect_levels from bool to unsigned char.
30172 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
30174 * rtl.h (always_void_p): New function.
30175 * gengenrtl.c (always_void_p): Likewise.
30176 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
30177 with code foo are always VOIDmode.
30178 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
30179 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
30180 compare-elim.c, config/aarch64/aarch64.c,
30181 config/aarch64/aarch64.md, config/alpha/alpha.c,
30182 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
30183 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
30184 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
30185 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
30186 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
30187 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
30188 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
30189 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
30190 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
30191 config/ia64/vect.md, config/iq2000/iq2000.c,
30192 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
30193 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
30194 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
30195 config/mep/mep.c, config/microblaze/microblaze.c,
30196 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
30197 config/mn10300/mn10300.c, config/msp430/msp430.c,
30198 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
30199 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
30200 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
30201 config/rs6000/altivec.md, config/rs6000/rs6000.c,
30202 config/rs6000/rs6000.md, config/rs6000/vector.md,
30203 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
30204 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
30205 config/sh/sh.md, config/sh/sh_treg_combine.cc,
30206 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
30207 config/spu/spu.md, config/stormy16/stormy16.c,
30208 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
30209 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
30210 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
30211 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
30212 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
30213 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
30214 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
30215 var-tracking.c: Update calls accordingly.
30217 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
30220 PR middle-end/54303
30221 * varasm.c (function_mergeable_rodata_prefix): New function.
30222 (mergeable_string_section): Use it.
30223 (mergeable_constant_section): Use it.
30225 2015-05-07 Jeff Law <law@redhat.com>
30228 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
30229 simplifier to narrow arithmetic.
30230 * generic-match-head.c: (types_match, single_use): New functions.
30231 * gimple-match-head.c: (types_match, single_use): New functions.
30233 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
30235 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
30238 2015-05-07 Richard Biener <rguenther@suse.de>
30240 PR tree-optimization/66002
30241 * passes.def: Schedule another pass_merge_phi after ifcombine, right
30244 2015-05-07 Marek Polacek <polacek@redhat.com>
30245 Martin Uecker <uecker@eecs.berkeley.edu>
30247 * doc/invoke.texi: Document -fsanitize=bounds-strict.
30248 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
30249 into SANITIZE_NONDEFAULT.
30250 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
30252 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
30255 * config/alpha/alpha.c (alpha_override_options_after_change): New.
30256 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
30257 (alpha_override_options): Move align_loops, align_jumps and
30258 align_functions handling into alpha_override_options_after_change.
30260 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
30261 Chris Jones <chrisj@nvidia.com>
30262 Joshua Conner <jconner@nvidia.com>
30264 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
30265 linking of crtfastmath.o.
30266 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
30268 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
30270 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
30271 (cstore<mode>4_unsigned_imm): New expander.
30272 (cstore<mode>4): Remove empty constraint strings. Use the new
30275 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
30278 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
30281 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
30283 * config/aarch64/geniterators.sh: Use standard BRE in sed.
30285 2015-05-06 Alan Modra <amodra@gmail.com>
30288 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
30289 (UNSPEC_NOP): Define.
30290 (reload_vsx_from_gpr<mode>): Add missing DONE.
30291 (reload_gpr_from_vsx<mode>): Likewise.
30292 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
30293 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
30295 2015-05-06 Christian Bruel <christian.bruel@st.com>
30298 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
30299 align_jumps, align_functions into aarch64_override_options_after_change.
30301 2015-05-06 Richard Biener <rguenther@suse.de>
30303 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
30304 vect_transform_slp_perm_load to check if we support a permutation
30305 for basic-block vectorization.
30307 2015-05-06 Nick Clifton <nickc@redhat.com>
30309 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
30310 used, even if it is not being used as a frame pointer.
30312 2015-05-05 Jason Merrill <jason@redhat.com>
30314 * dwarf2out.c (gen_member_die): Don't emit anything for an
30315 anonymous class constructor.
30317 2015-05-05 David Malcolm <dmalcolm@redhat.com>
30319 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
30320 that it reflects the block structure.
30321 (afdo_propagate_edge): Likewise.
30322 (afdo_calculate_branch_prob): Likewise.
30323 (afdo_annotate_cfg): Likewise.
30324 * cfgcleanup.c (equal_different_set_p): Likewise.
30325 (try_crossjump_to_edge): Likewise.
30326 * cgraph.c (cgraph_node::verify_node): Likewise.
30327 * cgraphunit.c (expand_all_functions): Likewise.
30328 * config/i386/i386.c (ix86_expand_copysign): Likewise.
30329 (exact_dependency_1): Likewise.
30330 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
30331 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
30332 * gensupport.c (process_define_subst): Likewise.
30333 * lto-wrapper.c (merge_and_complain): Likewise.
30334 * tree-if-conv.c (if_convertible_bb_p): Likewise.
30335 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
30336 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
30337 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
30338 * tree-vect-loop.c (vectorizable_reduction): Likewise.
30339 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
30340 * tree-vect-stmts.c (vectorizable_shift): Likewise.
30341 * tree-vrp.c (vrp_finalize): Likewise.
30342 * tree.c (variably_modified_type_p): Likewise.
30344 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
30346 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
30347 on darwin12 and later.
30348 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
30349 file to pass -rdynamic on darwin12 and later.
30350 * config/darwin.opt (rdynamic): Add.
30352 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
30354 * doc/extend.texi (C Extensions): Update menu for moved Variable
30355 Attributes and Type Attributes sections.
30357 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
30360 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
30361 if rep_8byte stringop strategy was specified for 32-bit target.
30363 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
30366 * config/i386/i386.md (vector convert to float spltiter): Check for
30367 xmm16+, when splitting scalar float conversion.
30368 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
30370 2015-05-05 Nick Clifton <nickc@redhat.com>
30372 * config/msp430/msp430-opts.h (enum msp430_regions): New.
30373 * config/msp430/msp430.c (msp430_override_options): Complain if
30374 -mcode-region or -mdata-region is used on a non MSP430X.
30375 (msp430_section_attr): New function. Checks lower, upper and
30377 (msp430_attribute_table): Add lower, upper and either.
30378 (gen_prefix): New function. Generates a prefix for a section
30380 (msp430_select_section): New function - handles the choice of
30381 section for an object. Takes into account memory region
30382 attributes and options.
30383 (msp430_function_section): Use gen_prefix.
30384 (TARGET_SECTION_TYPE_FLAGS): Define.
30385 (msp430_section_type_flags): New function.
30386 (TARGET_ASM_UNIQUE_SECTION): Define.
30387 (msp430_unique_section): New function.
30388 (msp430_output_aligned_decl_common): New function.
30389 (msp430_do_not_relax_short_jumps): New function.
30390 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
30392 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
30393 * config/msp430/msp430-protos.h
30394 (msp430_do_not_relax_short_jumps): New prototype.
30395 (msp430_output_aligned_decl_common): New prototype.
30396 * config/msp430/msp430.md (length): New attribute.
30397 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
30398 then use a long code sequence for short jumps.
30399 * config/msp430/msp430.opt (mcode-region): New.
30400 (mdata-region): New.
30401 * doc/invoke.texi: Document new options.
30402 * doc/extend.texi: Document new attributes.
30404 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
30406 * config/aarch64-protos.h (struct cpu_branch_cost): New.
30407 (tune_params): Add field branch_costs.
30408 (aarch64_branch_cost): Declare.
30409 * config/aarch64.c (generic_branch_cost): New.
30410 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
30411 (cortexa53_tunings): Likewise.
30412 (cortexa57_tunings): Likewise.
30413 (thunderx_tunings): Likewise.
30414 (xgene1_tunings): Likewise.
30415 (aarch64_branch_cost): Define.
30416 * config/aarch64/aarch64.h (BRANCH_COST): Redefine.
30418 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
30420 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
30421 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
30422 * config/i386/i386.md: Ditto.
30423 * config/i386/winnt.c: Ditto.
30425 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
30427 * doc/extend.texi (__atomic Builtins): Move implementation details
30428 to the end of the description, rewrite opening paragraphs, state
30429 difference with __sync builtins, state C11/C++11 assumptions,
30430 weaken itemized descriptions, add explanation of memory model
30431 behaviour, expand description of compare-exchange, simplify text.
30433 2015-05-05 Renlin Li <renlin.li@arm.com>
30435 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
30437 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
30439 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
30440 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
30441 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
30442 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
30443 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
30444 * configure: Regenerate.
30445 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
30446 * doc/install.texi (aarch64*-*-*): Document new
30447 --enable-fix-cortex-a53-843419 option.
30448 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
30449 and -mno-fix-cortex-a53-843419 options.
30451 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
30454 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
30456 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
30458 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
30459 fix overactive TYPE_MIN_VALUE check and add FIXME for type
30460 compatibility problems.
30462 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
30464 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
30466 (cbranchsi4_reg): New.
30467 * config/microblaze/microblaze.c
30468 (microblaze_expand_conditional_branch_reg): New.
30469 * config/microblaze/microblaze-protos.h
30470 (microblaze_expand_conditional_branch_reg): New prototype.
30472 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
30474 * config/microblaze/microblaze.md (peephole2): New.
30476 2015-05-04 Jeff Law <law@redhat.com>
30479 2015-05-04 Jeff Law <law@redhat.com>
30481 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
30482 simplifier to narrow arithmetic.
30483 * generic-match-head.c: (types_match, single_use): New functions.
30484 * gimple-match-head.c: (types_match, single_use): New functions.
30486 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
30489 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
30490 (split_branches): Likewise.
30492 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
30494 * common.opt (fdelete-null-pointer-checks): Init to -1.
30495 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
30496 override flag_delete_null_pointer_checks default.
30497 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
30498 behavior re address zero. Better document target-specific behavior.
30499 (-fisolate-errneous-paths-dereference): Mention relationship to
30500 -fdelete-null-pointer-checks.
30502 2015-05-04 Jakub Jelinek <jakub@redhat.com>
30504 PR tree-optimization/65984
30505 * ubsan.c: Include tree-cfg.h.
30506 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
30507 stmt_could_throw_p test, rename can_throw variable to ends_bb.
30509 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
30511 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
30512 to CONST_DOUBLE_P predicate.
30513 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
30514 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
30515 allow only operands that satisfy standard_sse_constant_p predicate.
30516 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
30517 to CONST_DOUBLE_P predicate.
30519 2015-05-04 Jeff Law <law@redhat.com>
30521 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
30522 simplifier to narrow arithmetic.
30523 * generic-match-head.c: (types_match, single_use): New functions.
30524 * gimple-match-head.c: (types_match, single_use): New functions.
30526 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
30528 * config/arm/arm.c: Restore bootstrap.
30530 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
30532 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
30533 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
30534 as CONST_WIDE_INT, not CONST_DOUBLE.
30535 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
30536 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
30537 (ix86_find_base_term): Do not check for CONST_DOUBLE.
30538 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
30539 (ix86_build_signbit_mask): Rewrite using wide ints.
30540 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
30541 (ix86_rtx_costs): Handle CONST_WIDE_INT.
30542 (find_constant): Ditto.
30543 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
30544 using gen_int_mode.
30545 * config/i386/predicates.md (x86_64_immediate_operand)
30546 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
30547 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
30548 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
30549 (const0_operand): Also match const_wide_int.
30550 (constm1_operand): Ditto.
30551 (const1_operand): Ditto.
30553 2015-05-04 Richard Biener <rguenther@suse.de>
30555 PR tree-optimization/65965
30556 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
30557 store groups at gaps.
30559 2015-05-04 Richard Biener <rguenther@suse.de>
30561 PR tree-optimization/65935
30562 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
30563 then make sure to apply that swapping to the IL.
30565 2015-05-04 Jakub Jelinek <jakub@redhat.com>
30567 * Makefile.in (PATCHLEVEL_c): New variable.
30568 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
30569 expand the same way as if DEVPHASE_c was non-empty.
30571 2015-05-04 Kai Tietz <ktietz@redhat.com>
30574 * lto-wrapper.c (run_gcc): Open filename
30577 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
30579 * doc/extend.texi (Variable Attributes, Type Attributes): Move
30580 sections up in file, to immediately after the Function Attributes
30583 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
30585 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
30587 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30589 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
30590 (insert_partition_copy_on_edge): Adjust.
30591 (insert_rtx_to_part_on_edge): Likewise.
30592 (insert_part_to_rtx_on_edge): Likewise.
30594 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30596 * function.c (set_return_jump_label): Change type of argument to
30598 * function.h (set_return_jump_label): Adjust.
30600 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30602 * reload.h (struct reg_equivs_t): Change type of init to
30604 * ira.c (fix_reg_equiv_init): Adjust.
30605 * reload1.c (eliminate_regs_1): Likewise.
30606 (init_eliminable_invariants): Likewise.
30608 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30610 * cselib.c (fp_setter_insn): Take a rtx_insn *.
30611 * cselib.h (fp_setter_insn): Adjust.
30613 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30615 * recog.c (struct validate_replace_src_data): Change type of
30616 insn field to rtx_insn *.
30617 (validate_replace_src_group): Change type of argument to rtx_insn *.
30618 * recog.h (validate_replace_src_group): Adjust.
30620 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30622 * haifa-sched.c: Change the type of some variables to rtx_insn *.
30623 * sched-deps.c: Likewise.
30624 * sched-int.h: Likewise.
30625 * sched-rgn.c: Likewise.
30626 * sel-sched.c: Likewise.
30628 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30631 * config/i386/i386.c: Change the type of some arguments to
30633 * config/arm/arm.c: Likewise.
30635 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30637 * lra-constraints.c: Change type of some arguments to rtx_insn *.
30639 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30641 * regcprop.c (kill_autoinc_value): Change type of argument to
30644 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30646 * genrecog.c (print_subroutine): Adjust.
30647 * recog.c (get_bool_attr_mask_uncached): Likewise.
30648 * recog.h (struct recog_data_d): Change the type of insn to
30651 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30653 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
30655 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30657 * df-problems.c (df_set_note): Change type of argument to
30660 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30662 * builtins.c (expand_builtin_trap): Change type of local
30663 variable to rtx_insn *.
30664 (add_sched_insns_for_speculation): Likewise.
30665 (ix86_emit_save_regs): Likewise.
30666 (get_scratch_register_on_entry): Likewise.
30667 (ix86_emit_restore_reg_using_pop): Likewise.
30668 (ix86_emit_leave): Likewise.
30669 (ix86_emit_restore_regs_using_mov): Likewise.
30670 (ix86_expand_epilogue): Likewise.
30672 (rl78_alloc_physical_registers_umul): Likewise.
30673 * cselib.c (discard_useless_locs): Likewise.
30674 (cselib_invalidate_regno): Likewise.
30675 (cselib_invalidate_mem): Likewise.
30676 * function.c (expand_function_start): Likewise.
30677 (emit_use_return_register_into_block): Likewise.
30678 * gcse.c: Likewise.
30679 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
30680 * ifcvt.c (noce_get_alt_condition): Likewise.
30681 * loop-doloop.c (doloop_condition_get): Likewise.
30682 * lra-constraints.c (inherit_in_ebb): Likewise.
30683 * modulo-sched.c (sms_schedule_by_order): Likewise.
30684 * recog.c (next_insn_tests_no_inequality): Likewise.
30685 * reorg.c (emit_delay_sequence): Likewise.
30686 (update_reg_dead_notes): Likewise.
30687 (fix_reg_dead_note): Likewise.
30688 (fill_slots_from_thread): Likewise.
30689 (delete_computation): Likewise.
30691 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
30693 * doc/extend.texi (Variable Attributes): Add menu and proper
30694 @nodes to subsections. Move Microsoft Windows attributes to
30695 their own subsection.
30696 (Type Attributes): Reorganize introduction to remove duplicate
30697 list of attributes. Add menu and proper @nodes to subsections.
30698 Alphabetize the main table of common attributes.
30700 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
30702 * match.pd: New simplification patterns.
30703 (x + (x & 1)) -> ((x + 1) & ~1)
30704 (x & ~(x & y)) -> ((x & ~y))
30705 (x | ~(x | y)) -> ((x | ~y))
30707 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30709 * target.def (attribute_table): Mention that struct attribute_spec
30710 is defined in tree-core.h rather than tree.h
30711 * doc/tm.texi: Regenerate.
30713 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
30715 * genrecog.c (test): Rename to rtx_test. Update rest of file
30718 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
30720 PR translation/65959
30721 * params.h (DEFPARAM): Rename msgid to nocmsgid.
30723 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
30725 * config/aarch64/aarch64-protos.h (tune_params):
30726 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
30727 * config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
30728 Return value depending on target.
30729 (generic_tunings): Initialize new target settings.
30730 (cortexa53_tunings): Likewise.
30731 (cortexa57_tunings): Likewise.
30732 (thunderx_tunings): Likewise.
30733 (xgene1_tunings): Likewise.
30735 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
30737 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
30738 Make Cortex-A53 shift costs more accurate.
30740 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30742 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
30745 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
30747 * config/aarch64/aarch64.c (aarch64_rtx_costs):
30748 Calculate cost of op0 and op1 in PLUS and MINUS cases.
30750 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30752 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
30753 Add cost of op0 in the compare-with-fpzero case.
30755 2015-04-30 David Malcolm <dmalcolm@redhat.com>
30757 * builtins.c (fold_builtin_1): Remove spurious second
30759 * cgraph.h (symtab_node::get_availability): Likewise.
30760 * opts.c (common_handle_option): Remove spurious second semicolon.
30761 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
30762 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
30764 2015-04-30 Caroline Tice <cmtice@google.com>
30766 PR gcov-profile/65929
30767 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
30768 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
30769 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
30770 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
30771 * doc/tm.texi: Regenerate.
30772 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
30773 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
30774 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
30775 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
30777 2015-04-30 Marek Polacek <polacek@redhat.com>
30779 * varasm.c (handle_cache_entry): Fix logic.
30781 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30783 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
30784 (*extrsi5_insn_uxtw_alt): Likewise.
30785 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
30786 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
30789 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30791 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
30794 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30796 * config/aarch64/aarch64.md
30797 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
30798 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
30799 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
30800 appropriately. Handle alternative EON form.
30802 2015-04-30 Renlin Li <renlin.li@arm.com>
30804 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
30805 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
30807 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
30810 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
30811 -fstrict-aliasing boundaries.
30813 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30815 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
30816 and [SU]MNEGL patterns.
30818 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30820 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
30821 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
30822 combined arithmetic-shift ops. Properly handle all shift and extend
30823 operations that can occur in combination with PLUS/MINUS.
30824 Rename maybe_fma to compound_p.
30825 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
30826 arithmetic and shift operations.
30828 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30830 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
30831 rather than arith_shift cost when costing ADD/MINUS of an
30834 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
30837 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
30840 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
30842 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
30843 are for the same position.
30845 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
30847 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
30849 (vectorize_loops): Use it.
30851 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
30853 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
30854 for aggregate types.
30855 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
30856 type to be non_ODR.
30857 * tree.c (need_assembler_name_p): Compute mangled name for
30858 non-fundamental types and integer types.
30860 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
30862 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
30864 * expr.c (expand_expr_real_2): Likewise.
30866 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
30868 * tree.c (build_common_builtin_nodes): Do not build
30869 __builtin_alloca_with_align as equivalent of library alloca.
30871 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
30873 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
30874 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
30876 * tree.c: Include print-tree.h and ipa-utils.h
30877 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
30878 (free_lang_data_in_cgraph): Call verify_type.
30879 (verify_type_variant): New function.
30880 (verify_type): New function.
30881 * tree.h (verify_type): Declare.
30883 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
30885 * config/mips/mips-cpus.def: (mips4): Change default processor
30886 from PROCESSOR_R8000 to PROCESSOR_R10000.
30888 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
30890 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
30891 la/jalr instead of jal.
30893 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
30896 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
30897 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
30898 (setcc+movzbl peephole2): Check also clobbered reg.
30899 (setcc+andl peephole2): Ditto.
30901 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
30904 * config/nvptx/mkoffload.c (target_ilp32): New variable.
30905 (main): Set it depending on "-foffload-abi=[...]".
30906 (compile_native, main): Use it to pass "-m32" or "-m64" to the
30909 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
30912 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
30913 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
30914 Flip lane index back at assembly time for bigendian.
30916 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
30918 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
30919 * gimplify.c (gimplify_omp_workshare): Use it.
30921 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
30923 * Makefile.in (build/genrecog.o): Depend on inchash.h.
30924 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
30926 * genrecog.c: Rewrite most of the code except for the third page.
30928 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
30930 * inchash.h, inchash.c: Include bconfig.h for build objects.
30931 * Makefile.in (build/inchash.o): New rule.
30933 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
30936 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
30937 number in type attribute expression.
30939 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
30941 * loop-iv.c (canon_condition): Generalize to all types of integer
30944 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
30946 * gimple-walk.c: Prune duplicate or unneeded includes.
30947 (walk_gimple_asm): Only call parse_input_constraint or
30948 parse_output_constraint if their findings are used.
30949 Honour parse_input_constraint and parse_output_constraint
30952 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
30954 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
30956 2015-04-29 Tom de Vries <tom@codesourcery.com>
30958 PR tree-optimization/65893
30959 * passes.def (pass_all_optimizations): Move pass_stdarg to after
30962 2015-04-29 Richard Biener <rguenther@suse.de>
30964 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
30965 compute GROUP_SIZE for basic-block SLP.
30966 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
30967 take into account gaps.
30968 (vect_get_mask_element): Properly reject references to previous
30970 (vect_transform_slp_perm_load): Likewise.
30972 2015-04-29 Christian Bruel <christian.bruel@st.com>
30975 * config/i386/i386.c (ix86_default_align): New function.
30976 (ix86_override_options_after_change): Call ix86_default_align.
30977 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
30978 (ix86_override_options_after_change): New function.
30980 2015-04-28 Jeff Law <law@redhat.com>
30982 * tree-ssa-dom.c (record_equality); Fix comment typos.
30984 2015-04-28 Tom de Vries <tom@codesourcery.com>
30986 PR tree-optimization/65887
30987 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
30989 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
30991 * doc/extend.texi (Declaring Attributes of Functions): Split into
30992 subsections by target. Alphabetize the table of common attributes.
30993 Rewrite some of the introductory text to reflect the new structure.
30994 Update some cross-references to point to the new subsections.
30995 (Attribute Syntax): Put paragraph about "__" naming here. Remove
30996 duplicate copies in the discussion of function, label, and type
30999 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
31002 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
31004 2015-04-28 Jason Merrill <jason@redhat.com>
31007 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
31008 (finalize_type_size): Respect TYPE_USER_ALIGN.
31009 (layout_type) [ARRAY_TYPE]: Likewise.
31011 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
31013 * config/arm/arm.md (*arm_movt): Fix type attribute.
31014 (*cmpsi_shiftsi): Likewise.
31015 (*cmpsi_shiftsi_swp): Likewise.
31016 (*movsicc_insn): Likewise.
31017 (*cond_move): Likewise.
31018 (*if_plus_move): Likewise.
31019 (*if_move_plus): Likewise.
31020 (*if_arith_move): Likewise.
31021 (*if_move_arith): Likewise.
31022 (*if_shift_move): Likewise.
31023 (*if_move_shift): Likewise.
31024 (*arm_movtas_ze): Likewise.
31025 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
31026 redundancy and type attribute.
31027 (*thumb2_movsi_insn): Fix type attribute.
31028 (*thumb2_addsi_short): Likewise.
31029 (thumb2_addsi3_compare0): Likewise.
31030 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
31031 attributes accordingly.
31033 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
31036 * function.c (pad_to_arg_alignment): Add parentheses.
31038 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
31040 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
31041 libgcc/config/frv/elf-lib.h.
31043 2015-04-28 Tom de Vries <tom@codesourcery.com>
31045 * tree-call-cdce.c: Fix example in header comment.
31047 2015-04-28 Richard Biener <rguenther@suse.de>
31049 PR tree-optimization/62283
31050 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
31051 fails fatally and we are vectorizing a basic-block simply
31052 cause the child to be constructed piecewise.
31053 (vect_analyze_slp_cost_1): Adjust.
31054 (vect_detect_hybrid_slp_stmts): Likewise.
31055 (vect_bb_slp_scalar_cost): Likewise.
31056 (vect_get_constant_vectors): For piecewise constructed
31057 constants place them after the last def.
31058 (vect_get_slp_defs): Adjust.
31059 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
31060 externals for basic-block vectorization.
31062 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
31065 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
31067 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
31068 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
31069 (AARCH64_TUNE_FMA_STEERING): Likewise.
31070 * config/aarch64/aarch64-cores.def: Set
31071 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
31072 FMUL/FMADD instructions.
31073 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
31074 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
31075 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
31076 * config/aarch64/cortex-a57-fma-steering.h: New file.
31077 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
31079 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
31081 * gensupport.c (std_preds): Add missing codes to address_operand entry.
31083 2015-04-28 Richard Biener <rguenther@suse.de>
31085 PR tree-optimization/65851
31086 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
31087 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
31088 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
31089 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
31090 (ccp_visit_phi_node): Adjust.
31091 (evaluate_stmt): For simplifications to SSA names return its
31092 lattice value if that isn't VARYING. Return immediately when
31093 simplified to a constant.
31094 (visit_assignment): Adjust.
31095 (ccp_visit_stmt): Likewise.
31097 2015-04-28 Tom de Vries <tom@codesourcery.com>
31099 PR tree-optimization/65818
31100 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
31103 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31105 * calls.c (save_fixed_argument_area): Don't check
31106 ARGS_GROW_DOWNWARD with the preprocessor.
31107 (restore_fixed_argument_area): Likewise.
31108 (mem_overlaps_already_clobbered_arg_p): Likewise.
31109 (check_sibcall_argument_overlap): Likewise.
31110 (expand_call): Likewise.
31111 (emit_library_call_value_1): Likewise.
31112 (store_one_arg): Likewise.
31113 * function.c (assign_parms): Likewise.
31114 (locate_and_pad_parm): Likewise.
31115 (pad_to_arg_alignment): Likewise.
31116 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
31118 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31120 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
31121 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
31122 * calls.c (save_fixed_argument_area): Don't chekc if
31123 ARGS_GROW_DOWNWARD is defined.
31124 (restore_fixed_argument_area): Likewise.
31125 (mem_overlaps_already_clobbered_arg_p): Likewise.
31126 (check_sibcall_argument_overlap): Likewise.
31127 (expand_call): Likewise.
31128 (emit_library_call_value_1): Likewise.
31129 (store_one_arg): Likewise.
31130 * function.c (assign_parms): Likewise.
31131 (locate_and_pad_parm): Likewise.
31132 (pad_to_arg_alignment): Likewise.
31133 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
31135 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31137 * defaults.h (gen_epilogue): New function.
31138 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
31140 * cfgrtl.c (cfg_layout_finalize): Likewise.
31141 * df-scan.c: Likewise.
31142 * function.c (thread_prologue_and_epilogue_insns): Likewise.
31143 (reposition_prologue_and_epilogue_notes): Likewise.
31144 * reorg.c (find_end_label): Likewise.
31145 * toplev.c: Likewise.
31147 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31149 * bb-reorder.c (HAVE_return): Don't check if its undefined.
31150 * defaults.h (gen_simple_return): New function.
31151 (gen_simple_return): Likewise.
31152 (HAVE_return): Add default definition to false.
31153 (HAVE_simple_return): Likewise.
31154 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
31155 HAVE_return and HAVE_simple_return are defined.
31156 * function.c (gen_return_pattern): Likewise.
31157 (convert_jumps_to_returns): Likewise.
31158 (thread_prologue_and_epilogue_insns): Likewise.
31159 * reorg.c (find_end_label): Likewise.
31160 (dbr_schedule): Likewise.
31161 * shrink-wrap.c: Likewise.
31162 * shrink-wrap.h: Likewise.
31164 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31166 * defaults.h (EPILOGUE_USES): Add default definition of false.
31167 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
31168 * resource.c (init_resource_info): Likewise.
31170 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31172 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
31174 * dwarf2out.c (field_byte_offset): REmove check if
31175 PCC_BITFIELD_TYPE_MATTERS is defined.
31176 * stor-layout.c (layout_decl): Likewise.
31177 (update_alignment_for_field): Likewise.
31178 (place_field): Likewise.
31180 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31182 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
31184 * regrename.c (check_new_reg_p): Remove check if
31185 HARD_REGNO_RENAME_OK is defined.
31186 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
31188 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31190 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
31191 * cse.c (fold_rtx): Likewise.
31192 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
31193 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
31194 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
31195 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
31196 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
31197 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
31198 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
31199 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
31200 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
31201 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
31203 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
31204 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
31205 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
31206 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
31207 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
31208 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
31209 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
31210 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
31211 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
31212 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
31213 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
31214 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
31215 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
31216 * doc/tm.texi: Regenerate.
31217 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
31218 either true or false.
31220 2015-04-27 Jeff Law <law@redhat.com>
31222 PR tree-optimization/65217
31223 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
31224 of them has a single use, make sure it is the LHS of the implied
31227 2015-04-28 Alan Modra <amodra@gmail.com>
31230 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
31231 (offsettable_ok_by_alignment): Use minimum of decl and toc
31232 pointer alignment. Replace dead code with assertion.
31233 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
31234 case if size exceeds toc pointer alignment.
31235 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
31236 (rs6000_emit_move): Likewise.
31237 * configure.ac: Add linker toc pointer alignment check.
31238 * configure: Regenerate.
31239 * config.in: Regenerate.
31241 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
31243 * config.gcc: Add h8300-*-linux.
31244 * config/h8300/linux.h: New.
31245 * config/h8300/t-linux: New.
31246 * config/h8300/h8300.c (h8300_option_override): Normal mode
31247 is not supported for h8300-*-linux.
31248 (h8300_file_start): Target priority change.
31249 (get_shift_alg): Likewise.
31250 (h8300_shift_need_scratch_p): Likewise.
31251 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
31252 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
31254 2015-04-27 Caroline Tice <cmtice@google.com>
31256 * final.c (final_scan_insn): Output cold_function_name as function
31258 * varasm.c (cold_function_name): Make global.
31259 (assemble_start_function): Re-set cold_function_name.
31260 (assemble_end_function): Output cold partition size.
31261 * varasm.h (cold_function_name): Declare global.
31263 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
31265 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
31266 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
31268 (*movxi_internal_avx512f): Ditto.
31269 (define_split): Check for xmm16+, when splitting scalar float_extend.
31270 (*extendsfdf2_mixed): Use "v" constraint.
31271 (define_split): Check for xmm16+, when splitting scalar float_truncate.
31272 (*truncdfsf_fast_sse): Use "v" constraint.
31273 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
31274 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
31275 (define_peephole2): Check for xmm16+, when converting scalar
31277 (define_peephole2): Check for xmm16+, when converting scalar
31279 (*fop_<mode>_comm_mixed): Use "v" constraint.
31280 (*fop_<mode>_comm_sse): Ditto.
31281 (*fop_<mode>_1_mixed): Ditto.
31282 (*sqrt<mode>2_sse): Ditto.
31283 (*ieee_s<ieee_maxmin><mode>3): Ditto.
31285 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31287 * combine.c (simplify_if_then_else): Use std::swap instead
31288 of manually swapping.
31289 (known_cond): Likewise.
31290 (simplify_comparison): Likewise.
31292 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
31295 * config/rs6000/htm.md: Remove all define_expands.
31296 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
31297 UNSPECV_HTM_TABORTWCI): Remove.
31298 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
31299 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
31300 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
31301 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
31302 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
31303 tabortwci_internal): Remove define_insns.
31304 (tabort<wd>c, tabort<wd>ci): New define_insns.
31305 (tabort): Use gpc_reg_operand.
31306 (tcheck): Remove operand.
31307 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
31308 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
31310 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
31311 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
31312 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
31313 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
31314 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
31315 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
31316 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
31317 (tcheck): Remove builtin argument.
31318 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
31320 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
31321 tabortdc and tabortdci builtins when not in 64-bit mode.
31322 Modify code to handle the loss of the HTM define_expands.
31323 Emit code to copy the CR register to TARGET.
31324 (htm_init_builtins): Modify code to handle the loss of the HTM
31326 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
31327 (RS6000_BTC_64BIT): Likewise.
31328 (RS6000_BTC_CR): New macro.
31329 * doc/extend.texi: Update documentation for htm builtins.
31331 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31333 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
31334 of manually swapping.
31335 (simplify_associative_operation): Likewise.
31336 (simplify_binary_operation): Likewise.
31337 (simplify_plus_minus): Likewise.
31338 (simplify_relational_operation): Likewise.
31339 (simplify_ternary_operation): Likewise.
31341 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
31343 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
31344 (xs_hi_nonmemory_operand): Remove error.
31345 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
31346 general_operand rather than xs_hi_general_operand.
31348 2015-04-27 Richard Biener <rguenther@suse.de>
31350 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
31351 (record_equivalences_from_stmt): Valueize rhs.
31352 (record_equality): Canonicalize x and y order via
31353 tree_swap_operands_p. Do not swap operands for same loop depth.
31355 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
31359 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
31360 Add hint how to use own spec file.
31362 2015-04-27 Jakub Jelinek <jakub@redhat.com>
31364 PR tree-optimization/65875
31365 * tree-vrp.c (update_value_range): If in is_new case setting
31366 old_vr to VR_VARYING, also set new_vr to it. Remove
31367 old_vr->type == VR_VARYING test.
31368 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
31369 SSA_PROP_INTERESTING if update_value_range returned true,
31370 but new range is VR_VARYING.
31372 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
31374 * combine.c (sign_extend_short_imm): New.
31375 (set_nonzero_bits_and_sign_copies): Use above new function for sign
31376 extension of src short immediate.
31377 (reg_nonzero_bits_for_combine): Likewise for tem.
31379 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
31381 * stor-layout.c (self_referential_component_ref_p): New predicate.
31382 (copy_self_referential_tree_r): Use it.
31383 (self_referential_size): Punt for simple operations directly involving
31384 self-referential component references.
31385 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
31387 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
31389 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
31391 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
31393 * vec.h (vec): Make splice arguments const. Update definitions
31396 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
31398 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
31401 2015-04-26 Tom de Vries <tom@codesourcery.com>
31403 PR tree-optimization/65826
31404 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
31406 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
31408 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
31409 (*madd3<mode>): Ditto.
31410 (*msub4<mode>): Ditto.
31411 (*msub3<mode>): Ditto.
31412 (*nmadd4<mode>): Ditto.
31413 (*nmadd3<mode>): Ditto.
31414 (*nmadd4<mode>_fastmath): Ditto.
31415 (*nmadd3<mode>_fastmath): Ditto.
31416 (*nmsub4<mode>): Ditto.
31417 (*nmsub3<mode>): Ditto.
31418 (*nmsub4<mode>_fastmath): Ditto.
31419 (*nmsub3<mode>_fastmath): Ditto.
31421 2015-04-24 Jason Merrill <jason@redhat.com>
31424 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
31425 down when building TYPE_CANONICAL.
31426 (build_pointer_type_for_mode): Likewise.
31428 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
31430 * genrecog.c (validate_pattern): Check matching constraint refers
31431 to a lower numbered operand.
31433 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
31436 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
31437 save to independent variables use the Save attribute. This will
31438 allow these options to be modified with the #pragma/attribute
31440 (-mallow-movmisalign): Likewise.
31441 (-mallow-df-permute): Likewise.
31442 (-msched-groups): Likewise.
31443 (-malways-hint): Likewise.
31444 (-malign-branch-targets): Likewise.
31445 (-mvectorize-builtins): Likewise.
31446 (-msave-toc-indirect): Likewise.
31448 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
31449 can be set via the #pragma/attribute target support.
31450 (rs6000_opt_vars): Likewise.
31451 (rs6000_inner_target_options): If VSX was set, also set
31452 -mno-avoid-indexed-addresses.
31454 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31456 * config/arm/iterators.md (shiftable_ops): Rename to...
31457 (SHIFTABLE_OPS): ... This. Update use in comments.
31458 (ior_xor): Rename to...
31459 (IOR_XOR): ... This.
31460 (vqh_ops): Rename to...
31461 (VQH_OPS): ... This.
31462 (vqhs_ops): Rename to...
31463 (VQHS_OPS): ... This.
31464 (rshifts): Rename to...
31465 (RSHIFTS): ... This.
31466 (returns): Rename to...
31467 (RETURNS): ... This.
31468 * config/arm/arm.md: Update uses of the above.
31469 * config/arm/neon.md: Likewise.
31471 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31473 * config.host (case ${host}): Add aarch64*-*-linux case.
31474 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
31475 fields to all the cores.
31476 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
31477 Add MCPU_MTUNE_NATIVE_SPECS.
31478 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
31479 field to all extensions.
31480 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
31481 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
31482 Adjust definition of AARCH64_OPT_EXTENSION.
31483 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
31484 (MCPU_MTUNE_NATIVE_SPECS): Define.
31485 * config/aarch64/driver-aarch64.c: New file.
31486 * config/aarch64/x-arch64: New file.
31487 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
31490 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
31491 Wei Mi <wmi@google.com>
31493 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
31494 * config/i386/i386.c (extract_base_offset_in_addr): New function.
31495 (ix86_operands_ok_for_move_multiple): Ditto.
31496 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
31497 (movlpd/movhpd to movupd peephole2): Ditto.
31499 2015-04-24 Marek Polacek <polacek@redhat.com>
31502 * input.h (from_macro_expansion_at): Define.
31505 * doc/invoke.texi: Update description of -Wlogical-op.
31507 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
31509 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
31510 ternary operator in fprintf and harmonize spacing.
31512 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
31514 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
31515 Mark operand1 commutative.
31517 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
31519 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
31520 input operands in memory.
31521 (*vec_concatv2si_sse4_1): Ditto.
31522 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
31523 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
31525 (vec_extract_hi_v32hi): Ditto.
31526 (vec_extract_hi_v64hi): Ditto.
31527 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
31529 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
31530 Steven Bosscher <steven@gcc.gnu.org>
31532 PR rtl-optimization/34503
31533 * cprop.c (cprop_reg_p): New.
31534 (hash_scan_set): Use above function to check if register can be
31536 (find_avail_set): Return up to two sets, one whose source is a
31537 register and one whose source is a constant. Sets are returned in an
31538 array passed as parameter rather than as a return value.
31539 (cprop_insn): Use a do while loop rather than a goto. Try each of the
31540 sets returned by find_avail_set, starting with the one whose source is
31541 a constant. Use cprop_reg_p to check if register can be propagated.
31542 (do_local_cprop): Use cprop_reg_p to check if register can be
31544 (implicit_set_cond_p): Likewise.
31546 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
31548 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
31549 (sem_function::equals): IGNORED_NODES parameter is now unused;
31550 update call of equals_private.
31551 (sem_function::equals_private): Do not call equals_wpa; skip
31552 gimple body matching if there is no body.
31553 (sem_function::init): Add logic to hash tthunk info.
31554 (sem_function::parse): Also parse thunks.
31555 * ipa-icf.h (equals_private): Update declaration.
31557 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31559 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
31560 asterisk from name so this can be generated directly.
31561 (*altivec_stvx_<mode>_internal): Likewise.
31562 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
31563 that this is never called during or after reload/lra.
31564 (rs6000_frame_related): Remove split_reg
31565 argument and logic that references it.
31566 (emit_frame_save): Remove last parameter from call to
31567 rs6000_frame_related.
31568 (rs6000_emit_prologue): Remove last parameter from eight calls to
31569 rs6000_frame_related. Force generation of stvx instruction for
31570 Altivec register saves. Remove split_reg handling, which is no
31572 (rs6000_emit_epilogue): Force generation of lvx instruction for
31573 Altivec register restores.
31575 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31577 * config/rs6000/rs6000.opt (mcrypto): Change option description to
31578 match category changes in ISA 2.07B.
31580 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31582 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
31584 (cmp_op, cmp_type): New code attributes.
31585 (NEON_VCMP, NEON_VACMP): New int iterators.
31586 (cmp_op_unsp): New int attribute.
31587 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
31588 (neon_vceq<mode>): Delete.
31589 (neon_vc<cmp_op><mode>_insn): New pattern.
31590 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
31591 (neon_vcgeu<mode>): Delete.
31592 (neon_vcle<mode>): Likewise.
31593 (neon_vclt<mode>: Likewise.
31594 (neon_vcage<mode>): Likewise.
31595 (neon_vcagt<mode>): Likewise.
31596 (neon_vca<cmp_op><mode>): New define_expand.
31597 (neon_vca<cmp_op><mode>_insn): New pattern.
31598 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
31600 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
31602 * tree.h (attribute_value_equal): Declare.
31603 * tree.c (attribute_value_equal): Export.
31605 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
31607 * ipa-icf.c (sem_item::compare_attributes): New function.
31608 (sem_item::compare_referenced_symbol_properties): Compare variable
31610 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
31611 (sem_function::param_used_p): New function.
31612 (sem_function::equals_wpa): Fix attribute comparsion; match
31613 parameter type codes; do not compare paremter flags when
31614 they are not used; compare edge flags; compare indirect calls.
31615 (sem_item::update_hash_by_addr_refs): Hash reference type.
31616 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
31617 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
31618 reference use type.
31619 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
31620 * ipa-icf.h (compare_attributes, param_used_p): Declare.
31622 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
31624 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
31626 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
31627 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
31628 (sem_item::compare_referenced_symbol_properties): New.
31629 (sem_item::hash_referenced_symbol_properties): New.
31630 (sem_item::compare_cgraph_references): Rename to ...
31631 (sem_item::compare_symbol_references): ... this one; use
31632 compare_referenced_symbol_properties.
31633 (sem_function::equals_wpa): Do not compare
31634 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
31635 DECL_IS_OPERATOR_NEW; compare pointer sizes.
31636 (sem_item::update_hash_by_addr_refs): Call
31637 hash_referenced_symbol_properties.
31638 (sem_item::update_hash_by_local_refs): Cleanup.
31639 (sem_function::merge): Do not mix up symbol properties.
31640 (sem_variable::equals_wpa): Use compare_symbol_references.
31641 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
31642 (sem_item::hash_referenced_symbol_properties): New.
31643 (sem_item::compare_symbol_references): New.
31644 (sem_item::compare_cgraph_references): Remove.
31646 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
31649 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
31650 Emit size of local.
31652 2015-04-23 Nick Clifton <nickc@redhat.com>
31654 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
31655 ATTRIBUTE_UNUSED to x parameter.
31656 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
31658 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31660 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
31661 TARGET_CRYPTO to TARGET_P8_VECTOR>
31662 (crypto_vpermxor_<mode>): Likewise.
31663 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
31664 (BU_CRYPTO_3A): Likewise.
31665 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
31666 (BU_CRYPTO_OVERLOAD_3A): New #define.
31667 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
31668 (VPMSUMH): Likewise.
31669 (VPMSUMW): Likewise.
31670 (VPMSUMD): Likewise.
31671 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
31672 (VPERMXOR_V4SI): Likewise.
31673 (VPERMXOR_V8HI): Likewise.
31674 (VPERMXOR_V16QI): Likewise.
31675 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
31676 BU_CRYPTO_OVERLOAD_2A.
31677 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
31678 BU_CRYPTO_OVERLOAD_3A.
31679 * config/rs6000/rs6000.opt (mcrypto): Change description of
31682 2015-04-23 Richard Biener <rguenther@suse.de>
31684 * passes.def: Remove copy propagation passes run directly after CCP.
31685 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
31687 (ccp_visit_phi_node): Rework to handle first executable edge
31690 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
31692 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
31693 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
31694 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
31695 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
31696 (thumb_legimitimize_reload_address): Remove.
31697 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
31699 (thumb_legimitimize_reload_address): Remove.
31701 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31703 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
31705 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31707 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
31709 (store_multiple): Likewise.
31711 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31713 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
31714 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
31715 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
31716 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
31717 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
31718 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
31719 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
31720 Specify issue_rate value.
31721 (arm_issue_rate): Look up issue rate from tuning structs. Remove
31722 large switch statement.
31723 (arm_marvell_pj4_tune): New struct.
31724 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
31727 2015-04-23 Richard Biener <rguenther@suse.de>
31729 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
31730 (vect_find_last_store_in_slp_instance): Rename to ...
31731 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
31732 (vect_analyze_slp_cost_1): Use vector_load for constant defs
31733 and vec_construct for external defs when estimating prologue cost.
31734 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
31735 Compute costs here only when vectorizing loops.
31736 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
31737 have been determined.
31738 (vect_schedule_slp_instance): Simplify vectorized code placement
31739 and prepare for in-BB external defs.
31740 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
31741 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
31742 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
31744 (vect_model_load_cost): Likewise.
31745 (vectorizable_store): Instead add it here.
31746 (vectorizable_load): Likewise.
31747 (vect_is_simple_use): Dump def type textually.
31749 2015-04-23 Richard Biener <rguenther@suse.de>
31751 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
31752 * cfgloop.c (verify_loop_structure): Verify the root loop node.
31753 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
31754 instead of get_eh_region_from_lp_number.
31755 * loop-init.c (fix_loop_structure): If we removed a loop, reset
31758 2015-04-23 Anton Blanchard <anton@samba.org>
31760 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
31761 need for -mprofile-kernel to save LR to stack.
31763 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31765 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
31767 (insn_is_swappable_p): Return 1 for a convert from double to
31768 single precision when all of its uses are splats of BE element
31771 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
31773 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
31775 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31778 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
31779 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
31780 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
31782 (rs6000_builtin_mask_for_load): Return 0 for targets with
31783 efficient unaligned VSX accesses so that the vectorizer will use
31784 direct unaligned loads.
31785 (rs6000_builtin_support_vector_misalignment): Always return true
31786 for targets with efficient unaligned VSX accesses.
31787 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
31788 stores on targets with efficient unaligned VSX accesses is almost
31789 always the same as the cost of an aligned load or store, so model
31791 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
31792 unaligned vectors if we have efficient unaligned VSX accesses.
31793 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
31794 undocumented option.
31796 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31799 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
31801 * config.gcc (LIBC_MUSL): New tm_defines macro.
31802 * config/linux.h (OPTION_MUSL): Define.
31803 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
31804 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
31805 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
31807 * config/linux.opt (mmusl): New option.
31808 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
31809 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
31811 * configure: Regenerate.
31813 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
31815 * config.gcc (LIBC_MUSL): New tm_defines macro.
31816 * config/linux.h (OPTION_MUSL): Define.
31817 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
31818 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
31819 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
31821 * config/linux.opt (mmusl): New option.
31822 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
31823 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
31825 * configure: Regenerate.
31827 2015-04-22 Yury Gribov <y.gribov@samsung.com>
31829 * doc/invoke.texi (-fsanitize-sections): Update description.
31830 * asan.c (set_sanitized_sections): Parse incoming arg.
31831 (section_sanitized_p): Support wildcards.
31833 2015-04-22 Tom de Vries <tom@codesourcery.com>
31835 PR tree-optimization/65823
31836 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
31837 equality between ap_copy and ap.
31839 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
31842 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
31844 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
31847 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
31849 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
31852 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
31853 remove already contained t-files.
31855 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
31857 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
31858 Remove unneeded forward declarations.
31859 (suitable_for_tail_call_opt_p): Commentary typo fix.
31861 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
31863 * varasm.c (emit_bss): Remove redundant guard.
31865 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
31867 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
31869 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
31871 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
31873 2015-04-22 Hale Wang <hale.wang@arm.com>
31874 Terry Guo <terry.guo@arm.com>
31876 PR rtl-optimization/64818
31877 * combine.c (can_combine_p): Don't combine user-specified
31878 register if it is in an asm input.
31880 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
31883 * passes.def (early_optimizations): Add pass_dse.
31885 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31887 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
31888 * reorg.c (redundant_insn): Remove ifdef
31889 INSN_REFERENCES_ARE_DELAYED.
31890 * resource.c (mark_referenced_resources): Likewise.
31892 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31894 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
31895 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
31896 * resource.c (mark_set_resources): Likewise.
31898 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31900 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
31901 * cfgcleanup.c (flow_find_cross_jump): Likewise.
31902 (flow_find_head_matching_sequence): Likewise.
31903 (try_head_merge_bb): Likewise.
31904 * combine.c (can_combine_p): Likewise.
31905 (try_combine): Likewise.
31906 (distribute_notes): Likewise.
31907 * df-problems.c (can_move_insns_across): Likewise.
31908 * final.c (final): Likewise.
31909 * gcse.c (insert_insn_end_basic_block): Likewise.
31910 * ira.c (find_moveable_pseudos): Likewise.
31911 * reorg.c (try_merge_delay_insns): Likewise.
31912 (fill_simple_delay_slots): Likewise.
31913 (fill_slots_from_thread): Likewise.
31914 * sched-deps.c (sched_analyze_2): Likewise.
31916 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31918 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
31919 PIC_OFFSET_TABLE_REGNUM.
31921 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31923 * alias.c (init_alias_target): Remove ifdef
31924 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
31925 * df-scan.c (df_insn_refs_collect): Likewise.
31926 (df_get_regular_block_artificial_uses): Likewise.
31927 (df_get_eh_block_artificial_uses): Likewise.
31928 (df_get_entry_block_def_set): Likewise.
31929 (df_get_exit_block_use_set): Likewise.
31930 * emit-rtl.c (gen_rtx_REG): Likewise.
31931 * ira.c (ira_setup_eliminable_regset): Likewise.
31932 * reginfo.c (init_reg_sets_1): Likewise.
31933 * regrename.c (rename_chains): Likewise.
31934 * reload1.c (reload): Likewise.
31935 (eliminate_regs_in_insn): Likewise.
31936 * resource.c (mark_referenced_resources): Likewise.
31937 (init_resource_info): Likewise.
31939 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31941 * defaults.h (MASK_RETURN_ADDR): New definition.
31942 * except.c (expand_builtin_extract_return_addr): Remove ifdef
31945 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31947 * defaults.h (RETURN_ADDR_OFFSET): New definition.
31948 * except.c (expand_builtin_extract_return_addr): Remove ifdef
31949 RETURN_ADDR_OFFSET.
31950 (expand_builtin_frob_return_addr): Likewise.
31952 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31954 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
31955 (try_redirect_by_replacing_jump): Likewise.
31956 (rtl_tidy_fallthru_edge): Likewise.
31957 * combine.c (insn_a_feeds_b): Likewise.
31958 (find_split_point): Likewise.
31959 (simplify_set): Likewise.
31960 * cprop.c (cprop_jump): Likewise.
31961 * cse.c (cse_extended_basic_block): Likewise.
31962 * df-problems.c (can_move_insns_across): Likewise.
31963 * function.c (emit_use_return_register_into_block): Likewise.
31964 * haifa-sched.c (sched_init): Likewise.
31965 * ira.c (find_moveable_pseudos): Likewise.
31966 * loop-invariant.c (find_invariant_insn): Likewise.
31967 * lra-constraints.c (curr_insn_transform): Likewise.
31968 * postreload.c (reload_combine_recognize_const_pattern):
31970 * reload.c (find_reloads): Likewise.
31971 * reorg.c (delete_scheduled_jump): Likewise.
31972 (steal_delay_list_from_target): Likewise.
31973 (steal_delay_list_from_fallthrough): Likewise.
31974 (redundant_insn): Likewise.
31975 (fill_simple_delay_slots): Likewise.
31976 (fill_slots_from_thread): Likewise.
31977 (delete_computation): Likewise.
31978 * sched-rgn.c (add_branch_dependences): Likewise.
31980 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31982 * genconfig.c (main): Always define HAVE_cc0.
31983 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
31985 * cfgcleanup.c (flow_find_cross_jump): Likewise.
31986 (flow_find_head_matching_sequence): Likewise.
31987 (try_head_merge_bb): Likewise.
31988 * cfgrtl.c (rtl_merge_blocks): Likewise.
31989 (try_redirect_by_replacing_jump): Likewise.
31990 (rtl_tidy_fallthru_edge): Likewise.
31991 * combine.c (do_SUBST_MODE): Likewise.
31992 (insn_a_feeds_b): Likewise.
31993 (combine_instructions): Likewise.
31994 (can_combine_p): Likewise.
31995 (try_combine): Likewise.
31996 (find_split_point): Likewise.
31998 (simplify_set): Likewise.
31999 (distribute_notes): Likewise.
32000 * cprop.c (cprop_jump): Likewise.
32001 * cse.c (cse_extended_basic_block): Likewise.
32002 * df-problems.c (can_move_insns_across): Likewise.
32003 * final.c (final): Likewise.
32004 (final_scan_insn): Likewise.
32005 * function.c (emit_use_return_register_into_block): Likewise.
32006 * gcse.c (insert_insn_end_basic_block): Likewise.
32007 * haifa-sched.c (sched_init): Likewise.
32008 * ira.c (find_moveable_pseudos): Likewise.
32009 * loop-invariant.c (find_invariant_insn): Likewise.
32010 * lra-constraints.c (curr_insn_transform): Likewise.
32011 * optabs.c (prepare_cmp_insn): Likewise.
32012 * postreload.c (reload_combine_recognize_const_pattern):
32014 * reload.c (find_reloads): Likewise.
32015 (find_reloads_address_1): Likewise.
32016 * reorg.c (delete_scheduled_jump): Likewise.
32017 (steal_delay_list_from_target): Likewise.
32018 (steal_delay_list_from_fallthrough): Likewise.
32019 (try_merge_delay_insns): Likewise.
32020 (redundant_insn): Likewise.
32021 (fill_simple_delay_slots): Likewise.
32022 (fill_slots_from_thread): Likewise.
32023 (delete_computation): Likewise.
32024 (relax_delay_slots): Likewise.
32025 * sched-deps.c (sched_analyze_2): Likewise.
32026 * sched-rgn.c (add_branch_dependences): Likewise.
32028 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32030 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
32031 that is trivially ded on non cc0 targets.
32032 (simplify_set): Likewise.
32033 (mark_used_regs_combine): Likewise.
32034 * cse.c (new_basic_block): Likewise.
32035 (fold_rtx): Likewise.
32036 (cse_insn): Likewise.
32037 (cse_extended_basic_block): Likewise.
32038 (set_live_p): Likewise.
32039 * rtlanal.c (canonicalize_condition): Likewise.
32040 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
32042 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32044 * conditions.h: Define macros even if HAVE_cc0 is undefined.
32045 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
32046 * final.c: Likewise.
32047 * jump.c: Likewise.
32048 * recog.c: Likewise.
32049 * recog.h: Declare functions even when HAVE_cc0 is undefined.
32050 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
32052 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32054 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
32055 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
32056 * builtins.c (expand_builtin): Remove check if
32057 EH_RETURN_DATA_REGNO is defined.
32058 * df-scan.c (df_bb_refs_collect): Likewise.
32059 (df_get_exit_block_use_set): Likewise.
32060 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
32061 * ira-lives.c (process_bb_node_lives): Likewise.
32062 * lra-lives.c (process_bb_lives): Likewise.
32064 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
32066 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
32067 FIRST_PSEUDO_REG): New.
32068 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
32069 (ARG_POINTER_REGNUM): Define to ARGP_REG.
32070 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
32071 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
32072 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
32073 (FIRST_INT_REG): New.
32074 (LAST_INT_REG): New.
32075 (FIRST_*_REG): Define using *_REG.
32076 (LAST_*_REG): Ditto.
32077 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
32078 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
32079 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
32081 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32083 * expmed.c: (synth_mult): Only assume overlapping
32084 shift with previous steps in alg_sub_t_m2 case.
32086 2015-04-21 Richard Biener <rguenther@suse.de>
32088 PR tree-optimization/65650
32089 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
32090 transitions involving copies.
32091 (set_lattice_value): Adjust for copy lattice state.
32092 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
32093 if that doesn't dominate the merge point.
32094 (bit_value_unop): Adjust what we treat as varying mask.
32095 (bit_value_binop): Likewise.
32096 (bit_value_assume_aligned): Likewise.
32097 (evaluate_stmt): When we simplified to a SSA name record a copy
32098 instead of dropping to varying.
32099 (visit_assignment): Simplify.
32101 * gimple-match.h (gimple_simplify): Add another callback.
32102 * gimple-fold.c (fold_stmt_1): Adjust caller.
32103 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
32104 for the 2nd callback.
32105 * gimple-match-head.c (gimple_simplify): Add a callback that is
32106 used to valueize the stmt operands and use it that way.
32108 2015-04-21 Richard Biener <rguenther@suse.de>
32110 PR tree-optimization/65788
32111 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
32113 2015-04-21 Richard Biener <rguenther@suse.de>
32115 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
32116 vec_construct cost by vec_stmt_cost.
32118 2015-04-21 Richard Biener <rguenther@suse.de>
32120 * cfghooks.h (create_basic_block): Replace with two overloads
32121 for RTL and GIMPLE.
32122 (split_block): Likewise.
32123 * cfghooks.c (split_block): Rename to ...
32124 (split_block_1): ... this.
32125 (split_block): Add two type-safe overloads for RTL and GIMPLE.
32126 (split_block_after_labels): Call split_block_1.
32127 (create_basic_block): Rename to ...
32128 (create_basic_block_1): ... this.
32129 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
32130 (create_empty_bb): Call create_basic_block_1.
32131 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
32132 split_block_after_labels.
32133 * omp-low.c (expand_parallel_call): Likewise.
32134 (expand_omp_target): Likewise.
32135 (simd_clone_adjust): Likewise.
32136 * tree-chkp.c (chkp_get_entry_block): Likewise.
32137 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
32138 create_basic_block overload.
32139 (cgraph_node::expand_thunk): Likewise.
32140 * tree-cfg.c (make_blocks): Likewise.
32141 (handle_abnormal_edges): Likewise.
32142 * tree-inline.c (copy_bb): Likewise.
32144 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32146 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
32148 (*xor_one_cmplsidi3_ze): Likewise.
32150 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
32152 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
32153 use df_remove_problem rather than manually removing problems, leaving
32154 holes in df->problems_in_order[].
32156 2015-04-21 Tom de Vries <tom@codesourcery.com>
32158 PR tree-optimization/65802
32159 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
32161 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32163 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
32165 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
32166 at '.'. Assert that there's enough space for everything.
32168 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
32170 PR tree-optimization/64950
32172 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
32175 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
32178 2015-04-20 Shiva Chen <shiva0217@gmail.com>
32180 PR rtl-optimization/64916
32181 * cfgcleanup.c (values_equal_p): New function.
32182 (can_replace_by): Use it.
32184 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
32187 * doc/invoke.texi ([-Wnarrowing]): Update.
32189 2015-04-20 Jeff Law <law@redhat.com>
32191 PR tree-optimization/65658
32192 * tree-ssa-threadupdate.c (redirection_block_p): Remove
32193 redundant test for GIMPLE_ASSIGN in last change.
32195 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
32197 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
32198 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
32199 (legitimize_tls_address): Ditto.
32200 (ix86_expand_move): Ditto.
32201 (ix86_expand_binary_operator): Remove reload_in_progress checks.
32202 (ix86_expand_unary_operator): Ditto.
32203 * config/i386/predicates.md (index_register_operand): Ditto.
32205 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
32207 * reorg.c (try_merge_delay_insns): Improve correctness checking
32208 for targets with multiple delay slots.
32210 2015-04-20 Jeff Law <law@redhat.com>
32212 PR tree-optimization/65658
32213 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
32216 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
32218 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
32219 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
32222 2015-04-20 Jakub Jelinek <jakub@redhat.com>
32225 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
32227 2015-04-20 Richard Biener <rguenther@suse.de>
32229 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
32230 * gimple-fold.c (gimple_build_valueize): New function.
32231 (gimple_build): Always use gimple_build_valueize as valueize hook.
32233 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
32236 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
32237 and overwrite variable parts if <= 1/2 the elements are variable.
32239 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
32241 PR rtl-optimization/65805
32242 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
32243 Don't use difference of offset and previous offset if
32244 update_sp_offset is non-zero.
32245 (eliminate_regs_in_insn): Ditto.
32246 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
32247 lra_eliminate_regs_1 call.
32248 * lra-constraints.c (get_equiv_with_elimination): Ditto.
32250 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
32252 * hash-table.h: Remove version of hash_table that stored value_type *.
32253 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
32254 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
32255 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
32256 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
32257 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
32258 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
32259 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
32260 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
32261 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
32262 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
32263 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
32264 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
32265 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
32266 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
32267 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
32268 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
32270 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32271 Jakub Jelinek <jakub@redhat.com>
32274 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
32275 subsequent SH_NONE operand does not overwrite an existing *special
32277 (adjust_extract): Handle case where a vec_extract operation is
32278 wrapped in a PARALLEL.
32280 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
32283 * config/i386/i386.c (ix86_binds_local_p): Define only if
32284 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
32286 2015-04-17 Jeff Law <law@redhat.com>
32288 PR tree-optimization/47679
32289 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
32290 * tree-ssa-scopedtables.c: New file.
32291 * tree-ssa-scopedtables.h: New file.
32292 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
32293 (const_and_copies): Change name/type.
32294 (record_const_or_copy): Move into tree-ssa-scopedtables.c
32295 (record_const_or_copy_1): Similarly.
32296 (restore_vars_to_original_value): Similarly.
32297 (pass_dominator::execute): Create and destroy const_and_copies table.
32298 (thread_across_edge): Update passing of const_and_copies.
32299 (record_temporary_equivalence): Use method calls rather than
32300 manipulating const_and_copies directly.
32301 (record_equality, cprop_into_successor_phis): Similarly.
32302 (dom_opt_dom_walker::before_dom_children): Similarly.
32303 (dom_opt_dom_walker::after_dom_children): Similarly.
32304 (eliminate_redundant_computations): Similarly.
32305 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
32306 (record_temporary_equivalence): Likewise.
32307 (invalidate_equivalences): Likewise.
32308 (record_temporary_equivalences_from_phis): Update due to type
32309 change of const_and_copies. Use method calls rather than
32310 manipulating the stack directly.
32311 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
32312 (thread_through_normal_block, thread_across_edge): Likewise.
32313 (thread_across_edge): Likewise.
32314 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
32315 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
32317 (identify_jump_threads): Update due to type change of equiv_stack.
32318 (finalize_jump_threads): Delete the equiv_stack when complete.
32320 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
32322 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
32323 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
32324 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
32326 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
32329 * config.gcc: Exit with a comment when we do not have a major version
32330 number for the FreeBSD target.
32332 2015-04-17 Jakub Jelinek <jakub@redhat.com>
32335 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
32336 maybe_allows_mem bitfields.
32337 (maybe_allows_none_start, maybe_allows_none_end,
32338 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
32339 maybe_allows_mem_end): New variables.
32340 (compute_maybe_allows): New function.
32341 (add_constraint): Use it to initialize maybe_allows_reg and
32342 maybe_allows_mem fields.
32343 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
32344 is_address constraints such that those that allow neither mem nor
32345 reg come first, then those that only allow reg but not mem, then
32346 those that only allow mem but not reg, then the rest.
32347 (write_allows_reg_mem_function): New function.
32348 (write_tm_preds_h): Call it.
32349 * stmt.c (parse_output_constraint, parse_input_constraint): Use
32350 the generated insn_extra_constraint_allows_reg_mem function
32351 instead of always setting *allows_reg = true; *allows_mem = true;
32352 for unknown extra constraints.
32354 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
32357 * output.h (default_binds_local_p_3): New.
32358 * varasm.c (default_binds_local_p_3): Make it public. Take an
32359 argument to indicate if common symbol may be local. If common
32360 symbol may be local, treat non-external variable as defined
32362 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
32363 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
32364 * config/i386/i386.c (ix86_binds_local_p): New.
32365 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
32366 ix86_binds_local_p.
32368 2015-04-17 Jakub Jelinek <jakub@redhat.com>
32371 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
32372 trying mem_loc_descriptor on XEXP (rtl, 0).
32374 2015-04-17 Martin Liska <mliska@suse.cz>
32376 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
32377 Release symbol_compare_collection.
32378 * ipa-reference.c: Add TODO that a vector should be released.
32380 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
32383 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
32384 to new AVR-LibC file layout (bug #44574).
32385 (*avrlibc_devicelib): Same.
32386 * config/avr/avr-mcus.def: Adjust comments.
32387 * config/avr/avr.opt (nodevicelib): Adjust help.
32389 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
32391 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
32393 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
32396 * gimplify.c (gimplify_init_constructor): Always emit a
32397 side-effecting constructor.
32399 2015-04-17 Tom de Vries <tom@codesourcery.com>
32401 PR tree-optimization/64950
32402 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
32403 in cfun->curr_properties.
32404 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
32405 if we generate an IFN_VA_ARG.
32406 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
32407 function if PROP_gimple_lva is not set in src function.
32409 2015-04-17 Tom de Vries <tom@codesourcery.com>
32410 Michael Matz <matz@suse.de>
32412 PR tree-optimization/64950
32413 * gimple-iterator.c (update_modified_stmts): Remove static.
32414 * gimple-iterator.h (update_modified_stmts): Declare.
32415 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
32416 (gimplify_va_arg_internal): New function.
32417 (gimplify_va_arg_expr): Use IFN_VA_ARG.
32418 * gimplify.h (gimplify_va_arg_internal): Declare.
32419 * internal-fn.c (expand_VA_ARG): New unreachable function.
32420 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
32421 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
32422 (expand_ifn_va_arg): New function.
32423 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
32424 (pass_stdarg::execute): Call expand_ifn_va_arg.
32425 (pass_data_lower_vaarg): New pass_data.
32426 (pass_lower_vaarg): New gimple_opt_pass.
32427 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
32428 (make_pass_lower_vaarg): New function.
32429 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
32430 properties_required field.
32431 * passes.def (all_passes): Add pass_lower_vaarg.
32432 * tree-pass.h (PROP_gimple_lva): Add define.
32433 (make_pass_lower_vaarg): Declare.
32435 2015-04-17 Tom de Vries <tom@codesourcery.com>
32437 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
32438 * calls.c (call_expr_flags): Same.
32440 2015-04-17 Tom de Vries <tom@codesourcery.com>
32442 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
32443 (pass_stdarg::execute): ... here.
32445 2015-04-17 Tom de Vries <tom@codesourcery.com>
32446 Michael Matz <matz@suse.de>
32448 * tree-cfg.c (make_blocks_1): Factor out of ...
32449 (make_blocks): ... here.
32450 (make_edges_bb): Factor out of ...
32451 (make_edges): ... here.
32452 (gimple_find_sub_bbs): New function.
32453 * tree-cfg.h (gimple_find_sub_bbs): Declare.
32455 2015-04-17 Tom de Vries <tom@codesourcery.com>
32457 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
32459 2015-04-17 Yury Gribov <y.gribov@samsung.com>
32461 * asan.c (set_sanitized_sections): New function.
32462 (section_sanitized_p): Ditto.
32463 (asan_protect_global): Optionally sanitize user-defined
32465 * asan.h (set_sanitized_sections): Declare new function.
32466 * common.opt (fsanitize-sections): New option.
32467 * doc/invoke.texi (-fsanitize-sections): Document new option.
32468 * opts-global.c (handle_common_deferred_options): Handle new
32471 2015-04-17 Jakub Jelinek <jakub@redhat.com>
32474 * dwarf2out.c (loc_list_from_tree): Return NULL
32475 for DEBUG_EXPR_DECL.
32477 2015-04-17 Christian Bruel <christian.bruel@st.com>
32479 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
32482 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
32484 * ira-color.c (setup_left_conflict_sizes_p): Do not process
32485 node itself when computing left conflict subnode size.
32487 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
32489 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
32490 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
32491 *fop_<mode>_1_sse using enabled attribute. Use
32492 register_mixssei387nonimm_operand operand 1 predicate. Change
32493 alternative 3 constraints from "x" to "v".
32495 2015-04-16 Richard Biener <rguenther@suse.de>
32497 PR tree-optimization/65774
32498 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
32499 bit-value tracking on.
32501 2015-04-16 Richard Biener <rguenther@suse.de>
32503 PR tree-optimization/64277
32504 * tree-vrp.c (check_array_ref): Fix anti-range handling,
32505 simplify upper bound handling.
32506 (search_for_addr_array): Simplify.
32507 (check_array_bounds): Handle ADDR_EXPRs here.
32508 (check_all_array_refs): Simplify.
32510 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
32512 * config/i386/i386.c (print_reg): Rewrite function.
32514 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32516 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
32517 Invert the condition.
32519 2015-04-16 Renlin Li <renlin.li@arm.com>
32521 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
32522 simplifications for UNSIGNED_FLOAT.
32524 2015-04-16 Nick Clifton <nickc@redhat.com>
32526 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
32528 (enum rl78_cpu_type): New.
32529 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
32530 (umulhi3_shift_virt): Remove m constraint from operand 1.
32531 (umulqihi3_virt): Likewise.
32532 * config/rl78/rl78.c (rl78_option_override): Add code to process
32533 -mcpu and -mmul options.
32534 (rl78_alloc_physical_registers): Add code to handle divhi and
32535 divsi valloc attributes.
32536 (set_origin): Likewise.
32537 * config/rl78/rl78.h (RL78_MUL_G14): Define.
32538 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
32539 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
32541 (ASM_SPEC): Pass -mcpu on to assembler.
32542 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
32543 (mulqi3_rl78): Likewise.
32544 (mulhi3_g13): Likewise.
32545 (mulhi3): Generate the G13 or G14 versions of the insn directly.
32546 (mulsi3): Likewise.
32547 (mulhi3_g14): Add clobbers of AX and BC.
32548 (mulsi3_g14): Likewise.
32549 (mulsi3_g13): Likewise.
32550 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
32551 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
32552 * config/rl78/rl78.opt (mmul): Initialise value to
32554 (mcpu): New option.
32555 (m13, m14, mrl78): New option aliases.
32556 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
32557 (MULTILIB_DIRNAMES): Add g13 and g14.
32558 * doc/invoke.texi: Document -mcpu and -mmul options.
32560 2015-04-16 Richard Biener <rguenther@suse.de>
32562 * tree-ssa-ccp.c (likely_value): See if we have operands that
32563 are marked as never simulate again and return CONSTANT in this
32565 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
32566 not have any operands that will be simulated again as
32567 not being simulated again.
32569 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
32571 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
32572 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
32573 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
32575 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
32577 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
32578 *float<SWI48:mode><MODEF:mode>2_sse.
32579 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
32581 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
32584 2015-04-15 Tom de Vries <tom@codesourcery.com>
32587 * function.c (push_dummy_function): New function.
32588 (init_dummy_function_start): Use push_dummy_function.
32589 (pop_dummy_function): New function. Factored out of ...
32590 (expand_dummy_function_end): ... here.
32591 * function.h (push_dummy_function, pop_dummy_function): Declare.
32592 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
32593 pop_dummy_function.
32594 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
32596 2015-04-15 Jeff Law <law@redhat.com>
32598 PR tree-optimization/47679
32599 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
32600 need for forward declaration in upcoming changes.
32601 (record_conditions, record_edge_info): Likewise.
32603 PR rtl-optimization/42522
32604 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
32605 SIGN_EXTRACT as a whole object rather than simplifying
32608 2015-04-15 Jakub Jelinek <jakub@redhat.com>
32611 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
32612 and GIMPLE_PREDICT use break instead of return true. For
32613 GIMPLE_EH_DISPATCH, compare dispatch region.
32615 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
32617 * doc/extend.texi (__sync Builtins): Simplify some text. Update
32618 details about the implementation. Make clear preference for
32619 __atomic builtins. Reduce possibility of future change.
32621 2015-04-15 Nick Clifton <nickc@redhat.com>
32623 * config/rx/rx.opt (mallow-string-insns): New option.
32624 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
32625 builtin if string instructions are denied.
32626 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
32627 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
32629 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
32630 * config/rx/rx.md (movstr): Enable pattern only if string
32631 instructions are allowed.
32632 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
32633 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
32634 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
32635 (MULTILIB_DIRNAMES): Add no-strings.
32636 * doc/invoke.texi: Document -mno-allow-string-insns.
32638 2015-04-15 Alan Modra <amodra@gmail.com>
32642 PR middle-end/36043
32643 * calls.c (load_register_parameters): Don't load past end of
32644 mem unless suitably aligned.
32646 2015-04-15 Nick Clifton <nickc@redhat.com>
32648 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
32649 decrement instruction as being frame related.
32650 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
32652 If zero extending a function address enclose the operation in
32654 (rl78_preferred_reload_class): New function.
32655 (TARGET_PREFERRED_RELOAD_CLASS): Define.
32656 * config/rl78/rl78.md: Remove useless constraints in expanders.
32657 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
32658 (mulhi3_rl78): Likewise.
32659 (mulhi3_g13): Likewise.
32660 (mulsi3_rl78): Likewise.
32661 (es_addr): Move to before the multiply patterns.
32663 2015-04-15 Alan Modra <amodra@gmail.com>
32665 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
32666 and sequence_stack. Add seq.
32667 (seq_stack): Delete.
32668 * function.c (prepare_function_start): Don't access x_last_insn.
32669 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
32670 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
32671 * emit_rtl.c (start_sequence, push_topmost_sequence,
32672 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
32673 sequence accessors.
32674 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
32675 remove_insn): Likewise. Simplify.
32676 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
32677 and pop_topmost_sequence.
32678 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
32680 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
32682 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
32685 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
32688 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
32690 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
32691 (LEGACY_INT_REGNO_P): Ditto.
32692 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
32693 (ANY_MASK_REG_P): Remove.
32694 (BND_REG_P): Rename from ANY_BND_REG_P.
32695 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
32696 legacy integer registers. Do not handle MMX_REG_P in a special way.
32697 Merge 64byte and 32byte SSE handling.
32699 2015-04-14 Nick Clifton <nickc@redhat.com>
32701 * expr.c (expand_assignment): Force an address offset computation
32702 into a register before changing its mode.
32703 (expand_expr_real_1): Likewise.
32705 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
32707 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
32708 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
32709 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
32710 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
32711 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
32712 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
32713 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
32714 and __aarch64_vget_lane_any.
32716 2015-04-14 Jakub Jelinek <jakub@redhat.com>
32718 PR rtl-optimization/65761
32719 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
32720 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
32722 2015-04-14 Richard Biener <rguenther@suse.de>
32724 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
32725 (graphite_can_represent_scev): Use POINTER_TYPE_P.
32727 2015-04-14 Richard Biener <rguenther@suse.de>
32729 PR tree-optimization/65758
32730 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
32732 (ccp_lattice_meet): Likewise.
32733 (bit_value_unop): Likewise.
32734 (bit_value_binop): Likewise.
32735 (bit_value_assume_aligned): Likewise.
32737 2015-04-14 Christian Bruel <christian.bruel@st.com>
32739 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
32742 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
32744 PR tree-optimization/63387
32745 * match.pd ((x unord x) | (y unord y) -> (x unord y),
32746 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
32748 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
32750 * config/i386/predicates.md (any_QIreg_operand): Rename from
32751 q_regs_operand. Do not process subregs.
32752 (QIreg_operand): Use QI_REGNO_P predicate.
32753 (ext_QIreg_operand): Ditto.
32754 (ext_register_operand): Ditto.
32755 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
32756 (AND splitters): Ditto.
32757 (AND with -65536 splitter): Add SWI48 mode for operand 0.
32758 (AND with -256 splitter): Use any_QIreg_operand predicate and
32759 SWI248 mode for operand 0.
32760 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
32761 mode for operand 0.
32762 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
32764 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
32766 * doc/plugins.texi: Rewrite first introductory paragraph.
32768 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
32770 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
32771 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
32773 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
32775 * ipa-profie.c (ipa_profile): Check number of parameters
32776 and possible polymorphic call targets before
32779 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
32781 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
32782 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
32784 2015-04-13 Richard Biener <rguenther@suse.de>
32786 PR tree-optimization/65204
32787 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
32788 takens for bit-CCP.
32790 2015-04-13 Richard Biener <rguenther@suse.de>
32793 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
32794 and cond_not_taken_branch_cost to 4 and 2.
32795 (bdver2_cost): Likewise.
32796 (bdver3_cost): Likewise.
32797 (bdver4_cost): Likewise.
32799 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
32801 * hash-table.h (hash_table constructor): Add mem stats.
32802 (alloc_entries): Likewise.
32804 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
32806 * ipa-cp.c (ipcp_driver): Relase prev_edge.
32807 * passes.c (execute_one_pass): Only add transform if pass has one.
32809 2015-04-12 Joseph Myers <joseph@codesourcery.com>
32811 * config/i386/i386.c (ix86_option_override_internal): Don't set
32812 -fprefetch-loop-arrays if optimizing for size.
32814 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
32815 Gerald Pfeifer <gerald@pfeifer.com>
32817 * doc/contrib.texi (Contributors): Add Martin Jambor and
32820 2015-04-12 Jakub Jelinek <jakub@redhat.com>
32822 * BASE-VER: Set to 6.0.0.
32824 PR tree-optimization/65747
32825 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
32826 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
32828 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
32830 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
32831 sentence. Improve grammar.
32833 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
32835 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
32837 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
32840 * ipa-inline-transform.c (speculation_removed): Remove static var.
32841 (check_speculations): New function.
32842 (clone_inlined_nodes): Do not check spculations.
32843 (inline_call): Call check_speculations.
32844 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
32845 consider non-invariants.
32847 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
32848 Martin Liska <mliska@suse.cz>
32851 * ipa-icf.c (sem_item::compare_cgraph_references): function and
32852 variable can not match.
32853 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
32854 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
32856 2015-04-11 Jakub Jelinek <jakub@redhat.com>
32858 PR tree-optimization/65735
32859 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
32860 Remove visited_phis argument, add visited_bbs, avoid recursing into the
32861 same bb rather than just into the same phi node.
32862 (thread_through_normal_block): Adjust caller.
32864 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
32866 * doc/contrib.texi (Contributors): Add Ira Rosen.
32868 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
32870 * gcov.c (find_source): Fix miswording in error message.
32871 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
32872 (ix86_expand_sse_comi_round): Fix typo in error message.
32874 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
32876 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
32878 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
32880 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
32882 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
32885 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
32886 Print bad_spills_num and insn_pseudos_num.
32888 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32891 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
32892 when creating +1 values for SImode.
32894 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
32897 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
32900 2015-04-10 Jakub Jelinek <jakub@redhat.com>
32901 Iain Sandoe <iain@codesourcery.com>
32904 * configure: Regenerate.
32906 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
32909 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
32911 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
32913 * doc/contrib.texi (Contributors): Add John Marino.
32915 2015-04-09 Jakub Jelinek <jakub@redhat.com>
32917 PR tree-optimization/65709
32918 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
32919 TREE_TYPE (TREE_TYPE (t)).
32921 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
32924 * lra-int.h (lra_bad_spill_regno_start): New.
32925 * lra.c (lra_bad_spill_regno_start): New.
32926 (lra): Set up lra_bad_spill_regno_start. Set up
32927 lra_constraint_new_regno_start unconditionally.
32928 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
32931 2015-04-09 Marek Polacek <polacek@redhat.com>
32932 Jakub Jelinek <jakub@redhat.com>
32934 PR middle-end/65554
32935 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
32936 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
32939 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
32941 PR rtl-optimization/65693
32942 * combine.c (is_parallel_of_n_reg_sets): Move outside of
32945 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
32948 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
32949 device specs file if "device-specs%s" didn't resolve to a path.
32951 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
32954 * config/i386/i386.c (fixup_modeless_constant): New.
32955 (ix86_expand_args_builtin): Fixup modeless constant operand.
32956 (ix86_expand_round_builtin): Ditto.
32957 (ix86_expand_special_args_builtin): Ditto.
32958 (ix86_expand_builtin): Ditto.
32960 2015-04-09 Jakub Jelinek <jakub@redhat.com>
32963 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
32964 any pow2 integer in between 2 and 0x80000000U inclusive.
32966 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
32968 PR rtl-optimization/65693
32969 * combine.c (is_parallel_of_n_reg_sets): Change first argument
32970 from an rtx_insn * to an rtx.
32971 (try_combine): Adjust both callers. Use it once more.
32973 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
32975 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
32976 (chkp_make_static_const_bounds): Search existing
32977 symbol by assembler name. Use make_decl_one_only.
32978 (chkp_get_zero_bounds_var): Remove node search which
32979 is now performed in chkp_make_static_const_bounds.
32980 (chkp_get_none_bounds_var): Likewise.
32982 2015-04-08 Michael Witten <mfwitten@gmail.com>
32984 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
32987 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
32989 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
32991 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
32993 * doc/extend.texi (__sync Builtins): Fix grammar.
32995 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
32997 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
32999 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
33001 * varasm.c (emit_local): Move definition of align.
33003 2015-04-08 Julian Brown <julian@codesourcery.com>
33005 * config/nvptx/mkoffload.c (process): Support variable mapping.
33007 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
33009 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
33011 (alpha_write_one_linkage): Correct typo.
33013 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
33015 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
33017 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
33019 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
33021 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
33023 * tree-chkp.h (chkp_insert_retbnd_call): New.
33024 * tree-chkp.c (chkp_insert_retbnd_call): New.
33025 * ipa-split.c (insert_bndret_call_after): Remove.
33026 (split_function): Use chkp_insert_retbnd_call.
33027 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
33028 bounds for instrumented functions.
33030 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
33033 * calls.c (initialize_argument_information): When producing tail
33034 call also turn SSA_NAMES passed by references to original PARM_DECLs
33036 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
33039 * lra-remat.c (do_remat): Process input and non-input insn
33040 registers separately.
33042 2015-04-07 Jakub Jelinek <jakub@redhat.com>
33045 * valtrack.c (debug_lowpart_subreg): New function.
33046 (dead_debug_insert_temp): Use it.
33048 PR middle-end/65680
33049 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
33050 into signed HOST_WIDE_INT the same as negative bit_offset.
33052 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
33054 * ipa-comdats.c (ipa_comdats): Visit all thunks
33055 to set proper comdat group.
33057 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33060 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
33061 on constants for NEON VSTRUCT modes.
33063 2015-04-07 Jakub Jelinek <jakub@redhat.com>
33064 Iain Sandoe <iain@codesourcery.com>
33067 * configure: Regenerate.
33069 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
33072 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
33073 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
33074 that LFD is used to load double constants instead of LFS. Add
33075 defaults for all costs structures. Add comments for missing
33076 initialization fields.
33077 (size32_cost): Likewise.
33078 (size64_cost): Likewise.
33079 (rs64a_cost): Likewise.
33080 (mpccore_cost): Likewise.
33081 (ppc403_cost): Likewise.
33082 (ppc405_cost): Likewise.
33083 (ppc440_cost): Likewise.
33084 (ppc476_cost): Likewise.
33085 (ppc601_cost): Likewise.
33086 (ppc603_cost): Likewise.
33087 (ppc604_cost): Likewise.
33088 (ppc604e_cost): Likewise.
33089 (ppc620_cost): Likewise.
33090 (ppc630_cost): Likewise.
33091 (ppccell_cost): Likewise.
33092 (ppc750_cost): Likewise.
33093 (ppc7450_cost): Likewise.
33094 (ppc8540_cost): Likewise.
33095 (ppce300c2c3_cost): Likewise.
33096 (ppce500mc_cost): Likewise.
33097 (ppce500mc64_cost): Likewise.
33098 (ppce5500_cost): Likewise.
33099 (ppce6500_cost): Likewise.
33100 (titan_cost): Likewise.
33101 (power4_cost): Likewise.
33102 (power6_cost): Likewise.
33103 (power7_cost): Likewise.
33104 (power8_cost): Likewise.
33105 (ppca2_cost): Likewise.
33106 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
33108 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
33109 instead of XXLOR to copy SFmode to clear out dirty bits created
33110 when SFmode denormals are generated.
33111 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
33112 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
33114 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
33116 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
33117 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
33118 * config/aarch64/aarch64-tune.md: Regenerate.
33120 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
33122 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
33123 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
33124 * config/arm/arm-cores.def (exynos-m1): New core.
33125 * config/arm/arm-tune.md: Regenerate.
33126 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
33127 * config/arm/bpabi.h: Likewise.
33129 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
33131 * ipa-cp (set_single_call_flag): Remove too
33132 restrictive assert.
33134 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
33136 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
33137 GOMP_offload_unregister from the destructor.
33139 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
33141 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
33142 flags for instrumentation thunk.
33143 (chkp_produce_thunks): Likewise.
33145 2015-04-05 Martin Liska <mliska@suse.cz>
33148 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
33149 has computed data structure.
33150 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
33152 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
33154 * invoke.texi (inline-unit-growth): Increase growth to 20%
33155 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
33157 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
33160 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
33162 (lra_rematerialization_iter): New.
33163 * lra.c (lra): Initialize lra_rematerialization_iter.
33164 Stop updating lra_constraint_new_regno_start after switching of
33165 inheritance and rematerialization.
33166 * lra-remat.c (lra_rematerialization_iter): New.
33167 (lra_remat): Add printing pass iteration. Do rematerialization
33168 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
33170 2015-04-04 Richard Biener <rguenther@suse.de>
33172 PR tree-optimization/64909
33173 PR tree-optimization/65660
33174 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
33175 to take a cost vector for scalar iteration cost.
33176 (vect_get_single_scalar_iteration_cost): Likewise.
33177 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
33178 Compute the scalar iteration cost into a cost vector.
33179 (vect_get_known_peeling_cost): Use the scalar cost vector to
33180 account for the cost of the peeled iterations.
33181 (vect_estimate_min_profitable_iters): Likewise.
33182 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
33185 2015-04-04 Alan Modra <amodra@gmail.com>
33189 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
33190 0.0 constant unless TARGET_VSX.
33191 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
33194 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
33197 * ipa-inline-transform.c (inline_call): Skip sanity check to work
33200 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
33203 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
33204 speculative indirect edges to avoid ordering issue.
33206 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
33209 * ipa-inline.c (edge_badness): Add combined size to the denominator.
33211 2015-04-03 Jakub Jelinek <jakub@redhat.com>
33213 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
33214 TYPE_ARTIFICIAL on the .omp_data* types.
33216 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
33218 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
33219 instrumentation thunks.
33221 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
33223 * config/i386/i386.c (ix86_expand_call): Avoid nested
33224 PARALLEL in returned call value.
33226 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
33228 * lto-cgraph.c (input_cgraph_1): Always link instrumented
33229 assembler name with original one.
33231 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
33233 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
33235 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
33237 Revert parts of r216820.
33238 * config/i386/i386.md (movqi_internal): Correct type calculation
33239 for alternatives 3 and 5.
33241 2015-04-02 Jakub Jelinek <jakub@redhat.com>
33243 PR preprocessor/61977
33244 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
33245 predefine __vector/__bool/__pixel macros nor context sensitive
33246 macros for CLK_ASM.
33247 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
33249 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
33251 * config/pa/pa.c (pa_output_move_double): Directly handle register
33252 indexed memory operand. Simplify handling of scaled register indexed
33255 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
33258 * config/i386/linux-common.h (MPX_SPEC): New.
33259 (CHKP_SPEC): Add MPX_SPEC.
33260 * doc/invoke.texi (-fcheck-pointer-boudns): Document
33261 possible issues with '-z bndplt' support in linker.
33263 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
33265 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
33266 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
33267 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
33268 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
33269 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
33271 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
33273 * config/i386/sync.md (UNSPEC_MOVA): Remove.
33274 (atomic_load<mode>): Change operand 0 predicate to
33275 nonimmediate_operand and fix up the destination when needed.
33277 (atomic_loaddi_fpu): Use UNSPEC_LDA.
33278 (atomic_store<mode>): Change operand 1 predicate to
33279 nonimmendate_operand and move the source to register when needed.
33281 (atomic_store<mode>_1): Use UNSPEC_STA.
33282 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
33283 Fix moves from memory operand. Use UNSPEC_STA.
33285 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
33287 * expmed.c (strict_volatile_bitfield_p): Check that the access will
33288 not cross a MODESIZE boundary.
33289 (store_bit_field, extract_bit_field): Added assertions in the
33290 strict volatile bitfields code path.
33292 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
33295 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
33296 Increase args array size by one to avoid buffer overflow.
33298 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
33300 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
33302 * ipa-inline.c (edge_badness): Add wrapper penalty.
33303 (sum_callers): Move up.
33304 (inline_small_functions): Set single_caller.
33305 * ipa-inline.h (inline_summary): Add single_caller.
33306 * ipa-split.c (split_function): Set split_part.
33307 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
33308 * cgraph.h (cgraph_node): Add split_part.
33310 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
33313 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
33314 Do not split operands 0 and operands 2 to halfmode.
33315 (atomic_compare_and_swap<mode>): Update for
33316 atomic_compare_and_swap<dwi>_doubleword changes.
33318 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
33320 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
33321 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
33322 no caching is done.
33324 2015-03-31 Martin Liska <mliska@suse.cz>
33327 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
33328 has already filled up function summary.
33329 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
33331 2015-03-31 Richard Biener <rguenther@suse.de>
33333 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
33336 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
33338 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
33340 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
33341 (s390_asm_output_function_label): Adapt to new signature of
33342 s390_function_num_hotpatch_hw
33343 Optimise the code generating assembler output.
33344 Add comments to assembler file.
33346 2015-03-31 Richard Biener <rguenther@suse.de>
33348 PR middle-end/65626
33349 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
33350 of the noreturn call so it is last and cleanup_control_flow_bb
33351 can do the CFG part.
33353 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
33356 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
33357 same_comdat_group for external symbols.
33358 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
33359 infinite same_comdat_group traversal loop.
33361 2015-03-31 Jakub Jelinek <jakub@redhat.com>
33364 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
33365 automatically to $headers.
33367 2015-03-30 Jakub Jelinek <jakub@redhat.com>
33370 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
33371 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
33373 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
33375 * ipa-prop.c (param_type_may_change_p): Likewise.
33376 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
33377 (remove_unused_scope_block_p): Add in_ctor_dtor_block
33378 argument. Before inlining, preserve
33379 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
33380 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
33382 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
33384 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
33387 * ipa-inline.c (edge_badness): Base denominator on callee's
33390 2015-03-27 Martin Jambor <mjambor@suse.cz>
33393 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
33394 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
33395 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
33396 node_calling_single_call.
33397 * ipa-cp.c (count_callers): New function.
33398 (set_single_call_flag): Likewise.
33399 (initialize_node_lattices): Count callers and set single_flag_call if
33401 (incorporate_penalties): New function.
33402 (good_cloning_opportunity_p): Use it, dump new flags.
33403 (propagate_constants_topo): Set node_within_scc flag if appropriate.
33404 * doc/invoke.texi (ipa-cp-recursion-penalty,
33405 ipa-cp-single-call-pentalty): Document.
33407 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
33410 * symtab.c (symtab_node::get_partitioning_class): Register vars
33412 * varpool.c (symbol_table::output_variables) Do not assemble unefined
33413 decls for non-symbols.
33415 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
33418 * output.h (default_binds_local_p_2): New.
33419 * varasm.c (default_binds_local_p_2): Renamed to ...
33420 (default_binds_local_p_3): This. Don't return true on protected
33421 data symbol if protected data may be external.
33422 (default_binds_local_p): Use default_binds_local_p_3.
33423 (default_binds_local_p_1): Likewise.
33424 (default_binds_local_p_2): New.
33425 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
33426 default_binds_local_p_2 if TARGET_MACHO is undefined.
33428 2015-03-27 Jakub Jelinek <jakub@redhat.com>
33431 * config/i386/i386.c (legitimize_pic_address): If base
33432 is SYMBOL_REF or LABEL_REF using %rip addressing, force
33433 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
33435 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
33438 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
33441 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
33444 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
33445 of optimized out indirect call.
33446 (redirect_to_unreachable): Always build symbol table node for
33447 BUILT_IN_UNREACHABLE
33449 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
33452 * ira-costs.c (record_reg_classes): Process all constraint string
33455 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
33457 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
33461 * config/c6x/constraints.md (S3): New constraint.
33462 * config/c6x/c6x.md (real_jump): Use it.
33464 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
33466 PR middle-end/65595
33467 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
33468 do redirection if the call is not optimized out.
33470 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
33473 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
33474 (fchkp-check-incomplete-type): Add LTO.
33475 (fchkp-zero-input-bounds-for-main): Likewise.
33476 (fchkp-first-field-has-own-bounds): Likewise.
33477 (fchkp-narrow-bounds): Likewise.
33478 (fchkp-narrow-to-innermost-array): Likewise.
33479 (fchkp-use-static-bounds): Likewise.
33480 (fchkp-use-static-const-bounds): Likewise.
33481 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
33483 2015-03-27 Marek Polacek <polacek@redhat.com>
33485 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
33487 2015-03-27 Marek Polacek <polacek@redhat.com>
33490 * ubsan.c (ubsan_create_edge): New function.
33491 (instrument_bool_enum_load): Call it.
33492 (instrument_nonnull_arg): Likewise.
33493 (instrument_nonnull_return): Likewise.
33494 (instrument_object_size): Likewise.
33496 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
33498 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
33501 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
33504 * lto-streamer.h (class lto_location_cache): New.
33505 (struct data_in): Add location_cache.
33506 (lto_input_location): Update prototype.
33507 (stream_input_location_now): New.
33508 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
33509 pointer to location.
33510 (stream_input_location): Update.
33511 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
33512 (warn_odr): Apply location cache before warning.
33513 (lto_input_location): Update prototype.
33514 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
33515 Use stream_input_location_now.
33516 * lto-streamer-in.c (lto_location_cache::current_cache): New static
33518 (lto_location_cache::cmp_loc): New function.
33519 (lto_location_cache::apply_location_cache): New function.
33520 (lto_location_cache::accept_location_cache): New function.
33521 (lto_location_cache::revert_location_cache): New function.
33522 (lto_location_cache::input_location): New function.
33523 (lto_input_location): Do location caching.
33524 (stream_input_location_now): New function.
33525 (input_eh_region, input_struct_function_base): Use
33526 stream_input_location_now.
33527 (lto_data_in_create): use new.
33528 (lto_data_in_delete): Use delete.
33529 * tree-streamer-in.c (unpack_ts_block_value_fields,
33530 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
33531 lto_input_ts_exp_tree_pointers): Update for cached location api.
33533 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
33536 * passes.def: Add pass_nothrow.
33537 * ipa-pure-const.c: (pass_data_nothrow): New.
33538 (pass_nothrow): New.
33539 (pass_nothrow::execute): New.
33540 (make_pass_nothrow): New.
33541 * tree-pass.h (make_pass_nothrow): Declare.
33543 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
33545 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
33546 edge to change by speculation resolution or redirection.
33547 (edge_set_predicate): Likewise.
33548 (inline_summary_t::duplicate): Likewise.
33549 (remap_edge_summaries): Likewise.
33551 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
33553 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
33555 (can_inline_edge_p): Relax option matching for always inline functions.
33557 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
33560 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
33561 Check operand 4 and operand 0 for equality.
33562 (avx512f_vextract<shuffletype>32x4_1_maskm):
33563 Check operand 6 and operand 0 for equality.
33564 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
33566 (vec_extract_hi_<mode>_maskm): Ditto.
33568 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
33570 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
33571 dead calls back to live.
33572 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
33574 (cgraph_node::verify_node): ... here; verify only callee edges,
33576 * cif-code.def (CILK_SPAWN): New code.
33578 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
33580 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
33581 (edge_set_predicate): Use it to mark unreachable edges.
33582 (inline_summary_t::duplicate): Remove unnecesary code.
33583 (remap_edge_summaries): Likewise.
33584 (dump_inline_summary): Report contains_cilk_spawn.
33585 (compute_inline_parameters): Compute contains_cilk_spawn.
33586 (inline_read_section, inline_write_summary): Stream
33587 contains_cilk_spawn.
33588 * ipa-inline.c (can_inline_edge_p): Do not touch
33589 DECL_STRUCT_FUNCTION that may not be available;
33590 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
33591 remove check for callee_fun->can_throw_non_call_exceptions and
33592 replace it by optimization attribute check; check for flag_exceptions.
33593 * ipa-inline-transform.c (inline_call): Maintain
33594 DECL_FUNCTION_PERSONALITY
33595 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
33597 2015-03-26 Jakub Jelinek <jakub@redhat.com>
33599 PR tree-optimization/65551
33600 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
33601 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
33603 2015-03-26 Richard Biener <rguenther@suse.de>
33605 PR middle-end/65555
33606 * tree-cfg.c (verify_gimple_call): Do not require a call to
33607 have no LHS if it wasn't recognized as control altering yet.
33609 2015-03-26 Jakub Jelinek <jakub@redhat.com>
33611 PR tree-optimization/64715
33612 * passes.def: Add another instance of pass_object_sizes before ccp1.
33613 * tree-object-size.c (pass_object_sizes::execute): In
33614 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
33615 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
33616 __bos result and the computed constant. Remove redundant
33617 checks, obsoleted by gimple_call_builtin_p test.
33619 * var-tracking.c (variable_tracking_main_1): Don't track
33620 variables for targetm.no_register_allocation targets.
33622 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
33624 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
33625 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
33627 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
33630 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
33631 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
33632 0.0 is correctly setup.
33633 (extenddftf2_internal): Likewise.
33635 2015-03-25 Sebastian Pop <s.pop@samsung.com>
33637 PR tree-optimization/65177
33638 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
33640 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
33641 edges not adjacent on the path to the original code.
33643 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
33646 * doc/install.texi (Building a native compiler): Document new
33647 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
33648 configuration assumes that the host supports the linker plugin.
33650 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
33653 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
33654 chain for generated call.
33656 2015-03-25 Richard Biener <rguenther@suse.de>
33658 * passes.c (pass_manager::execute_early_local_passes): Guard
33659 execution of pass_chkp_instrumentation_passes with
33660 flag_check_pointer_bounds.
33661 (pass_chkp_instrumentation_passes::gate): Likewise.
33663 2015-03-25 Martin Liska <mliska@suse.cz>
33665 PR tree-optimization/65538
33666 * symbol-summary.h (function_summary::~function_summary):
33667 Relese memory for allocated summaries.
33668 (function_summary::release): New function.
33670 2015-03-25 Jakub Jelinek <jakub@redhat.com>
33673 * lto-streamer-out.c (DFS::worklist): New struct.
33674 (DFS::worklist_vec): New data member.
33675 (DFS::next_dfs_num): Remove.
33676 (DFS::DFS): Rewritten using worklist instead of recursion,
33677 using most of code from DFS::DFS_write_tree.
33678 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
33679 pass it to DFS_write_tree calls.
33680 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
33681 quick initial checks push it into worklist_vec and return.
33683 2015-03-25 Richard Biener <rguenther@suse.de>
33685 PR middle-end/65519
33686 * genmatch.c (expr::gen_transform): Re-write to avoid
33687 using gimple_build.
33689 2015-03-25 Bin Cheng <bin.cheng@arm.com>
33691 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
33693 2015-03-25 Bin Cheng <bin.cheng@arm.com>
33695 * config/arm/arm.opt (print_tune_info): New option.
33696 * config/arm/arm.c (arm_print_tune_info): New function.
33697 (arm_file_start): Call arm_print_tune_info.
33698 * config/arm/arm-protos.h (struct tune_params): Add comment.
33699 * doc/invoke.texi (@item -mprint-tune-info): New item.
33700 (-mtune): mention it in ARM Option Summary.
33702 2015-03-25 DJ Delorie <dj@redhat.com>
33704 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
33707 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
33708 Martin Liska <mliska@suse.cz>
33710 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
33711 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
33712 (sem_item::add_type): New function.
33713 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
33714 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
33715 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
33716 (sem_function::equals_wpa): Fix typo.
33717 * ipa-icf.h (sem_item::add_type): New function.
33718 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
33721 2015-03-24 Jakub Jelinek <jakub@redhat.com>
33723 PR tree-optimization/65533
33724 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
33725 with swapped operands, call vect_free_slp_tree on
33726 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
33729 2015-03-24 Richard Biener <rguenther@suse.de>
33731 PR middle-end/65517
33732 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
33733 for fixup if necessary.
33735 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
33737 * doc/extend.texi (Function Attributes): Add @cindex entries
33738 for all attributes and regularize their format. Delete text
33739 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
33740 information about "eightbit_data", "tiny_data", and "model"
33741 variable attributes to the Variable Attributes section. Fix
33742 some obvious typos and copy-editing issues.
33743 (Variable Attributes, Type Attributes): Likewise add/fix
33744 @cindex entries for all attributes.
33746 2015-03-23 Jakub Jelinek <jakub@redhat.com>
33749 * tree-chkp.c (chkp_build_returned_bound): Ignore
33750 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
33752 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
33755 * config/sh/predicates.md (simple_mem_operand,
33756 displacement_mem_operand): Add test for reg.
33757 (short_displacement_mem_operand): Test for displacement_mem_operand
33758 before invoking sh_disp_addr_displacement.
33759 * config/sh/constraints.md (Sdd, Sra): Simplify.
33760 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
33761 Remove redundant displacement_mem_operand tests.
33763 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
33766 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
33767 the same -mmcu=MCU more than once.
33769 2015-03-23 Jakub Jelinek <jakub@redhat.com>
33772 * ipa-devirt.c: Remove duplicate demangle.h include.
33775 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
33777 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
33778 REG_POINTER on *destptr after adjusting it for prologue size.
33781 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
33782 ultimate_alias_target ()->order ints instead of
33783 ultimate_alias_target () pointers.
33785 2015-03-23 Richard Biener <rguenther@suse.de>
33787 PR tree-optimization/65518
33788 * tree-vect-stmts.c (vectorizable_load): Reject single-element
33789 interleaving cases we generate absymal code for.
33791 2015-03-23 Richard Biener <rguenther@suse.de>
33793 PR tree-optimization/65494
33794 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
33796 (vect_analyze_slp_instance): But do that here, always and once.
33798 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33800 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
33801 adding T or multiplying by T+1 and subracting T.
33803 2015-03-22 Jeff Law <law@redhat.com>
33805 PR rtl-optimization/64317
33806 * Makefile.in (OBJS): Add gcse-common.c
33807 * gcse.c: Include gcse-common.h
33808 (struct modify_pair_s): Move structure definition to gcse-common.h
33809 (compute_transp): Move function to gcse-common.c.
33810 (canon_list_insert): Similarly.
33811 (record_last_mem_set_info): Break out some code and put it into
33812 gcse-common.c. Call into the new common code.
33813 (compute_local_properties): Pass additional arguments to compute_transp.
33814 * postreload-gcse.c: Include gcse-common.h and df.h
33815 (modify_mem_list_set, blocks_with_calls): New variables.
33816 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
33817 (get_bb_avail_insn): Pass in the expression index too.
33818 (alloc_mem): Allocate memory for the new bitmaps and lists.
33819 (free_mem): Free memory for the new bitmaps and lists.
33820 (insert_expr_in_table): Record a bitmap index for each entry we
33822 (record_last_mem_set_info): Call into common code in gcse-common.c.
33823 (get_bb_avail_insn): If no available insn was found in the requested
33824 BB. If BB has a single predecessor, see if the expression is
33825 transparent in BB and available in that single predecessor.
33826 (compute_expr_transp): New wrapper for compute_transp.
33827 (eliminate_partially_redundant_load): Pass expression's bitmap_index
33828 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
33829 (gcse_after_reload_main): If there are elements in the hash table,
33830 then compute transparency for all the elements in the hash table.
33831 * gcse-common.h: New file.
33832 * gcse-common.c: New file.
33834 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
33836 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
33838 (System Headers): Likewise.
33840 (Traditional macros): Likewise.
33841 (Invocation): Likewise.
33842 (Option Index): Likewise.
33843 * doc/cppopts.texi (-M): Likewise.
33844 (-finput-charset): Likewise.
33845 (--help): Likewise.
33846 * doc.invoke.texi (AVR Options): Likewise.
33847 (V850 Options): Likewise.
33849 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
33852 * ipa-devirt.c: Include demangle.h
33853 (odr_type_d): Add field rtti_broken.
33854 (odr_subtypes_equivalent_p): Do not require name to match.
33855 (compare_virtual_tables): Fix typo; if type already has ODR violation,
33856 bypass the tests; be ready for function referneces in vtables that are
33857 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
33858 (warn_odr): Give up for nameless types.
33859 (warn_types_mismatch): Report mismatch in mangled names;
33860 report mismatch in anonymous namespaces; look into component types to
33861 give useful error; report when mismatch is dragged in from other ODR
33863 (odr_types_equivalent_p): Match types for being polymorphic; avoid
33864 duplicated diagnostics.
33865 (add_type_duplicate): Reorder checks so more informative ones come
33866 first; fix typo; do not output "the extra base is defined here" when
33868 (BINFO_N_BASE_BINFOS): Relax sanity check.
33870 2015-03-22 Martin Liska <mliska@suse.cz>
33871 Jakub Jelinek <jakub@redhat.com>
33873 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
33874 masks that can potentially include a builtin.
33875 (ix86_add_new_builtins): Introduce fast filter for isa values
33876 that cannot trigger builtin inclusion.
33878 2015-03-22 Martin Liska <mliska@suse.cz>
33880 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
33881 (sem_item::update_hash_by_local_refs): Likewise.
33882 (sem_variable::get_hash): Empty line is fixed.
33883 (sem_item_optimizer::execute): Include adding of hash references.
33884 (sem_item_optimizer::update_hash_by_addr_refs): New function.
33885 (sem_item_optimizer::build_hash_based_classes): Use local hash.
33886 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
33887 (sem_item::update_hash_by_local_refs): Likewise.
33889 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
33892 * ipa-comdats.c (enqueue_references): Walk through thunks.
33893 (ipa_comdats): Likewise.
33894 (set_comdat_group_1): New function.
33896 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
33899 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
33902 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
33903 Gerald Pfeifer <gerald@pfeifer.com>
33905 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
33907 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
33908 Sandra Loosemore <sandra@codesourcery.com>
33910 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
33911 function parameter declaration.
33912 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
33913 Update arguments to nios2_adjust_call_address().
33914 (sibcall_internal): Rename from *sibcall.
33915 (sibcall_value_internal): Rename from *sibcall_value.
33916 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
33917 (nios2_large_got_address): Add target temp reg parameter.
33918 (nios2_got_address): Adjust call to nios2_large_got_address, add
33919 force_reg around it.
33920 (nios2_load_pic_address): Add target temp reg parameter, replace call
33921 to nios2_got_address with corresponding code.
33922 (nios2_legitimize_constant_address): Update call to
33923 nios2_load_pic_address.
33924 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
33925 to use temp reg for PIC loading purposes.
33926 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
33927 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
33928 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
33930 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
33932 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
33933 usage of "the @option{...}".
33934 (-Wopenmp-simd): Likewise.
33935 (-fsanitize-recover): Likewise.
33936 (-fsanitize-undefined-trap-on-error): Likewise.
33938 (tracer-dynamic-coverage-feedback): Likewise.
33939 (reorder-block-duplicate-feedback): Likewise.
33940 (loop-unroll-jam-size): Likewise.
33943 (-mabs=legacy): Likewise.
33944 (-mupper-regs-df): Likewise.
33945 (-mupper-regs-sf): Likewise.
33946 (-mpointers-to-nested-functions): Likewise.
33948 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
33950 * doc/extend.texi (Cilk Plus Builtins): Add markup.
33952 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
33954 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
33955 additional index entries and cross-references.
33956 (-fchkp-check-incomplete-type): Likewise.
33957 (-fchkp-first-field-has-own-bounds): Likewise.
33958 (-fchkp-narrow-to-innermost-array): Likewise.
33959 (-fchkp-use-fast-string-functions): Likewise.
33960 (-fchkp-use-nochk-string-functions): Likewise.
33961 (-fchkp-use-static-const-bounds): Likewise.
33962 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
33963 (-fchkp-instrument-marked-only): Likewise.
33964 (-fchkp-use-wrappers): Likewise.
33965 (-static-libmpx): Likewise.
33966 (-static-libmpxwrappers): Likewise.
33967 * doc/extend.texi (bnd_legacy): Likewise.
33968 (bnd_instrument): Likewise.
33969 (bnd_variable_size): Likewise.
33970 (Pointer Bounds Checker builtins): Likewise.
33972 2015-03-21 Tom de Vries <tom@codesourcery.com>
33974 PR tree-optimization/65458
33975 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
33976 * cgraph.h (cgraph_node): Add parallelized_function field.
33977 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
33978 (input_overwrite_node): Read parallelized_function field.
33979 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
33980 parallelized_function on cgraph_node for child_fn.
33981 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
33982 Remove include of gt-tree-parloops.h.
33983 (parallelized_functions): Remove static variable.
33984 (parallelized_function_p): Rewrite using parallelized_function field of
33986 (create_loop_fn): Remove adding to parallelized_functions.
33987 * Makefile.in (GTFILES): Remove tree-parloops.c
33989 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
33991 PR rtl-optimization/64366
33992 * lra.c (lra_update_insn_regno_info): Consider regs in
33993 CALL_INSN_FUNCTION_USAGE memory.
33995 2015-03-20 Richard Biener <rguenther@suse.de>
33997 PR middle-end/64715
33998 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
33999 for type comparison and gcc_checking_assert.
34000 (chrec_fold_plus_poly_poly): Likewise.
34001 (chrec_fold_multiply_poly_poly): Likewise.
34002 (chrec_convert_1): Likewise.
34003 * gimplify.c (gimplify_expr): Remove premature folding of
34004 &X + CST to &MEM[&X, CST].
34006 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
34008 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
34010 (ipa_inline): Recompute inline_failed codes.
34011 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
34012 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
34015 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
34017 PR rtl-optimization/60851
34018 * recog.c (constrain_operands): Accept a pseudo register before reload
34019 for LRA enabled targets.
34021 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
34024 * config/rs6000/predicates.md (easy_fp_constant): Remove special
34025 -ffast-math handling that kept non-0 constants live in the RTL
34026 until reload. Remove logic testing the number of instructions it
34027 took to create a constant in a GPR that was never used, due to a
34028 test for soft-float earlier.
34029 (memory_fp_constant): Delete, no longer used.
34031 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
34032 alternatives for loading non-0 constants into GPRs for hard
34033 floating point that is no longer needed due to changes in
34034 easy_fp_constant. Add support for loading 0.0 into GPRs.
34035 (mov<mode>_hardfloat32): Likewise.
34036 (mov<mode>_hardfloat64): Likewise.
34037 (mov<mode>_64bit_dm): Likewise.
34038 (movtd_64bit_nodm): Likewise.
34039 (pre-reload move FP constant define_split): Delete define_split,
34040 since it is no longer used.
34041 (extenddftf2_internal): Remove GHF constraints that are not valid
34044 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
34046 PR rtl-optimization/63491
34047 * lra-constraints.c (check_and_process_move): Use src instead of
34048 sreg. Remove some dead code.
34050 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
34053 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
34054 (sem_variable::merge): Likewise.
34056 2015-03-19 Martin Liska <mliska@suse.cz>
34059 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
34060 all fields of cgraph_thunk_info.
34062 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
34064 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
34065 clone instrumented thunks.
34067 2015-03-19 Richard Biener <rguenther@suse.de>
34070 2015-03-10 Richard Biener <rguenther@suse.de>
34072 PR middle-end/63155
34073 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
34074 * tree-ssa-coalesce.c: Include timevar.h.
34075 (attempt_coalesce): Handle graph being NULL.
34076 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
34077 Split out abnormal coalescing to ...
34078 (perform_abnormal_coalescing): ... this function.
34079 (coalesce_ssa_name): Perform abnormal coalescing without computing
34081 (verify_ssa_coalescing_worker): New function.
34082 (verify_ssa_coalescing): Likewise.
34084 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
34085 Jakub Jelinek <jakub@redhat.com>
34088 * tsan.c (instrument_gimple): Clear tail call flag on
34091 2015-03-19 Jakub Jelinek <jakub@redhat.com>
34094 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
34095 call in the return bb.
34096 (find_split_points): Add RETURN_BB argument, don't call
34098 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
34099 if true append TSAN_FUNC_EXIT internal call after the call to
34100 the split off function.
34101 (execute_split_functions): Call find_return_bb here.
34102 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
34103 Adjust find_split_points and split_function calls.
34105 2015-03-18 DJ Delorie <dj@redhat.com>
34107 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
34108 (iorqi3_virt): Likewise.
34110 2015-03-18 Tom de Vries <tom@codesourcery.com>
34112 * tree-parloops.c (parallelize_loops): Make static.
34113 * tree-parloops.h (parallelize_loops): Remove extern declaration.
34115 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
34117 PR middle-end/64491
34119 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
34121 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
34122 condition would be removed due to undefined behaviour.
34124 2015-03-18 Martin Liska <mliska@suse.cz>
34127 * cgraph.c (cgraph_node::get_create): Remove unnecessary
34128 xstrdup_for_dump wrapper.
34129 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
34131 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
34132 with xstrdup_for_dump.
34133 (sem_variable::equals): Likewise.
34134 (sem_item_optimizer::read_section): Use symtab_node::name instead of
34136 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
34137 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
34138 symtab_node::asm_name with xstrdup_for_dump.
34139 (congruence_class::dump): Use symtab_node::name instead of
34141 * ipa-icf.h (symtab_node::name): Remove.
34142 (symtab_node::asm_name): Likewise.
34144 2015-03-18 Jakub Jelinek <jakub@redhat.com>
34146 PR tree-optimization/65450
34147 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
34149 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
34150 it instead of duplicate_ssa_name_ptr_info.
34153 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
34155 2015-03-18 Richard Biener <rguenther@suse.de>
34157 * tree-data-ref.h (struct access_matrix): Remove.
34158 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
34159 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
34160 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
34161 (am_vector_index_for_loop): Likewise.
34162 (struct data_reference): Remove access_matrix member.
34163 (DR_ACCESS_MATRIX): Remove.
34164 (lambda_vector_new): Add comment.
34165 (lambda_matrix_new): Use XOBNEWVEC.
34167 2015-03-18 Richard Biener <rguenther@suse.de>
34169 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
34170 (pass_ch::execute): Cleanup the CFG only if we did sth.
34171 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
34173 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34175 * expmed.c (synth_mult): Use std::swap instead of manually
34176 swapping algorithms.
34178 2015-03-18 Jakub Jelinek <jakub@redhat.com>
34181 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
34183 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
34186 * config/avr/avr.opt (-nodevicelib): New option.
34187 * doc/invoke.texi (AVR Options): Document it.
34188 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
34189 libgcc.a, libc.a, libm.a.
34190 * config/avr/specs.h: Same.
34191 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
34192 which don't (directly) depend on the device. Print more help.
34193 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
34194 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
34195 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
34197 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
34198 for specs file name.
34199 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
34200 * config/avr/avr-mcus.def: Adjust initializers and comments.
34202 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
34204 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
34205 DECL_ONE_ONLY to check if decl is one only.
34206 * ipa-split.c (consider_split): Limit splitt of one only functions.
34208 2015-03-16 Jakub Jelinek <jakub@redhat.com>
34210 PR tree-optimization/65427
34211 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
34213 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
34215 2015-03-16 Marek Polacek <polacek@redhat.com>
34217 * cgraph.h (add_new_static_var): Remove declaration.
34218 * varpool.c (add_new_static_var): Remove function.
34220 2015-03-16 Jakub Jelinek <jakub@redhat.com>
34222 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
34223 instead of vec<tree> * with vec_alloc and release for args.
34226 PR middle-end/65431
34227 * omp-low.c (delete_omp_context): Only splay_tree_delete
34228 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
34229 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
34231 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
34234 * cfgexpand.c (align_base): New function.
34235 (alloc_stack_frame_space): Call it.
34236 (expand_stack_vars): Align prev_frame to be sure
34237 data->asan_vec elements aligned properly.
34239 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
34241 PR middle-end/65409
34242 * expr.c (store_field): Do not do a direct block copy if the source is
34243 a PARALLEL with BLKmode.
34245 2015-03-16 Tom de Vries <tom@codesourcery.com>
34247 PR middle-end/65414
34249 2015-03-12 Tom de Vries <tom@codesourcery.com>
34251 PR rtl-optimization/64895
34252 * lra-lives.c (check_pseudos_live_through_calls): Use
34253 actual_call_used_reg_set instead of call_used_reg_set, if available.
34255 2015-03-16 Alan Modra <amodra@gmail.com>
34258 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
34259 Modify Z->r bswapdi splitter to use dest in place of scratch.
34260 In r->Z and Z->r bswapdi splitter rename word_high, word_low
34261 to word1, word2 and rearrange logic to suit.
34262 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
34263 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
34264 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
34265 Add one '?' on r->r. Modify Z->r splitter to avoid need for
34268 2015-03-14 Jakub Jelinek <jakub@redhat.com>
34270 PR tree-optimization/65369
34271 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
34272 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
34273 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
34275 PR tree-optimization/65418
34276 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
34277 are casts in the first PLUS_EXPR operand, ensure tbias and
34278 *totallowp are in the inner type.
34280 PR rtl-optimization/65401
34281 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
34282 argument. If true, adjust_address_nv of x with big-endian
34283 correction for the mode widening to GET_MODE (y).
34284 (make_field_assignment): Don't do MEM mode widening here.
34285 Use MEM_P instead of GET_CODE == MEM.
34287 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
34289 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
34290 the external decls.
34292 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34295 * config/arm/arm.c (arm_gen_constant, AND case): Use
34296 ARM_SIGN_EXTEND when constructing AND mask.
34298 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
34300 * graph.c (print_graph_cfg): Make function names visible and append
34301 parenthesis to it. Also make groups of basic blocks belonging to the
34302 same function visible.
34304 2015-03-12 Richard Biener <rguenther@suse.de>
34306 PR middle-end/44563
34307 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
34308 to avoid quadratic behavior with inline expansion splitting blocks.
34309 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
34310 with the successor if the predecessor will be merged with it.
34311 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
34312 entry block with its successor.
34314 2015-03-13 Richard Biener <rguenther@suse.de>
34316 PR middle-end/44563
34317 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
34318 (cleanup_tree_cfg_1): Do not call it.
34319 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
34320 (fixup_noreturn_call): Mark the stmt as control altering.
34321 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
34323 (pass_data_fixup_cfg): Produce a dump file.
34324 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
34325 (need_noreturn_fixup): New global.
34326 (pass_dominator::execute): Fixup queued noreturn calls.
34327 (optimize_stmt): Queue calls that became noreturn for fixup.
34328 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
34329 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
34330 (el_to_fixup): New global.
34331 (eliminate_dom_walker::before_dom_childre): Queue calls that
34332 became noreturn for fixup.
34333 (eliminate): Fixup queued noreturn calls.
34334 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
34335 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
34336 (substitute_and_fold_dom_walker::before_dom_children): Queue
34337 alls that became noreturn for fixup.
34338 (substitute_and_fold): Fixup queued noreturn calls.
34340 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
34342 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
34343 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
34344 are building; for methods check ODR type of class they belong to if
34345 they may lead to a polymorphic call.
34346 (sem_function::compare_polymorphic_p): Be bit smarter about testing
34347 when function may lead to a polymorphic call.
34348 (sem_function::compare_type_list): Remove.
34349 (sem_variable::equals): Update use of compatible_types_p.
34350 (sem_variable::parse_tree_refs): Remove.
34351 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
34353 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
34355 (func_checker::compatible_polymorphic_types_p): Break out from ...
34356 (unc_checker::compatible_types_p): ... here.
34357 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
34359 (unc_checker::compatible_types_p): Update.
34360 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
34363 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34365 PR rtl-optimization/65235
34366 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
34367 When first element of vec_concat is const_int, calculate its size
34368 using second element.
34370 2015-03-12 Richard Biener <rguenther@suse.de>
34372 PR middle-end/65270
34373 * fold-const.c (operand_equal_p): Fix ordering of resetting
34374 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
34376 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
34378 * config/s390/s390.c (s390_reorg): Move code to output nops after label
34380 (s390_asm_output_function_label): Likewise.
34381 * config/s390/s390.c (s390_asm_output_function_label):
34382 Fix function label alignment with -mhtopatch.
34383 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
34384 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
34385 ("nop_2_byte"): New define_insn.
34386 ("nop_4_byte"): Likewise.
34387 ("nop_6_byte"): Likewise.
34388 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
34389 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
34391 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
34394 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
34397 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
34400 * toplev.c (process_options): Restrict Pointer Bounds Checker
34401 usage with Address Sanitizer.
34403 2015-03-12 Richard Biener <rguenther@suse.de>
34405 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
34407 * omp-low.c (expand_omp_taskreg): Split block before removing
34409 (expand_omp_target): Likewise.
34410 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
34411 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
34412 stmt to split_block.
34414 2015-03-12 Tom de Vries <tom@codesourcery.com>
34416 PR rtl-optimization/64895
34417 * lra-lives.c (check_pseudos_live_through_calls): Use
34418 actual_call_used_reg_set instead of call_used_reg_set, if available.
34420 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
34422 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
34423 (cgraph_node::remove): Likewise.
34424 (cgraph_node::get_untransformed_body): Likewise.
34425 * varpool.c (varpool_node::remove): Likewise.
34426 (varpool_node::get_constructor): Add sanity check.
34428 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
34430 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
34432 (-fabi-compat-version): Likewise.
34433 (-ffriend-injection): Likewise.
34434 (-Wdeclaration-after-statement): Likewise.
34435 (-fomit-frame-pointer): Likewise.
34436 (-ftree-coalesce-inlined-vars): Likewise.
34437 (-fvisibility=): Likewise.
34438 * doc/extend.texi (Typeof): Likewise.
34439 (Zero Length): Likewise.
34440 (Escaped Newlines): Likewise.
34441 (Compound Literals): Likewise.
34442 (Function Attributes): Likewise.
34443 (Label Attributes): Likewise.
34444 (Type Attributes): Likewise.
34445 (Function Names): Likewise.
34446 (Other Builtins): Likewise.
34447 (Function Specific Option Pragmas): Likewise.
34448 (C++ Interface): Likewise.
34450 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
34452 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
34454 2015-03-11 Marek Polacek <polacek@redhat.com>
34456 PR tree-optimization/65388
34457 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
34459 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
34462 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
34463 * configure: Regenerate.
34464 * config.in: Regenerate.
34465 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
34466 [-mn-flash]: Document it.
34467 [__AVR_ARCH__]: Document avrtiny.
34469 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
34470 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
34471 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
34473 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
34475 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
34477 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
34480 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
34481 allow reloads of PLUS in floating point/VSX registers.
34483 2015-03-11 Junmo Park <junmoz.park@samsung.com>
34485 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
34486 crypto_sha256_fast.
34487 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
34489 2015-03-11 Richard Biener <rguenther@suse.de>
34491 PR tree-optimization/65310
34492 * tree-sra.c (build_ref_for_offset): Also preserve larger
34495 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
34497 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
34499 2015-03-10 Jakub Jelinek <jakub@redhat.com>
34502 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
34504 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
34506 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
34508 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
34509 (sem_function::equals_wpa): ... here.
34511 2015-03-10 Marek Polacek <polacek@redhat.com>
34512 Jakub Jelinek <jakub@redhat.com>
34515 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
34516 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
34519 2015-03-10 Jakub Jelinek <jakub@redhat.com>
34522 * config/rs6000/t-linux: For powerpc64* target set
34523 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
34525 2015-03-10 Richard Biener <rguenther@suse.de>
34527 PR middle-end/44563
34528 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
34529 for redirect_all_calls.
34531 2015-03-10 Marek Polacek <polacek@redhat.com>
34533 * gdbinit.in (pcfun): Define and document.
34535 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
34537 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
34538 of libgomp-plugin.h.
34539 (find_target_compiler): Support a case when the path to gcc is
34540 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
34541 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
34542 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
34544 (main): Use GCC_INSTALL_NAME as target_driver_name.
34545 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
34547 (mkoffload.o): Remove obsolete include path and defines.
34548 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
34550 2015-03-10 Richard Biener <rguenther@suse.de>
34552 PR middle-end/63155
34553 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
34554 * tree-ssa-coalesce.c: Include timevar.h.
34555 (attempt_coalesce): Handle graph being NULL.
34556 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
34557 Split out abnormal coalescing to ...
34558 (perform_abnormal_coalescing): ... this function.
34559 (coalesce_ssa_name): Perform abnormal coalescing without computing
34561 (verify_ssa_coalescing_worker): New function.
34562 (verify_ssa_coalescing): Likewise.
34564 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
34567 * config.gcc (extra_options) [avr]: Remove.
34568 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
34569 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
34570 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
34572 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
34573 (-mmcu=): Add Var and MissingArgError properties.
34575 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
34576 * config/avr/t-multilib: Regenerate.
34577 * config/avr/specs.h: New file.
34578 * config/avr/driver-avr.c: New file.
34579 * config/avr/genopt.sh: Remove file.
34580 * config/avr/avr-tables.opt: Remove file.
34581 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
34582 * config/avr/avr-c.c: Same.
34583 * avr-arch.h: Same.
34584 (avr_current_device): Remove proto.
34585 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
34586 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
34587 (EXTRA_SPEC_FUNCTIONS): Define.
34588 (avr_devicespecs_file): New specs function proto.
34589 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
34590 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
34591 (avr_current_device): Remove definition and usage.
34592 (avr_set_core_architecture): New static function.
34593 (avr_option_override): Use it.
34594 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
34595 (mcu_name): New static array.
34596 (comparator, avr_archs_str, avr_mcus_str): New static functions.
34597 (avr_inform_devices, avr_inform_core_architectures): New functions.
34598 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
34599 (avrlibc.h) [WITH_AVRLIBC]: Include.
34600 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
34601 (print_mcu): Rewrite from scratch.
34602 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
34603 Forward to avr-specific specs defined in device-specs file.
34604 * config/avr/t-avr (driver-avr.o): New rule.
34605 (avr-devices.o): Depend on avr-arch.h.
34606 (avr-mcus): No more depend on avr-tables.opt.
34607 (avr-tables.opt): Remove rule.
34608 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
34610 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
34612 * c-family/c.opt (fchkp-use-wrappers): New.
34613 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
34614 (chkp_wrap_function): New.
34615 (chkp_build_instrumented_fndecl): Support wrapped
34617 * doc/invoke.texi (-fcheck-pointer-bounds): New.
34618 (-fchkp-check-incomplete-type): New.
34619 (-fchkp-first-field-has-own-bounds): New.
34620 (-fchkp-narrow-bounds): New.
34621 (-fchkp-narrow-to-innermost-array): New.
34622 (-fchkp-optimize): New.
34623 (-fchkp-use-fast-string-functions): New.
34624 (-fchkp-use-nochk-string-functions): New.
34625 (-fchkp-use-static-bounds): New.
34626 (-fchkp-use-static-const-bounds): New.
34627 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
34628 (-fchkp-check-read): New.
34629 (-fchkp-check-write): New.
34630 (-fchkp-store-bounds): New.
34631 (-fchkp-instrument-calls): New.
34632 (-fchkp-instrument-marked-only): New.
34633 (-fchkp-use-wrappers): New.
34634 (-static-libmpx): New.
34635 (-static-libmpxwrappers): New.
34637 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
34639 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
34640 (CHKP_SPEC): Add wrappers library.
34641 * c-family/c.opt (static-libmpxwrappers): New.
34643 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
34645 * config/i386/linux-common.h (LIBMPX_LIBS): New.
34646 (LIBMPX_SPEC): New.
34648 * gcc.c (CHKP_SPEC): New.
34649 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
34650 * c-family/c.opt (static-libmpx): New.
34652 2015-03-10 Richard Biener <rguenther@suse.de>
34654 PR middle-end/44563
34655 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
34657 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
34658 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
34659 (cgraph_add_edge_to_call_site_hash): Likewise.
34660 (cgraph_node::get_edge): Likewise.
34661 (cgraph_edge::set_call_stmt): Likewise.
34662 (cgraph_edge::remove_caller): Likewise.
34664 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
34666 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
34667 (callee_saved_gpr_regs_size): ... this.
34668 (callee_saved_regs_first_regno): Rename to ...
34669 (callee_saved_first_gpr_regno): ... this.
34670 (callee_saved_regs_last_regno) Rename to ...
34671 (callee_saved_last_gpr_regno): ... this.
34672 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
34674 (nds32_initial_elimination_offset): Likewise.
34675 (nds32_expand_prologue): Likewise.
34676 (nds32_expand_epilogue): Likewise.
34677 (nds32_expand_prologue_v3push): Likewise.
34678 (nds32_expand_epilogue_v3pop): Likewise.
34679 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
34680 Adjust renamed variables.
34681 (nds32_output_stack_pop): Likewise.
34683 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
34685 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
34688 2015-03-10 Jakub Jelinek <jakub@redhat.com>
34690 PR rtl-optimization/65321
34691 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
34693 * var-tracking.c (use_narrower_mode): Likewise.
34695 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
34697 PR tree-optimization/65355
34698 * varasm.c (notice_global_symbol): Do not produce RTL.
34699 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
34701 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
34702 check for section anchors.
34704 2015-03-10 Alan Modra <amodra@gmail.com>
34707 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
34708 to be single-arch by default. Set cpu_is_64bit for powerpc64
34709 given --with-cpu=native.
34710 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
34711 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
34713 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
34714 rs6000_isa_flags rather than TARGET_64BIT.
34716 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
34717 Kaz Kojima <kkojima@gcc.gnu.org>
34719 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
34721 2015-03-09 Jakub Jelinek <jakub@redhat.com>
34724 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
34725 on a TREE_BINFO, instead use BINFO_TYPE.
34727 2015-03-09 Richard Biener <rguenther@suse.de>
34729 PR middle-end/65270
34730 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
34731 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
34732 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
34733 of that. When comparing dereferences compare alignment.
34734 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
34736 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
34738 * ipa-inline-analysis.c (check_callers): Check
34739 node->can_remove_if_no_direct_calls_and_refs_p.
34740 (growth_likely_positive): Reorganize to call
34741 can_remove_if_no_direct_calls_p later.
34742 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
34743 will_be_removed_from_program_if_no_direct_calls_p): Add
34744 will_inline parameter.
34745 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
34746 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
34747 Handle inliner case correctly.
34749 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
34751 PR tree-optimization/63743
34752 * cfgexpand.c (reorder_operands): Also reorder if only second operand
34753 had its definition forwarded by TER.
34755 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
34758 * ipa-utils.h (types_odr_comparable): Add strict argument.
34759 * ipa-devirt.c: Fix whitespace;
34760 (odr_hasher): Remove.
34761 (odr_name_hasher, odr_vtable_hasher): New hashers.
34762 (can_be_name_hashed_p): New predicate.
34763 (hash_type_name): remove.
34764 (hash_odr_name): New.
34765 (odr_name_hasher::hash): new.
34766 (can_be_vtable_hashed_p): New.
34767 (hash_odr_vtable): New.
34768 (odr_vtable_hasher::hash): New.
34769 (types_same_for_odr): Add strict parameter.
34770 (types_odr_comparable): Likewise.
34771 (odr_name_hasher::equal): New.
34772 (odr_vtable_hasher::equal): New.
34773 (odr_name_hasher::remove): New.
34774 (odr_hash_type): Change to hash_table<odr_name_hasher>.
34775 (odr_vtable_hash_type): New.
34776 (odr_vtable_hash): New.
34777 (odr_subtypes_equivalent_p): Do strict comparsion.
34778 (add_type_duplicate): Merge type names; cleanup; avoid type
34780 (register_odr_type): Initialize vtable hash.
34781 (build_type_inheritance_graph): Likewise
34782 (get_odr_type): Reorg to use two hashes.
34783 (dump_possible_polymorphic_call_targets): Move sanity check after debug
34785 (ipa_devirt): Dump type_inheritance_graph.
34786 (types_same_for_odr): Add strict mode.
34788 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
34791 * cgraph.h (symtab_node): Add definition_alignment,
34792 can_increase_alignment_p and increase_alignment.
34793 * symtab.c (symtab_node::can_increase_alignment_p,
34794 increase_alignment_1, symtab_node::increase_alignment,
34795 symtab_node::definition_alignment): New.
34796 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
34797 can_increase_alignment_p.
34798 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
34799 * tree-vect-stmts.c (ensure_base_align): Likewise.
34800 * varasm.c (function_section_1): Use definition_alignment.
34801 (assemble_start_function): Likewise.
34802 (emit_local): likewise.
34803 (build_constant_desc): Likewsie.
34804 (output_constant_def_contents): Likewise.
34805 (place_block_symbol): Likewise.
34806 (output_object_block): Likewise.
34808 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
34811 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
34812 when outputting debug.
34814 2015-03-07 Marek Polacek <polacek@redhat.com>
34815 Martin Uecker <uecker@eecs.berkeley.edu>
34818 * doc/invoke.texi: Update description of -fsanitize=bounds.
34820 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
34822 * tree-ssa-phiopt.c (neg_replacement): Remove.
34823 (tree_ssa_phiopt_worker): Remove negate optimization.
34825 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
34828 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
34830 2015-03-06 Richard Biener <rguenther@suse.de>
34832 PR middle-end/64928
34833 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
34834 and liveout_obstack members.
34835 (calculate_live_on_exit): Remove.
34836 (calculate_live_ranges): Change declaration.
34837 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
34838 (new_tree_live_info): Adjust.
34839 (calculate_live_ranges): Delete livein when not wanted.
34840 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
34841 Deal with partly deleted live info.
34842 (loe_visit_block): Remove temporary bitmap by using
34843 bitmap_ior_and_compl_into.
34844 (live_worklist): Adjust accordingly.
34845 (calculate_live_on_exit): Make static.
34846 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
34847 we do not need livein.
34849 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
34851 * real.c (real_from_string): Fix typo in assertion.
34853 2015-03-06 Alex Velenko <alex.velenko@arm.com>
34855 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
34858 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
34860 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
34862 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
34865 * lra-assigns.c (find_hard_regno_for): Rename to
34866 find_hard_regno_for_1. Add a new parameter.
34867 (find_hard_regno_for): New function using find_hard_regno_for_1.
34869 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
34871 PR rtl-optimization/65067
34872 * expmed.c (store_bit_field, extract_bit_field): Reworked the
34873 strict volatile bitfield handling.
34875 2015-03-05 Martin Liska <mliska@suse.cz>
34878 * ipa-icf.c (sem_variable::equals): Compare variables types.
34880 2015-03-05 Richard Henderson <rth@redhat.com>
34883 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
34884 correctly check weak symbol binding.
34886 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
34888 PR middle-end/65315
34889 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
34892 2015-03-05 Martin Liska <mliska@suse.cz>
34894 * ipa-inline.c (inline_small_functions): Set default value to
34895 prevent warning during bootstrap.
34896 * tree.h: Add pragma guard that ignores false positives during
34899 2015-03-05 Richard Biener <rguenther@suse.de>
34901 PR tree-optimization/65310
34902 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
34903 Properly preserve alignment of the base of the access.
34905 2015-03-05 Richard Biener <rguenther@suse.de>
34908 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
34909 Compare dependence info.
34911 2015-03-05 Richard Biener <rguenther@suse.de>
34913 PR middle-end/65233
34914 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
34916 (walk_ssa_copies): Revert last chage. Instead do not walk
34917 SSA names registered for SSA update.
34919 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
34922 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
34923 vtable references for their containing type.
34924 (sem_function::equals_wpa): Compare TYPE_RESTRICT
34925 and type attributes.
34927 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
34929 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
34930 before negating it.
34931 * stor-layout.c (finalize_record_size): Revert latest change.
34933 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
34935 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
34937 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
34939 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
34940 for correct comdat handling.
34941 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
34943 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
34944 (used_from_object_file_p_worker): Remove.
34945 (cgraph_node::only_called_directly_or_alised): Add
34946 used_from_object_file_p.
34947 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
34948 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
34949 can_remove_if_no_direct_calls_and_refs_p.
34951 2015-03-04 Nick Clifton <nickc@redhat.com>
34953 * config/rl78/rl78.h (enum reg_class): Remove real registers from
34954 General register class.
34955 * config/rl78/rl78-real.md: Replace general register constraints
34956 with real+virtual register constraints.
34958 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
34960 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
34961 from checking for -mhtm option.
34963 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
34965 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
34966 (struct ipa_sra_check_caller_data): Add has_thunk field.
34967 (ipa_sra_check_caller): Check for thunk.
34968 (ipa_sra_preliminary_function_checks): Give up on function with
34970 (ipa_early_sra): Use call_for_symbol_and_aliases.
34972 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
34975 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
34976 called for __stack_chk_guard symbol.
34978 2015-03-03 DJ Delorie <dj@redhat.com>
34980 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
34982 (*addhi3_real): Likewise.
34983 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
34984 pattern to match incrementing memory.
34985 * config/rl78/predicates.md (rl78_1_2_operand): New.
34986 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
34987 it's the same and only mem.
34988 (rl78_alloc_physical_registers_op2): If there's effectively only
34989 one MEM, transcode it into HL.
34990 (rl78_far_p): Reject addresses that aren't legitimate.
34992 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
34994 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
34997 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
34999 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
35001 Implement call0 ABI for xtensa
35002 * config/xtensa/constraints.md ("a" constraint): Include stack
35003 pointer in case of call0 ABI.
35004 ("q" constraint): Make empty in case of call0 ABI.
35005 ("D" constraint): Include stack pointer in case of call0 ABI.
35006 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
35007 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
35009 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
35011 (xtensa_regno_to_class): Make it a local variable in the
35012 function xtensa_regno_to_class.
35013 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
35014 macro, function prototype and implementation.
35015 (reg_nonleaf_alloc_order): Make it a local variable in the
35016 function order_regs_for_local_alloc.
35017 (xtensa_conditional_register_usage): New function.
35018 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
35019 (xtensa_valid_move): Allow direct moves to stack pointer
35020 register in call0 ABI.
35021 (xtensa_setup_frame_addresses): Only spill register windows in
35023 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
35024 call0 ABI respectively.
35025 (xtensa_function_arg_1): Only mark a7 register for copying in
35027 (xtensa_call_save_reg): New function.
35028 (compute_frame_size): Add space for callee saved register
35029 storage to the frame size in call0 ABI.
35030 (xtensa_expand_prologue): Generate code to set up stack frame
35031 and save callee-saved registers in call0 ABI.
35032 (xtensa_expand_epilogue): New function.
35033 (xtensa_set_return_address): New function.
35034 (xtensa_return_addr): Calculate return address in call0 ABI.
35035 (xtensa_builtin_saveregs): Only mark a7 register for copying and
35036 emit copying code in windowed ABI.
35037 (order_regs_for_local_alloc): Add preferred register allocation
35038 order for non-leaf function in call0 ABI.
35039 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
35040 (xtensa_asm_trampoline_template): Add trampoline generation for
35042 (xtensa_trampoline_init): Add trampoline initialization for
35044 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
35046 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
35047 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
35048 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
35049 ABI call-used registers.
35050 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
35051 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
35053 (REG_CLASS_CONTENTS): Include all registers into the preferred
35054 reload registers set, adjust the set in the
35055 xtensa_conditional_register_usage.
35056 (xtensa_regno_to_class): Drop variable declaration.
35057 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
35059 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
35061 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
35062 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
35063 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
35064 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
35065 location in call0 ABI.
35066 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
35067 stack adjustment size when handling exception.
35068 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
35069 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
35071 ("return" pattern): Generate ret.n/ret in call0 ABI.
35072 ("epilogue" pattern): Expand epilogue.
35073 ("nonlocal_goto" pattern): Use default in call0 ABI.
35074 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
35075 emit eh_set_a0_* depending on ABI.
35076 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
35077 ("eh_set_a0_call0", "blockage"): New patterns.
35079 2015-03-03 Martin Liska <mliska@suse.cz>
35082 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
35084 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
35087 * config/rs6000/rs6000-tables.opt: Regenerate table.
35089 2015-03-03 Renlin Li <renlin.li@arm.com>
35091 * doc/md.texi (@item ^): Change ? into ^.
35093 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
35095 * doc/tm.texi: Regenerated.
35097 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
35099 * builtins.c (expand_builtin_return_addr): Add
35100 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
35101 surrounding #ifdef.
35102 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
35104 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
35106 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
35108 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
35111 2015-03-03 Martin Jambor <mjambor@suse.cz>
35112 Eric Botcazou <ebotcazou@adacore.com>
35114 * tree-sra.c (ipa_sra_check_caller_data): New type.
35115 (has_caller_p): Removed.
35116 (ipa_sra_check_caller): New function.
35117 (ipa_sra_preliminary_function_checks): Use it.
35119 2015-03-03 Martin Liska <mliska@suse.cz>
35121 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
35122 instead of if branch.
35124 2015-03-03 Martin Liska <mliska@suse.cz>
35127 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
35129 2015-03-23 Jeff Law <law@redhat.com>
35131 PR tree-optimization/65241
35132 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
35133 hash table if INSERT is true.
35135 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
35138 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
35140 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
35143 * config/avr/avr.c (context.h, tree-pass.h): Include them.
35144 (avr_pass_data_recompute_notes): New static variable.
35145 (avr_pass_recompute_notes): New class.
35146 (avr_register_passes): New static function.
35147 (avr_option_override): Call it.
35149 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
35151 Fix various problems with specs file generation.
35154 * config.gcc (extra_gcc_objs) [avr]: Remove.
35155 * config/avr/driver-avr.c: Remove file.
35156 * config/avr/t-avr (driver-avr.o): Remove rule.
35157 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
35158 INCLUDES to build. Depend on TM_H.
35159 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
35160 build warnings. Fix non-matching types and non-existing %-codes.
35162 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
35163 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
35164 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
35165 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
35166 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
35167 (LIBGCC_SPEC): Remove definitions.
35169 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
35171 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
35172 to create a register in testing mode.
35174 2015-03-03 Martin Liska <mliska@suse.cz>
35175 Jan Hubicka <hubicka@ucw.cz>
35178 * cgraph.c (cgraph_node::has_thunk_p): New function.
35179 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
35180 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
35181 (sem_function::merge): Assert is changed.
35183 2015-03-03 Martin Liska <mliska@suse.cz>
35184 Martin Jambor <mjambor@suse.cz>
35187 * ipa-icf.c (sem_item_optimizer::execute): Change function
35188 return value to boolean.
35189 (sem_item_optimizer::merge_classes): Likewise.
35190 (ipa_icf_driver): Return TODO_remove_functions in case there's
35191 a merge operation processed.
35192 * ipa-icf.h: Change function return value to boolean.
35194 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
35197 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
35198 processor type for 64-bit little endian PowerPC.
35200 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
35201 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
35202 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
35203 printing built-in mask so it does not pass NULL pointers.
35205 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
35208 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
35211 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
35212 !ISA_HAS_FP_CONDMOVE.
35214 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
35216 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
35219 2015-03-02 Ulrich Drepper <drepper@gmail.com>
35221 * doc/invoke.texi (Options for Code Generation Conventions):
35222 Fix URL of DSO paper.
35224 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
35227 * ipa-inline.c (check_callers): Looks for recursion.
35228 (inline_to_all_callers): Give up on uninlinable or recursive edges.
35229 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
35230 summary of inline clones.
35231 (do_estimate_growth_1): Fix recursion check.
35233 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
35236 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
35239 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
35240 Aldy Hernandez <aldyh@redhat.com>
35243 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
35244 when checking TYPE_BINFO.
35246 2015-03-02 Richard Biener <rguenther@suse.de>
35249 * ipa-icf-gimple.c: Include builtins.h.
35250 (func_checker::compare_memory_operand): Compare base alignment.
35252 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
35255 * config/i386/i386.c (ix86_pass_by_reference): Bounds are never
35256 passed by reference.
35258 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
35261 * tree-chkp.c (chkp_check_lower): Don't check against
35262 zero bounds for already instrumented functions.
35263 (chkp_check_upper): Likewise.
35264 (chkp_fini): Clean pass local data to avoid wrong reusage.
35266 2015-02-28 Martin Liska <mliska@suse.cz>
35267 Jan Hubicka <hubicka@ucw.cz>
35269 * ipa-icf.c (sem_variable::equals): Improve debug output;
35270 get variable constructor.
35271 (sem_variable::parse): Do not filter out too early; give up on
35272 volatile and register vars.
35273 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
35275 * ipa-icf.h (sem_variable::init): Do not set ctor.
35276 (sem_variable::ctor): Remove.
35278 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
35280 PR middle-end/65233
35281 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
35283 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
35285 * ipa-icf.c: Include stor-layout.h
35286 (sem_function::compare_cgraph_references): Rename to ...
35287 (sem_item::compare_cgraph_references): ... this one.
35288 (sem_variable::equals_wpa): New function
35289 (sem_variable::equals): Do not check stuff already verified by
35291 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
35292 * ipa-icf.h (sem_item): Add compare_cgraph_references.
35293 (sem_function): Remove compare_cgraph_references.
35294 (sem_variable): Turns equals_wpa into non-inline.
35296 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
35298 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
35299 (sem_item::add_expr): New function.
35300 (sem_function::hash_stmt): Handle operands of most statements.
35301 (sem_variable::get_hash): Hash the actual constructor.
35302 * ipa-icf.h (sem_item): Add add_expr.
35303 (sem_function): Update prototype of hash_stmt
35305 2015-02-28 Martin Liska <mliska@suse.cz>
35306 Jan Hubicka <hubicka@ucw.cz>
35309 * ipa-icf-gimple.c (func_checker::compare_function_decl):
35311 (func_checker::compare_variable_decl): Skip symtab vars.
35312 (func_checker::compare_cst_or_decl): Update.
35313 * ipa-icf.c (sem_function::parse): Do not consider aliases.
35314 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
35315 use correct symtab predicates.
35316 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
35317 (sem_variable::parse): Update comment.
35318 (sem_item_optimizer::build_graph): Consider ultimate aliases
35321 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
35323 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
35326 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
35328 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
35329 (sem_variable::merge) Likewise.
35331 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
35333 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
35334 target; also match flag_ipa_devirt.
35336 2015-03-01 Martin Liska <mliska@suse.cz>
35337 Jan Hubicka <hubicka@ucw.cz>
35339 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
35340 Validate variable alignment.
35341 * ipa-icf.c (sem_function::equals_private): Be more precise
35342 about non-common function attributes.
35343 (sem_variable::equals): Likewise.
35345 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
35348 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
35349 across COMDAT group boundary.
35351 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
35354 * ipa-icf.c (clear_decl_rtl): New function.
35355 (sem_function::merge): Clear RTL before forming alias.
35356 (sem_variable::merge): Clear RTL before forming alias.
35358 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
35361 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
35363 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
35365 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
35368 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
35370 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
35371 a typo in the description.
35373 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
35376 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
35377 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
35378 * lra-constraints.c: Include "params.h".
35379 (EBB_PROBABILITY_CUTOFF): Use
35380 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
35381 (lra_inheritance): Use '<' instead of '<=' for
35382 EBB_PROBABILITY_CUTOFF.
35383 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
35386 2015-02-27 Martin Liska <mliska@suse.cz>
35388 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
35389 vector length condition.
35391 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
35393 * doc/extend.texi (x86 transactional memory intrinsics):
35394 Reorganize discussion of _xbegin. Clarify that the return
35395 value is a bit mask. Expand example and move to end of section.
35397 2015-02-26 Jakub Jelinek <jakub@redhat.com>
35398 Aldy Hernandez <aldyh@redhat.com>
35400 PR rtl-optimization/65220
35401 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
35403 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
35406 * lra-remat.c (update_scratch_ops): New.
35407 (do_remat): Call it.
35408 * lra.c (lra_register_new_scratch_op): New. Take code from ...
35409 (remove_scratches): ... here.
35410 * lra-int.h (lra_register_new_scratch_op): New prototype.
35412 2015-02-27 Marek Polacek <polacek@redhat.com>
35415 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
35416 -Wformat-signedness anymore.
35418 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35420 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
35422 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
35424 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35426 * config/s390/s390.c (enum s390_builtin):
35427 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
35428 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
35429 (s390_init_builtins): Generate new builtin functions.
35430 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
35431 (s390_sfpc, s390_efpc): New pattern definitions.
35433 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35435 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
35436 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
35437 (s390_builtin_decls): New array.
35438 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
35439 (s390_builtin_decl): New function.
35440 (TARGET_BUILTIN_DECL): Define macro.
35442 2015-02-27 Richard Biener <rguenther@suse.de>
35444 PR middle-end/63175
35445 * builtins.c (get_object_alignment_2): Make sure to re-apply
35446 the ANDed mask after recursing to its operand gets us a new
35447 misalignment bit position.
35449 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
35450 Martin Liska <mliska@suse.cz>
35453 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
35454 Use address_matters_p.
35455 (redirect_all_callers, set_addressable): New functions.
35456 (sem_function::merge): Reorganize and fix merging issues.
35457 (sem_variable::merge): Likewise.
35458 (sem_variable::compare_sections): Remove.
35459 * common.opt (fmerge-all-constants, fmerge-constants): Remove
35461 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
35463 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
35465 (address_matters_1): New function.
35466 (symtab_node::address_matters_p): New function.
35467 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
35468 check for merged flag.
35469 * cgraph.h (address_matters_p): Declare.
35470 (symtab_node::address_taken_from_non_vtable_p): Remove.
35471 (symtab_node::address_can_be_compared_p): New method.
35472 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
35473 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
35475 (comdat_can_be_unshared_p_1) Use address_matters_p.
35476 (update_vtable_references): Fix formating.
35477 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
35478 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
35479 * cgraphclones.c: Preserve merged and icf_merged flags.
35481 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
35483 * doc/extend.texi (Function Attributes): Fix spelling and typos.
35484 (Label Attributes): Likewise.
35485 (Cilk Plus Builtins): Likewise.
35486 (ARC SIMD Built-in Functions): Likewise.
35487 (ARM C Language Extensions (ACLE)): Likewise.
35488 (PowerPC Built-in Functions): Likewise.
35489 (PowerPC Hardware Transactional Memory Built-in Functions):
35492 2015-02-26 Jakub Jelinek <jakub@redhat.com>
35494 PR tree-optimization/65216
35495 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
35496 new stmt and new SSA_NAME for lhs whenever the arguments have
35497 changed and weren't just swapped. Fix comment typo.
35499 PR tree-optimization/65215
35500 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
35501 for PDP endian targets.
35502 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
35503 Fix up formatting issues.
35504 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
35505 size is smaller than the original, adjust MEM_REF offset by the
35506 difference of sizes. Use is_gimple_mem_ref_addr instead of
35507 is_gimple_min_invariant test to avoid adding address temporaries.
35509 2015-02-26 Martin Liska <mliska@suse.cz>
35510 Jan Hubicka <hubicka@ucw.cz>
35513 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
35514 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
35515 (sem_item_optimizer::process_cong_reduction): Include division by
35516 sensitive references.
35517 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
35518 * ipa-ref.c (ipa_ref::address_matters_p): New function.
35519 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
35521 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
35524 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
35526 * config/avr/avr.c: Same.
35527 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
35528 Refuse any constant address not in 0..0xbf.
35529 * config/avr/avr.md (*mov<mode>, *movsf): Remove
35530 tiny_valid_direct_memory_access_range from insn conditions.
35531 (mov<mode>): Don't special-case expansion of avrtiny addresses.
35533 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
35536 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
35537 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
35538 * config/sh/predicates.md (const_logical_operand): New predicate.
35539 * config/sh/sh.md: Add new peephole2 patterns.
35541 2015-02-26 Marek Polacek <polacek@redhat.com>
35544 * ipa-inline.c (early_inliner): Recompute inline parameters.
35546 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35549 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
35550 instructions with TImode operands are included in the analysis.
35552 2015-02-26 Sebastian Pop <s.pop@samsung.com>
35554 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
35555 of an EDGE_FSM_THREAD.
35557 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
35559 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
35561 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
35564 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
35566 2015-02-26 Sebastian Pop <s.pop@samsung.com>
35568 PR tree-optimization/65048
35569 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
35570 (thread_through_all_blocks): Call valid_jump_thread_path.
35571 Remove invalid FSM jump-thread paths.
35573 2015-02-26 Jakub Jelinek <jakub@redhat.com>
35575 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
35576 (ipa_write_optimization_summaries): Likewise.
35577 * tree-streamer.h: Include data-streamer.h.
35578 (streamer_mode_table): Declare extern variable.
35579 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
35580 * lto-streamer-out.c (lto_output_init_mode_table,
35581 lto_write_mode_table): New functions.
35582 (produce_asm_for_decls): Call lto_write_mode_table when streaming
35584 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
35585 (lto_create_simple_input_block): Add mode_table argument to the
35586 lto_input_block constructors.
35587 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
35589 * data-streamer-in.c (string_for_index): Likewise.
35590 * ipa-inline-analysis.c (inline_read_section): Likewise.
35591 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
35592 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
35593 * lto-streamer-in.c (lto_read_body_or_constructor,
35594 lto_input_toplevel_asms): Likewise.
35595 (lto_input_mode_table): New function.
35596 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
35597 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
35598 Use bp_pack_machine_mode.
35599 * real.h (struct real_format): Add name field.
35600 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
35601 (class lto_input_block): Add mode_table member.
35602 (lto_input_block::lto_input_block): Add mode_table_ argument,
35603 initialize mode_table.
35604 (struct lto_file_decl_data): Add mode_table field.
35605 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
35606 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
35607 unpack_ts_decl_common_value_fields,
35608 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
35609 * tree-streamer.c (streamer_mode_table): New variable.
35610 * real.c (ieee_single_format, mips_single_format,
35611 motorola_single_format, spu_single_format, ieee_double_format,
35612 mips_double_format, motorola_double_format,
35613 ieee_extended_motorola_format, ieee_extended_intel_96_format,
35614 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
35615 ibm_extended_format, mips_extended_format, ieee_quad_format,
35616 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
35617 decimal_single_format, decimal_double_format, decimal_quad_format,
35618 ieee_half_format, arm_half_format, real_internal_format): Add name
35620 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
35622 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
35625 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
35626 reordering for selective scheduling.
35628 2015-02-26 Terry Guo <terry.guo@arm.com>
35630 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
35631 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
35632 (arm_arch_no_volatile_ce): Declare new global variable.
35633 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
35634 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
35635 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
35636 (TARGET_NO_VOLATILE_CE): New macro.
35637 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
35638 volatile memory access in IT block
35640 2015-02-25 Kai Tietz <ktietz@redhat.com>
35642 PR tree-optimization/61917
35643 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
35644 that reduc_def_stmt is null.
35646 2015-02-25 Martin Liska <mliska@suse.cz>
35648 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
35649 hard register variables.
35651 2015-02-25 Kai Tietz <ktietz@redhat.com>
35654 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
35655 (symtab::noninterposable_alias): Likewise.
35657 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
35660 * config/i386/i386.c (ix86_function_arg_regno_p): Support
35662 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
35664 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
35667 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
35668 as split condition; force split via '#' in output pattern.
35670 2015-02-25 Richard Biener <rguenther@suse.de>
35671 Kai Tietz <ktietz@redhat.com>
35673 PR tree-optimization/61917
35674 * tree-vect-loop.c (vectorizable_reduction): Allow
35675 vect_internal_def without reduction to exit graceful.
35677 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
35680 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
35681 only with NONDEBUG_INSN_P.
35683 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
35685 Use variadic macros with avr-log.c.
35687 * config/avr/avr-protos.h (avr_vdump): New prototype.
35688 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
35689 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
35690 * config/avr/avr-log.c: Adjust comments.
35691 (avr_vdump): New function.
35692 (avr_vadump): Pass caller as 2nd argument instead of format string.
35693 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
35694 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
35696 2015-02-25 Jakub Jelinek <jakub@redhat.com>
35699 * target.def (target_option_stream_in): New target hook.
35700 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
35701 targetm.target_option.post_stream_in if non-NULL.
35702 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
35703 * doc/tm.texi: Updated.
35704 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
35706 (TARGET_OPTION_POST_STREAM_IN): Redefine.
35708 2015-02-24 Jeff Law <law@redhat.com>
35711 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
35712 of operand 0 and operand 2.
35713 (zero_cost_loop_end, loop_end): Similarly.
35715 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
35717 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
35720 2015-02-24 DJ Delorie <dj@redhat.com>
35722 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
35723 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
35724 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
35725 instead of hardcoding SImode.
35727 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
35729 * omp-low.c (create_omp_child_function): Tag entrypoint
35730 functions with a special attribute.
35732 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
35735 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
35737 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
35739 PR rtl-optimization/65123
35740 * lra-remat.c (operand_to_remat): Check hard regs in insn
35743 2015-02-24 Nick Clifton <nickc@redhat.com>
35745 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
35748 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
35751 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
35752 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
35753 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
35754 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
35755 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
35756 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
35757 (BUILT_IN_GOACC_PARALLEL): Specify as
35758 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
35759 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
35760 * builtin-types.def
35761 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
35762 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
35763 Remove function types.
35764 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
35765 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
35766 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
35767 New function types.
35769 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
35771 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
35773 2015-02-24 Jakub Jelinek <jakub@redhat.com>
35775 PR tree-optimization/65170
35776 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
35777 if val[1] < 0, clear also val[2] and return 3.
35779 2015-02-24 Alan Modra <amodra@gmail.com>
35782 * config/rs6000/rs6000.c (get_memref_parts): Only return true
35783 when *base is a reg. Handle nested plus addresses. Simplify
35786 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
35788 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
35789 use natural alignment when optimizing for size.
35791 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
35794 * config/sh/sh.md (movsicc_true+3): Remove peephole.
35795 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
35796 * config/sh/sh.c (replace_n_hard_rtx): Remove.
35798 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
35801 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
35802 too big for a wide_int. Implement missing wrapping operation.
35804 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
35807 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
35808 instead of const_int 4294901760.
35810 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
35812 * config/avr/t-avr: Fix typo in comment.
35814 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
35816 * doc/rtl.texi (fma): Clarify documentation.
35818 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
35821 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
35822 over input_location.
35824 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
35826 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
35827 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
35828 restrict alignments to absolute_biggest_alignment.
35829 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
35831 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
35832 * doc/tm.texi: Regenerate.
35833 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
35835 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
35838 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
35840 2015-02-20 Richard Biener <rguenther@suse.de>
35842 PR tree-optimization/65136
35843 * tree-ssa-propagate.c: Include cfgloop.h.
35844 (replace_phi_args_in): Avoid replacing loop latch edge PHI
35845 arguments with constants.
35847 2015-02-20 Jakub Jelinek <jakub@redhat.com>
35848 Martin Liska <mliska@suse.cz>
35851 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
35852 don't try to create_thunk if stdarg_p. If
35853 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
35854 redirect_callers if possible.
35855 (sem_item_optimizer::execute): Call unregister_hooks here...
35856 (ipa_icf_driver): ... instead of here.
35858 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35860 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
35861 Mark operand 0 as earlyclobber in 2nd alternative.
35862 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
35863 Write negated shift amount into QI lowpart operand 0 and use it
35865 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
35867 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
35869 * cgraph.h (clone_function_name_1): Declare.
35870 * cgraphclones.c (clone_function_name_1): New function.
35871 (clone_function_name): Use it.
35872 * lto-partition.c: Include "stringpool.h".
35873 (must_not_rename, maybe_rewrite_identifier)
35874 (validize_symbol_for_target): New static functions.
35875 (privatize_symbol_name): Use must_not_rename.
35876 (promote_symbol): Call validize_symbol_for_target.
35877 (lto_promote_cross_file_statics): Likewise.
35878 (lto_promote_statics_nonwpa): Likewise.
35880 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
35883 * config/avr/avr.md (pushhi_insn): New insn.
35884 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
35886 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
35887 Jakub Jelinek <jakub@redhat.com>
35889 * tree-streamer.c (preload_common_nodes): Don't preload
35890 TI_VA_LIST* for offloading.
35891 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
35894 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
35896 * config/pa/pa.c (pa_emit_move_sequence): Always force
35897 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
35900 * config/pa/pa.c (pa_reloc_rw_mask): New function.
35901 (TARGET_ASM_RELOC_RW_MASK): Define.
35902 (pa_cannot_force_const_mem): Revert previous change.
35904 2015-02-19 Martin Jambor <mjmabor@suse.cz>
35905 Jan Hubicka <hubicka@ucw.cz>
35908 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
35909 across jump functions.
35911 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
35913 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
35915 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
35917 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
35919 2015-02-19 Richard Henderson <rth@redhat.com>
35921 PR middle-end/65074
35922 * varasm.c (default_binds_local_p_2): Don't test node->definition;
35923 test DECL_EXTERNAL independent of symtab_node.
35925 2015-02-19 Jakub Jelinek <jakub@redhat.com>
35928 * varpool.c (varpool_node::get_constructor): Return early
35929 if this->lto_file_data is NULL.
35931 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
35933 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
35934 (rank_for_schedule_debug): Update.
35935 (ready_sort): Make static. Move sorting logic to ...
35936 (ready_sort_debug, ready_sort_real): New static functions.
35937 (schedule_block): Sort both debug insns and real insns in preparation
35938 for ready list trimming. Improve debug output.
35939 * sched-int.h (ready_sort): Remove global declaration.
35941 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
35943 * ipa-icf.c (sem_function::equals_private): Adjust.
35944 (sem_function::bb_dict_test): Take a vec<int> * instead of
35946 * ipa-icf.h (bb_dict_test): Likewise.
35948 2015-02-18 Jakub Jelinek <jakub@redhat.com>
35950 PR gcov-profile/64634
35951 * tree-eh.c (frob_into_branch_around): Fix up typos
35952 in function comment.
35953 (lower_catch): Put eh_seq resulting from EH lowering of
35954 the cleanup sequence after the cleanup rather than before it.
35956 2015-02-18 Tom de Vries <tom@codesourcery.com>
35958 * common.opt (fstdarg-opt): New option.
35959 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
35960 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
35961 (@item -fstdarg-opt): New item.
35963 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
35966 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
35967 for common symbols.
35969 2015-02-18 Jakub Jelinek <jakub@redhat.com>
35971 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
35973 (ALL_HOST_OBJS): Add mkoffload.o.
35974 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
35976 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
35978 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
35979 (compare_virtual_tables): Be smarter about skipping typeinfos;
35980 do sane output on virtual table table mismatch.
35981 (warn_odr): Be ready for forward declarations of enums;
35982 output sane info on base mismatch and virtual table mismatch.
35983 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
35984 when only one type is polymorphic.
35985 (get_odr_type): Fix hashtable corruption.
35986 (dump_odr_type): Dump mangled names.
35988 2015-02-18 Richard Biener <rguenther@suse.de>
35990 PR tree-optimization/65063
35991 * tree-predcom.c (determine_unroll_factor): Return 1 if we
35992 have replaced looparound PHIs.
35994 2015-02-18 Martin Liska <mliska@suse.cz>
35996 * lto-streamer.c (lto_streamer_init): Encapsulate
35997 streamer_check_handled_ts_structures with checking macro.
35999 2015-02-18 Jakub Jelinek <jakub@redhat.com>
36002 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
36003 section if !implicit_section.
36004 (cgraph_node::create_version_clone_with_body): Likewise.
36005 * trans-mem.c (ipa_tm_create_version): Likewise.
36007 2015-02-18 Richard Biener <rguenther@suse.de>
36009 PR tree-optimization/62217
36010 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
36013 2015-02-18 Marek Polacek <polacek@redhat.com>
36016 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
36017 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
36018 is in range [-16K, -1]. Don't issue run-time error if
36019 (ptr > ptr + offset).
36021 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
36023 * doc/install.texi (nvptx-*-none): New section.
36024 * doc/invoke.texi (Nvidia PTX Options): Likewise.
36025 * config/nvptx/nvptx.opt: Update.
36027 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
36028 (access_check): New functions, copied from
36029 config/i386/intelmic-mkoffload.c.
36030 (main): For non-installed testing, look in all COMPILER_PATHs for
36033 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
36035 2015-02-18 Andrew Pinski <apinski@cavium.com>
36036 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
36038 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
36039 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
36041 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
36043 * ipa-visibility.c (function_and_variable_visibility): Only
36044 check locality if node is not already local.
36045 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
36046 call_for_symbol_and_aliases instead of
36047 call_for_symbol_thunks_and_aliases.
36048 (ipa_inline): Likewise.
36049 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
36050 first walk aliases.
36051 * ipa.c (symbol_table::remove_unreachable_nodes): Use
36052 call_for_symbol_and_aliases.
36053 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
36054 (ipa_propagate_frequency_1): Use it; use opt_for_fn
36055 (ipa_propagate_frequency): Update.
36056 (ipa_profile): Add opt_for_fn gueards.
36058 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
36060 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
36061 * doc/invoke.texi (SH options): Document it.
36062 * config/sh/sh.c (sh_insn_length_adjustment): Check
36063 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
36065 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
36067 * common.opt (fipa-cp-alignment): New.
36068 * ipa-cp.c (ipcp_store_alignment_results): Check
36069 flag_ipa_cp_alignment.
36070 * opts.c (default_options_table): Enable -fipa-cp-alignment for
36072 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
36073 * doc/invoke.texi: Document -fipa-cp-alignment.
36075 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
36078 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
36079 to nil. Adjust comments.
36081 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
36083 * ipa-visibility.c (function_and_variable_visibility): Only
36084 check locality if node is not already local.
36085 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
36086 call_for_symbol_and_aliases instead of
36087 call_for_symbol_thunks_and_aliases.
36088 (ipa_inline): Likewise.
36089 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
36090 first walk aliases.
36091 * ipa.c (symbol_table::remove_unreachable_nodes): Use
36092 call_for_symbol_and_aliases.
36093 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
36094 (ipa_propagate_frequency_1): Use it; use opt_for_fn
36095 (ipa_propagate_frequency): Update.
36096 (ipa_profile): Add opt_for_fn guards.
36098 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
36100 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
36101 skipping of "strange" tokens.
36103 2015-02-17 Jeff Law <law@redhat.com>
36105 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
36108 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
36110 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
36111 as forcing a HARD_DEP between instructions, thereby
36112 disallowing rewriting to break dependencies.
36114 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
36116 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
36117 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
36118 variables in boundary that have no inlitalizer encoded and are
36120 * varasm.c (default_binds_local_p_2): External definitions do not
36121 count as definitions here.
36123 2015-02-16 Jeff Law <law@redhat.com>
36125 PR tree-optimization/64823
36126 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
36128 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
36129 threading through blocks with PHIs, but no statements.
36130 (thread_through_normal_block): Distinguish between blocks where
36131 we did not process all the statements and blocks with no statements.
36133 2015-02-16 Jakub Jelinek <jakub@redhat.com>
36134 James Greenhalgh <james.greenhalgh@arm.com>
36137 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
36138 section if not linkonce. Fix up formatting.
36139 (cgraph_node::create_version_clone_with_body): Copy section.
36140 * trans-mem.c (ipa_tm_create_version): Likewise.
36142 2015-02-16 Richard Biener <rguenther@suse.de>
36144 PR tree-optimization/65077
36145 * tree-ssa-structalias.c (get_constraint_for_1): Handle
36146 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
36147 (find_func_aliases): Allow float values to carry pointers again.
36149 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
36151 * doc/install.texi (Specific): Reorder targets list to put
36152 aarch64 in alphabetical order. Add a link to aarch64*-*-*
36155 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
36156 David Edelsohn <dje.gcc@gmail.com>
36159 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
36160 mapping class to external variable or function reference.
36161 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
36164 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
36167 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
36168 ASM_WEAKEN_DECL if defined.
36170 2015-02-16 Richard Biener <rguenther@suse.de>
36173 * varasm.c (default_file_start): For LTO produced units
36174 emit <artificial> as file directive.
36176 2015-02-16 Richard Biener <rguenther@suse.de>
36178 PR tree-optimization/63593
36179 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
36180 stmts and releasing SSA names until...
36181 (execute_pred_commoning): ... after processing all chains.
36183 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
36186 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
36187 external functions.
36189 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
36191 * doc/bugreport.texi: Adjust section titles throughout the file
36192 to use "Title Case".
36193 * doc/extend.texi: Likewise.
36194 * doc/gcov.texi: Likewise.
36195 * doc/implement-c.texi: Likewise.
36196 * doc/implement-cxx.texi: Likewise.
36197 * doc/invoke.texi: Likewise.
36198 * doc/objc.texi: Likewise.
36199 * doc/standards.texi: Likewise.
36200 * doc/trouble.texi: Likewise.
36202 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
36204 * cgraph.h (symtab_node::has_aliases_p): Simplify.
36205 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
36206 * tree.c (lookup_binfo_at_offset): Make static.
36207 (get_binfo_at_offset): Do not shadow offset; add explanatory
36210 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
36212 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
36213 for all floading point loads and stores except those using a register
36215 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
36218 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
36220 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
36221 (do_estimate_growth_1): Record if any uninlinable edge was seen.
36222 (estimate_growth): Handle uninlinable edges correctly.
36223 (check_callers): New.
36224 (growth_likely_positive): Handle aliases correctly.
36226 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
36228 * ipa-chkp.c: Use iterate_direct_aliases.
36229 * symtab.c (resolution_used_from_other_file_p): Move inline.
36230 (symtab_node::create_reference): Fix formating.
36231 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
36232 (symtab_node::iterate_reference): Move inline.
36233 (symtab_node::iterate_referring): Move inline.
36234 (symtab_node::iterate_direct_aliases): Move inline.
36235 (symtab_node::used_from_object_file_p_worker): Inline into ...
36236 (symtab_node::used_from_object_file_p): ... this one; move inline.
36237 (symtab_node::call_for_symbol_and_aliases): Move inline;
36238 use iterate_direct_aliases.
36239 (symtab_node::call_for_symbol_and_aliases_1): New method.
36240 (cgraph_node::call_for_symbol_and_aliases): Move inline;
36241 use iterate_direct_aliases.
36242 (cgraph_node::call_for_symbol_and_aliases_1): New method.
36243 (varpool_node::call_for_node_and_aliases): Rename to ...
36244 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
36245 use iterate_direct_aliases.
36246 (varpool_node::call_for_symbol_and_aliases_1): New method.
36247 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
36248 (ipa_discover_readonly_nonaddressable_var): Update.
36249 * ipa-devirt.c: Fix formating.
36250 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
36252 (cgraph_node::call_for_symbol_and_aliases): Move inline.
36253 (cgraph_node::call_for_symbol_and_aliases_1): New function..
36254 * cgraph.h (used_from_object_file_p_worker): Remove.
36255 (resolution_used_from_other_file_p): Move inline.
36256 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
36257 (symtab_node::iterate_reference): Move inline.
36258 (symtab_node::iterate_referring): Move inline.
36259 (symtab_node::iterate_direct_aliases): Move inline.
36260 (symtab_node::used_from_object_file_p_worker): Inline into ...
36261 (symtab_node::used_from_object_file_p): Move inline.
36262 * tree-emutls.c (ipa_lower_emutls): Update.
36263 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
36264 (varpool_node::call_for_node_and_aliases): Remove.
36266 2015-02-14 Jakub Jelinek <jakub@redhat.com>
36268 PR tree-optimization/62209
36269 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
36270 op == range->exp, insert seq and gimplified code after labels
36271 instead of after the phi.
36273 2015-02-13 Jeff Law <law@redhat.com>
36276 Revert my change for tree-optimization/64823.
36278 2015-02-13 Jakub Jelinek <jakub@redhat.com>
36280 PR tree-optimization/65053
36281 * tree-ssa-phiopt.c (value_replacement): When moving assign before
36282 cond, either reset VR on lhs or set it to phi result VR.
36284 2015-02-13 Jeff Law <law@redhat.com>
36286 PR tree-optimization/64823
36287 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
36288 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
36289 threading through blocks with PHIs, but no statements.
36290 (thread_through_normal_block): Distinguish between blocks where
36291 we did not process all the statements and blocks with no statements.
36293 PR rtl-optimization/47477
36294 * match.pd (convert (plus/minus (convert @0) (convert @1): New
36295 simplifier to narrow arithmetic.
36297 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
36300 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
36301 polymorphic call info when type is not known to be preserved.
36303 2015-02-13 Maritn Jambor <mjambor@suse.cz>
36306 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
36307 (inline_call): Use it.
36309 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
36311 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
36312 GOMP_DEVICE_NVIDIA_PTX.
36314 2015-02-13 Jakub Jelinek <jakub@redhat.com>
36317 * stmt.c (emit_case_nodes): Use void_type_node instead of
36318 NULL_TREE as LABEL_DECL type.
36320 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
36322 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
36324 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
36325 symbolic references to data to be forced to constant memory on the
36328 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
36330 PR tree-optimization/65002
36331 * tree-cfg.c (pass_data_fixup_cfg): Don't update
36333 * tree-sra.c (some_callers_have_no_vuse_p): New.
36334 (ipa_early_sra): Reject functions whose callers
36335 assume function is read only.
36337 2015-02-13 Richard Biener <rguenther@suse.de>
36340 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
36341 for LTO produced CUs.
36343 2015-02-13 Bin Cheng <bin.cheng@arm.com>
36345 PR tree-optimization/64705
36346 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
36347 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
36348 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
36349 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
36350 expand_simple_operations.
36352 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
36353 Richard Henderson <rth@redhat.com>
36356 * cgraphunit.c (cgraph_node::finalize_function): Set definition
36357 before notice_global_symbol.
36358 (varpool_node::finalize_decl): Likewise.
36359 * varasm.c (default_binds_local_p_2): Rename from
36360 default_binds_local_p_1, add weak_dominate argument. Use direct
36361 returns instead of assigning to local variable. Unify varpool and
36362 cgraph paths via symtab_node. Reject undef weak variables before
36363 testing visibility. Reorder tests for simplicity.
36364 (default_binds_local_p): Use default_binds_local_p_2.
36365 (default_binds_local_p_1): Likewise.
36366 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
36368 (default_elf_asm_output_external): Emit visibility when specified.
36370 2015-02-13 Alan Modra <amodra@gmail.com>
36372 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
36373 code setting up r11 for out-of-line fp restore.
36375 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
36377 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
36378 (muser-mode): Likewise.
36380 2015-02-13 Alan Modra <amodra@gmail.com>
36382 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
36383 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
36385 2015-02-12 David Howells <dhowells@redhat.com>
36387 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
36389 * tree-ssa-uninit.c (dump_predicates): Likewise.
36390 * opts.c (print_filtered_help): Likewise.
36392 2015-02-12 Jakub Jelinek <jakub@redhat.com>
36394 * dwarf2out.c (output_die): Use "%s", name instead of name to
36395 avoid -Wformat-security warning.
36397 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
36398 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
36399 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
36400 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
36402 2015-02-12 Jason Merrill <jason@redhat.com>
36404 * common.opt (-flifetime-dse): New.
36406 2015-02-12 Jakub Jelinek <jakub@redhat.com>
36409 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
36411 PR tree-optimization/65014
36412 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
36413 use original second operand of arg0 or arg1 instead of
36414 that adjusted by STRIP_NOPS.
36416 2015-02-11 Jeff Law <law@redhat.com>
36419 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
36420 that needs to be queued, just queue it for a single cycle.
36422 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
36424 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
36425 bodies of thunks; comment on why.
36426 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
36427 symbols are extern.
36429 2015-02-11 Richard Henderson <rth@redhat.com>
36432 * tree-eh.c (mark_reachable_handlers): Mark source and destination
36433 regions of __builtin_eh_copy_values.
36435 2015-02-11 Jakub Jelinek <jakub@redhat.com>
36437 PR middle-end/65003
36438 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
36439 ultimate alias is MEM with SYMBOL_REF satisfying
36440 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
36441 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
36443 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
36445 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
36446 "diagnostic-core.h".
36447 (main): Initialize progname, and call diagnostic_initialize.
36449 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
36450 instead of __OPENMP_TARGET__.
36452 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
36453 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
36454 hard-coding PTX_ID.
36456 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
36458 * doc/sourcebuild.texi (pie_enabled): Document.
36460 2015-02-11 Martin Liska <mliska@suse.cz>
36463 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
36464 a return value for call to a function that is noreturn.
36466 2015-02-11 Richard Biener <rguenther@suse.de>
36469 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
36472 2015-02-11 Andrew Pinski <apinski@cavium.com>
36475 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
36476 Change the first argument type to size_type_node and add another
36478 (aarch64_simd_expand_builtin): Handle the new argument to
36479 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
36480 print an out when the first two arguments are not
36481 nonzero integer constants.
36482 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
36483 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
36485 2015-02-11 Jakub Jelinek <jakub@redhat.com>
36488 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
36489 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
36490 (ix86_set_current_function): Rewritten.
36491 (ix86_add_new_builtins): Temporarily clear current_target_pragma
36492 when creating builtin fndecls.
36494 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
36497 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
36499 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
36500 have no comdat group.
36501 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
36502 (lto_output_varpool_node): Always output alias info.
36503 (output_refs): Output refs of boundary aliases, too.
36504 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
36505 (output_symtab): Output call eges in thunks in boundary.
36506 (get_alias_symbol): Remove.
36507 (input_node, input_varpool_node): Do not special case weakrefs.
36508 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
36509 alias and thunks targets in the boundary; do not take removed symbols
36510 from their comdat groups.
36511 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
36512 (cgraph_node::global_info): Remove.
36513 (cgraph_node::rtl_info): Look through aliases and thunks.
36514 * cgrpah.h (global_info): Remove.
36515 (non_local_p): Remove.
36517 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
36518 Sandra Loosemore <sandra@codesourcery.com>
36520 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
36521 to inline asm. List dialects in proper order.
36523 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
36524 Sandra Loosemore <sandra@codesourcery.com>
36526 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
36528 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
36530 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
36531 modified) reference to Solaris.
36533 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
36535 * doc/extend.texi (Extended Asm): Fix typos.
36537 2015-02-10 Jakub Jelinek <jakub@redhat.com>
36540 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
36542 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
36545 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
36546 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
36547 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
36548 * config/sh/constraints.md (Ara, Add): New constraints.
36549 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
36551 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
36552 atomic_mem_operand_0. Don't use force_reg on the memory address.
36553 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
36554 Sra constraint. Convert to insn_and_split. Add workaround for
36556 (atomic_compare_and_swap<mode>_hard): Copy to
36557 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
36558 Use atomic_mem_operand_0 predicate.
36559 (atomic_compare_and_swap<mode>_soft_gusa,
36560 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
36561 AraAdd constraints.
36562 (atomic_compare_and_swap<mode>_soft_tcb,
36563 atomic_compare_and_swap<mode>_soft_imask,
36564 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
36565 atomic_mem_operand_0 predicate and SraSdd constraints.
36566 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
36568 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
36569 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
36570 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
36571 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
36572 force_reg on the memory address.
36573 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
36574 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
36575 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
36576 atomic_mem_operand_1 predicate and Sra constraint.
36577 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
36578 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
36579 Use atomic_mem_operand_1 predicate.
36580 (atomic_<fetchop_name><mode>_hard): Copy to
36581 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
36582 Use atomic_mem_operand_1 predicate.
36583 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
36584 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
36585 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
36586 insn_and_split. Use atomic_mem_operand_1 predicate.
36587 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
36588 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
36589 Use atomic_mem_operand_1 predicate.
36590 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
36591 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
36592 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
36593 in generated insn with original mem operand before emitting the insn.
36594 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
36595 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
36596 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
36597 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
36598 Use atomic_mem_operand_1 predicate and AraAdd constraints.
36599 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
36600 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
36601 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
36602 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
36603 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
36604 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
36605 atomic_not_fetch<mode>_soft_tcb,
36606 atomic_<fetchop_name>_fetch<mode>_soft_imask,
36607 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
36608 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
36609 Use atomic_mem_operand_1 predicate and SraSdd constraints.
36611 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
36613 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
36614 and 3 earlyclobber operands.
36616 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
36618 * common.opt (fstack-reuse): Mark as optimization.
36620 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
36623 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
36625 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
36627 PR tree-optimization/64326
36628 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
36630 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
36632 PR gcov-profile/61889
36633 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
36635 2015-02-10 Richard Biener <rguenther@suse.de>
36637 PR tree-optimization/64995
36638 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
36639 value we use is final.
36640 (visit_reference_op_store): Always valueize op.
36641 (visit_use): Properly valueize vuses.
36643 2015-02-10 Richard Biener <rguenther@suse.de>
36645 PR tree-optimization/64909
36646 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
36647 pass a scalar-stmt count estimate to the cost model.
36648 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
36650 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
36652 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
36653 enabled by default together with var-tracking.
36655 2015-02-10 Nick Clifton <nickc@redhat.com>
36657 * config/rl78/rl78.c: Remove DIV attribute code accidentally
36658 included in previous rl78 commit.
36660 2015-02-10 Richard Biener <rguenther@suse.de>
36662 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
36663 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
36664 return the bitpack.
36666 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
36668 PR gcov-profile/61889
36669 * config.in: regenerate.
36670 * configure.in: Likewise.
36671 * configure.ac: Check for ftw.h.
36672 * gcov-tool.c: Check for ftw.h before using nftw.
36674 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
36677 * ipa-visibility.c (update_visibility_by_resolution_info): Only
36678 assert when not in lto mode.
36680 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
36682 * ira-color.c (setup_left_conflict_sizes_p): Simplify
36683 initialization/assignment of conflict_size.
36685 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
36688 * ipa-cp.c (gather_caller_stats): Skip thunks.
36689 (propagate_constants_topo): Skip aliases.
36691 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
36694 * config/sh/sh.c (sh_option_override): Don't change
36695 -freorder-blocks-and-partition to -freorder-blocks even when
36696 unwinding is enabled.
36697 (sh_can_follow_jump): Return false if the followee jump is
36698 a crossing jump when -freorder-blocks-and-partition is specified.
36699 * config/sh/sh.md (*jump_compact_crossing): New insn.
36701 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
36702 Kaz Kojima <kkojima@gcc.gnu.org>
36705 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
36706 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
36707 (sh_can_redirect_branch): Rename to ...
36708 (sh_can_follow_jump): ... this. Constify argument types.
36709 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
36710 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
36711 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
36712 * doc/tm.texi: Regenerate.
36714 2015-02-09 Jakub Jelinek <jakub@redhat.com>
36717 * builtins.c (expand_builtin): Call targetm.expand_builtin
36718 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
36720 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
36723 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
36725 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
36728 * ipa-icf.c (set_local): New function.
36729 (sem_function::merge): Use it.
36731 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
36733 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
36734 (add_type_duplicate): Fix comparison of BINFOs.
36736 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
36738 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
36739 on getting VOID pointer.
36741 2015-02-09 Jakub Jelinek <jakub@redhat.com>
36744 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
36747 2015-02-09 Richard Biener <rguenther@suse.de>
36749 * genmatch.c (replace_id): Copy expr_type.
36751 2015-02-09 Richard Biener <rguenther@suse.de>
36753 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
36754 (streamer_write_tree_bitfields): Declare.
36755 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
36756 properly unpack padding.
36757 (unpack_value_fields): Inline ...
36758 (streamer_read_tree_bitfields): ... here.
36759 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
36760 and properly add padding bits.
36761 (streamer_pack_tree_bitfields): Fold into ...
36762 (streamer_write_tree_bitfields): ... this new function,
36763 exposing the bitpack object.
36764 * lto-streamer-out.c (lto_write_tree_1): Call
36765 streamer_write_tree_bitfields.
36767 2015-02-09 Richard Biener <rguenther@suse.de>
36769 PR tree-optimization/54000
36770 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
36771 (struct ivopts_data): Add loop_loc member.
36772 (tree_ssa_iv_optimize_loop): Dump loop location.
36773 (create_new_ivs): Likewise, also dump number of IVs generated.
36775 2015-02-09 Martin Liska <mliska@suse.cz>
36777 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
36778 just if not yet registered.
36779 (ipa_icf_generate_summary): Register callgraph hooks.
36781 2015-02-08 Andrew Pinski <apinski@cavium.com>
36783 * config/aarch64/aarch64.c (gty_dummy): Delete.
36785 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
36788 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
36789 (cgraph_node::local_p): Remove thunk related FIXME.
36791 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
36794 * i386.c (ix86_function_regparm): Look through aliases to see if callee
36795 is local and optimized.
36796 (ix86_function_sseregparm): Likewise; also use target's SSE math
36797 settings; error out instead of silently generating wrong code
36799 (init_cumulative_args): Look through aliases.
36801 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
36804 * ipa-split.c (execute_split_functions): Split if function has aliases.
36806 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
36809 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
36810 aliases before trying to expand it.
36811 (cgraph_node::expand_thunk): Fix formating.
36813 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
36815 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
36816 (Using Assembly Language with C): Expand introduction.
36817 (Basic Asm): Copy-edit. Add more information about uses of
36819 (Extended Asm): Copy-edit. Document new escape syntax and
36821 (Global Reg Vars): Copy-edit.
36822 (Local Reg Vars): Likewise.
36824 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
36828 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
36829 (DBX_CONTIN_CHAR): Define.
36831 2015-02-06 Sebastian Pop <s.pop@samsung.com>
36832 Brian Rzycki <b.rzycki@samsung.com>
36834 PR tree-optimization/64878
36835 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
36836 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
36837 Stop recursion at loop phi nodes after having visited a loop phi node.
36839 2015-02-06 Jakub Jelinek <jakub@redhat.com>
36841 * toplev.c (process_options): Change flag_ipa_ra before creating
36842 optimization_{default,current}_node.
36845 * cgraphunit.c (cgraph_node::expand_thunk): If
36846 restype is not is_gimple_reg_type nor the thunk_fndecl
36847 returns aggregate_value_p, set restmp to a temporary variable
36848 instead of resdecl.
36850 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
36852 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
36854 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
36857 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
36858 add a general secondary reload handler for SDmode, unless we have
36859 both read/write support for SDmode.
36861 2015-02-06 Jakub Jelinek <jakub@redhat.com>
36863 PR middle-end/64937
36864 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
36865 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
36866 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
36867 1 before, push it to abstract_vec.
36868 (dwarf2out_abstract_function): Adjust caller. Don't call
36869 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
36870 DECL_ABSTRACT_P flags for all abstract_vec elts.
36872 2015-02-06 Renlin Li <renlin.li@arm.com>
36874 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
36876 * tree-ssa.c (execute_update_addresses_taken): Likewise.
36878 2015-02-06 Jeff Law <law@redhat.com>
36881 * config/h8300/h8300.c (push): New argument "in_prologue".
36882 Pass "in_prologue" along to "F".
36883 (h8300_push_pop): Corresponding changes.
36884 (h8300_expand_prologue): Likewise.
36885 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
36887 2015-02-06 Jakub Jelinek <jakub@redhat.com>
36889 PR rtl-optimization/64957
36891 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
36892 IOR rather than for AND.
36894 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
36897 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
36898 of shift-add and (add + shift) operations. Rename local variable.
36900 2015-02-05 Jeff Law <law@redhat.com>
36903 * config/h8300/constraints.md (U): Correctly dectect
36904 "eightbit_data" memory addresses.
36905 * config/h8300/h8300.c (eightbit_constant_address_p): Also
36906 handle (const (plus (symbol_ref (x)))) where x is declared
36907 as an 8-bit data memory address.
36908 * config/h8300/h8300.md (call, call_value): Correctly detect
36909 "funcvec" functions.
36912 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
36913 24 to 28 bits for the H8/300.
36915 2015-02-06 Alan Modra <amodra@gmail.com>
36918 * config/rs6000/rs6000.c (chain_already_loaded): New function.
36919 (rs6000_call_aix): Use it.
36921 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
36923 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
36926 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
36928 * config/h8300/constraints.md ("U" constraint): Use strict
36929 variant of REG_OK_FOR_BASE_P after reload has started.
36931 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
36933 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
36934 define to zero if !TARGET_NEON.
36935 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
36937 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
36938 Trevor Saunders <tsaunders@mozilla.com>
36941 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
36943 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
36946 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
36947 when removing varpool nodes.
36949 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
36952 * varpool.c (varpool_node::remove): Fix order of variables.
36954 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
36957 * ipa-inline.c (inline_small_functions): Fix ordering issue between
36958 speculation resolution and key updates.
36960 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
36962 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
36963 about not letting any speculative edges unupdated.
36965 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
36968 * gcov-io.c (gcov_var): Export.
36970 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
36972 PR middle-end/64922
36973 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
36974 edges that become speculative.
36976 2015-02-04 Jakub Jelinek <jakub@redhat.com>
36978 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
36979 or DW_LANG_Fortran08.
36980 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
36982 (gen_compile_unit_die): Handle "GNU Fortran2003" and
36983 "GNU Fortran2008" language strings.
36984 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
36985 * langhooks.h (lang_GNU_Fortran): New prototype.
36986 * langhooks.c (lang_GNU_Fortran): New function.
36987 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
36990 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
36992 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
36993 (RTX_OK_FOR_OLO10_P): Likewise.
36995 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
36997 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
36999 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
37001 PR middle-end/64922
37002 * gimple.c: Include gimple-ssa.h.
37003 (maybe_remove_unused_call_args): New function.
37004 * gimple.h (maybe_remove_unused_call_args): Declare.
37005 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
37006 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
37007 * gimple-fold.c (gimple_fold_call): Likewise.
37009 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
37011 PR rtl-optimization/64905
37012 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
37013 pointer alignment if it isn't needed.
37015 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
37017 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
37018 cortex-a72.cortex-a53.
37019 * config/aarch64/aarch64-tune.md: Regenerate.
37020 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
37022 2015-02-04 Nick Clifton <nickc@redhat.com>
37024 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
37027 2015-02-04 Jakub Jelinek <jakub@redhat.com>
37029 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
37030 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
37031 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
37033 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
37034 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
37035 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
37036 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
37037 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
37038 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
37039 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
37040 * tree-core.h (enum built_in_function): In between
37041 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
37042 for builtins that use DEF_BUILTIN_CHKP macro.
37044 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
37047 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
37048 operands for tcc_comparison exprs. Fix typos.
37051 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
37052 of two XORs that have an intervening AND or IOR.
37055 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
37056 simplification of XOR of AND to not allocate new rtx before
37057 committing to a simplification.
37059 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37061 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
37062 manual swaps in all peepholes.
37064 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37066 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
37067 of manual swapping implementation.
37068 (aarch64_expand_vec_perm_const_1): Likewise.
37070 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
37072 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
37073 (generic_addrcost_table): Remove NAMED_PARAM.
37074 (cortexa57_addrcost_table): Likewise.
37075 (xgene1_addrcost_table): Likewise.
37076 (generic_regmove_table): Likewise.
37077 (cortexa53_regmove_table): Likewise.
37078 (xgene1_regmove_table): Likewise.
37079 (generic_vector_table): Likewise.
37080 (cortexa57_vector_table): Likewise.
37081 (xgene1_vector_table): Likewise.
37082 (generic_tunings): Likewise.
37083 (cortexa53_tunings): Likewise.
37084 (cortexa57_tunings): Likewise.
37085 (xgene1_tunings): Likewise.
37087 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
37089 * config/arm/arm-cores.def: Add cortex-a72 and
37090 cortex-a72.cortex-a53.
37091 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
37092 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
37093 * config/arm/arm-tune.md: Regenerate.
37094 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
37095 "cortex-a72.cortex-a53".
37096 * doc/invoke.texi (ARM Options/-mtune): Likewise.
37098 2015-02-04 Nick Clifton <nickc@redhat.com>
37101 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
37103 (nonimmediate_di_operand): Likewise.
37105 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
37106 prefixes of known F5 using MSP430 MCUs.
37108 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37110 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
37111 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
37112 instead of __builtin_sqrt.
37114 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
37116 * varasm.c (do_assemble_alias): Follow transparent alias
37118 (default_assemble_visibility): Follow transparent alias
37119 chain for decl name.
37121 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
37123 PR middle-end/62103
37124 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
37125 to compute size of referenced value in the constant case.
37127 2015-02-03 Jakub Jelinek <jakub@redhat.com>
37129 PR rtl-optimization/64756
37130 * cse.c (invalidate_dest): New function.
37131 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
37132 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
37133 invalidate and do not record it.
37135 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
37138 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
37139 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
37140 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
37141 atomic_nand<mode>_soft_tcb): New insns.
37142 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
37143 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
37144 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
37145 Split into atomic_not_fetchsi_hard if operands[0] is unused.
37146 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
37147 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
37148 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
37149 atomic_not<mode>_hard if operands[0] is unused.
37150 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
37151 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
37152 if operands[0] is unused.
37153 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
37154 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
37155 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
37156 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
37158 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
37159 into atomic_not<mode>_soft_tcb if operands[0] is unused.
37160 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
37161 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
37162 if operands[0] is unused.
37163 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
37164 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
37165 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
37166 atomic_nand_fetchsi_hard if operands[0] is unused.
37167 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
37168 atomic_nand<mode>_hard if operands[0] is unused.
37169 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
37170 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
37171 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
37172 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
37173 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
37174 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
37175 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
37176 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
37177 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
37178 atomic_not<mode>_hard if operands[0] is unused.
37179 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
37180 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
37182 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
37183 into atomic_not<mode>_soft_tcb if operands[0] is unused.
37184 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
37185 atomic_nand<mode>_hard if operands[0] is unused.
37186 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
37187 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
37189 2015-02-03 David Malcolm <dmalcolm@redhat.com>
37192 * Makefile.in (GCC_OBJS): Add gcc-main.o.
37193 * gcc-main.c: New file, containing "main" taken from gcc.c.
37194 * gcc.c (do_self_spec): Free decoded_options.
37195 (class driver): Move declaration to gcc.h.
37196 (main): Move declaration and implementation to new file
37198 (driver_get_configure_time_options): New function.
37199 * gcc.h (class driver): Move this declaration here, from
37201 (driver_get_configure_time_options): New declaration.
37203 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
37205 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
37206 cross-module inlining.
37207 * cgraph.h (cgraph_node): Add flag merged.
37208 * ipa-icf.c (sem_function::merge): Maintain it.
37210 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
37212 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
37213 instead of OBJECT_P.
37215 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
37218 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
37219 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
37220 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
37221 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
37223 2015-02-03 Jakub Jelinek <jakub@redhat.com>
37226 * combine.c (reg_n_sets_max): New variable.
37227 (can_change_dest_mode, reg_nonzero_bits_for_combine,
37228 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
37229 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
37230 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
37231 (rest_of_handle_combine): Initialize reg_n_sets_max.
37233 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
37235 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
37236 if some always_inline was inlined, apply changes before inlining
37239 2015-02-02 David Malcolm <dmalcolm@redhat.com>
37242 * config/arm/arm.c (arm_option_override): Set
37243 arm_selected_arch/cpu/tune to NULL on entry.
37245 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
37246 Andrew Pinski <pinskia@gcc.gnu.org>
37247 Jakub Jelinek <jakub@gcc.gnu.org>
37250 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
37251 integer typing for small model. Use IN_RANGE.
37253 2015-02-02 Richard Biener <rguenther@suse.de>
37255 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
37256 * tree-vrp.c (vrp_valueize_1): Likewise.
37258 2015-02-02 Alan Modra <amodra@gmail.com>
37260 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
37261 than mem for toc_restore.
37262 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
37263 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
37264 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
37266 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
37269 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
37270 explicit default options.
37272 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
37275 * ipa-utils.c (ipa_merge_profiles): Add release argument.
37276 * ipa-icf.c (sem_function::merge): Do not release body when merging.
37277 * ipa-utils.h (ipa_merge_profiles): Update prototype.
37279 2015-02-01 Jakub Jelinek <jakub@redhat.com>
37282 * cfgexpand.c (deep_ter_debug_map): New variable.
37283 (avoid_deep_ter_for_debug): New function.
37284 (expand_debug_expr): If TERed SSA_NAME is in
37285 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
37286 instead of trying to expand SSA_NAME's def stmt.
37287 (expand_debug_locations): When expanding debug bind
37288 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
37289 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
37291 (pass_expand::execute): Call avoid_deep_ter_for_debug on
37292 all debug bind stmts. Delete deep_ter_debug_map after
37293 expand_debug_location if non-NULL and clear it.
37295 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
37298 * config/sh/sync.md (atomic_fetch_notsi_hard,
37299 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
37300 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
37301 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
37302 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
37303 atomic_not_fetch<mode>_soft_imask): New insns.
37305 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
37307 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
37308 (rank_for_schedule_debug): Split from ...
37309 (rank_for_schedule): ... this.
37310 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
37311 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
37313 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
37315 * doc/md.texi (Machine Constraints): Alphabetize table by target.
37316 * doc/extend.texi (x86 Variable Attributes): Move section to
37317 correct alphabetization after renaming.
37318 (x86 Type Attributes): Likewise.
37319 (Target Builtins): Re-alphabetize menu.
37320 (x86 Built-in Functions): Move section to correct alphabetization
37322 (x86 transactional memory intrinsics): Likewise.
37323 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
37324 and x86 Windows Options in table and menu.
37325 (x86 Options): Move section to correct alphabetization after
37327 (x86 Windows Options): Likewise.
37329 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
37331 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
37332 preferred names of the architecture and its 32- and 64-bit
37334 * doc/invoke.texi: Likewise.
37335 * doc/md.texi: Likewise.
37337 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
37340 * config/i386/predicates.md (address_no_seg_operand): Reject
37341 non-CONST_INT_P operands in invalid mode.
37343 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
37345 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
37346 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
37347 * config/i386/predicates.md (address_no_seg_operand): Call
37348 address_operand with VOIDmode.
37349 (vsib_address_operand): Ditto.
37350 (address_mpx_no_base_operand): Ditto.
37351 (address_mpx_no_index_operand): Ditto.
37353 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
37356 * lra-constraints.c (original_subreg_reg_mode): New.
37357 (simplify_operand_subreg): Try to simplify subreg of const. Use
37358 original_subreg_reg_mode for it.
37359 (swap_operands): Update original_subreg_reg_mode.
37360 (curr_insn_transform): Set up original_subreg_reg_mode.
37362 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
37365 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
37367 (process_alt_operands): Use it.
37368 (curr_insn_transform): Check the optional reload pseudo class is
37371 2015-01-30 Joseph Myers <joseph@codesourcery.com>
37373 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
37374 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
37376 * toplev.h (init_asm_output): Update comment on use of
37377 UNKNOWN_LOCATION with fatal_error.
37378 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
37379 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
37380 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
37381 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
37382 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
37383 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
37384 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
37385 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
37386 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
37387 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
37388 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
37389 fatal_error changed to pass input_location as first argument.
37391 2015-01-30 Martin Liska <mliska@suse.cz>
37393 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
37394 in #pragma GCC diagnostic guards.
37396 2015-01-30 Richard Biener <rguenther@suse.de>
37398 PR tree-optimization/64829
37399 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
37400 not add a widening conversion pattern but hand off extra
37401 widenings to callers.
37402 (vect_recog_widen_mult_pattern): Handle extra widening produced
37403 by vect_handle_widen_op_by_const.
37404 (vect_recog_widen_shift_pattern): Likewise.
37405 (vect_pattern_recog_1): Remove excess vertical space in dumping.
37406 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
37407 (vect_init_vector_1): Likewise.
37408 (vect_get_vec_def_for_operand): Likewise.
37409 (vect_finish_stmt_generation): Likewise.
37410 (vectorizable_load): Likewise.
37411 (vect_analyze_stmt): Likewise.
37412 (vect_is_simple_use): Likewise.
37414 2015-01-29 Jeff Law <law@redhat.com>
37416 * combine.c (try_combine): Fix typo in comment.
37418 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
37421 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
37422 (rs6000_stack_info): Add assert.
37423 (rs6000_output_savres_externs): New function, split off from...
37424 (rs6000_output_function_prologue): ... here. Do not call it for
37427 2015-01-29 Jeff Law <law@redhat.com>
37430 * combine.c (try_combine): If I0 is a memory load and I3 a store
37431 to a related address, increase the "goodness" of doing a 4-insn
37432 combination with I0-I3.
37433 (make_field_assignment): Handle SUBREGs in the ior+and case.
37435 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
37437 PR tree-optimization/64746
37438 * tree-if-conv.c (mask_exists): New function.
37439 (predicate_mem_writes): Save created mask with given size for further
37441 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
37442 (ifcvt_repair_bool_pattern): Collect all statements that are root
37443 of bool pattern and use iterative algorithm to remove multiple uses
37444 of predicates, display number of required iterations.
37446 2015-01-29 Richard Biener <rguenther@suse.de>
37448 PR tree-optimization/64853
37449 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
37450 stmt will get simulated again.
37451 * tree-ssa-ccp.c (valueize_op_1): Likewise.
37453 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37455 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
37456 return_in_pc. Remove redundant assignments.
37457 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
37458 (arm_expand_epilogue): Don't compare boolean with true in if condition.
37460 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
37462 * config/i386/i386.c (ix86_mode_after): Make static.
37464 2015-01-29 Richard Biener <rguenther@suse.de>
37466 PR tree-optimization/64844
37467 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
37468 dump cost model analysis.
37469 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
37470 Do not register adjusted load/store costs here.
37472 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
37473 Uros Bizjak <ubizjak@gmail.com>
37475 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
37476 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
37477 using x86_use_pseudo_pic_reg.
37478 * config/i386/i386.c (ix86_conditional_register_usage): Remove
37479 support for fixed PIC register.
37480 (ix86_use_pseudo_pic_reg): Not static any more.
37482 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
37484 PR middle-end/64805
37485 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
37486 to avoid error in cgraph node verification.
37488 2015-01-29 Marek Polacek <polacek@redhat.com>
37490 * doc/standards.texi: Reflect that the default for C is gnu11.
37492 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
37495 * reorg.c (switch_text_sections_between_p): New function.
37496 (relax_delay_slots): Call it when testing if the jump insn
37497 is removable. Use targetm.can_follow_jump when testing if
37498 the conditional branch can follow an unconditional jump.
37500 2015-01-27 Caroline Tice <cmtice@google.com>
37502 Committing VTV Cywin/Ming patch for Patrick Wollgast
37503 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
37504 if -fvtable-verify=preinit/std is used.
37505 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
37506 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
37507 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
37508 if -fvtable-verify=preinit/std is used.
37509 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
37510 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
37511 if -fvtable-verify=preinit/std is used.
37512 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
37513 * config/i386/mingw32.h (LIB_SPEC): Likewise.
37514 * varasm.c (assemble_variable): Add code to properly set the comdat
37515 section and name for the .vtable_map_vars section in case the
37516 target is PE or COFF.
37518 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
37521 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
37522 make sane BB profile.
37523 (cgraph_node::expand_thunk): Make sane BB profile.
37524 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
37525 * cgraph.h (init_lowered_empty_function): Update prototype.
37526 * config/i386/i386.c (make_resolver_func): Update call.
37527 * predict.c (gate): Disable branch prediction pass if
37528 profile is already there.
37530 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
37532 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
37533 * opth-gen.awk: Likewise.
37534 * common.opt: Mark flag_fp_contract_mode as Optimization.
37536 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
37538 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
37539 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
37541 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
37544 * config/sh/predicates.md (atomic_arith_operand,
37545 atomic_logical_operand): Remove.
37546 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
37547 (atomic_arith_operand_0): New predicate.
37548 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
37549 Use atomic_arith_operand_0 for input values.
37550 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
37551 atomic_compare_and_swap<mode>_soft_gusa,
37552 atomic_compare_and_swap<mode>_soft_tcb,
37553 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
37554 arith_reg_operand instead of register_operand.
37555 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
37556 atomic_arith_operand_0 for newval input.
37557 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
37558 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
37559 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
37560 arith_reg_operand instead of register_operand.
37561 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
37562 fetchop_predicate_1, fetchop_constraint_1_llcs,
37563 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
37564 fetchop_constraint_1_imask): New code iterator attributes.
37565 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
37566 register_operand. Use fetchop_predicate_1.
37567 (atomic_fetch_<fetchop_name>si_hard,
37568 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
37569 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
37570 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
37571 and arith_reg_operand instead of register_operand. Use
37572 fetchop_predicate_1, fetchop_constraint_1_gusa.
37573 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
37574 and arith_reg_operand instead of register_operand. Use
37575 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
37577 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
37578 and arith_reg_operand instead of register_operand. Use
37579 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
37581 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
37582 register_operand. Use atomic_logical_operand_1.
37583 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
37584 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
37585 arith_reg_operand instead of register_operand.
37586 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
37587 Use arith_reg_dest and arith_reg_operand instead of register_operand.
37588 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
37589 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
37590 register_operand. Use fetchop_predicate_1.
37591 (atomic_<fetchop_name>_fetchsi_hard,
37592 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
37593 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
37594 fetchop_constraint_1_llcs.
37595 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
37596 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
37597 fetchop_constraint_1_gusa.
37598 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
37599 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
37600 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
37601 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
37602 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
37603 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
37604 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
37605 register_operand. Use atomic_logical_operand_1.
37606 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
37607 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
37608 arith_reg_operand instead of register_operand.
37609 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
37610 arith_reg_operand instead of register_operand. Use logical_operand
37611 and K08. Adjust asm sequence to allow R0 usage.
37612 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
37613 arith_reg_operand instead of register_operand. Use logical_operand
37616 2015-01-28 Jakub Jelinek <jakub@redhat.com>
37619 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
37620 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
37621 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
37622 only get_full_len HOST_WIDE_INTs from get_val () array rather than
37623 all bits in *val_wide.
37625 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
37627 * varpool.c (tls_model_names): Fix names.
37628 (varpool_node::dump): Dump tls- prefix for tls models.
37630 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
37631 Bernd Schmidt <bernds@codesourcery.com>
37632 Nathan Sidwell <nathan@codesourcery.com>
37634 * config/nvptx/mkoffload.c: New file.
37635 * config/nvptx/t-nvptx: Add build rules for it.
37636 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
37637 (extra_programs): Add mkoffload.
37638 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
37640 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
37642 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
37644 PR middle-end/64809
37645 * cfgexpand.c (reorder_operands): Skip debug gimples.
37647 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
37649 PR tree-optimization/64277
37650 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
37651 range info when possible to refine estimation.
37653 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
37655 PR tree-optimization/64718
37656 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
37657 be a 16bit unsigned integer when n->range is 16.
37658 (bswap_replace): Convert src to that type if necessary for all bswap
37659 sizes. Fix rotation right notation in nearby comment. Use bswap_type
37660 set in pass_optimize_bswap::execute ().
37662 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
37664 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
37665 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
37666 integer and floating point variants.
37667 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
37669 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
37671 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
37672 for all vector modes.
37674 2015-01-28 Jakub Jelinek <jakub@redhat.com>
37677 * doc/sourcebuild.texi (comdat_group): Document.
37679 2015-01-28 Terry Guo <terry.guo@arm.com>
37681 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
37683 2015-01-27 David Malcolm <dmalcolm@redhat.com>
37685 * toplev.c (print_version): Add param "show_global_state", and
37686 only print GGC and plugin information if it is true.
37687 (init_asm_output): Pass in "true" for the new param when calling
37689 (process_options): Likewise.
37690 (toplev::main): Likewise.
37691 * toplev.h (print_version): Add new param to decl.
37693 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
37697 * tree.c (lookup_binfo_at_offset): New function.
37698 (get_binfo_at_offset): Use it.
37700 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
37703 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
37704 on vtable being vtable.
37706 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
37708 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
37709 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
37710 -mhotpatch= option.
37711 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
37712 -mno-hotpatch options. Change syntax of -mhotpatch= option.
37713 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
37715 (s390_hotpatch_trampoline_halfwords_max): Renamed.
37716 (s390_hotpatch_hw_max): New name.
37717 (s390_hotpatch_trampoline_halfwords): Renamed.
37718 (s390_hotpatch_hw_before_label): New name.
37719 (get_hotpatch_attribute): Removed.
37720 (s390_hotpatch_hw_after_label): New name.
37721 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
37723 (s390_attribute_table): Ditto.
37724 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
37725 (s390_function_num_hotpatch_hw): New name.
37726 Remove special handling of inline functions and hotpatching.
37727 Return number of nops before and after the function label.
37728 (s390_can_inline_p): Removed.
37729 (s390_asm_output_function_label): Emit a configurable number of nops
37730 after the function label.
37731 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
37732 (TARGET_CAN_INLINE_P) Removed.
37733 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
37735 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
37736 Jiong Wang <jiong.wang@arm.com>
37738 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
37740 (cb<optab><mode>1): Likewise.
37741 * config/aarch64/iterators.md (bcond): New define_code_attr.
37743 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
37745 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
37748 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
37750 * config/s390/s390.c (s390_register_move_cost): Increase costs for
37753 2015-01-27 Richard Biener <rguenther@suse.de>
37755 * tree-vrp.c (update_value_range): Intersect the range with
37756 old recorded SSA name range information.
37758 2015-01-27 Nick Clifton <nickc@redhat.com>
37760 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
37761 BC, DE and HL registers directly, not via AX.
37762 When decrementing the stack pointer by a large amount, transfer SP
37763 into AX and perform the subtraction there.
37764 (rl78_expand_epilogue): Perform the inverse of the above
37767 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
37769 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
37771 2015-01-27 Jakub Jelinek <jakub@redhat.com>
37772 Yury Gribov <y.gribov@samsung.com>
37775 * ubsan.c (ubsan_source_location): Refactor code.
37776 (ubsan_type_descriptor): Update type size. Refactor code.
37778 2015-01-27 Richard Biener <rguenther@suse.de>
37780 PR tree-optimization/56273
37781 PR tree-optimization/59124
37782 PR tree-optimization/64277
37783 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
37784 from the first VRP pass.
37786 2015-01-27 Jakub Jelinek <jakub@redhat.com>
37789 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
37790 handle the first argument in the same loop as all the other arguments.
37792 PR rtl-optimization/61058
37793 * jump.c (cleanup_barriers): Update basic block boundaries
37794 if BLOCK_FOR_INSN is non-NULL on PREV.
37796 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
37798 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
37799 bounds narrowing, already instrumented calls and calls to
37800 not instrumentable functions.
37802 2015-01-27 Jakub Jelinek <jakub@redhat.com>
37804 PR tree-optimization/64807
37805 * wide-int.cc (wi::divmod_internal): Clear
37806 b_dividend[dividend_blocks_needed].
37808 2015-01-26 DJ Delorie <dj@redhat.com>
37810 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
37811 volatile memory references.
37813 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
37816 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
37818 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
37819 shifts if it already fits into K08.
37821 2015-01-26 Jakub Jelinek <jakub@redhat.com>
37824 * ipa-inline.c (inline_small_functions): Print "unknown" even
37825 if edge->call_stmt is non-NULL, but has builtins or unknown
37828 PR middle-end/64421
37829 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
37830 with asterisk, skip the first character.
37832 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
37835 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
37838 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
37841 * config/i386/i386.md (*movdi_internal): Also check operand 0
37842 to determine TYPE_LEA operand.
37843 (*movsi_internal): Ditto.
37845 2015-01-26 Jakub Jelinek <jakub@redhat.com>
37847 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
37848 OPTION_MASK_QUAD_MEMORY_ATOMIC.
37850 2015-01-26 Renlin Li <renlin.li@arm.com>
37852 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
37854 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
37857 2015-01-26 Richard Biener <rguenther@suse.de>
37859 PR middle-end/64764
37860 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
37861 combining two BIT_AND_EXPR predicates.
37863 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
37866 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
37868 2015-01-26 Terry Guo <terry.guo@arm.com>
37870 * config/arm/arm.c (arm_file_start): Update the assignment of
37871 Tag_ABI_HardFP_use.
37873 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
37875 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
37877 config/arm/arm.md: Include the new Cortex-A57 model.
37878 (generic_sched): Don't use generic_sched when tuning for
37881 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
37882 Uros Bizjak <ubizjak@gmail.com>
37884 * config/i386/i386.c (get_builtin_code_for_version): Add
37885 support for BMI and BMI2 multiversion functions.
37887 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
37889 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
37890 (extract_bit_field): Likewise.
37891 (extract_low_bits): Likewise.
37892 (expand_mult): Likewise.
37893 (expand_mult_highpart_adjust): Likewise.
37895 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
37897 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
37898 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
37899 * config/i386/i386.c (processor_model): Add
37900 M_INTEL_COREI7_BROADWELL.
37901 (arch_names_table): Add "broadwell".
37903 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
37912 * config/sh/sh-protos.h
37913 (sh_extending_set_of_reg::can_use_as_unextended_reg,
37914 sh_extending_set_of_reg::use_as_unextended_reg,
37915 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
37916 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
37917 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
37918 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
37919 (sh_treg_insns): New class.
37920 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
37921 (scope_counter): New class.
37922 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
37923 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
37924 sh_extending_set_of_reg::can_use_as_unextended_reg,
37925 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
37926 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
37927 sh_split_treg_set_expr): New functions.
37928 (addsubcosts): Handle treg_set_expr.
37929 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
37930 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
37931 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
37932 (sh_insn_operands_modified_between_p): Make non-static.
37933 * config/sh/predicates.md (zero_extend_movu_operand): Allow
37934 simple_mem_operand in addition to displacement_mem_operand.
37935 (zero_extend_operand): Don't allow zero_extend_movu_operand.
37936 (treg_set_expr, treg_set_expr_not_const01,
37937 arith_reg_or_treg_set_expr): New predicates.
37938 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
37939 arith_or_int_operand instead of logical_operand. Convert to
37940 insn_and_split. Try to optimize constant operand in splitter.
37941 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
37942 (*tstqi_t_zero): Delete.
37943 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
37944 (tstsi_t_and_not): Delete.
37945 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
37946 Convert to insn_and_split.
37947 (unnamed split, tstsi_t_zero_extract_xor,
37948 tstsi_t_zero_extract_subreg_xor_little,
37949 tstsi_t_zero_extract_subreg_xor_big): Delete.
37950 (*tstsi_t_shift_mask): New insn_and_split.
37951 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
37952 to recombine with surrounding insns when splitting.
37953 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
37954 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
37955 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
37956 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
37957 (*cbranch_div0s: Delete.
37958 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
37959 Try to recombine with surrounding insns when splitting. Add operand
37961 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
37962 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
37963 *addc_r_r_msb, *addc_2r_msb): Delete.
37964 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
37966 (*addc_negreg_t): New insn_and_split.
37967 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
37968 Try to recombine with surrounding insns when splitting.
37969 Add operand order variants.
37970 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
37971 insn_and_split patterns.
37972 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
37973 surrounding insns when splitting.
37974 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
37975 (*rotcl): Likewise. Add zero_extract variant.
37976 (*ashrsi2_31): New insn_and_split.
37977 (*negc): Convert to insn_and_split. Use treg_set_expr.
37978 (*zero_extend<mode>si2_disp_mem): Update comment.
37979 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
37981 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
37982 with surrounding insns when splitting.
37983 (any_treg_expr_to_reg): New insn_and_split.
37984 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
37985 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
37986 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
37987 *zero_extract_2): New single bit zero extract patterns.
37988 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
37989 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
37990 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
37991 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
37993 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
37994 register_operand for set source.
37996 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
37998 * i386.opt (prefetch_sse): New targetsave.
37999 * i386.c (ix86_function_specific_save): Save prefetch_sse.
38000 (ix86_function_specific_restore): Restore prefetch_sse and initialize
38001 ix86_cost/ix86_tune_cost.
38003 2015-01-23 David Malcolm <dmalcolm@redhat.com>
38005 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
38006 Support the JIT by using 0 as the language type.
38008 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
38011 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
38012 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
38013 (mark_regno_live, process_bb_lives): Pass new parameter value to
38014 make_hard_regno_born.
38016 2015-01-23 Jakub Jelinek <jakub@redhat.com>
38018 PR rtl-optimization/63637
38019 PR rtl-optimization/60663
38020 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
38021 if elt->cost is MAX_COST for ASM_OPERANDS.
38022 (find_sets_in_insn): Fix up comment typo.
38023 (cse_insn): Don't set src_volatile for all non-volatile
38024 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
38025 or with "memory" clobber. Set elt->cost to MAX_COST
38026 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
38027 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
38029 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
38031 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
38034 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
38036 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
38037 libgcc/config/i386/elf-lib.h.
38039 2015-01-23 Jakub Jelinek <jakub@redhat.com>
38042 * gcc.c (print_configuration): Don't print a blank line at the end
38044 (run_attempt): ... but here unstead.
38046 PR middle-end/64734
38047 * omp-low.c (scan_sharing_clauses): Don't ignore
38048 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
38049 on target data/update constructs.
38051 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
38054 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
38055 (DEBUG_RELOAD): Removed define.
38056 (m32c_limit_reload_class): Enable traces with if DEBUG0.
38057 (m32c_function_arg): Added a type cast.
38058 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
38059 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
38060 * config/m32c/bitops.md (andqi3_16): Likewise.
38061 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
38062 (push_a01_l): Likewise.
38064 2015-01-23 David Malcolm <dmalcolm@redhat.com>
38067 * main.c (main): Construct toplev instances with init_signals=true.
38068 * toplev.c (general_init): Add param "init_signals", and use it to
38069 conditionalize the calls to signal and host_hooks.extra_signals.
38070 (toplev::toplev): Add param "init_signals".
38071 (toplev::main): When invoking general_init, pass m_init_signals
38072 to control whether signal-handlers are installed.
38073 * toplev.h (toplev::toplev): Add param "init_signals".
38074 (toplev::m_init_signals): New field.
38076 2015-01-23 David Malcolm <dmalcolm@redhat.com>
38079 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
38080 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
38081 latter may be affected by the former (e.g. on i686).
38083 2015-01-23 Martin Liska <mliska@suse.cz>
38085 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
38086 false positive during profiledbootstrap.
38088 2015-01-23 Tom de Vries <tom@codesourcery.com>
38091 * lto-opts.c (lto_write_options): Output non-explicit conservative
38093 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
38094 (append_compiler_options): Pass -fopenacc through.
38096 2015-01-23 Tom de Vries <tom@codesourcery.com>
38099 * lto-opts.c (lto_write_options): Output non-explicit conservative
38101 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
38102 (append_compiler_options): Pass -fopenmp through.
38104 2015-01-23 Jakub Jelinek <jakub@redhat.com>
38107 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
38110 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
38111 * diagnostic.def (DK_ICE_NOBT): New kind.
38112 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
38113 like DK_ICE, but never print backtrace.
38114 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
38115 (internal_error_no_backtrace): New function.
38116 * gcc.c (execute): Use internal_error_no_backtrace instead of
38119 2015-01-22 Jeff Law <law@redhat.com>
38122 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
38123 improve code density for small immediate to memory case.
38124 (insv): Better handle bitfield assignments when the field is
38125 being set to all ones.
38126 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
38129 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
38130 Jakub Jelinek <jakub@redhat.com>
38132 PR middle-end/64729
38133 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
38134 for !TARGET_LIBC_PROVIDES_SSP version and
38135 -fstack-protector-{all,strong,explicit} otherwise.
38136 * config/freebsd.h (LINK_SSP_SPEC): Handle
38137 -fstack-protector-{strong,explicit}.
38139 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
38140 H.J. Lu <hongjiu.lu@intel.com>
38143 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
38146 2015-01-22 Wei Mi <wmi@google.com>
38148 PR rtl-optimization/64557
38149 * dse.c (record_store): Call get_addr for mem_addr.
38150 (check_mem_read_rtx): Likewise.
38152 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
38154 * fold-const.c (const_binop): Add early return for non-tcc_binary.
38156 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
38158 * toplev.c (init_local_tick): Process the failure when read
38159 fails for random_seed.
38161 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
38162 'pretty_name' to avoid memory overflow.
38164 2015-01-22 Richard Biener <rguenther@suse.de>
38166 PR middle-end/64728
38167 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
38168 abnormal coalescing on undefined SSA names.
38170 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
38174 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
38176 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
38178 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
38180 PR middle-end/63325
38181 * fold-const.c (fold_checksum_tree): Don't include value of
38182 expr->decl_with_vis.symtab_node in the checksum.
38184 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
38186 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
38188 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
38191 * gcc.c (insert_comments): New function.
38192 (try_generate_repro): Call it.
38193 (append_text): Removed.
38195 2015-01-22 Richard Biener <rguenther@suse.de>
38197 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
38198 with IL incompatible options. Properly honor user optimize
38201 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
38203 PR rtl-optimization/64682
38204 * combine.c (distribute_notes): When moving a death note for
38205 a register that is set in the new I2, make sure to put it
38206 before that new I2.
38208 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
38210 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
38211 not TARGET_DEFAULT.
38213 2015-01-21 Jakub Jelinek <jakub@redhat.com>
38216 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
38217 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
38218 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
38221 * doc/invoke.texi (-fsanitize=vptr): Document.
38223 PR rtl-optimization/62078
38224 * dse.c: Include cfgcleanup.h.
38225 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
38226 anything call purge_all_dead_edges and cleanup_cfg at the end
38229 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
38231 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
38234 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
38236 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
38239 2015-01-21 David Sherwood <david.sherwood@arm.com>
38240 Tejas Belagod <Tejas.Belagod@arm.com>
38242 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
38243 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
38244 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
38247 2015-01-21 David Sherwood <david.sherwood@arm.com>
38248 Tejas Belagod <Tejas.Belagod@arm.com>
38250 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
38251 (aarch64_reverse_mask): New decls.
38252 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
38253 (insn_count): New mode_attr.
38254 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
38255 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
38256 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
38257 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
38258 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
38259 (aarch64_simd_st4): New patterns.
38260 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
38261 (aarch64_reverse_mask): New functions.
38263 2015-01-21 Alan Hayward <alan.hayward@arm.com>
38265 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
38267 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
38268 addressing modes for BE.
38269 (aarch64_print_operand): Add 'R' specifier.
38270 (aarch64_simd_disambiguate_copy): Delete.
38271 (aarch64_simd_emit_reg_reg_move): New function.
38272 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
38273 in define_splits for structural moves.
38274 (mov<mode>): Use less restrictive predicates.
38275 (*aarch64_mov<mode>): Simplify and only allow for LE.
38276 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
38278 2015-01-21 Alan Hayward <alan.hayward@arm.com>
38280 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
38282 2015-01-21 Richard Henderson <rth@redhat.com>
38285 * ccmp.c (used_in_cond_stmt_p): Remove.
38286 (expand_ccmp_expr): Don't use it.
38288 2015-01-21 Nick Clifton <nickc@redhat.com>
38290 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
38293 2015-01-21 Richard Biener <rguenther@suse.de>
38295 PR middle-end/64313
38296 * tree-core.h (builtin_info, builtin_info_type): Turn from
38297 an object with two arrays into an array of an object with
38298 decl and two flags, implicit_p and declared_p.
38299 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
38300 set_builtin_decl, set_builtin_decl_implicit_p,
38301 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
38302 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
38303 * builtins.c (builtin_info): Adjust.
38304 * gimplify.c (gimplify_addr_expr): References to builtins
38305 that have been declared by the user makes them eligible for
38306 use by the compiler. Call set_builtin_decl_implicit_p on them.
38308 2015-01-20 Jeff Law <law@redhat.com>
38311 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
38312 allow pc-relative addresses in operand predicates or constraints.
38314 2015-01-21 Bin Cheng <bin.cheng@arm.com>
38316 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
38317 neon on aarch32 processors for stringops.
38319 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
38322 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
38324 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
38327 * ipa-inline.c: Include lto-streamer.h
38328 (report_inline_failed_reason): Output source file differences and
38329 flags on optimization/target node mismatch.
38330 (can_inline_edge_p): Consider caller to be the outer inline function;
38331 be less restrictive about matching opimize and optimize_size attributes.
38332 (inline_account_function_p): Break out from ...
38333 (inline_small_functions): ... here.
38334 * ipa-inline-transform.c (clone_inlined_nodes): Use
38335 inline_account_function_p.
38336 (inline_call): Use optimize attribution; use inline_account_function_p.
38337 (inline_transform): Use opt_for_fn.
38338 * ipa-inline.h (inline_account_function_p): Declare.
38340 2015-01-20 Jakub Jelinek <jakub@redhat.com>
38343 * dwarf2out.c (decl_piece_node): Don't put bitsize into
38344 mode if bitsize <= 0.
38345 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
38346 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
38347 sizes and positions.
38349 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
38351 * config/nios2/nios2.c (nios2_asm_file_end): Implement
38352 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
38354 (TARGET_ASM_FILE_END): Define.
38356 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
38358 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
38359 (struct tune_params): Use the enum.
38360 * arm.c (arm_*_tune): Update.
38361 (arm_option_override): Update.
38363 2015-01-20 Richard Biener <rguenther@suse.de>
38366 * ipa-reference.c (add_static_var): Inline ...
38367 (analyze_function): ... here after splitting out from ...
38368 (is_proper_for_analysis): ... this.
38370 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
38373 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
38374 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
38375 replace the conditional with it's true branch.
38376 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
38377 (arm_lra_p): Remove.
38379 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
38381 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
38383 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
38385 * config/tilegx/mul-tables.c: Move symtab.h include after
38386 coretypes.h include.
38387 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
38388 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
38389 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
38390 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
38391 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
38393 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
38397 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
38399 PR rtl-optimization/64081
38400 * loop-iv.c (def_pred_latch_p): New function.
38401 (latch_dominating_def): Allow specific cases with non-single
38403 (iv_get_reaching_def): Likewise.
38404 (check_complex_exit_p): New function.
38405 (check_simple_exit): Use check_complex_exit_p to allow certain cases
38406 with exits not executing on any iteration.
38408 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
38411 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
38412 to set branch cost.
38414 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
38417 * i386.c (gate): Check flag_expensive_optimizations and
38419 (ix86_option_override_internal): Drop optimize_size condition
38420 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
38421 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
38422 MASK_PREFER_AVX128.
38423 (ix86_avx256_split_vector_move_misalign,
38424 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
38425 * sse.md (all uses of TARGET_PREFER_AVX128): Add
38426 optimize_insn_for_speed_p check.
38428 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
38430 * config/mips/mips.h (FP_ASM_SPEC): New define.
38431 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
38434 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
38437 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
38438 nullptr for insn when reaching the first insn.
38439 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
38440 (sh_insn_operands_modified_between_p): Add nullptr check.
38441 (sh_find_extending_set_of_reg): Fix log message. Don't accept
38442 sign extending mem load if the insn contains any UNSPEC or
38445 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
38447 * params.def (inline-unit-growth): Drop to 15%.
38448 * invoke.texi (inline-unit-growth): Document change.
38450 2015-01-19 Martin Liska <mliska@suse.cz>
38453 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
38454 function for second argument of OBJ_TYPE_REF.
38456 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
38459 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
38460 whether function is an alias.
38462 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
38464 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
38467 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
38469 PR rtl-optimization/64671
38470 * lra-remat.c (operand_to_remat): Don't consider jump and call
38473 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
38476 * config/rs6000/default64.h: Include rs6000-cpus.def.
38477 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
38478 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
38479 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
38481 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
38483 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
38484 pseudo-op to specify assembler dialect.
38486 2015-01-19 Martin Liska <mliska@suse.cz>
38489 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
38490 Handle safe potentially removed nodes during filtering.
38492 2015-01-19 Martin Liska <mliska@suse.cz>
38494 * doc/extend.texi (no_icf): Add new attribute description.
38495 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
38496 where the pass attempts to merge a function with no_icf attribute.
38498 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38501 * doc/md.texi (ARM Options): Document register constraints.
38503 2015-01-19 Jiong Wang <jiong.wang@arm.com>
38504 Andrew Pinski <apinski@cavium.com>
38507 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
38508 (ashl<mode>3): Don't expand if operands[2] is not constant.
38510 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38513 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
38514 Match xor-and-xor RTL pattern.
38516 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
38518 PR rtl-optimization/64081
38519 * loop-iv.c (def_pred_latch_p): New function.
38520 (latch_dominating_def): Allow specific cases with non-single
38522 (iv_get_reaching_def): Likewise.
38523 (check_complex_exit_p): New function.
38524 (check_simple_exit): Use check_complex_exit_p to allow certain cases
38525 with exits not executing on any iteration.
38527 2015-01-19 Jakub Jelinek <jakub@redhat.com>
38529 * common.opt (fgraphite): Fix a typo.
38531 2015-01-19 Felix Yang <felix.yang@huawei.com>
38533 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
38535 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
38536 uminp, smax_nanp, smin_nanp): New builtins.
38537 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
38538 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
38539 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
38540 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
38541 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
38542 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
38543 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
38544 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
38545 vpminnms_f32): Rewrite using builtin functions.
38547 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
38550 * omp-low.c (offload_symbol_decl): Remove variable.
38551 (get_offload_symbol_decl): Remove function.
38552 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
38553 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
38554 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
38555 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
38556 BUILT_IN_GOACC_UPDATE don't pass it at all.
38558 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
38560 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
38563 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
38565 * ipa-chkp.c (chkp_produce_thunks): Add early param
38566 to split thunks production into two passes. Keep
38567 'always_inline' function bodies after the first pass.
38568 (pass_data_ipa_chkp_early_produce_thunks): New.
38569 (pass_ipa_chkp_early_produce_thunks): New.
38570 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
38571 chkp_produce_thunks signature.
38572 (make_pass_ipa_chkp_early_produce_thunks): New.
38573 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
38574 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
38575 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
38577 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
38579 * cgraph.c (cgraph_node::dump): Dump profile flags.
38581 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
38584 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
38585 reg appear first in the parallel.
38587 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
38589 * ipa-reference.c (set_reference_optimization_summary,
38590 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
38592 (ignore_module_statics): New static var.
38593 (propagate_bits): If ipa-reference is disabled, do not look into local
38595 (analyze_function): Disable analysis when ipa_reference is disabled.
38596 (generate_summary): Do not dump when reference is disabled;
38597 collect vars accessed from functions with ipa-reference disabled.
38598 (get_read_write_all_from_node): When ipa-reference is disabled, use the
38600 (gate): Enable for LTO.
38601 (ignore_edge_p): New function.
38602 (propagate): Skip functions w/o ipa-reference analysis.
38603 * optc-save-gen.awk: Handle optimize_debug correctly.
38604 * opth-gen.awk: Likewise.
38605 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
38606 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
38607 fira-share-save-slots, fira-share-spill-slots,
38608 fmodulo-sched-allow-regmoves, fpartial-inlining,
38609 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
38610 ftracer, ftree-parallelize-loops, fassociative-math,
38611 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
38613 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
38614 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
38616 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
38619 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
38622 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
38624 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
38626 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
38628 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
38629 Remove duplicate option listings.
38631 2015-01-18 Felix Yang <felix.yang@huawei.com>
38633 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
38634 (autofdo_source_profile::get_callsite_total_count,
38635 function_instance::get_function_instance_by_decl,
38636 string_table::get_index, string_table::get_index_by_decl,
38637 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
38638 Fix comment typos. Reformatting and minor code rearrangement.
38640 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
38642 * config/rs6000/rs6000.md (probe_stack): Delete.
38643 (probe_stack_address): New.
38645 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
38647 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
38648 to test for 32-bit ABIs, not !TARGET_POWERPC64.
38650 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
38652 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
38653 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
38654 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
38656 (rs6000_libcall_value): Use the new function.
38658 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
38660 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
38662 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
38664 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
38665 implement a more precise life analysis for it during backward scan.
38667 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
38669 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
38671 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
38673 PR rtl-optimization/52773
38674 * calls.c (emit_library_call_value): When pushing arguments use
38675 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
38676 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
38677 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
38679 2015-01-17 Jeff Law <law@redhat.com>
38681 PR rtl-optimization/32790
38682 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
38683 not ZERO_EXTEND in SET_DESTs.
38685 2015-01-17 Alan Modra <amodra@gmail.com>
38687 * cprop.c (do_local_cprop): Revert last change.
38689 2015-01-16 DJ Delorie <dj@redhat.com>
38690 Nick Clifton <nickc@redhat.com>
38692 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
38693 (addhi3_real): Likewise. Fix [HL+0] syntax.
38694 (subqi3_real): Likewise.
38695 (subhi3_real): Likewise.
38696 (cbranchqi4_real): Likewise. Allow saddr,#imm.
38697 (cbranchhi4_real): Likewise.
38698 (cbranchhi4_real_inverted): Likewise.
38699 (cbranchsi4_real_lt): Likewise.
38700 (cbranchsi4_real_ge): Likewise.
38701 (cbranchsi4_real_ge): Likewise.
38702 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
38703 (sub<mode>3_virt): Likewise.
38704 (cbranchqi4_virt): Likewise.
38705 (cbranchhi4_virt): Likewise.
38706 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
38707 always use '[reg+imm]' even when imm is zero.
38708 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
38709 (rl78_general_operand): New.
38710 (rl78_nonimmediate_operand): New.
38711 (rl78_nonfar_operand): Use them.
38712 (rl78_nonfar_nonimm_operand): Likewise.
38713 (rl78_stack_based_mem): Fix.
38714 * config/rl78/constraints.md (Ibqi): New.
38719 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
38720 (iorqi3): Likewise.
38721 (xorqi3): Likewise.
38722 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
38724 * config/rl78/constrains (Qs8): New constraint.
38725 * config/rl78/rl78.c (rl78_flags_already_set): New function.
38726 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
38727 * config/rl78/rl78-real.md (update_Z): New attribute.
38728 Update patterns to set it.
38729 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
38730 shorter compare and branch sequence can be used.
38731 (cbranchhi4_real): Likewise.
38732 (cbranchhi4_real_inverted): Likewise.
38734 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
38735 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
38737 * config/rl78/rl78.c (rl78_get_name_encoding): New.
38738 (rl78_option_override): Allow -mes0 only if C.
38739 (characterize_address): Support subregs of symbol_refs.
38740 (rl78_addr_space_address_mode): Move. Add __near.
38741 (rl78_far_p): Likewise.
38742 (rl78_addr_space_pointer_mode): Likewise.
38743 (rl78_as_legitimate_address): Likewise.
38744 (rl78_addr_space_subset_p): Likewise.
38745 (rl78_addr_space_convert): Likewise.
38746 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
38747 symbols with -mes0.
38748 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
38750 (rl78_alloc_physical_registers_op1): Change logic to prefer
38751 symbol[BC] addressing.
38752 (frodata_section): New.
38753 (rl78_asm_init_sections): Initialize it.
38754 (rl78_select_section): Put __far readonly symbols in .frodata.
38755 (rl78_make_type_far): New.
38756 (rl78_insert_attributes): Force all readonly symbols to be
38758 (rl78_asm_out_integer): New.
38759 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
38760 * config/rl78/rl78.opt (-mes0): New.
38762 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
38763 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
38764 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
38765 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
38766 (rl78_saddr_p): New.
38767 (rl78_output_aligned_common): New.
38768 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
38769 (rl78_handle_saddr_attribute): New.
38770 (rl78_handle_naked_attribute): New.
38771 (rl78_attribute_table): Add saddr.
38772 (rl78_print_operand_1): Don't print '!' on saddr operands.
38773 (rl78_print_operand_1): Strip encodings.
38775 (rl78_strip_name_encoding): New.
38776 (rl78_attrlist_to_encoding): New.
38777 (rl78_encode_section_info): New.
38778 (rl78_asm_init_sections): New.
38779 (rl78_select_section): New.
38780 (rl78_output_labelref): New.
38781 (rl78_output_aligned_common): New.
38782 (rl78_asm_out_integer): New.
38783 (rl78_asm_ctor_dtor): New.
38784 (rl78_asm_constructor): New.
38785 (rl78_asm_destructor): New.
38787 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
38788 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
38789 (transcode_memory_rtx): Update.
38790 (rl78_expand_epilogue): Use A_REG instead of 0.
38792 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
38794 * config/arm/arm-protos.h (struct tune_params): New field
38795 sched_autopref_queue_depth.
38796 * config/arm/arm.c (sched-int.h): Include header.
38797 (arm_first_cycle_multipass_dfa_lookahead_guard,)
38798 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
38799 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
38800 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
38801 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
38802 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
38803 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
38804 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
38805 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
38806 * config/arm/t-arm (arm.o): Update.
38807 * haifa-sched.c (update_insn_after_change): Update.
38808 (rank_for_schedule): Use auto-prefetcher model, if requested.
38809 (autopref_multipass_init): New static function.
38810 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
38811 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
38812 variable for debug dumps.
38813 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
38814 (autopref_multipass_dfa_lookahead_guard): New global function that
38815 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
38816 (init_h_i_d): Update.
38817 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
38818 * sched-int.h (enum autopref_multipass_data_status): New const enum.
38819 (autopref_multipass_data_): Structure for auto-prefetcher data.
38820 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
38821 (struct _haifa_insn_data:autopref_multipass_data): New field.
38822 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
38823 (autopref_multipass_dfa_lookahead_guard): Declare.
38825 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
38827 * rtlanal.c (get_base_term): Handle SCRATCH.
38829 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
38831 * config/aarch64/aarch64.c
38832 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
38833 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
38835 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
38836 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
38838 2015-01-17 Alan Modra <amodra@gmail.com>
38840 * cprop.c (do_local_cprop): Disallow replacement of fixed
38843 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38846 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
38849 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
38851 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
38852 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
38854 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38856 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
38857 * config/arm/thumb1.md: ... Here.
38859 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
38861 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
38862 TImode for TARGET_32BIT.
38864 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
38866 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
38867 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
38869 (rs6000_abi_word_mode): New function.
38871 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
38873 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
38874 instead of UNITS_PER_WORD to describe the size of stack slots.
38876 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
38878 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
38879 as rs6000_promote_function_mode. Move comment to there.
38880 (rs6000_promote_function_mode): New function.
38882 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
38884 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
38885 -mpowerpc64 is active.
38887 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
38889 PR middle-end/64353
38890 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
38893 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
38895 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
38896 introduced in revision 219724.
38898 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38899 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38902 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
38903 destination is not a GP reg.
38904 (*movdi_aarch64): Likewise.
38906 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
38909 * config/rs6000/default64.h: Revert ISA change.
38911 2015-01-16 Richard Biener <rguenther@suse.de>
38913 PR middle-end/64614
38914 * tree-ssa-uninit.c: Include tree-cfg.h.
38915 (MAX_SWITCH_CASES): New define.
38916 (convert_control_dep_chain_into_preds): Handle switch statements.
38917 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
38918 (normalize_one_pred_1): Do not split bit-manipulations.
38921 2015-01-16 Richard Biener <rguenther@suse.de>
38923 PR tree-optimization/64568
38924 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
38925 complex load rewriting for TARGET_MEM_REFs.
38927 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
38929 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
38931 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
38934 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
38936 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
38937 (aarch64_lra_p): Remove.
38939 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
38942 * ipa-chkp.h (chkp_instrumentable_p): New.
38943 * ipa-chkp.c: Include tree-inline.h.
38944 (chkp_instrumentable_p): New.
38945 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
38946 Fix processing of not instrumentable functions.
38947 (chkp_versioning): Use chkp_instrumentable_p. Warn about
38948 not instrumentable functions.
38949 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
38950 chkp_instrumentable_p.
38951 * tree-inline.h (copy_forbidden): New.
38952 * tree-inline.c (copy_forbidden): Not static anymore.
38954 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
38956 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
38959 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
38961 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
38962 type OP_OUT to OP_INOUT.
38964 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
38966 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
38967 (high x) y) to y if x and y have the same base.
38969 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
38971 * config/arm/cortex-a57.md: New.
38972 * config/aarch64/aarch64.md: Include it.
38973 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
38974 * config/aarch64/aarch64-tune.md: Regenerate.
38976 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
38979 * ccmp.c (expand_ccmp_next): New function.
38980 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
38981 and compare insn sequence.
38982 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
38983 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
38984 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
38985 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
38986 (*ccmp_ior): Changed to ccmp_ior<mode>.
38987 (cmp<mode>): New pattern.
38988 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
38990 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
38992 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
38994 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
38995 _mm256_bsrli_epi128): New.
38996 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
38998 2015-01-15 Jiong Wang <jiong.wang@arm.com>
39000 * expmed.c (store_bit_field_using_insv): Improve warning message.
39001 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
39003 2015-01-15 Jiong Wang <jiong.wang@arm.com>
39005 PR rtl-optimization/64011
39006 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
39007 there is partial overflow.
39009 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
39011 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
39013 (nds32_expand_epilogue_v3pop): Likewise.
39014 * config/nds32/nds32.md (sibcall): Define this for sibling call
39016 (sibcall_register): Likewise.
39017 (sibcall_immediate): Likewise.
39018 (sibcall_value): Likewise.
39019 (sibcall_value_register): Likewise.
39020 (sibcall_value_immediate): Likewise.
39021 (sibcall_epilogue): Likewise.
39022 (epilogue): Pass false to indicate this is not a sibcall epilogue.
39023 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
39024 (nds32_expand_epilogue_v3pop): Likewise.
39026 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
39028 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
39029 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
39030 (return_internal): New.
39031 (return): Define this named pattern.
39032 (simple_return): Define this named pattern.
39033 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
39034 pattern instead of unspec_volatile_func_return.
39035 (nds32_expand_epilogue_v3pop): Likewise.
39036 (nds32_can_use_return_insn): New function.
39038 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
39040 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
39041 * config/nds32/nds32.md (pop25return): New.
39042 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
39043 pop25return pattern.
39045 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
39047 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
39048 -mforbid-fp-as-gp, and -mex9 options.
39050 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
39052 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
39053 remove -mgp-direct option.
39055 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
39057 * doc/invoke.texi (--param early-inlining-insns): Update default value.
39058 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
39060 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
39062 * ipa-inline.c (inline_small_functions): Work around hints
39065 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
39068 * doc/invoke.texi (Option Summary): Document new Nios II
39070 (Nios II Options): Likewise.
39071 * config/nios2/nios2.opt: Add -mgpopt= option support.
39072 Modify existing -mgpopt and -mno-gpopt options to be aliases.
39073 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
39074 * config/nios2/nios2.c (nios2_option_override): Adjust
39075 -mgpopt defaulting.
39076 (nios2_in_small_data_p): Return true for explicit small data
39077 sections even with -G0.
39078 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
39081 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
39084 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
39086 (inline_call): Fix removal of aliases.
39088 2015-01-15 Jakub Jelinek <jakub@redhat.com>
39090 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
39091 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
39092 * opts.c (common_handle_option): Add -fsanitize=vptr.
39093 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
39094 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
39095 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
39096 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
39097 (ubsan_expand_vptr_ifn): New prototype.
39098 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
39099 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
39100 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
39101 expand_LOOP_VECTORIZED): Make argument nameless, remove
39103 (expand_UBSAN_VPTR): New function.
39104 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
39106 (UBSAN_VPTR): New internal function.
39107 * sanopt.c (tree_map_traits): Renamed to ...
39108 (sanopt_tree_map_traits): ... this.
39109 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
39110 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
39111 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
39112 (maybe_optimize_ubsan_vptr_ifn): New function.
39113 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
39114 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
39116 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
39117 internal calls like pure functions for aliasing, even when they
39118 have other side-effects that prevent making them ECF_PURE.
39119 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
39120 (ubsan_expand_vptr_ifn): New function.
39122 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
39124 PR rtl-optimization/64110
39125 * stmt.c (parse_output_constraint): Process '^' and '$'.
39126 (parse_input_constraint): Ditto.
39127 * lra-constraints.c (process_alt_operands): Process the new
39129 * ira-costs.c (record_reg_classes): Process the new constraint
39131 * genoutput.c (indep_constraints): Add '^' and '$'.
39132 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
39133 * doc/md.texi: Add description of the new constraints.
39135 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
39136 Bernd Schmidt <bernds@codesourcery.com>
39137 Cesar Philippidis <cesar@codesourcery.com>
39138 James Norris <jnorris@codesourcery.com>
39139 Tom de Vries <tom@codesourcery.com>
39140 Ilmir Usmanov <i.usmanov@samsung.com>
39141 Dmitry Bocharnikov <dmitry.b@samsung.com>
39142 Evgeny Gavrin <e.gavrin@samsung.com>
39143 Jakub Jelinek <jakub@redhat.com>
39145 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
39146 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
39147 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
39148 New function types.
39149 * builtins.c: Include "gomp-constants.h".
39150 (expand_builtin_acc_on_device): New function.
39151 (expand_builtin, is_inexpensive_builtin): Handle
39152 BUILT_IN_ACC_ON_DEVICE.
39153 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
39155 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
39157 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
39158 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
39159 i386/intelmic-offload.h.
39160 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
39161 to libgomp and its dependencies.
39162 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
39163 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
39164 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
39165 * config/ia64/hpux.h (LIB_SPEC): Likewise.
39166 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
39167 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
39168 * doc/generic.texi: Update for OpenACC changes.
39169 * doc/gimple.texi: Likewise.
39170 * doc/invoke.texi: Likewise.
39171 * doc/sourcebuild.texi: Likewise.
39172 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
39173 GF_OMP_FOR_KIND_OACC_LOOP.
39174 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
39175 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
39176 GF_OMP_TARGET_KIND_OACC_UPDATE,
39177 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
39179 * gimple.c: Update comments for OpenACC changes.
39180 * gimple.def: Likewise.
39181 * gimple.h: Likewise.
39182 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
39183 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
39184 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
39185 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
39186 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
39188 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
39189 * gimplify.c: Include "gomp-constants.h".
39190 Update comments for OpenACC changes.
39191 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
39192 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
39193 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
39194 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
39195 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
39196 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
39197 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
39198 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
39199 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
39201 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
39202 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
39203 OMP_CLAUSE_SET_MAP_KIND.
39204 (gimplify_oacc_cache): New function.
39205 (gimplify_omp_for): Handle OACC_LOOP.
39206 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
39208 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
39209 OACC_EXIT_DATA, OACC_UPDATE.
39210 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
39211 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
39212 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
39213 (gimplify_body): Consider flag_openacc next to flag_openmp.
39214 * lto-streamer-out.c: Include "gomp-constants.h".
39215 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
39216 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
39217 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
39218 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
39219 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
39220 (BUILT_IN_ACC_ON_DEVICE): New builtins.
39221 * omp-low.c: Include "gomp-constants.h".
39222 Update comments for OpenACC changes.
39223 (struct omp_context): Add reduction_map, gwv_below, gwv_this
39225 (extract_omp_for_data, use_pointer_for_field, install_var_field)
39226 (new_omp_context, delete_omp_context, scan_sharing_clauses)
39227 (create_omp_child_function, scan_omp_for, scan_omp_target)
39228 (check_omp_nesting_restrictions, lower_reduction_clauses)
39229 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
39230 Update for OpenACC changes.
39231 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
39232 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
39233 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
39234 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
39235 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
39236 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
39238 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
39239 Handle GF_OMP_FOR_KIND_OACC_LOOP.
39240 (expand_omp_target, lower_omp_target): Handle
39241 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
39242 GF_OMP_TARGET_KIND_OACC_UPDATE,
39243 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
39244 GF_OMP_TARGET_KIND_OACC_DATA.
39245 (pass_expand_omp::execute, execute_lower_omp)
39246 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
39248 (offload_symbol_decl): New variable.
39249 (oacc_get_reduction_array_id, oacc_max_threads)
39250 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
39251 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
39252 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
39253 (oacc_gimple_assign, oacc_initialize_reduction_data)
39254 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
39256 (is_targetreg_ctx): Remove function.
39257 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
39258 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
39259 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
39260 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
39261 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
39262 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
39263 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
39264 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
39265 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
39266 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
39267 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
39268 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
39269 * tree-core.h: Update comments for OpenACC changes.
39270 (enum omp_clause_map_kind): Remove.
39271 (struct tree_omp_clause): Change type of map_kind member from enum
39272 omp_clause_map_kind to unsigned char.
39273 * tree-inline.c: Update comments for OpenACC changes.
39274 * tree-nested.c: Likewise. Include "gomp-constants.h".
39275 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
39276 (convert_tramp_reference_stmt, convert_gimple_call): Update for
39277 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
39278 OMP_CLAUSE_SET_MAP_KIND.
39279 * tree-pretty-print.c: Include "gomp-constants.h".
39280 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
39281 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
39282 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
39283 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
39284 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
39285 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
39286 instead of OMP_CLAUSE_MAP_*.
39287 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
39288 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
39289 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
39290 * tree-streamer-in.c: Include "gomp-constants.h".
39291 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
39292 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
39293 * tree-streamer-out.c: Include "gomp-constants.h".
39294 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
39296 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
39297 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
39298 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
39299 * tree.c (omp_clause_num_ops): Update accordingly.
39300 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
39302 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
39303 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
39304 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
39305 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
39306 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
39307 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
39308 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
39309 (OMP_CLAUSE_SET_MAP_KIND): New macro.
39310 * varpool.c (varpool_node::get_create): Consider flag_openacc next
39312 * config/i386/intelmic-offload.h: New file.
39313 * config/nvptx/offload.h: Likewise.
39315 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
39317 * explow.h: Remove duplicate contents.
39318 * dojump.h: Likewise.
39320 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
39322 * arm.c (arm_xgene_tune): Add default initializer for instruction
39325 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
39329 * ipa.c (symbol_table::remove_unreachable_nodes):
39330 Do not put abstract origins into boundary.
39332 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
39334 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
39335 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
39337 2015-01-15 Steve Ellcey <sellcey@mips.com>
39339 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
39340 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
39341 builtins.def, and chkp-builtins.def.
39343 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
39345 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
39348 2015-01-15 Richard Biener <rguenther@suse.de>
39350 PR tree-optimization/61743
39351 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
39352 information on PHIs for some simple cases.
39354 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
39356 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
39358 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
39359 * config/arm/arm-cores.def (xgene1): New entry.
39360 * config/arm/arm-tables.opt: Regenerate.
39361 * config/arm/arm-tune.md: Regenerate.
39362 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
39364 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
39366 * tree-if-conv.c: Include hash-map.h.
39367 (aggressive_if_conv): New variable.
39368 (fold_build_cond_expr): Add simplification of non-zero condition.
39369 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
39370 destination block is not always executed.
39371 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
39372 than two predecessors if AGGRESSIVE_IF_CONV is true.
39373 (if_convertible_stmt_p): Fix commentary.
39374 (all_preds_critical_p): New function.
39375 (has_pred_critical_p): New function.
39376 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
39377 BB can have more than two predecessors and all incoming edges can be
39379 (predicate_bbs): Skip predication for loop exit block, use build2_loc
39380 to compute predicate for true edge.
39381 (find_phi_replacement_condition): Delete this function.
39382 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
39383 Allow interchange PHI arguments if EXTENDED is false.
39384 Change check that block containing reduction statement candidate
39385 is predecessor of phi-block since phi may have more than two arguments.
39386 (phi_args_hash_traits): New helper structure.
39387 (struct phi_args_hash_traits): New type.
39388 (phi_args_hash_traits::hash): New function.
39389 (phi_args_hash_traits::equal_keys): New function.
39390 (gen_phi_arg_condition): New function.
39391 (predicate_scalar_phi): Add handling of phi nodes with more than two
39392 arguments, delete COND and TRUE_BB arguments, insert body of
39393 find_phi_replacement_condition to predicate ordinary phi nodes.
39394 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
39395 delete call of find_phi_replacement_condition and invoke
39396 predicate_scalar_phi with two arguments.
39397 (insert_gimplified_predicates): Add assert that non-predicated block
39398 don't have statements to insert.
39399 (ifcvt_split_critical_edges): New function.
39400 (ifcvt_split_def_stmt): Likewise.
39401 (ifcvt_walk_pattern_tree): Likewise.
39402 (stmt_is_root_of_bool_pattern): Likewise.
39403 (ifcvt_repair_bool_pattern): Likewise.
39404 (ifcvt_local_dce): Likewise.
39405 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
39406 is copy of inner or outer loop force_vectorize field, invoke
39407 ifcvt_split_critical_edges, ifcvt_local_dce and
39408 ifcvt_repair_bool_pattern for aggressive if-conversion.
39410 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
39412 * config/aarch64/aarch64.md: Include xgene1.md.
39413 * config/aarch64/xgene1.md: New file.
39415 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
39417 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
39418 xgene1 (APM XGene-1) core definition.
39419 * config/aarch64/aarch64.c: Add cost tables for APM XGene-1
39420 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
39421 * doc/invoke.texi: Document -mcpu=xgene1.
39423 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
39425 * dojump.h: New header file.
39426 * explow.h: Likewise.
39427 * expr.h: Remove includes.
39428 Move expmed.c prototypes to expmed.h.
39429 Move dojump.c prototypes to dojump.h.
39430 Move alias.c prototypes to alias.h.
39431 Move explow.c prototypes to explow.h.
39432 Move calls.c prototypes to calls.h.
39433 Move emit-rtl.c prototypes to emit-rtl.h.
39434 Move varasm.c prototypes to varasm.h.
39435 Move stmt.c prototypes to stmt.h.
39436 (saved_pending_stack_adjust): Move to dojump.h.
39437 (adjust_address): Move to explow.h.
39438 (adjust_address_nv): Move to emit-rtl.h.
39439 (adjust_bitfield_address): Likewise.
39440 (adjust_bitfield_address_size): Likewise.
39441 (adjust_bitfield_address_nv): Likewise.
39442 (adjust_automodify_address_nv): Likewise.
39443 * explow.c (expr_size): Move to expr.c.
39444 (int_expr_size): Likewise.
39445 (tree_expr_size): Likewise.
39446 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39447 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
39448 * genemit.c (main): Generate includes statistics.h, real.h,
39449 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
39451 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
39452 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
39453 explow.h, emit-rtl.h, stmt.h.
39454 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
39455 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
39456 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
39457 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
39458 emit-rtl.h, varasm.h, stmt.h.
39459 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
39460 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
39461 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
39462 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
39463 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
39464 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
39465 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
39466 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
39467 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
39468 tm.h tree.h varasm.h vec.h wide-int.h.
39469 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
39470 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
39471 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
39472 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
39473 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
39474 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
39475 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
39476 * loop-iv.c: Likewise.
39477 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
39478 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
39479 statistics.h stmt.h tree.h varasm.h wide-int.h.
39480 * lra-constraints.c: Likewise.
39481 * lra-eliminations.c: Likewise.
39482 * lra-lives.c: Likewise.
39483 * lra-remat.c: Likewise.
39484 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
39485 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
39486 statistics.h stmt.h tree.h varasm.h wide-int.h.
39487 * hw-doloop.c: Likewise.
39488 * ira-color.c: Likewise.
39489 * ira-emit.c: Likewise.
39490 * loop-doloop.c: Likewise.
39491 * loop-invariant.c: Likewise.
39492 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
39493 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
39494 statistics.h stmt.h tree.h varasm.h wide-int.h.
39495 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
39496 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
39497 statistics.h stmt.h tree.h varasm.h wide-int.h.
39498 * combine-stack-adj.c: Likewise.
39501 * ifcvt.c: Likewise.
39502 * ira-costs.c: Likewise.
39503 * jump.c: Likewise.
39504 * lra-coalesce.c: Likewise.
39505 * lra-spills.c: Likewise.
39506 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
39507 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
39508 stmt.h varasm.h wide-int.h.
39509 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
39510 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
39512 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
39513 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
39514 statistics.h stmt.h varasm.h wide-int.h.
39515 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
39516 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
39517 varasm.h wide-int.h.
39518 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
39519 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
39520 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
39521 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
39522 statistics.h stmt.h.
39523 * config/tilepro/tilepro.c: Likewise.
39524 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
39525 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
39526 * config/pdp11/pdp11.c: Likewise.
39527 * config/xtensa/xtensa.c: Likewise.
39528 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
39529 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
39531 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39532 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
39533 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
39534 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39535 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
39536 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
39537 * rtl-chkp.c: Likewise.
39538 * tree-chkp-opt.c: Likewise.
39539 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
39540 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
39541 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
39542 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39543 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
39544 statistics.h stmt.h.
39545 * tree-vect-data-refs.c: Likewise.
39546 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
39547 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
39548 rtl.h statistics.h stmt.h varasm.h.
39549 * internal-fn.c: Likewise.
39550 * ipa-icf-gimple.c: Likewise.
39551 * lto-section-out.c: Likewise.
39552 * tree-data-ref.c: Likewise.
39553 * tree-nested.c: Likewise.
39554 * tree-outof-ssa.c: Likewise.
39555 * tree-predcom.c: Likewise.
39556 * tree-pretty-print.c: Likewise.
39557 * tree-scalar-evolution.c: Likewise.
39558 * tree-ssa-strlen.c: Likewise.
39559 * tree-vect-loop.c: Likewise.
39560 * tree-vect-patterns.c: Likewise.
39561 * tree-vect-slp.c: Likewise.
39562 * tree-vect-stmts.c: Likewise.
39563 * tsan.c: Likewise.
39564 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39565 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
39567 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
39568 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
39569 statistics.h stmt.h varasm.h.
39570 * loop-unroll.c: Likewise.
39571 * ubsan.c: Likewise.
39572 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
39573 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
39575 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39576 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
39577 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
39578 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
39579 statistics.h stmt.h.
39580 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
39581 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
39582 statistics.h stmt.h varasm.h.
39583 * gimple-match-head.c: Likewise.
39584 * lto-cgraph.c: Likewise.
39585 * lto-section-in.c: Likewise.
39586 * lto-streamer-in.c: Likewise.
39587 * lto-streamer-out.c: Likewise.
39588 * tree-affine.c: Likewise.
39589 * tree-cfg.c: Likewise.
39590 * tree-cfgcleanup.c: Likewise.
39591 * tree-if-conv.c: Likewise.
39592 * tree-into-ssa.c: Likewise.
39593 * tree-ssa-alias.c: Likewise.
39594 * tree-ssa-copyrename.c: Likewise.
39595 * tree-ssa-dse.c: Likewise.
39596 * tree-ssa-forwprop.c: Likewise.
39597 * tree-ssa-live.c: Likewise.
39598 * tree-ssa-math-opts.c: Likewise.
39599 * tree-ssa-pre.c: Likewise.
39600 * tree-ssa-sccvn.c: Likewise.
39601 * tree-tailcall.c: Likewise.
39602 * tree-vect-generic.c: Likewise.
39603 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39604 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
39605 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39606 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
39607 * varasm.c: Likewise.
39608 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39609 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
39611 * init-regs.c: Likewise.
39613 * omp-low.c: Likewise.
39614 * stack-ptr-mod.c: Likewise.
39615 * tree-ssa-reassoc.c: Likewise.
39616 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39617 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
39619 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39620 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
39621 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39622 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
39623 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39624 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
39625 * tree-ssa-phiopt.c: Likewise.
39626 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39627 fixed-value.h hashtab.h real.h statistics.h stmt.h.
39628 * config/fr30/fr30.c: Likewise.
39629 * config/frv/frv.c: Likewise.
39630 * expr.c: Likewise.
39631 * final.c: Likewise.
39632 * optabs.c: Likewise.
39633 * passes.c: Likewise.
39634 * simplify-rtx.c: Likewise.
39635 * stmt.c: Likewise.
39636 * toplev.c: Likewise.
39637 * var-tracking.c: Likewise.
39638 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39639 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
39640 * lower-subreg.c: Likewise.
39641 * postreload-gcse.c: Likewise.
39643 * reginfo.c: Likewise.
39644 * store-motion.c: Likewise.
39645 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39646 fixed-value.h hashtab.h real.h stmt.h varasm.h.
39647 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39648 fixed-value.h hashtab.h statistics.h stmt.h.
39649 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39650 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
39651 * except.c: Likewise.
39652 * explow.c: Likewise.
39653 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39654 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
39656 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39657 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
39658 * tree-ssa-structalias.c: Likewise.
39659 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39660 fixed-value.h insn-config.h real.h statistics.h.
39661 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39662 fixed-value.h insn-config.h real.h statistics.h stmt.h.
39663 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39664 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
39665 * cfgbuild.c: Likewise.
39666 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39667 fixed-value.h real.h rtl.h statistics.h stmt.h.
39668 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39669 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
39670 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39671 fixed-value.h real.h statistics.h stmt.h.
39672 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39673 fixed-value.h real.h statistics.h stmt.h varasm.h.
39674 * cprop.c: Likewise.
39675 * modulo-sched.c: Likewise.
39676 * postreload.c: Likewise.
39677 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
39678 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
39679 statistics.h stmt.h varasm.h.
39680 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
39681 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
39682 rtl.h statistics.h stmt.h varasm.h.
39683 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
39684 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
39686 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
39687 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
39689 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
39690 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
39692 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
39693 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
39694 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
39695 function.h real.h statistics.h stmt.h varasm.h.
39696 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
39697 insn-config.h real.h statistics.h stmt.h.
39698 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
39699 statistics.h stmt.h.
39700 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
39701 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
39702 statistics.h stmt.h varasm.h.
39703 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
39704 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
39705 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
39706 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
39707 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
39708 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
39709 statistics.h stmt.h varasm.h.
39710 * ipa-polymorphic-call.c: Likewise.
39711 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
39712 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
39713 statistics.h stmt.h.
39714 * config/c6x/c6x.c: Likewise.
39715 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
39716 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
39717 statistics.h stmt.h varasm.h.
39718 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
39719 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
39721 * ipa-split.c: Likewise.
39722 * tree-eh.c: Likewise.
39723 * tree-ssa-dce.c: Likewise.
39724 * tree-ssa-loop-niter.c: Likewise.
39725 * tree-vrp.c: Likewise.
39726 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
39727 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
39729 * config/nds32/nds32-fp-as-gp.c: Likewise.
39730 * config/nds32/nds32-intrinsic.c: Likewise.
39731 * config/nds32/nds32-isr.c: Likewise.
39732 * config/nds32/nds32-md-auxiliary.c: Likewise.
39733 * config/nds32/nds32-memory-manipulation.c: Likewise.
39734 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
39735 * config/nds32/nds32-predicates.c: Likewise.
39736 * config/nds32/nds32.c: Likewise.
39737 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
39738 fixed-value.h hashtab.h real.h statistics.h.
39739 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
39740 fixed-value.h hashtab.h real.h statistics.h stmt.h.
39741 * config/arm/arm.c: Likewise.
39742 * config/avr/avr.c: Likewise.
39743 * config/bfin/bfin.c: Likewise.
39744 * config/h8300/h8300.c: Likewise.
39745 * config/i386/i386.c: Likewise.
39746 * config/ia64/ia64.c: Likewise.
39747 * config/iq2000/iq2000.c: Likewise.
39748 * config/m32c/m32c.c: Likewise.
39749 * config/m32r/m32r.c: Likewise.
39750 * config/m68k/m68k.c: Likewise.
39751 * config/mcore/mcore.c: Likewise.
39752 * config/mep/mep.c: Likewise.
39753 * config/mips/mips.c: Likewise.
39754 * config/mn10300/mn10300.c: Likewise.
39755 * config/moxie/moxie.c: Likewise.
39756 * config/pa/pa.c: Likewise.
39757 * config/rl78/rl78.c: Likewise.
39758 * config/rx/rx.c: Likewise.
39759 * config/s390/s390.c: Likewise.
39760 * config/sh/sh.c: Likewise.
39761 * config/sparc/sparc.c: Likewise.
39762 * config/spu/spu.c: Likewise.
39763 * config/stormy16/stormy16.c: Likewise.
39764 * config/v850/v850.c: Likewise.
39765 * config/vax/vax.c: Likewise.
39766 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
39767 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
39768 * config/msp430/msp430.c: Likewise.
39769 * predict.c: Likewise.
39770 * value-prof.c: Likewise.
39771 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
39772 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
39773 * config/microblaze/microblaze.c: Likewise.
39774 * config/nios2/nios2.c: Likewise.
39775 * config/rs6000/rs6000.c: Likewise.
39776 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
39777 insn-config.h real.h rtl.h statistics.h stmt.h.
39778 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
39779 insn-config.h real.h statistics.h stmt.h.
39780 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
39781 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
39782 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
39783 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
39784 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
39785 fixed-value.h real.h statistics.h stmt.h.
39786 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
39787 fixed-value.h statistics.h stmt.h.
39788 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
39791 2015-01-15 Jakub Jelinek <jakub@redhat.com>
39793 * gengtype.c (create_user_defined_type): Workaround
39794 -Wmaybe-uninitialized false positives.
39795 * cse.c (fold_rtx): Likewise.
39796 * loop-invariant.c (gain_for_invariant): Likewise.
39798 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
39800 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
39801 set the memory attributes in all cases but clear MEM_EXPR if need be.
39803 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
39805 PR tree-optimization/64434
39806 * cfgexpand.c (reorder_operands): New function.
39807 (expand_gimple_basic_block): Insert call of reorder_operands if
39810 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
39812 * config/mips/micromips.md (*swp): Remove explicit parallel.
39813 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
39814 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
39815 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
39816 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
39817 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
39818 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
39819 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
39820 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
39821 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
39822 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
39823 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
39824 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
39825 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
39826 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
39827 (mips_wrdsp): Likewise.
39828 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
39830 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
39831 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
39832 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
39833 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
39834 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
39835 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
39836 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
39837 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
39838 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
39840 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
39842 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
39843 (mips_print_operand): Support 'y' to print exact log2 in decimal
39845 * config/mips/mips.h (ISA_HAS_LSA): New define.
39846 (ISA_HAS_DLSA): Likewise.
39847 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
39848 * config/mips/predicates.md (const_immlsa_operand): New predicate.
39850 2015-01-15 Martin Liska <mliska@suse.cz>
39853 * optc-save-gen.awk: Add support for array types.
39855 2015-01-15 Richard Biener <rguenther@suse.de>
39857 PR middle-end/64365
39858 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
39859 for MEM_REF access functions with the same base can never partially
39862 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
39864 * common.opt: New option -fstack-protector-explicit.
39865 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
39866 (stack_protect_decl_phase): Handle stack_protect attribute for
39867 explicit stack protection requests.
39868 (expand_used_vars): Similarly.
39869 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
39870 * doc/extend.texi: Add documentation for "stack_protect" attribute.
39871 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
39873 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
39876 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
39878 (sh_extending_set_of_reg): New struct.
39879 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
39880 sh_remove_reg_dead_or_unused_notes): New Declarations.
39881 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
39882 sh_find_extending_set_of_reg, sh_split_tst_subregs,
39883 sh_extending_set_of_reg::use_as_extended_reg): New functions.
39884 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
39885 convert to insn_and_split and use new function sh_split_tst_subregs.
39887 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
39889 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
39891 (Optimization Options): Move -fuse-ld documentation to...
39892 (Link Options): ...here.
39894 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
39896 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
39898 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
39899 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
39900 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
39901 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
39902 instead of ZR for the memory operand of LL/SC.
39903 (compare_and_swap_12, sync_add<mode>): Likewise.
39904 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
39905 (sync_new_<optab>_12, sync_nand_12): Likewise.
39906 (sync_old_nand_12, sync_new_nand_12): Likewise.
39907 (sync_sub<mode>, sync_old_add<mode>): Likewise.
39908 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
39909 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
39910 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
39911 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
39912 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
39913 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
39914 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
39915 * doc/md.texi (ZC): Update description.
39917 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
39919 * builtins.c (expand_builtin_atomic_exchange): Remove error when
39920 memory model is CONSUME.
39921 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
39922 expand_builtin_atomic_store): Change invalid memory model errors to
39924 (expand_builtin_atomic_clear): Change invalid model errors to warnings
39925 and issue warning for CONSUME.
39927 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
39929 * lto-cgraph: Update function comments for
39930 lto_symtab_encoder_encode_*.
39932 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
39934 * Makefile.in (site.exp): Do not set ENABLE_LTO.
39936 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
39938 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
39939 * lto-cgraph.c (select_what_to_stream): Remove argument, use
39940 lto_stream_offload_p instead.
39941 * lto-streamer.h (select_what_to_stream): Remove argument.
39942 * passes.c (ipa_write_summaries): Likewise.
39943 * tree-pass.h (ipa_write_summaries): Likewise.
39945 2015-01-14 Richard Biener <rguenther@suse.de>
39947 PR tree-optimization/59354
39948 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
39949 groups larger than the slp group size as having gaps.
39951 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
39953 PR middle-end/59448
39954 * builtins.c (get_memmodel): Promote consume to acquire always.
39956 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
39959 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
39962 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
39965 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
39967 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
39968 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
39969 AVX512VBMI, as it implies AVX512BW.
39971 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
39974 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
39975 (vec_unpacks_hi_v16sf): Ditto.
39977 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39979 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
39982 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39984 * doc/invoke.texi (mapcs): Mention deprecation.
39985 (mapcs-frame): Likewise.
39987 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
39990 * config/arm/arm.c (callee_saved_reg_p): Define.
39991 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
39992 register is callee saved instead of !call_used_regs[reg].
39993 (thumb1_compute_save_reg_mask): Likewise.
39995 2015-01-14 Hale Wang <hale.wang@arm.com>
39997 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
40000 2015-01-14 Richard Biener <rguenther@suse.de>
40003 * tree-inline.c (insert_debug_decl_map): Check destination
40004 function MAY_HAVE_DEBUG_STMTS.
40005 (insert_init_debug_bind): Likewise.
40006 (insert_init_stmt): Remove redundant check.
40007 (remap_gimple_stmt): Drop debug stmts if the destination
40008 function has var-tracking assignments disabled.
40010 2015-01-14 Martin Liska <mliska@suse.cz>
40012 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
40013 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
40015 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40018 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
40019 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
40021 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
40023 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
40024 level from an ARCH; do not inject the default.
40025 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
40026 MIPS_ISA_LEVEL_SPEC.
40027 (MIPS_ISA_NAN2008_SPEC): Update comment.
40028 (BASE_DRIVER_SELF_SPECS): Likewise.
40029 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
40030 MIPS_DEFAULT_ISA_LEVEL_SPEC.
40031 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
40032 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
40033 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
40035 2015-01-14 Richard Biener <rguenther@suse.de>
40037 PR tree-optimization/64493
40038 PR tree-optimization/64495
40039 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
40040 assign the proper vectorized PHI to the inner loop exit PHIs.
40042 2015-01-14 Joey Ye <joey.ye@arm.com>
40044 * config/arm/arm.c (arm_compute_save_reg_mask):
40045 Do not save lr in case of tail call.
40046 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
40048 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
40050 * tree-vrp.c (check_array_ref): Emit more warnings
40051 for warn_array_bounds >= 2.
40052 * common.opt: New option -Warray-bounds=.
40053 * doc/invoke.texi: Document -Warray-bounds=.
40055 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
40057 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
40058 (mforbid-fp-as-gp): Remove.
40060 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
40061 (nds32_symbol_load_store_p): Remove.
40062 (nds32_fp_as_gp_check_available): Clean up implementation.
40063 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
40065 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
40066 fp-as-gp and ex9 cases.
40068 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
40070 * tree-profile.c (init_ic_make_global_vars): Drop workaround
40071 for bintuils bug 14342.
40072 (init_ic_make_global_vars): Likewise.
40073 (gimple_init_edge_profiler): Likewise.
40074 (gimple_gen_ic_func_profiler): Likewise.
40076 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
40078 * ipa-inline.c (inline_small_functions): Swap the operands in
40081 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
40084 * ipa-inline-analysis.c (node_growth_cache): Remove.
40085 (initialize_growth_caches): Do not initialize it.
40086 (free_growth_caches): Do not free it.
40087 (do_estimate_growth): Rename to ...
40088 (estimate_growth): ... this one; drop growth cache code.
40089 (growth_likely_positive): Always go the heuristics way.
40090 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
40091 (reset_edge_caches): Do not reset node growth.
40092 (heap_edge_removal_hook): Do not maintain cache.
40093 (inline_small_functions): Likewise; strenghten sanity check.
40094 (ipa_inline): Do not maintain caches.
40095 * ipa-inline.h (node_growth_cache): Remove.
40096 (do_estimate_growth): Remove to ...
40097 (estimate_growth): this one; remove inline version.
40098 (reset_node_growth_cache): Remove.
40100 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
40103 * ipa-inline.c (inline_small_functions): Update callee keys after
40104 resolving speculation
40105 (inline_small_functions): Always check monotonicity of the queue.
40107 2015-01-13 Marek Polacek <polacek@redhat.com>
40109 PR middle-end/64391
40110 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
40112 2015-01-13 Jakub Jelinek <jakub@redhat.com>
40114 PR rtl-optimization/64286
40115 * ree.c (combine_reaching_defs): Move part of comment earlier,
40116 remove !SCALAR_INT_MODE_P check.
40117 (add_removable_extension): Don't add vector mode
40118 extensions if all uses of the source register aren't the same
40121 2015-01-13 Renlin Li <renlin.li@arm.com>
40123 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
40124 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
40126 2015-01-13 Martin Liska <mliska@suse.cz>
40128 * ipa-icf.c (sem_function::equals_private): Call new functions
40129 cl_target_option_print_diff and cl_optimization_print_diff.
40130 * optc-save-gen.awk (cl_target_option_print_diff): New function.
40131 (cl_optimization_print_diff): Likewise.
40132 * opth-gen.awk: Likewise.
40134 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
40136 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
40137 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
40138 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
40139 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
40140 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
40141 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
40143 2015-01-13 Andrew Pinski <apinski@cavium.com>
40145 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
40146 instead of src mode.
40148 2015-01-13 Richard Biener <rguenther@suse.de>
40151 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
40154 2015-01-13 Andrew Pinski <apinski@cavium.com>
40156 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
40158 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
40160 2015-01-13 Jakub Jelinek <jakub@redhat.com>
40162 PR middle-end/63974
40163 * cfgexpand.c (expand_computed_goto): Don't call
40164 convert_memory_address here.
40166 2015-01-13 Richard Biener <rguenther@suse.de>
40168 PR tree-optimization/64406
40169 * tree-loop-distibution.c (pass_loop_distribution::execute):
40170 Reset the SCEV hashtable if we distributed anything.
40172 2015-01-13 Richard Biener <rguenther@suse.de>
40174 PR tree-optimization/64404
40175 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
40176 SLP types for CSEd loads.
40178 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
40180 PR tree-optimization/64436
40181 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
40182 merge of two symbolic numbers for a bitwise OR to ...
40183 (perform_symbolic_merge): This. Also fix computation of the range and
40184 end of the symbolic number corresponding to the result of a bitwise OR.
40186 2015-01-13 Richard Biener <rguenther@suse.de>
40188 PR tree-optimization/64568
40189 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
40190 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
40192 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
40194 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
40195 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
40197 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
40199 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
40200 target-specific symbol_ref flag.
40201 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
40202 resides in rodata section.
40203 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
40204 (nds32_encode_section_info): New function.
40206 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
40208 * config/nds32/nds32.md (call): Use pseudo instruction bal which
40209 clobbers TA_REGNUM if large code model is specified.
40210 (call_register): Likewise.
40211 (call_immediate): Likewise.
40212 (call_value): Likewise.
40213 (call_value_register): Likewise.
40214 (call_value_immediate): Likewise.
40216 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
40218 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
40219 (TARGET_CMODEL_MEDIUM): New macro.
40220 (TARGET_CMODEL_LARGE): New macro.
40221 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
40222 code model setting in assembly code.
40224 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
40226 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
40227 Remove MASK_GP_DIRECT flag.
40228 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
40229 one of the multilib default options.
40230 * config/nds32/nds32.opt (mgp-direct): Remove.
40231 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
40232 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
40234 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
40236 * config/nds32/nds32.opt (mcmodel): Add new option.
40237 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
40238 to describe code model.
40240 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
40243 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
40245 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
40247 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
40248 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
40249 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
40250 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
40251 __builtin_sh_set_fpscr.
40253 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
40255 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
40256 after a funtion name just to indicate it is a function.
40257 ([-fsanitize-undefined-trap-on-error]): Likewise.
40258 ([-fdbg-cnt=]): Likewise.
40259 ([-mmemcpy]): Likewise.
40260 ([-mflush-func]): Likewise.
40261 ([-msynci]): Likewise.
40263 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
40265 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
40268 2015-01-12 Jakub Jelinek <jakub@redhat.com>
40270 PR tree-optimization/64563
40271 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
40272 instead of != VR_VARYING.
40275 * config/i386/i386.c (ix86_expand_prologue): Add
40276 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
40278 PR tree-optimization/64454
40279 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
40280 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
40281 for signed or [0, op1 - 1] for unsigned modulo.
40282 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
40283 even if op1 does not satisfy integer_pow2p.
40286 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
40288 2015-01-12 Jeff Law <law@redhat.com>
40291 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
40292 (trunchiqi2, truncsihi2): Similarly.
40294 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
40295 rather than calling F.
40297 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
40299 * tsan.c (instrument_expr): Use force_gimple_operand.
40300 Use may_be_nonaddressable_p instead of is_gimple_addressable.
40302 2015-01-12 Richard Biener <rguenther@suse.de>
40304 PR tree-optimization/64530
40305 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
40308 2015-01-12 Richard Biener <rguenther@suse.de>
40310 PR middle-end/64357
40311 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
40314 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40316 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
40317 Cortex-A17 tuning parameters.
40318 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
40320 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40322 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
40323 * config/arm/arm.c (arm_macro_fusion_p): New function.
40324 (arm_macro_fusion_pair_p): Likewise.
40325 (TARGET_SCHED_MACRO_FUSION_P): Define.
40326 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
40327 (ARM_FUSE_NOTHING): Likewise.
40328 (ARM_FUSE_MOVW_MOVT): Likewise.
40329 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
40330 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
40331 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
40332 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
40333 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
40334 arm_cortex_a5_tune): Specify fuseable_ops value.
40336 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
40339 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
40340 test for PIE with copy reloc.
40341 * configure: Regenerated.
40343 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40345 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
40347 (arm_tls_descseq_addr): Likewise.
40348 (arm_gen_movmemqi): Likewise.
40349 (arm_expand_epilogue_apcs_frame): Likewise.
40350 (arm_expand_epilogue): Likewise.
40351 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
40354 2015-01-12 Martin Liska <mliska@suse.cz>
40357 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
40358 volatility for correct operands.
40360 2015-01-12 Martin Liska <mliska@suse.cz>
40362 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
40363 indication that a function is not leaf.
40364 (sem_function::compare_polymorphic_p): Likewise.
40366 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
40368 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
40369 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
40370 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
40371 fold-const.h, tree-check.h.
40373 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
40377 * ipa-inline.c (compute_uninlined_call_time,
40378 compute_inlined_call_time): Use counts for extra precision when
40380 (big_speedup_p): Fix formating.
40381 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
40382 (relative_time_benefit): Remove.
40383 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
40384 merge guessed and read profile paths.
40385 (inline_small_functions): Count only !optimize_size functions into
40386 initial size; be more lax about sanity check when profile is used;
40387 be sure to update inlined function profile when profile is read.
40389 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
40392 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
40393 cost when edge becomes direct.
40394 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
40395 is resolved or when introducing new speculation.
40397 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
40401 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
40402 '||' to fix typo issue.
40404 * tree.h (target_opts_for_fn): Check NULL_TREE since it can
40405 accept and return NULL.
40407 2015-01-12 Martin Liska <mliska@suse.cz>
40409 * cgraph.c (cgraph_edge::remove_callee): Move function to header
40410 file for being inlined.
40411 (cgraph_set_edge_callee): Delete.
40412 (cgraph_edge::redirect_callee): Move function to header file
40414 (cgraph_edge::make_direct): Use new function.
40415 (cgraph_edge::dump_edge_flags): New function created from
40416 static dump_edge_flags function.
40417 (cgraph_node::dump): Use new function.
40418 (cgraph_edge::verify_count_and_frequency): New function created
40419 from verify_edge_count_and_frequency.
40420 (cgraph_edge::verify_corresponds_to_fndecl): New function created
40421 from verify_edge_corresponds_to_fndecl.
40422 (verify_edge_corresponds_to_fndecl): Delete.
40423 (cgraph_node::verify_node): Use new function.
40424 * cgraph.h (cgraph_edge::set_callee): New function.
40425 (cgraph_edge::dump_edge_flags): Likewise.
40426 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
40428 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
40430 * ipa-utils.c (estimate_function_body_sizes): Do not
40431 free node params when called late with early=true.
40433 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
40435 * doc/md.texi (Instruction Patterns): Rewrite text for
40437 (Example): Likewise.
40439 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
40441 * doc/invoke.texi (Option Summary): Break long lines.
40442 [(-fdiagnostics-color)]: Put long literal in @smallexample
40444 [(-fsanitize-recover)]: Likewise.
40445 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
40446 [(-ffast-math)]: Likewise.
40447 [(--param max-inline-insns-recursive)]: Likewise.
40448 [(--param max-inline-recursive-depth)]: Likewise.
40449 [(-mno-text-section-literals)]: Likewise.
40451 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
40453 * doc/install.texi: Update for libgomp being renamed from "GNU
40454 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
40456 * doc/sourcebuild.texi: Likewise.
40458 2015-01-10 Anthony Green <green@moxielogic.com>
40460 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
40461 mul.x availability for moxiebox configuration.
40463 2015-01-09 Anthony Green <green@moxielogic.com>
40465 * config/moxie/moxie.md: Tabify assembly output.
40467 2015-01-09 Anthony Green <green@moxielogic.com>
40469 * config/moxie/moxie.md (CC_REG): Correct register definition.
40471 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
40473 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
40474 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
40477 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
40479 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
40481 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
40482 Jakub Jelinek <jakub@redhat.com>
40484 PR middle-end/64412
40485 * lto-streamer.h (lto_stream_offload_p): New declaration.
40486 * lto-streamer.c (lto_stream_offload_p): New variable.
40487 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
40488 at the same time as section_name_prefix.
40489 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
40490 if lto_stream_offload_p.
40491 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
40492 stream TREE_TARGET_OPTION if lto_stream_offload_p.
40493 (write_ts_function_decl_tree_pointers): Don't
40494 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
40495 * tree-streamer-in.c (unpack_value_fields): Don't stream
40496 TREE_TARGET_OPTION in if ACCEL_COMPILER.
40497 (lto_input_ts_function_decl_tree_pointers): Don't stream
40498 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
40499 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
40500 instead of section_name_prefix string comparisons.
40502 2015-01-09 Jakub Jelinek <jakub@redhat.com>
40504 PR rtl-optimization/64536
40505 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
40508 2015-01-09 Michael Collison <michael.collison@linaro.org>
40510 PR tree-optimization/64322
40511 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
40512 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
40514 2015-01-09 Tom de Vries <tom@codesourcery.com>
40516 PR rtl-optimization/64539
40517 * regcprop.c (kill_clobbered_values): Factor out of ...
40518 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
40519 instead of note_stores with kill_clobbered_value.
40521 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
40523 * ginclude/unwind-arm-common.h: Revert previous commit.
40525 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
40527 * config.gcc (arm*-*-freebsd*): New configuration.
40528 * config/arm/freebsd.h: New file.
40529 * config.host: Add extra components for arm*-*-freebsd*.
40530 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
40531 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
40533 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
40535 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
40537 * config/rs6000/t-rtems: Add e6500 multilibs.
40539 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
40541 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
40544 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
40546 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
40547 MULTILIB_EXCEPTIONS.
40549 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
40551 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
40552 MULTILIB_EXCEPTIONS.
40554 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
40556 * config/arm/t-rtems-eabi: Rename to...
40557 * config/arm/t-rtems: ...this.
40558 * config/arm/rtems-eabi.h: Rename to...
40559 * config/arm/rtems.h: ...this.
40560 * config.gcc (arm*-*-rtems*): Reflect changes above.
40562 2015-01-09 Richard Biener <rguenther@suse.de>
40564 PR tree-optimization/64410
40565 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
40567 (execute_update_addresses_taken): Deal with that.
40568 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
40569 loads/stores for complex variables.
40571 2015-01-09 Martin Liska <mliska@suse.cz>
40573 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
40575 (func_checker::compare_memory_operand): New function.
40576 (func_checker::compare_operand): Split case to newly
40578 (func_checker::compare_cst_or_decl): New function.
40579 (func_checker::compare_gimple_call): Identify
40581 (func_checker::compare_gimple_assign): Likewise.
40582 * ipa-icf-gimple.h: New function.
40584 2015-01-09 Martin Liska <mliska@suse.cz>
40587 * sreal.c (sreal::dump): Change unsigned format to signed for
40589 (sreal::to_double): Replace exp2 with scalbln.
40591 2015-01-09 Martin Liska <mliska@suse.cz>
40593 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
40594 * ipa-icf.c (sem_function::equals_private): Add support for target and
40595 (sem_item_optimizer::merge_classes): Remove redundant function
40596 optimization flags comparison.
40597 * tree.h (target_opts_for_fn): New function.
40599 2015-01-09 Tom de Vries <tom@codesourcery.com>
40601 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
40603 2015-01-09 Kito Cheng <kito@0xlab.org>
40605 PR rtl-optimization/64348
40606 * lra-constraints.c (split_reg): Fix caller-save store/restore
40607 instruction generation.
40609 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
40611 PR gcov-profile/61790
40612 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
40613 long long. Fallback to int64_t if host doesn't have long long and
40614 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
40616 2015-01-08 Jakub Jelinek <jakub@redhat.com>
40618 PR tree-optimization/63989
40619 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
40620 from 1000 to 10000.
40621 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
40622 (get_stridx): If we don't have a record for certain SSA_NAME,
40623 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
40624 constant offset, call get_stridx_plus_constant.
40625 (get_stridx_plus_constant): New function.
40626 (zero_length_string): Don't use get_stridx here.
40629 PR middle-end/64388
40630 * dse.c (struct insn_info): Mention frame_read set also
40631 before reload for tail calls on some targets.
40632 (scan_insn): Revert 2014-12-22 change. Set frame_read
40633 also before reload for tail calls if
40634 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
40635 instead of add_non_frame_wild_read for non-const/memset
40636 tail calls after reload.
40638 2015-01-08 Jason Merrill <jason@redhat.com>
40640 * ubsan.c (do_ubsan_in_current_function): New.
40641 (pass_ubsan::gate): Use it.
40642 * ubsan.h: Declare it.
40643 * convert.c (convert_to_integer): Use it.
40645 2015-01-08 Jakub Jelinek <jakub@redhat.com>
40648 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
40649 compare_code when it is unconditionally overwritten afterwards.
40650 Use ix86_reverse_condition instead of reverse_condition. Don't
40651 change code if *reverse_condition* returned UNKNOWN and don't
40652 swap ct/cf and negate diff in that case.
40654 2015-01-08 Mike Stump <mikestump@comcast.net>
40656 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
40657 (pass_tsan_O0::gate): Likewise.
40658 * extend.texi (Function Attributes): Add no_sanitize_thread
40661 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
40663 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
40664 for registering builtins.
40665 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
40666 add -fopenmp to the argv_obstack used when invoking
40667 compile_for_target.
40669 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
40670 add "-m32" or "-m64" to argv_obstack.
40671 (generate_host_descr_file): Likewise, when invoking host_compiler.
40672 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
40675 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
40677 * config/sh/sh-mem.cc: Use constant as second operand when emitting
40680 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
40683 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
40684 constant load if constant operand fits into I08.
40686 2015-01-08 Jakub Jelinek <jakub@redhat.com>
40689 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
40690 and TREE_THIS_VOLATILE for MEM_REFs.
40691 (build5_stat): Fix up initialization of TREE_READONLY and
40692 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
40694 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
40697 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
40698 of r for the second alternative of the destination operand.
40700 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
40703 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
40705 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
40707 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
40709 ([-fivar-visibility], [-fvisibility]): Likewise.
40711 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
40713 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
40714 the file where @code, @command, etc is more appropriate.
40716 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
40718 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
40719 of -mrecip= documentation.
40721 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
40724 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
40725 correct reload handler if -m32 -mpowerpc64 is used.
40727 2015-01-06 Tom de Vries <tom@codesourcery.com>
40729 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
40731 2015-01-08 Christian Bruel <christian.bruel@st.com>
40734 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
40736 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
40738 PR tree-optimization/63259
40739 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
40740 if optab exists for 16bit byteswap.
40742 2015-01-06 Jakub Jelinek <jakub@redhat.com>
40744 * opts.c (common_handle_option): Add support for
40745 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
40746 * doc/invoke.texi: Document -fno-sanitize=all,
40747 -f{,no-}sanitize-recover=all. Document that
40748 -fsanitize=float-cast-overflow is not enabled
40749 by -fsanitize=undefined. Fix up documentation
40750 of -f{,no-}sanitize-recover.
40752 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
40754 * config.gcc: Add Visium support.
40755 * configure.ac: Likewise.
40756 * configure: Regenerate.
40757 * doc/extend.texi (interrupt attribute): Add Visium.
40758 * doc/invoke.texi: Document Visium options.
40759 * doc/install.texi: Document Visium target.
40760 * doc/md.texi: Document Visium constraints.
40761 * common/config/visium: New directory.
40762 * config/visium: Likewise.
40764 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
40766 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
40767 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
40769 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
40771 * combine.c (combine_validate_cost): Do not count the cost of a
40772 split I2 twice. Do not display it twice in the dump, either.
40774 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
40776 Revert parts of r219199.
40777 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
40779 ([-Wtraditional]): Restore markup on <limits.h>.
40781 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
40784 * doc/invoke.texi: Document -Wsuggest-override.
40786 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
40788 PR rtl-optimization/64287
40789 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
40790 (process_options): Disable flag_ipa_ra if profiling.
40792 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
40794 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
40796 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
40798 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
40799 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
40800 put under #if TARGET_LOOPS guard.
40802 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
40804 * config/i386/i386.c (output_387_binary_op): Use std::swap.
40806 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
40808 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
40809 * rtl.h (refers_to_regno_p): Add overload.
40811 * bt-load.c: Likewise.
40812 * combine.c: Likewise.
40813 * df-scan.c: Likewise.
40814 * sched-deps.c: Likewise.
40815 * config/s390/s390.c: Likewise.
40816 * config/m32r/m32r.c: Likewise.
40817 * config/rs6000/spe.md: Likewise.
40818 * config/rs6000/rs6000.c: Likewise.
40819 * config/pa/pa.c: Likewise.
40820 * config/stormy16/stormy16.c: Likewise.
40821 * config/cris/cris.c: Likewise.
40822 * config/arc/arc.md: Likewise.
40823 * config/arc/arc.c: Likewise.
40824 * config/sh/sh.md: Likewise.
40825 * config/sh/sh.c: Likewise.
40826 * config/frv/frv.c: Likewise.
40828 2015-01-05 Jakub Jelinek <jakub@redhat.com>
40831 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
40832 call as cleanup of the whole body.
40833 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
40834 * tsan.c (replace_func_exit): New function.
40835 (instrument_func_exit): Moved earlier.
40836 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
40837 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
40839 (tsan_pass): Don't call instrument_func_exit.
40840 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
40841 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
40845 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
40846 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
40847 it to libubsan handler instead of EXPR. Fold comparisons earlier,
40848 if the result is integer_zerop, return NULL_TREE.
40849 * convert.c (convert_to_integer): Pass expr as ARG.
40851 PR tree-optimization/64465
40852 * tree-inline.c (redirect_all_calls): During inlining
40853 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
40854 changed the stmt to a non-throwing call.
40856 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
40858 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
40859 etc markup throughout the file.
40861 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
40863 Enable experimental TSAN support for Ada.
40864 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
40866 2015-01-05 Jakub Jelinek <jakub@redhat.com>
40868 PR tree-optimization/64494
40869 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
40870 clear SSA_NAME_ANTI_RANGE_P flag.
40872 2015-01-05 Marek Polacek <polacek@redhat.com>
40874 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
40876 2015-01-05 Jakub Jelinek <jakub@redhat.com>
40878 Update copyright years.
40880 * gcc.c (process_command): Update copyright notice dates.
40881 * gcov-dump.c: Ditto.
40883 * doc/cpp.texi: Bump @copying's copyright year.
40884 * doc/cppinternals.texi: Ditto.
40885 * doc/gcc.texi: Ditto.
40886 * doc/gccint.texi: Ditto.
40887 * doc/gcov.texi: Ditto.
40888 * doc/install.texi: Ditto.
40889 * doc/invoke.texi: Ditto.
40891 * auto-profile.c, auto-profile.h: Fix up Copyright line.
40893 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
40895 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
40897 ([-fvtable-verify], [-fvtv-debug]): Likewise.
40898 ([-Wabi]): Likewise.
40899 ([-fmessage-length]): Likewise.
40900 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
40901 ([-Wno-discarded-qualifiers]): Likewise.
40902 ([-Wnodiscarded-array-qualifiers]): Likewise.
40903 ([-Wno-virtual-move-assign]): Likewise.
40904 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
40905 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
40906 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
40907 ([-fsanitize-undefined-trap-on-error]): Likewise.
40908 ([-floop-interchange]): Likewise.
40909 ([-ftree-coalesce-inlined-vars]): Likewise.
40910 ([-fvect-cost-model]): Likewise.
40911 ([-flto]): Likewise.
40912 ([--param]): Likewise.
40913 (Spec Files): Likewise.
40914 ([-mstrict-align]): Likewise.
40915 ([-mfix-cortex-a53-835769]): Likewise.
40916 ([-march], [-mtune]): Likewise.
40917 ([-mpic-register]): Likewise.
40918 ([-munaligned-access]): Likewise.
40919 ([-msp8]): Likewise.
40920 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
40921 (AVR Built-in Macros): Likewise.
40922 ([-mpreferred-stack-boundary]): Likewise.
40923 ([-mtune-crtl]): Likewise.
40924 ([-mashf]): Likewise.
40925 ([-mmcu=]): Likewise.
40926 ([-minrt]): Likewise.
40927 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
40928 ([-mupper-regs]): Likewise.
40929 ([-matomic-model]): Likewise.
40930 ([-mdiv]): Likewise.
40931 ([-mzdcbranch]): Likewise.
40932 ([-mdisable-callt]): Likewise.
40933 ([-msoft-float]): Likewise.
40934 ([-m8byte-align]): Likewise.
40935 ([-fstack-reuse]): Likewise.
40937 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
40939 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
40940 Fix markup, light copy-editing.
40941 ([-fauto-profile]): Rewrite to fix formatting and content
40944 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
40946 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
40947 Copy-edit description.
40948 ([-fisolate-erroneous-paths-attribute]): Likewise.
40949 * common.opt (fisolate-erroneous-paths-dereference):
40950 Copy-edit description.
40951 (fisolate-erroneous-paths-attribute): Likewise.
40953 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
40955 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
40958 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
40960 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
40961 ([-fvtv-debug]): Likewise.
40962 ([-Wc++-compat]): Likewise.
40963 ([-Wc++11-compat]): Likewise.
40964 ([-Wc++14-compat]): Likewise.
40965 ([-Wno-sized-deallocation]): Likewise.
40966 ([-femit-class-debug-always]): Likewise.
40967 ([-femit-struct-debug-detailed]): Likewise.
40968 ([-fno-keep-inline-dllexport]): Likewise.
40969 ([-fira-algorithm]): Likewise.
40970 ([-fira-region]): Likewise.
40971 ([-flra-remat]): Likewise.
40972 ([-fipa-ra]): Likewise.
40973 ([-fhoist-adjacent-loads]): Likewise.
40974 ([-fisolate-erroneous-paths-dereference]): Likewise.
40975 ([-fisolate-erroneous-paths-attribute]): Likewise.
40976 ([-ftree-switch-conversion]): Likewise.
40977 ([-ftree-tail-merge]): Likewise.
40978 ([-ftree-loop-if-convert]): Likewise.
40979 ([-ftree-loop-if-convert-stores]): Likewise.
40980 ([-ftree-loop-distribution]): Likewise.
40981 ([-ftree-loop-distribute-patterns]): Likewise.
40982 ([-flto-compression-level]): Likewise.
40983 ([-flto-report]): Likewise.
40984 ([-flto-report-wpa]): Likewise.
40985 ([-fuse-linker-plugin]): Likewise.
40986 ([-mfix-cortex-a53-835769]): Likewise.
40987 ([-mno-fix-cortex-a53-835769]): Likewise.
40988 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
40989 explicit listing; add a note to the discussion indicating they
40990 exist. Reorder table to group similar options. Add missing
40991 @opindex entries. Add @need commands throughout the table to
40992 allow it to be split across multiple pages.
40993 ([-m8bit-idiv]): Fix @opindex.
40994 ([-mavx256-split-unaligned-load]): Likewise.
40995 ([-mavx256-split-unaligned-store]): Likewise.
40996 ([-mstack-protector-guard]): Likewise.
40997 ([-mcpu=]): Likewise.
40998 ([-mcpu]): Likewise.
40999 ([-mpointer-size=]): Likewise.
41001 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
41003 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
41004 instead of `m' constraint. Likewise for unnamed movb comparison
41005 patterns using reg_before_reload_operand predicate.
41006 * config/pa/predicates.md (reg_before_reload_operand): Tighten
41007 predicate to reject register index and LO_SUM DLT memory forms
41010 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
41012 * doc/invoke.texi (Option Summary): Fix spelling of
41013 -fdevirtualize-at-ltrans.
41014 ([-fdevirtualize]): Fix markup.
41015 ([-fdevirtualize-speculatively]): Fix typo.
41016 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
41017 implementor-speaky.
41018 * common.opt (fdevirtualize-at-ltrans): Likewise.
41019 * ipa-devirt.c: Fix typos in comments throughout the file.
41020 (ipa_devirt): Fix typos in format strings for dump output.
41022 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
41024 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
41025 discussion of defaults, light copy-editing.
41027 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
41029 * tsan.c (instrument_expr): corrected previous checkin.
41031 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
41033 Instrument bit field and unaligned accesses for TSAN.
41034 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
41035 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
41036 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
41037 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
41038 unaligned memory regions.
41040 2015-01-01 Anthony Green <green@moxielogic.com>
41042 * config/moxie/predicates.md (moxie_general_movsrc_operand):
41043 Restrict move source register offsets to 16 bits.
41045 Copyright (C) 2015 Free Software Foundation, Inc.
41047 Copying and distribution of this file, with or without modification,
41048 are permitted in any medium without royalty provided the copyright
41049 notice and this notice are preserved.