1 2015-12-01 Marek Polacek <polacek@redhat.com>
4 * cgraphunit.c (check_global_declaration): Only depend on TREE_THIS_VOLATILE
7 2015-12-01 Richard Sandiford <richard.sandiford@arm.com>
9 PR tree-optimization/68474
10 * tree-call-cdce.c (use_internal_fn): Protect call to
11 gen_shrink_wrap_conditions.
13 2015-12-01 Christian Bruel <christian.bruel@st.com>
16 * config/arm/arm.opt (unaligned_access): Save.
17 * config/arm/arm-c.c (__ARM_FEATURE_UNALIGNED): Conditionally define.
18 * config/arm/arm.c (arm_option_override): Move unaligned_access setting
19 (arm_option_override_internal): ... here.
20 * config/arm/arm.h (TARGET_32BIT_P): New macro.
22 2015-12-01 Richard Biener <rguenther@suse.de>
24 PR tree-optimization/68379
25 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
26 always base loads on the first used DR of a group.
27 * tree-vect-data-refs.c (vect_slp_analyze_and_verify_node_alignment):
28 Compute alignment of the first scalar element unconditionally.
30 2015-12-01 Richard Biener <rguenther@suse.de>
33 * genmatch.c (struct capture_info): Add match_use_count.
34 (capture_info::walk_match): Increment match_use_count.
35 (dt_simplify::gen_1): For GENERIC, only wrap multi-use
36 replacements in a save_expr if they occur more often than
37 in the original expression.
39 2015-12-01 Richard Biener <rguenther@suse.de>
42 * ipa-split.c (split_function): Handle main part not returning.
44 2015-12-01 Ilya Enkovich <enkovich.gnu@gmail.com>
47 * tree-vect-stmts.c (vect_init_vector): Cast boolean
48 scalars to a proper value before building a vector.
50 2015-12-01 Richard Sandiford <richard.sandiford@arm.com>
52 * genattrtab.c (check_attr_test): Take an attr_desc instead of
53 an is_const flag. Put the file_location argument first.
54 Update recursive calls. Improve error messages.
55 (check_attr_value): Take a file location and use it instead
56 of attr->loc. Improve error messages. Update calls to
58 (check_defs): Update call to check_attr_value.
59 (make_canonical): Likewise.
62 (gen_insn_reserv): Update call to check_attr_test.
64 2015-12-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
66 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Fix typo.
68 2015-12-01 Richard Biener <rguenther@suse.de>
71 * match.pd: Merge (eq @0 @0) and (ge/le @0 @0) patterns.
73 2015-12-01 Jan Hubicka <hubicka@ucw.cz>
75 * ipa-devirt.c (type_with_linkage_p, type_in_anonymous_namespace_p,
76 odr_type_p): Move to ...
77 * ipa-utils.h (type_with_linkage_p, type_in_anonymous_namespace_p,
78 odr_type_p): here; miscro-optimize.
80 2015-12-01 Bin Cheng <bin.cheng@arm.com>
82 PR tree-optimization/68529
83 * tree-ssa-loop-niter.c (number_of_iterations_ne): Add new param.
84 Compute no-overflow information for control iv.
85 (number_of_iterations_lt, number_of_iterations_le): Add new param.
86 (number_of_iterations_cond): Pass new argument to above functions.
88 2015-11-30 Jan Hubicka <hubicka@ucw.cz>
90 * ipa-inline-transform.c (inline_call): Drop -fstrict-aliasing when
91 inlining -fno-strict-aliasing into -fstrict-aliasing body.
93 2015-11-30 Aditya Kumar <aditya.k7@samsung.com>
94 Sebastian Pop <s.pop@samsung.com>
96 PR tree-optimization/68565
97 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Early return on
98 codegen_error. Fail when rhs of division operations is integer_zerop.
99 (ternary_op_to_tree): Early return on codegen_error.
100 (unary_op_to_tree): Same.
101 (nary_op_to_tree): Same.
102 (gcc_expression_from_isl_expr_op): Same.
103 (gcc_expression_from_isl_expression): Same.
104 (graphite_create_new_loop): On codegen_error continue generating
106 (graphite_create_new_loop_guard): Same.
107 (build_iv_mapping): Same.
108 (graphite_create_new_guard): Same.
110 2015-11-30 Aditya Kumar <aditya.k7@samsung.com>
111 Sebastian Pop <s.pop@samsung.com>
113 * graphite-isl-ast-to-gimple.c: Fix dump messages.
114 * graphite-scop-detection.c: Same.
115 * graphite-sese-to-poly.c (isl_id_for_ssa_name): Do not call get_name.
117 2015-11-30 Cesar Philippidis <cesar@codesourcery.com>
119 * tree-nested.c (convert_nonlocal_omp_clauses): Add support for
120 OMP_CLAUSE_{NUM_GANGS,NUM_VECTORS,VECTOR_LENGTH,SEQ}.
121 (convert_local_omp_clauses): Likewise.
123 2015-11-30 Tom de Vries <tom@codesourcery.com>
125 PR tree-optimization/46032
126 * tree-ssa-structalias.c (find_func_aliases_for_call_arg): New function,
128 (find_func_aliases_for_call): ... here.
129 (find_func_aliases_for_builtin_call, find_func_clobbers): Handle
130 BUILT_IN_GOMP_PARALLEL.
131 (ipa_pta_execute): Same. Handle node->parallelized_function as a local
134 2015-11-30 Jakub Jelinek <jakub@redhat.com>
136 PR tree-optimization/68501
137 * target.def (builtin_reciprocal): Replace the 3 arguments with
138 a gcall * one, adjust description.
139 * targhooks.h (default_builtin_reciprocal): Replace the 3 arguments
141 * targhooks.c (default_builtin_reciprocal): Likewise.
142 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Use
143 targetm.builtin_reciprocal even on internal functions, adjust
144 the arguments and allow replacing an internal function with normal
146 * config/i386/i386.c (ix86_builtin_reciprocal): Replace the 3 arguments
147 with a gcall * one. Handle internal fns too.
148 * config/rs6000/rs6000.c (rs6000_builtin_reciprocal): Likewise.
149 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
150 * doc/tm.texi (builtin_reciprocal): Document.
152 2015-11-30 Richard Biener <rguenther@suse.de>
154 PR tree-optimization/68592
155 * tree-vect-loop.c (vect_analyze_loop_2): Reset SLP type also
156 on the pattern def sequence.
158 2015-11-30 Nathan Sidwell <nathan@acm.org>
160 * config/nvptx/nvptx.c (nvptx_name_replacement): Move earlier.
161 (write_one_arg): Reorder parms, add 'sep' param.
162 (nvptx_write_function_decl): Rename to ...
163 (write_fn_proto): ... here. Do name replacement. Emit linaer
164 comment marker. Deal with both decls and defns. Simplify argument
166 (write_function_decl_and_comment): Delete.
167 (write_func_decl_from_insn): Rename to ...
168 (write_fn_proto_from_insn): ... here. Don't do name replacement.
169 (nvptx_record_fndecl): Call write_fn_proto.
170 (nvptx_record_libfunc): Call write_fn_proto_from_insn.
171 (nvptx_declare_function_name): Adjust for write_fn_proto changes.
172 (nvotx_output_call_insn): Call write_fn_prot_from_insn.
174 2015-11-30 Kirill Yukhin <kirill.yukhin@intel.com>
176 * config/i386/i386.md (define_mode_iterator SWI1248_AVX512BW): New.
177 (define_insn "*k<logic><mode>"): Use new iterator.
179 2015-11-30 Eric Botcazou <ebotcazou@adacore.com>
182 * config/sparc/sparc.c (supersparc_adjust_cost): Fix thinko.
183 (sparc_adjust_cost): Add missing space.
185 2015-11-30 Richard Biener <rguenther@suse.de>
188 * dwarf2out.c (gen_type_die_with_usage): Keep variant types
191 2015-11-30 Venkataramanan Kumar <Venkataramanan.Kumar@amd.com>
193 * tree-if-conv.c (struct ifc_dr): Add new tree
194 base_predicate field.
195 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Hash
196 base ref, DR pairs and store base_predicate for write type DRs.
197 (ifcvt_memrefs_wont_trap): Guard checks with
198 -ftree-loop-if-convert-stores flag.
200 2015-11-29 Jan Hubicka <hubicka@ucw.cz>
202 * cgraph.c (cgraph_node::make_local): No name is unique during
204 * cgraph.h (can_be_discarded_p): Update comment; also common and
205 WEAK in named sections can be discarded; when doing incremental
206 link do not rely on resolution being the final one.
207 * varasm.c (default_binds_local_p_3, decl_binds_to_current_def_p):
208 When symbol can be discarded, do not rely on resolution info.
209 * symtab.c (symtab_node::nonzero_address): Take into account that
210 symbol can be discarded.
211 * ipa-visibility.c (update_visibility_by_resolution_info): Handle
212 definition correctly.
213 (function_and_variable_visibility): Do not set unique_name when
214 incrementally linking.
216 2015-11-29 Nathan Sidwell <nathan@acm.org>
218 * config/nvptx/nvptx.md (const_0_operand, global_mem_operand,
219 const_mem_operand, param_mem_operand, shared_mem_operand): Delete.
220 (ctrap<mode>): Use const0_operand.
222 2015-11-29 Jan Hubicka <hubicka@ucw.cz>
224 * ipa-devirt.c (add_type_duplicate): Remove redundant ODR violation
227 2015-11-29 David Edelsohn <dje.gcc@gmail.com>
230 * config/rs6000/rs6000.c (rs6000_adjust_cost): Correct
231 recog_memoized test for insn and check recog_memoized for dep_insn.
233 2015-11-28 Nathan Sidwell <nathan@acm.org>
235 * config/nvptx/nvptx.h (FIRST_PARM_OFFSET): Add void cast.
236 (FRAME_POINTER_CFA_OFFSET): Define.
237 (struct nvptx_args): Use 'tree' type.
238 (INIT_CUMULATIVE_ARGS): Remove unnecessary do...while.
240 2015-11-28 Tom de Vries <tom@codesourcery.com>
242 * lto-wrapper.c (run_gcc): Handle -flinker-output argument.
244 2015-11-27 Jonathan Wakely <jwakely@redhat.com>
246 * doc/invoke.texi (Option Summary): Use negative form of
247 -Waggressive-loop-optimizations, remove redundant -Wpedantic-ms-format,
248 sort alphabetically and re-justify.
250 2015-11-27 Vladimir Makarov <vmakarov@redhat.com>
252 PR rtl-optimization/68536
253 * lra.c (lra_emit_add): Add code for null base.
254 * lra-constraints.c (curr_insn_transform): Skip operators for
257 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
260 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
262 * ifcvt.c (insn_valid_noce_process_p): Reject insn if it satisfies
264 (noce_try_cmove_arith): Add checking asserts that orig_a and orig_b
265 are not modified by the final modified insns in the basic blocks.
267 2015-11-27 Nathan Sidwell <nathan@acm.org>
269 * config/nvptx/nvptx-protos.h (nvptx_addr_space_from_address):
271 * config/nvptx/nvptx.c (nvptx_addr_space_from_sym): New.
272 (nvptx_maybe_convert_symbolic_operand): Simplify.
273 (nvptx_addr_space_from_address): Delete.
274 (nvptx_print_operand): Adjust 'A' case.
276 2015-11-27 Richard Biener <rguenther@suse.de>
278 PR tree-optimization/68559
279 * tree-vect-data-refs.c (vect_analyze_group_access_1): Move
280 peeling for gap checks ...
281 * tree-vect-stmts.c (vectorizable_load): ... here and relax
283 * tree-vect-loop.c (vect_analyze_loop_2): Re-set
284 LOOP_VINFO_PEELING_FOR_GAPS before re-trying without SLP.
286 2015-11-27 Nathan Sidwell <nathan@acm.org>
288 * config/nvptx/nvptx-protos.h (nvptx_record_needed_decl): Don't
290 * config/nvptx/nvptx.c (write_func_decl_from_insn): Move earlier.
291 (nvptx_record_fndecl): Don't return value, remove force
292 argument. Require fndecl.
293 (nvptx_record_libfunc): New.
294 (nvptx_record_needed_decl): Deteermine how to record decl here.
295 (nvptx_maybe_record_fnsym): New.
296 (nvptx_expand_call): Don't record libfuncs here,
297 (nvptx_maybe_convert_symbolic_operand): Use
298 nvptx_maye_record_fnsym.
299 (nvptx_assemble_integer): Reimplement with single switch.
300 (nvptx_output_call_insn): Register libfuncs here.
301 (nvptx_file_end): Adjust nvptx_record_fndecl call.
302 * config/nvptx/nvptx.md (expand_movdi): Don't call
303 nvptx_record_needed_decl.
305 2015-11-27 Richard Biener <rguenther@suse.de>
307 PR tree-optimization/68553
308 * tree-vect-slp.c (vect_create_mask_and_perm): Skip VEC_PERM_EXPR
309 generation for 1:1 permutations.
310 (vect_transform_slp_perm_load): Detect 1:1 permutations.
312 2015-11-27 Bernd Schmidt <bschmidt@redhat.com>
314 * gimple.h (nonbarrier_call_p): Declare.
315 * gimple.c (nonbarrier_call_p): New function.
316 * tree-ssa-phiopt.c (nontrapping_dom_walker::before_dom_children):
317 Also increment call phase for ASMs with vdef and potential barrier
320 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
322 * ifcvt.c (insn_valid_noce_process_p): Reject insn if it satisfies
324 (noce_try_cmove_arith): Add checking asserts that orig_a and orig_b
325 are not modified by the final modified insns in the basic blocks.
327 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
329 PR rtl-optimization/68506
330 * ifcvt.c (noce_try_cmove_arith): Try emitting the else basic block
331 first if emit_a exists or then_bb modifies 'b'. Reindent if-else
334 2015-11-27 Martin Liska <mliska@suse.cz>
337 * vec.h (release_vec_vec): New function.
339 2015-11-27 Jakub Jelinek <jakub@redhat.com>
341 PR tree-optimization/68552
342 * optabs.c (expand_vec_perm_1): Move vec_shr handling from here...
343 (expand_vec_perm): ... here. Do it regardless of vec_perm_const_optab
346 2015-11-27 Martin Liska <mliska@suse.cz>
348 * tree-ssa-uninit.c: Fix whitespaces in the source file.
349 The change is just automatical.
351 2015-11-27 Martin Liska <mliska@suse.cz>
353 * tree-chkp.c (chkp_make_static_bounds): Release buffer
356 2015-11-27 Martin Liska <mliska@suse.cz>
358 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
359 Do not release memory for comp_alias_ddrs.
360 * tree-vect-loop.c (destroy_loop_vec_info): Release
361 the memory for all loop_vec_info.
363 2015-11-27 Martin Liska <mliska@suse.cz>
365 * ipa-devirt.c (ipa_devirt): Use auto_vec instead
366 of a local-scope vec.
367 (struct final_warning_record): Use auto_vec instead
370 2015-11-27 Richard Biener <rguenther@suse.de>
372 PR tree-optimization/68553
373 * tree-vect-slp.c (vect_get_mask_element): Remove.
374 (vect_transform_slp_perm_load): Implement in a simpler way.
376 2015-11-26 Alexandre Oliva <aoliva@redhat.com>
378 PR rtl-optimization/67753
379 PR rtl-optimization/64164
380 * function.c (assign_parm_setup_block): Right-shift
381 upward-padded big-endian args when bypassing the stack slot.
383 2015-11-26 Maciej W. Rozycki <macro@imgtec.com>
385 * doc/invoke.texi (Option Summary) <MIPS Options>: Reorder
386 `-mcompact-branches='.
387 (MIPS Options): Likewise.
389 2015-11-26 Jakub Jelinek <jakub@redhat.com>
391 * Makefile.in (build/genmatch.o): Depend on internal-fn.def.
393 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
395 * doc/install.texi (Prerequisites): Increase ISL requirement to
398 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
400 * config/aarch64/arm_neon.h
401 (vqrdmlah_laneq_s16, vqrdmlah_laneq_s32): New.
402 (vqrdmlahq_laneq_s16, vqrdmlahq_laneq_s32): New.
403 (vqrdmlsh_lane_s16, vqrdmlsh_lane_s32): New.
404 (vqrdmlshq_laneq_s16, vqrdmlshq_laneq_s32): New.
405 (vqrdmlah_lane_s16, vqrdmlah_lane_s32): New.
406 (vqrdmlahq_lane_s16, vqrdmlahq_lane_s32): New.
407 (vqrdmlahh_s16, vqrdmlahh_lane_s16, vqrdmlahh_laneq_s16): New.
408 (vqrdmlahs_s32, vqrdmlahs_lane_s32, vqrdmlahs_laneq_s32): New.
409 (vqrdmlsh_lane_s16, vqrdmlsh_lane_s32): New.
410 (vqrdmlshq_lane_s16, vqrdmlshq_lane_s32): New.
411 (vqrdmlshh_s16, vqrdmlshh_lane_s16, vqrdmlshh_laneq_s16): New.
412 (vqrdmlshs_s32, vqrdmlshs_lane_s32, vqrdmlshs_laneq_s32): New.
414 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
416 * config/aarch64/arm_neon.h (vqrdmlah_s16, vqrdmlah_s32): New.
417 (vqrdmlahq_s16, vqrdmlahq_s32): New.
418 (vqrdmlsh_s16, vqrdmlsh_s32): New.
419 (vqrdmlshq_s16, vqrdmlshq_s32): New.
421 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
423 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Add
426 2015-11-26 Pierre-Marie de Rodat <derodat@adacore.com>
429 * tree-nested.c (finalize_nesting_tree_1): Append a field to
430 hold the frame base address.
431 * dwarf2out.c (gen_subprogram_die): Generate for
432 DW_AT_static_link a location description that computes the value
435 2015-11-26 Tom de Vries <tom@codesourcery.com>
438 2015-11-25 Tom de Vries <tom@codesourcery.com>
440 * cfgloop.c (find_single_latch): New function, factored out of ...
441 (flow_loops_find): ... here.
442 (verify_loop_structure): Improve verification of loop->latch.
443 * cfgloop.h (find_single_latch): Declare.
444 * omp-low.c (expand_omp_for_generic): Initialize latch of orig_loop.
446 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
448 * config/aarch64/aarch64-simd-builtins.def:
449 Add missing changes from r230962.
451 2015-11-26 Nathan Sidwell <nathan@acm.org>
453 * config/nvptx/nvptx.c (write_func_decl_from_insn): Replace callee
454 arg with name. Don't deal with split regs. Tweak formatting.
455 (nvptx_expand_call): Adjust write_func_decl_from_insn call.
456 (nvptx_output_call_insn): Don't deal with split regs here.
458 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
460 * config/aarch64/aarch64-simd-builtins.def
461 (sqrdmlah, sqrdmlsh): New.
462 (sqrdmlah_lane, sqrdmlsh_lane): New.
463 (sqrdmlah_laneq, sqrdmlsh_laneq): New.
465 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
467 * config/aarch64/aarch64-simd.md
468 (aarch64_sqmovun<mode>): Fix some white-space.
469 (aarch64_<sur>qmovun<mode>): Likewise.
470 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h<mode>): New.
471 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): New.
472 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): New.
473 * config/aarch64/iterators.md (UNSPEC_SQRDMLAH): New.
474 (UNSPEC_SQRDMLSH): New.
478 2015-11-26 Richard Biener <rguenther@suse.de>
480 PR tree-optimization/66721
481 * tree-vect-loop.c (vect_analyze_loop_2): Compute scalar
482 iteration cost earlier. Re-do analysis without SLP when
483 vectorization using SLP fails and without has a chance to succeed.
485 2015-11-26 Richard Biener <rguenther@suse.de>
487 * genmatch.c (dt_simplify::gen_1): For generic wrap all
488 multi-result-use captures in a SAVE_EXPR.
490 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
492 * config/aarch64/aarch64.h (AARCH64_ISA_RDMA): New.
493 (TARGET_SIMD_RDMA): New.
495 2015-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
497 * combine.c (subst): Do not return clobber of zero in widening mult
498 case. Just return x unchanged if it is a no-op substitution.
500 2015-11-26 Vladimir Makarov <vmakarov@redhat.com>
503 * config/i386/i386.h (enum reg_class): Add
504 bounds registers to ALL_REGS.
506 2015-11-26 Jakub Jelinek <jakub@redhat.com>
508 PR tree-optimization/68128
509 * tree.h (OMP_CLAUSE_SHARED_READONLY): Define.
510 * gimplify.c: Include gimple-walk.h.
511 (enum gimplify_omp_var_data): Add GOVD_WRITTEN.
512 (omp_notice_variable): Set flags to n->value if n already
513 exists in target region, but we need to jump to do_outer.
514 (omp_shared_to_firstprivate_optimizable_decl_p,
515 omp_mark_stores, omp_find_stores_op, omp_find_stores_stmt): New
517 (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_SHARED_READONLY
518 on OMP_CLAUSE_SHARED if it is a scalar non-addressable that is
519 not modified in the body. Call omp_mark_stores for outer
520 contexts on OMP_CLAUSE_SHARED clauses if they could be written
521 in the body or on OMP_CLAUSE_LASTPRIVATE.
522 (gimplify_adjust_omp_clauses): Add body argument, call
523 omp_find_stores_{stmt,op} on the body through walk_gimple_seq.
524 Set OMP_CLAUSE_SHARED_READONLY
525 on OMP_CLAUSE_SHARED if it is a scalar non-addressable that is
526 not modified in the body. Call omp_mark_stores for outer
527 contexts on OMP_CLAUSE_SHARED clauses if they could be written
528 in the body or on OMP_CLAUSE_LASTPRIVATE or on OMP_CLAUSE_LINEAR
529 without OMP_CLAUSE_LINEAR_NO_COPYOUT or on OMP_CLAUSE_REDUCTION.
530 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task,
531 gimplify_omp_for, gimplify_omp_workshare, gimplify_omp_target_update,
532 gimplify_expr): Adjust gimplify_adjust_omp_clauses callers.
533 * tree-nested.c (convert_nonlocal_omp_clauses,
534 convert_local_omp_clauses): Clear OMP_CLAUSE_SHARED_READONLY on
535 non-local vars or local vars referenced from nested routines.
536 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_SHARED_READONLY
537 attempt to optimize it into OMP_CLAUSE_FIRSTPRIVATE. Even for
538 TREE_READONLY, don't call use_pointer_for_field with non-NULL
539 second argument until we are sure we are keeping OMP_CLAUSE_SHARED.
541 2015-11-26 Paolo Bonzini <bonzini@gnu.org>
543 * doc/implement-c.texi (Integers Implementation): Make GCC's promises
544 about signed left shift stronger and clarify the cases when they're
547 2015-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
548 Bernd Schmidt <bschmidt@redhat.com>
550 PR rtl-optimization/67226
551 * calls.c (store_one_arg): Take into account
552 crtl->args.pretend_args_size when checking for overlap between
553 arg->value and argblock + arg->locate.offset during sibcall
556 2015-11-26 Wilco Dijkstra <wdijkstr@arm.com>
558 * config/aarch64/aarch64.md (cbranch<mode>4): Use
559 aarch64_fp_compare_operand.
560 (store_pairsf): Use aarch64_reg_or_fp_zero.
561 (store_pairdf): Likewise.
562 (cstore<mode>4): Use aarch64_fp_compare_operand.
563 (cmov<mode>6): Likewise.
564 * config/aarch64/aarch64-ldpstp.md: Use aarch64_reg_or_fp_zero.
566 2015-11-25 Aditya Kumar <aditya.k7@samsung.com>
567 Sebastian Pop <s.pop@samsung.com>
569 PR tree-optimization/68453
570 * graphite-isl-ast-to-gimple.c (translate_isl_ast_for_loop): Do
571 not redirect edges already pointing to their destination.
572 (translate_isl_ast_node_for): Split edges after loops to create
573 basic blocks for close phi nodes. Save merge points at the end of
575 (translate_isl_ast_node_if): Save merge points at the end of the
577 (add_close_phis_to_outer_loops): New.
578 (add_close_phis_to_merge_points): New.
579 (copy_loop_close_phi_args): Call add_close_phis_to_merge_points.
580 (copy_bb_and_scalar_dependences): Do not split basic blocks on
581 loop close phi locations.
583 2015-11-25 Jan Hubicka <jh@suse.cz>
585 * ipa-visibility.c (cgraph_externally_visible_p,
586 varpool_node::externally_visible_p): When doing incremental linking,
587 hidden symbols may be still used later.
588 (update_visibility_by_resolution_info): Do not drop weak during
590 (function_and_variable_visibility): Fix formating.
591 * flag-types.h (lto_linker_output): Declare.
592 * common.opt 9flag_incremental_link): New flag.
594 2015-11-25 Michael Meissner <meissner@linux.vnet.ibm.com>
596 * config/rs6000/constraints.md (wb constraint): New constraint for
597 ISA 3.0 d-form scalar addressing.
599 * config/rs6000/rs6000.c (mode_supports_vmx_dform): Add support
600 for ISA 3.0 D-form addressing to load SFmode/DFmode scalars into
601 Altivec registers. Add wb constraint for Altivec registers with
602 D-form addressing. If we have ISA 3.0 d-form support, undo
603 secondary reload support for using FPR registers if we want to do
605 (rs6000_debug_reg_global): Likewise.
606 (rs6000_setup_reg_addr_masks): Likewise.
607 (rs6000_init_hard_regno_mode_ok): Likewise.
608 (rs6000_secondary_reload): Likewise.
609 (rs6000_preferred_reload_class): Likewise.
610 (rs6000_secondary_reload_class): Likewise.
612 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wb
615 * config/rs6000/rs6000.md (f32_lr2 mode attribute): Add support
616 for ISA 3.0 SFmode/DFmode d-form addressing to Altivec registers.
623 (extendsfdf2_fpr): Likewise.
624 (mov<mode>_hardfloat): Likewise.
625 (mov<mode>_hardfloat32): Likewise.
626 (mov<mode>_hardfloat64): Likewise.
628 * doc/md.texi (RS/6000 constraints): Document wb constraint.
629 Fixup we constraint documentation.
631 2015-11-25 Tom de Vries <tom@codesourcery.com>
633 * omp-low.c (pass_expand_omp_ssa::clone): New function.
634 * passes.def: Add pass_oacc_kernels pass group.
635 * tree-ssa-loop-ch.c (pass_ch::clone): New function.
637 2015-11-25 Tom de Vries <tom@codesourcery.com>
639 * tree-pass.h (make_pass_oacc_kernels, make_pass_oacc_kernels2):
641 * tree-ssa-loop.c (gate_oacc_kernels): New static function.
642 (pass_data_oacc_kernels, pass_data_oacc_kernels2): New pass_data.
643 (class pass_oacc_kernels, class pass_oacc_kernels2): New pass.
644 (make_pass_oacc_kernels, make_pass_oacc_kernels2): New function.
646 2015-11-25 Jan Hubicka <hubicka@ucw.cz>
648 * timevar.def (TV_IPA_LTO_DECOMPRESS, TV_IPA_LTO_COMPRESS,
649 TV_IPA_LTO_OUTPUT): New.
650 * lto-compress.c: Include timevar.h
651 (lto_end_compression, lto_end_uncompression): Add timers.
652 * langhooks.c: Include timevar.h
653 (lhd_append_data): Add timer.
655 2015-11-25 Jan Hubicka <hubicka@ucw.cz>
657 * varasm.c (default_elf_asm_output_limited_string,
658 default_elf_asm_output_ascii): Replace fprintf by putc.
660 2015-11-25 Vladimir Makarov <vmakarov@redhat.com>
662 PR rtl-optimization/67954
663 * lra-constraints.c (curr_insn_transform): Add check on scratch
664 pseudo when change class to NO_REGS. Add an assert.
666 2015-11-25 Nathan Sidwell <nathan@acm.org>
668 * config/nvptx/nvptx.md (load_arg_reg<mode>): Arg number
670 * config/nvptx/nvptx.c (write_one_arg): Use 'i' directly as arg
672 (nvptx_write_function_decl): Number args from 0.
673 (nvptx_declare_function_name): Likewise.
674 (nvptx_function_incoming_arg): Likewise.
675 (nvptx_output_call_insn): Correct formatting.
677 2015-11-25 David Sherwood <david.sherwood@arm.com>
679 * optabs.def: Add new optabs fmax_optab/fmin_optab.
680 * internal-fn.def: Add new fmax/fmin internal functions.
681 * doc/md.texi: Add fmin and fmax patterns.
683 2015-11-25 Jason Merrill <jason@redhat.com>
686 * tree.c (integer_zerop, integer_onep, integer_each_onep)
687 (integer_all_onesp, integer_minus_onep, integer_pow2p)
688 (integer_nonzerop, integer_truep, tree_log2, tree_floor_log2)
689 (real_zerop, real_onep, real_minus_onep): Remove STRIP_NOPS.
691 2015-11-25 Richard Biener <rguenther@suse.de>
694 * fold-const.c (fold_binary_loc): Do not call negate_expr_p
695 on stripped operands.
697 2015-11-25 Nathan Sidwell <nathan@acm.org>
699 * config/nvptx/nvptx.c (walk_args_for_params): Delete.
700 (nvptx_declare_function_name): Move assignments next to register
701 declarations, and process params here.
703 2015-11-25 David Edelsohn <dje.gcc@gmail.com>
705 * config/rs6000/rs6000.c (rs6000_declare_alias): Rename and globalize
706 both the symbol and the "dot" symbol for function descriptors. Fix
707 inversion for rename of symbols with dollar sign.
709 2015-11-25 Tom de Vries <tom@codesourcery.com>
711 * cfgloop.c (find_single_latch): New function, factored out of ...
712 (flow_loops_find): ... here.
713 (verify_loop_structure): Improve verification of loop->latch.
714 * cfgloop.h (find_single_latch): Declare.
715 * omp-low.c (expand_omp_for_generic): Initialize latch of orig_loop.
717 2015-11-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
719 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Move up.
720 (STARTFILE_VTV_SPEC, ENDFILE_VTV_SPEC): Define.
721 (STARTFILE_SPEC): Use %(startfile_vtv).
722 (ENDFILE_SPEC): Use %(endfile_vtv).
723 (SUBTARGET_EXTRA_SPECS): Handle STARTFILE_VTV_SPEC,
726 * gcc.c (LINK_COMMAND_SPEC): Move VTABLE_VERIFICATION_SPEC after %{L*}.
728 2015-11-25 Bernd Schmidt <bschmidt@redhat.com>
730 * ifcvt.c (noce_mem_write_may_trap_or_fault_p,
731 noce_can_store_speculate): Delete.
732 (noce_process_if_block): Don't try to handle single MEM stores.
733 * rtl.h (memory_must_be_modified_in_insn_p): Don't declare.
734 * alias.c (memory_must_be_modified_in_insn_p): Delete.
736 2015-11-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
738 PR rtl-optimization/68435
739 * ifcvt.c (noce_try_cmove_arith): Skip final insn when checking
740 for conflicts between a, b and the set destinations.
742 2015-11-25 Richard Biener <rguenther@suse.de>
744 PR tree-optimization/68517
745 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses):
746 Properly handle zero-sized types.
748 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
750 * ipa-inline-analysis.c: Include gimplify.h
751 (set_cond_stmt_execution_predicate,
752 set_switch_stmt_execution_predicate): Be sure to not leak locations
755 2015-11-25 Jakub Jelinek <jakub@redhat.com>
758 * tree-ssa-math-opts.c (uaddsub_overflow_check_p,
759 match_uaddsub_overflow): New functions.
760 (pass_optimize_widening_mul::execute): Call match_uaddsub_overflow.
762 2015-11-25 Richard Biener <rguenther@suse.de>
764 PR tree-optimization/68492
765 * tree-vect-slp.c (vect_build_slp_tree): Consistently build up
766 op from scalars after operand swapping.
768 2015-11-25 Richard Biener <rguenther@suse.de>
770 PR tree-optimization/68502
771 * tree-vect-data-refs.c (vect_analyze_group_access_1): Restore
772 check that the step is a multiple of the type size.
774 2015-11-24 Michael Collison <michael.collison@linaro.org>
776 * config/aarch64/aarch64-simd.md (widen_ssum, widen_usum)
777 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>_internal): New patterns
778 * config/aarch64/iterators.md (Vhalf, VDBLW): New mode attributes.
780 2015-11-24 Steve Ellcey <sellcey@imgtec.com>
782 * frame-header-opt.c (gate): Check for optimize > 0.
783 (has_inlined_assembly): New function.
784 (needs_frame_header_p): Remove is_leaf_function check,
785 add argument type check.
786 (callees_functions_use_frame_header): Add is_leaf_function
787 and has_inlined_assembly calls..
788 (set_callers_may_not_allocate_frame): New function.
789 (frame_header_opt): Add is_leaf_function call, add
790 set_callers_may_not_allocate_frame call.
791 * config/mips/mips.c (mips_compute_frame_info): Add check
792 to see if callee saved regs can be put in frame header.
793 (mips_expand_prologue): Add check to see if step1 is zero,
794 fix cfa restores when using frame header to store regs.
795 (mips_can_use_return_insn): Check to see if registers are
796 stored in frame header.
797 * config/mips/mips.h (machine_function): Add
798 callers_may_not_allocate_frame and
799 use_frame_header_for_callee_saved_regs fields.
801 2015-11-24 Segher Boessenkool <segher@kernel.crashing.org>
803 PR rtl-optimization/68520
804 * shrink-wrap.c (try_shrink_wrapping): Don't push a block to VEC if
805 its bit was already set in BB_WITH.
807 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
809 * alias.c (get_alias_set): Before checking TYPE_ALIAS_SET_KNOWN_P
810 double check that type is main variant.
811 * tree.c (build_variant_type_copy): Clear TYPE_ALIAS_SET when producing
813 (verify_type_variant): Verify that variants have no
814 TYPE_ALIAS_SET_KNOWN_P set
815 * tree-streamer-out.c (pack_ts_type_common_value_fields): Reorder
816 streaming so constant fields come first; stream TYPE_ALIAS_SET==0
817 only for main variants; stream TYPE_ALIAS_SET as a bit.
818 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Update
821 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
823 * tree.c (make_vector_type): Properly compute canonical type of the
825 (verify_type): Verify that TYPE_CANONICAL of TYPE_MAIN_VARIANT is
828 2015-11-24 Nathan Sidwell <nathan@acm.org>
830 * config/nvptx/nvptx.c (maybe_split_mode): Return new mode or
831 VOIDmode, don't alter incoming mode.
832 (nvptx_split_reg_p): Delete.
833 (write_one_arg, walk_args_for_param, nvptx_declare_function_name,
834 write_func_decl_from_insn, nvptx_output_call_insn): Adjust
835 maybe_split_mode calls.
836 (nvptx_print_operand): Use maybe_split_mode.
838 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
840 * lto-streamer-in.c (lto_read_body_or_constructor): Set TYPE_CANONICAL
841 only for types where LTO sets them.
842 * tree.c (build_array_type_1): Do ont set TYPE_CANONICAL for LTO.
843 (make_vector_type): Likewise.
844 (gimple_canonical_types_compatible_p): Use canonical_type_used_p.
845 * tree.h (canonical_type_used_p): New inline.
846 * alias.c (get_alias_set): Handle structural equality for all
847 types that pass canonical_type_used_p.
848 (record_component_aliases): Look through all types with
849 record_component_aliases for possible pointers; sanity check that
850 the alias sets match.
852 2015-11-24 Michael Meissner <meissner@linux.vnet.ibm.com>
854 * config/rs6000/rs6000.md (lround<mode>di2): Remove constraints.
856 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
858 * tree.c (free_node): New function.
859 (type_hash_canon): Use it.
860 * tree.h (free_node): Declare.
862 2015-11-24 David Edelsohn <dje.gcc@gmail.com>
863 Michael Meissner <meissner@linux.vnet.ibm.com>
865 * config/rs6000/rs6000.md (UNSPEC_XSRDPI): New unspec.
866 (Fv2): New mode attribute to be used when ISA 2.07 instructions
867 are used on SF values, and ISA 2.06 instructions on DF values.
868 (add<mode>3_fpr): Use <Fv2> instead of <Fv>.
869 (sub<mode>3_fpr): Use <Fv2> instead of <Fv>.
870 (mul<mode>3_fpr): Use <Fv2> instead of <Fv>.
871 (div<mode>3_fpr): Use <Fv2> instead of <Fv>.
872 (sqrt<mode>2): Use <Fv2> instead of <Fv>.
873 (fre<Fs>): Use <Fv2> instead of <Fv>.
874 (rsqrt<mode>2): Use <Fv2> instead of <Fv>.
875 (cmp<mode>_fpr): Use <Fv2> instead of <Fv>.
876 (xsrdpi<mode>): Add support for the lround function.
877 (lround<mode>di2): Likewise.
878 (fma<mode>4_fpr): Use <Fv2> instead of <Fv>.
879 (fms<mode>4_fpr): Use <Fv2> instead of <Fv>.
880 (nfma<mode>4_fpr): Use <Fv2> instead of <Fv>.
881 (nfms<mode>4_fpr): Use <Fv2> instead of <Fv>.
883 2015-11-24 Aditya Kumar <aditya.k7@samsung.com>
884 Sebastian Pop <s.pop@samsung.com>
886 PR tree-optimization/67984
887 * graphite-isl-ast-to-gimple.c (is_constant): New.
888 (get_rename): Call is_constant.
889 (get_new_name): Same.
891 2015-11-24 Aditya Kumar <aditya.k7@samsung.com>
892 Sebastian Pop <s.pop@samsung.com>
894 * graphite-dependences.c: Only include graphite.h.
895 * graphite-isl-ast-to-gimple.c: Same.
896 * graphite-optimize-isl.c: Same.
897 * graphite-poly.c: Same.
898 * graphite-scop-detection.c: Same.
899 * graphite-sese-to-poly.c: Same.
901 * graphite-isl-ast-to-gimple.h: Move to graphite.h.
902 * graphite-poly.h: Same.
903 * graphite-scop-detection.h: Same.
906 2015-11-24 Pierre-Marie de Rodat <derodat@adacore.com>
908 * dwarf2out.c (gen_decl_die): Generate DW_TAG_imported_* instead of
909 DW_TAG_namespace for IMPORTED_DECL declarations. Call
910 dwarf2out_imported_module_or_decl_1 for all DWARF versions as this
911 function already takes care of checking what it can emit.
913 2015-11-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
915 * doc/invoke.texi (-fpic): Add the AArch64 limit.
916 (-fPIC): Add AArch64.
918 2015-11-24 Tom de Vries <tom@codesourcery.com>
920 * tree-ssa-loop-im.c (tree_ssa_lim): Make static.
921 (pass_lim::execute): Allow to run outside pass_tree_loop.
923 2015-11-24 Wilco Dijkstra <wdijkstr@arm.com>
925 * config/aarch64/aarch64.md (add<mode>3):
926 Block early expansion into 2 add instructions.
927 (add<mode>3_pluslong): New pattern to combine complex
928 immediates into 2 additions.
930 2015-11-24 Segher Boessenkool <segher@kernel.crashing.org>
935 * config/rs6000/predicates.md (and_operand): Check that the operand
936 is a const_int before calling rs6000_is_valid_and_mask.
938 2015-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
940 * config/aarch64/aarch64.md (*condjump): Rename to...
941 (condjump): ... This.
942 (*compare_condjump<mode>): New define_insn_and_split.
943 (*compare_cstore<mode>_insn): Likewise.
944 (*cstore<mode>_insn): Rename to...
945 (cstore<mode>_insn): ... This.
946 * config/aarch64/iterators.md (CMP): Handle ne code.
947 * config/aarch64/predicates.md (aarch64_imm24): New predicate.
949 2015-11-24 Mikhail Maltsev <maltsevm@gmail.com>
952 * config/i386/i386.c (output_387_binary_op): Fix assertion for
955 2015-11-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
957 * tree-ssa-uncprop.c (struct val_ssa_equiv_hash_traits): Remove.
958 (val_ssa_equiv_hash_traits::remove): Likewise.
959 (pass_uncprop::execute): Adjust.
961 2015-11-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
963 * hash-map-traits.h (simple_hashmap_traits ::remove): call
964 destructors on values that are being removed.
965 * mem-stats.h (hash_map): Pass type of values to
966 simple_hashmap_traits.
967 * tree-sra.c (sra_deinitialize): Remove work around for hash
968 maps not destructing values.
969 * genmatch.c (sinfo_hashmap_traits): Adjust.
970 * tree-ssa-uncprop.c (val_ssa_equiv_hash_traits): Likewise.
972 2015-11-24 Richard Biener <rguenther@suse.de>
973 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
976 * cfgloop.c (get_loop_body_in_bfs_order): Restructure loop to avoid
979 2015-11-24 Jakub Jelinek <jakub@redhat.com>
982 * tree-vect-generic.c (lower_vec_perm): If VEC_PERM_EXPR
983 is valid vec_shr pattern, don't lower it even if can_vec_perm_p
985 * optabs.c (shift_amt_for_vec_perm_mask): Return NULL_RTX
986 whenever first is nelt or above. Don't mask expected with
989 2015-11-24 Ilya Enkovich <enkovich.gnu@gmail.com>
992 * gimple-fold.c: Include ipa-chkp.h.
993 (gimple_fold_builtin_memory_op): Don't fold call if we
994 are going to instrument it and it may copy pointers.
996 2015-11-24 Bernd Schmidt <bschmidt@redhat.com>
997 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
999 PR rtl-optimization/68194
1000 PR rtl-optimization/68328
1001 PR rtl-optimization/68185
1002 * ree.c (combine_reaching_defs): Reject copy_needed case if
1003 copies_list is not empty.
1005 2015-11-24 Richard Biener <rguenther@suse.de>
1008 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Properly
1011 2015-11-24 Segher Boessenkool <segher@kernel.crashing.org>
1013 PR rtl-optimization/68381
1014 * combine.c (is_parallel_of_n_reg_sets): Return false if the pattern
1017 2015-11-23 Nick Clifton <nickc@redhat.com>
1018 Jeff Law <law@redhat.com>
1020 * ree.c (add_removable_extension): Avoid mis-optimizing cases where
1021 the source/dest of the target extension require a different number of
1023 (combine_set_extension): Remove #if 0 code.
1025 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
1026 Sebastian Pop <s.pop@samsung.com>
1028 PR tree-optimization/68314
1029 * graphite-optimize-isl.c (optimize_isl): Do not call isl_union_map_is_equal.
1030 * graphite-poly.c (new_scop): Remove original_schedule.
1032 * graphite-poly.h (struct scop): Same.
1033 * graphite-sese-to-poly.c (build_pbb_minimal_scattering_polyhedrons): Remove.
1034 (build_pbb_scattering_polyhedrons): Add back.
1035 (build_scop_minimal_scattering): Remove.
1036 (build_scop_scattering): Add back.
1037 (build_scop_original_schedule): Remove.
1038 (build_poly_scop): Revert to only call build_scop_scattering.
1040 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
1041 Sebastian Pop <s.pop@samsung.com>
1043 PR tree-optimization/68493
1044 * graphite-isl-ast-to-gimple.c (translate_pending_phi_nodes): Add
1045 missing early return when codegen_error is set.
1047 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
1048 Sebastian Pop <s.pop@samsung.com>
1050 PR tree-optimization/68279
1051 * graphite-poly.c (new_scop): Remove poly_scop_p.
1052 * graphite-poly.h (struct scop): Same.
1053 (build_poly_scop): Declare.
1054 * graphite-sese-to-poly.c: Do not include graphite-sese-to-poly.h.
1055 (cleanup_loop_iter_dom): New.
1056 (build_loop_iteration_domains): Early return when scev analysis fails.
1057 (create_pw_aff_from_tree): Same.
1058 (add_condition_to_pbb): Same.
1059 (add_conditions_to_domain): Same.
1060 (add_conditions_to_constraints): Same.
1061 (build_scop_iteration_domain): Same.
1062 (build_poly_scop): Same. Do not initialize poly_scop_p.
1063 * graphite-sese-to-poly.h: Remove.
1064 * graphite.c: Do not include graphite-sese-to-poly.h.
1065 (graphite_transform_loops): Stop before code generation when
1066 build_poly_scop fails.
1067 * sese.c (scalar_evolution_in_region): Add fixme note about scev
1070 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
1071 Sebastian Pop <s.pop@samsung.com>
1073 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
1074 Remove call to update_ssa.
1075 * sese.c (sese_insert_phis_for_liveouts): Same.
1077 2015-11-23 Marek Polacek <polacek@redhat.com>
1079 PR tree-optimization/68455
1080 * tree-vrp.c (extract_range_from_binary_expr_1): Don't call
1081 extract_range_from_multiplicative_op_1 on symbolic ranges.
1083 2015-11-23 Richard Henderson <rth@redhat.com>
1085 * optabs.def (uaddv4_optab, usubv4_optab): New.
1086 * internal-fn.c (expand_addsub_overflow): Use them.
1087 * doc/md.texi (Standard Names): Add uaddv<m>4, usubv<m>4.
1089 * config/i386/i386.c (ix86_cc_mode): Extend add overflow check
1090 to reversed operands.
1091 * config/i386/i386.md (uaddv<SWI>4, usubv<SWI>4): New.
1092 (*add<SWI>3_cconly_overflow_1): Rename *add<SWI>3_cconly_overflow.
1093 (*add<SWI>3_cc_overflow_1): Rename *add<SWI>3_cc_overflow.
1094 (*addsi3_zext_cc_overflow_1): Rename *add3_zext_cc_overflow.
1095 (*add<SWI>3_cconly_overflow_2): New.
1096 (*add<SWI>3_cc_overflow_2): New.
1097 (*addsi3_zext_cc_overflow_2): New.
1099 2015-11-23 Richard Biener <rguenther@suse.de>
1101 PR tree-optimization/68465
1102 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children):
1103 Also record equalities from multiple predecessor blocks if
1104 only one non-backedge exists.
1106 2015-11-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1109 * config/aarch64/aarch64.c (aarch64_madd_needs_nop): Reject arguments
1110 that are not INSN_P.
1112 2015-11-23 Bilyan Borisov <bilyan.borisov@arm.com>
1114 * config/aarch64/aarch64-builtins.c
1115 (aarch64_gimple_fold_builtin): Fold FMULX.
1117 2015-11-23 David Edelsohn <dje.gcc@gmail.com>
1119 * system.h: Don't poison calloc and strdup if USES_ISL is defined.
1120 * graphite-dependences.c: Define USES_ISL. Include ISL header files
1121 after GCC header files and before graphite header files.
1122 * graphite-dependences.c: Same.
1123 * graphite-isl-ast-to-gimple.c: Same.
1124 * graphite-optimize-isl.c: Same.
1125 * graphite-poly.c: Same.
1126 * graphite-scop-detection.c: Same.
1127 * graphite-sese-to-poly.c: Same.
1130 2015-11-23 Richard Biener <rguenth@gcc.gnu.org>
1131 Jiong Wang <jiong.wang@arm.com>
1133 PR tree-optimization/68317
1134 PR tree-optimization/68326
1135 * tree-vrp.c (adjust_range_with_scev): Call drop_tree_overflow if the
1136 final min and max are not infinity.
1138 2015-11-23 Ilya Enkovich <enkovich.gnu@gmail.com>
1139 Richard Biener <rguenther@suse.de>
1141 PR tree-optimization/68327
1142 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
1143 compute vectype for non-relevant mask producers.
1144 * tree-vect-stmts.c (vectorizable_comparison): Check stmt
1147 2015-11-23 Tom de Vries <tom@codesourcery.com>
1149 PR tree-optimization/68460
1150 * tree-parloops.c (gather_scalar_reductions): Also call
1151 free_stmt_vec_info_vec if simple_loop_info == NULL.
1153 2015-11-23 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
1155 * opts.c (finish_options): Allow -fsanitize-recover=address for
1156 userspace sanitization.
1157 * asan.c (asan_expand_check_ifn): Redefine recover_p.
1158 * doc/invoke.texi (fsanitize-recover): Update documentation.
1160 2015-11-23 Tom de Vries <tom@codesourcery.com>
1162 * omp-low.c (build_receiver_ref): Mark by_ref mem_ref as non-trapping.
1164 2015-11-23 Richard Biener <rguenther@suse.de>
1166 PR tree-optimization/68445
1167 * tree-vect-slp.c (vect_create_mask_and_perm): Properly use
1168 two different strides.
1170 2015-11-23 Robin Dapp <rdapp@linux.vnet.ibm.com>
1172 * config/s390/s390.h: Add new symref flags, _NOTALIGN2 etc.
1173 * config/s390/s390.c (s390_check_symref_alignment): Use new
1174 symref flags, early abort on wrong alignment
1175 (s390_secondary_reload): Use new symref flags.
1176 (s390_encode_section_info): Likewise.
1177 * config/s390/predicates.md: Likewise.
1179 2015-11-23 Kugan Vivekanandarajah <kuganv@linaro.org>
1182 * config/arm/arm.c (arm_function_ok_for_sibcall): Get function type
1183 for indirect function call.
1185 2015-11-22 Bilyan Borisov <bilyan.borisov@arm.com>
1187 * config/aarch64/aarch64-simd.md
1188 (*aarch64_mulx_elt_<vswap_width_name><mode>, VDQSF): New.
1189 (*aarch64_mulx_elt<mode>, VDQF): Likewise.
1190 (*aarch64_mulx_elt_to_64v2df): Likewise.
1191 (*aarch64_vgetfmulx<mode>, VDQF_DF): Likewise.
1192 * config/aarch64/arm_neon.h (vmulx_lane_f32): New.
1193 (vmulx_lane_f64): Likewise.
1194 (vmulxq_lane_f32): Refactored & moved.
1195 (vmulxq_lane_f64): Likewise.
1196 (vmulx_laneq_f32): New.
1197 (vmulx_laneq_f64): Likewise.
1198 (vmulxq_laneq_f32): Likewise.
1199 (vmulxq_laneq_f64): Likewise.
1200 (vmulxs_lane_f32): Likewise.
1201 (vmulxs_laneq_f32): Likewise.
1202 (vmulxd_lane_f64): Likewise.
1203 (vmulxd_laneq_f64): Likewise.
1205 2015-11-21 Jan Hubicka <hubicka@ucw.cz>
1207 * tree.c (build_pointer_type_for_mode,build_reference_type_for_mode):
1208 In LTO we do not compute TYPE_CANONICAL of pointers.
1209 (gimple_canonical_types_compatible_p): Improve coments; sanity check
1210 that pointers do not have canonical type that would make us believe
1212 * alias.c (get_alias_set): Do structural type equality on pointers;
1213 enable pointer path for LTO; also glob pointer to vector with pointer
1214 to vector element; glob pointers and references for LTO; do more strict
1215 sanity checking about build_pointer_type returning the canonical type
1216 which is also the main variant.
1217 (record_component_aliases): When component type is pointer and we
1218 do LTO; record void_type_node alias set.
1220 2015-11-21 Nathan Sidwell <nathan@acm.org>
1222 * config/nvptx/nvptx.md (clz<mode>2): Use operand 1 for type.
1224 * config/nvptx/nvptx.c (write_function_decl_and_comment): Print
1226 (write_func_decl_from_insn): Likewise.
1227 (init_output_initializer, nvptx_assemble_undefined_decl): Likewise.
1228 (nvptx_file_end): Likewise.
1229 (nvptx_function_end): Undent output.
1230 (nvptx_expand_call): Fix formatting.
1231 (nvptx_output_call_insn): Indent output.
1232 * config/nvptx/nvptx.h (ASM_OUTPUT_ALIGNED_DECL_COMMON,
1233 ASM__OUTPUT_ALIGNED_DECL_LOCAL): Print leading blank line.
1235 2015-11-21 Jakub Jelinek <jakub@redhat.com>
1238 * tree-inline.c (copy_debug_stmt): If
1239 gimple_debug_source_bind_get_value is DECL_ORIGIN of a PARM_DECL
1240 in decl_debug_args, don't call remap_gimple_op_r on it.
1242 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
1244 * ipa-icf.c (sem_item::add_type): Do not look for TYPE_CANONICAL;
1245 do not check AGGREGATE_TYPE_P when adding TYPE_MODE;
1246 Check that all record types are complete.
1247 * ipa-icf-gimple.c (func_checker::compatible_types_p): Do not
1248 compare alias sets for types w/o alias sets.
1250 2015-11-20 Eric Botcazou <ebotcazou@adacore.com>
1252 * config/sparc/sparc.md (umulxhi_vis): Move around.
1253 (*umulxhi_sp64): Likewise.
1254 (umulxhi_v8plus): Likewise.
1255 (xmulx_vis): Likewise.
1256 (*xmulx_sp64): Likewise.
1257 (xmulx_v8plus): Likewise.
1258 (xmulxhi_vis): Likewise.
1259 (*xmulxhi_sp64): Likewise.
1260 (xmulxhi_v8plus): Likewise.
1262 2015-11-20 David Malcolm <dmalcolm@redhat.com>
1265 * diagnostic-show-locus.c (colorizer::set_fixit_hint): New.
1266 (class layout): Update comment
1267 (layout::print_any_fixits): New method.
1268 (layout::move_to_column): New method.
1269 (diagnostic_show_locus): Add call to layout.print_any_fixits.
1271 2015-11-20 Jakub Jelinek <jakub@redhat.com>
1274 * omp-low.c (lower_rec_input_clauses): If C/C++ array reduction
1275 has non-zero bias, subtract it in integer type instead of
1276 pointer plus of negated bias.
1279 * omp-low.c (expand_simd_clones): Call node->get_body () before
1280 allocating stuff in GC.
1282 2015-11-20 Jim Wilson <jim.wilson@linaro.org>
1284 * tree-vect-data-refs.c (compare_tree): Call STRIP_NOPS.
1286 2015-11-20 Evandro Menezes <e.menezes@samsung.com>
1288 * config/aarch64/aarch64.md (predicated): Copy attribute from
1290 * config/arm/arm.md (predicated): Added description.
1292 2015-11-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1294 * config/arm/arm.c (arm_option_override): Require TARGET_32BIT
1295 for unaligned_access.
1296 * config/arm/arm.md (unaligned_loadsi): Remove redundant TARGET_32BIT
1297 from matching condition.
1298 (unaligned_loadhis): Likewise.
1299 (unaligned_loadhiu): Likewise.
1300 (unaligned_storesi): Likewise.
1301 (unaligned_storehi): Likewise.
1303 2015-11-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1306 * config/arm/arm.md (unaligned_loaddi): Delete.
1307 (unaligned_storedi): Likewise.
1308 * config/arm/arm.c (gen_movmem_ldrd_strd): Don't generate
1309 unaligned DImode memory ops. Instead perform two back-to-back
1310 unaligned SImode ops.
1312 2015-11-20 Nathan Sidwell <nathan@codesourcery.com>
1313 James Norris <jnorris@codesourcery.com>
1315 * config/nvptx/nvptx.c (nvptx_use_anchors_for_symbol_p): New.
1316 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Override.
1318 2015-11-20 Alan Hayward <alan.hayward@arm.com>
1320 PR tree-optimization/68413
1321 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Cache
1323 (vectorizable_reduction): Use cached base
1325 2015-11-20 Tom de Vries <tom@codesourcery.com>
1327 * tree-parloops.c (build_new_reduction): Fix trailing whitespace in
1329 (try_create_reduction_list): Same. Fix typo in dump-file string.
1331 2015-11-20 Eric Botcazou <ebotcazou@adacore.com>
1333 * doc/md.texi (Standard Names): Move entry for addptr3 around,
1334 add entries for addv4, subv4, mulv4, umulv4 and negv3, fixes
1335 glitch in entries for cbranch4 and jump.
1337 2015-11-20 Tom de Vries <tom@codesourcery.com>
1339 PR tree-optimization/68373
1340 * tree-scalar-evolution.c (final_value_replacement_loop): Factor out
1342 (scev_const_prop): ... here.
1343 * tree-scalar-evolution.h (final_value_replacement_loop): Declare.
1344 * tree-parloops.c (try_create_reduction_list): Call
1345 final_value_replacement_loop.
1347 2015-11-20 Bin Cheng <bin.cheng@arm.com>
1349 PR tree-optimization/52272
1350 * tree-ssa-loop-ivopts.c (struct iv_common_cand): New struct.
1351 (struct iv_common_cand_hasher): New struct.
1352 (iv_common_cand_hasher::hash): New function.
1353 (iv_common_cand_hasher::equal): New function.
1354 (struct ivopts_data): New fields, iv_common_cand_tab and
1356 (tree_ssa_iv_optimize_init): Initialize above fields.
1357 (record_common_cand, common_cand_cmp): New functions.
1358 (add_iv_candidate_derived_from_uses): New function.
1359 (add_iv_candidate_for_use): Record iv_common_cands derived from
1360 iv use in hash table, instead of adding candidates directly.
1361 (add_iv_candidate_for_uses): Call add_iv_candidate_derived_from_uses.
1362 (record_important_candidates): Add important candidates to iv uses'
1363 related_cands. Always keep related_cands for future use.
1364 (try_add_cand_for): Use iv uses' related_cands.
1365 (free_loop_data, tree_ssa_iv_optimize_finalize): Release new fields
1366 in struct ivopts_data, iv_common_cand_tab and iv_common_cands.
1368 2015-11-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1370 * config/s390/s390.md ("bswaphi2"): New pattern.
1372 2015-11-20 Dominik Vogt <vogt@linux.vnet.ibm.com>
1374 * config/s390/s390.md (GPR1_REGNUM): New constant.
1375 ("*trunc<BFP:mode><DFP_ALL:mode>2")
1376 ("*trunc<DFP_ALL:mode><BFP:mode>2")
1377 ("trunc<BFP:mode><DFP_ALL:mode>2")
1378 ("trunc<DFP_ALL:mode><BFP:mode>2")
1379 ("*extend<BFP:mode><DFP_ALL:mode>2")
1380 ("*extend<DFP_ALL:mode><BFP:mode>2")
1381 ("extend<BFP:mode><DFP_ALL:mode>2")
1382 ("extend<DFP_ALL:mode><BFP:mode>2"): Clobber r1.
1384 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
1385 Sebastian Pop <s.pop@samsung.com>
1387 PR tree-optimization/68428
1388 * graphite-scop-detection.c (harmful_stmt_in_region): Do not iterate
1389 over basic blocks outside the scop.
1391 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
1392 Sebastian Pop <s.pop@samsung.com>
1394 PR tree-optimization/68341
1395 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Remove
1396 gcc_unreachable and safely fail codegen.
1397 (copy_loop_close_phi_args): Do not insert merge phis in a basic
1398 block with loop phi nodes.
1399 (edge_for_new_close_phis): New.
1400 (copy_bb_and_scalar_dependences): Call edge_for_new_close_phis.
1402 2015-11-19 Nathan Sidwell <nathan@acm.org>
1404 * config/nvptx/nvptx.h (SUPPORTS_WEAK): Define.
1405 * config/nvptx/nvptx.c (nvptx_write_function_decl): Support DECL_WEAK.
1406 (nvptx_declare_objec_name): Likewise.
1408 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
1410 * graphite-isl-ast-to-gimple.c (get_true_edge_from_guard_bb): Move...
1411 (get_false_edge_from_guard_bb): Move...
1412 * sese.c (get_false_edge_from_guard_bb)
1413 (get_true_edge_from_guard_bb): ... here.
1415 2015-11-19 David Edelsohn <dje.gcc@gmail.com>
1418 2015-11-18 Alan Modra <amodra@gmail.com>
1420 * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
1421 type-limits warning.
1424 2015-11-19 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1426 * tree.h (desired_pro_or_demotion_p): New function.
1427 * tree-vrp.c (simplify_cond_using_ranges): Call it.
1429 2015-11-19 Michael Matz <matz@suse.de>
1431 * fwprop.c (update_uses): Use flag_checking instead of
1432 gcc_checking_assert.
1434 2015-11-19 David Malcolm <dmalcolm@redhat.com>
1436 * doc/gty.texi (Support for inheritance): Fix missing
1437 parentheses in example.
1439 2015-11-19 Marek Polacek <polacek@redhat.com>
1441 PR tree-optimization/68431
1442 * tree-vrp.c (extract_range_from_binary_expr_1): Fix condition.
1444 2015-11-19 Nathan Sidwell <nathan@acm.org>
1446 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>_1,
1447 atomic_exchange<mode>): Input values can be immediates.
1449 2015-11-19 Eric Botcazou <ebotcazou@adacore.com>
1452 * configure.ac (PLUGIN_LD_SUFFIX): Do not touch the value specified
1454 * configure: Regenerate.
1456 2015-11-19 Eric Botcazou <ebotcazou@adacore.com>
1459 * config/sparc/sp-elf.h (CTORS_SECTION_ASM_OP): Undefine.
1460 (DTORS_SECTION_ASM_OP): Likewise.
1462 2015-11-19 Jakub Jelinek <jakub@redhat.com>
1464 PR rtl-optimization/68376
1465 * ifcvt.c (noce_try_abs): Disable one_cmpl optimization if
1466 encountering x <= 0 ? ~x : x or x > 0 ? ~x : x.
1468 2015-11-19 Richard Biener <rguenther@suse.de>
1471 * tree-ssa.c (delete_tree_ssa): Revert removal of call to
1472 redirect_edge_var_map_destroy.
1474 2015-11-19 Jakub Jelinek <jakub@redhat.com>
1477 * config/i386/i386.md (simple_return): Disable if
1478 ix86_static_chain_on_stack is true.
1480 2015-11-19 Richard Sandiford <richard.sandiford@arm.com>
1483 * internal-fn.c (expand_direct_optab_fn): Handle SUBREG_PROMOTED_VAR_P
1486 2015-11-18 Jeff Law <law@redhat.com>
1488 PR tree-optimization/68198
1489 * tree-ssa-threadupdate.c (valid_jump_thread_path): Distinguish
1490 between threading a multi-way branch and a thread path that contains
1491 a multi-way branch. Disallow the case where a path contains a
1492 multi-way branch and does not thread a multi-way branch.
1493 (thread_through_all_blocks): Update comment.
1495 2015-11-18 Joseph Myers <joseph@codesourcery.com>
1498 * ginclude/stdatomic.h (atomic_thread_fence, atomic_signal_fence)
1499 (atomic_flag_test_and_set, atomic_flag_test_and_set_explicit)
1500 (atomic_flag_clear, atomic_flag_clear_explicit): Declare as
1501 functions before defining as macros.
1503 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
1505 * config/nvptx/nvptx.c (nvptx_process_pars): Fix whitespace.
1506 (nvptx_record_offload_symbol): Remove code compensating for lack
1507 of default dimension handling.
1508 (nvptx_goacc_validate_dims): Remove incorrect ARG_UNUSED markers.
1510 2015-11-18 Aditya Kumar <aditya.k7@samsung.com>
1512 * graphite-isl-ast-to-gimple.c (copy_loop_phi_args): Change the return
1513 type to bool for early exit.
1514 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Early return
1516 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
1517 (add_phi_arg_for_new_expr): Enable codegen for if-block where one
1518 predecessor dominates the other.
1519 (translate_isl_ast_to_gimple::copy_cond_phi_args): Fix. When the
1520 element is not found it returns -1.
1521 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Bail
1522 out early when codegen fails.
1523 (graphite_regenerate_ast_isl): Remove codegen region when pending
1524 phis could not be generated.
1526 2015-11-18 Aditya Kumar <aditya.k7@samsung.com>
1528 * graphite-isl-ast-to-gimple.c (struct ast_build_info): Remove
1530 (class translate_isl_ast_to_gimple): Indentation.
1531 (translate_pending_phi_nodes): Comment.
1532 (add_parameters_to_ivs_params): Moved from sese.c inside class
1533 translate_isl_ast_to_gimple.
1534 (get_max_schedule_dimensions): Same.
1535 (generate_isl_context): Same.
1536 (extend_schedule): Same.
1537 (generate_isl_schedule): Same.
1538 (set_options): Same.
1539 (scop_to_isl_ast): Same.
1540 (is_valid_rename): Same.
1542 (get_rename_from_scev): Same.
1543 (get_def_bb_for_const): Same.
1544 (get_new_name): Same.
1545 (collect_all_ssa_names): Same.
1546 (copy_loop_phi_args): Same.
1547 (copy_loop_phi_nodes): Same.
1548 (copy_loop_close_phi_args): Same.
1549 (copy_loop_close_phi_nodes): Same.
1550 (copy_cond_phi_args): Same.
1551 (copy_cond_phi_nodes): Same.
1552 (graphite_copy_stmts_from_block): Same.
1553 (copy_bb_and_scalar_dependences): Same.
1554 (add_phi_arg_for_new_expr): Same.
1555 (rename_uses): Same.
1557 (set_rename_for_each_def): Same.
1558 (gsi_insert_earliest): Same.
1559 (rename_all_uses): Same.
1560 (codegen_error_p): Same.
1561 (print_isl_ast_node): Same.
1562 (translate_isl_ast_for_loop): Call function codegen_error_p.
1563 (translate_isl_ast_to_gimple::translate_isl_ast): Same.
1564 (translate_isl_ast_node_user): Make nb_loops const and release
1566 (get_true_edge_from_guard_bb): Move all free-functions early.
1567 (get_false_edge_from_guard_bb): Same.
1568 (bb_contains_loop_close_phi_nodes): Same.
1569 (bb_contains_loop_phi_nodes): Same.
1570 (is_loop_closed_ssa_use): Same.
1571 (number_of_phi_nodes): Same.
1572 (phi_uses_name): Same.
1573 (later_of_the_two): Same.
1574 (substitute_ssa_name):
1577 (get_loop_init_value): Same.
1578 (find_init_value): Same.
1579 (find_init_value_close_phi): Same.
1580 (ast_build_before_for): Same.
1581 (graphite_regenerate_ast_isl): Formatting changes.
1582 * graphite-scop-detection.c (build_cross_bb_scalars_use): Same.
1583 * sese.c (get_rename): Move to graphite-isl-ast-to-gimple.c
1585 (gsi_insert_earliest): Same.
1586 (collect_all_ssa_names): Same.
1587 (rename_all_uses): Same.
1588 (rename_uses): Same.
1589 (get_def_bb_for_const): Same.
1590 (copy_loop_phi_nodes): Same.
1591 (copy_loop_close_phi_args): Same.
1592 (copy_loop_close_phi_nodes): Same.
1593 (copy_cond_phi_args): Same.
1594 (copy_cond_phi_nodes): Same.
1595 (set_rename_for_each_def): Same.
1596 (graphite_copy_stmts_from_block): Same.
1597 (copy_bb_and_scalar_dependences): Same.
1598 (if_region_set_false_region): Same.
1599 (scev_analyzable_p): Same.
1600 * sese.h: Delete extern functions moved to graphite-isl-ast-to-gimple.c.
1602 2015-11-18 Andreas Tobler <andreast@gcc.gnu.org>
1604 * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Bring in the
1605 commit from r125920 for FreeBSD.
1607 2015-11-18 Jason Merrill <jason@redhat.com>
1609 * ggc-page.c (ggc_globals): Change finalizers and vec_finalizers
1611 (add_finalizer): Split out from ggc_internal_alloc.
1612 (ggc_handle_finalizers): Run finalizers for the current depth.
1613 (init_ggc, ggc_pch_read): Reserve space for finalizers.
1615 2015-11-18 Sandra Loosemore <sandra@codesourcery.com>
1618 * config/nios2/nios2.c (cdx_and_immed): Remove duplicate tests
1621 2015-11-18 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
1623 * config/avr/avr-mcus.def: Add new avr4 devices atmega48pb and
1624 atmega88pb. Add new avr5 devices ata5791, ata8210, ata8510, atmega168pb
1626 * doc/avr-mmcu.texi: Regenerate.
1628 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
1630 * config/nvptx/nvptx.c (bb_pair_t, bb_pair_vec_t): New types.
1631 (pseudo_node_t, struct bracket, bracket_vec_t): New types.
1632 (struct bb_sese): New struct.
1633 (bb_sese::~bb_sese, bb_sese::append, bb_sese::remove): New.
1634 (BB_GET_SESE, BB_SET_SESE): Define.
1635 (nvptx_sese_number, nvptx_sese_pseudo, nvptx_sese_color): New.
1636 (nvptx_find_sese): New.
1637 (nvptx_neuter_pars): Find SESE regions when optimizing.
1639 2015-11-18 Alan Modra <amodra@gmail.com>
1641 * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
1642 type-limits warning.
1644 2015-11-18 Richard Sandiford <richard.sandiford@arm.com>
1647 * hash-set.h (hash_set::traverse): Expand Key typedef.
1649 2015-11-18 Martin Liska <mliska@suse.cz>
1651 * config/arm/arm.c (arm_valid_target_attribute_p): Finalize
1654 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
1656 * config/nvptx/nvptx.c (global_lock_var): New.
1657 (nvptx_global_lock_addr): New.
1658 (nvptx_lockless_update): Recomment and adjust for clarity.
1659 (nvptx_lockfull_update): New.
1660 (nvptx_reduction_update): New.
1661 (nvptx_goacc_reduction_fini): Call it.
1663 2015-11-18 Bernd Schmidt <bschmidt@redhat.com>
1665 * regrename.h (struct du_head): Add target_data_1 and target_data_2
1667 * regrename.c (create_new_chain): Clear entire struct after allocating.
1669 * config/i386/i386.opt (mmitigate-rop): New option.
1670 * doc/invoke.texi (mmitigate-rop): Document.
1671 * config/i386/i386.c: Include "regrename.h".
1672 (ix86_rop_should_change_byte_p, reg_encoded_number,
1673 ix86_get_modrm_for_rop, set_rop_modrm_reg_bits, ix86_mitigate_rop): New
1675 (ix86_reorg): Call ix86_mitigate_rop if -fmitigate-rop.
1676 * config/i386/i386.md (attr "modrm_class"): New.
1677 (cmp<mode>_ccno_1, mov<mode>_xor, movstrict<mode>_xor,
1678 x86_mov<mode>cc_0_m1. x86_mov<mode>cc_0_m1_se)
1679 (x86_mov<mode>cc_0_m1_neg): Override modrm_class attribute.
1681 2015-11-18 Ilya Enkovich <enkovich.gnu@gmail.com>
1684 * config/i386/i386.c (ix86_expand_mask_vec_cmp): Add missing break.
1686 2015-11-18 Jakub Jelinek <jakub@redhat.com>
1688 PR tree-optimization/68157
1689 * tree-ssa-reassoc.c (attempt_builtin_powi): Set uid of
1690 pow_stmt or mul_stmt from stmt's uid.
1691 (reassociate_bb): Set uid of mul_stmt from stmt's uid.
1693 2015-11-18 Martin Liska <mliska@suse.cz>
1695 * haifa-sched.c (haifa_finish_h_i_d): Release reg_set_list.
1697 2015-11-18 Martin Liska <mliska@suse.cz>
1699 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
1700 Fix GNU coding style.
1701 (find_def_preds): Use auto_vec.
1702 (destroy_predicate_vecs): Change signature of the function.
1703 (prune_uninit_phi_opnds_in_unrealizable_paths): Use the
1705 (simplify_preds_4): Use destroy_predicate_vecs instread of
1706 just releasing preds vector.
1707 (normalize_preds): Likewise.
1708 (is_use_properly_guarded): Use new signature of
1709 destroy_predicate_vecs.
1710 (find_uninit_use): Likewise.
1712 2015-11-18 Richard Biener <rguenther@suse.de>
1714 PR tree-optimization/67790
1715 * tree-vect-loop.c (vect_is_simple_reduction_1): Remove
1716 IL rewrite for MINUS_EXPR reductions, rename back to ...
1717 (vect_is_simple_reduction): ... this, removing the wrapper.
1718 (vect_force_simple_reduction): Adjust.
1719 (vectorizable_reduction): Adjust reduc_index for MINUS_EXPR
1720 reductions and make use if reduc_index in all places. For
1721 the final reduction of MINUS_EXPR use PLUS_EXPR.
1723 2015-11-18 Alan Modra <amodra@gmail.com>
1725 * configure.ac (POWERPC64_TOC_POINTER_ALIGNMENT): Pass -z norelro
1727 * configure: Regenerate.
1729 2015-11-17 Tom de Vries <tom@codesourcery.com>
1731 * tree-ssa-loop.c (pass_tree_loop_init::execute): Improve comments.
1733 2015-11-17 Tom de Vries <tom@codesourcery.com>
1735 * tree-scalar-evolution.c (scev_const_prop): Dump details if replacing
1736 uses of ssa_name with constant.
1738 2015-11-17 Tom de Vries <tom@codesourcery.com>
1740 * tree-ssa-ccp.c (do_ssa_ccp): Clear LOOP_CLOSED_SSA in loops state if
1743 2015-11-17 Tom de Vries <tom@codesourcery.com>
1745 * cfgloop.h (struct loop): Add in_oacc_kernels_region field.
1746 * omp-low.c (mark_loops_in_oacc_kernels_region): New function.
1747 (expand_omp_target): Call mark_loops_in_oacc_kernels_region.
1749 2015-11-17 Bernd Schmidt <bschmidt@redhat.com>
1751 * regrename.c (regrename_find_superclass): New function, code moved
1753 (rename_chains): ... here. Call it.
1754 * regrename.h (regrename_find_superclass): Declare.
1756 * regrename.c (record_out_operands): Terminate earlyclobbered
1760 * regrename.c (record_operand_use): Keep track of failed operands
1761 and stop appending if we see any.
1762 * regrename.h (struct operand_rr_info): Add a failed field and shrink
1765 2015-11-17 Sandra Loosemore <sandra@codesourcery.com>
1768 * doc/extend.texi (Common Function Attributes) [visibility]:
1769 Add cross-references to matching variable and type attributes.
1770 (Common Variable Attributes) [visibility]: Add missing entry.
1772 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1774 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function): Remove
1775 entries that map directly to optabs.
1777 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1779 * config/i386/i386.c (ix86_builtin_vectorized_function): Remove
1780 entries that map directly to optabs.
1782 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1784 * internal-fn.h (direct_internal_fn_info): Add vectorizable flag.
1785 * internal-fn.c (direct_internal_fn_array): Update accordingly.
1786 * tree-vectorizer.h (vectorizable_function): Delete.
1787 * tree-vect-stmts.c: Include internal-fn.h.
1788 (vectorizable_internal_function): New function.
1789 (vectorizable_function): Inline into...
1790 (vectorizable_call): ...here. Explicitly reject calls that read
1791 from or write to memory. Try using an internal function before
1792 falling back on the old vectorizable_function behavior.
1794 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1796 * target.def (builtin_vectorized_function): Take a combined_fn (in
1797 the form of an unsigned int) rather than a function decl.
1798 (builtin_md_vectorized_function): New.
1799 * targhooks.h (default_builtin_vectorized_function): Replace the
1800 fndecl argument with an unsigned int.
1801 (default_builtin_md_vectorized_function): Declare.
1802 * targhooks.c (default_builtin_vectorized_function): Replace the
1803 fndecl argument with an unsigned int.
1804 (default_builtin_md_vectorized_function): New function.
1805 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION):
1807 * doc/tm.texi: Regenerate.
1808 * tree-vect-stmts.c (vectorizable_function): Update call to
1809 builtin_vectorized_function, also passing internal functions.
1810 Call builtin_md_vectorized_function for target-specific builtins.
1811 * config/aarch64/aarch64-protos.h
1812 (aarch64_builtin_vectorized_function): Replace fndecl argument
1813 with an unsigned int.
1814 * config/aarch64/aarch64-builtins.c: Include case-cfn-macros.h.
1815 (aarch64_builtin_vectorized_function): Update after above changes.
1817 * config/arm/arm-protos.h (arm_builtin_vectorized_function): Replace
1818 fndecl argument with an unsigned int.
1819 * config/arm/arm-builtins.c: Include case-cfn-macros.h
1820 (arm_builtin_vectorized_function): Update after above changes.
1822 * config/i386/i386.c: Include case-cfn-macros.h
1823 (ix86_veclib_handler): Take a combined_fn rather than a
1825 (ix86_veclibabi_svml, ix86_veclibabi_acml): Likewise. Use
1826 mathfn_built_in rather than calling builtin_decl_implicit directly.
1827 (ix86_builtin_vectorized_function) Update after above changes.
1829 * config/rs6000/rs6000.c: Include case-cfn-macros.h
1830 (rs6000_builtin_vectorized_libmass): Replace fndecl argument
1831 with a combined_fn. Use CASE_CFN_*. Use mathfn_built_in rather
1832 than calling builtin_decl_implicit directly.
1833 (rs6000_builtin_vectorized_function): Update after above changes.
1834 Use CASE_CFN_*. Move BUILT_IN_MD to...
1835 (rs6000_builtin_md_vectorized_function): ...this new function.
1836 (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION): Define.
1838 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1840 * tree-vect-patterns.c: Include internal-fn.h.
1841 (vect_recog_pow_pattern): Use IFN_SQRT instead of BUILT_IN_SQRT*.
1843 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1845 * tree.h (BUILTIN_EXP10_P, BUILTIN_EXPONENT_P, BUILTIN_SQRT_P)
1846 (BUILTIN_CBRT_P, BUILTIN_ROOT_P): Delete.
1848 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1850 * builtins.c (expand_errno_check, expand_builtin_mathfn)
1851 (expand_builtin_mathfn_2): Delete.
1852 (expand_builtin): Remove handling of functions with
1853 internal function equivalents.
1854 * internal-fn.def (SET_EDOM): New internal function.
1855 * internal-fn.h (set_edom_supported_p): Declare.
1856 * internal-fn.c (expand_SET_EDOM): New function.
1857 (set_edom_supported_p): Likewise.
1858 * tree-call-cdce.c: Include builtins.h and internal-fn.h.
1859 Rewrite comment at head of file.
1860 (is_call_dce_candidate): Rename to...
1861 (can_test_argument_range): ...this. Don't check gimple_call_lhs
1862 or gimple_call_builtin_p here.
1863 (edom_only_function): New function.
1864 (shrink_wrap_one_built_in_call_with_conds): New function, split out
1866 (shrink_wrap_one_built_in_call): ...here.
1867 (can_use_internal_fn, use_internal_fn): New functions.
1868 (shrink_wrap_conditional_dead_built_in_calls): Call use_internal_fn
1869 for calls that have an lhs.
1870 (pass_call_cdce::gate): Remove optimize_function_for_speed_p check.
1871 (pass_call_cdce::execute): Skip blocks that are optimized for size.
1872 Check gimple_call_builtin_p here. Use can_use_internal_fn for
1874 * opts.c (default_options_table): Enable -ftree-builtin-call-cdce
1877 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1879 * builtins.h (called_as_built_in): Declare.
1880 * builtins.c (called_as_built_in): Make external.
1881 * internal-fn.h (expand_internal_call): Define a variant that
1882 specifies the internal function explicitly.
1883 * internal-fn.c (expand_load_lanes_optab_fn)
1884 (expand_store_lanes_optab_fn, expand_ANNOTATE, expand_GOMP_SIMD_LANE)
1885 (expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE)
1886 (expand_GOMP_SIMD_ORDERED_START, expand_GOMP_SIMD_ORDERED_END)
1887 (expand_UBSAN_NULL, expand_UBSAN_BOUNDS, expand_UBSAN_VPTR)
1888 (expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK, expand_TSAN_FUNC_EXIT)
1889 (expand_UBSAN_CHECK_ADD, expand_UBSAN_CHECK_SUB)
1890 (expand_UBSAN_CHECK_MUL, expand_ADD_OVERFLOW, expand_SUB_OVERFLOW)
1891 (expand_MUL_OVERFLOW, expand_LOOP_VECTORIZED)
1892 (expand_mask_load_optab_fn, expand_mask_store_optab_fn)
1893 (expand_ABNORMAL_DISPATCHER, expand_BUILTIN_EXPECT, expand_VA_ARG)
1894 (expand_UNIQUE, expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS)
1895 (expand_GOACC_LOOP, expand_GOACC_REDUCTION, expand_direct_optab_fn)
1896 (expand_unary_optab_fn, expand_binary_optab_fn): Add an internal_fn
1898 (internal_fn_expanders): Update prototype.
1899 (expand_internal_call): Define a variant that specifies the
1900 internal function explicitly. Use it to implement the previous
1902 * cfgexpand.c (expand_call_stmt): Try to expand calls to built-in
1903 functions as calls to internal functions.
1905 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1907 * Makefile.in (MOSTLYCLEANFILES): Add cfn-operators.pd.
1908 (generated_files): Likewise.
1909 (s-cfn-operators, cfn-operators.pd): New rules.
1910 (s-match): Depend on cfn-operators.pd.
1911 * gencfn-macros.c: Expand comment to describe -o behavior.
1912 (print_define_operator_list): New function.
1913 (main): Accept -o. Call print_define_operator_list.
1914 * genmatch.c (main): Add the current directory to the include path.
1915 * match.pd (DEFINE_MATH_FN): Delete. Include cfn-operators.pd
1918 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1920 * doc/match-and-simplify.texi: Document the "null" identifier.
1921 * genmatch.c (id_base::NULL_ID): New kind.
1922 (null_id): New variable.
1923 (get_operator): Add a parameter that says whether null identifiers
1925 (contains_id): New function.
1926 (lower_for): Skip substitutions that would have a null_id in
1927 either the match or the result.
1928 (parser::parse_for): Allow the null identifier to be used.
1929 (parser::parse_operator_list): Likewise.
1930 (main): Initialize null_id.
1932 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1934 * match.pd: Use HYPOT and COS rather than hypot and cos.
1935 Use CASE_CFN_* macros. Guard log/exp folds with
1936 SCALAR_FLOAT_TYPE_P.
1937 * genmatch.c (internal_fn): New enum.
1938 (fn_id::fn): Change to an unsigned int.
1939 (fn_id::fn_id): Accept internal_fn too.
1940 (add_builtin): Rename to...
1941 (add_function): ...this and turn into a template.
1942 (get_operator): Only try one variation if the original name fails.
1943 Only add _EXPR if the original name was all lower case.
1944 Try converting internal and built-in function names to their
1946 (expr::gen_transform): Use maybe_build_call_expr_loc for generic.
1947 (dt_simplify::gen_1): Likewise.
1948 (dt_node::gen_kids_1): Use gimple_call_combined_fn for gimple
1949 and get_call_combined_fn for generic.
1950 (dt_simplify::gen): Use combined_fn as the type of fn_ids.
1951 (decision_tree::gen): Likewise.
1952 (main): Use lower case in the strings for {VIEW_,}CONVERT[012].
1953 Use add_function rather than add_builtin. Register internal
1955 * generic-match-head.c: Include case-cfn-macros.h.
1956 * gimple-fold.c (replace_stmt_with_simplification): Use
1957 gimple_call_combined_fn to test whether we can keep an
1959 * gimple-match.h (code_helper): Replace built_in_function
1961 * gimple-match-head.c: Include fold-const-call.h, internal-fn.h
1962 and case-fn-macros.h.
1963 (gimple_resimplify1): Use fold_const_call.
1964 (gimple_resimplify2, gimple_resimplify3): Likewise.
1965 (build_call_internal, build_call): New functions.
1966 (maybe_push_res_to_seq): Use them.
1967 (gimple_simplify): Use fold_const_call. Set *rcode to a combined_fn
1968 rather than a built-in function.
1969 * tree.h (build_call_expr_internal_loc): Declare.
1970 (maybe_build_call_expr_loc): Likewise.
1971 * tree.c (build_call_expr_internal_loc_array): New function.
1972 (maybe_build_call_expr_loc): Likewise.
1974 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1976 * builtins.h (mathfn_built_in): Add a variant that takes
1978 * builtins.c: Include case-cfn-macros.h.
1979 (CASE_MATHFN): Use CASE_CFN_*.
1980 (CASE_MATHFN_REENT): Use CFN_ codes.
1981 (mathfn_built_in_2, mathfn_built_in_1): Replace built_in_function
1982 argument with a combined_fn.
1983 (mathfn_built_in): Add a variant that takes a combined_fn.
1984 (expand_builtin_int_roundingfn_2): Update callers accordingly.
1985 (fold_builtin_sincos, fold_builtin_classify): Likewise.
1987 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1989 * tree-vect-patterns.c: Include case-cfn-macros.h.
1990 (vect_recog_pow_pattern): Use combined_fn instead of built-in codes.
1992 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1994 * tree-ssa-math-opts.c: Include case-cfn-macros.h.
1995 (execute_cse_sincos_1): Use combined_fn instead of built-in codes.
1996 (pass_cse_sincos::execute): Likewise.
1998 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2000 * tree-ssa-reassoc.c: Include case-cfn-macros.h.
2001 (stmt_is_power_of_op): Use combined_fn instead of built-in codes.
2002 (decrement_power, acceptable_pow_call): Likewise.
2003 (attempt_builtin_copysign): Likewise.
2005 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2007 * tree-vrp.c: Include case-cfn-macros.h.
2008 (extract_range_basic): Switch on combined_fn rather than handling
2009 built-in functions and internal functions separately.
2011 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2013 * fold-const.h (negate_mathfn_p): Take a combined_fn rather
2014 than a built_in_function.
2015 (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
2017 (integer_valued_real_call_p): Likewise.
2018 * fold-const.c: Include case-cfn-macros.h
2019 (negate_mathfn_p): Take a combined_fn rather than a built_in_function.
2020 (negate_expr_p): Update accordingly.
2021 (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
2023 (integer_valued_real_call_p): Likewise.
2024 (tree_invalid_nonnegative_warnv_p): Update accordingly.
2025 (integer_valued_real_p): Likewise.
2026 * gimple-fold.c (gimple_call_nonnegative_warnv_p): Update call
2027 to tree_call_nonnegative_warnv_p.
2028 (gimple_call_integer_valued_real_p): Likewise
2029 integer_valued_real_call_p.
2030 * gimple-ssa-backprop.c: Include case-cfn-macros.h.
2031 (backprop::process_builtin_call_use): Extend to combined_fn.
2032 (strip_sign_op_1): Likewise.
2033 (backprop::process_use): Don't check for built-in calls here.
2034 (backprop::execute): Likewise.
2035 (backprop::optimize_builtin_call): Update call to negate_mathfn_p.
2037 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2039 * fold-const-call.h (fold_const_call): Replace built_in_function
2040 arguments with combined_fn arguments.
2041 * fold-const-call.c: Include case-cfn-macros.h.
2042 (fold_const_call_ss, fold_const_call_cs, fold_const_call_sc)
2043 (fold_const_call_cc, fold_const_call_sss, fold_const_call_ccc)
2044 (fold_const_call_ssss, fold_const_call_1, fold_const_call): Replace
2045 built_in_function arguments with combined_fn arguments.
2046 * builtins.c (fold_builtin_sincos, fold_builtin_1, fold_builtin_2)
2047 (fold_builtin_3): Update calls to fold_const_call.
2049 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2051 * Makefile.in (HASH_TABLE_H): Add GGC_H.
2052 (MOSTLYCLEANFILES, generated_files): Add case-fn-macros.h.
2053 (s-case-cfn-macros, case-cfn-macros.h, build/gencfn-macros.o)
2054 (build/gencfn-macros$(build_exeext): New rules.
2055 (genprogerr): Add cfn-macros.
2056 * hash-set.h (hash_set): Use the traits value_type as the key.
2057 * gencfn-macros.c: New file.
2059 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2061 * internal-fn.def (DEF_INTERNAL_INT_FN): New macro.
2062 (CLRSB, CLZ, CTZ, FFS, PARITY, POPCOUNT): New functions.
2063 * builtins.c (associated_internal_fn): Handle them.
2065 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2067 * builtins.h (associated_internal_fn): Declare.
2068 (replacement_internal_fn): Likewise.
2069 * builtins.c: Include internal-fn.h
2070 (associated_internal_fn, replacement_internal_fn): New functions.
2071 * internal-fn.def (DEF_INTERNAL_FLT_FN): New macro.
2072 (ACOS, ASIN, ATAN, COS, EXP, EXP10, EXP2, EXPM1, LOG, LOG10, LOG1P)
2073 (LOG2, LOGB, SIGNIFICAND, SIN, SQRT, TAN, CEIL, FLOOR, NEARBYINT)
2074 (RINT, ROUND, TRUNC, ATAN2, COPYSIGN, FMOD, POW, REMAINDER, SCALB)
2075 (LDEXP): New functions.
2076 * internal-fn.c: Include recog.h.
2077 (unary_direct, binary_direct): New macros.
2078 (expand_direct_optab_fn): New function.
2079 (expand_unary_optab_fn): New macro.
2080 (expand_binary_optab_fn): Likewise.
2081 (direct_unary_optab_supported_p): Likewise.
2082 (direct_binary_optab_supported_p): Likewise.
2084 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2086 * coretypes.h (tree_pair): New type.
2087 * internal-fn.def (DEF_INTERNAL_OPTAB_FN): New macro. Use it
2088 for MASK_LOAD, LOAD_LANES, MASK_STORE and STORE_LANES.
2089 * internal-fn.h (direct_internal_fn_info): New structure.
2090 (direct_internal_fn_array): Declare.
2091 (direct_internal_fn_p, direct_internal_fn): New functions.
2092 (direct_internal_fn_types, direct_internal_fn_supported_p): Declare.
2093 * internal-fn.c (not_direct, mask_load_direct, load_lanes_direct)
2094 (mask_store_direct, store_lanes_direct): New macros.
2095 (direct_internal_fn_array) New array.
2096 (get_multi_vector_move): Return the optab handler without asserting
2097 that it is available.
2098 (expand_LOAD_LANES): Rename to...
2099 (expand_load_lanes_optab_fn): ...this and add an optab argument.
2100 (expand_STORE_LANES): Rename to...
2101 (expand_store_lanes_optab_fn): ...this and add an optab argument.
2102 (expand_MASK_LOAD): Rename to...
2103 (expand_mask_load_optab_fn): ...this and add an optab argument.
2104 (expand_MASK_STORE): Rename to...
2105 (expand_mask_store_optab_fn): ...this and add an optab argument.
2106 (direct_internal_fn_types, direct_optab_supported_p)
2107 (multi_vector_optab_supported_p, direct_internal_fn_supported_p)
2108 (direct_internal_fn_supported_p): New functions.
2109 (direct_mask_load_optab_supported_p): New macro.
2110 (direct_load_lanes_optab_supported_p): Likewise.
2111 (direct_mask_store_optab_supported_p): Likewise.
2112 (direct_store_lanes_optab_supported_p): Likewise.
2114 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2116 * tree-core.h (internal_fn): Move immediately after the definition
2117 of built_in_function.
2118 (combined_fn): New enum.
2119 * tree.h (as_combined_fn, builtin_fn_p, as_builtin_fn)
2120 (internal_fn_p, as_internal_fn): New functions.
2121 (get_call_combined_fn, combined_fn_name): Declare.
2122 * tree.c (get_call_combined_fn): New function.
2123 (combined_fn_name): Likewise.
2124 * gimple.h (gimple_call_combined_fn): Declare.
2125 * gimple.c (gimple_call_combined_fn): New function.
2127 2015-11-17 Martin Sebor <msebor@redhat.com>
2130 * cp/init.c (build_new_1): Check for expression constness
2133 2015-11-17 Sandra Loosemore <sandra@codesourcery.com>
2136 * doc/invoke.texi (Option Summary): Add -mms-bitfields to x86
2138 (x86 Options): Add -mms-bitfields and -mno-ms-bitfields. Move
2139 discussion of the Microsoft structure layout details here from
2140 its former home in extend.texi.
2141 * doc/extend.texi (x86 Variable Attributes): Replace detailed
2142 discussion with pointer to its new location. Add cross-reference
2143 to corresponding type attributes.
2144 (x86 Type Attributes): Add cross-references to command-line options
2145 and variable attributes.
2147 2015-11-17 Ilya Enkovich <enkovich.gnu@gmail.com>
2150 * targhooks.c (default_get_mask_mode): Filter out
2151 scalar modes returned by mode_for_vector.
2153 2015-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2156 * config/arm/arm.c (arm_block_set_unaligned_vect): Keep track of
2157 offset from dstbase and use it appropriately in
2158 adjust_automodify_address.
2159 (arm_block_set_aligned_vect): Likewise.
2161 2015-11-17 Eric Botcazou <ebotcazou@adacore.com>
2163 * config/visium/t-visium (MULTILIB_OPTIONS): Add muser-mode.
2164 (MULTILIB_DIRNAMES): Adjust accordingly.
2166 2015-11-17 James Greenhalgh <james.greenhalgh@arm.com>
2168 * config/aarch64/aarch64-cores.def (cortex-a35): New.
2169 * config/aarch64/aarch64.c (cortexa35_tunings): New.
2170 * config/aarch64/aarch64-tune.md: Regenerate.
2171 * doc/invoke.texi (-mcpu): Add Cortex-A35
2173 2015-11-17 Uros Bizjak <ubizjak@gmail.com>
2176 * config/i386/i386.h (BIGGEST_ALIGNMENT): Always define
2178 * config/i386/sse.md (*mov<mode>_internal): Always enable
2179 AVX and SSE unaligned moves for IAMCU.
2181 2015-11-17 Venkataramanan Kumar <Venkataramanan.Kumar@amd.com>
2183 * tree-if-conv.c: Include varasm.h
2184 (ref_DR_map): Define.
2185 (baseref_DR_map): Like wise
2186 (struct ifc_dr): Add new tree predicate field.
2187 (hash_memrefs_baserefs_and_store_DRs_read_written_info): New function.
2188 (memrefs_read_or_written_unconditionally): Remove.
2189 (write_memrefs_written_at_least_once): Remove.
2190 (ifcvt_memrefs_wont_trap): Use hash maps to query
2191 unconditional read/written information.
2192 (if_convertible_loop_p_1): Initialize hash maps and predicates
2193 before hashing data references and delete hashmaps at the end.
2195 2015-11-16 Thomas Preud'homme <thomas.preudhomme@arm.com>
2198 * doc/invoke.texi (Optimize Options): Move @end table to the right
2201 2015-11-16 Sandra Loosemore <sandra@codesourcery.com>
2204 * doc/extend.texi (__builtin_assume_aligned): Fix formatting of
2207 2015-11-16 Michael Meissner <meissner@linux.vnet.ibm.com>
2209 * config/rs6000/vsx.md (VSX_L): Do not include IBM extended double
2210 128-bit types, just types that fit in a single vector.
2211 * config/rs6000/rs6000.md (FMOVE128_GPR): Likewise.
2213 2015-11-16 David Wohlferd <dw@LimeGreenSocks.com>
2215 * doc/md.texi ('#' and '*' constraint modifiers): Do not include these
2216 in the user documentation.
2217 (define_peephole2, define_split): Similarly.
2219 2015-11-16 Andris Pavenis <andris.pavenis@iki.fi>
2221 * lto-streamer-out.c (write_global_references): Adjust integer type.
2222 (lto_output_decl_state_refs): Likewise.
2224 2015-11-16 James Greenhalgh <james.greenhalgh@arm.com>
2226 * config/arm/arm-cores.def (cortex-a35): New.
2227 * config/arm/arm.c (arm_cortex_a35_tune): New.
2228 * config/arm/arm-tables.opt: Regenerate.
2229 * config/arm/arm-tune.md: Regenerate.
2230 * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-a35.
2231 * config/arm/t-aprofile: Likewise.
2232 * doc/invoke.texi (-mcpu): Likewise.
2234 2015-11-16 Jim Wilson <jim.wilson@linaro.org>
2236 * config/arm/t-aprofile (MULTILIB_MATCHES): Add lines for exynos-m1
2237 and qdf24xx and xgene1 to match -march=armv8-a.
2239 2015-11-16 Segher Boessenkool <segher@kernel.crashing.org>
2241 PR rtl-optimization/68330
2242 * simplify-rtx.c (simplify_unary_operation_1): Simplify SIGN_EXTEND
2243 of LSHIFTRT by a non-zero constant integer.
2245 2015-11-16 Richard Biener <rguenther@suse.de>
2247 PR tree-optimization/68306
2248 * tree-vect-data-refs.c (vect_verify_datarefs_alignment): Fix
2249 bogus copying from verify_data_ref_alignment and use continue
2252 2015-11-16 Oleg Endo <olegendo@gcc.gnu.org>
2253 Kaz Kojima <kkojima@gcc.gnu.org>
2256 * config/sh/sh.md (addsi3_scr): Handle reg overlap of operands[0] and
2258 (*addsi3): Add another insn_and_split variant for reload.
2260 2015-11-16 Richard Biener <rguenther@suse.de>
2263 * cfgexpand.c (pass_expand::execute): Destroy the edge
2264 redirection var map before setting RTL CFG hooks.
2266 2015-11-16 Alan Lawrence <alan.lawrence@arm.com>
2268 * config/i386/sse.md (reduc_splus_v8df): Rename to...
2269 (reduc_plus_scal_v8df): ...here; reduce to temp and extract scalar.
2271 (reduc_splus_v4df): Rename to...
2272 (reduc_plus_scal_v4df): ...here; reduce to temp and extract scalar.
2274 (reduc_splus_v2df): Rename to...
2275 (reduc_plus_scal_v2df): ...here; reduce to temp and extract scalar.
2277 (reduc_splus_v16sf): Rename to...
2278 (reduc_plus_scal_v16sf): ...here; reduce to temp and extract scalar.
2280 (reduc_splus_v8sf): Rename to...
2281 (reduc_plus_scal_v8sf): ...here; reduce to temp and extract scalar.
2283 (reduc_splus_v4sf): Rename to...
2284 (reduc_plus_scal_v4sf): ...here; reduce to temp and extract scalar.
2286 (reduc_<code>_<mode>, all 3 variants): Rename each to...
2287 (reduc_<code>_scal_<mode>): ...here; reduce to temp and extract scalar.
2289 (reduc_umin_v8hf): Rename to...
2290 (reduc_umin_scal_v8hf): ...here; reduce to temp and extract scalar.
2292 2015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
2294 * omp-low.c (pass_omp_simd_clone::gate): If target allows - call
2295 without additional conditions.
2296 * doc/extend.texi (@item simd): New.
2298 2015-11-16 Tom de Vries <tom@codesourcery.com>
2300 * passes.c (first_pass_instance): Remove variable.
2301 (execute_todo): Remove setting of first_pass_instance.
2302 * tree-pass.h (first_pass_instance): Remove declaration.
2304 2015-11-16 Tom de Vries <tom@codesourcery.com>
2306 * passes.def: Add arg to pass_ccp pass instantiation.
2307 * tree-ssa-ccp.c (ccp_finalize): Add param nonzero_p. Use nonzero_p
2308 instead of first_pass_instance.
2309 (do_ssa_ccp): Add and handle param nonzero_p.
2310 (pass_ccp::pass_ccp): Initialize nonzero_p.
2311 (pass_ccp::set_pass_param): New member function. Set nonzero_p.
2312 (pass_ccp::execute): Call do_ssa_ccp with extra arg.
2313 (pass_ccp::nonzero_p): New private member.
2315 2015-11-16 Tom de Vries <tom@codesourcery.com>
2317 * passes.def: Add arg to pass_object_sizes pass instantiation.
2318 * tree-object-size.c (pass_object_sizes::pass_object_sizes): Initialize
2320 (pass_object_sizes::set_pass_param): New member function. Set
2322 (pass_object_sizes::insert_min_max_p): New private member.
2323 (pass_object_sizes::execute): Use insert_min_max_p instead of
2324 first_pass_instance.
2326 2015-11-16 Tom de Vries <tom@codesourcery.com>
2328 * passes.def: Add arg to pass_dominator pass instantiation.
2329 * tree-pass.h (first_pass_instance): Remove pass_dominator-related bit
2331 * tree-ssa-dom.c (pass_dominator::pass_dominator): Initialize
2332 may_peel_loop_headers_p.
2333 (pass_dominator::set_pass_param): New member function. Set
2334 may_peel_loop_headers_p.
2335 (pass_dominator::may_peel_loop_headers_p): New private member.
2336 (pass_dominator::execute): Use may_peel_loop_headers_p instead of
2337 first_pass_instance.
2339 2015-11-16 Tom de Vries <tom@codesourcery.com>
2341 * passes.def: Add arg to pass_reassoc pass instantiation.
2342 * tree-ssa-reassoc.c (reassoc_insert_powi_p): New static variable.
2343 (acceptable_pow_call, reassociate_bb): Use reassoc_insert_powi_p instead
2344 of first_pass_instance.
2345 (execute_reassoc): Add and handle insert_powi_p parameter.
2346 (pass_reassoc::insert_powi_p): New private member.
2347 (pass_reassoc::pass_reassoc): Initialize insert_powi_p.
2348 (pass_reassoc::set_pass_param): New member function. Set insert_powi_p.
2349 (pass_reassoc::execute): Call execute_reassoc with extra arg.
2351 2015-11-16 Tom de Vries <tom@codesourcery.com>
2353 * gdbhooks.py (class PassNames): Handle extra arg NEXT_PASS argument.
2354 * gen-pass-instances.awk (handle_line): Same.
2355 * pass_manager.h (class pass_manager): Define and undefine
2357 * passes.c (opt_pass::set_pass_param): New function.
2358 (pass_manager::pass_manager): Define and undefine NEXT_PASS_WITH_ARG.
2359 * passes.def: Add extra arg to NEXT_PASS (pass_vrp).
2360 * tree-pass.h (gimple_opt::set_pass_param): Declare.
2361 * tree-vrp.c (vrp_finalize, execute_vrp): Add and handle
2362 warn_array_bounds_p parameter.
2363 (pass_vrp::pass_vrp): Initialize warn_array_bounds_p.
2364 (pass_vrp::set_pass_param): New function.
2365 (pass_vrp::execute): Add warn_array_bounds_p arg to execute_vrp call.
2366 (pass_vrp::warn_array_bounds_p): New private member.
2368 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
2370 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Adjust.
2371 (output_probe_stack_range): Rotate the loop and simplify.
2373 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
2375 * config/rs6000/rs6000.c (rs6000_emit_probe_stack_rang): Adjust.
2376 (output_probe_stack_range): Rotate the loop and simplify.
2378 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
2380 * config/i386/i386.c (ix86_adjust_stack_and_probe): Adjust and use
2381 an lea instruction when possible.
2382 (output_adjust_stack_and_probe): Rotate the loop and simplify.
2383 (ix86_emit_probe_stack_range): Adjust.
2384 (output_probe_stack_range): Rotate the loop and simplify.
2386 2015-11-16 Christian Bruel <christian.bruel@st.com>
2388 * config/arm/arm_neon.h: Remove #ifndef check on __ARM_NEON.
2389 Replace #ifdef __ARM_FEATURE_CRYPTO, __ARM_FEATURE_FMA, __ARM_FP
2390 with appropriate pragma GCC target.
2392 2015-11-16 Christian Bruel <christian.bruel@st.com>
2395 * config/arm/arm-c.c (arm_cpu_builtins): Conditionally set and reset
2396 __ARM_FEATURE_FMA and __ARM_NEON_FP, __ARM_FP.
2398 2015-11-16 James Greenhalgh <james.greenhalgh@arm.com>
2400 * config/aarch64/aarch64.c (cortexa57_branch_costs): New.
2401 (cortexa57_tunings): Use it.
2403 2015-11-16 Christian Bruel <christian.bruel@st.com>
2406 * config/arm/arm-c.c (arm_cpu_builtins): Set or reset
2407 __ARM_FEATURE_CRYPTO, __VFP_FP__, __ARM_NEON__
2408 (arm_pragma_target_parse): Change check for arm_cpu_builtins.
2410 * config/arm/arm.c (arm_can_inline_p): Check FPUs.
2411 (arm_valid_target_attribute_rec): Handle -mfpu attribute target.
2412 * doc/invoke.texi (-mfpu=): Mention attribute and pragma.
2413 * doc/extend.texi (-mfpu=): Describe attribute.
2415 2015-11-16 Christian Bruel <christian.bruel@st.com>
2418 * config/arm/arm-protos.h (arm_init_neon_builtins): Declare.
2419 * config/arm/arm.c (arm_valid_target_attribute_tree): Call
2420 arm_init_neon_builtins.
2421 * config/arm/arm-builtins.c (arm_init_neon_builtins): Split into...
2422 (arm_init_neon_builtins_internal)
2423 (arm_init_crypto_builtins_internal):
2424 Test and set neon_set_p, neon_crypto_set_p.
2425 (neon_set_p, neon_crypto_set_p): New static booleans.
2427 2015-11-16 Christian Bruel <christian.bruel@st.com>
2430 * config/arm/arm.c (arm_fpu_desc): Remove.
2431 (all_fpus): Make global.
2432 (arm_option_override): Use FPU TARGET accessors.
2433 (arm_declare_function_name): Likewise.
2434 * config/arm/arm.h (TARGET_VFP, TARGET_VFPD32, TARGET_VFP5)
2435 (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE, TARGET_NEON_FP16)
2436 (TARGET_FP16, TARGET_FMA, TARGET_FPU_ARMV8, TARGET_CRYPTO)
2437 (TARGET_NEON): Likewise.
2438 (all_fpus): Declare extern.
2439 (TARGET_FPU_NAME, TARGET_FPU_MODEL, TARGET_FPU_REV)
2440 (TARGET_FPU_REGS, TARGET_FPU_FEATURES): Define all_fpus accessors.
2442 2015-11-15 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2445 * sdbout.c: Include emit-rtl.h and function.h.
2447 2015-11-15 Gerald Pfeifer <gerald@pfeifer.com>
2449 * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Change to i586.
2450 Remove support for FreeBSD 5 and earlier.
2452 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2454 * configure: Regenerate.
2455 * configure.ac: Always define ENABLE_OFFLOADING.
2456 * cgraph.c (cgraph_node::create): Adjust.
2457 * gcc.c (process_command): Likewise.
2458 * omp-low.c (create_omp_child_function): Likewise.
2459 (expand_omp_target): Likewise.
2460 * varpool.c (varpool_node::get_create): Likewise.
2462 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2464 * defaults.h (EH_RETURN_HANDLER_RTX): New default definition.
2465 * df-scan.c (df_get_exit_block_use_set): Adjust.
2466 * except.c (expand_eh_return): Likewise.
2468 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2470 * config/i386/i386.h (TARGET_PECOFF): Remove define.
2471 * defaults.h (TARGET_PECOFF): New default definition.
2472 * varasm.c (handle_vtv_comdat_section): Adjust.
2474 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2476 * defaults.h: New definition of SDB_DEBUGGING_INFO.
2477 * doc/tm.texi: Regenerate.
2478 * doc/tm.texi.in: Adjust.
2479 * final.c (rest_of_clean_state): Remove check if
2480 SDB_DEBUGGING_INFO is defined.
2481 * function.c (number_blocks): Likewise.
2482 * output.h: Likewise.
2483 * sdbout.c: Likewise.
2484 * toplev.c (process_options): Likewise.
2486 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2488 * gsyms.h (enum sdb_type): Remove code for EXTENDED_SDB_BASIC_TYPES.
2489 (enum sdb_masks): Likewise.
2490 * sdbout.c (plain_type_1): Likewise.
2491 * system.h: Poison EXTENDED_SDB_BASIC_TYPES macro.
2493 2015-11-14 Jakub Jelinek <jakub@redhat.com>
2495 * omp-low.c (lower_omp_ordered): Add argument to GOMP_SMD_ORDERED_*
2496 internal calls - 0 if ordered simd and 1 for ordered threads simd.
2497 * tree-vectorizer.c (adjust_simduid_builtins): If GOMP_SIMD_ORDERED_*
2498 argument is 1, replace it with GOMP_ordered_* call instead of removing
2501 2015-11-13 Rich Felker <dalias@libc.org>
2503 * config/sh/sh.md (symGOT_load): Suppress __stack_chk_guard
2504 address loading hack for FDPIC targets.
2506 2015-11-13 Ajit Agarwal <ajitkum@xilinx.com>
2507 Jeff Law <law@redhat.com>
2509 * Makefile.in (OBJS): Add gimple-ssa-split-paths.o
2510 * common.opt (-fsplit-paths): New flag controlling path splitting.
2511 * doc/invoke.texi (fsplit-paths): Document.
2512 * opts.c (default_options_table): Add -fsplit-paths to -O2.
2513 * passes.def: Add split_paths pass.
2514 * timevar.def (TV_SPLIT_PATHS): New timevar.
2515 * tracer.c: Include "tracer.h"
2516 (ignore_bb_p): No longer static.
2517 (transform_duplicate): New function, broken out of tail_duplicate.
2518 (tail_duplicate): Use transform_duplicate.
2519 * tracer.h (ignore_bb_p): Declare
2520 (transform_duplicate): Likewise.
2521 * tree-pass.h (make_pass_split_paths): Declare.
2522 * gimple-ssa-split-paths.c: New file.
2524 2015-11-13 Kai Tietz <ktietz70@googlemail.com>
2525 Marek Polacek <polacek@redhat.com>
2526 Jason Merrill <jason@redhat.com>
2528 * convert.c (maybe_fold_build1_loc): New.
2529 (maybe_fold_build2_loc): New.
2530 (convert_to_pointer_1): Split out from convert_to_pointer.
2531 (convert_to_pointer_nofold): New.
2532 (convert_to_real_1): Split out from convert_to_real.
2533 (convert_to_real_nofold): New.
2534 (convert_to_integer_1): Split out from convert_to_integer.
2535 (convert_to_integer_nofold): New.
2536 (convert_to_complex_1): Split out from convert_to_complex.
2537 (convert_to_complex_nofold): New.
2538 * convert.h: Declare new functions.
2539 * tree-complex.c (create_one_component_var): Break up line to
2540 avoid sequence point issues.
2542 2015-11-13 Jason Merrill <jason@redhat.com>
2544 * fold-const.c (fold_convert_const): Fold changing cv-quals on
2547 * hash-map.h (hash_map::empty): New.
2549 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
2551 * omp-low.c (scan_sharing_clauses): Accept INDEPENDENT, AUTO & SEQ.
2552 (oacc_loop_fixed_partitions): Correct return type to bool.
2553 (oacc_loop_auto_partitions): New.
2554 (oacc_loop_partition): Take mask argument, call
2555 oacc_loop_auto_partitions.
2556 (execute_oacc_device_lower): Provide mask to oacc_loop_partition.
2558 2015-11-13 Michael Meissner <meissner@linux.vnet.ibm.com>
2560 * config/rs6000/constraints.md (we constraint): New constraint for
2561 64-bit power9 vector support.
2562 (wL constraint): New constraint for the element in a vector that
2563 can be addressed by the MFVSRLD instruction.
2565 * config/rs6000/rs6000-protos.h (convert_float128_to_int): Add
2567 (convert_int_to_float128): Likewise.
2568 (rs6000_generate_compare): Add support for ISA 3.0 (power9)
2569 hardware support for IEEE 128-bit floating point.
2570 (rs6000_expand_float128_convert): Likewise.
2571 (convert_float128_to_int): Likewise.
2572 (convert_int_to_float128): Likewise.
2574 * config/rs6000/rs6000.md (UNSPEC_ROUND_TO_ODD): New unspecs for
2575 ISA 3.0 hardware IEEE 128-bit floating point.
2576 (UNSPEC_IEEE128_MOVE): Likewise.
2577 (UNSPEC_IEEE128_CONVERT): Likewise.
2578 (FMA_F): Add support for IEEE 128-bit floating point hardware support.
2579 (Ff): Add support for DImode.
2581 (any_fix code iterator): New and updated iterators for IEEE
2582 128-bit floating point hardware support.
2583 (any_float code iterator): Likewise.
2584 (s code attribute): Likewise.
2585 (su code attribute): Likewise.
2586 (az code attribute): Likewise.
2587 (uns code attribute): Likewise.
2588 (neg<mode>2, FLOAT128 iterator): Add support for IEEE 128-bit
2589 floating point hardware support.
2590 (abs<mode>2, FLOAT128 iterator): Likewise.
2591 (add<mode>3, IEEE128 iterator): New insns for IEEE 128-bit
2592 floating point hardware.
2593 (sub<mode>3, IEEE128 iterator): Likewise.
2594 (mul<mode>3, IEEE128 iterator): Likewise.
2595 (div<mode>3, IEEE128 iterator): Likewise.
2596 (copysign<mode>3, IEEE128 iterator): Likewise.
2597 (sqrt<mode>2, IEEE128 iterator): Likewise.
2598 (neg<mode>2, IEEE128 iterator): Likewise.
2599 (abs<mode>2, IEEE128 iterator): Likewise.
2600 (nabs<mode>2, IEEE128 iterator): Likewise.
2601 (fma<mode>4_hw, IEEE128 iterator): Likewise.
2602 (fms<mode>4_hw, IEEE128 iterator): Likewise.
2603 (nfma<mode>4_hw, IEEE128 iterator): Likewise.
2604 (nfms<mode>4_hw, IEEE128 iterator): Likewise.
2605 (extend<SFDF:mode><IEEE128:mode>2_hw): Likewise.
2606 (trunc<mode>df2_hw, IEEE128 iterator): Likewise.
2607 (trunc<mode>sf2_hw, IEEE128 iterator): Likewise.
2608 (fix_fixuns code attribute): Likewise.
2609 (float_floatuns code attribute): Likewise.
2610 (fix<uns>_<mode>si2_hw): Likewise.
2611 (fix<uns>_<mode>di2_hw): Likewise.
2612 (float<uns>_<mode>si2_hw): Likewise.
2613 (float<uns>_<mode>di2_hw): Likewise.
2614 (xscvqp<su>wz_<mode>): Likewise.
2615 (xscvqp<su>dz_<mode>): Likewise.
2616 (xscv<su>dqp_<mode): Likewise.
2617 (ieee128_mfvsrd): Likewise.
2618 (ieee128_mfvsrwz): Likewise.
2619 (ieee128_mtvsrw): Likewise.
2620 (ieee128_mtvsrd): Likewise.
2621 (trunc<mode>df2_odd): Likewise.
2622 (cmp<mode>_h): Likewise.
2623 (128-bit GPR splitters): Don't split a 128-bit move that is a
2624 direct move between GPR and vector registers using ISA 3.0 direct
2626 (maddld4): Add support for the ISA 3.0 integer multiply-add
2629 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add ISA 3.0
2631 (rs6000_init_hard_regno_mode_ok): If ISA 3.0 and 64-bit, enable we
2632 constraint. Disable the VSX<->GPR direct move helpers if we have
2633 the MFVSRLD and MTVSRDD instructions.
2634 (rs6000_secondary_reload_simple_move): Add support for doing
2635 vector direct moves directly without additional scratch registers
2636 if we have ISA 3.0 instructions.
2637 (rs6000_secondary_reload_direct_move): Update comments.
2638 (rs6000_output_move_128bit): Add support for ISA 3.0 vector
2641 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for ISA 3.0
2642 direct move instructions.
2643 (vsx_movti_64bit): Likewise.
2644 (vsx_extract_<mode>): Likewise.
2646 * config/rs6000/rs6000.h (VECTOR_ELEMENT_MFVSRLD_64BIT): New
2647 macros for ISA 3.0 direct move instructions.
2648 (TARGET_DIRECT_MOVE_128): Likewise.
2649 (TARGET_MADDLD): Add support for the ISA 3.0 integer multiply-add
2652 * doc/md.texi (RS/6000 constraints): Document we, wF, wG, wL
2653 constraints. Update wa documentation to say not to use %x<n> on
2654 instructions that only take Altivec registers.
2656 2015-11-13 David Malcolm <dmalcolm@redhat.com>
2658 * Makefile.in (OBJS): Add gcc-rich-location.o.
2659 * diagnostic.c (diagnostic_append_note): Pass line_table to
2661 (emit_diagnostic): Likewise.
2663 (inform_n): Likewise.
2664 (warning): Likewise.
2665 (warning_at): Likewise.
2666 (warning_n): Likewise.
2667 (pedwarn): Likewise.
2668 (permerror): Likewise.
2670 (error_n): Likewise.
2671 (error_at): Likewise.
2673 (fatal_error): Likewise.
2674 (internal_error): Likewise.
2675 (internal_error_no_backtrace): Likewise.
2676 (source_range::debug): Likewise.
2677 * gcc-rich-location.c: New file.
2678 * gcc-rich-location.h: New file.
2679 * genmatch.c (fatal_at): Pass line_table to rich_location ctor.
2680 (warning_at): Likewise.
2681 * gimple.h (gimple_set_block): Use set_block function.
2682 * input.c (dump_line_table_statistics): Dump stats on how many
2683 ranges were optimized vs how many needed ad-hoc table.
2684 (write_digit_row): Add "map" param; use its range_bits
2685 to calculate the per-character offset.
2686 (dump_location_info): Print the range and column bits for each
2687 ordinary map. Use the range bits to calculate the per-character
2688 offset. Pass the map as a new param to the various calls to
2689 write_digit_row. Eliminate uses of
2690 ORDINARY_MAP_NUMBER_OF_COLUMN_BITS.
2691 * print-tree.c (print_node): Print any source range information.
2692 * rtl-error.c (diagnostic_for_asm): Likewise.
2693 * toplev.c (general_init): Initialize line_table's
2695 * tree-cfg.c (move_block_to_fn): Likewise.
2696 (move_block_to_fn): Likewise.
2697 * tree-inline.c (copy_phis_for_bb): Likewise.
2698 * tree.c (tree_set_block): Likewise.
2699 (get_pure_location): New function.
2700 (set_source_range): New functions.
2701 (set_block): New function.
2702 (set_source_range): New functions.
2703 * tree.h (CAN_HAVE_RANGE_P): New.
2704 (EXPR_LOCATION_RANGE): New.
2705 (EXPR_HAS_RANGE): New.
2706 (get_expr_source_range): New inline function.
2707 (DECL_LOCATION_RANGE): New.
2708 (set_source_range): New decls.
2709 (get_decl_source_range): New inline function.
2711 2015-11-13 Alan Lawrence <alan.lawrence@arm.com>
2713 PR tree-optimization/67682
2714 * tree-vect-slp.c (vect_split_slp_store_group): New.
2715 (vect_analyze_slp_instance): During basic block SLP, recurse on
2716 subgroups if vect_build_slp_tree fails after 1st vector.
2718 2015-11-13 Christian Bruel <christian.bruel@st.com>
2721 * config/arm/arm.c (arm_option_override): Move NEON check...
2722 (arm_option_check_internal): here
2723 (arm_file_start): Move .fpu print...
2724 (arm_declare_function_name): here
2725 (arm_option_print): Dump current fpu name.
2726 * config/arm/arm.opt (arm_fpu_index): Mark Save.
2728 2015-11-13 Segher Boessenkool <segher@kernel.crashing.org>
2729 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2731 * combine.c (subst): Don't substitute or simplify when
2732 handling register-wise widening multiply.
2733 (force_to_mode): Likewise.
2735 2015-11-13 Richard Sandiford <richard.sandiford@arm.com>
2737 PR tree-optimization/68264
2738 * tree-call-cdce.c (gen_one_condition): Update commentary.
2739 (gen_conditions_for_pow_int_base): Invert the sense of the tests
2740 passed to gen_one_condition.
2741 (gen_conditions_for_domain): Likewise. Use unordered comparisons.
2742 (shrink_wrap_one_built_in_call): Invert the sense of the tests,
2743 using EDGE_FALSE_VALUE for edges to the call block and
2744 EDGE_TRUE_VALUE for the others.
2746 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
2748 * config/nvptx/nvptx.c (nvptx_generate_vector_shuffle): Deal with
2751 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
2753 * gimplify.c (oacc_default_clause): Use inform for enclosing scope.
2755 2015-11-13 Tom de Vries <tom@codesourcery.com>
2757 * gen-pass-instances.awk (handle_line): Rename prefix_len var to
2760 2015-11-13 Tom de Vries <tom@codesourcery.com>
2762 * gen-pass-instances.awk (handle_line): Add args_str variable.
2764 2015-11-13 Martin Liska <mliska@suse.cz>
2766 * graphite-poly.c (free_scop): Release scop->drs vector.
2767 * graphite-scop-detection.c (scop_detection::harmful_stmt_in_region):
2769 (try_generate_gimple_bb): Use vNULL as a default initialization
2772 2015-11-13 Martin Liska <mliska@suse.cz>
2775 * ipa-icf.c (sem_item_optimizer::traverse_congruence_split):
2776 Replace array initialization (using a variable post-increment)
2777 that possible triggers multiple unsequenced modifications
2778 with a pair of pushes to a vector.
2780 2015-11-13 Richard Biener <rguenther@suse.de>
2782 PR tree-optimization/68306
2783 * tree-vect-data-refs.c (verify_data_ref_alignment): Move
2784 loop related checks ...
2785 (vect_verify_datarefs_alignment): ... here.
2786 (vect_slp_analyze_and_verify_node_alignment): Compute and
2787 verify alignment of the single DR that it matters.
2788 * tree-vect-stmts.c (vectorizable_store): Add an assert.
2789 (vectorizable_load): Add a comment.
2790 * tree-vect-slp.c (vect_analyze_slp_cost_1): Fix DR used
2791 for determining load cost.
2793 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
2795 * tree-vect-loop.c (vect_determine_vectorization_factor): Check
2796 mix of boolean and integer vectors in a single statement.
2797 * tree-vect-slp.c (vect_mask_constant_operand_p): New.
2798 (vect_get_constant_vectors): Use vect_mask_constant_operand_p to
2799 determine constant type.
2800 * tree-vect-stmts.c (vectorizable_comparison): Provide vectype
2801 for loop invariants.
2803 2015-11-13 Alan Hayward <alan.hayward@arm.com>
2805 PR tree-optimization/66558
2806 * tree-vect-loop.c (is_integer_induction):Add.
2807 (vectorizable_reduction): Add integer induction checks.
2809 2015-11-13 Christophe Lyon <christophe.lyon@linaro.org>
2811 Revert [ARM] Remove neon-testgen.ml and generated tests.
2813 2015-11-12 Christophe Lyon <christophe.lyon@linaro.org>
2815 [ARM] Remove neon-testgen.ml and generated tests.
2817 * config/arm/neon-testgen.ml: Remove.
2819 2015-11-13 Richard Biener <rguenther@suse.de>
2821 * tree-vect-loop.c (vect_analyze_loop_2): Add fatal parameter.
2822 Signal fatal failure if early checks fail.
2823 (vect_analyze_loop): If vect_analyze_loop_2 fails fatally
2824 do not bother testing further vector sizes.
2826 2015-11-13 Uros Bizjak <ubizjak@gmail.com>
2828 * config/i386/predicates.md (misaligned_operand): Return true if
2829 operand is aligned to less than its natural alignmnet.
2831 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
2833 * doc/md.texi (vec_cmp@var{m}@var{n}): New item.
2834 (vec_cmpu@var{m}@var{n}): New item.
2835 (vcond@var{m}@var{n}): Specify comparison is signed.
2836 (vcondu@var{m}@var{n}): New item.
2837 (vcond_mask_@var{m}@var{n}): New item.
2838 (maskload@var{m}@var{n}): New item.
2839 (maskstore@var{m}@var{n}): New item.
2841 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
2843 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
2844 types of stored value and storage are compatible.
2846 2015-11-13 Andris Pavenis <andris.pavenis@iki.fi>
2848 * gcc.c (POST_LINK_SPEC): Define if not already defined.
2849 (LINK_COMMAND_SPEC): Use post_link.
2850 (post_link_spec): New, initialize to POST_LINK_SPEC.
2851 (post_link): Initialize new static spec.
2852 * doc/tm.texi.in (POST_LINK_SPEC): Document.
2853 * doc/tm.texi: Regenerated.
2855 2015-11-13 David Malcolm <dmalcolm@redhat.com>
2858 * Makefile.in (GCC_OBJS): Add spellcheck.o.
2859 (OBJS): Add spellcheck-tree.o.
2860 * gcc.c: Include "spellcheck.h".
2861 (suggest_option): New function.
2862 (driver::handle_unrecognized_options): Call suggest_option to
2863 provide a hint about misspelled options.
2864 * spellcheck.c: Update file comment.
2865 (levenshtein_distance): Convert 4-param implementation from static
2866 to extern scope. Remove note about unit tests from leading
2867 comment for const char * implementation. Move tree
2868 implementation to...
2869 * spellcheck-tree.c: New file.
2870 * spellcheck.h (levenshtein_distance): Add 4-param decl.
2872 2015-11-13 David Malcolm <dmalcolm@redhat.com>
2874 * Makefile.in (OBJS): Add spellcheck.o.
2875 * spellcheck.c: New file.
2876 * spellcheck.h: New file.
2878 2015-11-13 James Bowman <james.bowman@ftdichip.com>
2880 * config/ft32/ft32.md (*sne): New insn pattern.
2882 2015-11-12 Brad Lucier <lucier@math.purdue.edu>
2884 * cprop.c (is_too_expensive): Remove.
2886 (one_cprop_pass): Call gcse_or_cprop_is_too_expensive, not
2888 * gcse.h (gcse_or_cprop_is_too_expensive): Declare.
2889 * gcse.c (is_too_expensive): Rename to ...
2890 (gcse_or_cprop_is_too_expensive): ... this.
2891 Expand warning to add required size of max-gcse-memory.
2892 (one_pre_gcse_pass): Use it.
2893 (one_code_hoisting_pass): Use it.
2894 * params.def (max-gcse-memory): Increase from 50MB to 128MB.
2896 2015-11-12 James Norris <jnorris@codesourcery.com>
2897 Joseph Myers <joseph@codesourcery.com>
2899 * gimple-pretty-print.c (dump_gimple_omp_target): Handle
2900 GF_OMP_TARGET_KIND_OACC_DECLARE.
2901 * gimple.h (enum gf_mask): Add GF_OMP_TARGET_KIND_OACC_DECLARE.
2902 (is_gomple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
2903 * gimplify.c (oacc_declare_returns): New.
2904 (gimplify_bind_expr): Prepend 'exit' stmt to cleanup.
2905 (device_resident_p): New function.
2906 (oacc_default_clause): Handle device_resident clause.
2907 (gimplify_oacc_declare_1, gimplify_oacc_declare): New functions.
2908 (gimplify_expr): Handle OACC_DECLARE.
2909 * omp-builtins.def (BUILT_IN_GOACC_DECLARE): New builtin.
2910 * omp-low.c (expand_omp_target): Handle
2911 GF_OMP_TARGET_KIND_OACC_DECLARE and BUILTIN_GOACC_DECLARE.
2912 (build_omp_regions_1): Handlde GF_OMP_TARGET_KIND_OACC_DECLARE.
2913 (lower_omp_target): Handle GF_OMP_TARGET_KIND_OACC_DECLARE,
2914 GOMP_MAP_DEVICE_RESIDENT and GOMP_MAP_LINK.
2915 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
2916 * tree-pretty-print.c (dump_omp_clause): Handle GOMP_MAP_LINK and
2917 GOMP_MAP_DEVICE_RESIDENT.
2919 2015-11-12 Christophe Lyon <christophe.lyon@linaro.org>
2921 [ARM] Remove neon-testgen.ml and generated tests.
2923 * config/arm/neon-testgen.ml: Remove.
2925 2015-11-12 Jim Wilson <jim.wilson@linaro.org>
2927 * config/aarch64/aarch64-cores.def (qdf24xx): New.
2928 * config/aarch64/aarch64-tune.md: Regenerated.
2929 * config/arm/arm-cores.def (qdf24xx): New.
2930 * config/arm/arm-tables.opt, config/arm/arm-tune.md: Regenerated.
2931 * config/arm/bpabi.h (BE8_LINK_SPEC): Add qdf24xx support.
2932 * doc/invoke.texi (AArch64 Options/-mtune): Add "qdf24xx".
2933 (ARM Options/-mtune): Likewise.
2935 2015-11-12 Martin Liska <mliska@suse.cz>
2937 * config/i386/i386.c (ix86_valid_target_attribute_p):
2938 Finalize options at the of the function.
2939 * gcc.c (driver_get_configure_time_options): Call newly
2940 introduced init_opts_obstack.
2941 * lto-wrapper.c (main): Likewise.
2942 * opts.c (init_opts_obstack): New function.
2943 (init_options_struct): Call newly introduced init_opts_obstack.
2944 * opts.h (init_options_struct): Declare.
2946 2015-11-12 Martin Liska <mliska@suse.cz>
2949 * ipa-icf.c (void sem_item::set_hash): New function.
2950 (sem_function::get_hash): Use renamed m_hash member variable.
2951 (sem_item::update_hash_by_addr_refs): Utilize get_hash.
2952 (sem_item::update_hash_by_local_refs): Likewise.
2953 (sem_variable::get_hash): Use renamed m_hash member variable.
2954 (sem_item_optimizer::update_hash_by_addr_refs): Utilize get_hash.
2955 (sem_item_optimizer::build_hash_based_classes): Utilize set_hash.
2956 (sem_item_optimizer::build_graph): As the hash value of an item
2957 is lazy initialized, force the calculation.
2958 * ipa-icf.h (set_hash): Declare new function and rename hash member
2961 2015-11-12 Richard Biener <rguenther@suse.de>
2963 * tree-vectorizer.h (vect_slp_analyze_data_ref_dependences):
2964 Rename to vect_slp_analyze_instance_dependence.
2965 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
2966 Remove WAR special-case.
2967 (vect_slp_analyze_node_dependences): Instead add more specific
2968 code here, not relying on other instances being vectorized.
2969 (vect_slp_analyze_instance_dependence): Adjust accordingly.
2970 * tree-vect-slp.c (vect_build_slp_tree_1): Remove excessive
2971 vertical space in dump files.
2972 (vect_print_slp_tree): Likewise.
2973 (vect_analyze_slp_instance): Dump a header for the final SLP tree.
2974 (vect_slp_analyze_bb_1): Delay computing relevant stmts and
2975 not vectorized stmts until after dependence analysis removed
2976 instances. Merge alignment and dependence checks.
2977 * tree-vectorizer.c (pass_slp_vectorize::execute): Clear visited
2980 2015-11-12 Evandro Menezes <e.menezes@samsung.com>
2982 * config/aarch64/aarch64-protos.h (tune_params): Add new members
2983 "max_case_values" and "cache_line_size".
2984 * config/aarch64/aarch64.c (aarch64_case_values_threshold): New
2986 (aarch64_override_options_internal): Tune heuristics based on new
2987 members in "tune_params".
2988 (TARGET_CASE_VALUES_THRESHOLD): Define macro.
2990 2015-11-12 Richard Biener <rguenther@suse.de>
2992 PR tree-optimization/68306
2993 * tree-vect-data-refs.c (verify_data_ref_alignment): Remove
2994 relevant and vectorizable checks here.
2995 (vect_verify_datarefs_alignment): Add relevant check here.
2997 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
2999 * gimplify.c (oacc_default_clause): New.
3000 (omp_notice_variable): Call it.
3002 2015-11-12 Ilya Enkovich <enkovich.gnu@gmail.com>
3004 PR tree-optimization/68305
3005 * tree-vect-slp.c (vect_get_constant_vectors): Support
3006 COND_EXPR with SSA_NAME as a condition.
3008 2015-11-12 Eric Botcazou <ebotcazou@adacore.com>
3010 * config/visium/visium-protos.h (notice_update_cc): Delete.
3011 (print_operand): Likewise.
3012 (print_operand_address): Likewise.
3014 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
3016 * config/alpha/alpha.h (FUNCTION_VALUE, LIBCALL_VALUE,
3017 FUNCTION_VALUE_REGNO_P): Remove.
3018 * config/alpha/alpha-protos.h (function_value): Remove.
3019 * config/alpha/alpha.c (function_value): Rename to...
3020 (alpha_function_value_1): ... this. Make static.
3021 (alpha_function_value, alpha_libcall_value,
3022 alpha_function_value_regno_p): New functions.
3023 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
3024 TARGET_FUNCTION_VALUE_REGNO_P): Define.
3026 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
3028 * config/alpha/alpha.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
3029 * config/alpha/alpha.c (alpha_memory_latency): Make static.
3030 (alpha_register_move_cost, alpha_memory_move_cost): New functions.
3031 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
3033 2015-11-12 Eric Botcazou <ebotcazou@adacore.com>
3036 * config/i386/i386.c (ix86_adjust_stack_and_probe): Remove obsolete
3037 assertion on the CFA register.
3039 2015-11-12 Ilya Enkovich <enkovich.gnu@gmail.com>
3041 * expr.c (do_store_flag): Expand vector comparison as
3042 VEC_COND_EXPR if vector comparison is not supported by target.
3044 2015-11-12 Renlin Li <renlin.li@arm.com>
3046 * config/arm/arm.md (addsi3_compare_op2): Make the order of
3047 assembly pattern consistent with constraint order.
3049 2015-11-12 Tom de Vries <tom@codesourcery.com>
3051 * gen-pass-instances.awk (handle_line): Simplify match regexp.
3053 2015-11-12 Tom de Vries <tom@codesourcery.com>
3055 * gen-pass-instances.awk (handle_line): Simplify init of
3058 2015-11-12 Tom de Vries <tom@codesourcery.com>
3060 * gen-pass-instances.awk (handle_line): Rename var where to
3063 2015-11-12 Claudiu Zissulescu <claziss@synopsys.com>
3065 * config/arc/arc.c (gen_compare_reg): Swap operands also when we
3066 do not expand to rtl.
3068 2015-11-12 Richard Biener <rguenther@suse.de>
3070 PR tree-optimization/58497
3071 * tree-vect-generic.c: Include gimplify.h.
3072 (tree_vec_extract): Lookup constant/constructor DEFs.
3073 (do_cond): Unshare cond.
3075 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
3077 * config/i386/i386.c (ix86_legitimate_combined_insn): Reject
3078 combined insn if the alignment of vector mode memory operand
3079 is less than ssememalign.
3081 2015-11-12 Tom de Vries <tom@codesourcery.com>
3083 * gen-pass-instances.awk (handle_line): Print parentheses and
3084 pass_name explicitly.
3086 2015-11-12 Tom de Vries <tom@codesourcery.com>
3088 * gen-pass-instances.awk (handle_line): Add pass_num, prefix
3091 2015-11-12 Tom de Vries <tom@codesourcery.com>
3093 * gen-pass-instances.awk (handle_line): Add comments.
3095 2015-11-12 Tom de Vries <tom@codesourcery.com>
3097 * gen-pass-instances.awk (handle_line): Rename len_of_end to
3100 2015-11-12 Tom de Vries <tom@codesourcery.com>
3102 * gen-pass-instances.awk (handle_line): Add len_of_call variable.
3104 2015-11-12 Tom de Vries <tom@codesourcery.com>
3106 * gen-pass-instances.awk (handle_line): Restructure using early-out.
3108 2015-11-12 Tom de Vries <tom@codesourcery.com>
3110 * gen-pass-instances.awk (handle_line): Unify semicolon use.
3112 2015-11-12 Tom de Vries <tom@codesourcery.com>
3114 * gen-pass-instances.awk (handle_line): Remove unused var line_length.
3116 2015-11-12 Tom de Vries <tom@codesourcery.com>
3118 * gen-pass-instances.awk: Add emacs indent setting.
3120 2015-11-12 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3122 * fold-const.c (fold_binary_loc) : Move Convert A/B/C to A/(B*C)
3124 Move Convert A/(B/C) to (A/B)*C to match.pd.
3125 Move Convert C1/(X*C2) into (C1/C2)/X to match.pd.
3126 Move Optimize (X & (-A)) / A where A is a power of 2, to
3127 X >> log2(A) to match.pd.
3129 * match.pd (rdiv (rdiv:s @0 @1) @2): New simplifier.
3130 (rdiv @0 (rdiv:s @1 @2)): New simplifier.
3131 (div (convert? (bit_and @0 INTEGER_CST@1)) INTEGER_CST@2):
3133 (rdiv REAL_CST@0 (mult @1 REAL_CST@2)): New simplifier.
3135 2015-11-12 Charles Baylis <charles.baylis@linaro.org>
3137 * config/arm/neon.md: (neon_vld2_lane<mode>): Remove unused max
3139 (neon_vst2_lane<mode>): Likewise.
3140 (neon_vld3_lane<mode>): Likewise.
3141 (neon_vst3_lane<mode>): Likewise.
3142 (neon_vld4_lane<mode>): Likewise.
3143 (neon_vst4_lane<mode>): Likewise.
3145 2015-11-11 Aditya Kumar <aditya.k7@samsung.com>
3146 Sebastian Pop <s.pop@samsung.com>
3148 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
3149 New member codegen_error
3150 (translate_isl_ast_for_loop): Remove call to single_succ_edge and
3152 (translate_isl_ast_node_user): Early return in case of error.
3153 (translate_isl_ast_to_gimple::translate_isl_ast): Same.
3154 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): New.
3155 (add_parameters_to_ivs_params): Remove macro.
3156 (graphite_regenerate_ast_isl): Add if_region pointer to region.
3157 * graphite-poly.c (new_poly_dr): Remove macro.
3159 (new_gimple_poly_bb): Same.
3160 (free_gimple_poly_bb): Same.
3161 (print_scop_params): Same.
3162 * graphite-poly.h (struct poly_dr): Same.
3163 (struct poly_bb): Add new_bb.
3164 (gbb_from_bb): Remove dead code.
3165 (pbb_from_bb): Same.
3166 * graphite-scop-detection.c (parameter_index_in_region_1): Same.
3167 (parameter_index_in_region): Same.
3168 (find_scop_parameters): Same.
3169 (build_cross_bb_scalars_def): New.
3170 (build_cross_bb_scalars_use): New.
3171 (graphite_find_cross_bb_scalar_vars): New
3172 (try_generate_gimple_bb): Reads and Writes.
3173 (build_alias_set): Move.
3174 (gather_bbs::before_dom_children): Gather bbs visited.
3175 (build_scops): call build_alias_set.
3176 * graphite-sese-to-poly.c (phi_arg_in_outermost_loop): Delete.
3177 (remove_simple_copy_phi): Delete.
3178 (remove_invariant_phi): Delete.
3179 (simple_copy_phi_p): Delete.
3180 (reduction_phi_p): Delete.
3181 (isl_id_for_dr): Remove unused param.
3182 (parameter_index_in_region_1): Remove macro usage.
3183 (set_scop_parameter_dim): Same.
3184 (add_param_constraints): Same.
3185 (add_conditions_to_constraints): Same
3186 (build_scop_iteration_domain): Same.
3187 (pdr_add_alias_set): Comment.
3188 (add_scalar_version_numbers): New.
3189 (build_poly_dr): ISL id.
3190 (build_scop_drs): Move.
3191 (build_poly_sr_1): Same.
3192 (insert_stmts): Remove.
3193 (build_poly_sr): New.
3194 (new_pbb_from_pbb): Delete.
3195 (insert_out_of_ssa_copy_on_edge): Delete.
3196 (create_zero_dim_array): Delete.
3197 (scalar_close_phi_node_p): Delete.
3198 (propagate_expr_outside_region): Delete.
3199 (rewrite_close_phi_out_of_ssa): Delete.
3200 (rewrite_phi_out_of_ssa): Delete.
3201 (rewrite_degenerate_phi): Delete.
3202 (rewrite_reductions_out_of_ssa): Delete.
3203 (rewrite_cross_bb_scalar_dependence): Delete.
3204 (handle_scalar_deps_crossing_scop_limits):
3205 (rewrite_cross_bb_scalar_deps): Delete.
3206 (build_poly_scop): Remove calls to out-of-ssa functions.
3207 * graphite.c (graphite_transform_loops): Early return in case of
3209 * sese.c (debug_rename_map_1): Delete.
3210 (debug_rename_map): Delete.
3211 (sese_record_loop): Remove macro.
3212 (build_sese_loop_nests): Same.
3213 (new_sese_info): Same.
3214 (free_sese_info): Same.
3215 (sese_insert_phis_for_liveouts):
3216 (is_loop_closed_ssa_use): New.
3217 (number_of_phi_nodes): New.
3218 (bb_contains_loop_close_phi_nodes): New.
3219 (bb_contains_loop_phi_nodes): New.
3220 (phi_uses_name): New.
3222 (get_rename): Add old_bb and loop_phi for more precise matching of
3224 (set_rename): Pass region.
3225 (later_of_the_two): New.
3226 (gsi_insert_earliest): New.
3227 (collect_all_ssa_names): New.
3228 (substitute_ssa_name): New.
3229 (rename_all_uses): New.
3230 (get_rename_from_scev): New.
3231 (rename_uses): Pass old_bb for more precise matching of exprs.
3232 (get_def_bb_for_const): New.
3233 (get_new_name): New.
3236 (copy_loop_phi_args): New.
3237 (copy_loop_phi_nodes): New.
3238 (get_loop_init_value): New.
3239 (find_init_value): New.
3240 (find_init_value_close_phi): New.
3241 (copy_loop_close_phi_args): New.
3242 (copy_loop_close_phi_nodes): New.
3243 (add_phi_arg_for_new_expr): New.
3244 (copy_cond_phi_args): New.
3245 (copy_cond_phi_nodes): New.
3246 (copy_phi_nodes): New.
3247 (should_copy_to_new_region): New.
3248 (set_rename_for_each_def): New.
3249 (graphite_copy_stmts_from_block): Early return in case of error.
3250 (copy_bb_and_scalar_dependences): Same.
3251 * sese.h (vec_find): New.
3252 (SESE_PARAMS): Delete.
3253 (SESE_LOOPS): Delete.
3254 (SESE_LOOP_NEST): Delete.
3255 (sese_contains_loop): Remove macro usage.
3256 (sese_nb_params): Same.
3257 (struct gimple_poly_bb): Added read_scalar_refs, write_scalar_refs.
3259 2015-11-11 Abderrazek Zaafrani <a.zaafrani@samsung.com>
3261 * graphite-sese-to-poly.c (build_scop_original_schedule): Call
3262 isl_union_map_add_map on every pbb->schedule.
3264 2015-11-11 Tom de Vries <tom@codesourcery.com>
3266 * tree-parloops.c (create_parallel_loop): Return void.
3268 2015-11-11 Tom de Vries <tom@codesourcery.com>
3270 * tree-parloops.c (transform_to_exit_first_loop_alt): Insert new exit
3271 block only when needed.
3273 2015-11-11 Uros Bizjak <ubizjak@gmail.com>
3275 * config/alpha/alpha-protos.h (print_operand): Remove.
3276 (print_operand_address): Remove.
3277 * config/alpha/alpha.h (PRINT_OPERAND): Remove.
3278 (PRINT_OPERAND_ADDRESS): Remove.
3279 (PRINT_OPERAND_PUNCT_VALID_P): Remove.
3280 * config/alpha/alpha.c (TARGET_PRINT_OPERAND): New hook define.
3281 (TARGET_PRINT_OPERAND_ADDRESS): New hook define.
3282 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): New hook define.
3283 (print_operand_address): Rename to...
3284 (alpha_print_operand_address): ...this and make static.
3285 (print_operand): Rename to...
3286 (alpha_print_operand): ...this and make static.
3287 (alpha_print_operand_punct_valid_p): New static function.
3289 2015-11-11 Richard Biener <rguenther@suse.de>
3291 * tree-vectorizer.h (vect_slp_analyze_and_verify_instance_alignment):
3293 (vect_analyze_data_refs_alignment): Make loop vect specific.
3294 (vect_verify_datarefs_alignment): Likewise.
3295 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependences):
3296 Add missing continue.
3297 (vect_compute_data_ref_alignment): Export.
3298 (vect_compute_data_refs_alignment): Merge into...
3299 (vect_analyze_data_refs_alignment): ... this.
3300 (verify_data_ref_alignment): Split out from ...
3301 (vect_verify_datarefs_alignment): ... here.
3302 (vect_slp_analyze_and_verify_node_alignment): New function.
3303 (vect_slp_analyze_and_verify_instance_alignment): Likewise.
3304 * tree-vect-slp.c (vect_supported_load_permutation_p): Remove
3305 misplaced checks on alignment.
3306 (vect_slp_analyze_bb_1): Add fatal output parameter. Do
3307 alignment analysis after SLP discovery and do it per instance.
3308 (vect_slp_bb): When vect_slp_analyze_bb_1 fatally failed do not
3309 bother to re-try using different vector sizes.
3311 2015-11-11 Nathan Sidwell <nathan@codesourcery.com>
3312 Cesar Philippidis <cesar@codesourcery.com>
3314 * gimplify.c (enum omp_region_type): Add ORT_ACC,
3315 ORT_ACC_DATA, ORT_ACC_PARALLEL, ORT_ACC_KERNELS. Adjust ORT_NONE.
3316 (gimple_add_tmp_var): Add ORT_ACC checks.
3317 (gimplify_var_or_parm_decl): Likewise.
3318 (omp_firstprivatize_variable): Likewise. Use ORT_TARGET_DATA as a mask.
3319 (omp_add_variable): Look in outer contexts for openacc and allow
3320 reductions with other sharing. Add ORT_ACC and ORT_TARGET_DATA checks.
3321 (omp_notice_variable, omp_is_private, omp_check_private): Add
3323 (gimplify_scan_omp_clauses: Treat ORT_ACC as ORT_WORKSHARE.
3324 Permit private openacc reductions.
3325 (gimplify_oacc_cache): Specify ORT_ACC.
3326 (gimplify_omp_workshare): Adjust OpenACC region types.
3327 (gimplify_omp_target_update): Likewise.
3328 * omp-low.c (scan_sharing_clauses): Remove Openacc firstprivate sorry.
3329 (lower-rec_input_clauses): Don't handle openacc firstprivate
3331 (lower_omp_target): Emit initializers for openacc firstprivate vars.
3333 2015-11-11 Eric Botcazou <ebotcazou@adacore.com>
3336 * ira.c (ira_setup_eliminable_regset): Do not necessarily create the
3337 frame pointer for stack checking if non-call exceptions aren't used.
3338 * config/i386/i386.c (ix86_finalize_stack_realign_flags): Likewise.
3340 2015-11-11 Segher Boessenkool <segher@kernel.crashing.org>
3342 * simplify-rtx.c (simplify_truncation): Simplify TRUNCATE of AND of
3345 2015-11-11 Martin Liska <mliska@suse.cz>
3346 Richard Biener <rguenther@suse.de>
3348 PR rtl-optimization/68287
3349 * lra-lives.c (lra_create_live_ranges_1): Reserve the right
3352 2015-11-11 Simon Dardis <simon.dardis@imgtec.com>
3354 * config/mips/mips.c (mips_breakable_sequence_p): New function.
3355 (mips_break_sequence): New function.
3356 (mips_reorg_process_insns): Use them. Use compact branches in selected
3359 2015-11-11 Alan Lawrence <alan.lawrence@arm.com>
3361 * fold-const.c (get_array_ctor_element_at_index): Fix whitespace, typo.
3363 2015-11-11 Jiong Wang <jiong.wang@arm.com>
3364 Jim Wilson <wilson@gcc.gnu.org>
3367 * config/arm/arm.md (neon_vector_mem_operand): Return FALSE if strict
3368 be true and eliminable registers mentioned.
3370 2015-11-11 Claudiu Zissulescu <claziss@synopsys.com>
3372 * common/config/arc/arc-common.c (arc_handle_option): Handle ARCv2
3374 * config/arc/arc-opts.h: Add ARCv2 CPUs.
3375 * config/arc/arc-protos.h (arc_secondary_reload_conv): Prototype.
3376 * config/arc/arc.c (arc_secondary_reload): Handle subreg (reg)
3377 situation, and store instructions with large offsets.
3378 (arc_secondary_reload_conv): New function.
3379 (arc_init): Add ARCv2 options.
3380 (arc_conditional_register_usage): Select the proper register usage
3381 for ARCv2 processors.
3382 (arc_handle_interrupt_attribute): ILINK2 is only valid for ARCv1
3384 (arc_compute_function_type): Likewise.
3385 (arc_print_operand): Handle new ARCv2 punctuation characters.
3386 (arc_return_in_memory): ARCv2 ABI returns in registers up to 16 bytes.
3387 (workaround_arc_anomaly, arc_asm_insn_p, arc_loop_hazard): New
3389 (arc_reorg, arc_hazard): Use it.
3390 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __HS__ and __EM__.
3391 (ASM_SPEC): Add ARCv2 options.
3392 (TARGET_NORM): ARC HS has norm instructions by default.
3393 (TARGET_OPTFPE): Use optimized floating point emulation for ARC HS.
3394 (TARGET_AT_DBR_CONDEXEC): Only for ARC600 family.
3395 (TARGET_EM, TARGET_HS, TARGET_V2, TARGET_MPYW, TARGET_MULTI): Define.
3396 (SIGNED_INT16, TARGET_MPY, TARGET_ARC700_MPY, TARGET_ANY_MPY):
3398 (TARGET_ARC600_FAMILY, TARGET_ARCOMPACT_FAMILY): Likewise.
3399 (TARGET_LP_WR_INTERLOCK): Likewise.
3401 (commutative_binary_mult_comparison_result_used, movsicc_insn)
3402 (mulsi3, mulsi3_600_lib, mulsidi3, mulsidi3_700, mulsi3_highpart)
3403 (umulsi3_highpart_i, umulsi3_highpart_int, umulsi3_highpart)
3404 (umulsidi3, umulsidi3_700, cstoresi4, simple_return, p_return_i):
3406 (mulhisi3, mulhisi3_imm, mulhisi3_reg, umulhisi3, umulhisi3_imm)
3407 (umulhisi3_reg, umulhisi3_reg, mulsi3_v2, nopv, bswapsi2)
3408 (prefetch, divsi3, udivsi3 modsi3, umodsi3, arcset, arcsetltu)
3409 (arcsetgeu, arcsethi, arcsetls, reload_*_load, reload_*_store)
3410 (extzvsi): New pattern.
3411 * config/arc/arc.opt: New ARCv2 options.
3412 * config/arc/arcEM.md: New file.
3413 * config/arc/arcHS.md: Likewise.
3414 * config/arc/constraints.md (C3p): New constraint, accepts 1 and 2
3416 (Cm2): A signed 9-bit integer constant constraint.
3417 (C62): An unsigned 6-bit integer constant constraint.
3418 (C16): A signed 16-bit integer constant constraint.
3419 * config/arc/predicates.md (mult_operator): Add ARCv2 processort.
3420 (short_const_int_operand): New predicate.
3421 * config/arc/t-arc-newlib: Add ARCv2 multilib options.
3422 * doc/invoke.texi: Add documentation for -mcpu=<archs/arcem>
3423 -mcode-density and -mdiv-rem.
3425 2015-11-11 Julia Koval <julia.koval@intel.com>
3427 * config/i386/i386.c (m_SKYLAKE_AVX512): Fix typo.
3429 2015-11-11 Julia Koval <julia.koval@intel.com>
3431 * config/i386/i386.c: Handle "skylake" and "skylake-avx512".
3433 2015-11-11 Martin Liska <mliska@suse.cz>
3435 * gimple-ssa-strength-reduction.c (create_phi_basis):
3437 * passes.c (release_dump_file_name): New function.
3438 (pass_init_dump_file): Used from this function.
3439 (pass_fini_dump_file): Likewise.
3440 * tree-sra.c (convert_callers_for_node): Use xstrdup_for_dump.
3441 * var-tracking.c (vt_initialize): Use pool_allocator.
3443 2015-11-11 Richard Biener <rguenth@gcc.gnu.org>
3444 Jiong Wang <jiong.wang@arm.com>
3446 PR tree-optimization/68234
3447 * tree-vrp.c (vrp_visit_phi_node): Extend SCEV check to those loop PHI
3448 node which estimiated to be VR_VARYING initially.
3450 2015-11-11 Robert Suchanek <robert.suchanek@imgtec.com>
3452 * regname.c (scan_rtx_reg): Check the matching number of consecutive
3453 registers when tying chains.
3454 (build_def_use): Move terminated_this_insn earlier in the function.
3456 2015-11-10 Mike Frysinger <vapier@gentoo.org>
3458 * configure.ac: Use = with test and not ==.
3459 * configure: Regenerated.
3461 2015-11-11 David Edelsohn <dje.gcc@gmail.com>
3463 * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Add cpu and
3464 machine asserts. Update defines for 64 bit.
3466 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
3469 * config/arm/neon.md (neon_vld1_lane<mode>): Remove error for invalid
3471 (neon_vst1_lane<mode>): Likewise.
3472 (neon_vld2_lane<mode>): Likewise.
3473 (neon_vst2_lane<mode>): Likewise.
3474 (neon_vld3_lane<mode>): Likewise.
3475 (neon_vst3_lane<mode>): Likewise.
3476 (neon_vld4_lane<mode>): Likewise.
3477 (neon_vst4_lane<mode>): Likewise.
3479 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
3482 * config/arm/arm-builtins.c: (arm_load1_qualifiers) Use
3483 qualifier_struct_load_store_lane_index.
3484 (arm_storestruct_lane_qualifiers) Likewise.
3485 * config/arm/neon.md: (neon_vld1_lane<mode>) Reverse lane numbers for
3487 (neon_vst1_lane<mode>) Likewise.
3488 (neon_vld2_lane<mode>) Likewise.
3489 (neon_vst2_lane<mode>) Likewise.
3490 (neon_vld3_lane<mode>) Likewise.
3491 (neon_vst3_lane<mode>) Likewise.
3492 (neon_vld4_lane<mode>) Likewise.
3493 (neon_vst4_lane<mode>) Likewise.
3495 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
3498 * config/arm/arm-builtins.c (enum arm_type_qualifiers): New enumerator
3499 qualifier_struct_load_store_lane_index.
3500 (builtin_arg): New enumerator NEON_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
3501 (arm_expand_neon_args): New parameter. Remove ellipsis. Handle NEON
3502 argument qualifiers.
3503 (arm_expand_neon_builtin): Handle new NEON argument qualifier.
3504 * config/arm/arm.h (NEON_ENDIAN_LANE_N): New macro.
3506 2015-11-10 Nathan Sidwell <nathan@codesourcery.com>
3508 * config/nvptx/nvptx.opt (moptimize): New flag.
3509 * config/nvptx/nvptx.c (nvptx_option_override): Set nvptx_optimize
3511 (nvptx_optimize_inner): New.
3512 (nvptx_process_pars): Call it when optimizing.
3513 * doc/invoke.texi (Nvidia PTX Options): Document -moptimize.
3515 2015-11-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3517 * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
3518 Remove redundant code.
3520 2015-11-10 Jeff Law <law@redhat.com>
3522 * config/ft32/ft32.c (ft32_print_operand): Supply mode to
3523 call to output_address.
3524 * config/moxie/moxie.c (moxie_print_operand_address): Similarly.
3525 Add unnamed machine_mode argument.
3527 2015-11-10 Michael Meissner <meissner@linux.vnet.ibm.com>
3529 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add power9 to hosts that
3532 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
3534 * config/i386/i386.md (*movabs<mode>_1): Add explicit
3535 size directives for -masm=intel.
3536 (*movabs<mode>_2): Ditto.
3538 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
3540 * config/i386/i386.c (ix86_print_operand): Remove dead code that
3541 tried to avoid (%rip) for call operands.
3543 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
3545 * config/i386/i386.c (ix86_print_operand_address_as): Add no_rip
3546 argument. Do not use RIP relative addressing when no_rip is set.
3547 (ix86_print_operand): Update call to ix86_print_operand_address_as.
3548 (ix86_print_operand_address): Ditto.
3549 * config/i386/i386.md (*movabs<mode>_1): Use %P modifier for
3550 absolute movabs operand 0. Add square braces for -masm=intel.
3551 (*movabs<mode>_2): Ditto for operand 1.
3553 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3555 * config/arm/arm.c (arm_new_rtx_costs, FIX case): Handle
3556 combine_vcvtf2i pattern.
3558 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3560 * config/arm/arm.c (neon_valid_immediate): Remove integer
3561 CONST_DOUBLE handling. It should never occur.
3563 2015-11-10 Matthew Wahab <matthew.wahab@arm.com>
3565 * config/aarch64/atomics.md (unspecv): Move to iterators.md.
3566 (ATOMIC_LDOP): Likewise.
3567 (atomic_ldop): Likewise.
3568 * config/aarch64/iterators.md (unspecv): Moved from atomics.md.
3569 (ATOMIC_LDOP): Likewise.
3570 (atomic_ldop): Likewise.
3572 2015-11-10 Martin Liska <mliska@suse.cz>
3574 * alloc-pool.h (allocate_raw): New function.
3575 (operator new (size_t, object_allocator<T> &a)): Use the
3576 function instead of object_allocator::allocate).
3578 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
3580 * config/i386/sse.md (HALFMASKMODE): New attribute.
3581 (DOUBLEMASKMODE): New attribute.
3582 (vec_pack_trunc_qi): New.
3583 (vec_pack_trunc_<mode>): New.
3584 (vec_unpacks_lo_hi): New.
3585 (vec_unpacks_lo_si): New.
3586 (vec_unpacks_lo_di): New.
3587 (vec_unpacks_hi_hi): New.
3588 (vec_unpacks_hi_<mode>): New.
3590 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
3592 * optabs.c (expand_binop_directly): Allow scalar mode for
3593 vec_pack_trunc_optab.
3594 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
3595 boolean vector producers from pattern sequence when computing VF.
3596 * tree-vect-patterns.c (vect_vect_recog_func_ptrs) Add
3597 vect_recog_mask_conversion_pattern.
3598 (search_type_for_mask): Choose the smallest
3599 type if different size types are mixed.
3600 (build_mask_conversion): New.
3601 (vect_recog_mask_conversion_pattern): New.
3602 (vect_pattern_recog_1): Allow scalar mode for boolean vectype.
3603 * tree-vect-stmts.c (vectorizable_mask_load_store): Support masked
3605 (vectorizable_conversion): Support boolean vectors.
3606 (free_stmt_vec_info): Allow patterns for statements with no lhs.
3607 * tree-vectorizer.h (NUM_PATTERNS): Increase to 14.
3609 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
3611 * config/i386/i386-protos.h (ix86_expand_sse_movcc): New.
3612 * config/i386/i386.c (ix86_expand_sse_movcc): Make public.
3613 Cast mask to FP mode if required.
3614 * config/i386/sse.md (vcond_mask_<mode><avx512fmaskmodelower>): New.
3615 (vcond_mask_<mode><avx512fmaskmodelower>): New.
3616 (vcond_mask_<mode><sseintvecmodelower>): New.
3617 (vcond_mask_<mode><sseintvecmodelower>): New.
3618 (vcond_mask_v2div2di): New.
3619 (vcond_mask_<mode><sseintvecmodelower>): New.
3620 (vcond_mask_<mode><sseintvecmodelower>): New.
3622 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
3624 * optabs-query.h (get_vcond_mask_icode): New.
3625 * optabs-tree.c (expand_vec_cond_expr_p): Use
3626 get_vcond_mask_icode for VEC_COND_EXPR with mask.
3627 * optabs.c (expand_vec_cond_mask_expr): New.
3628 (expand_vec_cond_expr): Use get_vcond_mask_icode when possible.
3629 * optabs.def (vcond_mask_optab): New.
3630 * tree-vect-patterns.c (vect_recog_bool_pattern): Don't
3631 generate redundant comparison for COND_EXPR.
3632 * tree-vect-stmts.c (vect_is_simple_cond): Allow SSA_NAME
3634 (vectorizable_condition): Likewise.
3635 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow
3636 cond_exp with no embedded comparison.
3637 (vect_build_slp_tree_1): Likewise.
3639 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
3641 * config/i386/sse.md (maskload<mode>): Rename to ...
3642 (maskload<mode><sseintvecmodelower>): ... this.
3643 (maskstore<mode>): Rename to ...
3644 (maskstore<mode><sseintvecmodelower>): ... this.
3645 (maskload<mode><avx512fmaskmodelower>): New.
3646 (maskstore<mode><avx512fmaskmodelower>): New.
3648 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
3650 * internal-fn.c (expand_MASK_LOAD): Adjust to maskload optab changes.
3651 (expand_MASK_STORE): Adjust to maskstore optab changes.
3652 * optabs-query.c (can_vec_mask_load_store_p): Add MASK_MODE arg.
3653 Adjust to maskload, maskstore optab changes.
3654 * optabs-query.h (can_vec_mask_load_store_p): Add MASK_MODE arg.
3655 * optabs.def (maskload_optab): Transform into convert optab.
3656 (maskstore_optab): Likewise.
3657 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Adjust to
3658 can_vec_mask_load_store_p signature change.
3659 (predicate_mem_writes): Use boolean mask.
3660 * tree-vect-stmts.c (vectorizable_mask_load_store): Adjust to
3661 can_vec_mask_load_store_p signature change. Allow invariant masks.
3662 (vectorizable_operation): Ignore type precision for boolean vectors.
3664 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
3666 * expr.c (do_store_flag): Use expand_vec_cmp_expr for mask results.
3667 (const_vector_mask_from_tree): New.
3668 (const_vector_from_tree): Use const_vector_mask_from_tree
3669 for boolean vectors.
3670 * optabs-query.h (get_vec_cmp_icode): New.
3671 * optabs-tree.c (expand_vec_cmp_expr_p): New.
3672 * optabs-tree.h (expand_vec_cmp_expr_p): New.
3673 * optabs.c (vector_compare_rtx): Add OPNO arg.
3674 (expand_vec_cond_expr): Adjust to vector_compare_rtx change.
3675 (expand_vec_cmp_expr): New.
3676 * optabs.def (vec_cmp_optab): New.
3677 (vec_cmpu_optab): New.
3678 * optabs.h (expand_vec_cmp_expr): New.
3679 * tree-vect-generic.c (expand_vector_comparison): Add vector
3680 comparison optabs check.
3681 * tree-vect-loop.c (vect_determine_vectorization_factor): Ignore mask
3682 operations for VF. Add mask type computation.
3683 * tree-vect-stmts.c (get_mask_type_for_scalar_type): New.
3684 (vectorizable_comparison): New.
3685 (vect_analyze_stmt): Add vectorizable_comparison.
3686 (vect_transform_stmt): Likewise.
3687 (vect_init_vector): Support boolean vector invariants.
3688 (vect_get_vec_def_for_operand): Add VECTYPE arg.
3689 (vectorizable_condition): Directly provide vectype for invariants
3691 * tree-vectorizer.h (get_mask_type_for_scalar_type): New.
3692 (enum vect_var_kind): Add vect_mask_var.
3693 (enum stmt_vec_info_type): Add comparison_vec_info_type.
3694 (vectorizable_comparison): New.
3695 (vect_get_vec_def_for_operand): Add VECTYPE arg.
3696 * tree-vect-data-refs.c (vect_get_new_vect_var): Support vect_mask_var.
3697 (vect_create_destination_var): Likewise.
3698 * tree-vect-patterns.c (check_bool_pattern): Check fails
3699 if we can vectorize comparison directly.
3700 (search_type_for_mask): New.
3701 (vect_recog_bool_pattern): Support cases when bool pattern check fails.
3702 * tree-vect-slp.c (vect_build_slp_tree_1): Allow
3703 comparison statements.
3704 (vect_get_constant_vectors): Support boolean vector constants.
3705 * config/i386/i386-protos.h (ix86_expand_mask_vec_cmp): New.
3706 (ix86_expand_int_vec_cmp): New.
3707 (ix86_expand_fp_vec_cmp): New.
3708 * config/i386/i386.c (ix86_expand_sse_cmp): Allow NULL for
3709 op_true and op_false.
3710 (ix86_int_cmp_code_to_pcmp_immediate): New.
3711 (ix86_fp_cmp_code_to_pcmp_immediate): New.
3712 (ix86_cmp_code_to_pcmp_immediate): New.
3713 (ix86_expand_mask_vec_cmp): New.
3714 (ix86_expand_fp_vec_cmp): New.
3715 (ix86_expand_int_sse_cmp): New.
3716 (ix86_expand_int_vcond): Use ix86_expand_int_sse_cmp.
3717 (ix86_expand_int_vec_cmp): New.
3718 (ix86_get_mask_mode): New.
3719 (TARGET_VECTORIZE_GET_MASK_MODE): New.
3720 * config/i386/sse.md (avx512fmaskmodelower): New.
3721 (vec_cmp<mode><avx512fmaskmodelower>): New.
3722 (vec_cmp<mode><sseintvecmodelower>): New.
3723 (vec_cmpv2div2di): New.
3724 (vec_cmpu<mode><avx512fmaskmodelower>): New.
3725 (vec_cmpu<mode><sseintvecmodelower>): New.
3726 (vec_cmpuv2div2di): New.
3728 2015-11-10 Richard Biener <rguenther@suse.de>
3730 PR tree-optimization/68240
3731 * tree-ssa-sccvn.c (cond_stmts_equal_p): Handle commutative compares
3733 (visit_phi): For PHIs with just a single executable edge
3734 take its value directly.
3735 (expressions_equal_p): Handle VN_TOP properly.
3737 2015-11-10 Richard Biener <rguenther@suse.de>
3739 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
3740 Handle memory using/clobbering stmts without a STMT_VINFO_DATA_REF
3743 2015-11-10 Richard Biener <rguenther@suse.de>
3745 PR tree-optimization/56118
3746 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Make equal
3747 cost favor vectorized version.
3749 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3751 * config/aarch64/aarch64.md (<neg_not_op><mode>cc): New define_expand.
3752 * config/aarch64/iterators.md (NEG_NOT): New code iterator.
3753 (neg_not_op): New code attribute.
3755 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3757 * ifcvt.c (noce_try_inverse_constants): New function.
3758 (noce_process_if_block): Call it.
3759 * optabs.h (emit_conditional_neg_or_complement): Declare prototype.
3760 * optabs.def (negcc_optab, notcc_optab): Declare.
3761 * optabs.c (emit_conditional_neg_or_complement): New function.
3762 * doc/tm.texi (Standard Names): Document negcc, notcc names.
3764 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3766 PR rtl-optimization/68236
3767 * haifa-sched.c (autopref_multipass_dfa_lookahead_guard): Return 0
3768 if insn_queue doesn't exist.
3769 (haifa_sched_finish): Reset insn_queue to NULL.
3771 2015-11-10 Robert Suchanek <robert.suchanek@imgtec.com>
3773 * regrename.c (create_new_chain): Initialize renamed and tied_chain.
3774 (build_def_use): Initialize terminated_this_insn.
3775 (find_best_rename_reg): Pick and check register from the tied chain.
3776 (regrename_do_replace): Mark head as renamed.
3777 (struct du_head *terminated_this_insn). New static variable.
3778 (scan_rtx_reg): Tie chains in move insns. Set terminated_this_insn.
3779 * regrename.h (struct du_head): Add tied_chain, renamed members.
3781 2015-11-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3784 * config/aarch64/aarch64.c (aarch64_use_constant_blocks_p):
3787 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
3790 * config/sparc/sparc.c (sparc_function_value_1): In 32-bit mode, do
3791 not promote the mode for aggregate types.
3793 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
3795 * omp-low.h (replace_oacc_fn_attrib, build_oacc_routine_dims): Declare.
3796 * omp-low.c (build_oacc_routine_dims): New.
3798 2015-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
3800 * config/rs6000/constraints.md (wF constraint): New constraints
3801 for power9/toc fusion.
3802 (wG constraint): Likewise.
3804 * config/rs6000/predicates.md (u6bit_cint_operand): New
3805 predicate, recognize 0..63.
3806 (upper16_cint_operand): New predicate for power9 and toc fusion.
3807 (fpr_reg_operand): Likewise.
3808 (toc_fusion_or_p9_reg_operand): Likewise.
3809 (toc_fusion_mem_raw): Likewise.
3810 (toc_fusion_mem_wrapped): Likewise.
3811 (fusion_gpr_addis): If power9 fusion, allow fusion for a larger
3813 (fusion_gpr_mem_combo): Delete, use fusion_addis_mem_combo_load
3815 (fusion_addis_mem_combo_load): Add support for power9 fusion of
3816 floating point loads, floating point stores, and gpr stores.
3817 (fusion_addis_mem_combo_store): Likewise.
3818 (fusion_offsettable_mem_operand): Likewise.
3820 * config/rs6000/rs6000-protos.h (emit_fusion_addis): Add declarations.
3821 (emit_fusion_load_store): Likewise.
3822 (fusion_p9_p): Likewise.
3823 (expand_fusion_p9_load): Likewise.
3824 (expand_fusion_p9_store): Likewise.
3825 (emit_fusion_p9_load): Likewise.
3826 (emit_fusion_p9_store): Likewise.
3827 (fusion_wrap_memory_address): Likewise.
3829 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add new
3830 elements for power9 fusion.
3831 (rs6000_debug_print_mode): Rework debug information to print more
3832 information about fusion.
3833 (rs6000_init_hard_regno_mode_ok): Setup for power9 fusion support.
3834 (rs6000_legitimate_address_p): Recognize toc fusion as a valid
3835 offsettable memory address.
3836 (rs6000_rtx_costs): Update costs for new ISA 3.0 instructions.
3837 (emit_fusion_gpr_load): Move most of the code from
3838 emit_fusion_gpr_load into emit_fusion-addis that handles both
3839 power8 and power9 fusion.
3840 (emit_fusion_addis): Likewise.
3841 (emit_fusion_load_store): Likewise.
3842 (fusion_wrap_memory_address): Add support for TOC fusion.
3843 (fusion_split_address): Likewise.
3844 (fusion_p9_p): Add support for power9 fusion.
3845 (expand_fusion_p9_load): Likewise.
3846 (expand_fusion_p9_store): Likewise.
3847 (emit_fusion_p9_load): Likewise.
3848 (emit_fusion_p9_store): Likewise.
3850 * config/rs6000/rs6000.h (TARGET_EXTSWSLI): Macros for support for
3851 new instructions in ISA 3.0.
3852 (TARGET_CTZ): Likewise.
3853 (TARGET_TOC_FUSION_INT): Macros for power9 fusion support.
3854 (TARGET_TOC_FUSION_FP): Likewise.
3856 * config/rs6000/rs6000.md (UNSPEC_FUSION_P9): New power9/toc
3858 (UNSPEC_FUSION_ADDIS): Likewise.
3859 (QHSI mode iterator): New iterator for power9 fusion.
3860 (GPR_FUSION): Likewise.
3861 (FPR_FUSION): Likewise.
3862 (mod<mode>3): Add support for ISA 3.0 modulus instructions.
3863 (umod<mode>3): Likewise.
3864 (divmod peephole): Likewise.
3865 (udivmod peephole): Likewise.
3866 (ctz<mode>2): Add support for ISA 3.0 count trailing zeros scalar
3868 (ctz<mode>2_h): Likewise.
3869 (ashdi3_extswsli): Add support for ISA 3.0 EXTSWSLI instruction.
3870 (ashdi3_extswsli_dot): Likewise.
3871 (ashdi3_extswsli_dot2): Likewise.
3872 (power9 fusion splitter): New power9/toc fusion support.
3873 (toc_fusionload_<mode>): Likewise.
3874 (toc_fusionload_di): Likewise.
3875 (fusion_gpr_load_<mode>): Update predicate function.
3876 (power9 fusion peephole2s): New power9/toc fusion support.
3877 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
3878 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_store): Likewise.
3879 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
3880 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
3881 (fusion_p9_<mode>_constant): Likewise.
3883 2015-11-09 Steve Ellcey <sellcey@imgtec.com>
3885 * optabs.c (prepare_libcall_arg): New function.
3886 (expand_fixed_convert): Add call to prepare_libcall_arg.
3888 2015-11-09 Nikolai Bozhenov <n.bozhenov@samsung.com>
3890 * sched-int.h (dump_rgn_dependencies_dot): Declare
3891 * sched-rgn.c (dump_rgn_dependencies_dot): New function
3892 * print-rtl.h (print_insn): Add prototype
3894 * haifa-sched.c (setup_sched_dump): Don't redirect output to stderr.
3895 * common.opt (-fsched-verbose): Set default value to 1.
3896 * invoke.texi (-fsched-verbose): Update the option's description.
3898 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
3900 * config/visium/visium.h (PRINT_OPERAND): Delete.
3901 (PRINT_OPERAND_PUNCT_VALID_P): Likewise.
3902 (PRINT_OPERAND_ADDRESS): Likewise.
3903 * config/visium/visium.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define
3905 (visium_print_operand_punct_valid_p): ...this. New function.
3906 (TARGET_PRINT_OPERAND): Define to...
3907 (print_operand): Rename to...
3908 (visium_print_operand): ...this.
3909 (TARGET_PRINT_OPERAND_ADDRESS): Define to...
3910 (visium_output_address): Rename to...
3911 (visium_print_operand_address): ...this.
3912 (print_operand_address): Delete.
3914 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
3917 * tree.h (reverse_storage_order_for_component_p) <COMPONENT_REF>:
3918 Check that the type of the first operand is an aggregate type.
3920 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
3922 * omp-low.c: Fix some OpenACC comment typos.
3923 (lower_reduction_clauses): Remove BUILT_IN_GOACC_GET_THREAD_NUM call.
3924 * omp-builtins.def (BUILT_IN_GOACC_GET_THREAD_NUM,
3925 BUILT_IN_GOACC_GET_NUM_THREADS): Delete.
3927 2015-11-09 Uros Bizjak <ubizjak@gmail.com>
3929 * config/i386/i386.md (*strmovqi_1): Fix insn enable condition.
3931 2015-11-09 Jeff Law <law@redhat.com>
3933 * tree-ssanames.c (verify_ssaname_freelists): Simplify check for
3934 being in gimple/ssa form. Remove redundant check for SSA_NAME.
3937 2015-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
3938 Peter Bergner <bergner@vnet.ibm.com>
3940 * config/rs6000/rs6000.opt (-mpower9-fusion): Add new switches for
3942 (-mpower9-vector): Likewise.
3943 (-mpower9-dform): Likewise.
3944 (-mpower9-minmax): Likewise.
3945 (-mtoc-fusion): Likewise.
3946 (-mmodulo): Likewise.
3947 (-mfloat128-hardware): Likewise.
3949 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add option
3950 mask for ISA 3.0 (power9).
3951 (POWERPC_MASKS): Add new ISA 3.0 switches.
3952 (power9 cpu): Add power9 cpu.
3954 * config/rs6000/rs6000.h (ASM_CPU_POWER9_SPEC): Add support for power9.
3955 (ASM_CPU_SPEC): Likewise.
3956 (EXTRA_SPECS): Likewise.
3958 * config/rs6000/rs6000-opts.h (enum processor_type): Add
3961 * config/rs6000/rs6000.c (power9_cost): Initial cost setup for power9.
3962 (rs6000_debug_reg_global): Add support for power9 fusion.
3963 (rs6000_setup_reg_addr_masks): Cache mode size.
3964 (rs6000_option_override_internal): Until real power9 tuning is
3965 added, use -mtune=power8 for -mcpu=power9.
3966 (rs6000_setup_reg_addr_masks): Do not allow pre-increment,
3967 pre-decrement, or pre-modify on SFmode/DFmode if we allow the use
3968 of Altivec registers.
3969 (rs6000_option_override_internal): Add support for ISA 3.0 switches.
3970 (rs6000_loop_align): Add support for power9 cpu.
3971 (rs6000_file_start): Likewise.
3972 (rs6000_adjust_cost): Likewise.
3973 (rs6000_issue_rate): Likewise.
3974 (insn_must_be_first_in_group): Likewise.
3975 (insn_must_be_last_in_group): Likewise.
3976 (force_new_group): Likewise.
3977 (rs6000_register_move_cost): Likewise.
3978 (rs6000_opt_masks): Likewise.
3980 * config/rs6000/rs6000.md (cpu attribute): Add power9.
3981 * config/rs6000/rs6000-tables.opt: Regenerate.
3983 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
3984 _ARCH_PWR9 if power9 support is available.
3986 * config/rs6000/aix61.h (ASM_CPU_SPEC): Add power9.
3987 * config/rs6000/aix53.h (ASM_CPU_SPEC): Likewise.
3989 * configure.ac: Determine if the assembler supports the ISA 3.0
3991 * config.in (HAVE_AS_POWER9): Likewise.
3992 * configure: Regenerate.
3994 * doc/invoke.texi (RS/6000 and PowerPC Options): Document ISA 3.0
3997 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3999 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate):
4000 Remove integer CONST_DOUBLE handling. It should never occur.
4002 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4005 * config/aarch64/aarch64.h (TARGET_SUPPORTS_WIDE_INT): Define to 1.
4006 * config/aarch64/aarch64.c (aarch64_print_operand, CONST_DOUBLE):
4007 Delete VOIDmode case. Assert that mode is not VOIDmode.
4008 * config/aarch64/predicates.md (const0_operand): Remove const_double
4011 2015-11-09 Martin Liska <mliska@suse.cz>
4013 * ipa-inline-analysis.c (estimate_function_body_sizes): Call
4014 body_info release function.
4015 * ipa-prop.c (ipa_release_body_info): New function.
4016 (ipa_analyze_node): Call the function.
4017 (ipa_node_params::~ipa_node_params): Release known_csts.
4018 * ipa-prop.h (ipa_release_body_info): Declare.
4020 2015-11-09 Martin Liska <mliska@suse.cz>
4022 * gcc.c (record_temp_file): Release name string.
4023 * ifcvt.c (noce_convert_multiple_sets): Use auto_vec instead of vec.
4024 * lra-lives.c (free_live_range_list): Utilize
4025 lra_live_range_pool for allocation and deallocation.
4026 (create_live_range): Likewise.
4027 (copy_live_range): Likewise.
4028 (lra_merge_live_ranges): Likewise.
4029 (remove_some_program_points_and_update_live_ranges): Likewise.
4030 (lra_create_live_ranges_1): Release point_freq_vec that can
4031 be not freed from previous iteration of the function.
4032 * tree-eh.c (lower_try_finally_switch): Use auto_vec instead of vec.
4033 * tree-sra.c (sra_deinitialize): Release all vectors in
4035 * tree-ssa-dom.c (free_dom_edge_info): Make the function extern.
4036 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
4037 Release edge_info for a removed edge.
4038 (thread_through_all_blocks): Free region vector.
4039 * tree-ssa.h (free_dom_edge_info): Declare function extern.
4041 2015-11-09 Ilya Enkovich <enkovich.gnu@gmail.com>
4043 * optabs.c (expand_vec_cond_expr): Always get sign from type.
4044 * tree.c (wide_int_to_tree): Support negative values for boolean.
4045 (build_nonstandard_boolean_type): Use signed type for booleans.
4047 2015-11-09 Richard Biener <rguenther@suse.de>
4049 PR tree-optimization/68248
4050 * tree-vect-generic.c (expand_vector_operations_1): Handle scalar rhs2.
4052 2015-11-09 Richard Biener <rguenther@suse.de>
4054 PR tree-optimization/56118
4055 * tree-vectorizer.h (vect_find_last_scalar_stmt_in_slp): Declare.
4056 * tree-vect-slp.c (vect_find_last_scalar_stmt_in_slp): Export.
4057 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): New
4059 (vect_slp_analyze_data_ref_dependences): Instead of computing
4060 all dependences of the region DRs just analyze the code motions
4061 SLP vectorization will perform. Remove SLP instances that
4062 cannot have their store/load motions applied.
4063 (vect_analyze_data_refs): Allow DRs without a vectype
4064 in BB vectorization.
4066 2015-11-09 Julian Brown <julian@codesourcery.com>
4068 * final.c (output_asm_insn): Pass VOIDmode to output_address.
4069 (output_address): Add MODE argument. Pass to print_operand_address
4071 * targhooks.c (default_print_operand_address): Add MODE argument.
4072 * targhooks.h (default_print_operand_address): Update prototype.
4073 * output.h (output_address): Update prototype.
4074 * target.def (print_operand_address): Add MODE argument.
4075 * config/vax/vax.c (print_operand_address): Pass VOIDmode to
4077 (print_operand): Pass access mode to output_address.
4078 * config/mcore/mcore.c (mcore_print_operand_address): Add MODE
4080 (mcore_print_operand): Update calls to mcore_print_operand_address.
4081 * config/fr30/fr30.c (fr30_print_operand): Pass VOIDmode to
4083 * config/lm32/lm32.c (lm32_print_operand): Pass mode in calls to
4085 * config/tilegx/tilegx.c (output_memory_reference_mode): Remove
4087 (tilegx_print_operand): Don't set above global. Update calls to
4089 (tilegx_print_operand_address): Add MODE argument. Use instead of
4090 output_memory_reference_mode global.
4091 * config/frv/frv.c (frv_print_operand_address): Add MODE argument.
4092 (frv_print_operand): Pass mode to frv_print_operand_address calls.
4093 * config/mn10300/mn10300.c (mn10300_print_operand): Pass mode to
4095 * config/cris/cris.c (cris_print_operand_address): Add MODE argument.
4096 (cris_print_operand): Pass mode to output_address calls.
4097 * config/spu/spu.c (print_operand): Pass mode to output_address calls.
4098 * config/aarch64/aarch64.h (aarch64_print_operand)
4099 (aarch64_print_operand_address): Remove prototypes.
4100 * config/aarch64/aarch64.c (aarch64_memory_reference_mode): Delete
4102 (aarch64_print_operand): Make static. Update calls to output_address.
4103 (aarch64_print_operand_address): Add MODE argument. Use instead of
4104 aarch64_memory_reference_mode global.
4105 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define target
4107 * config/aarch64/aarch64.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
4108 Delete macro definitions.
4109 * config/pa/pa.c (pa_print_operand): Pass mode in output_address calls.
4110 * config/xtensa/xtensa.c (print_operand): Pass mode in
4111 output_address calls.
4112 * config/h8300/h8300.c (h8300_print_operand_address): Add MODE
4114 (h83000_print_operand): Update calls to h8300_print_operand_address
4116 * config/ia64/ia64.c (ia64_print_operand_address): Add MODE argument.
4117 * config/tilepro/tilepro.c (output_memory_reference_mode): Delete
4119 (tilepro_print_operand): Pass mode to output_address.
4120 (tilepro_print_operand_address): Add MODE argument. Use instead of
4121 output_memory_reference_mode.
4122 * config/nvptx/nvptx.c (output_decl_chunk, nvptx_assemble_integer)
4123 (nvptx_output_call_insn, nvptx_print_address_operand): Pass VOIDmode
4124 to output_address calls.
4125 (nvptx_print_operand_address): Add MODE argument.
4126 * config/alpha/alpha.c (print_operand): Pass mode argument in
4127 output_address calls.
4128 * config/m68k/m68k.c (print_operand): Pass mode argument in
4129 output_address call.
4130 * config/avr/avr.c (avr_print_operand_address): Add MODE argument.
4131 (avr_print_operand): Update calls to avr_print_operand_address.
4132 * config/sparc/sparc.c (sparc_print_operand_address): Add MODE
4133 argument. Update calls to output_address.
4134 (sparc_print_operand): Pass mode to output_address.
4135 * config/iq2000/iq2000.c (iq2000_print_operand_address): Add MODE
4137 (iq2000_print_operand): Pass mode in output_address calls.
4138 * config/stormy16/stormy16.c (xstormy16_print_operand_address): Add
4140 (xstormy16_print_operand): Pass mode to
4141 xstormy16_print_operand_address calls.
4142 * config/mips/mips.c (mips_print_operand): Update calls to
4144 (mips_print_operand_address): Add MODE argument.
4145 * config/epiphany/epiphany.c (epiphany_print_operand): Update calls
4147 (epiphany_print_operand_address): Add MODE argument. Add FIXME note.
4148 * config/pdp11/pdp11.c (pdp11_asm_print_operand): Update call to
4150 * config/rx/rx.c (rx_print_operand_address): Add MODE argument.
4151 (rx_print_operand): Update calls to output_address,
4152 rx_print_operand_address.
4153 * config/nds32/nds32.c (nds32_print_operand): Update calls to
4155 (nds32_print_operand_address): Add MODE argument.
4156 * config/rs6000/rs6000.c (print_operand): Pass mem mode to
4157 output_address calls.
4158 * config/c6x/c6x.c (print_address_offset): Pass mem mode to
4159 output_address call.
4160 (c6x_print_address_operand): Update calls to output_address.
4161 (c6x_print_operand_address): Pass mode to above.
4162 * config/v850/v850.c (v850_print_operand_address): Add MODE argument.
4163 (v850_print_operand): Pass mode to v850_print_operand_address,
4165 * config/mmix/mmix.c (mmix_print_operand_address): Add MODE argument.
4166 (mmix_print_operand): Pass mode in output_address calls.
4167 * config/sh/sh.c (sh_print_operand_address): Add MODE argument.
4168 (sh_print_operand): Pass mem mode to output_address,
4169 sh_print_operand_address.
4170 * config/cr16/cr16.c (cr16_print_operand_address): Add MODE argument.
4171 (cr16_print_operand): Pass mode to output_address,
4172 cr16_print_operand_address.
4173 * config/bfin/bfin.c (print_address_operand): Pass VOIDmode to
4175 * config/microblaze/microblaze.c (print_operand): Pass mode to
4177 * config/nios2/nios2.c (nios2_print_operand): Pass VOIDmode to
4179 (nios2_print_operand_address): Add MODE argument. Update call to
4180 nios2_print_operand_address.
4181 * config/s390/s390.c (print_operand): Pass mode to output_address.
4182 * config/m32c/m32c.c (m32c_print_operand_address): Add MODE argument.
4183 * config/arc/arc.c (arc_print_operand): Pass VOIDmode to
4185 * config/arm/arm.c (arm_print_operand_address): Add MODE argument.
4186 Use instead of output_memory_reference_mode.
4187 (output_memory_reference_mode): Delete global.
4188 (arm_print_operand): Pass mem mode to output_address.
4189 * config/m32r/m32r.c (m32r_print_operand_address): Add MODE argument.
4190 (m32r_print_operand): Pass mode to output_address.
4191 * config/msp430/msp430.c (msp430_print_operand_addr): Add MODE
4193 (msp430_print_operand): Pass mode to msp430_print_operand_addr.
4194 * config/i386/i386.c (ix86_print_operand): Pass mode to
4195 output_address calls.
4196 (ix86_print_operand_address): Add MODE argument.
4198 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
4201 * tree-core.h (REF_REVERSE_STORAGE_ORDER): Move around.
4202 * tree.h (REF_REVERSE_STORAGE_ORDER): Change to default_def_flag.
4203 * tree-streamer-in.c (unpack_ts_base_value_fields): Adjust.
4204 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
4206 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4208 PR rtl-optimization/67749
4209 * ifcvt.c (noce_try_cmove_arith): Do not emit move in IF-ELSE
4210 case before emitting the two blocks. Instead modify the register
4211 in the corresponding final insn of the basic block.
4213 2015-11-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4215 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Allow for differences in
4218 Define HAVE_INITFINI_ARRAY_SUPPORT as 0/1.
4220 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define to
4221 HAVE_INITFINI_ARRAY_SUPPORT.
4222 * config/initfini-array.h: Check HAVE_INITFINI_ARRAY_SUPPORT value.
4224 * configure.ac (gcc_cv_as_sparc_nobits): Remove.
4225 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section):
4226 Don't check HAVE_AS_SPARC_NOBITS.
4227 Heed SECTION_NOTYPE.
4229 * configure: Regenerate.
4230 * config.in: Regenerate.
4232 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
4235 * fold-const.c (fold_truth_andor_1): Initialize new variables to 0.
4237 2015-11-09 Richard Henderson <rth@redhat.com>
4239 * config/i386/i386-c.c (ix86_target_macros): Define __SEG_FS,
4240 __SEG_GS, __SEG_TLS.
4241 (ix86_register_pragmas): Register address spaces __seg_fs,
4242 __seg_gs, __seg_tls.
4243 * config/i386/i386-protos.h (enum ix86_address_seg): Remove.
4244 (ADDR_SPACE_SEG_FS, ADDR_SPACE_SEG_GS, ADDR_SPACE_SEG_TLS): New.
4245 (struct ix86_address): Use addr_space_t instead of ix86_address_seg.
4246 * config/i386/i386.c (ix86_decompose_address): Likewise.
4247 (ix86_legitimate_address_p): Likewise.
4248 (memory_address_length): Likewise. Check mem address space too.
4249 (ix86_print_operand): Use ix86_print_operand_address_as.
4250 (ix86_print_operand_address_as): Rename from
4251 ix86_print_operand_address, add new addr_space_t parameter.
4252 Validate that either the parameter or the ix86_address segment
4253 is default address space. Handle ADDR_SPACE_SEG_TLS.
4254 (ix86_print_operand_address): New.
4255 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): New.
4256 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): New.
4257 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): New.
4258 (ix86_addr_space_zero_address_valid): New.
4259 (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
4260 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): Use addr_space_t constants.
4261 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Likewise.
4262 * config/i386/predicates.md (address_no_seg_operand): Likewise.
4263 (vsib_address_operand): Likewise.
4264 (address_mpx_no_base_operand): Likewise.
4265 (address_mpx_no_index_operand): Likewise.
4266 * doc/extend.texi (x86 Named Address Spaces): New section.
4268 * config/i386/i386.c (ix86_check_no_addr_space): New.
4269 (decide_alg): Add have_as parameter.
4270 (alg_usable_p): Likewise; disable rep algorithms if set.
4271 (ix86_expand_set_or_movmem): Notice if either MEM has a
4272 non-default address space.
4273 (ix86_expand_strlen): Likewise.
4274 * config/i386/i386.md (strmov, strset): Likewise.
4275 (*strmovdi_rex_1): Use ix86_check_no_addr_space.
4276 (*strmovsi_1, *strmovqi_1, *rep_movdi_rex64, *rep_movsi, *rep_movqi,
4277 *strsetdi_rex_1, *strsetsi_1, *strsethi_1, *strsetqi_1,
4278 *rep_stosdi_rex64, *rep_stossi, *rep_stosqi, *cmpstrnqi_nz_1,
4279 *cmpstrnqi_1, *strlenqi_1): Likewise.
4281 * config/i386/i386.md (*movabs<mode>_1): Print the full memory rtx.
4282 (*movabs<mode>_2): Likewise.
4284 * dwarf2out.c (modified_type_die): Pass the address space number
4285 through TARGET_ADDR_SPACE_DEBUG to produce the dwarf address class.
4286 * target.def (TARGET_ADDR_SPACE_DEBUG): New.
4287 * targhooks.c (default_addr_space_debug): New.
4288 * targhooks.h (default_addr_space_debug): Declare.
4289 * doc/tm.texi.in (TARGET_ADDR_SPACE_DEBUG): Mark it.
4290 * doc/tm.texi: Rebuild.
4292 * gimple.c (check_loadstore): Return false when 0 is a valid address.
4293 * fold-const.c (const_unop) [ADDR_SPACE_CONVERT_EXPR]: Do not fold
4294 null when 0 is valid in the source address space.
4295 * target.def (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
4296 * targhooks.c (default_addr_space_zero_address_valid): New.
4297 * targhooks.h (default_addr_space_zero_address_valid): Declare.
4298 * doc/tm.texi.in (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): Mark it.
4299 * doc/tm.texi: Rebuild.
4301 * cselib.c (add_mem_for_addr): Compare address spaces when
4303 (cselib_lookup_mem): Likewise.
4304 * fold-const.c (operand_equal_p): Check address spaces of
4305 pointer types before checking integer constants.
4308 * tree-ssa-address.c (create_mem_ref_raw): Use a pointer of
4309 the correct type for the base.
4311 2015-11-09 Jeff Law <law@redhat.com>
4313 * tree-into-ssa.c (names_to_release): No longer static.
4314 * tree-into-ssa.h (names_to_release): Declare.
4315 * tree-ssanames.c (verify_ssaname_freelists): New debug function.
4316 (release_free_names_and_compact_live_names): New function extracted
4317 from pass_release_ssa_names::execute.
4318 (pass_release_ssa_names::execute): Use it.
4320 2015-11-09 Alan Modra <amodra@gmail.com>
4322 * gensupport.c (add_mnemonic_string): Make len param a size_t.
4323 (gen_mnemonic_setattr): Make "size" var a size_t. Use
4324 obstack_blank_fast to shrink obstack. Cast obstack_next_free
4327 2015-11-09 Segher Boessenkool <segher@kernel.crashing.org>
4329 PR rtl-optimization/68182
4330 * bb-reorder.c (reorder_basic_blocks_simple): Treat a conditional
4331 branch with only one successor just like unconditional branches.
4333 2015-11-08 Jeff Law <law@redhat.com>
4335 * tree-ssa-threadupdate.c (register_jump_thraed): Assert that a
4336 non-FSM path has no edges marked with EDGE_DFS_BACK.
4337 (ssa_redirect_edges): No longer call mark_loop_for_removal.
4338 (thread_single_edge, def_split_header_continue_p): Remove.
4339 (bb_ends_with_multiway_branch): Likewise.
4340 (thread_through_loop_header): Remove cases of threading from
4341 latch through the header. Simplify knowing we won't thread
4343 (thread_through_all_blocks): Simplify knowing that only the FSM
4344 threader needs to handle backedges.
4346 2015-11-08 Eric Botcazou <ebotcazou@adacore.com>
4348 * doc/extend.texi (type attributes): Document scalar_storage_order.
4349 (Structure-Packing Pragmas): Rename into...
4350 (Structure-Layout Pragmas): ...this. Document scalar_storage_order.
4351 * doc/invoke.texi (C Dialect Options): Document -fsso-struct
4352 (Warnings): Document -Wno-scalar-storage-order.
4353 * flag-types.h (enum scalar_storage_order_kind): New enumeration.
4354 * calls.c (store_unaligned_arguments_into_pseudos): Adjust calls to
4355 extract_bit_field and store_bit_field.
4356 (initialize_argument_information): Adjust call to store_expr.
4357 (load_register_parameters): Adjust call to extract_bit_field.
4358 * expmed.c (check_reverse_storage_order_support): New function.
4359 (check_reverse_float_storage_order_support): Likewise.
4360 (flip_storage_order): Likewise.
4361 (store_bit_field_1): Add REVERSE parameter. Flip the storage order
4362 of the value if it is true. Pass REVERSE to recursive call after
4363 adjusting the target offset.
4364 Do not use extraction or movstrict instruction if REVERSE is true.
4365 Pass REVERSE to store_fixed_bit_field.
4366 (store_bit_field): Add REVERSE parameter and pass to it to above.
4367 (store_fixed_bit_field): Add REVERSE parameter and pass to it to
4368 store_split_bit_field and store_fixed_bit_field_1.
4369 (store_fixed_bit_field_1): Add REVERSE parameter. Flip the storage
4370 order of the value if it is true and adjust the target offset.
4371 (store_split_bit_field): Add REVERSE parameter and pass it to
4372 store_fixed_bit_field. Adjust the target offset if it is true.
4373 (extract_bit_field_1): Add REVERSE parameter. Flip the storage order
4374 of the value if it is true. Pass REVERSE to recursive call after
4375 adjusting the target offset.
4376 Do not use extraction or subreg instruction if REVERSE is true.
4377 Pass REVERSE to extract_fixed_bit_field.
4378 (extract_bit_field): Add REVERSE parameter and pass to it to above.
4379 (extract_fixed_bit_field): Add REVERSE parameter and pass to it to
4380 extract_split_bit_field and extract_fixed_bit_field_1.
4381 (extract_fixed_bit_field_1): Add REVERSE parameter. Flip the storage
4382 order of the value if it is true and adjust the target offset.
4383 (extract_split_bit_field): Add REVERSE parameter and pass it to
4384 extract_fixed_bit_field. Adjust the target offset if it is true.
4385 * expmed.h (flip_storage_order): Declare.
4386 (store_bit_field): Adjust prototype.
4387 (extract_bit_field): Likewise.
4388 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
4389 (emit_group_store): Adjust call to store_bit_field.
4390 (copy_blkmode_from_reg): Likewise.
4391 (copy_blkmode_to_reg): Likewise.
4392 (write_complex_part): Likewise.
4393 (read_complex_part): Likewise.
4394 (optimize_bitfield_assignment_op): Add REVERSE parameter. Assert
4395 that it isn't true if the target is a register.
4396 <PLUS_EXPR>: If it is, do not optimize unless bitsize is equal to 1,
4397 and flip the storage order of the value.
4398 <BIT_IOR_EXPR>: Flip the storage order of the value.
4399 (get_bit_range): Adjust call to get_inner_reference.
4400 (expand_assignment): Adjust calls to get_inner_reference, store_expr,
4401 optimize_bitfield_assignment_op and store_field. Handle MEM_EXPRs
4402 with reverse storage order.
4403 (store_expr_with_bounds): Add REVERSE parameter and pass it to
4404 recursive calls and call to store_bit_field. Force the value into a
4405 register if it is true and then flip the storage order of the value.
4406 (store_expr): Add REVERSE parameter and pass it to above.
4407 (categorize_ctor_elements_1): Adjust call to
4408 initializer_constant_valid_p.
4409 (store_constructor_field): Add REVERSE parameter and pass it to
4410 recursive calls and call to store_field.
4411 (store_constructor): Add REVERSE parameter and pass it to calls to
4412 store_constructor_field and store_expr. Set it to true for an
4413 aggregate type with TYPE_REVERSE_STORAGE_ORDER.
4414 (store_field): Add REVERSE parameter and pass it to recursive calls
4415 and calls to store_expr and store_bit_field. Temporarily flip the
4416 storage order of the value with record type and integral mode and
4417 adjust the shift if it is true.
4418 (get_inner_reference): Add PREVERSEP parameter and set it to true
4419 upon encoutering a reference with reverse storage order.
4420 (expand_expr_addr_expr_1): Adjust call to get_inner_reference.
4421 (expand_constructor): Adjust call to store_constructor.
4422 (expand_expr_real_2) <CASE_CONVERT>: Pass TYPE_REVERSE_STORAGE_ORDER
4423 of the union type to store_expr in the MEM case and assert that it
4424 isn't set in the REG case. Adjust call to store_field.
4425 (expand_expr_real_1) <MEM_REF>: Handle reverse storage order.
4426 <normal_inner_ref>: Add REVERSEP variable and adjust calls to
4427 get_inner_reference and extract_bit_field. Temporarily flip the
4428 storage order of the value with record type and integral mode and
4429 adjust the shift if it is true. Flip the storage order of the value
4430 at the end if it is true.
4431 <VIEW_CONVERT_EXPR>: Add REVERSEP variable and adjust call to
4432 get_inner_reference. Do not fetch an inner reference if it is true.
4433 * expr.h (store_expr_with_bounds): Ajust prototype.
4434 (store_expr): Likewise.
4435 * fold-const.c (make_bit_field_ref): Add REVERSEP parameter and set
4436 REF_REVERSE_STORAGE_ORDER on the reference according to it.
4437 (optimize_bit_field_compare): Deal with reverse storage order.
4438 Adjust calls to get_inner_reference and make_bit_field_ref.
4439 (decode_field_reference): Add PREVERSEP parameter and adjust call to
4440 get_inner_reference.
4441 (fold_truth_andor_1): Deal with reverse storage order. Adjust calls
4442 to decode_field_reference and make_bit_field_ref.
4443 (fold_unary_loc) <CASE_CONVERT>: Adjust call to get_inner_reference.
4444 <VIEW_CONVERT_EXPR>: Propagate the REF_REVERSE_STORAGE_ORDER flag.
4445 (fold_comparison): Adjust call to get_inner_reference.
4446 (split_address_to_core_and_offset): Adjust call to
4447 get_inner_reference.
4448 * gimple-expr.c (useless_type_conversion_p): Return false for array
4449 types with different TYPE_REVERSE_STORAGE_ORDER flag.
4450 * gimplify.c (gimplify_expr) <MEM_REF>: Propagate the
4451 REF_REVERSE_STORAGE_ORDER flag.
4452 * lto-streamer-out.c (hash_tree): Deal with TYPE_REVERSE_STORAGE_ORDER.
4453 * output.h (assemble_real): Adjust prototype.
4454 * print-tree.c (print_node): Convey TYPE_REVERSE_STORAGE_ORDER.
4455 * stor-layout.c (finish_record_layout): Propagate the
4456 TYPE_REVERSE_STORAGE_ORDER flag to the variants.
4457 * tree-core.h (TYPE_REVERSE_STORAGE_ORDER): Document.
4458 (TYPE_SATURATING): Adjust.
4459 (REF_REVERSE_STORAGE_ORDER): Document.
4460 * tree-dfa.c (get_ref_base_and_extent): Add PREVERSE parameter and
4461 set it to true upon encoutering a reference with reverse storage order.
4462 * tree-dfa.h (get_ref_base_and_extent): Adjust prototype.
4463 * tree-inline.c (remap_gimple_op_r): Propagate the
4464 REF_REVERSE_STORAGE_ORDER flag.
4465 (copy_tree_body_r): Likewise.
4466 * tree-outof-ssa.c (insert_value_copy_on_edge): Adjust call to
4468 * tree-streamer-in.c (unpack_ts_base_value_fields): Deal with
4469 TYPE_REVERSE_STORAGE_ORDER and REF_REVERSE_STORAGE_ORDER.
4470 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
4471 * tree.c (stabilize_reference) <BIT_FIELD_REF>: Propagate the
4472 REF_REVERSE_STORAGE_ORDER flag.
4473 (verify_type_variant): Deal with TYPE_REVERSE_STORAGE_ORDER.
4474 (gimple_canonical_types_compatible_p): Likewise.
4475 * tree.h (TYPE_REVERSE_STORAGE_ORDER): New flag.
4476 (TYPE_SATURATING): Adjust.
4477 (REF_REVERSE_STORAGE_ORDER): New flag.
4478 (reverse_storage_order_for_component_p): New inline predicate.
4479 (storage_order_barrier_p): Likewise.
4480 (get_inner_reference): Adjust prototype.
4481 * varasm.c: Include expmed.h.
4482 (assemble_variable_contents): Adjust call to output_constant.
4483 (assemble_real): Add REVERSE parameter. Flip the storage
4484 order of the value if REVERSE is true.
4485 (compare_constant) <CONSTRUCTOR>: Compare TYPE_REVERSE_STORAGE_ORDER.
4486 (assemble_constant_contents): Adjust call to output_constant.
4487 (output_constant_pool_2): Adjust call to assemble_real.
4488 (initializer_constant_valid_p_1) <CONSTRUCTOR>: Deal with
4489 TYPE_REVERSE_STORAGE_ORDER.
4490 (initializer_constant_valid_p): Add REVERSE parameter.
4491 (output_constant): Add REVERSE parameter.
4492 <INTEGER_TYPE>: Flip the storage order of the value if REVERSE is true.
4493 <REAL_TYPE>: Adjust call to assemble_real.
4494 <COMPLEX_TYPE>: Pass it to recursive calls.
4495 <ARRAY_TYPE>: Likewise. Adjust call to output_constructor.
4496 <RECORD_TYPE>: Likewise. Adjust call to output_constructor.
4497 (struct oc_local_state): Add REVERSE field.
4498 (output_constructor_array_range): Adjust calls to output_constant.
4499 (output_constructor_regular_field): Likewise.
4500 (output_constructor_bitfield): Adjust call to output_constructor.
4501 Flip the storage order of the value if REVERSE is true.
4502 (output_constructor): Add REVERSE parameter. Set it to true for an
4503 aggregate type with TYPE_REVERSE_STORAGE_ORDER. Adjust call to
4504 output_constructor_bitfield.
4505 * varasm.h (initializer_constant_valid_p): Default REVERSE to false.
4506 * asan.c (instrument_derefs): Adjust call to get_inner_reference.
4507 * builtins.c (get_object_alignment_2): Likewise.
4508 * cfgexpand.c (expand_debug_expr): Adjust call to get_inner_reference
4509 and get_ref_base_and_extent.
4510 * dbxout.c (dbxout_expand_expr): Likewise.
4511 * dwarf2out.c (add_var_loc_to_decl): Likewise.
4512 (loc_list_for_address_of_addr_expr_of_indirect_ref): Likewise.
4513 (loc_list_from_tree): Likewise.
4514 (fortran_common): Likewise.
4515 * gimple-fold.c (gimple_fold_builtin_memory_op): Adjust calls to
4516 get_ref_base_and_extent.
4517 (get_base_constructor): Likewise.
4518 (fold_const_aggregate_ref_1): Likewise.
4519 * gimple-laddress.c (pass_laddress::execute): Adjust call to
4520 get_inner_reference.
4521 * gimple-ssa-strength-reduction.c (slsr_process_ref): Adjust call to
4522 get_inner_reference and bail out on reverse storage order.
4523 * ifcvt.c (noce_emit_move_insn): Adjust calls to store_bit_field.
4524 * ipa-cp.c (ipa_get_jf_ancestor_result): Adjust call to
4525 build_ref_for_offset.
4526 * ipa-polymorphic-call.c (set_by_invariant): Adjust call to
4527 get_ref_base_and_extent.
4528 (ipa_polymorphic_call_context): Likewise.
4529 (extr_type_from_vtbl_ptr_store): Likewise.
4530 (check_stmt_for_type_change): Likewise.
4531 (get_dynamic_type): Likewise.
4532 * ipa-prop.c (ipa_load_from_parm_agg_1): Adjust call to
4533 get_ref_base_and_extent.
4534 (compute_complex_assign_jump_func): Likewise.
4535 (get_ancestor_addr_info): Likewise.
4536 (compute_known_type_jump_func): Likewise.
4537 (determine_known_aggregate_parts): Likewise.
4538 (ipa_get_adjustment_candidate): Likewise.
4539 (ipa_modify_call_arguments): Set REF_REVERSE_STORAGE_ORDER on MEM_REF.
4540 * ipa-prop.h (ipa_parm_adjustment): Add REVERSE field.
4541 (build_ref_for_offset): Adjust prototype.
4542 * simplify-rtx.c (delegitimize_mem_from_attrs): Adjust call to
4543 get_inner_reference.
4544 * tree-affine.c (tree_to_aff_combination): Adjust call to
4545 get_inner_reference.
4546 (get_inner_reference_aff): Likewise.
4547 * tree-data-ref.c (split_constant_offset_1): Likewise.
4548 (dr_analyze_innermost): Likewise. Bail out if reverse storage order.
4549 * tree-scalar-evolution.c (interpret_rhs_expr): Adjust call to
4550 get_inner_reference.
4551 * tree-sra.c (struct access): Add REVERSE and move WRITE around.
4552 (dump_access): Print new fields.
4553 (create_access): Adjust call to get_ref_base_and_extent and set the
4554 REVERSE flag according to the result.
4555 (completely_scalarize_record): Set the REVERSE flag.
4556 (scalarize_elem): Add REVERSE parameter.
4557 (build_access_from_expr_1): Preserve storage order barriers.
4558 (build_accesses_from_assign): Likewise.
4559 (build_ref_for_offset): Add REVERSE parameter and set the
4560 REF_REVERSE_STORAGE_ORDER flag accordingly.
4561 (build_ref_for_model): Adjust call to build_ref_for_offset and clear
4562 the REF_REVERSE_STORAGE_ORDER flag if there are components.
4563 (analyze_access_subtree): Likewise.
4564 (create_artificial_child_access): Set the REVERSE flag.
4565 (get_access_for_expr): Adjust call to get_ref_base_and_extent.
4566 (turn_representatives_into_adjustments): Propagate REVERSE flag.
4567 (ipa_sra_check_caller): Adjust call to get_inner_reference.
4568 * tree-ssa-alias.c (ao_ref_base): Adjust call to
4569 get_ref_base_and_extent.
4570 (aliasing_component_refs_p): Likewise.
4571 (stmt_kills_ref_p_1): Likewise.
4572 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
4573 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p) <MEM_REF>: New.
4574 Return true if reverse storage order.
4575 <BIT_FIELD_REF>: Likewise.
4576 <COMPONENT_REF>: Likewise.
4577 <ARRAY_REF>: Likewise.
4578 <ARRAY_RANGE_REF>: Likewise.
4579 (split_address_cost): Likewise. Bail out if reverse storage order.
4580 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Adjust call to
4581 get_inner_reference. Bail out if reverse storage order.
4582 (bswap_replace): Adjust call to get_inner_reference.
4583 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <MEM_REF>: Set
4584 the REF_REVERSE_STORAGE_ORDER flag.
4585 <BIT_FIELD_REF>: Likewise.
4586 * tree-ssa-sccvn.c (vn_reference_eq): Return false on storage order
4588 (copy_reference_ops_from_ref) <MEM_REF>: Set REVERSE field according
4589 to the REF_REVERSE_STORAGE_ORDER flag.
4590 <BIT_FIELD_REF>: Likewise.
4591 <VIEW_CONVERT_EXPR>: Set it for storage order barriers.
4592 (contains_storage_order_barrier_p): New predicate.
4593 (vn_reference_lookup_3): Adjust calls to get_ref_base_and_extent.
4594 Punt on storage order barriers if necessary.
4595 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add REVERSE.
4596 * tree-ssa-structalias.c (get_constraint_for_component_ref): Adjust
4597 call to get_ref_base_and_extent.
4598 (do_structure_copy): Likewise.
4599 * tree-vect-data-refs.c (vect_check_gather): Adjust call to
4600 get_inner_reference.
4601 (vect_analyze_data_refs): Likewise. Bail out if reverse storage order.
4602 * tsan.c (instrument_expr): Adjust call to get_inner_reference.
4603 * ubsan.c (instrument_bool_enum_load): Likewise.
4604 (instrument_object_size): Likewise.
4605 * var-tracking.c (track_expr_p): Adjust call to
4606 get_ref_base_and_extent.
4607 * config/mips/mips.c (r10k_safe_mem_expr_p): Adjust call to
4608 get_inner_reference.
4609 * config/s390/s390.c (s390_expand_atomic): Adjust call to
4611 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust call to
4613 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
4615 2015-11-07 Eric Botcazou <ebotcazou@adacore.com>
4617 * config/sparc/sparc.opt (mfix-at697f): Add final period.
4619 2015-11-07 Segher Boessenkool <segher@kernel.crashing.org>
4621 PR rtl-optimization/67864
4622 * common/config/i386/i386-common.c (ix86_option_optimization_table)
4623 <OPT_freorder_blocks_algorithm_>: Use REORDER_BLOCKS_ALGORITHM_STC
4626 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
4628 * trans-mem.c (is_tm_pure_call): Use gimple_call_flags for
4631 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
4633 * builtins.def: #undef DEF_BUILTIN and DEF_BUILTIN_CHKP
4634 * builtins.c, genmatch.c, tree-core.h: Don't undef them here.
4636 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
4638 * internal-fn.def: #undef DEF_INTERNAL_FN at the end.
4639 * internal-fn.c: Don't undef it here.
4640 * tree-core.h: Likewise.
4642 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
4644 * builtins.c (fold_builtin_nan): Delete.
4645 (fold_builtin_memcmp): Remove case where both arguments are constant.
4646 (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
4647 (fold_builtin_strspn, fold_builtin_strcspn): Likewise.
4648 (fold_builtin_1): Remove BUILT_IN_NAN* handling.
4649 * fold-const-call.c: Include fold-const.h.
4650 (host_size_t_cst_p): New function.
4651 (build_cmp_result, fold_const_builtin_nan): Likewise.
4652 (fold_const_call_1): New function, split out from...
4653 (fold_const_call): ...here (for all three interfaces). Handle
4654 constant nan, nans, strlen, strcmp, strncmp, strspn and strcspn.
4656 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
4658 * builtins.c (fold_builtin_bitop, fold_builtin_bswap): Delete.
4659 (fold_builtin_1): Don't call them.
4660 * fold-const-call.c: Include tm.h.
4661 (fold_const_call_ss): New variant for integer-to-integer folds.
4662 (fold_const_call): Call it.
4664 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
4666 * builtins.c (fold_builtin_classify): Move constant cases to...
4667 * fold-const-call.c (fold_const_call_ss): ...here.
4669 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
4671 * builtins.h (c_getstr): Move to...
4672 * fold-const.h (c_getstr): ...here.
4673 * builtins.c (c_getstr): Move to...
4674 * fold-const.c (c_getstr): ...here.
4676 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
4678 * builtins.def (BUILTIN_RINT, BUILTIN_RINTF, BUILTIN_RINTL): Use
4679 ATTR_MATHFN_FPROUNDING rather than ATTR_MATHFN_FPROUNDING_ERRNO.
4681 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
4683 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Try to update
4684 the dominance info; free it if we can't.
4685 (pass_call_cdce::execute): Don't free the dominance info here.
4687 2015-11-06 Jeff Law <law@redhat.com>
4689 * tree-ssa-threadedge.c (dummy_simplify): Remove.
4690 (thread_around_empty_blocks): Remove backedge_seen_p argument.
4691 If we thread to a backedge, then return false. Update recursive
4692 call to eliminate backedge_seen_p argument.
4693 (thread_through_normal_block): Remove backedge_seen_p argument.
4694 Remove backedge_seen_p argument from calls to
4695 thread_around_empty_blocks. Remove checks on backedge_seen_p.
4696 If we thread to a backedge, then return 0.
4697 (thread_across_edge): Remove bookkeeping for backedge_seen. Don't
4698 pass it to thread_through_normal_block or thread_through_empty_blocks.
4699 For joiner handling, if we see a backedge, do not try normal
4702 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
4704 * graphite-optimize-isl.c (optimize_isl): Call isl_union_map_is_equal.
4705 * graphite-poly.c (new_scop): Initialize original_schedule.
4706 (free_scop): Free original_schedule.
4707 * graphite-poly.h (struct scop): Add field original_schedule.
4708 * graphite-sese-to-poly.c (build_scop_original_schedule): New.
4709 (build_poly_scop): Call build_scop_original_schedule.
4711 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
4713 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
4714 (build_pbb_minimal_scattering_polyhedrons): New.
4715 (build_scop_scattering): Remove.
4716 (build_scop_minimal_scattering): New.
4717 (build_scop_scattering): Call build_pbb_minimal_scattering_polyhedrons.
4718 (build_poly_scop): Call build_scop_minimal_scattering.
4720 2015-11-06 Jeff Law <law@redhat.com>
4722 * cfg-flags.def (IGNORE): New edge flag.
4723 * tree-vrp.c (identify_jump_threads): Mark and clear edges
4724 scheduled for removal with EDGE_IGNORE around call into
4725 jump threader. Do no thread across edges with EDGE_IGNORE,
4726 but do allow threading across those with EDGE_DFS_BACK.
4728 2015-11-06 David Wohlferd <dw@LimeGreenSocks.com>
4730 * doc/md.texi (multi-alternative constraints): Don't document
4731 alternatives inherently tied to reload for the user documentation.
4733 2015-11-06 Michael Collison <michael.collison@linaro.org>
4734 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4737 2015-08-01 Michael Collison <michael.collison@linaro.org
4738 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4740 * config/arm/arm.md (*arm_smin_cmp): New pattern.
4741 (*arm_umin_cmp): Likewise.
4743 2015-11-06 Jakub Jelinek <jakub@redhat.com>
4745 * gimplify.c (gimplify_omp_ordered): Fix up diagnostics wording.
4746 * omp-low.c (check_omp_nesting_restrictions): Update for the
4747 various new OpenMP 4.5 nesting restrictions, clarified
4748 nesting glossary, closely nested region relationship clarified
4749 to mean explicit or implicit parallel regions (target/teams),
4750 use %</%> or %qs where appropriate.
4752 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
4753 Sebastian Pop <s.pop@samsung.com>
4755 * graphite-scop-detection.c (loop_is_valid_scop): Call
4756 optimize_loop_nest_for_speed_p.
4758 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
4759 Sebastian Pop <s.pop@samsung.com>
4761 * graphite-optimize-isl.c (optimize_isl): Call
4762 isl_options_set_schedule_maximize_band_depth.
4764 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
4765 Sebastian Pop <s.pop@samsung.com>
4767 * graphite-scop-detection.c (scop_detection::merge_sese): Entry
4768 and exit edges should not be a part of irreducible loop.
4769 (scop_detection::can_represent_loop_1): Loops should not be
4771 (scop_detection::harmful_stmt_in_region): All the basic block
4772 should belong to reducible loops.
4774 2015-11-06 Christophe Lyon <christophe.lyon@linaro.org>
4776 * config/aarch64/aarch64-simd-builtins.def: Update builtins
4777 tables: add tbl3v16qi, qtbl[34]*, tbx4v16qi, qtbx[34]*.
4778 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): Rename to...
4779 (aarch64_tbl3<mode>) ... this, which supports v16qi too.
4780 (aarch64_tbx4v8qi): Rename to...
4781 aarch64_tbx4<mode>): ... this.
4782 (aarch64_qtbl3<mode>): New pattern.
4783 (aarch64_qtbx3<mode>): New pattern.
4784 (aarch64_qtbl4<mode>): New pattern.
4785 (aarch64_qtbx4<mode>): New pattern.
4786 * config/aarch64/arm_neon.h (vqtbl2_s8, vqtbl2_u8, vqtbl2_p8)
4787 (vqtbl2q_s8, vqtbl2q_u8, vqtbl2q_p8, vqtbl3_s8, vqtbl3_u8)
4788 (vqtbl3_p8, vqtbl3q_s8, vqtbl3q_u8, vqtbl3q_p8, vqtbl4_s8)
4789 (vqtbl4_u8, vqtbl4_p8, vqtbl4q_s8, vqtbl4q_u8, vqtbl4q_p8)
4790 (vqtbx2_s8, vqtbx2_u8, vqtbx2_p8, vqtbx2q_s8, vqtbx2q_u8)
4791 (vqtbx2q_p8, vqtbx3_s8, vqtbx3_u8, vqtbx3_p8, vqtbx3q_s8)
4792 (vqtbx3q_u8, vqtbx3q_p8, vqtbx4_s8, vqtbx4_u8, vqtbx4_p8)
4793 (vqtbx4q_s8, vqtbx4q_u8, vqtbx4q_p8): Rewrite using builtin
4796 2015-11-06 Mike Stump <mikestump@comcast.net>
4799 * dwarf2out.c (get_full_len): Return a value based upon the actual
4800 precision needed for the value.
4801 (add_const_value_attribute): Use a maximal wide-int for
4802 CONST_WIDE_INTs, not VOIDmode.
4803 (output_die): Don't ever output NULL with printf.
4805 * rtl.h (get_precision of rtx_mode_t): Ensure we never process
4806 BLKmode nor VOIDmode values.
4808 2015-11-06 David Malcolm <dmalcolm@redhat.com>
4810 * diagnostic-color.c (color_dict): Eliminate "caret"; add "range1"
4812 (parse_gcc_colors): Update comment to describe default GCC_COLORS.
4813 * diagnostic-core.h (warning_at_rich_loc): New declaration.
4814 (error_at_rich_loc): New declaration.
4815 (permerror_at_rich_loc): New declaration.
4816 (inform_at_rich_loc): New declaration.
4817 * diagnostic-show-locus.c (adjust_line): Delete.
4818 (struct point_state): New struct.
4819 (class colorizer): New class.
4820 (class layout_point): New class.
4821 (class layout_range): New class.
4822 (struct line_bounds): New.
4823 (class layout): New class.
4824 (colorizer::colorizer): New ctor.
4825 (colorizer::~colorizer): New dtor.
4826 (layout::layout): New ctor.
4827 (layout::print_source_line): New method.
4828 (layout::print_annotation_line): New method.
4829 (layout::get_state_at_point): New method.
4830 (layout::get_x_bound_for_row): New method.
4831 (diagnostic_show_locus): Reimplement in terms of class layout.
4832 (diagnostic_print_caret_line): Delete.
4833 * diagnostic.c (diagnostic_initialize): Replace
4834 MAX_LOCATIONS_PER_MESSAGE with rich_location::MAX_RANGES.
4835 (diagnostic_set_info_translated): Convert param from location_t
4836 to rich_location *. Eliminate calls to set_location on the
4837 message in favor of storing the rich_location ptr there.
4838 (diagnostic_set_info): Convert param from location_t to
4840 (diagnostic_build_prefix): Break out array into...
4841 (diagnostic_kind_color): New variable.
4842 (diagnostic_get_color_for_kind): New function.
4843 (diagnostic_report_diagnostic): Colorize the option_text
4844 using the color for the severity.
4845 (diagnostic_append_note): Update for change in signature of
4846 diagnostic_set_info.
4847 (diagnostic_append_note_at_rich_loc): New function.
4848 (emit_diagnostic): Update for change in signature of
4849 diagnostic_set_info.
4851 (inform_at_rich_loc): New function.
4852 (inform_n): Update for change in signature of diagnostic_set_info.
4853 (warning): Likewise.
4854 (warning_at): Likewise.
4855 (warning_at_rich_loc): New function.
4856 (warning_n): Update for change in signature of diagnostic_set_info.
4857 (pedwarn): Likewise.
4858 (permerror): Likewise.
4859 (permerror_at_rich_loc): New function.
4860 (error): Update for change in signature of diagnostic_set_info.
4861 (error_n): Likewise.
4862 (error_at): Likewise.
4863 (error_at_rich_loc): New function.
4864 (sorry): Update for change in signature of diagnostic_set_info.
4865 (fatal_error): Likewise.
4866 (internal_error): Likewise.
4867 (internal_error_no_backtrace): Likewise.
4868 (source_range::debug): New function.
4869 * diagnostic.h (struct diagnostic_info): Eliminate field
4870 "override_column". Add field "richloc".
4871 (struct diagnostic_context): Add field "colorize_source_p".
4872 (diagnostic_override_column): Delete.
4873 (diagnostic_set_info): Convert param from location_t to
4875 (diagnostic_set_info_translated): Likewise.
4876 (diagnostic_append_note_at_rich_loc): New function.
4877 (diagnostic_num_locations): New function.
4878 (diagnostic_expand_location): Get the location from the
4880 (diagnostic_print_caret_line): Delete.
4881 (diagnostic_get_color_for_kind): New declaration.
4882 * genmatch.c (linemap_client_expand_location_to_spelling_point): New.
4883 (error_cb): Update for change in signature of "error" callback.
4884 (fatal_at): Likewise.
4885 (warning_at): Likewise.
4886 * input.c (linemap_client_expand_location_to_spelling_point): New.
4887 * pretty-print.c (text_info::set_range): New method.
4888 (text_info::get_location): New method.
4889 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): Eliminate this macro.
4890 (struct text_info): Eliminate "locations" array in favor of
4891 "m_richloc", a rich_location *.
4892 (textinfo::set_location): Add a "caret_p" param, and reimplement
4893 in terms of a call to set_range.
4894 (textinfo::get_location): Eliminate inline implementation in favor of
4895 an out-of-line reimplementation.
4896 (textinfo::set_range): New method.
4897 * rtl-error.c (diagnostic_for_asm): Update for change in signature
4898 of diagnostic_set_info.
4899 * tree-diagnostic.c (default_tree_printer): Update for new
4900 "caret_p" param for textinfo::set_location.
4901 * tree-pretty-print.c (percent_K_format): Likewise.
4903 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4906 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4907 * config/aarch64/aarch64.c
4908 (aarch64_can_use_per_function_literal_pools_p): New.
4909 (aarch64_use_blocks_for_constant_p): Adjust declaration
4910 and use aarch64_can_use_function_literal_pools_p.
4911 (aarch64_select_rtx_section): Update.
4913 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4915 * config/arm/arm-ldmstm.ml: Rewrite to generate unified asm templates.
4916 * config/arm/arm.c (arm_asm_trampoline_template): Make unified asm safe.
4917 (arm_output_multireg_pop): Likewise.
4918 (output_move_double): Likewise.
4919 (output_move_quad): Likewise.
4920 (output_return_instruction): Likewise.
4921 (arm_print_operand): Remove support for %( and %. print modifiers.
4922 (arm_output_shift): Make unified asm.
4923 (arm_declare_function_name): Likewise.
4924 * config/arm/arm.h (TARGET_UNIFIED_ASM): Delete.
4925 (ASM_APP_OFF): Adjust.
4926 (ASM_OUTPUT_REG_PUSH): Undo special casing for TARGET_ARM.
4927 (ASM_OUTPUT_REG_POP): Likewise.
4928 * config/arm/arm.md: Adjust uses of %., %(, %)
4929 * config/arm/sync.md: Likewise.
4930 * config/arm/thumb2.md: Likewise.
4931 * config/arm/ldmstm.md: Regenerate.
4932 * config/arm/arm.opt (masm-unified-syntax): Do not special case Thumb.
4933 * doc/invoke.texi (masm-unified-syntax): Update documentation.
4935 2015-11-06 David Malcolm <dmalcolm@redhat.com>
4937 * input.c (dump_line_table_statistics): Dump stats on adhoc table.
4939 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
4941 * tree-core.h (size_type_kind): Remove OEP_CONSTANT_ADDRESS_OF and
4942 add OEP_MATCH_SIDE_EFFECTS.
4943 * fold-const.c (operand_equal_p): Update documentation; handle
4944 OEP_MATCH_SIDE_EFFECTS.
4945 * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Use
4946 OEP_MATCH_SIDE_EFFECTS.
4948 2015-11-06 Benedikt Huber <benedikt.huber@theobroma-systems.com>
4949 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
4951 * config/aarch64/aarch64-builtins.c: Builtins for rsqrt and rsqrtf.
4952 * config/aarch64/aarch64-protos.h: Declare.
4953 * config/aarch64/aarch64-simd.md: Matching expressions for frsqrte and
4955 * config/aarch64/aarch64-tuning-flags.def: Added recip_sqrt.
4956 * config/aarch64/aarch64.c: New functions. Emit rsqrt estimation
4957 code when applicable.
4958 * config/aarch64/aarch64.md: Added enum entries.
4959 * config/aarch64/aarch64.opt: Added option -mlow-precision-recip-sqrt.
4961 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
4965 * ipa-polymorphic-call.c
4966 (ipa_polymorphic_call_context::restrict_to_inner_type): Fix ordering
4967 issue when offset is out of range.
4968 (contains_type_p): Fix out of range check, clear dynamic flag.
4970 2015-11-06 Arnout Vandecappelle <arnout@mind.be>
4972 * config.gcc (e6500): Fix cpu_is_64bit typo.
4974 2015-11-06 Alan Lawrence <alan.lawrence@arm.com>
4976 * tree-sra.c (completely_scalarize): Properly handle negative array
4977 indices using offset_int.
4979 2015-11-06 Richard Biener <rguenther@suse.de>
4981 * alloc-pool.h (object_allocator::allocate): Default-initialize
4984 2015-11-06 Richard Biener <rguenther@suse.de>
4986 * tree-ssa-sccvn.c (class sccvn_dom_walker): Add destructor.
4987 * lra.c (init_reg_info): Truncate copy_vec instead of
4988 re-allocating a new one and leaking the old.
4989 * ipa-inline-analysis.c (estimate_function_body_sizes): Free
4991 * sched-deps.c (sched_deps_finish): Free the dn/dl pools.
4992 * postreload-gcse.c (free_mem): Free modify_mem_list and
4993 canon_modify_mem_list.
4995 2015-11-06 Ilya Enkovich <enkovich.gnu@gmail.com>
4997 PR tree-optimization/68145
4998 * tree-vect-stmts.c (vectorizable_operation): Fix
4999 determination for booleans.
5001 2015-11-06 Tom de Vries <tom@codesourcery.com>
5003 * tree-cfg.c (gimple_split_block_before_cond_jump): Split before
5004 cond_jump, instead of split after last nondebug insn before cond_jump.
5005 * tree-parloops.c (transform_to_exit_first_loop_alt): Verify ssa before
5008 2015-11-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5011 * config/arm/aarch-common.c (aarch_accumulator_forwarding): Strip
5012 subregs from accumulator and make sure it's a register.
5014 2015-11-06 Simon Dardis <simon.dardis@imgtec.com>
5016 * config/mips/loongson.md (vec_loongson_extract_lo_<mode>): New, extract
5018 (reduc_uplus_<mode>): Remove.
5019 (reduc_plus_scal_<mode>): Rename from reduc_splus_<mode>, Use vec
5020 loongson_extract_lo_<mode>.
5021 (reduc_smax_scal_<mode>, reduc_smin_scal_<mode>): Rename from
5022 reduc_smax_<mode>, reduc_smax_<mode>, use vec
5023 loongson_extract_lo_<mode>.
5024 (reduc_umax_scal_<mode>, reduc_umin_scal_<mode>): Rename.
5026 2015-11-06 Richard Biener <rguenther@suse.de>
5028 * tree-vectorizer.h (struct _bb_vec_info): Add region_begin/end
5030 (vect_stmt_in_region_p): Declare.
5031 * tree-vect-slp.c (new_bb_vec_info): Work on a region.
5032 (destroy_bb_vec_info): Likewise.
5033 (vect_bb_slp_scalar_cost): Use vect_stmt_in_region_p.
5034 (vect_get_and_check_slp_defs): Likewise.
5035 (vect_slp_analyze_bb_1): Refactor to make it work on sub-BBs.
5036 (vect_slp_bb): Likewise.
5037 * tree-vect-patterns.c (vect_same_loop_or_bb_p): Implement
5038 in terms of vect_stmt_in_region_p.
5039 (vect_pattern_recog): Iterate over the BB region.
5040 * tree-vect-stmts.c (vect_is_simple_use): Use vect_stmt_in_region_p.
5041 * tree-vectorizer.c (vect_stmt_in_region_p): New function.
5042 (pass_slp_vectorize::execute): Initialize all stmt UIDs to -1.
5043 * config/i386/i386.c: Include gimple-iterator.h.
5044 * config/aarch64/aarch64.c: Likewise.
5046 2015-11-06 Alexandre Oliva <aoliva@redhat.com>
5048 PR rtl-optimization/67753
5049 PR rtl-optimization/64164
5050 * function.c (assign_parm_setup_block): Avoid allocating a
5051 stack slot if we don't have an ABI-reserved one. Emit the
5052 copy to target_reg in the conversion seq if the copy from
5053 entry_parm is in it too. Don't use the conversion seq to copy
5054 a PARALLEL to a REG or a CONCAT.
5056 2015-11-06 Richard Biener <rguenther@suse.de>
5058 * tree-hash-traits.h (tree_operand_hash): Provide equal, not
5061 2015-11-05 Cesar Philippidis <cesar@codesourcery.com>
5062 Thomas Schwinge <thomas@codesourcery.com>
5063 James Norris <jnorris@codesourcery.com>
5066 * gimplify.c (gimplify_scan_omp_clauses): Add support for
5067 OMP_CLAUSE_TILE. Update handling of OMP_CLAUSE_INDEPENDENT.
5068 (gimplify_adjust_omp_clauses): Likewise.
5069 * omp-low.c (scan_sharing_clauses): Add support for OMP_CLAUSE_TILE.
5070 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_TILE.
5071 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_TILE.
5072 * tree.c (omp_clause_num_ops): Add an entry for OMP_CLAUSE_TILE.
5073 (omp_clause_code_name): Likewise.
5074 (walk_tree_1): Handle OMP_CLAUSE_TILE.
5075 * tree.h (OMP_TILE_LIST): New macro.
5077 2015-11-05 Martin Sebor <msebor@redhat.com>
5080 * doc/invoke.texi (-Wplacement-new): Document new option.
5082 2015-11-05 Alan Lawrence <alan.lawrence@arm.com>
5084 PR tree-optimization/65963
5085 * tree-scalar-evolution.c (interpret_rhs_expr): Try to handle
5086 LSHIFT_EXPRs as equivalent unsigned MULT_EXPRs.
5088 2015-11-05 James Greenhalgh <james.greenhalgh@arm.com>
5090 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): New.
5091 (noce_convert_multiple_sets): Likewise.
5092 (noce_process_if_block): Call them.
5094 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
5096 * gimple-fold.c: Include omp-low.h.
5097 (fold_internal_goacc_dim): New.
5098 (gimple_fold_call): Call it.
5100 2015-11-05 Jakub Jelinek <jakub@redhat.com>
5101 Ilya Verbin <ilya.verbin@intel.com>
5104 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR): Remove.
5105 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): New.
5106 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
5107 SIMD_CLONE_ARG_TYPE_LINEAR_REF_VARIABLE_STEP,
5108 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP and
5109 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP.
5110 (struct cgraph_simd_clone_arg): Adjust comment.
5111 * omp-builtins.def (BUILT_IN_GOMP_TARGET): Rename GOMP_target_41
5112 to GOMP_target_ext. Add num_teams and thread_limit arguments.
5113 (BUILT_IN_GOMP_TARGET_DATA): Rename GOMP_target_data_41
5114 to GOMP_target_data_ext.
5115 (BUILT_IN_GOMP_TARGET_UPDATE): Rename GOMP_target_update_41
5116 to GOMP_target_update_ext.
5117 (BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_START,
5118 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_START,
5119 BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_NEXT,
5120 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_NEXT,
5121 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_START,
5122 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_START,
5123 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_NEXT,
5124 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_NEXT,
5125 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_DYNAMIC,
5126 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_GUIDED): New built-ins.
5127 * tree-core.h (enum omp_clause_schedule_kind): Add
5128 OMP_CLAUSE_SCHEDULE_MASK, OMP_CLAUSE_SCHEDULE_MONOTONIC,
5129 OMP_CLAUSE_SCHEDULE_NONMONOTONIC and change
5130 OMP_CLAUSE_SCHEDULE_LAST value.
5131 * tree.def (OMP_SIMD, CILK_SIMD, CILK_FOR, OMP_DISTRIBUTE,
5132 OMP_TASKLOOP, OACC_LOOP): Add OMP_FOR_ORIG_DECLS argument.
5133 * tree.h (OMP_FOR_ORIG_DECLS): Use OMP_LOOP_CHECK instead of
5134 OMP_FOR_CHECK. Remove comment.
5135 * tree-pretty-print.c (dump_omp_clause): Handle
5136 GOMP_MAP_FIRSTPRIVATE_REFERENCE and GOMP_MAP_ALWAYS_POINTER.
5137 Simplify. Print schedule clause modifiers.
5138 * tree-vect-stmts.c (vectorizable_simd_clone_call): Add
5139 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_VARIABLE_STEP
5141 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_ALWAYS_TO.
5142 (omp_default_clause): Tweak for
5143 private/firstprivate/is_device_ptr variables on target
5144 construct and use_device_ptr on target data.
5145 (omp_check_private): Likewise.
5146 (omp_notice_variable): For references check whether what it refers
5147 to has mappable type, rather than the reference itself.
5148 (omp_is_private): Diagnose linear iteration variables on non-simd
5150 (omp_no_lastprivate): Return true only for Fortran.
5151 (gimplify_scan_omp_clauses): Or in GOVD_MAP_ALWAYS_TO for
5152 GOMP_MAP_ALWAYS_TO or GOMP_MAP_ALWAYS_TOFROM kinds.
5153 Add support for GOMP_MAP_FIRSTPRIVATE_REFERENCE and
5154 GOMP_MAP_ALWAYS_POINTER, remove old handling of structure element
5155 based array sections. Use GOMP_MAP_ALWAYS_P. Fix up handling of
5156 lastprivate and linear when combined with distribute. Gimplify
5157 variable low-bound for array reduction. Look through
5158 POINTER_PLUS_EXPR when looking for ADDR_EXPR for array section
5160 (gimplify_adjust_omp_clauses_1): For implicit references to
5161 variables with reference type and when not ref to scalar or
5162 ref to pointer, map what they refer to using tofrom and
5163 use GOMP_MAP_FIRSTPRIVATE_REFERENCE for the reference.
5164 (gimplify_adjust_omp_clauses): Remove GOMP_MAP_ALWAYS_POINTER
5165 from target exit data. Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE.
5166 Drop OMP_CLAUSE_MAP_PRIVATE support. Use GOMP_MAP_ALWAYS_P.
5167 Diagnose the same var on both firstprivate and lastprivate on
5168 distribute construct.
5169 (gimplify_omp_for): Fix up handling of predetermined
5170 lastprivate or linear iter vars when combined with distribute.
5171 (find_omp_teams, computable_teams_clause, optimize_target_teams): New
5173 (gimplify_omp_workshare): Call optimize_target_teams.
5174 * omp-low.c (struct omp_region): Add sched_modifiers field.
5175 (struct omp_for_data): Likewise.
5176 (omp_any_child_fn_dumped): New variable.
5177 (extract_omp_for_data): Fill in sched_modifiers, and mask out
5178 OMP_CLAUSE_SCHEDULE_KIND bits outside of OMP_CLAUSE_SCHEDULE_MASK
5180 (determine_parallel_type): Use only OMP_CLAUSE_SCHEDULE_MASK
5181 bits of OMP_CLAUSE_SCHED_KIND.
5182 (scan_sharing_clauses): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE,
5183 drop OMP_CLAUSE_MAP_PRIVATE support. Look through POINTER_PLUS_EXPR
5184 for array section reductions.
5185 (add_taskreg_looptemp_clauses): Add one extra _looptemp_ clause even
5186 for distribute parallel for, if there are lastprivate clauses on the
5188 (lower_rec_input_clauses): Handle non-zero low-bound on array
5190 (lower_reduction_clauses): Likewise.
5191 (lower_send_clauses): Look through POINTER_PLUS_EXPR
5192 for array section reductions.
5193 (expand_parallel_call): Use nonmonotonic entrypoints for
5194 nonmonotonic: dynamic/guided.
5195 (expand_omp_taskreg): Call assign_assembler_name_if_neeeded on
5196 child_fn if current_function_decl has assembler name set, but child_fn
5197 does not. Dump the header and IL of the child function when not in SSA
5199 (expand_omp_target): Likewise. Pass num_teams and thread_limit
5200 arguments to BUILT_IN_GOMP_TARGET.
5201 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
5202 Initialize the extra _looptemp_ clause to fd->loop.n2.
5203 (expand_omp_for): Use nonmonotonic entrypoints for
5204 nonmonotonic: dynamic/guided. Initialize region->sched_modifiers.
5205 (expand_omp): Clear omp_any_child_fn_dumped. Dump function header
5206 again if we have dumped any child functions.
5207 (lower_omp_for_lastprivate): Determine the right count variable
5208 for distribute simd, or distribute parallel for{, simd}.
5209 (lower_omp_target): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE
5210 and GOMP_MAP_ALWAYS_POINTER. Drop OMP_CLAUSE_MAP_PRIVATE
5212 (simd_clone_clauses_extract): Handle variable step
5213 for references and arguments passed by reference.
5214 (simd_clone_mangle): Mangle ref/uval/val variable steps.
5215 (simd_clone_adjust_argument_types): Handle
5216 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP like
5217 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
5218 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP like
5219 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
5220 (simd_clone_linear_addend): New function.
5221 (simd_clone_adjust): Handle variable step like similarly
5222 to constant step, use simd_clone_linear_addend to determine
5223 the actual step at runtime.
5225 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
5227 * target.def (goacc.dim_limit): New hook.
5228 * targhooks.h (default_goacc_dim_limit): Declare.
5229 * doc/tm.texi.in (TARGET_GOACC_DIM_LIMIT): Add.
5230 * doc/tm.texi: Rebuilt.
5231 * omp-low.h (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): Declare.
5232 * omp-low.c (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): New.
5233 (default_goacc_dim_limit): New.
5234 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
5235 (nvptx_goacc_dim_limit) New.
5236 (TARGET_GOACC_DIM_LIMIT): Override.
5237 * tree-vrp.c: Include omp-low.h, target.h.
5238 (extract_range_basic): Add handling for IFN_GOACC_DIM_SIZE &
5241 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
5243 * tree-vect-generic.c (do_compare): Use -1 for true
5244 result instead of 1.
5246 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5248 * config/aarch64/aarch64.c
5249 (aarch64_can_use_per_function_literal_pools_p): New.
5250 (aarch64_use_blocks_for_constant_p): Adjust declaration
5251 and use aarch64_can_use_function_literal_pools_p.
5252 (aarch64_select_rtx_section): Update.
5254 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
5256 * targhooks.c (default_get_mask_mode): Use BLKmode in
5257 case target doesn't support required vector mode.
5258 * stor-layout.c (layout_type); Check for BLKmode.
5260 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
5261 Sebastian Pop <s.pop@samsung.com>
5263 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
5264 Remove use of parameter_rename_map.
5266 (copy_internal_parameters): Remove.
5267 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
5268 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
5269 (free_sese_info): Do not free parameter_rename_map.
5270 (set_rename): Do not use parameter_rename_map.
5271 (rename_uses): Update call to set_rename.
5272 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
5273 * sese.h (parameter_rename_map_t): Remove.
5274 (struct sese_info_t): Remove field parameter_rename_map.
5276 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
5277 Sebastian Pop <s.pop@samsung.com>
5279 * graphite-isl-ast-to-gimple.c: Include tree-cfg.h.
5280 (translate_isl_ast_node_user): Add more dumps: call print_loops_bb.
5281 * graphite-scop-detection.c (dot_all_scops_1): Moved out of
5282 anonymous namespace.
5283 * graphite-sese-to-poly.c (ssa_name_version_typesize): Remove.
5284 (isl_id_for_pbb): Use a buffer of size 10.
5285 (isl_id_for_ssa_name): Same.
5286 * sese.c (set_rename): Add more dumps.
5288 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
5290 * omp-low.c (struct omp_context): Remove reduction_map field.
5291 (lookup_oacc_reduction, maybe_lookup_oacc_reduction): Delete.
5292 (new_omp_context, delete_omp_context, scan_omp_target): Remove
5293 reduction_map handling.
5294 (lower_omp_target): Remove obsolete openacc reduction handling.
5296 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
5298 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add checking.
5300 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
5301 Cesar Philippidis <cesar@codesourcery.com>
5303 * config/nvptx/nvptx.c: Include gimple headers.
5304 (worker_red_size, worker_red_align, worker_red_name,
5305 worker_red_sym): New.
5306 (nvptx_option_override): Initialize worker reduction buffer.
5307 (nvptx_file_end): Write out worker reduction buffer var.
5308 (nvptx_expand_shuffle, nvptx_expand_worker_addr,
5309 nvptx_expand_cmp_swap): New builtin expanders.
5310 (enum nvptx_builtins): New.
5311 (nvptx_builtin_decls): New.
5312 (nvptx_builtin_decl, nvptx_init_builtins, nvptx_expand_builtin): New
5313 (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
5314 (nvptx_get_worker_red_addr, nvptx_generate_vector_shuffle,
5315 nvptx_lockless_update): New helpers.
5316 (nvptx_goacc_reduction_setup, nvptx_goacc_reduction_init,
5317 nvptx_goacc_reduction_fini, nvptx_goacc_reduction_teaddown): New.
5318 (nvptx_goacc_reduction): New.
5319 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN,
5320 TARGET_BUILTIN_DECL): Override.
5321 (TARGET_GOACC_REDUCTION): Override.
5323 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
5324 Cesar Philippidis <cesar@codesourcery.com>
5326 * internal-fn.def (GOACC_REDUCTION): New.
5327 * internal-fn.h (enum ifn_goacc_reduction_kind): New.
5328 * internal-fn.c (expand_GOACC_REDUCTION): New.
5329 * target.def (goacc.reduction): New OpenACC hook.
5330 * targhooks.h (default_goacc_reduction): Declare.
5331 * doc/tm.texi.in: Add TARGET_GOACC_REDUCTION.
5332 * doc/tm.texi: Rebuilt.
5333 * omp-low.c (oacc_get_reduction_array_id, oacc_max_threads,
5334 scan_sharing_clauses): Remove oacc reduction handling here.
5335 (lower_rec_input_clauses): Don't handle OpenACC reductions here.
5336 (oacc_lower_reduction_var_helper): Delete.
5337 (lower_oacc_reductions): New.
5338 (lower_reduction_clauses): Don't handle OpenACC reductions here.
5339 (lower_oacc_head_tail): Call lower_oacc_reductions.
5340 (oacc_gimple_assign, oacc_init_reduction_array,
5341 oacc_initialize_reduction_data, oacc_finalize_reduction_data,
5342 oacc_process_reduction_data): Delete.
5343 (lower_omp_target): Remove old OpenACC reduction handling. Insert
5344 dummy OpenACC gang reduction for reductions at outer level.
5345 (oacc_loop_xform_head_tail): Transform IFN_GOACC_REDUCTION.
5346 (default_goacc_reduction): New.
5347 (execute_oacc_device_lower): Handle IFN_GOACC_REDUCTION.
5349 2015-11-04 Martin Liska <mliska@suse.cz>
5351 * cgraphunit.c (cgraph_node::expand_thunk): Call
5352 allocate_struct_function before init_function_start.
5353 (cgraph_node::expand): Use push_cfun and pop_cfun.
5354 * config/i386/i386.c (ix86_code_end): Call
5355 allocate_struct_function before init_function_start.
5356 * config/rs6000/rs6000.c (rs6000_code_end): Likewise.
5357 * function.c (init_function_start): Move preamble to all
5359 * passes.c (do_per_function_toporder): Use push_cfun and pop_cfun.
5360 (execute_one_pass): Handle newly added TODO_discard_function.
5361 (execute_pass_list_1): Terminate if cfun equals to NULL.
5362 (execute_pass_list): Do not push and pop cfun, expect that
5364 * tree-pass.h (TODO_discard_function): Define.
5366 2015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
5368 * cfganal.c (inverted_post_order_compute): Remove conditional
5369 compilation, use flag_checking.
5370 * config.in: Regenerate.
5371 * configure: Regenerate.
5372 * configure.ac: Remove ENABLE_CHECKING.
5373 * genconditions.c: Do not #undef ENABLE_CHECKING.
5374 * sese.h (bb_in_region): Comment out broken check.
5375 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa_1): Remove
5376 conditional compilation, use flag_checking.
5378 2015-11-04 Tom de Vries <tom@codesourcery.com>
5380 PR tree-optimization/67742
5381 * tree-ssa-structalias.c (struct fieldoff): Add restrict_pointed_type
5383 (push_fields_onto_fieldstack): Handle restrict_pointed_type field.
5384 (create_variable_info_for_1): Add and handle handle_param parameter.
5385 Add restrict handling.
5386 (create_variable_info_for): Call create_variable_info_for_1 with extra
5388 (make_param_constraints): Drop restrict_name parameter. Ignore
5389 vi->only_restrict_pointers.
5390 (intra_create_variable_infos): Call create_variable_info_for_1 with
5391 extra arg. Remove restrict handling. Call make_param_constraints with
5394 2015-11-04 Tom de Vries <tom@codesourcery.com>
5396 * tree-ssa-structalias.c (create_variable_info_for_1): Use decl_type
5399 2015-11-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5401 * config/arm/coff.h: Remove.
5403 2015-11-03 Eric Botcazou <ebotcazou@adacore.com>
5405 * gimple-expr.c (useless_type_conversion_p): Reinstate type canonical
5406 check for aggregate types and beef up comment for mode check.
5408 2015-11-03 Richard Biener <rguenther@suse.de>
5410 * tree-vect-data-refs.c (vect_analyze_data_refs): Do not collect
5411 data references here.
5412 * tree-vect-loop.c: Include cgraph.h.
5413 (vect_analyze_loop_2): Collect data references here.
5414 * tree-vect-slp.c (find_bb_location): Inline ...
5415 (vect_slp_bb): ... here. Renamed from vect_slp_analyze_bb.
5416 Factor in vect_slp_transform_bb.
5417 (vect_slp_transform_bb): Removed.
5418 (vect_slp_analyze_bb_1): Collect data references here.
5419 * tree-vectorizer.c (pass_slp_vectorize::execute): Call
5421 * tree-vectorizer.h (vect_slp_bb): Declare.
5422 (vect_slp_analyze_bb): Remove.
5423 (vect_slp_transform_bb): Remove.
5424 (find_bb_location): Remove.
5425 (vect_analyze_data_refs): Remove stmt count reference parameter.
5427 2015-11-03 Evgeny Stupachenko <evstupac@gmail.com>
5429 * multiple_target.c (create_dispatcher_calls): Add target check
5431 (create_target_clone): Change assembler name for versioned declarations.
5433 2015-11-03 Thomas Schwinge <thomas@codesourcery.com>
5434 Chung-Lin Tang <cltang@codesourcery.com>
5436 * builtins.def (DEF_GOMP_BUILTIN): Enable for flag_openacc.
5437 * omp-low.c (check_omp_nesting_restrictions): Allow
5438 GIMPLE_OMP_ATOMIC_LOAD, GIMPLE_OMP_ATOMIC_STORE inside OpenACC
5441 2015-11-03 Bilyan Borisov <bilyan.borisov@arm.com>
5443 * config/aarch64/aarch64-simd-builtins.def (fmulx): New.
5444 * config/aarch64/aarch64-simd.md (aarch64_fmulx<mode>): New.
5445 * config/aarch64/arm_neon.h (vmulx_f32): Rewrite to call fmulx
5447 (vmulxq_f32): Likewise.
5449 (vmulxq_f64): Rewrite to call fmulx builtin.
5450 (vmulxs_f32): Likewise.
5451 (vmulxd_f64): Likewise.
5452 (vmulx_lane_f32): Remove.
5453 * config/aarch64/iterators.md (UNSPEC): Add fmulx.
5455 2015-11-03 Alan Lawrence <alan.lawrence@arm.com>
5457 * config/aarch64/aarch64.md (*movhf_aarch64): Use
5458 aarch64_reg_or_fp_zero for second operand.
5460 2015-11-03 Alexandre Oliva <aoliva@redhat.com>
5462 * gimple-expr.c: Include hash-set.h and rtl.h.
5463 (mark_addressable_queue): New var.
5464 (mark_addressable): Factor actual marking into...
5465 (mark_addressable_1): ... this. Queue it up during expand.
5466 (mark_addressable_2): New.
5467 (flush_mark_addressable_queue): New.
5468 * gimple-expr.h (flush_mark_addressable_queue): Declare.
5469 * cfgexpand.c: Include gimple-expr.h.
5470 (pass_expand::execute): Flush mark_addressable queue.
5472 2015-11-02 Alexandre Oliva <aoliva@redhat.com>
5474 * tree-ssa-ifcombine.c (tree_ssa_ifcombine_bb_1): Factor out
5475 bb_no_side_effects_p tests...
5476 (tree_ssa_ifcombine_bb): ... here.
5478 PR tree-optimization/68083
5479 * tree-ssa-ifcombine.c: Include tree-ssa.h.
5480 (bb_no_side_effects_p): Test for undefined uses too.
5481 * tree-ssa.c (gimple_uses_undefined_value_p): New.
5482 * tree-ssa.h (gimple_uses_undefined_value_p): Declare.
5484 2015-11-02 Jeff Law <law@redhat.com>
5486 * tree-ssa-threadupdate.c (valid_jump_thread_path): Also detect
5487 cases where the loop latch edge is in the middle of an FSM path.
5489 2015-11-03 Tom de Vries <tom@codesourcery.com>
5491 * tree-ssa-structalias.c (make_restrict_var_constraints): Rename to ...
5492 (make_param_constraints): ... this. Add and handle restrict_name
5493 parameter. Handle is_full_var case.
5494 (intra_create_variable_infos): Use make_param_constraints.
5496 2015-11-03 Tom de Vries <tom@codesourcery.com>
5498 * tree-ssa-structalias.c (make_restrict_var_constraints): Replace
5499 make_copy_constraint call with make_constraint_from call.
5501 2015-11-02 Andreas Tobler <andreast@gcc.gnu.org>
5503 * config/rs6000/freebsd64.h (ASM_SPEC32): Adust spec to handle
5506 2015-11-02 Richard Sandiford <richard.sandiford@arm.com>
5508 * builtins.h (fold_fma): Move to fold-const-call.h.
5509 * builtins.c: Include fold-const-call.h.
5510 (mathfn_built_in_2): New function, split out from...
5511 (mathfn_built_in_1): ...here.
5512 (do_real_to_int_conversion, fold_const_builtin_pow)
5513 (fold_const_builtin_logb, fold_const_builtin_significand)
5514 (fold_const_builtin_load_exponent, do_mpfr_arg1, do_mpfr_arg2)
5515 (do_mpfr_arg3, do_mpfr_sincos, do_mpfr_bessel_n, do_mpc_arg1): Delete.
5516 (fold_builtin_sincos): Use fold_const_call to handle constants.
5517 (fold_builtin_1, fold_builtin_2, fold_builtin_3): Add explicit
5518 checks for ERROR_MARK. Use fold_const_call to handle constant
5519 folds for math functions.
5520 (fold_fma): Move to fold-const-call.c.
5521 * fold-const.c: Include fold-const-call.h.
5522 * Makefile.in (OBJS): Add fold-const-call.o.
5523 (PLUGIN_HEADERS): Add fold-const-call.h.
5524 * realmpfr.h (real_from_mpfr): Allow the format to be specified
5526 * realmpfr.c (real_from_mpfr): Likewise.
5527 * fold-const-call.h, fold-const-call.c: New files.
5529 2015-11-02 Julian Brown <julian@codesourcery.com>
5531 * config/arm/neon-testgen.ml (emit_epilogue): Remove extraneous
5532 brackets and semicolon.
5534 2015-11-02 Alan Lawrence <alan.lawrence@arm.com>
5537 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
5539 PR tree-optimization/65963
5540 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
5541 LSHIFT_EXPRs as equivalent MULT_EXPRs.
5543 2015-11-02 Thomas Schwinge <thomas@codesourcery.com>
5546 * fold-const.c: Include "md5.h".
5548 2015-11-01 Jeff Law <law@redhat.com>
5550 * vmsdbgout.c: Revert unused header file reduction patch.
5552 * config/mcore/mcore.c: Include regs.h.
5554 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
5556 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Rewrite.
5558 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
5560 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Use the
5561 same condition for testing whether RS6000_PIC_OFFSET_TABLE_REGNUM is
5562 live as for using it elsewhere, for TARGET_MINIMAL_TOC.
5564 2015-10-31 Markus Trippelsdorf <markus@trippelsdorf.de>
5566 * ggc-common.c: Restore needed header for checking=release.
5568 2015-10-31 Tom de Vries <tom@codesourcery.com>
5570 * fold-const.c (fold_unary_loc): Tune POINTER_PLUS_EXPR folding.
5572 2015-10-31 Tom de Vries <tom@codesourcery.com>
5574 * tree-ssa-structalias.c (intra_create_variable_infos): Don't expect
5575 existing varinfo for arguments.
5577 2015-10-31 Tom de Vries <tom@codesourcery.com>
5579 * tree-ssa-structalias.c (ipa_pta_execute): Add extra arg to call to
5580 create_function_info_for. Dump constraints generated during
5581 create_function_info_for. Move intra_create_variable_infos call and
5582 function-return-values-escape bit to ...
5583 (create_function_info_for): ... here, and merge
5584 intra_create_variable_infos call with argument loop. Add and handle
5585 nonlocal_p parameter.
5587 2015-10-31 Tom de Vries <tom@codesourcery.com>
5589 * tree-ssa-structalias.c (create_function_info_for): Make sure prev_vi
5590 updating is alap, and seperated from preceding code. Make sure
5591 insert_vi_for_tree is seperated from surrounding code.
5593 2015-10-31 Tom de Vries <tom@codesourcery.com>
5595 * tree-ssa-structalias.c (ipa_pta_execute): Use make_copy_constraint.
5597 2015-10-30 Jeff Law <law@redhat.com>
5598 Nathan Sidwell <nathan@acm.org>
5600 * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Avoid warning on unused
5602 (MOVE_MAX): Set to 8.
5604 2015-10-30 Cesar Philippidis <cesar@codesourcery.com>
5606 * cgraph.c: Include context.h for offloading.
5607 * varpool.c: Include context.h and omp-low.h.
5609 2015-10-30 Anatoly Sokolov <aesok@post.ru>
5611 * rtl.h (contains_symbol_ref_p): Declare.
5612 (SYMBOL_REF_P): Define.
5613 * rtlanal.c (contains_symbol_ref_p: New function.
5614 * lra-constraints.c (contains_symbol_ref_p): Remove.
5615 * var-tracking.c (contains_symbol_ref): Remove.
5616 (track_expr_p): Use contains_symbol_ref_p instead of
5617 contains_symbol_ref.
5619 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
5621 * gimple-fold.c (fold_array_ctor_reference): Move searching code to:
5622 * fold-const.c (get_array_ctor_element_at_index): New.
5623 (fold): Remove binary-search through CONSTRUCTOR, call previous.
5625 * fold-const.h (get_array_ctor_element_at_index): New.
5627 2015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
5629 * Makefile.in (OBJS): Add multiple_target.o.
5630 * attrib.c (make_attribute): Moved from config/i386/i386.c
5631 * config/i386/i386.c (make_attribute): Deleted.
5632 * multiple_target.c (create_dispatcher_calls): New.
5633 (get_attr_len): Ditto.
5634 (get_attr_str): Ditto.
5635 (separate_attrs): Ditto.
5636 (is_valid_asm_symbol): Ditto.
5637 (create_new_asm_name): Ditto.
5638 (create_target_clone): Ditto.
5639 (expand_target_clones): Ditto.
5640 (ipa_target_clone): Ditto.
5641 (ipa_dispatcher_calls): Ditto.
5642 * passes.def (pass_target_clone): Two new ipa passes.
5643 * tree-pass.h (make_pass_target_clone): Ditto.
5644 * doc/extend.texi (target_clones): New attribute description.
5646 2015-10-30 Vladimir Makarov <vmakarov@redhat.com>
5648 PR rtl-optimization/68106
5649 * lra-remat.c (input_regno_present_p): Process hard regs
5650 explicitly present in machine description insns.
5651 (call_used_input_regno_present_p): Ditto.
5652 (calculate_gen_cands): Ditto.
5655 2015-10-30 Jim Wilson <jim.wilson@linaro.org>
5657 * config/arm/neon-testgen.ml: Fix comment typo.
5659 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5661 * rtlanal.c (reg_set_p): Expand function comment.
5663 2015-10-30 Andrew MacLeod <amacleod@redhat.com>
5665 * alias.c: Remove unused headers.
5667 * attribs.c: Likewise.
5668 * auto-inc-dec.c: Likewise.
5669 * auto-profile.c: Likewise.
5670 * bb-reorder.c: Likewise.
5671 * bitmap.c: Likewise.
5672 * bt-load.c: Likewise.
5673 * builtins.c: Likewise.
5674 * caller-save.c: Likewise.
5675 * calls.c: Likewise.
5678 * cfganal.c: Likewise.
5679 * cfgbuild.c: Likewise.
5680 * cfgcleanup.c: Likewise.
5681 * cfgexpand.c: Likewise.
5682 * cfghooks.c: Likewise.
5683 * cfgloop.c: Likewise.
5684 * cfgloopanal.c: Likewise.
5685 * cfgloopmanip.c: Likewise.
5686 * cfgrtl.c: Likewise.
5687 * cgraph.c: Likewise.
5688 * cgraphbuild.c: Likewise.
5689 * cgraphclones.c: Likewise.
5690 * cgraphunit.c: Likewise.
5691 * cilk-common.c: Likewise.
5692 * combine-stack-adj.c: Likewise.
5693 * combine.c: Likewise.
5694 * compare-elim.c: Likewise.
5695 * convert.c: Likewise.
5696 * coverage.c: Likewise.
5697 * cppbuiltin.c: Likewise.
5698 * cprop.c: Likewise.
5700 * cselib.c: Likewise.
5701 * data-streamer-in.c: Likewise.
5702 * data-streamer-out.c: Likewise.
5703 * data-streamer.c: Likewise.
5704 * dbxout.c: Likewise.
5707 * debug.c: Likewise.
5708 * df-core.c: Likewise.
5709 * df-problems.c: Likewise.
5710 * df-scan.c: Likewise.
5712 * dojump.c: Likewise.
5713 * dominance.c: Likewise.
5714 * domwalk.c: Likewise.
5715 * double-int.c: Likewise.
5717 * dumpfile.c: Likewise.
5718 * dwarf2asm.c: Likewise.
5719 * dwarf2cfi.c: Likewise.
5720 * dwarf2out.c: Likewise.
5721 * emit-rtl.c: Likewise.
5722 * except.c: Likewise.
5723 * explow.c: Likewise.
5724 * expmed.c: Likewise.
5726 * final.c: Likewise.
5727 * fixed-value.c: Likewise.
5728 * fold-const.c: Likewise.
5729 * function.c: Likewise.
5730 * fwprop.c: Likewise.
5732 * generic-match-head.c: Likewise.
5733 * ggc-common.c: Likewise.
5734 * gimple-builder.c: Likewise.
5735 * gimple-expr.c: Likewise.
5736 * gimple-fold.c: Likewise.
5737 * gimple-iterator.c: Likewise.
5738 * gimple-low.c: Likewise.
5739 * gimple-match-head.c: Likewise.
5740 * gimple-pretty-print.c: Likewise.
5741 * gimple-ssa-isolate-paths.c: Likewise.
5742 * gimple-ssa-strength-reduction.c: Likewise.
5743 * gimple-streamer-in.c: Likewise.
5744 * gimple-streamer-out.c: Likewise.
5745 * gimple-walk.c: Likewise.
5746 * gimple.c: Likewise.
5747 * gimplify-me.c: Likewise.
5748 * gimplify.c: Likewise.
5749 * godump.c: Likewise.
5750 * graph.c: Likewise.
5751 * graphds.c: Likewise.
5752 * haifa-sched.c: Likewise.
5753 * hw-doloop.c: Likewise.
5754 * ifcvt.c: Likewise.
5755 * init-regs.c: Likewise.
5756 * internal-fn.c: Likewise.
5757 * ipa-chkp.c: Likewise.
5758 * ipa-comdats.c: Likewise.
5759 * ipa-cp.c: Likewise.
5760 * ipa-devirt.c: Likewise.
5761 * ipa-icf-gimple.c: Likewise.
5762 * ipa-icf.c: Likewise.
5763 * ipa-inline-analysis.c: Likewise.
5764 * ipa-inline-transform.c: Likewise.
5765 * ipa-inline.c: Likewise.
5766 * ipa-polymorphic-call.c: Likewise.
5767 * ipa-profile.c: Likewise.
5768 * ipa-prop.c: Likewise.
5769 * ipa-pure-const.c: Likewise.
5770 * ipa-ref.c: Likewise.
5771 * ipa-reference.c: Likewise.
5772 * ipa-split.c: Likewise.
5773 * ipa-utils.c: Likewise.
5774 * ipa-visibility.c: Likewise.
5776 * ira-build.c: Likewise.
5777 * ira-color.c: Likewise.
5778 * ira-conflicts.c: Likewise.
5779 * ira-costs.c: Likewise.
5780 * ira-emit.c: Likewise.
5781 * ira-lives.c: Likewise.
5784 * langhooks.c: Likewise.
5786 * lists.c: Likewise.
5787 * loop-doloop.c: Likewise.
5788 * loop-init.c: Likewise.
5789 * loop-invariant.c: Likewise.
5790 * loop-iv.c: Likewise.
5791 * loop-unroll.c: Likewise.
5792 * lower-subreg.c: Likewise.
5793 * lra-assigns.c: Likewise.
5794 * lra-coalesce.c: Likewise.
5795 * lra-constraints.c: Likewise.
5796 * lra-eliminations.c: Likewise.
5797 * lra-lives.c: Likewise.
5798 * lra-remat.c: Likewise.
5799 * lra-spills.c: Likewise.
5801 * lto-cgraph.c: Likewise.
5802 * lto-compress.c: Likewise.
5803 * lto-opts.c: Likewise.
5804 * lto-section-in.c: Likewise.
5805 * lto-section-out.c: Likewise.
5806 * lto-streamer-in.c: Likewise.
5807 * lto-streamer-out.c: Likewise.
5808 * lto-streamer.c: Likewise.
5810 * mode-switching.c: Likewise.
5811 * modulo-sched.c: Likewise.
5812 * optabs.c: Likewise.
5813 * opts-global.c: Likewise.
5814 * passes.c: Likewise.
5815 * plugin.c: Likewise.
5816 * postreload-gcse.c: Likewise.
5817 * postreload.c: Likewise.
5818 * predict.c: Likewise.
5819 * print-tree.c: Likewise.
5820 * profile.c: Likewise.
5822 * realmpfr.c: Likewise.
5823 * recog.c: Likewise.
5825 * reg-stack.c: Likewise.
5826 * regcprop.c: Likewise.
5827 * reginfo.c: Likewise.
5828 * regrename.c: Likewise.
5829 * regstat.c: Likewise.
5830 * reload.c: Likewise.
5831 * reload1.c: Likewise.
5832 * reorg.c: Likewise.
5833 * resource.c: Likewise.
5834 * rtl-chkp.c: Likewise.
5835 * rtl-error.c: Likewise.
5836 * rtlanal.c: Likewise.
5837 * rtlhooks.c: Likewise.
5838 * sanopt.c: Likewise.
5839 * sched-deps.c: Likewise.
5840 * sched-ebb.c: Likewise.
5841 * sched-rgn.c: Likewise.
5842 * sdbout.c: Likewise.
5843 * sel-sched-dump.c: Likewise.
5844 * sel-sched-ir.c: Likewise.
5845 * sel-sched.c: Likewise.
5847 * shrink-wrap.c: Likewise.
5848 * simplify-rtx.c: Likewise.
5849 * stack-ptr-mod.c: Likewise.
5850 * statistics.c: Likewise.
5852 * stor-layout.c: Likewise.
5853 * store-motion.c: Likewise.
5854 * stringpool.c: Likewise.
5855 * symtab.c: Likewise.
5856 * target-globals.c: Likewise.
5857 * targhooks.c: Likewise.
5858 * toplev.c: Likewise.
5859 * tracer.c: Likewise.
5860 * trans-mem.c: Likewise.
5861 * tree-affine.c: Likewise.
5862 * tree-call-cdce.c: Likewise.
5863 * tree-cfg.c: Likewise.
5864 * tree-cfgcleanup.c: Likewise.
5865 * tree-chkp-opt.c: Likewise.
5866 * tree-chkp.c: Likewise.
5867 * tree-chrec.c: Likewise.
5868 * tree-complex.c: Likewise.
5869 * tree-data-ref.c: Likewise.
5870 * tree-dfa.c: Likewise.
5871 * tree-diagnostic.c: Likewise.
5872 * tree-dump.c: Likewise.
5873 * tree-eh.c: Likewise.
5874 * tree-emutls.c: Likewise.
5875 * tree-if-conv.c: Likewise.
5876 * tree-inline.c: Likewise.
5877 * tree-into-ssa.c: Likewise.
5878 * tree-iterator.c: Likewise.
5879 * tree-loop-distribution.c: Likewise.
5880 * tree-nested.c: Likewise.
5881 * tree-nrv.c: Likewise.
5882 * tree-object-size.c: Likewise.
5883 * tree-outof-ssa.c: Likewise.
5884 * tree-parloops.c: Likewise.
5885 * tree-phinodes.c: Likewise.
5886 * tree-predcom.c: Likewise.
5887 * tree-pretty-print.c: Likewise.
5888 * tree-profile.c: Likewise.
5889 * tree-scalar-evolution.c: Likewise.
5890 * tree-sra.c: Likewise.
5891 * tree-ssa-address.c: Likewise.
5892 * tree-ssa-alias.c: Likewise.
5893 * tree-ssa-ccp.c: Likewise.
5894 * tree-ssa-coalesce.c: Likewise.
5895 * tree-ssa-copy.c: Likewise.
5896 * tree-ssa-dce.c: Likewise.
5897 * tree-ssa-dse.c: Likewise.
5898 * tree-ssa-forwprop.c: Likewise.
5899 * tree-ssa-ifcombine.c: Likewise.
5900 * tree-ssa-live.c: Likewise.
5901 * tree-ssa-loop-ch.c: Likewise.
5902 * tree-ssa-loop-im.c: Likewise.
5903 * tree-ssa-loop-ivcanon.c: Likewise.
5904 * tree-ssa-loop-ivopts.c: Likewise.
5905 * tree-ssa-loop-manip.c: Likewise.
5906 * tree-ssa-loop-niter.c: Likewise.
5907 * tree-ssa-loop-prefetch.c: Likewise.
5908 * tree-ssa-loop-unswitch.c: Likewise.
5909 * tree-ssa-loop.c: Likewise.
5910 * tree-ssa-math-opts.c: Likewise.
5911 * tree-ssa-operands.c: Likewise.
5912 * tree-ssa-phiopt.c: Likewise.
5913 * tree-ssa-phiprop.c: Likewise.
5914 * tree-ssa-pre.c: Likewise.
5915 * tree-ssa-propagate.c: Likewise.
5916 * tree-ssa-reassoc.c: Likewise.
5917 * tree-ssa-scopedtables.c: Likewise.
5918 * tree-ssa-sink.c: Likewise.
5919 * tree-ssa-strlen.c: Likewise.
5920 * tree-ssa-structalias.c: Likewise.
5921 * tree-ssa-tail-merge.c: Likewise.
5922 * tree-ssa-ter.c: Likewise.
5923 * tree-ssa-threadupdate.c: Likewise.
5924 * tree-ssa-uncprop.c: Likewise.
5925 * tree-ssa-uninit.c: Likewise.
5926 * tree-ssa.c: Likewise.
5927 * tree-ssanames.c: Likewise.
5928 * tree-stdarg.c: Likewise.
5929 * tree-streamer-in.c: Likewise.
5930 * tree-streamer-out.c: Likewise.
5931 * tree-streamer.c: Likewise.
5932 * tree-switch-conversion.c: Likewise.
5933 * tree-tailcall.c: Likewise.
5934 * tree-vect-data-refs.c: Likewise.
5935 * tree-vect-generic.c: Likewise.
5936 * tree-vect-loop-manip.c: Likewise.
5937 * tree-vect-loop.c: Likewise.
5938 * tree-vect-patterns.c: Likewise.
5939 * tree-vect-slp.c: Likewise.
5940 * tree-vect-stmts.c: Likewise.
5941 * tree-vectorizer.c: Likewise.
5942 * tree-vrp.c: Likewise.
5945 * ubsan.c: Likewise.
5946 * value-prof.c: Likewise.
5947 * var-tracking.c: Likewise.
5948 * varasm.c: Likewise.
5949 * varpool.c: Likewise.
5950 * vmsdbgout.c: Likewise.
5951 * vtable-verify.c: Likewise.
5953 * wide-int-print.cc: Likewise.
5954 * wide-int.cc: Likewise.
5955 * xcoffout.c: Likewise.
5957 2015-10-30 James Greenhalgh <james.greenhalgh@arm.com>
5959 * doc/invoke.texi (fdump-rtl-@var{pass}): Clarify relationship
5960 between pass numbering and execution order.
5962 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5964 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Use reg_set_p to
5965 check for dependencies.
5967 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
5969 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Don't free
5972 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
5974 * real.h (format_helper): New.
5975 (real_convert, exact_real_truncate, real_from_string3, real_to_target)
5976 (real_from_target, real_nan, real_2expN, real_value_truncate)
5977 (significand_size, real_from_string2, exact_real_inverse)
5978 (exact_real_inverse, real_powi, real_trunc, real_floor, real_ceil)
5979 (real_round, real_isinteger, real_from_integer): Replace
5980 machine_mode arguments with format_helper arguments.
5981 * real.c (exact_real_inverse, real_from_string2, real_from_string3)
5982 (real_from_integer, real_nan, real_2expN, real_convert)
5983 (real_value_truncate, exact_real_truncate, real_to_target)
5984 (real_from_target, significand_size, real_powi, real_trunc)
5985 (real_floor, real_ceil, real_round, real_isinteger): Replace
5986 machine_mode arguments with format_helper arguments.
5987 (real_to_target_fmt, real_from_target_fmt): Delete.
5988 * dfp.h (decimal_real_convert): Replace mode argument with real_format.
5989 * dfp.c (decimal_to_binary, decimal_real_convert): Replace mode
5990 argument with real_format.
5991 * builtins.c (do_real_to_int_conversion): Update type of fn argument.
5993 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
5995 * fixed-value.c (check_real_for_fixed_mode, fixed_from_string)
5996 (fixed_to_decimal, fixed_convert_from_real)
5997 (real_convert_from_fixed): Fix mode arguments to real_2expN.
5999 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
6001 * real.h (REAL_MODE_FORMAT): Abort if the mode isn't a
6002 SCALAR_FLOAT_MODE_P.
6004 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
6006 * tree-sra.c (scalarizable_type_p): Comment variable-length arrays.
6007 (completely_scalarize): Comment zero-length arrays.
6008 (get_access_replacement): Correct comment re. precondition.
6010 2015-10-30 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
6012 * config/i386/i386.c (get_builtin_code_for_version): Set priority
6013 for PROCESSOR_ZNVER1.
6014 (enum processor_model): Add M_AMDFAM17H_znver1.
6015 (struct arch_names_table): Likewise.
6016 * doc/extend.texi: ADD znver1.
6018 2015-10-30 Richard Biener <rguenther@suse.de>
6020 * gimple-fold.c (fold_gimple_assign): Do not dispatch to
6021 fold () on single RHSs. Allow CONSTRUCTORS with trailing
6022 zeros to be folded to VECTOR_CSTs.
6023 * tree.c (build_vector_from_ctor): Handle VECTOR_CST elements.
6024 * fold-const.c (fold): Use build_vector_from_ctor.
6026 2015-10-30 Evandro Menezes <e.menezes@samsung.com>
6028 * config/aarch64/aarch64.md (*movhf_aarch64): Change the type of
6029 "mov %0.h[0], %1.h[0] to "neon_move".
6030 (*movtf_aarch64): Change the type of "fmov %s0, wzr" to "f_mcr".
6031 (*cmov<mode>_insn): Change the types of "mov %<w>0, {-1,1}" to
6033 (*cmovsi_insn_uxtw): Likewise.
6035 2015-10-30 Tom de Vries <tom@codesourcery.com>
6037 * tree-ssa-structalias.c (ipa_pta_execute): Declare variable from as
6038 unsigned, and initialize, and use initial value instead of hardcoded
6039 constant. Add generic constraints dumping section. Don't dump global
6040 initializers constraints dumping section if empty. Don't update
6041 variable from if unused.
6043 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
6045 * config/alpha/alpha.c (alpha_function_arg): Use gcc_checking_assert,
6046 flag_checking and/or CHECKING_P to eliminate conditional compilation
6048 * config/arm/arm.c (arm_unwind_emit_sequence): Likewise.
6049 * config/bfin/bfin.c (hwloop_optimize): Likewise.
6050 * config/i386/i386.c (ix86_print_operand_address): Likewise.
6051 (output_387_binary_op): Likewise.
6052 * config/ia64/ia64.c (ia64_sched_init, bundling): Likewise.
6053 * config/m68k/m68k.c (m68k_sched_md_init_global): Likewise.
6054 * config/rs6000/rs6000.c (htm_expand_builtin, rs6000_emit_prologue):
6056 * config/rs6000/rs6000.h: Likewise.
6057 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
6059 2015-10-29 Kaz Kojima <kkojima@gcc.gnu.org>
6061 * config/sh/sh.opt (mfdpic): Add missing period.
6063 2015-08-29 Anatoly Sokolov <aesok@post.ru>
6065 * config/mcore/mcore.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
6066 BASE_REGISTER_RTX_P, INDEX_REGISTER_RTX_P,
6067 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
6068 * config/mcore/mcore.c (mcore_reg_ok_for_base_p,
6069 mcore_base_register_rtx_p, mcore_legitimate_index_p,
6070 mcore_legitimate_address_p): New functions.
6071 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
6073 2015-10-29 Jeff Law <law@redhat.com>
6075 * tree-ssa-scopedtables.h (const_and_copies): Remove invalidate
6077 * tree-ssa-scopedtables.h (const_and_copies::invalidate): Remove.
6078 * tree-ssa-threadedge.c
6079 (record_temporary_equivalences_from_stmts_at_dest): Remove
6080 backedge_seen argument and associated code which invalidated
6081 equivalences based on the value of that argument.
6082 (thread_through_normal_block): Corresponding changes.
6084 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
6086 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Move this
6087 function earlier in the file.
6088 (first_reg_to_save): Use rs6000_reg_live_or_pic_offset_p instead of
6089 df_regs_ever_live_p.
6091 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
6093 * lra-constraints.c (process_address_1): Handle (mem:BLK (scratch))
6096 2015-10-29 Richard Henderson <rth@redhat.com>
6100 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
6101 sse check to the exact conditions of PR 67609.
6103 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
6105 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Split libfunc
6106 setup into 3 functions: init_float128_ibm, init_float128_ieee, and
6107 rs6000_init_libfuncs. If -mfloat128, add IFmode functions for all
6108 of the traditional names that TFmode uses for handling IEEE
6109 extended double. If -mfloat128, add KFmode functions for all of
6110 the emulation functions. If -mabi=ieeelongdouble and -mfloat128,
6111 make TFmode use the same emulation functions as KFmode.
6112 (init_float128_ibm): Likewise.
6113 (init_float128_ieee): Likewise.
6114 (rs6000_generate_compare): For IEEE 128-bit floating point
6115 comparisons, call the unordered comparison function instead of the
6116 ordered comparison function.
6117 (rs6000_expand_float128_convert): Deal with operands that are
6118 memory operands. Restructure the code to use a switch statement on
6119 the mode. Add support for TFmode defaulting to either IBM extended
6120 double or IEEE 128-bit floating point. If the underlying types are
6121 the same, use a move instead of a conversion function.
6122 (TARGET_C_MODE_FOR_SUFFIX): Define 'q' and 'Q' as the suffix to
6123 use for IEEE 128-bit floating point constants with -mfloat128.
6124 (rs6000_c_mode_for_suffix): Likewise.
6125 (TARGET_INVALID_BINARY_OP): Do not allow inter-mixing of IEEE
6126 128-bit floating point with IBM extended double floating point.
6127 (rs6000_invalid_binary_op): Likewise.
6128 (rs6000_gen_le_vsx_permute): On little endian systems generate a
6129 ROTATE insn instead of VEC_SELECT for IEEE 128-bit floating point
6130 types that can go in vector registers.
6131 (chain_contains_only_swaps): Properly swap IEEE 128-bit floating
6132 point types that can go in vector registers on little endian
6134 (mark_swaps_for_removal): Likewise.
6135 (rs6000_analyze_swaps): Likewise.
6136 (rs6000_mangle_type): Use U10__float128 for IEEE 128-bit floating point.
6138 * config/rs6000/rs6000.md (FLOAT128_SFDFTF): Delete iterator,
6139 rework IEEE 128-bit floating point insns to deal with TFmode being
6140 either IBM extended double or IEEE 128-bit floating point.
6142 (IBM128): Update iterator to add condition that the mode is IBM
6144 (IEEE128): New iterator for IEEE 128-bit floating point.
6145 (TFIFKF): Rename TFIFKF iterator to FLOAT128.
6146 (FLOAT128): Likewise.
6147 (signbit<mode>2): FLOAT128_IBM_P condition test moved into IBM128
6149 (neg<mode>2): Replace TFIFKF iterator with FLOAT128. Add support
6150 for TFmode being IEEE 128-bit floating point. Use IEEE128 iterator
6151 instead of hard coding TFmode or KFmode.
6152 (negtf2_internal): Likewise.
6153 (neg<mode>2_internal): Likewise.
6154 (abs<mode>2): Likewise.
6155 (abstf2_internal): Likewise.
6156 (abs<mode>2_internal): Likewise.
6157 (ieee_128bit_neg<mode>2): Likewise.
6158 (ieee_128bit_neg<mode>2_internal): Likewise.
6159 (ieee_128bit_abs<mode>2): Likewise.
6160 (ieee_128bit_abs<mode>2_internal): Likewise.
6161 (ieee_128bit_nabs<mode>2): Likewise.
6162 (ieee_128bit_nabs<mode>2_internal): Likewise.
6163 (extendiftf2): Add explicit conversions between 128-bit floating
6164 point types. Drop the old conversions that had become unwieldy.
6165 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
6166 (extendifkf2): Likewise.
6167 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
6168 (extendtfkf2): Likewise.
6169 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
6170 (trunciftf2): Likewise.
6171 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
6172 (truncifkf2): Likewise.
6173 (float<SDI:mode><IFKF:mode>2): Likewise.
6174 (trunckftf2): Likewise.
6175 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
6176 (trunctfif2): Likewise.
6177 (FP iterator): Allow TFmode to be IEEE 128-bit floating point.
6178 (extenddftf2): Rework 128-bit floating point conversions to
6179 properly handle -mabi=ieeelongdouble. Merge IFmode, TFmode, and
6180 KFmode expanders into one function.
6181 (extenddf<mode>2): Likewise.
6182 (extenddftf2_fprs): Likewise.
6183 (extenddf<mode>2_fprs): Likewise.
6184 (extenddftf2_vsx): Likewise.
6185 (extenddf<mode>2_vsx): Likewise.
6186 (extendsftf2): Likewise.
6187 (extendsf<mode>2): Likewise.
6188 (trunctfdf2): Likewise.
6189 (trunc<mode>df2): Likewise.
6190 (trunctfdf2_internal1): Likewise.
6191 (trunc<mode>df2_internal1): Likewise.
6192 (trunctfdf2_internal2): Likewise.
6193 (trunc<mode>df2_internal2): Likewise.
6194 (trunctfsf2): Likewise.
6195 (trunc<mode>sf2): Likewise.
6196 (trunctfsf2_fprs): Likewise.
6197 (trunc<mode>sf2_fprs): Likewise.
6198 (floatsit2f): Likewise.
6199 (floatsi<mode>2): Likewise.
6200 (fix_trunc_helper): Likewise.
6201 (fix_trunc_helper<mode>): Likewise.
6202 (fix_trunctfsi2): Likewise.
6203 (fix_trunc<mode>si2): Likewise.
6204 (fix_trunctfsi2_fprs): Likewise.
6205 (fix_trunc<mode>si2_fprs): Likewise.
6206 (fix_trunctfsi2_internal): Likewise.
6207 (fix_trunc<mode>si2_internal): Likewise.
6208 (fix_trunctfdi2): Likewise.
6209 (fix_trunc<mode>di2): Likewise.
6210 (fixuns_trunctf<mode>2): Likewise.
6211 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
6212 (floatditf2): Likewise.
6213 (floatdi<mode>2): Likewise.
6214 (floatuns<mode>tf2): Likewise.
6215 (floatuns<SDI:mode><IEEE128:mode>): Likewise.
6216 (cmptf_internal1): Use a mode iterator to add support for both
6217 types (IFmode, TFmode) that support IBM extended double.
6218 (cmp<mode>_internal1): Likewise.
6219 (cmptf_internal2): Likewise.
6220 (cmp<mode>_internal2): Likewise.
6222 * doc/extend.texi (Floating Types): Document __ibm128 and
6223 __float128 on PowerPC.
6225 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
6226 -mfloat128 and -mno-float128.
6228 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
6230 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Add IEEE 128-bit
6231 floating point modes that can go in vector registers.
6232 (MODES_TIEABLE_P): Move tests for vector modes before tests for
6233 scalar floating point, so that IEEE 128-bit floating point that
6234 can go in vector registers bind with vectors and not FP.
6235 (struct rs6000_args): Add libcall field.
6237 * config/rs6000/rs6000.opt (-mfloat128-*): Delete -mfloat128-none
6238 and -mfloat128-software switches. Replace them with a binary
6240 (-mfloat128): Likewise.
6242 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
6243 128-bit floating point types in GPRs, even if the appropriate
6244 option enabling the type was not used.
6245 (rs6000_debug_reg_global): Remove -mfloat128-{software,none}
6247 (rs6000_setup_reg_addr_masks): Do not allow pre-increment and
6248 pre-decrement on IEEE 128-bit floating point values.
6249 (rs6000_init_hard_regno_mode_ok): Change test for whether TFmode
6250 is IEEE 128-bit floating point.
6251 (rs6000_init_hard_regno_mode_ok): Add reload handlers for IEEE
6252 128-bit floating point types that can go in vector registers.
6253 (rs6000_option_override_internal): Change -mfloat128-none and
6254 -mfloat128-software to -mfloat128, and move code to be near other
6255 VSX option handling.
6256 (rs6000_option_override_internal): Disable -mfloat128 if we don't
6257 have the Altivec ABI.
6258 (rs6000_init_builtins): Don't make TFmode use either IFmode or
6259 KFmode floating point nodes. Instead, have three separate nodes.
6260 (rs6000_scalar_mode_supported_p): Add support for IFmode to allow
6261 eventually moving the long double default to IEEE 128-bit floating
6263 (rs6000_opt_masks): Add -mfloat128.
6264 (struct rs6000_opt_var): Fix typo in comment.
6265 (init_cumulative_args): Initialize libcall field in
6267 (rs6000_function_arg): Treat library functions as if they had
6268 prototypes to prevent IEEE 128-bit support functions from passing
6269 arguments in both GPRs and vector registers.
6270 (rs6000_arg_partial_bytes): Likewise.
6272 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add -mfloat128 as
6273 an option that can be turned on via -mcpu=<xxx>.
6275 * config/rs6000/rs6000-opts.h (enum float128_type_t): Delete, no
6278 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
6279 __FLOAT128__ if -mfloat128. Define __LONG_DOUBLE_IEEE128__ if long
6280 double is IEEE 128-bit. Define __LONG_DOUBLE_IBM128__ if long
6281 double is IBM extended double.
6283 * config/rs6000/predicates.md (reg_or_indexed_operand): Allow
6286 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
6288 * genautomata.c: Use CHECKING_P instead of ENABLE_CHECKING.
6289 * genconditions.c: Define CHECKING_P in the generated code.
6290 * genextract.c: Use flag_checking in insn_extract.
6291 * gengtype.c (main): Remove conditional compilation.
6292 * gengtype.h: Likewise.
6294 2015-10-29 Jeff Law <law@redhat.com>
6296 PR tree-optimization/67892
6297 * tree-ssa-threadedge.c (simplify_controL_stmt_condition): Fix typo
6299 (thread_through_normal_block): If we have seen a backedge, then
6300 do nothing. No longer call find_jump_threads_backwards here.
6301 (thread_across_edge): Use find_jump_threads_backwards to find
6302 jump threads if the old style threader was not successful.
6303 * tree-ssa-threadbackward.c (get_gimple_control_stmt): Use
6304 gsi_last_nondebug_bb. Return NULL if the block does not end
6305 with a control statement.
6306 (find_jump_threads_backwards): Setup code moved here from
6307 tree-ssa-threadedge.c::thread_through_normal_block. Accept
6308 single edge argument instead of name & block.
6309 * tree-ssa-threadbackward.h (find_jump_threads_backwards): Update
6312 2015-10-29 Tom de Vries <tom@codesourcery.com>
6314 * fold-const.c (fold_unary_loc): Remove folding inhibition for restrict
6317 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
6319 * omp-low.c (lower_omp_target): Remove unreachable code & merge
6322 2015-10-29 Marc Glisse <marc.glisse@inria.fr>
6324 * match.pd (X-(X/Y)*Y): Properly handle conversions and commutativity.
6326 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
6328 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
6329 guard_bb0 and use guard_bb throughout.
6331 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
6333 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
6336 2015-10-29 Richard Biener <rguenther@suse.de>
6339 * fold-const.c (extract_muldiv_1): Avoid introducing undefined
6342 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
6344 * alias.c: Reorder #include statements and remove duplicates.
6346 * attribs.c: Likewise.
6347 * auto-inc-dec.c: Likewise.
6348 * auto-profile.c: Likewise.
6349 * bb-reorder.c: Likewise.
6350 * bt-load.c: Likewise.
6351 * builtins.c: Likewise.
6352 * caller-save.c: Likewise.
6353 * calls.c: Likewise.
6356 * cfganal.c: Likewise.
6357 * cfgbuild.c: Likewise.
6358 * cfgcleanup.c: Likewise.
6359 * cfgexpand.c: Likewise.
6360 * cfghooks.c: Likewise.
6361 * cfgloop.c: Likewise.
6362 * cfgloopanal.c: Likewise.
6363 * cfgloopmanip.c: Likewise.
6364 * cfgrtl.c: Likewise.
6365 * cgraph.c: Likewise.
6366 * cgraphbuild.c: Likewise.
6367 * cgraphclones.c: Likewise.
6368 * cgraphunit.c: Likewise.
6369 * cilk-common.c: Likewise.
6370 * combine-stack-adj.c: Likewise.
6371 * combine.c: Likewise.
6372 * compare-elim.c: Likewise.
6373 * convert.c: Likewise.
6374 * coverage.c: Likewise.
6375 * cppbuiltin.c: Likewise.
6376 * cprop.c: Likewise.
6378 * cselib.c: Likewise.
6379 * data-streamer-in.c: Likewise.
6380 * data-streamer-out.c: Likewise.
6381 * data-streamer.c: Likewise.
6382 * dbxout.c: Likewise.
6385 * debug.c: Likewise.
6386 * df-core.c: Likewise.
6387 * df-problems.c: Likewise.
6388 * df-scan.c: Likewise.
6390 * dojump.c: Likewise.
6391 * dominance.c: Likewise.
6392 * double-int.c: Likewise.
6394 * dumpfile.c: Likewise.
6395 * dwarf2asm.c: Likewise.
6396 * dwarf2cfi.c: Likewise.
6397 * dwarf2out.c: Likewise.
6398 * emit-rtl.c: Likewise.
6399 * except.c: Likewise.
6400 * explow.c: Likewise.
6401 * expmed.c: Likewise.
6403 * final.c: Likewise.
6404 * fixed-value.c: Likewise.
6405 * fold-const.c: Likewise.
6406 * function.c: Likewise.
6407 * fwprop.c: Likewise.
6409 * generic-match-head.c: Likewise.
6410 * ggc-common.c: Likewise.
6411 * gimple-builder.c: Likewise.
6412 * gimple-expr.c: Likewise.
6413 * gimple-fold.c: Likewise.
6414 * gimple-iterator.c: Likewise.
6415 * gimple-low.c: Likewise.
6416 * gimple-match-head.c: Likewise.
6417 * gimple-pretty-print.c: Likewise.
6418 * gimple-ssa-isolate-paths.c: Likewise.
6419 * gimple-ssa-strength-reduction.c: Likewise.
6420 * gimple-streamer-in.c: Likewise.
6421 * gimple-streamer-out.c: Likewise.
6422 * gimple-walk.c: Likewise.
6423 * gimple.c: Likewise.
6424 * gimplify-me.c: Likewise.
6425 * gimplify.c: Likewise.
6426 * godump.c: Likewise.
6427 * graph.c: Likewise.
6428 * graphite-poly.c: Likewise.
6429 * haifa-sched.c: Likewise.
6430 * hw-doloop.c: Likewise.
6431 * ifcvt.c: Likewise.
6432 * incpath.c: Likewise.
6433 * init-regs.c: Likewise.
6434 * internal-fn.c: Likewise.
6435 * ipa-chkp.c: Likewise.
6436 * ipa-comdats.c: Likewise.
6437 * ipa-cp.c: Likewise.
6438 * ipa-devirt.c: Likewise.
6439 * ipa-icf-gimple.c: Likewise.
6440 * ipa-icf.c: Likewise.
6441 * ipa-inline-analysis.c: Likewise.
6442 * ipa-inline-transform.c: Likewise.
6443 * ipa-inline.c: Likewise.
6444 * ipa-polymorphic-call.c: Likewise.
6445 * ipa-profile.c: Likewise.
6446 * ipa-prop.c: Likewise.
6447 * ipa-pure-const.c: Likewise.
6448 * ipa-ref.c: Likewise.
6449 * ipa-reference.c: Likewise.
6450 * ipa-split.c: Likewise.
6451 * ipa-utils.c: Likewise.
6452 * ipa-visibility.c: Likewise.
6454 * ira-build.c: Likewise.
6455 * ira-color.c: Likewise.
6456 * ira-conflicts.c: Likewise.
6457 * ira-costs.c: Likewise.
6458 * ira-emit.c: Likewise.
6459 * ira-lives.c: Likewise.
6462 * langhooks.c: Likewise.
6464 * lists.c: Likewise.
6465 * loop-doloop.c: Likewise.
6466 * loop-init.c: Likewise.
6467 * loop-invariant.c: Likewise.
6468 * loop-iv.c: Likewise.
6469 * loop-unroll.c: Likewise.
6470 * lower-subreg.c: Likewise.
6471 * lra-assigns.c: Likewise.
6472 * lra-coalesce.c: Likewise.
6473 * lra-constraints.c: Likewise.
6474 * lra-eliminations.c: Likewise.
6475 * lra-lives.c: Likewise.
6476 * lra-remat.c: Likewise.
6477 * lra-spills.c: Likewise.
6479 * lto-cgraph.c: Likewise.
6480 * lto-compress.c: Likewise.
6481 * lto-opts.c: Likewise.
6482 * lto-section-in.c: Likewise.
6483 * lto-section-out.c: Likewise.
6484 * lto-streamer-in.c: Likewise.
6485 * lto-streamer-out.c: Likewise.
6486 * lto-streamer.c: Likewise.
6487 * mode-switching.c: Likewise.
6488 * modulo-sched.c: Likewise.
6489 * omp-low.c: Likewise.
6490 * optabs.c: Likewise.
6491 * opts-global.c: Likewise.
6492 * passes.c: Likewise.
6493 * plugin.c: Likewise.
6494 * postreload-gcse.c: Likewise.
6495 * postreload.c: Likewise.
6496 * predict.c: Likewise.
6497 * print-tree.c: Likewise.
6498 * profile.c: Likewise.
6500 * realmpfr.c: Likewise.
6501 * recog.c: Likewise.
6503 * reg-stack.c: Likewise.
6504 * regcprop.c: Likewise.
6505 * reginfo.c: Likewise.
6506 * regrename.c: Likewise.
6507 * regstat.c: Likewise.
6508 * reload.c: Likewise.
6509 * reload1.c: Likewise.
6510 * reorg.c: Likewise.
6511 * resource.c: Likewise.
6512 * rtl-chkp.c: Likewise.
6513 * rtl-error.c: Likewise.
6514 * rtlanal.c: Likewise.
6515 * rtlhooks.c: Likewise.
6516 * sanopt.c: Likewise.
6517 * sched-deps.c: Likewise.
6518 * sched-ebb.c: Likewise.
6519 * sched-rgn.c: Likewise.
6521 * shrink-wrap.c: Likewise.
6522 * simplify-rtx.c: Likewise.
6523 * stack-ptr-mod.c: Likewise.
6524 * statistics.c: Likewise.
6526 * stor-layout.c: Likewise.
6527 * store-motion.c: Likewise.
6528 * stringpool.c: Likewise.
6529 * symtab.c: Likewise.
6530 * target-globals.c: Likewise.
6531 * targhooks.c: Likewise.
6532 * toplev.c: Likewise.
6533 * tracer.c: Likewise.
6534 * trans-mem.c: Likewise.
6535 * tree-affine.c: Likewise.
6536 * tree-call-cdce.c: Likewise.
6537 * tree-cfg.c: Likewise.
6538 * tree-cfgcleanup.c: Likewise.
6539 * tree-chkp-opt.c: Likewise.
6540 * tree-chkp.c: Likewise.
6541 * tree-chrec.c: Likewise.
6542 * tree-complex.c: Likewise.
6543 * tree-data-ref.c: Likewise.
6544 * tree-dfa.c: Likewise.
6545 * tree-diagnostic.c: Likewise.
6546 * tree-dump.c: Likewise.
6547 * tree-eh.c: Likewise.
6548 * tree-emutls.c: Likewise.
6549 * tree-if-conv.c: Likewise.
6550 * tree-inline.c: Likewise.
6551 * tree-into-ssa.c: Likewise.
6552 * tree-iterator.c: Likewise.
6553 * tree-loop-distribution.c: Likewise.
6554 * tree-nested.c: Likewise.
6555 * tree-nrv.c: Likewise.
6556 * tree-object-size.c: Likewise.
6557 * tree-outof-ssa.c: Likewise.
6558 * tree-parloops.c: Likewise.
6559 * tree-phinodes.c: Likewise.
6560 * tree-predcom.c: Likewise.
6561 * tree-pretty-print.c: Likewise.
6562 * tree-profile.c: Likewise.
6563 * tree-scalar-evolution.c: Likewise.
6564 * tree-sra.c: Likewise.
6565 * tree-ssa-address.c: Likewise.
6566 * tree-ssa-alias.c: Likewise.
6567 * tree-ssa-ccp.c: Likewise.
6568 * tree-ssa-coalesce.c: Likewise.
6569 * tree-ssa-copy.c: Likewise.
6570 * tree-ssa-dce.c: Likewise.
6571 * tree-ssa-dom.c: Likewise.
6572 * tree-ssa-dse.c: Likewise.
6573 * tree-ssa-forwprop.c: Likewise.
6574 * tree-ssa-ifcombine.c: Likewise.
6575 * tree-ssa-live.c: Likewise.
6576 * tree-ssa-loop-ch.c: Likewise.
6577 * tree-ssa-loop-im.c: Likewise.
6578 * tree-ssa-loop-ivcanon.c: Likewise.
6579 * tree-ssa-loop-ivopts.c: Likewise.
6580 * tree-ssa-loop-manip.c: Likewise.
6581 * tree-ssa-loop-niter.c: Likewise.
6582 * tree-ssa-loop-prefetch.c: Likewise.
6583 * tree-ssa-loop-unswitch.c: Likewise.
6584 * tree-ssa-loop.c: Likewise.
6585 * tree-ssa-math-opts.c: Likewise.
6586 * tree-ssa-operands.c: Likewise.
6587 * tree-ssa-phiopt.c: Likewise.
6588 * tree-ssa-phiprop.c: Likewise.
6589 * tree-ssa-pre.c: Likewise.
6590 * tree-ssa-propagate.c: Likewise.
6591 * tree-ssa-reassoc.c: Likewise.
6592 * tree-ssa-sccvn.c: Likewise.
6593 * tree-ssa-scopedtables.c: Likewise.
6594 * tree-ssa-sink.c: Likewise.
6595 * tree-ssa-strlen.c: Likewise.
6596 * tree-ssa-structalias.c: Likewise.
6597 * tree-ssa-tail-merge.c: Likewise.
6598 * tree-ssa-ter.c: Likewise.
6599 * tree-ssa-threadedge.c: Likewise.
6600 * tree-ssa-threadupdate.c: Likewise.
6601 * tree-ssa-uncprop.c: Likewise.
6602 * tree-ssa-uninit.c: Likewise.
6603 * tree-ssa.c: Likewise.
6604 * tree-ssanames.c: Likewise.
6605 * tree-stdarg.c: Likewise.
6606 * tree-streamer-in.c: Likewise.
6607 * tree-streamer-out.c: Likewise.
6608 * tree-streamer.c: Likewise.
6609 * tree-switch-conversion.c: Likewise.
6610 * tree-tailcall.c: Likewise.
6611 * tree-vect-data-refs.c: Likewise.
6612 * tree-vect-generic.c: Likewise.
6613 * tree-vect-loop-manip.c: Likewise.
6614 * tree-vect-loop.c: Likewise.
6615 * tree-vect-patterns.c: Likewise.
6616 * tree-vect-slp.c: Likewise.
6617 * tree-vect-stmts.c: Likewise.
6618 * tree-vectorizer.c: Likewise.
6619 * tree-vrp.c: Likewise.
6622 * ubsan.c: Likewise.
6623 * value-prof.c: Likewise.
6624 * var-tracking.c: Likewise.
6625 * varasm.c: Likewise.
6626 * varpool.c: Likewise.
6627 * vtable-verify.c: Likewise.
6629 * wide-int-print.cc: Likewise.
6630 * wide-int.cc: Likewise.
6631 * xcoffout.c: Likewise.
6633 2015-10-29 H.J. Lu <hongjiu.lu@intel.com>
6635 * Makefile.in (NO_PIE_CFLAGS): New.
6636 (NO_PIE_FLAG): Likewise.
6637 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
6638 (NO_PIE_FLAG_FOR_BUILD): Likewise.
6639 (BUILD_NO_PIE_CFLAGS): Likewise.
6640 (BUILD_NO_PIE_FLAG): Likewise.
6641 (COMPILER): Replace @NO_PIE_CFLAGS@ with $(NO_PIE_CFLAGS).
6642 (LINKER): Replace @NO_PIE_FLAG@ with $(NO_PIE_FLAG).
6643 (BUILD_CFLAGS): Replace @NO_PIE_CFLAGS@ with
6644 $(BUILD_NO_PIE_CFLAGS).
6645 (BUILD_CXXFLAGS): Likewise.
6646 (BUILD_LDFLAGS ): Replace @NO_PIE_FLAG@ with
6647 $(BUILD_NO_PIE_FLAG).
6648 * configure.ac (BUILD_NO_PIE_CFLAGS): New. AC_SUBST.
6649 (BUILD_NO_PIE_FLAG): Likewise.
6650 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
6651 (NO_PIE_FLAG_FOR_BUILD): Likewise.
6652 * configure: Regenerated.
6654 2015-10-29 Richard Biener <rguenther@suse.de>
6657 * fold-const.c (fold_cond_expr_with_comparison): Do not fold
6658 unsigned conditonal negation to ABS_EXPR.
6660 2015-10-29 Richard Biener <rguenther@suse.de>
6662 * gimple-match-head.c (gimple_simplify): Remove premature checking
6663 of builtin_decl_implicit of function calls we simplify.
6665 2015-10-29 Bin Cheng <bin.cheng@arm.com>
6667 * tree-ssa-loop-ivopts.c (split_address_cost): Check depends_on.
6668 (get_computation_cost_at): Ditto.
6669 (determine_use_iv_cost_address): Pass NULL for arguments depends_on
6672 2015-10-28 Tom de Vries <tom@codesourcery.com>
6674 * tree-ssa-structalias.c (intra_create_variable_infos): Remove
6677 2015-10-28 Jason Merrill <jason@redhat.com>
6679 * Makefile.in (TAGS): Include libcpp and libiberty.
6681 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
6683 * omp-low.c (MASK_GANG, MASK_WORKER, MASK_VECTOR): Delete.
6684 (extract_omp_for_data): Remove OpenACC special handling of
6687 * config/nvptx/nvptx.c (nvptx_print_operand): Remove 'd' case.
6688 (struct parallel): Update comment.
6689 (nvptx_reorg): Likewise.
6690 (nvptx_neuter): Cleanup whitespace.
6692 2015-10-28 Richard Henderson <rth@redhat.com>
6694 * tree-eh.c (mark_reachable_handlers): Fix typo in assert.
6696 2015-10-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
6699 * config/avr/predicates.md (low_io_address_operand): Don't
6700 consider MODE when computing upper bound.
6701 (io_address_operand): Likewise.
6703 2015-10-28 Jan Hubicka <hubicka@ucw.cz>
6705 * fold-const.c (operand_equal_p): Do not verify that types are
6706 compatible for MEM_REFs.
6708 2015-10-28 Richard Biener <rguenther@suse.de>
6710 * gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs
6711 in simplifying VEC_COND_EXPR conditions.
6713 2015-10-28 Tom de Vries <tom@codesourcery.com>
6715 * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate
6716 into vi_next of a full_var.
6718 2015-10-28 Tom de Vries <tom@codesourcery.com>
6720 * tree-ssa-structalias.c (new_var_info, make_heapvar)
6721 (make_constraint_from_restrict, make_constraint_from_global_restrict)
6722 (create_function_info_for, create_variable_info_for_1)
6723 (create_variable_info_for): Add and handle add_id parameter.
6724 (get_call_vi, new_scalar_tmp_constraint_exp, handle_rhs_call)
6725 (init_base_vars): Add extra argument to calls to new_var_info.
6726 (get_vi_for_tree): Add extra argument to call to
6727 create_variable_info_for.
6728 (process_constraint, do_deref, process_all_all_constraints): Add extra
6729 argument to calls to new_scalar_tmp_constraint_exp.
6730 (handle_lhs_call, find_func_aliases_for_builtin_call): Add extra
6731 argument to calls to make_heapvar.
6732 (make_restrict_var_constraints): Add extra argument to call to
6733 make_constraint_from_global_restrict.
6734 (intra_create_variable_infos): Add extra argument to call to
6735 create_variable_info_for_1.
6736 (ipa_pta_execute): Add extra argument to call to
6737 create_function_info_for.
6739 2015-10-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6741 * config/aarch64/aarch64.md (call, call_value, sibcall): Handle noplt.
6742 (sibcall_value): Likewise.
6744 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
6746 * config/nvptx/nvptx.h (struct machine_function): Add
6748 * config/nvptx/nvptx-protos.h (nvptx_expand_oacc_fork,
6749 nvptx_expand_oacc_join): Declare.
6750 * config/nvptx/nvptx.md (UNSPEC_NTID, UNSPEC_TID): Delete.
6751 (UNSPEC_DIM_SIZE, UNSPEC_SHARED_DATA, UNSPEC_BIT_CONV,
6752 UNSPEC_SHUFFLE, UNSPEC_BR_UNIFIED): New.
6753 (UNSPECV_BARSYNC, UNSPECV_DIM_POS, UNSPECV_FORK, UNSPECV_FORKED,
6754 UNSPECV_JOINING, UNSPECV_JOIN): New.
6755 (BITS, BITD): New mode iterators.
6756 (br_true_uni, br_false_uni): New.
6757 (*oacc_ntid_insn, oacc_ntid, *oacc_tid_insn, oacc_tid): Delete.
6758 (oacc_dim_size, oacc_dim_pos): New.
6759 (nvptx_fork, nvptx_forked, nvptx_joining, nvptx_join): New.
6760 (oacc_fork, oacc_join): New.
6761 (nvptx_shuffle<mode>, unpack<mode>si2, packsi<mode>2): New.
6762 (worker_load<mode>, worker_store<mode>): New.
6763 (nvptx_barsync): New.
6764 * config/nvptx/nvptx.c: Include gimple.h & dumpfile.h.
6765 (SHUFFLE_UP, SHUFFLE_DOWN, SHUFFLE_BFLY, SHUFFLE_IDX): Define.
6766 (worker_bcast_hwm, worker_bcast_align, worker_bcast_name,
6767 worker_bcast_sym): New.
6768 (nvptx_option_override): Initialize worker broadcast buffer.
6769 (nvptx_emit_forking, nvptx_emit_joining): New.
6770 (nvptx_init_axis_predicate): New.
6771 (nvptx_declare_function_name): Init axis predicates.
6772 (nvptx_expand_call): Add fork/join markers around routine call.
6773 (nvptx_expand_oacc_fork, nvptx_expand_oacc_join): New.
6774 (nvptx_gen_unpack, nvptx_gen_pack, nvptx_gen_shuffle): New.
6775 (nvptx_gen_vcast): New.
6776 (struct wcast_data_t): New.
6777 (enum propagate_mask): New.
6778 (nvptx_gen_wcast): New.
6779 (nvptx_print_operand): Add 'S' case.
6780 (struct parallel): New.
6781 (parallel::parallel, parallel::~parallel): New.
6782 (bb_insn_map_t, insn_bb_t, insn_bb_vec_t): New typedefs.
6783 (nvptx_split_blocks, nvptx_discover_pre, nvptx_dump_pars,
6784 nvptx_find_par, nvptx_discover_pars): New.
6785 (nvptx_propagate): New.
6786 (vprop_gen, nvptx_vpropagate): New.
6787 (wprop_gen, nvptx_wpropagate): New.
6789 (nvptx_single, nvptx_skip_par): New.
6790 (nvptx_process_pars, nvptx_neuter_pars): New.
6791 (ntptx_reorg): Split blocks, generate parallel structure, apply
6793 (nvptx_cannot_copy_insn_p): New.
6794 (nvptx_file_end): Emit worker broadcast decl.
6795 (nvptx_goacc_fork_join): New.
6796 (TARGET_CANNOT_COPY_INSN_P): Override.
6797 (TARGET_GOACC_FORK_JOIN): Override.
6799 2015-10-28 Richard Biener <rguenther@suse.de>
6801 * fold-const.c (negate_expr_p): Adjust the division case to
6802 properly avoid introducing undefined overflow.
6803 (fold_negate_expr): Likewise.
6805 2015-10-28 Richard Biener <rguenther@suse.de>
6807 PR tree-optimization/65962
6808 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
6809 Avoid creating loop carried dependences also for outer loops
6810 of the loop a use to replace is in.
6812 2015-10-28 Richard Biener <rguenther@suse.de>
6814 * common.opt (fchecking): New flag controlling flag_checking.
6815 * passes.c (verify_curr_properties): Drop DEBUG_FUNCTION.
6816 * timevar.c (timer::print): Adjust output.
6817 * doc/invoke.texi (fchecking): Document.
6819 2015-10-28 Richard Biener <rguenther@suse.de>
6822 * fold-const.c (negate_expr_p): We cannot negate plus or minus
6823 if overflow is not wrapping. Likewise multiplication unless
6824 one operand is constant and not power of two.
6825 (fold_negate_expr): Adjust accordingly.
6827 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
6829 * omp-low.c (struct omp_context): Remove gwv_below, gwv_this
6831 (is_oacc_parallel, is_oacc_kernels): New.
6832 (enclosing_target_ctx): May return NULL.
6833 (ctx_in_oacc_kernels_region): New.
6834 (check_oacc_kernel_gwv): New.
6835 (oacc_loop_or_target_p): Delete.
6836 (scan_omp_for): Don't calculate gwv mask. Check parallel clause
6837 operands. Strip reductions fro kernels.
6838 (scan_omp_target): Don't calculate gwv mask.
6839 (lower_oacc_head_mark, lower_oacc_loop_marker,
6840 lower_oacc_head_tail): New.
6841 (struct oacc_collapse): New.
6842 (expand_oacc_collapse_init, expand_oacc_collapse_vars): New.
6843 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
6844 Remove OpenACC handling.
6845 (expand_oacc_for): New.
6846 (expand_omp_for): Call expand_oacc_for.
6847 (lower_omp_for): Call lower_oacc_head_tail.
6849 2015-10-27 Mikhail Maltsev <maltsevm@gmail.com>
6851 * attribs.c (check_attribute_tables): New function, broken out from...
6852 (init_attributes): Use it.
6853 * cfgcleanup.c (try_optimize_cfg): Use flag_checking, CHECKING_P
6854 gcc_checking_assert and checking_* functions to eliminate
6855 ENABLE_CHECKING conditionals.
6856 * cfgexpand.c (expand_goto, expand_debug_expr): Likewise.
6857 (pass_expand::execute): Likewise.
6858 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
6859 * cgraphunit.c (mark_functions_to_output): Likewise.
6860 (cgraph_node::expand_thunk): Likewise.
6861 (symbol_table::compile): Likewise.
6862 * ddg.c (add_cross_iteration_register_deps): Likewise.
6863 (create_ddg_all_sccs): Likewise.
6864 * df-core.c (df_finish_pass, df_analyze): Likewise.
6865 * diagnostic-core.h: Likewise.
6866 * diagnostic.c (diagnostic_report_diagnostic): Likewise.
6867 * dominance.c (calculate_dominance_info): Likewise.
6868 * dwarf2out.c (add_AT_die_ref): Likewise.
6869 (const_ok_for_output_1, mem_loc_descriptor): Likewise.
6870 (loc_list_from_tree, gen_lexical_block_die): Likewise.
6871 gen_type_die_with_usage, gen_type_die): Likewise.
6872 (dwarf2out_decl): Likewise.
6873 * emit-rtl.c (verify_rtx_sharing, reorder_insns_nobb): Likewise.
6874 * except.c (duplicate_eh_regions): Likewise.
6875 * fwprop.c (register_active_defs, update_df_init): Likewise.
6876 (fwprop_init, fwprop_done): Likewise.
6877 (update_uses): Likewise.
6878 * ggc-page.c (ggc_grow): Likewise.
6879 * gimplify.c (gimplify_body): Likewise.
6880 (gimplify_hasher::equal): Likewise.
6881 * graphite-isl-ast-to-gimple.c (graphite_verify): Likewise.
6882 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form):
6884 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Likewise.
6885 (rewrite_cross_bb_scalar_deps_out_of_ssa): Likwise.
6886 * hash-table.h (::find_empty_slot_for_expand): Likewise.
6887 * ifcvt.c (if_convert): Likewise.
6888 * ipa-cp.c (ipcp_propagate_stage): Likewise.
6889 * ipa-devirt.c (type_in_anonymous_namespace_p): Likewise.
6890 (odr_type_p, odr_types_equivalent_p): Likewise.
6891 (add_type_duplicate, get_odr_type): Likewise.
6892 * ipa-icf.c (sem_item_optimizer::execute): Likewise.
6893 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
6894 (sem_item_optimizer::verify_classes): Likewise.
6895 (sem_item_optimizer::traverse_congruence_split): Likewise.
6896 (sem_item_optimizer::checking_verify_classes): New.
6897 * ipa-icf.h (sem_item_optimizer::checking_verify_classes): Add new
6899 * cfgrtl.c (commit_edge_insertions): Likewise.
6900 (fixup_reorder_chain, cfg_layout_finalize): Likewise.
6901 (rtl_flow_call_edges_add): Likewise.
6902 * cgraph.c (symbol_table::create_edge): Likewise.
6903 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
6904 * cgraph.h (symtab_node): Likewise.
6905 (symtab_node::checking_verify_symtab_nodes): Define.
6906 (cgraph_node::checking_verify_cgraph_nodes): Define.
6907 * cfghooks.h (checking_verify_flow_info): Define.
6908 * cfgloop.h (checking_verify_loop_structure): Define.
6909 * dominance.h (checking_verify_dominators): Define.
6910 * et-forest.c: Fix comment.
6911 * ipa-inline-analysis.c (compute_inline_parameters): Use flag_checking,
6912 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
6913 ENABLE_CHECKING conditionals.
6914 * ipa-inline-transform.c (save_inline_function_body): Likewise.
6915 * ipa-inline.c (inline_small_functions): Likewise.
6916 (early_inliner): Likewise.
6917 * ipa-inline.h (estimate_edge_growth): Likewise.
6918 * ipa-visibility.c (function_and_variable_visibility): Likewise.
6919 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
6920 (ipa_single_use): Likewise.
6921 * ira-int.h: Likewise.
6922 * ira.c (ira): Likewise.
6923 * loop-doloop.c (doloop_optimize_loops): Likewise.
6924 * loop-init.c (loop_optimizer_init, fix_loop_structure): Likewise.
6925 * loop-invariant.c (move_loop_invariants): Likewise.
6926 * lra-assigns.c (lra_assign): Likewise.
6927 * lra-constraints.c (lra_constraints): Likewise.
6928 * lra-eliminations.c (lra_eliminate): Likewise.
6929 * lra-int.h (struct lra_reg): Likewise.
6930 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
6931 (lra_create_live_ranges_1): Likewise.
6932 * lra-remat.c (create_remat_bb_data): Likewise.
6933 * lra.c (lra_update_insn_recog_data, restore_scratches): Likewise.
6935 (check_rtl): Always define. Remove incorrect guard around
6936 extract_constrain_insn call.
6937 * lto-cgraph.c (input_cgraph_1: Use flag_checking,
6938 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
6939 ENABLE_CHECKING conditionals.
6940 * lto-streamer-out.c (DFS::DFS): Likewise.
6941 (lto_output): Likewise.
6942 * lto-streamer.c (lto_streamer_init): Likewise.
6943 * omp-low.c (scan_omp_target, expand_omp_taskreg): Likewise.
6944 expand_omp_target, execute_expand_omp): Likewise.
6945 (lower_omp_target): Likewise.
6946 * passes.c (execute_function_todo): Likewise.
6947 (execute_todo, execute_one_pass): Likewise.
6948 (verify_curr_properties): Always define.
6949 * predict.c (tree_estimate_probability: Use flag_checking,
6950 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
6951 ENABLE_CHECKING conditionals.
6952 (propagate_freq): Likewise.
6953 * pretty-print.c (pp_format): Likewise.
6954 * real.c (real_to_decimal_for_mode): Likewise.
6955 * recog.c (split_all_insns): Likewise.
6956 * regcprop.c (kill_value_one_regno): Likewise.
6957 (copy_value): Likewise.
6958 (validate_value_data): Define unconditionally.
6959 * reload.c: Fix comment.
6960 * timevar.c: Include options.h
6961 * tree-ssa.h (checking_verify_ssa): Define.
6962 * tree-ssa-loop-manip.h (checking_verify_loop_closed_ssa): Define.
6963 * sched-deps.c (CHECK): Remove unused macro.
6964 (add_or_update_dep_1, sd_add_dep: Use flag_checking, CHECKING_P
6965 gcc_checking_assert and checking_* functions to eliminate
6966 ENABLE_CHECKING conditionals.
6967 * sel-sched-ir.c (free_regset_pool, tidy_control_flow): Likewise.
6968 * sel-sched.c (struct moveop_static_params): Likewise.
6969 (find_best_reg_for_expr, move_cond_jump): Likewise.
6970 (move_op_orig_expr_not_found): Likewise.
6971 (code_motion_process_successors, move_op): Likewise.
6972 * ssa-iterators.h (first_readonly_imm_use): Likewise.
6973 (next_readonly_imm_use): Likewise.
6974 * store-motion.c (compute_store_table): Likewise.
6975 * symbol-summary.h (function_summary::function_summary): Likewise.
6976 * target.h (cumulative_args_t): Likewise.
6977 (get_cumulative_args, pack_cumulative_args): Likewise.
6978 * timevar.c: (timer::print): Likewise.
6979 * trans-mem.c (ipa_tm_execute): Likewise.
6980 * tree-cfg.c (move_stmt_op): Likewise.
6981 (move_sese_region_to_fn): Likewise.
6982 (gimple_flow_call_edges_add): Likewise.
6983 * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
6985 * tree-eh.c (remove_unreachable_handlers): Likewise.
6986 * tree-if-conv.c (pass_if_conversion::execute): Likewise.
6987 * tree-inline.c (expand_call_inline, optimize_inline_calls): Likewise.
6988 * tree-into-ssa.c (update_ssa): Likewise.
6989 * tree-loop-distribution.c (pass_loop_distribution::execute): Likewise.
6990 * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees): Likewise.
6991 * tree-parloops.c (pass_parallelize_loops::execute): Likewise.
6992 * tree-predcom.c (suitable_component_p): Likewise.
6993 * tree-profile.c (gimple_gen_const_delta_profiler): Likewise.
6994 * tree-ssa-alias.c (refs_may_alias_p_1): Likewise.
6995 * tree-ssa-live.c (verify_live_on_entry): Likewise.
6996 * tree-ssa-live.h (register_ssa_partition): Likewise.
6997 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Likewise.
6998 * tree-ssa-loop-manip.c (add_exit_phi): Likewise.
6999 (tree_transform_and_unroll_loop): Likewise.
7000 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
7001 * tree-ssa-operands.c (get_expr_operands): Likewise.
7002 * tree-ssa-propagate.c (replace_exp_1): Likewise.
7003 * tree-ssa-structalias.c (rewrite_constraints): Likewise.
7004 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
7005 * tree-ssa-threadupdate.c (duplicate_thread_path): Likewise.
7006 * tree-ssanames.c (release_ssa_name_fn): Likewise.
7007 * tree-stdarg.c (expand_ifn_va_arg): Likewise.
7008 * tree-vect-loop-manip.c
7009 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
7010 (slpeel_checking_verify_cfg_after_peeling): Likewise.
7011 (vect_do_peeling_for_loop_bound): Likewise.
7012 (vect_do_peeling_for_alignment): Likewise.
7013 * tree-vrp.c (supports_overflow_infinity): Likewise.
7014 (set_value_range): Likewise.
7015 * tree.c (free_lang_data_in_cgraph): Likewise.
7016 * value-prof.c (gimple_remove_histogram_value): Likewise.
7017 (free_hist): Likewise.
7018 * var-tracking.c (canonicalize_values_star): Likewise.
7019 (compute_bb_dataflow, vt_find_locations, vt_emit_notes): Likewise.
7021 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
7023 * internal-fn.def (IFN_GOACC_DIM_SIZE, IFN_GOACC_DIM_POS,
7024 IFN_GOACC_LOOP): New.
7025 * internal-fn.h (enum ifn_unique_kind): Add IFN_UNIQUE_OACC_FORK,
7026 IFN_UNIQUE_OACC_JOIN, IFN_UNIQUE_OACC_HEAD_MARK,
7027 IFN_UNIQUE_OACC_TAIL_MARK.
7028 (enum ifn_goacc_loop_kind): New.
7029 * internal-fn.c (expand_UNIQUE): Add IFN_UNIQUE_OACC_FORK,
7030 IFN_UNIQUE_OACC_JOIN cases.
7031 (expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS): New.
7032 (expand_GOACC_LOOP): New.
7033 * target-insns.def (oacc_dim_pos, oacc_dim_size): New.
7034 * omp-low.c: Include gimple-pretty-print.h.
7035 (struct oacc_loop): New.
7036 (enum oacc_loop_flags): New.
7037 (oacc_thread_numbers): New.
7038 (oacc_xform_loop): New.
7039 (new_oacc_loop_raw, new_oacc_loop_outer, new_oacc_loop,
7040 new_oacc_loop_routine, finish_oacc_loop, free_oacc_loop): New,
7041 (dump_oacc_loop_part, dump_oacc_loop, debug_oacc_loop): New,
7042 (oacc_loop_discover_walk, oacc_loop_sibling_nrevers,
7043 oacc_loop_discovery): New.
7044 (oacc_loop_xform_head_tail, oacc_loop_xform_loop,
7045 oacc_loop_process): New.
7046 (oacc_loop_fixed_partitions, oacc_loop_partition): New.
7047 (execute_oacc_device_lower): Discover & process loops. Process
7049 * target.def (goacc.fork_join): Change sense of hook, clarify
7051 * doc/tm.texi: Regenerated.
7053 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
7055 * target-insns.def (oacc_fork, oacc_join): Define.
7056 * target.def (goacc.validate_dims): Adjust doc to avoid warning.
7057 (goacc.fork_join): New GOACC hook.
7058 * targhooks.h (default_goacc_fork_join): Declare.
7059 * omp-low.c (default_goacc_forkjoin): New.
7060 * doc/tm.texi.in (TARGET_GOACC_FORK_JOIN): Add.
7061 * doc/tm.texi: Regenerate.
7063 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
7065 * omp-low.c (oacc_init_rediction_array): New.
7066 (oacc_initialize_reduction_data): Initialize array.
7068 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
7070 * omp-low.c (pass_oacc_device_lower::execute): Ignore errors.
7072 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
7074 * internal-fn.c (expand_UNIQUE): New.
7075 * internal-fn.h (enum ifn_unique_kind): New.
7076 * internal-fn.def (IFN_UNIQUE): New.
7077 * target-insns.def (unique): Define.
7078 * gimple.h (gimple_call_internal_unique_p): New.
7079 * gimple.c (gimple_call_same_target_p): Check internal fn
7081 * tracer.c (ignore_bb_p): Check for IFN_UNIQUE call.
7082 * tree-ssa-threadedge.c
7083 (record_temporary_equivalences_from_stmts): Likewise.
7084 * tree-cfg.c (gmple_call_initialize_ctrl_altering): Likewise.
7086 2015-10-27 Richard Henderson <rth@redhat.com>
7089 * config/i386/i386.c (ix86_cannot_change_mode_class): Disallow
7090 narrowing subregs on SSE and MMX registers.
7091 * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Clarify when subregs that
7092 appear to be sub-words of multi-register pseudos must be rejected.
7093 * doc/tm.texi: Regenerate.
7095 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7098 * config/aarch64/aarch64.md (*movsi_aarch64): Check that
7099 operands[0] is a reg before taking its REGNO in split condition.
7100 (*movdi_aarch64): Likewise.
7102 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7104 * config/aarch64/aarch64.c (aarch64_output_simd_mov_immediate):
7105 Handle floating point inner modes properly.
7107 2015-10-27 Alan Hayward <alan.hayward@arm.com>
7110 (vectorizable_live_operation): Change iterator.
7112 2015-10-27 Abderrazek Zaafrani <a.zaafrani@samsung.com>
7113 Aditya Kumar <aditya.k7@samsung.com>
7115 * graphite-optimize-isl.c (get_schedule_for_node_st): New callback
7116 function to schedule based on isl_schedule_node.
7117 (get_schedule_map_st): New schedule optimizer based on
7119 (scop_get_domains): New. Return the isl_union_set containing the
7120 domains of all the pbbs.
7121 (optimize_isl): Call the new function get_schedule_map_st for isl-0.15
7123 2015-10-27 H.J. Lu <hongjiu.lu@intel.com>
7126 * calls.c (prepare_call_address): Don't handle -fno-plt here.
7127 * config/i386/i386.c (ix86_expand_call): Generate indirect call
7128 via GOT for -fno-plt. Support indirect call via GOT for x32.
7129 * config/i386/predicates.md (sibcall_memory_operand): Allow
7132 2015-10-27 Richard Biener <rguenther@suse.de>
7134 PR tree-optimization/68104
7135 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
7136 strided access check ...
7137 (vect_compute_data_refs_alignment): ... here.
7139 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
7140 Joseph Myers <joseph@codesourcery.com>
7141 Mark Shinwell <shinwell@codesourcery.com>
7142 Andrew Stubbs <ams@codesourcery.com>
7143 Rich Felker <dalias@libc.org>
7145 * config.gcc: Handle --enable-fdpic.
7146 * config/sh/constraints.md (Ccl): New constraint.
7147 * config/sh/linux.h (SUBTARGET_LINK_EMUL_SUFFIX): Handle -mfdpic.
7148 * config/sh/sh-c.c (sh_cpu_cpp_builtins): Add __FDPIC__ and
7150 * config/sh/sh-mem.cc (expand_block_move): Support FDPIC for calls to
7152 * config/sh/sh-protos.h (function_symbol_result): New struct.
7153 (function_symbol): Return function_symbol_result.
7154 (sh_get_fdpic_reg_initial_val, sh_load_function_descriptor): New
7156 * config/sh/sh.c (TARGET_ASM_INTEGER, sh_assemble_integer): Implement
7158 (TARGET_CANNOT_FORCE_CONST_MEM, sh_cannot_force_const_mem_p): Likewise.
7159 (sh_option_override): Force -fPIC if FDPIC is in effect.
7160 (sh_asm_output_addr_const_extra): Add UNSPEC_GOTFUNCDESC and
7161 UNSPEC_GOTOFFFUNCDESC cases.
7162 (prepare_move_operands): Use FDPIC initial GOT register for
7163 TLS-related GOT access; inhibit cross-section address offset constants
7165 (sh_assemble_integer): New function.
7166 (sh_cannot_copy_insn_p): Inhibit copying insns that are FDPIC
7167 PC-relative call sites.
7168 (expand_ashiftrt): Adapt invocation of function_symbol.
7169 (sh_expand_prologue): Inhibit PC-relative GOT address load for FDPIC.
7170 (nonpic_symbol_mentioned_p): Add cases for UNSPEC_GOTFUNCDESC and
7171 UNSPEC_GOTOFFFUNCDESC.
7172 (legitimize_pic_address): Resolve function symbols to function
7173 descriptors for FDPIC. Do not use GOT-relative addressing for local
7174 data that may be read-only on FDPIC.
7175 (sh_emit_storesi, sh_emit_storehi): New functions.
7176 (sh_trampoline_init): Generate FDPIC trampolines.
7177 (sh_function_ok_for_sibcall): Add TARGET_FDPIC check.
7178 (sh_expand_sym_label2reg): Don't assume sibcalls are local.
7179 (sh_output_mi_thunk): Generate FDPIC call.
7180 (function_symbol): Return function_symbol_result. For SFUNC_STATIC on
7181 FDPIC, generate call site labels to use PC-relative addressing rather
7182 than GOT-relative addressing.
7183 (sh_conditional_register_usage): Make PIC register fixed and call used
7184 when FDPIC is in effect.
7185 (sh_legitimate_constant_p): Impose FDPIC constant constraints.
7186 (sh_cannot_force_const_mem_p, sh_load_function_descriptor,
7187 sh_get_fdpic_reg_initial_val): New functions.
7188 * config/sh/sh.h (SUBTARGET_ASM_SPEC, SUBTARGET_LINK_EMUL_SUFFIX):
7190 (FDPIC_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
7191 PIC_OFFSET_TABLE_REG_CALL_CLOBBERED,
7192 SH_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macros.
7193 (DRIVER_SELF_SPECS): Add SUBTARGET_DRIVER_SELF_SPECS and
7195 (TRAMPOLINE_SIZE): Select trampoline size for FDPIC.
7196 (ASM_PREFERRED_EH_DATA_FORMAT): Add EH format constraints for FDPIC.
7197 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Handle FDPIC case.
7198 * config/sh/sh.md (UNSPEC_GOTFUNCDESC, UNSPEC_GOTOFFFUNCDESC): New
7200 (calli_fdpic, call_valuei_fdpic, sibcalli_fdpic, sibcalli_pcrel_fdpic,
7201 sibcall_pcrel_fdpic, sibcall_valuei_fdpic, sibcall_valuei_pcrel_fdpic,
7202 sibcall_value_pcrel_fdpic, sym2GOTFUNCDESC, symGOTFUNCDESC2reg,
7203 sym2GOTOFFFUNCDESC, symGOTOFFFUNCDESC2reg): New patterns.
7204 (udivsi3_i1, udivsi3_i4, udivsi3_i4_single, udivsi3,
7205 *divsi_inv_call_combine, divsi3_i4, divsi3_i4_single, divsi3, ashlsi3,
7206 ashlsi3_d_call, ashrsi3_n, lshrsi3, lshrsi3_d_call, calli, call_valuei,
7207 call, call_value, sibcalli, sibcalli_pcrel, sibcall_pcrel, sibcall,
7208 sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
7209 sibcall_value, GOTaddr2picreg, symGOT_load, symGOTOFF2reg,
7210 block_move_real, block_lump_real, block_move_real_i4,
7211 block_lump_real_i4): Add support for FDPIC calls.
7212 (mulsi3, ic_invalidate_line, initialize_trampoline, call_pop,
7213 call_value_pop): Adjust for new function_symbol signature.
7214 * config/sh/sh.opt (-mfdpic): New option.
7215 * doc/install.texi (Options specification): Document --enable-fdpic.
7216 * doc/invoke.texi (SH Options): Document -mfdpic.
7219 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
7221 PR tree-optimization/65963
7222 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
7223 LSHIFT_EXPRs as equivalent MULT_EXPRs.
7225 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7228 * config/arm/arm.c (vfp3_const_double_for_bits): Rewrite.
7229 * config/arm/constraints.md (Dp): Update callsite.
7230 * config/arm/predicates.md (const_double_vcvt_power_of_two): Likewise.
7232 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
7234 * builtins.c (fold_builtin_load_exponent): Rename to...
7235 (fold_const_builtin_load_exponent): ...this and only handle
7237 (fold_builtin_2): Update accordingly.
7238 * match.pd: Add rules previously handled by fold_builtin_load_exponent.
7240 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
7242 * builtins.c (fold_builtin_logb): Rename to...
7243 (fold_const_builtin_logb): ...this and remove STRIP_NOPS call.
7244 (fold_builtin_significand): Rename to...
7245 (fold_const_builtin_significand): ...this and remove STRIP_NOPS call.
7246 (fold_builtin_1): Update accordingly.
7248 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
7250 * builtins.c (fold_builtin_fmin_fmax): Delete.
7251 (fold_builtin_2): Handle constant fmin and fmax arguments here.
7252 * match.pd: Add rules previously handled by fold_builtin_fmin_fmax.
7254 2015-10-27 Evandro Menezes <e.menezes@samsung.com>
7256 * config/aarch64/aarch64-protos.h (cpu_addrcost_table): Split member
7257 for register extension into sign and zero register extension.
7258 * config/aarch64/aarch64.c (generic_addrcost_table): Infer values
7259 for sign and zero register extension.
7260 (cortexa57_addrcost_table): Likewise.
7261 (xgene1_addrcost_table): Likewise.
7263 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
7265 * fold-const.c (fold_minmax): Delete.
7266 (fold_binary_loc): Don't call it.
7267 * match.pd: Add rules previously handled by fold_minmax.
7269 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
7271 * builtins.c (fold_builtin_fma): Remove constant handling.
7272 (fold_builtin_3): Handle constant fma arguments here.
7274 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
7276 * builtins.c (fold_builtin_fabs): Remove constant handling.
7277 (fold_builtin_abs): Likewise.
7279 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
7281 * builtins.c (fold_builtin_copysign): Delete.
7282 (fold_builtin_2): Handle constant copysign arguments here.
7283 * match.pd: Add rules previously handled by fold_builtin_copysign.
7285 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
7287 * builtins.c (fold_builtin_signbit): Delete.
7288 (fold_builtin_2): Handle constant signbit arguments here.
7289 * match.pd: Add rules previously handled by fold_builtin_signbit.
7291 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
7293 * match.pd: Handle sqrt(x) cmp 0 specially.
7295 2015-10-27 Ilya Enkovich <enkovich.gnu@gmail.com>
7297 * tree-vect-generic.c (expand_vector_operations_1): Check
7298 optab type before using it.
7300 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7302 * config/aarch64/aarch64-protos.h
7303 (struct tune_params): Add autoprefetcher_model field.
7304 * config/aarch64/aarch64.c: Include params.h
7305 (generic_tunings): Specify autoprefetcher_model value.
7306 (cortexa53_tunings): Likewise.
7307 (cortexa57_tunings): Likewise.
7308 (cortexa72_tunings): Likewise.
7309 (thunderx_tunings): Likewise.
7310 (xgene1_tunings): Likewise.
7311 (aarch64_first_cycle_multipass_dfa_lookahead_guard): New function.
7312 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
7313 (aarch64_override_options_internal): Set
7314 PARAM_SCHED_AUTOPREF_QUEUE_DEPTH param.
7316 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
7318 * builtins.c (fold_builtin_exponent): Delete.
7319 (fold_builtin_2): Handle constant expN arguments here.
7320 * match.pd: Fold expN(logN(x)) -> x.
7322 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
7324 * builtins.c (fold_builtin_powi): Delete.
7325 (fold_builtin_2): Handle constant powi arguments here.
7326 * match.pd: Add rules previously handled by fold_builtin_powi.
7328 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
7330 * builtins.c (fold_builtin_pow): Delete in favor of...
7331 (fold_const_builtin_pow): ...this new function. Only handle constant
7333 (fold_builtin_2): Update accordingly.
7334 * match.pd: Add rules previously handled by fold_builtin_pow.
7336 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
7338 * builtins.c (fold_builtin_hypot): Delete.
7339 (fold_builtin_2): Handle constant hypot arguments here.
7340 * match.pd: Fold hypot(x, 0) and hypot(0, x) to x. Canonicalize
7341 hypot(x, x) to fabs(x)*sqrt(2).
7343 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
7345 * gimple-match-head.c (maybe_push_res_to_seq): Use create_tmp_reg
7346 instead of make_ssa_name if not yet in SSA form.
7348 2015-10-27 Richard Biener <rguenther@suse.de>
7350 * cfg.c (free_edge): Add function argument and use it instead of cfun.
7351 (clear_edges): Likewise.
7352 * cfg.h (clear_edges): Adjust prototype.
7353 * cfgexpand.c (pass_expand::execute): Adjust.
7354 * cfgloop.c (release_recorded_exits): Add function argument and use
7356 * cfgloop.h (release_recorded_exits): Adjust prototype.
7357 (loops_state_satisfies_p): Add overload with function argument.
7358 (loops_state_set): Likewise.
7359 (loops_state_clear): Likewise.
7360 (struct loop_iterator): Add function argument to constructor
7361 and iterator and use it instead of cfun.
7362 (FOR_EACH_LOOP_FN): New macro.
7363 (loop_optimizer_finalize): Add overload with function argument.
7364 * loop-init.c (loop_optimizer_init): Adjust.
7365 (fix_loop_structure): Likewise.
7366 (loop_optimizer_finaliz): Add function argument and use it
7368 * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
7369 * tree-cfg.h (delete_tree_cfg_annotations): Adjust prototype.
7370 * cgraph.c (release_function_body): Do not push/pop cfun.
7371 * final.c (rest_of_clean_state): Adjust.
7372 * graphite.c (graphite_finalize): Likewise.
7373 * tree-ssa-copy.c (fini_copy_prop): Likewise.
7374 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
7375 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
7376 (tree_unroll_loops_completely): Likewise.
7377 (pass_complete_unrolli::execute): Likewise.
7378 * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates):
7379 Add function argument and use it instead of cfun.
7380 * tree-ssa-loop-niter.h (free_numbers_of_iterations_estimates):
7382 * tree-ssa-loop.c (tree_ssa_loop_done): Adjust.
7383 * tree-ssa.c (delete_tree_ssa): Add function argument and use it
7385 * tree-ssa.h (delete_tree_ssa): Adjust prototype.
7386 * tree-ssanames.c (fini_ssanames): Add function argument and use it
7388 * tree-ssanames.c (fini_ssanames): Adjust prototype.
7389 * tree-vrp.c (execute_vrp): Adjust.
7390 * value-prof.c (free_histograms): Add function argument and use it
7392 * value-prof.h (free_histograms): Adjust prototype.
7394 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
7396 * tree.h (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES)
7397 (OACC_KERNELS_BODY, OACC_KERNELS_CLAUSES, OACC_KERNELS_COMBINED)
7398 (OACC_PARALLEL_COMBINED): Don't define macros. Adjust all users.
7400 2015-10-27 Tom de Vries <tom@codesourcery.com>
7402 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add and use var
7405 2015-10-27 Bin Cheng <bin.cheng@arm.com>
7407 * loop-invariant.c (struct def): New field can_prop_to_addr_uses.
7408 (inv_can_prop_to_addr_use): New function.
7409 (record_use): Call can_prop_to_addr_uses, set the new field.
7410 (get_inv_cost): Count cost if inv can't be propagated into its
7413 2015-10-26 Doug Evans <dje@google.com>
7415 * config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
7417 2015-10-26 Eric Botcazou <ebotcazou@adacore.com>
7419 * match.pd (fold_widened_comparison): Apply simplifications to all
7422 2015-10-26 Simon Dardis <simon.dardis@imgtec.com>
7424 * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook.
7425 * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document.
7426 * doc/tm.texi: Regenerated.
7427 * reorg.c (dbr_schedule): Use new hook.
7428 * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New.
7430 2015-10-26 Jeff Law <law@redhat.com>
7432 PR tree-optimization/68013
7433 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
7434 Make sure the first block in the path is in VISITED_BBs.
7436 2015-10-26 Richard Biener <rguenther@suse.de>
7437 Dominik Vogt <vogt@linux.vnet.ibm.com>
7440 * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
7441 Properly prune ref->ref for accesses outside of ref.
7443 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
7445 * gimple-fold.c (replace_stmt_with_simplification): Don't allow
7446 new statements to be inserted if inplace. Allow calls to have
7449 2015-10-26 Richard Biener <rguenther@suse.de>
7451 * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
7452 (do_valueize): New function.
7453 (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
7455 * tree-ssa-threadedge.c: Remove builtins.h include, include
7457 (fold_assignment_stmt): Remove.
7458 (threadedge_valueize): New function.
7459 (record_temporary_equivalences_from_stmts): Use
7460 gimple_fold_stmt_to_constant_1, note additional cleanup
7463 2015-10-26 Richard Biener <rguenther@suse.de>
7465 * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
7466 ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
7468 2015-10-26 Alan Hayward <alan.hayward@arm.com>
7470 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
7471 VEC_COND_EXPR types.
7473 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7475 * auto-inc-dec.c (insert_move_insn_before): Delete.
7476 (attempt_change): Remember to cost the simple move in the
7477 FORM_PRE_ADD and FORM_POST_ADD cases.
7479 2015-10-26 Kaz Kojima <kkojima@gcc.gnu.org>
7482 * config/sh/sh.c (sh_vector_mode_supported_p): Use
7483 TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
7485 2015-10-26 Tom de Vries <tom@codesourcery.com>
7487 * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
7489 (intra_create_variable_infos): ... here.
7491 2015-10-26 Tom de Vries <tom@codesourcery.com>
7493 * tree-ssa-structalias.c (intra_create_variable_infos): Add
7494 restrict_pointer_p and recursive_restrict_p variables.
7496 2015-10-26 Tom de Vries <tom@codesourcery.com>
7498 * tree-ssa-structalias.c (intra_create_variable_infos): Inline
7499 get_vi_for_tree call.
7501 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7504 * optabs.c (expand_atomic_compare_and_swap): Handle case when
7505 ptarget_oval or ptarget_bool are const0_rtx.
7507 2015-10-26 Christian Bruel <christian.bruel@st.com>
7509 * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
7510 * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
7511 * cp/method.c (implicitly_declare_fn): Likewise.
7512 * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
7513 * java/class.c (add_method_1): Likewise.
7515 2015-10-26 Richard Biener <rguenther@suse.de>
7517 * alloc-pool.h (base_pool_allocator): Use placement new.
7518 (base_pool_allocator::remove): Likewise. Compute size outside of
7521 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
7523 * builtins.c (do_real_to_int_conversion): New function.
7524 (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
7525 (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
7527 * match.pd: Add rules previously handled by fold_fixed_mathfn
7528 and fold_builtin_int_roundingfn.
7530 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
7532 * match.pd: Use macros to define built-in operator lists.
7534 2015-10-20 Richard Sandiford <richard.sandiford@arm.com>
7535 Richard Biener <rguenther@suse.de>
7537 * genmatch.c (dt_simplify::gen): Skip captures that are
7539 (parser::parse_expr): Allow captures in results too.
7540 * builtins.c (fold_builtin_cexp): Delete.
7541 (fold_builtin_1): Handle constant cexp arguments here.
7542 * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
7544 2015-10-26 Mikhail Maltsev <maltsevm@gmail.com>
7546 * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
7547 conditional compilation.
7548 (base_pool_allocator::remove): Use flag_checking.
7550 2015-10-25 John David Anglin <danglin@gcc.gnu.org>
7552 * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
7555 * dojump.c (do_compare_and_jump): Canonicalize both function and
7558 2015-10-25 Uros Bizjak <ubizjak@gmail.com>
7561 * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
7564 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
7567 * ipa-polymorphic-call.c
7568 (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
7569 instance offset with offset of outer type.
7571 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
7573 * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
7575 2015-10-23 Caroline Tice <cmtice@google.com>
7577 (from Richard Biener
7578 * tree.c (int_cst_hasher::hash): Replace XOR with more efficient
7579 call to iterative_hash_host_wide_int.
7581 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
7583 * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
7586 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
7588 * tree-vect-generic.c (expand_vector_operations_1): Check
7589 optab exists before use it.
7591 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
7593 * tree-vect-generic.c (expand_vector_condition): Avoid
7594 uninitialized variable warning.
7596 2015-10-23 Jeff Law <law@redhat.com>
7598 * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
7600 (execute_todo): Call it here.
7601 * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
7603 (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
7605 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
7606 Szabolcs Nagy <szabolcs.nagy@arm.com>
7608 * config.gcc (enable_secureplt): Add *-linux*-musl*.
7610 2015-10-23 Jeff Law <law@redhat.com>
7612 PR tree-optimization/67830
7613 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
7614 Explicitly verify the mask has no bits outside the type of
7615 the innermost operands.
7617 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
7618 Szabolcs Nagy <szabolcs.nagy@arm.com>
7620 * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
7621 (MUSL_DYNAMIC_LINKER64): Define.
7622 (GNU_USER_DYNAMIC_LINKER32): Update.
7623 (GNU_USER_DYNAMIC_LINKER64): Update.
7624 (CHOOSE_DYNAMIC_LINKER): Update.
7626 * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
7627 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
7628 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
7629 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
7630 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
7631 (CHOOSE_DYNAMIC_LINKER): Update.
7632 (INCLUDE_DEFAULTS): Redefine.
7634 * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
7636 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
7638 * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
7639 comparing addresses.
7641 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
7643 * fold-const.c (operand_equal_p): Handle matching of vector
7646 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
7648 * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
7650 2015-10-23 Steve Ellcey <sellcey@imgtec.com>
7651 Andrew Pinski <apinski@cavium.com>
7653 PR rtl-optimization/67736
7654 * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
7657 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
7660 * tree.c (build_truth_vector_type): Support BLK mode
7661 returned for boolean vector.
7663 2015-10-23 Alan Hayward <alan.hayward@arm.com>
7665 PR tree-optimization/65947
7667 (vect_is_simple_reduction_1): Find condition reductions.
7668 (vect_model_reduction_cost): Add condition reduction costs.
7669 (get_initial_def_for_reduction): Add condition reduction initial var.
7670 (vect_create_epilog_for_reduction): Add condition reduction epilog.
7671 (vectorizable_reduction): Condition reduction support.
7672 * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
7673 * doc/sourcebuild.texi (Vector-specific attributes): Document
7676 2015-10-23 Richard Biener <rguenther@suse.de>
7678 * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
7681 2015-10-23 Richard Biener <rguenther@suse.de>
7682 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7684 * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
7685 into (A ^ B) - B to match.pd
7686 Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
7688 * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
7690 (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
7692 (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
7694 (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
7696 (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
7697 INTEGER_CST@1)): New simplifier.
7699 2015-10-23 Richard Sandiford <richard.sandiford@arm.com>
7701 * builtins.c (integer_valued_real_p): Move to fold-const.c.
7702 (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
7703 (fold_builtin_ceil, fold_builtin_round): Delete.
7704 (fold_builtin_1): Handle constant trunc, floor, ceil and round
7706 * convert.c (convert_to_real): Remove narrowing of rounding
7708 * fold-const.h (integer_valued_real_unary_p)
7709 (integer_valued_real_binary_p, integer_valued_real_call_p)
7710 (integer_valued_real_single_p, integer_valued_real_p): Declare.
7711 * fold-const.c (tree_single_nonnegative_warnv_p): Move
7712 name_registered_for_update_p check to SSA_NAME case statement.
7713 Don't call tree_simple_nonnegative_warnv_p for SSA names.
7714 (integer_valued_real_unary_p, integer_valued_real_binary_p)
7715 (integer_valued_real_call_p, integer_valued_real_single_p)
7716 (integer_valued_real_invalid_p): New functions.
7717 (integer_valued_real_p): Move from fold-const.c and rework
7718 to call the functions above. Handle SSA names.
7719 * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
7720 * gimple-fold.c (gimple_assign_integer_valued_real_p)
7721 (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
7722 (gimple_stmt_integer_valued_real_p): New functions.
7723 * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
7724 Fold f(x)->x for the same f if x is known to be integer-valued.
7725 Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
7726 the result. Canonicalize floor(x) as trunc(x) if x is
7729 2015-10-23 Tom de Vries <tom@codesourcery.com>
7731 * tree-ssa-structalias.c (intra_create_variable_infos): Use
7732 make_constraint_from.
7734 2015-10-23 Tom de Vries <tom@codesourcery.com>
7736 * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
7737 setting of is_full_var in case of a single field.
7739 2015-10-22 Martin Sebor <msebor@redhat.com>
7742 * config/i386/i386.opt: Add missing periods to the ends of sentences.
7743 * config/msp430/msp430.opt: Same.
7745 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
7747 * doc/extend.exp (Global Register Variables): Rewrite.
7749 2015-10-22 Jeff Law <law@redhat.com>
7751 * genattrtab.c (main): If we do not have any annul-true or annul-false
7752 slots, then write out a dummy eligible_for_annul_true or
7753 eligible_for_annul_false as needed.
7755 2015-10-22 Nick Clifton <nickc@redhat.com>
7757 * config/msp430/msp430.opt: Add -msilicon-errata and
7758 -msilicon-errata-warn.
7759 * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
7761 * doc/invoke.texi: Document new options.
7763 2015-10-22 Richard Biener <rguenther@suse.de>
7765 PR tree-optimization/58497
7766 * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
7767 (expand_vector_operations_1): Use it. Lower operations on
7768 all uniform vectors to scalar operations if the HW supports it.
7770 2015-10-22 Richard Biener <rguenther@suse.de>
7772 PR tree-optimization/19049
7773 PR tree-optimization/65962
7774 * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
7775 to strided accesses if single-element interleaving doesn't work.
7777 2015-10-22 Richard Biener <rguenther@suse.de>
7781 * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
7782 (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
7783 (expand_unop): Likewise.
7785 2015-10-22 Richard Biener <rguenther@suse.de>
7787 * fold-const.c (fold_addr_of_array_ref_difference): Properly
7788 convert operands before folding a MINUS_EXPR.
7789 (fold_binary_loc): Move simplification of MINUS_EXPR on
7790 converted POINTER_PLUS_EXPRs ...
7791 * match.pd: ... here.
7793 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
7795 * builtins.c (fold_builtin_tan): Delete.
7796 (fold_builtin_1): Handle constant tan arguments here.
7797 * match.pd: Simplify (tan (atan x)) to x.
7799 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
7801 * builtins.c (fold_builtin_cproj): Delete.
7802 (fold_builtin_1): Handle constant arguments here.
7803 (build_complex_cproj): Move and rename to...
7804 * tree.c: (build_complex_inf): ...this.
7805 * tree.h (build_complex_inf): Declare.
7806 * match.pd: Fold cproj(x)->x if x has no infinity.
7807 Use build_complex_inf for existing cproj rules.
7809 2015-10-22 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7812 * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
7813 already have a comparison result.
7815 2015-10-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7818 * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
7819 (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
7820 (aarch64_classify_address): Likewise.
7821 (aarch64_secondary_reload): Likewise.
7822 (aarch64_override_options_after_change_1): Adjust.
7823 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
7824 Use aarch64_nopcrelative_literal_loads.
7825 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
7826 * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
7829 2015-10-21 Martin Sebor <msebor@redhat.com>
7832 * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
7833 (print_filtered_help): Reference aliased option's name and encourage
7834 readers to use it in preference to the alias if the former is not
7835 documented. Mention when using an option is diagnosed.
7836 * gcc.c (display_help): End each sentence with a period.
7838 * common.opt: End each sentence that describes an option with
7840 * config/aarch64/aarch64.opt: Same.
7841 * config/alpha/alpha.opt: Same.
7842 * config/arc/arc.opt: Same.
7843 * config/arm/arm.opt: Same.
7844 * config/avr/avr.opt: Same.
7845 * config/bfin/bfin.opt: Same.
7846 * config/c6x/c6x.opt: Same.
7847 * config/cr16/cr16.opt: Same.
7848 * config/cris/cris.opt: Same.
7849 * config/cris/linux.opt: Same.
7850 * config/darwin.opt: Same.
7851 * config/epiphany/epiphany.opt: Same.
7852 * config/fr30/fr30.opt: Same.
7853 * config/frv/frv.opt: Same.
7854 * config/ft32/ft32.opt: Same.
7855 * config/g.opt: Same.
7856 * config/h8300/h8300.opt: Same.
7857 * config/i386/cygming.opt: Same.
7858 * config/i386/djgpp.opt: Same.
7859 * config/i386/i386.opt: Same.
7860 * config/i386/interix.opt: Same.
7861 * config/i386/mingw-w64.opt: Same.
7862 * config/i386/mingw.opt: Same.
7863 * config/ia64/ia64.opt: Same.
7864 * config/ia64/ilp32.opt: Same.
7865 * config/iq2000/iq2000.opt: Same.
7866 * config/linux.opt: Same.
7867 * config/lm32/lm32.opt: Same.
7868 * config/lynx.opt: Same.
7869 * config/m32c/m32c.opt: Same.
7870 * config/m32r/m32r.opt: Same.
7871 * config/m68k/ieee.opt: Same.
7872 * config/m68k/m68k.opt: Same.
7873 * config/mcore/mcore.opt: Same.
7874 * config/mep/mep.opt: Same.
7875 * config/microblaze/microblaze.opt: Same.
7876 * config/mips/mips.opt: Same.
7877 * config/mmix/mmix.opt: Same.
7878 * config/mn10300/mn10300.opt: Same.
7879 * config/moxie/moxie.opt: Same.
7880 * config/msp430/msp430.opt: Same.
7881 * config/nios2/elf.opt: Same.
7882 * config/nios2/nios2.opt: Same.
7883 * config/nvptx/nvptx.opt: Same.
7884 * config/pa/pa-hpux.opt: Same.
7885 * config/pa/pa-hpux1010.opt: Same.
7886 * config/pa/pa-hpux1111.opt: Same.
7887 * config/pa/pa-hpux1131.opt: Same.
7888 * config/pa/pa.opt: Same.
7889 * config/pa/pa64-hpux.opt: Same.
7890 * config/pdp11/pdp11.opt: Same.
7891 * config/rl78/rl78.opt: Same.
7892 * config/rs6000/476.opt: Same.
7893 * config/rs6000/aix64.opt: Same.
7894 * config/rs6000/darwin.opt: Same.
7895 * config/rs6000/linux64.opt: Same.
7896 * config/rs6000/rs6000.opt: Same.
7897 * config/rs6000/sysv4.opt: Same.
7898 * config/s390/s390.opt: Same.
7899 * config/s390/tpf.opt: Same.
7900 * config/sh/sh.opt: Same.
7901 * config/sol2.opt: Same.
7902 * config/sparc/long-double-switch.opt: Same.
7903 * config/sparc/sparc.opt: Same.
7904 * config/spu/spu.opt: Same.
7905 * config/stormy16/stormy16.opt: Same.
7906 * config/tilegx/tilegx.opt: Same.
7907 * config/tilepro/tilepro.opt: Same.
7908 * config/v850/v850.opt: Same.
7909 * config/vax/vax.opt: Same.
7910 * config/visium/visium.opt: Same.
7911 * config/vms/vms.opt: Same.
7912 * config/vxworks.opt: Same.
7913 * config/xtensa/xtensa.opt: Same.
7915 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
7916 Sebastian Pop <s.pop@samsung.com>
7918 * graphite-scop-detection.c (parameter_index_in_region): Update call to
7919 invariant_in_sese_p_rec.
7920 * graphite-sese-to-poly.c (extract_affine): Same.
7921 * sese.c (invariant_in_sese_p_rec): Pass in an extra
7922 parameter has_vdefs.
7923 (scalar_evolution_in_region): Return chrec_dont_know when the scalar
7924 variable depends on virtual definitions in the current region.
7925 * sese.h (invariant_in_sese_p_rec): Update declaration.
7927 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
7928 Sebastian Pop <s.pop@samsung.com>
7930 * graphite-scop-detection.c (build_scops): Do not handle scops
7931 with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
7932 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
7934 2015-10-21 Mikhail Maltsev <maltsevm@gmail.com>
7936 * config.in: Regenerate.
7937 * configure: Regenerate.
7938 * configure.ac (CHECKING_P): Define.
7939 * system.h: Use CHECKING_P.
7941 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
7944 * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
7945 is negative we don't know the type.
7946 (check_stmt_for_type_change): Skip constructors of non-polymorphic
7947 types as those won't help devirutalization.
7949 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
7951 * fold-const.c (operand_equal_p): Add code matching empty constructors.
7953 2015-10-21 Eric Botcazou <ebotcazou@adacore.com>
7955 * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
7957 (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
7958 Add comments on sign of the result.
7959 * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
7960 Recurse on operand #1 instead of operand #0.
7961 <CEIL_MOD_EXPR>: Do not recurse.
7962 <ROUND_MOD_EXPR>: Likewise.
7964 2015-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7966 * cfgrtl.c (pass_free_cfg::execute): Adjust.
7967 * final.c (dbr_sequence_length): Always define.
7968 (shorten_branches): Adjust.
7969 * genattr-common.c (main): Always define DELAY_SLOTS.
7970 * genattr.c (main): Unconditionally declare functions and define
7971 macros related to delay slots.
7972 * genattrtab.c (write_eligible_delay): Adjust.
7973 (main): Always write out delay slot functions.
7974 * opts.c (default_options_table): Adjust.
7975 * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
7976 (redirect_with_delay_list_safe_p): Likewise.
7977 (fill_simple_delay_slots): Likewise.
7978 (fill_slots_from_thread): Likewise.
7979 (make_return_insns): Likewise.
7980 (dbr_schedule): Likewise.
7981 (rest_of_handle_delay_slots): Likewise.
7982 (pass_delay_slots::gate): Likewise.
7983 * toplev.c (process_options): Likewise.
7985 2015-10-21 Richard Henderson <rth@redhat.com>
7987 * targhooks.c (default_addr_space_pointer_mode): Remove check
7988 for generic address space.
7989 (default_addr_space_address_mode): Likewise.
7990 (default_addr_space_valid_pointer_mode): Likewise.
7991 (default_addr_space_legitimate_address_p): Likewise.
7992 (default_addr_space_legitimize_address): Likewise.
7993 * target.def (addr_space.pointer_mode): Update documentation
7994 of default behavior.
7995 (addr_space.address_mode): Likewise.
7998 * expr.c (expand_expr_real_2): Use convert_modes on disjoint
8001 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
8003 * builtins.c (fold_builtin_cabs): Delete.
8004 (fold_builtin_1): Update accordingly. Handle constant arguments here.
8005 * match.pd: Add rules previously handled by fold_builtin_cabs.
8007 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
8009 * fold-const.h (fold_strip_sign_ops): Delete.
8010 * fold-const.c (fold_strip_sign_ops): Likewise.
8011 (fold_unary_loc, fold_binary_loc): Remove calls to it.
8012 * builtins.c (fold_builtin_cos, fold_builtin_cosh)
8013 (fold_builtin_ccos): Delete.
8014 (fold_builtin_pow): Don't call fold_strip_sign_ops.
8015 (fold_builtin_hypot, fold_builtin_copysign): Likewise.
8016 Remove fndecl argument.
8017 (fold_builtin_1): Update calls accordingly. Handle constant
8018 cos, cosh, ccos and ccosh here.
8020 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
8022 * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
8023 * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
8024 * common.opt (fssa-backprop): New option.
8025 * fold-const.h (negate_mathfn_p): Declare.
8026 * fold-const.c (negate_mathfn_p): Make public.
8027 * timevar.def (TV_TREE_BACKPROP): New.
8028 * tree-pass.h (make_pass_backprop): Declare.
8029 * passes.def (pass_backprop): Add.
8030 * gimple-ssa-backprop.c: New file.
8032 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
8033 Sebastian Pop <s.pop@samsung.com>
8035 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
8036 Do not call create_empty_if_region_on_edge when cond_expr is true.
8037 (translate_isl_ast_node_for): Check whether a guard has been generated.
8039 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
8041 * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
8042 (operator=): Removed.
8043 (dr_info): Make alias_set number the last argument with default
8044 value of invalid_alias_set.
8045 * graphite-sese-to-poly.c (build_scop_drs): Update constructor
8047 (rewrite_reductions_out_of_ssa): Iterate only through the
8048 basic blocks which are inside region.
8049 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
8050 * sese.h (struct sese_l): Removed assignment operator.
8051 (split_region_for_bb): Removed dead code.
8053 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
8055 * graphite-poly.h (struct dr_info): Removed conversion constructor.
8056 (struct scop): Renamed scop::region to scop::scop_info
8057 (scop_set_region): Same.
8058 (SCOP_REGION): Removed
8059 (SCOP_CONTEXT): Removed.
8060 (POLY_SCOP_P): Removed.
8061 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
8062 Rename scop->region to scop->scop_info.
8063 (add_parameters_to_ivs_params): Same.
8064 (graphite_regenerate_ast_isl): Same.
8065 * graphite-poly.c (new_scop): Same.
8067 (print_scop_params): Same.
8068 * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
8069 (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
8070 (dot_all_scops_1): Rename scop->region to scop->scop_info.
8071 (scop_detection::nb_pbbs_in_loops): Same.
8072 (find_scop_parameters): Same.
8073 (try_generate_gimple_bb): Same.
8074 (gather_bbs::before_dom_children): Same.
8075 (gather_bbs::after_dom_children): Same.
8076 (build_scops): Same.
8077 * graphite-sese-to-poly.c (build_scop_scattering): Same.
8078 (extract_affine_chrec): Same.
8079 (extract_affine): Same.
8080 (set_scop_parameter_dim): Same.
8081 (build_loop_iteration_domains): Same.
8082 (create_pw_aff_from_tree): Same.
8083 (add_param_constraints): Same.
8084 (build_scop_iteration_domain): Same.
8085 (build_scop_drs): Same.
8086 (analyze_drs_in_stmts): Same.
8087 (insert_out_of_ssa_copy_on_edge): Same.
8088 (rewrite_close_phi_out_of_ssa):Same.
8089 (rewrite_reductions_out_of_ssa):Same.
8090 (handle_scalar_deps_crossing_scop_limits):Same.
8091 (rewrite_cross_bb_scalar_deps):Same.
8092 (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
8093 (build_poly_scop):Same.
8094 (build_alias_set): Use pointer to dr_info.
8095 * graphite.c (print_graphite_scop_statistics):
8096 (graphite_transform_loops):
8097 * sese.h (struct sese_l): Remove conversion constructor.
8099 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
8102 * tree.c (verify_type): Verify that TYPE_MODE match
8103 between TYPE_CANONICAL and type.
8104 * expr.c (store_expr_with_bounds): Revert my previous change.
8105 * expmed.c (store_bit_field_1): Revert prevoius change.
8106 * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
8107 to match for all types.
8109 2015-10-21 Nathan Sidwell <nathan@codesourcery.com>
8111 * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
8114 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
8116 * doc/tm.texi: Regenerated.
8117 * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
8118 * stor-layout.c (layout_type): Use mode to get vector mask size.
8119 * target.def (get_mask_mode): New.
8120 * targhooks.c (default_get_mask_mode): New.
8121 * targhooks.h (default_get_mask_mode): New.
8122 * tree-vect-stmts.c (get_same_sized_vectype): Add special case
8124 * tree.c (MAX_BOOL_CACHED_PREC): New.
8125 (nonstandard_boolean_type_cache): New.
8126 (build_nonstandard_boolean_type): New.
8127 (make_vector_type): Vector mask has no canonical type.
8128 (build_truth_vector_type): New.
8129 (build_same_sized_truth_vector_type): New.
8130 (truth_type_for): Support vector masks.
8131 * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
8132 (build_truth_vector_type): New.
8133 (build_same_sized_truth_vector_type): New.
8134 (build_nonstandard_boolean_type): New.
8135 * tree-cfg.c (verify_gimple_comparison) Require boolean
8136 vector type for vector comparison.
8137 (verify_gimple_assign_ternary): Likewise.
8138 * optabs.c (expand_vec_cond_expr): Accept boolean vector as
8140 * tree-vect-stmts.c (vectorizable_condition): Use boolean
8141 vector type for vector comparison.
8142 * tree-vect-generic.c (elem_op_func): Add new operand to hold
8144 (do_unop): Adjust to modified function type.
8145 (do_binop): Likewise.
8146 (do_plus_minus): Likewise.
8147 (do_negate); Likewise.
8148 (expand_vector_piecewise): Likewise.
8149 (do_cond): Likewise.
8150 (do_compare): Use comparison instead of condition.
8151 (expand_vector_divmod): Use boolean vector type for comparison.
8152 (expand_vector_operations_1): Skip scalar mask operations.
8154 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
8156 * omp-low.c (simd_clone_create): Set in_other_partition
8159 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
8161 * doc/extend.exp (Local Register Variables): Rewrite.
8163 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
8165 * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
8166 and x*x in cases where the operands are sign ops. Extend these
8167 rules to handle copysign as a sign op (including for cos, cosh
8168 and pow, which already treated negate and abs as sign ops).
8170 2015-10-21 Uros Bizjak <ubizjak@gmail.com>
8173 * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
8174 for 64-bit MS_ABI targets also when default incoming stack boundary
8177 2015-10-21 Richard Biener <rguenther@suse.de>
8179 * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
8180 cond stmts, enhanced and split out from ...
8181 (vn_phi_eq): ... here.
8183 2015-10-21 Richard Biener <rguenther@suse.de>
8186 * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
8187 (tree_ssa_name_nonnegative_warnv_p): Fold into ...
8188 (tree_single_nonnegative_warnv_p): ... here. For SSA names
8189 make sure they are not registered for update.
8191 2015-10-21 Richard Biener <rguenther@suse.de>
8193 PR tree-optimization/68026
8194 * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
8195 unsigned VARYING values.
8197 2015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
8199 * asan.c (asan_emit_stack_protection): Don't pass local stack to
8200 asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
8201 NULL and use local stack than.
8202 (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
8203 in addition to __asan_init.
8204 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
8205 (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
8206 * asan.h (asan_intercepted_p): Handle new string builtins.
8207 * ubsan.c (ubsan_use_new_style_p): New function.
8208 (ubsan_instrument_float_cast): If location is unknown, assign
8209 input_location to loc. Propagate loc to ubsan_create_data if
8210 ubsan_use_new_style_p returned true.
8212 2015-10-21 Jeff Law <law@redhat.com>
8214 * Makefile.in (OBJS): Remove sched-vis.c
8215 * sched-vis.c: Removed. Code moved into...
8216 * print-rtl.c: Here. Include cfg.h, pretty-print.h and print-rtl.h.
8217 * rtl.h: Remove prototypes for functions now living in print-rtl.c
8218 * print-rtl.h Add prototypes for new functions in print-rtl.c.
8219 * auto-inc-dec.c: Include print-rtl.h
8220 * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
8221 * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
8223 * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
8226 2015-10-21 Richard Biener <rguenther@suse.de>
8227 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
8229 * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
8231 * doc/implement-c.texi (Integers Implementation): Make GCC's promises
8232 about signed left shift stronger and clarify the cases when they're
8234 Move (a * (1 << b)) is (a << b) to match.pd.
8235 Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
8236 Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
8237 Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
8239 * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
8241 (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
8242 (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
8243 (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
8245 (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
8247 (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
8249 2015-10-21 Gregor Richards <gregor.richards@uwaterloo.ca>
8250 Szabolcs Nagy <szabolcs.nagy@arm.com>
8251 Alan Modra <amodra@gmail.com>
8253 * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
8254 * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
8255 (LINK_SPEC): Add %(link_secure_plt).
8256 (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
8257 * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
8259 2015-10-20 Gregor Richards <gregor.richards@uwaterloo.ca>
8260 Szabolcs Nagy <szabolcs.nagy@arm.com>
8262 * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
8263 (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
8265 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8267 * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
8269 (fusion_load_store): Use it.
8270 * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
8271 ldp and stp in VD modes.
8272 * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
8273 (store_pair<mode>, VD): Likewise.
8275 2015-10-20 Vladimir Makarov <vmakarov@redhat.com>
8277 PR rtl-optimization/67609
8278 * lra-splill.c (lra_final_code_change): Don't remove all
8281 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8283 * simplify-rtx.c (simplify_binary_operation): If either operand was
8284 a constant pool reference use them if all other simplifications failed.
8286 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8288 * config/aarch64/aarch64.md
8289 (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
8290 * config/aarch64/aarch64-simd.md
8291 (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
8292 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
8293 (aarch64_fpconst_pow_of_2): New function.
8294 (aarch64_vec_fpconst_pow_of_2): Likewise.
8295 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
8297 (aarch64_vec_fpconst_pow_of_2): Likewise.
8298 * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
8299 (aarch64_fp_vec_pow2): Likewise.
8301 2015-10-20 Uros Bizjak <ubizjak@gmail.com>
8303 * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
8304 (ALPHA_ARG_SIZE): Ditto. Remove unused NAMED argument.
8305 * config/alpha/alpha.c (alpha_function_arg_advance): Update
8306 ALPHA_ARG_SIZE usage.
8307 (alpha_arg_partial_bytes): Ditto.
8309 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
8312 * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
8313 error_mark_node decls.
8315 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
8319 * common/config/i386/i386-common.c (ix86_handle_option): Remove
8320 OPT_miamcu handling.
8321 * config/i386/i386.c (PTA_NO_80387): New macro.
8322 (processor_alias_table): Add PTA_NO_80387 to lakemont.
8323 (ix86_option_override_internal): Update MASK_80387 from
8324 PTA_NO_80387. Don't warn x87/MMX/SSE/AVX for -miamcu. Warn
8325 SSE math only if 80387 is supported. Don't change
8327 (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
8329 * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
8330 if TARGET_80387 is true and TARGET_IAMCU is false.
8331 (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
8332 is true and TARGET_IAMCU_P is false.
8334 2015-10-20 Richard Biener <rguenther@suse.de>
8336 PR tree-optimization/68017
8337 * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
8339 2015-10-20 Martin Liska <mliska@suse.cz>
8341 * cgraphclones.c (cgraph_node::create_virtual_clone):
8342 Verify cgraph_node.local.versionable instead of calling
8343 tree_versionable_function_p.
8344 * ipa-cp.c (determine_versionability): Save the information
8345 to ipa_node_params summary.
8346 (ipcp_versionable_function_p): Use it.
8347 (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
8348 (ipcp_generate_summary): Do not compute cgraph_node
8350 * ipa-inline-analysis.c (inline_generate_summary): Compute
8351 versionability for all cgraph nodes.
8352 * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
8353 ipa_node_params::versionability.
8354 * ipa-prop.h (struct ipa_node_params): Declare it.
8356 2015-10-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8359 * varasm.c (assemble_variable): Move special vtv handling to..
8360 (handle_vtv_comdat_sections): .. here. New function.
8361 (output_object_block): Handle vtv sections.
8363 2015-10-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
8366 * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
8368 2015-10-20 Arkadiusz Drabczyk <arkadiusz@drabczyk.org>
8370 * doc/extend.texi: Update documentation WRT inline functions.
8372 2015-10-20 Alan Modra <amodra@gmail.com>
8375 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
8376 * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
8377 (TARGET_CAN_SPLIT_STACK_64BIT): Define.
8379 2015-10-19 Pierre-Marie de Rodat <derodat@adacore.com>
8381 PR rtl-optimization/66790
8382 * df.h (DF_MIR): New macro.
8383 (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
8384 (DF_MIR_INFO_BB): New macro.
8385 (DF_MIR_IN, DF_MIR_OUT): New macros.
8386 (struct df_mir_bb_info): New.
8387 (df_mir): New macro.
8388 (df_mir_add_problem, df_mir_simulate_one_insn): New forward
8390 (df_mir_get_bb_info): New.
8391 * df-problems.c (struct df_mir_problem_data): New.
8392 (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
8393 df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
8394 df_mir_confluence_0, df_mir_confluence_n,
8395 df_mir_transfer_function, df_mir_free, df_mir_top_dump,
8396 df_mir_bottom_dump, df_mir_verify_solution_start,
8397 df_mir_verify_solution_end): New.
8399 (df_mir_add_problem, df_mir_simulate_one_insn): New.
8400 * timevar.def (TV_DF_MIR): New.
8401 * ree.c: Include bitmap.h
8402 (add_removable_extension): Add an INIT_REGS parameter. Use it
8403 to skip zero-extensions that may get an uninitialized register.
8404 (find_removable_extensions): Compute must-initialized registers
8405 using the MIR dataflow problem. Update the call to
8406 add_removable_extension.
8407 (find_and_remove_re): Call df_mir_add_problem.
8409 2015-10-19 Segher Boessenkool <segher@kernel.crashing.org>
8411 * common/config/mn10300/mn10300-common.c
8412 (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
8413 Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
8415 2015-10-19 David Wohlferd <dw@LimeGreenSocks.com>
8417 * doc/extend.texi (Explicit Register Variables): Simplify and
8418 avoid unnecessary and confusion abbreviations. Update cross
8420 doc/implement-c.tex: Update cross reference.
8422 2015-10-19 Jeff Law <law@redhat.com>
8424 * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
8425 that create irreducible loops unless the path elimiantes a multiway
8428 2015-10-19 Richard Biener <rguenther@suse.de>
8430 PR tree-optimization/67975
8431 * tree-cfg.h (extract_true_false_controlled_edges): Declare.
8432 * tree-cfg.c (extract_true_false_controlled_edges): Split out
8433 core worker from ...
8434 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
8435 * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
8436 instead of block number for PHIs with two or one args.
8437 (vn_phi_eq): Compare edge predicates of PHIs that are in different
8440 2015-10-19 Richard Biener <rguenther@suse.de>
8442 * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
8443 (gimple_stmt_nonnegative_warnv_p): Use it.
8444 * match.pd (CPROJ): New operator list.
8445 (cproj (complex ...)): Move simplifications from ...
8446 * builtins.c (fold_builtin_cproj): ... here.
8448 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
8450 * config/i386/i386.c (ix86_expand_vector_move): Use
8451 GET_MODE_BITSIZE for IA MCU psABI to get vector natural
8454 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
8456 * doc/invoke.texi: Replace @optindex with @opindex.
8458 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
8461 * config/i386/i386.c (ix86_valid_target_attribute_tree): If
8462 arch= is set, clear all bits in x_ix86_isa_flags, except for
8463 ISA_64BIT, ABI_64, ABI_X32, and CODE16.
8465 2015-10-19 Joost VandeVondele <vondele@gnu.gcc.org>
8468 * common.opt (fkeep-static-functions): New option.
8469 * doc/invoke.texi: Document it.
8470 * cgraphunit.c (cgraph_node::finalize_function): Use it.
8472 2015-10-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8474 * sched-int.h (struct autopref_multipass_data_): Remove offset
8475 field. Add min_offset, max_offset, multi_mem_insn_p fields.
8476 * haifa-sched.c (analyze_set_insn_for_autopref): New function.
8477 (autopref_multipass_init): Use it. Handle PARALLEL sets.
8478 (autopref_rank_data): New function.
8479 (autopref_rank_for_schedule): Use it.
8480 (autopref_multipass_dfa_lookahead_guard_1): Likewise.
8482 2015-10-18 Mikhail Maltsev <maltsevm@gmail.com>
8485 * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
8487 2015-10-18 Iain Sandoe <iain@codesourcery.com>
8489 * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
8490 (HAVE_LD_SYSROOT): New. (SYSROOT_SPEC): New.
8491 (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
8492 (STANDARD_STARTFILE_PREFIX_1): New.
8493 (STANDARD_STARTFILE_PREFIX_2): New.
8495 2015-10-18 Iain Sandoe <iain@codesourcery.com>
8497 * config/darwin-driver.c (darwin_default_min_version): Refactor code.
8498 (darwin_driver_init): Note a version-min when provided on the c/l.
8499 * config/darwin.h (%darwin_minversion): Remove.
8500 * config/i386/darwin.h: Likewise.
8501 * config/rs6000/darwin.h: Likewise.
8502 * config/darwin.opt (mmacosx-version-min=): Use the configured default,
8503 rather than an arbitrary constant.
8505 2015-10-18 Iain Sandoe <iain@codesourcery.com>
8507 * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
8508 PPC, detect conflicts between -arch and multilib settings. Detect
8509 and warn about conflicts between multiple -arch definitions.
8511 2015-10-18 Iain Sandoe <iain@codesourcery.com>
8513 * config/darwin-driver.c: Adjust includes to add diagnostic-core.
8515 2015-10-16 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8517 * lra-constraints.c (add_next_usage_insn): Change argument type
8518 from rtx to rtx_insn *.
8520 2015-10-16 H.J. Lu <hongjiu.lu@intel.com>
8522 * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
8525 2015-10-16 Andrew MacLeod <amacleod@redhat.com>
8527 * config/tilepro/gen-mul-tables.cc: Adjust include files.
8528 * config/tilegx/mul-tables.c: Regenerate.
8529 * config/tilepro/mul-tables.c: Regenerate.
8531 * config/tilegx/tilegx-c.c: Adjust include files.
8532 * config/tilegx/tilegx.c: Likewise.
8533 * config/tilepro/tilepro-c.c: Likewise.
8534 * config/tilepro/tilepro.c: Likewise.
8535 * config/aarch64/aarch64-builtins.c: Likewise.
8536 * config/aarch64/aarch64.c: Likewise.
8537 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
8538 * config/alpha/alpha.c: Likewise.
8539 * config/arc/arc.c: Likewise.
8540 * config/arm/aarch-common.c: Likewise.
8541 * config/arm/arm-builtins.c: Likewise.
8542 * config/arm/arm-c.c: Likewise.
8543 * config/arm/arm.c: Likewise.
8544 * config/avr/avr-c.c: Likewise.
8545 * config/avr/avr-devices.c: Likewise.
8546 * config/avr/avr-log.c: Likewise.
8547 * config/avr/avr.c: Likewise.
8548 * config/bfin/bfin.c: Likewise.
8549 * config/c6x/c6x.c: Likewise.
8550 * config/cr16/cr16.c: Likewise.
8551 * config/cris/cris.c: Likewise.
8552 * config/darwin-c.c: Likewise.
8553 * config/darwin-driver.c: Likewise.
8554 * config/darwin.c: Likewise.
8555 * config/default-c.c: Likewise.
8556 * config/epiphany/epiphany.c: Likewise.
8557 * config/epiphany/mode-switch-use.c: Likewise.
8558 * config/epiphany/resolve-sw-modes.c: Likewise.
8559 * config/fr30/fr30.c: Likewise.
8560 * config/frv/frv.c: Likewise.
8561 * config/ft32/ft32.c: Likewise.
8562 * config/glibc-c.c: Likewise.
8563 * config/h8300/h8300.c: Likewise.
8564 * config/i386/host-cygwin.c: Likewise.
8565 * config/i386/host-mingw32.c: Likewise.
8566 * config/i386/i386-c.c: Likewise.
8567 * config/i386/i386.c: Likewise.
8568 * config/i386/msformat-c.c: Likewise.
8569 * config/i386/winnt-cxx.c: Likewise.
8570 * config/i386/winnt-stubs.c: Likewise.
8571 * config/i386/winnt.c: Likewise.
8572 * config/ia64/ia64-c.c: Likewise.
8573 * config/ia64/ia64.c: Likewise.
8574 * config/iq2000/iq2000.c: Likewise.
8575 * config/lm32/lm32.c: Likewise.
8576 * config/m32c/m32c-pragma.c: Likewise.
8577 * config/m32c/m32c.c: Likewise.
8578 * config/m32r/m32r.c: Likewise.
8579 * config/mcore/mcore.c: Likewise.
8580 * config/mep/mep-pragma.c: Likewise.
8581 * config/mep/mep.c: Likewise.
8582 * config/microblaze/microblaze-c.c: Likewise.
8583 * config/microblaze/microblaze.c: Likewise.
8584 * config/mips/mips-tables.opt
8585 * config/mips/mips.c: Likewise.
8586 * config/mmix/mmix.c: Likewise.
8587 * config/mn10300/mn10300.c: Likewise.
8588 * config/moxie/moxie.c: Likewise.
8589 * config/msp430/msp430-c.c: Likewise.
8590 * config/msp430/msp430.c: Likewise.
8591 * config/nds32/nds32-cost.c: Likewise.
8592 * config/nds32/nds32-fp-as-gp.c: Likewise.
8593 * config/nds32/nds32-intrinsic.c: Likewise.
8594 * config/nds32/nds32-isr.c: Likewise.
8595 * config/nds32/nds32-md-auxiliary.c: Likewise.
8596 * config/nds32/nds32-memory-manipulation.c: Likewise.
8597 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
8598 * config/nds32/nds32-predicates.c: Likewise.
8599 * config/nds32/nds32.c: Likewise.
8600 * config/nios2/nios2.c: Likewise.
8601 * config/nvptx/mkoffload.c: Likewise.
8602 * config/nvptx/nvptx.c: Likewise.
8603 * config/pa/pa.c: Likewise.
8604 * config/pdp11/pdp11.c: Likewise.
8605 * config/rl78/rl78-c.c: Likewise.
8606 * config/rl78/rl78.c: Likewise.
8607 * config/rs6000/host-darwin.c: Likewise.
8608 * config/rs6000/rs6000-c.c: Likewise.
8609 * config/rs6000/rs6000-linux.c: Likewise.
8610 * config/rs6000/rs6000.c: Likewise.
8611 * config/rx/rx.c: Likewise.
8612 * config/s390/s390-c.c: Likewise.
8613 * config/s390/s390.c: Likewise.
8614 * config/sh/sh-c.c: Likewise.
8615 * config/sh/sh-mem.cc: Likewise.
8616 * config/sh/sh.c: Likewise.
8617 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
8618 * config/sh/sh_treg_combine.cc: Likewise.
8619 * config/sol2-c.c: Likewise.
8620 * config/sol2-cxx.c: Likewise.
8621 * config/sol2-stubs.c: Likewise.
8622 * config/sol2.c: Likewise.
8623 * config/sparc/sparc-c.c: Likewise.
8624 * config/sparc/sparc.c: Likewise.
8625 * config/spu/spu-c.c: Likewise.
8626 * config/spu/spu.c: Likewise.
8627 * config/stormy16/stormy16.c: Likewise.
8628 * config/v850/v850-c.c: Likewise.
8629 * config/v850/v850.c: Likewise.
8630 * config/vax/vax.c: Likewise.
8631 * config/visium/visium.c: Likewise.
8632 * config/vms/vms-c.c: Likewise.
8633 * config/vms/vms.c: Likewise.
8634 * config/vxworks.c: Likewise.
8635 * config/winnt-c.c: Likewise.
8636 * config/xtensa/xtensa.c: Likewise.
8638 2015-10-16 Christian Bruel <christian.bruel@st.com>
8641 * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
8642 (FUNCTION_BOUNDARY_P): New macro:
8643 * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
8645 * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
8646 * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
8647 * target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
8648 * function.c (allocate_struct_function): Call
8649 relayout_function hook.
8650 * passes.c (rest_of_decl_compilation): Likewise.
8652 2015-10-16 Christian Bruel <christian.bruel@st.com>
8655 * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
8656 * config/arm/arm.c (arm_option_override_internal): Call
8657 arm_override_options_after_change_1.
8658 (arm_override_options_after_change): New function.
8659 (arm_override_options_after_change_1): Likewise.
8660 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
8662 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
8665 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
8668 2015-10-16 Eric Botcazou <ebotcazou@adacore.com>
8670 * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
8671 argument is an ADDR_EXPR.
8673 2015-10-16 Richard Biener <rguenther@suse.de>
8675 * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
8676 and get rid of force_gimple_operand_gsi.
8677 (gimple_fold_builtin_memory_chk): Likewise.
8678 (gimple_fold_builtin_stxcpy_chk): Likewise.
8679 (rewrite_to_defined_overflow): Likewise.
8680 (gimple_convert_to_ptrofftype): New function.
8681 * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
8683 2015-10-16 Richard Biener <rguenther@suse.de>
8685 * tree-nested.h (build_addr): Adjust prototype.
8686 * tree-nested.c (build_addr): Remove context argument and use
8688 (get_static_chain): Adjust calls to build_addr.
8689 (convert_nl_goto_reference): Likewise.
8690 (convert_tramp_reference_op): Likewise.
8691 (finalize_nesting_tree_1): Likewise.
8692 * value-prof.c (gimple_ic): Likewise.
8693 * gimple-low.c (lower_builtin_setjmp): Likewise.
8694 * tree-parloops.c (take_address_of): Likewise.
8695 (create_call_for_reduction_1): Likewise.
8696 * tree-profile.c (gimple_gen_interval_profiler): Likewise.
8697 (gimple_gen_ic_func_profiler): Likewise.
8699 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
8701 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
8704 2015-10-16 Michael Collison <michael.collison@linaro.org>
8705 Andrew Pinski <andrew.pinski@caviumnetworks.com>
8707 * match.pd ((x < y) && (x < z) -> x < min (y,z),
8708 (x > y) and (x > z) -> x > max (y,z))
8710 2015-10-15 Gregor Richards <gregor.richards@uwaterloo.ca>
8711 Szabolcs Nagy <szabolcs.nagy@arm.com>
8713 * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
8714 (DYNAMIC_LINKER): Renamed to ...
8715 (GLIBC_DYNAMIC_LINKER): This.
8716 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
8718 2015-10-15 Marek Polacek <polacek@redhat.com>
8720 * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
8721 gimple_call_builtin instead of is_gimple_call.
8723 2015-10-15 Richard Biener <rguenther@suse.de>
8725 * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
8727 2015-10-15 Richard Biener <rguenther@suse.de>
8729 * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
8730 * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
8731 * tree-vect-loop.c (get_initial_def_for_induction): Drop
8732 use of force_gimple_operand in favor of gimple_build.
8733 Use vect_get_new_ssa_name.
8734 * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
8735 (vectorizable_mask_load_store): Likewise.
8736 (vectorizable_call): Likewise.
8737 (vectorizable_store): Likewise.
8738 (vectorizable_load): Likewise.
8739 (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
8741 2015-10-15 Richard Sandiford <richard.sandiford@arm.com>
8743 PR tree-optimization/67945
8744 * tree-pass.h (PROP_gimple_opt_math): New property flag.
8745 * generic-match-head.c (canonicalize_math_p): New function.
8746 * gimple-match-head.c: Include tree-pass.h.
8747 (canonicalize_math_p): New function.
8748 * match.pd: Group math built-in rules into simplifications
8749 and canonicalizations. Guard the latter with canonicalize_math_p.
8750 * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
8751 PROP_gimple_opt_math property.
8753 2015-10-15 Marek Polacek <polacek@redhat.com>
8755 PR tree-optimization/67953
8756 * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
8758 2015-10-15 Jiong Wang <jiong.wang@arm.com>
8760 * config.gcc: Recognize "." in architecture base name for AArch64.
8762 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
8764 * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
8766 * config/mips/mips.c (mips_setup_incoming_varargs): Use
8767 ROUND_DOWN to calculate off.
8768 (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
8769 (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
8772 2015-10-14 Eric Botcazou <ebotcazou@adacore.com>
8774 * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
8776 2015-10-14 Peter Bergner <bergner@vnet.ibm.com>
8777 Torvald Riegel <triegel@redhat.com>
8780 * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
8781 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
8782 trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
8783 (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
8784 *trechkpt, *treclaim, *tsr, *ttest): ...to this. Add memory barrier.
8785 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
8786 trechkpt, treclaim, tsr, ttest): New define_expands.
8787 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
8788 __TM_FENCE__ for htm.
8789 * doc/extend.texi: Update documentation for htm builtins.
8791 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
8794 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
8795 REG_CFA_EXPRESSION to aligned SSE stores.
8797 2015-10-14 Jeff Law <law@redhat.com>
8799 * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
8800 num_threaded_edges for successful FSM threads too.
8802 2015-10-14 Richard Biener <rguenther@suse.de>
8804 * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
8805 (vect_is_simple_use_1): Likewise. Make overload of vect_is_simple_use.
8806 (vect_get_vec_def_for_operand): Remove unused parameter.
8807 * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
8808 (vect_create_epilog_for_reduction): Likewise.
8809 (vectorizable_reduction): Likewise.
8810 (vectorizable_live_operation): Likewise.
8811 * tree-vect-patterns.c (type_conversion_p): Likewise.
8812 (vect_recog_vector_vector_shift_pattern): Likewise.
8813 (check_bool_pattern): Likewise.
8814 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
8815 (vect_analyze_slp_cost_1): Likewise.
8816 * tree-vect-stmts.c (process_use): Likewise.
8817 (vect_get_vec_def_for_operand): Do not handle reductions.
8818 (vect_get_vec_defs): Adjust.
8819 (vectorizable_mask_load_store): Likewise.
8820 (vectorizable_call): Likewise.
8821 (vectorizable_simd_clone_call): Likewise.
8822 (vect_get_loop_based_defs): Likewise.
8823 (vectorizable_conversion): Likewise.
8824 (vectorizable_assignment): Likewise.
8825 (vectorizable_shift): Likewise.
8826 (vectorizable_operation): Likewise.
8827 (vectorizable_store): Likewise.
8828 (vectorizable_load): Likewise.
8829 (vect_is_simple_cond): Likewise.
8830 (vectorizable_condition): Likewise.
8831 (vect_is_simple_use): Remove unused parameters.
8832 (vect_is_simple_use_1): Adjust and rename.
8834 2015-10-14 Richard Biener <rguenther@suse.de>
8836 PR tree-optimization/67915
8837 * match.pd: Handle comparisons of addresses of STRING_CSTs.
8838 * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
8839 * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
8840 stmt folding in favor of GIMPLE one.
8842 2015-10-14 Marek Polacek <polacek@redhat.com>
8844 PR tree-optimization/67815
8845 * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
8846 (reassociate_bb): Call it.
8848 2015-10-14 Richard Biener <rguenther@suse.de>
8850 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
8851 Reset info at start.
8852 (vect_analyze_group_access_1): Add debug print.
8853 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
8854 (vect_compute_single_scalar_iteration_cost): ... to this.
8855 (vect_analyze_loop_2): Adjust.
8856 * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
8857 * tree-vectorizer.h: ... here.
8858 (add_stmt_info_to_vec): Remove.
8859 * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
8861 2015-10-14 Dominik Vogt <vogt@linux.vnet.ibm.com>
8863 * targhooks.c (default_target_option_pragma_parse): Do not warn if
8864 called on behalf of "#pragma GCC pop_options".
8866 2015-10-14 Tom de Vries <tom@codesourcery.com>
8868 * cfganal.c (verify_no_unreachable_blocks): New function.
8869 (inverted_post_order_compute) [ENABLE_CHECKING]: Call
8870 verify_no_unreachable_blocks.
8871 cfganal.h (verify_no_unreachable_blocks): Declare.
8873 2015-10-13 Mikhail Maltsev <maltsevm@gmail.com>
8875 * common.opt: Add flag_checking.
8876 * system.h (CHECKING_P): Define.
8878 2015-10-13 Jakub Jelinek <jakub@redhat.com>
8879 Aldy Hernandez <aldyh@redhat.com>
8880 Ilya Verbin <ilya.verbin@intel.com>
8882 * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
8883 BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
8884 BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
8885 BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
8886 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
8887 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
8888 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
8889 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
8890 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
8891 BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
8892 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
8893 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
8894 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
8895 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
8896 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
8897 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
8898 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
8899 (struct cgraph_simd_clone_arg): Adjust comment.
8900 * coretypes.h (struct gomp_ordered): New forward decl.
8901 * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
8902 set critical clauses to it.
8903 (gimple_build_omp_ordered): Return gomp_ordered * instead of
8904 gimple *. Add CLAUSES argument, set ordered clauses to it.
8905 (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
8907 * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
8908 GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
8909 * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP. Add another bit
8910 to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
8911 GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP. Adjust
8912 GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
8913 Add another bit to GF_OMP_TARGET_KIND_MASK mask. Add
8914 GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
8916 GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
8917 (gomp_critical): Add clauses field.
8918 (gomp_ordered): New struct.
8919 (is_a_helper <gomp_ordered *>::test): New inline.
8920 (gimple_build_omp_critical): Add CLAUSES argument.
8921 (gimple_build_omp_ordered): Likewise. Return gomp_ordered *
8922 instead of gimple *.
8923 (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
8924 gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
8925 gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
8926 gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
8928 * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
8929 (dump_gimple_omp_target): Handle enter data and exit data.
8930 (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
8931 (dump_gimple_omp_critical): Print clauses.
8932 (dump_gimple_omp_ordered): New function.
8933 (dump_gimple_omp_task): Handle taskloop.
8934 (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
8936 * gimple-walk.c (walk_gimple_op): Walk clauses on
8937 GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
8938 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
8939 (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
8940 (struct gimplify_omp_ctx): Add loop_iter_var,
8941 target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
8942 and target_firstprivatize_array_bases fields.
8943 (delete_omp_context): Release loop_iter_var.
8944 (gimplify_bind_expr): Handle ORT_NONE.
8945 (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
8946 ORT_COMBINED_TARGET.
8947 (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
8948 OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
8949 (omp_firstprivatize_variable): Handle ORT_NONE. Adjust check for
8950 ORT_TARGET for the addition of ORT_COMBINED_TARGET. Handle
8951 ctx->target_map_scalars_firstprivate.
8952 (omp_add_variable): Handle ORT_NONE. Allow map clause together with
8953 data sharing clauses. For data sharing clause with VLA decl
8954 on omp target/target data don't add firstprivate for the pointer.
8955 Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
8956 (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
8957 the addition of ORT_COMBINED_TARGET.
8958 (omp_notice_variable): Handle ORT_NONE. Adjust check for ORT_TARGET
8959 for the addition of ORT_COMBINED_TARGET. Handle implicit mapping of
8960 pointers as zero length array sections and
8961 ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
8963 (omp_check_private): Handle omp_member_access_dummy_var vars.
8964 (find_decl_expr): New function.
8965 (gimplify_scan_omp_clauses): Add CODE argument. For OMP_CLAUSE_IF
8966 complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
8967 Handle OMP_CLAUSE_GANG separately. Handle
8968 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
8969 clauses. Diagnose linear clause on combined
8970 distribute {, parallel for} simd construct, unless it is the loop
8971 iterator. Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
8972 Handle map clauses with COMPONENT_REF. Initialize
8973 ctx->target_map_scalars_firstprivate,
8974 ctx->target_firstprivatize_array_bases and
8975 ctx->target_map_pointers_as_0len_arrays. Add firstprivate for
8976 linear clause even to target region if combined. Remove
8977 map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
8978 OMP_TARGET_{,ENTER_,EXIT_}DATA. For GOMP_MAP_FIRSTPRIVATE_POINTER
8979 map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
8980 Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}. Handle
8981 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
8982 For linear clause on worksharing loop combined with parallel add
8983 shared clause on the parallel. Handle OMP_CLAUSE_REDUCTION
8984 with MEM_REF OMP_CLAUSE_DECL. Set DECL_NAME on
8985 omp_member_access_dummy_var vars. Add lastprivate clause to outer
8987 (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
8988 If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
8989 GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
8991 (gimplify_adjust_omp_clauses): Add CODE argument. Handle removal
8992 of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
8993 in target body. Handle removal of struct mapping if struct is not
8994 seen in target body. Remove GOMP_MAP_STRUCT map clause on
8995 OMP_TARGET_EXIT_DATA. Adjust check for ORT_TARGET for the
8996 addition of ORT_COMBINED_TARGET. Use GOMP_MAP_FIRSTPRIVATE_POINTER
8997 instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
8998 for VLAs. Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
8999 clause appear together. Handle
9000 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}. Don't remove map
9001 clause if it has map-type-modifier always. Handle
9002 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
9004 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
9005 Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
9007 (gimplify_omp_for): Likewise. Handle OMP_TASKLOOP. Initialize
9008 loop_iter_var. Use OMP_FOR_ORIG_DECLS. Fix handling of lastprivate
9009 iterators in doacross loops.
9010 (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
9011 gimplify_adjust_omp_clauses callers. Use ORT_COMBINED_TARGET
9012 for OMP_TARGET_COMBINED. Adjust check for ORT_TARGET
9013 for the addition of ORT_COMBINED_TARGET.
9014 (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
9015 gimplify_adjust_omp_clauses callers. Handle OMP_TARGET_ENTER_DATA
9016 and OMP_TARGET_EXIT_DATA.
9017 (gimplify_omp_ordered): New function.
9018 (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
9019 OMP_TARGET_EXIT_DATA. Use gimplify_omp_ordered for OMP_ORDERED.
9020 Gimplify clauses on OMP_CRITICAL.
9021 * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
9022 expand_GOMP_SIMD_ORDERED_END): New functions.
9023 * internal-fn.def (GOMP_SIMD_ORDERED_START,
9024 GOMP_SIMD_ORDERED_END): New internal functions.
9025 * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
9026 BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
9027 BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
9028 BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
9029 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
9030 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
9031 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
9032 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
9033 BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
9034 BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
9035 BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
9036 BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
9037 (BUILT_IN_GOMP_TASK): Add INT argument to the end.
9038 (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
9040 (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
9041 GOMP_target_data_41, adjust type.
9042 (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
9043 GOMP_target_update_41, adjust type.
9044 * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
9046 (struct omp_for_data): Add ordered and simd_schedule fields.
9047 (omp_member_access_dummy_var, unshare_and_remap_1,
9048 unshare_and_remap, is_taskloop_ctx): New functions.
9049 (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
9050 (extract_omp_for_data): Handle taskloops and doacross loops
9051 and simd schedule modifier.
9052 (omp_adjust_chunk_size): New function.
9053 (get_ws_args_for): Use it.
9054 (lookup_sfield): Change first argument to splay_tree_key,
9055 add overload with first argument tree.
9056 (maybe_lookup_field): Likewise.
9057 (use_pointer_for_field): Handle omp_member_access_dummy_var.
9058 (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
9059 task_shared_vars, clear TREE_ADDRESSABLE on the copy.
9060 (build_outer_var_ref): Add LASTPRIVATE argument, handle
9061 taskloops and omp_member_access_dummy_var vars.
9062 (build_sender_ref): Change first argument to splay_tree_key,
9063 add overload with first argument tree.
9064 (install_var_field): For mask & 8 use &DECL_UID as key instead
9066 (fixup_child_record_type): Const qualify *.omp_data_i.
9067 (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
9068 C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
9069 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
9070 OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
9071 on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
9072 (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
9073 (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
9075 (add_taskreg_looptemp_clauses): New function.
9076 (scan_omp_parallel): Use it.
9077 (scan_omp_task): Likewise.
9078 (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
9079 For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
9080 (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
9081 and GF_OMP_TARGET_KIND_EXIT_DATA. Formatting fixes. Allow the
9082 sandwiched taskloop constructs. Type check
9083 OMP_CLAUSE_DEPEND_{KIND,SOURCE}. Allow ordered simd inside of simd
9084 region. Diagnose depend(source) or depend(sink:...) on
9085 target constructs or task/taskloop.
9086 (handle_simd_reference): Use get_name.
9087 (lower_rec_input_clauses): Likewise. Ignore all
9088 OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
9089 Allow _LOOPTEMP_ clause on GOMP_TASK. Unshare new_var
9090 before passing it to omp_clause_{default,copy}_ctor. Handle
9091 OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL. Set
9092 lastprivate_firstprivate flag for linear that needs copyin and
9093 copyout. Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
9094 (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
9095 on taskloop lookup decl in outer context. Pass true to
9096 build_outer_var_ref lastprivate argument. Handle
9097 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
9098 outside of outer taskloop for.
9099 (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
9101 (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
9102 GOMP_TASK. Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE. Handle
9103 omp_member_access_dummy_var vars. Handle OMP_CLAUSE_REDUCTION
9104 with MEM_REF OMP_CLAUSE_DECL. Use new lookup_sfield overload.
9105 (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
9106 abstract origin. Handle omp_member_access_dummy_var vars.
9107 (expand_parallel_call): Use expand_omp_build_assign.
9108 (expand_task_call): Handle taskloop construct expansion. Add
9109 REGION argument. Use GOMP_TASK_* defines instead of hardcoded
9110 integers. Add priority argument to GOMP_task* calls. Or in
9111 GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
9113 (expand_omp_build_assign): Add prototype. Add AFTER
9114 argument, if true emit statements after *GSI_P and continue linking.
9115 (expand_omp_taskreg): Adjust expand_task_call caller.
9116 (expand_omp_for_init_counts): Rename zero_iter_bb argument to
9117 zero_iter1_bb and first_zero_iter to first_zero_iter1, add
9118 zero_iter2_bb and first_zero_iter2 arguments, handle computation
9119 of counts even for ordered loops.
9120 (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
9121 (expand_omp_ordered_source, expand_omp_ordered_sink,
9122 expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
9124 (expand_omp_for_generic): Use omp_adjust_chunk_size. Handle linear
9125 clauses on worksharing loop. Handle DOACROSS loop expansion.
9126 (expand_omp_for_static_nochunk): Handle linear clauses on
9127 worksharing loop. Adjust expand_omp_for_init_counts
9129 (expand_omp_for_static_chunk): Likewise. Use omp_adjust_chunk_size.
9130 (expand_omp_simd): Handle addressable fd->loop.v. Adjust
9131 expand_omp_for_init_counts callers.
9132 (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
9134 (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
9135 Handle doacross loops.
9136 (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
9137 GF_OMP_TARGET_KIND_EXIT_DATA. Pass flags and depend arguments to
9138 GOMP_target_{41,update_41,enter_exit_data} libcalls.
9139 (expand_omp): Don't expand ordered depend constructs here, record
9140 ord_stmt instead for later expand_omp_for_generic.
9141 (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
9142 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
9143 clause as stand-alone directive.
9144 (lower_omp_ordered_clauses): New function.
9145 (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
9146 don't lower anything.
9147 (lower_omp_for_lastprivate): Use last _looptemp_ clause
9148 on taskloop for comparison.
9149 (lower_omp_for): Handle taskloop constructs. Adjust OMP_CLAUSE_DECL
9150 and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
9151 expansion for linear adjustments.
9152 (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
9153 (lower_depend_clauses): Assert not seeing sink/source depend kinds.
9154 Set TREE_ADDRESSABLE on array. Change first argument from gimple *
9155 to tree * pointing to the stmt's clauses.
9156 (lower_omp_taskreg): Adjust lower_depend_clauses caller.
9157 (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
9158 and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
9159 GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
9160 map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
9161 clauses. Always use short kind and 8-bit align shift.
9162 (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
9163 (struct lower_omp_regimplify_operands_data): New type.
9164 (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
9166 (lower_omp_1): Use lower_omp_regimplify_operands instead of
9167 gimple_regimplify_operands.
9168 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
9169 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
9170 clause as stand-alone directive.
9171 (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
9172 (simd_clone_mangle): Mangle the various linear kinds
9174 (simd_clone_adjust_argument_types): Handle
9175 SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
9176 (simd_clone_init_simd_arrays): Don't do anything for uval.
9177 (simd_clone_adjust): Handle
9178 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
9179 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
9180 Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
9181 * omp-low.h (omp_member_access_dummy_var): New prototype.
9182 * passes.def (pass_simduid_cleanup): Schedule another copy of the
9183 pass after all optimizations.
9184 * tree.c (omp_clause_code_name): Add entries for
9185 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
9186 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
9187 (omp_clause_num_ops): Likewise. Bump number of OMP_CLAUSE_REDUCTION
9188 arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
9189 (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
9190 OMP_CLAUSE_REDUCTION 5 arguments. Handle
9191 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
9192 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
9194 * tree-core.h (enum omp_clause_linear_kind): New.
9195 (struct tree_omp_clause): Change type of map_kind
9196 from unsigned char to unsigned int. Add subcode.if_modifier
9197 and subcode.linear_kind fields.
9198 (enum omp_clause_code): Add
9199 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
9200 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
9201 (OMP_CLAUSE_REDUCTION): Document
9202 OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
9203 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
9204 * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
9205 (OMP_CRITICAL): Move before OMP_SINGLE. Add OMP_CRITICAL_CLAUSES
9207 (OMP_ORDERED): Move before OMP_SINGLE. Add OMP_ORDERED_CLAUSES
9209 (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
9211 * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
9212 (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
9214 (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
9215 (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
9216 (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
9217 (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
9218 OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
9219 OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
9220 OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
9221 OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
9222 OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
9223 OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
9224 OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
9225 OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
9226 OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
9227 * tree-inline.c (remap_gimple_stmt): Handle clauses on
9228 GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL. For
9229 IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
9230 * tree-nested.c (convert_nonlocal_omp_clauses): Handle
9231 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
9232 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
9233 clauses. Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
9234 (convert_local_omp_clauses): Likewise.
9235 * tree-pretty-print.c (dump_omp_clause): Handle
9236 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
9237 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
9238 clauses. Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
9239 OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
9240 OMP_CLAUSE_DEPEND_{SOURCE,SINK}. Use "delete" for
9241 GOMP_MAP_FORCE_DEALLOC. Handle
9242 GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
9243 (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
9244 and clauses on OMP_ORDERED and OMP_CRITICAL.
9245 * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
9246 Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
9247 (vectorize_loops): Adjust comments.
9248 (pass_simduid_cleanup::execute): Likewise.
9249 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
9250 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
9251 * wide-int.h (wi::gcd): New.
9253 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
9255 * config/i386/i386.c (classify_argument): Use CEIL where applicable.
9256 (ix86_function_arg_advance): Ditto.
9257 (ix86_function_arg): Ditto.
9258 (ix86_gimplify_va_arg): Ditto.
9259 (ix86_class_max_nregs): Ditto.
9260 (inline_memory_move_cost): Ditto.
9261 (ix86_set_reg_reg_cost): Ditto.
9262 * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
9264 2015-10-13 Alexandre Oliva <aoliva@redhat.com>
9267 * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
9269 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
9271 * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
9272 ROUND_UP macro and UNITS_PER_WORD * 2.
9273 * config/sparc/sparc.c (sparc_compute_frame_size):
9274 Use ROUND_UP and ROUND_DOWN macros where applicable.
9275 (function_arg_record_value, function_arg_record_value_1)
9276 (function_arg_record_value_1): Ditto.
9277 (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
9278 alignment to double-word.
9279 (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
9280 (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
9283 2015-10-13 Nikolai Bozhenov <n.bozhenov@samsung.com>
9285 * rtl.h (print_insn): Fix prototype.
9287 2015-10-13 Tom de Vries <tom@codesourcery.com>
9289 * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
9290 -1. Add assert that returned entry matches phi argument.
9291 (parallelize_loops): Move calls to init_stmt_vec_info_vec and
9292 free_stmt_vec_info_vec ...
9293 (gather_scalar_reductions): ... here. Initialize gimple_uids of phis
9296 2014-10-13 Yuri Rumyantsev <ysrumyan@gmail.com>
9298 PR tree-optimization/67909, 67947
9299 * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
9300 really skip the inner loop.
9302 2015-10-13 Jeff Law <law@redhat.com>
9304 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
9305 Allow single block jump threading paths.
9307 2015-10-13 Tom de Vries <tom@codesourcery.com>
9309 PR tree-optimization/67476
9310 * doc/invoke.texi (@item parloops-schedule): New item.
9311 * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
9312 * tree-parloops.c: Include params-enum.h.
9313 (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
9315 2015-10-13 Tom de Vries <tom@codesourcery.com>
9317 * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
9318 * params-enum.h: New file.
9319 * opts.c (handle_param): Handle case that param arg is a string.
9320 * params-list.h: Handle DEFPARAMENUM5 in params.def.
9321 * params.c (find_param): New function, factored out of ...
9322 (set_param_value): ... here.
9323 (param_string_value_p): New function.
9324 * params.h (struct param_info): Add value_names field.
9325 (find_param, param_string_value_p): Declare.
9327 2015-10-13 Tom de Vries <tom@codesourcery.com>
9329 PR tree-optimization/67476
9330 * omp-low.c (expand_omp_for_generic): Handle original loop tree.
9332 2015-10-13 Richard Biener <rguenther@suse.de>
9334 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
9335 the data dependence vector.
9336 (vect_peeling_hash_insert): Get the peeling hash table as argument.
9337 (vect_peeling_hash_get_lowest_cost): Likewise.
9338 (vect_enhance_data_refs_alignment): Adjust.
9339 (struct _vect_peel_info, struct _vect_peel_extended_info,
9340 struct peel_info_hasher): Move from ...
9341 * tree-vectorizer.h: ... here.
9342 (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
9343 (LOOP_VINFO_PEELING_HTAB): Likewise.
9344 (struct _loop_vec_info): Remove min_profitable_iters and
9345 peeling_htab members.
9346 * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
9348 (destroy_loop_vec_info): Adjust.
9349 (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
9350 (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
9351 to estimate alias versioning cost.
9352 * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
9354 2015-10-13 Richard Sandiford <richard.sandiford@arm.com>
9356 * real.h (real_isinteger): Declare.
9357 * real.c (real_isinteger): New function.
9358 * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
9359 if y is an even integer.
9361 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
9364 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
9365 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
9366 counts when these are more informative.
9368 2015-10-12 Jeff Law <law@redhat.com>
9370 * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
9371 (fsm_find_control_stmt_paths): Change name of first argument to
9372 more accurately relfect what it really is. Handle simplification
9373 of GIMPLE_COND after finding a thread path for NAME.
9374 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
9375 nontrivial conditions to be handled by FSM threader.
9376 (thread_through_normal_block): Extract the name to looup via
9377 FSM threader from COND_EXPR.
9379 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
9380 restriction that traced SSA_NAME is a user variable.
9382 2015-10-12 Tom de Vries <tom@codesourcery.com>
9384 PR tree-optimization/67476
9385 * omp-low.c (expand_omp_for_generic): Add missing phis.
9387 2015-10-12 Tom de Vries <tom@codesourcery.com>
9389 PR tree-optimization/67476
9390 * omp-low.c (expand_omp_for_generic): Handle simple latch.
9392 2015-10-12 Christophe Lyon <christophe.lyon@linaro.org>
9394 * config/aarch64/aarch64-simd-builtins.def: Update builtins
9395 tables: add tbl3 and tbx4.
9396 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
9397 (aarch64_tbx4v8qi): New.
9398 * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
9399 (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
9400 Rewrite using builtin functions.
9401 * config/aarch64/iterators.md (UNSPEC_TBX): New.
9403 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
9405 * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
9407 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
9408 Use ROUND_UP and ROUND_DOWN macros where applicable.
9409 (rs6000_darwin64_record_arg_flush): Ditto.
9410 (rs6000_function_arg): Use ROUND_UP to calculate align_words.
9411 (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
9414 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
9416 * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
9417 (AARCH64_ROUND_DOWN): Ditto.
9418 * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
9420 2015-10-12 Richard Biener <rguenther@suse.de>
9423 * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
9424 code that analyzes IVs on each stmt but in a cheaper way avoiding
9427 2015-10-12 Nick Clifton <nickc@redhat.com>
9429 * config/msp430/msp430.c (msp430_mcu_names): Rename to
9430 msp430_mcu_data, add fields for ISA and hardware multiply
9431 support. Import latest data from the devices.csv file.
9432 (msp430_override_option): Use the data from the new array.
9433 (msp430_use_f5_series_hwmult): Likewise.
9434 (use_32bit_hwmult): Likewise.
9435 (msp430_no_hwmult): Likewise.
9436 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
9438 * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
9439 not recognised then no hardware multiply support is assumed and
9440 that only the MSP430 ISA is allowed.
9442 2015-10-12 Richard Biener <rguenther@suse.de>
9444 * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
9446 (vect_analyze_loop_2): ... here.
9448 2015-10-11 Jason Merrill <jason@redhat.com>
9451 * expr.c (store_field): Call store_constructor directly when
9452 storing a CONSTRUCTOR into a target smaller than its type.
9453 Guard against unsafe bitwise copy.
9455 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
9457 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
9458 counts when these are more informative.
9460 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
9462 * tree-profile.c (tree_profiling): Do not clear
9463 pure/const when not instrumenting.
9464 (pass tree_profile): Add dump of symtab.
9466 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
9468 * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
9470 (fold_addr_of_array_ref_difference): Likewise.
9472 2015-10-11 Jeff Law <law@redhat.com>
9474 * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
9475 tree-ssa-threadbackward.c.
9476 (fsm_find_control_statement_thread_paths): Likewise.
9477 (thread_through_normal_block): Break out FSM bits and move them
9478 into a new function in tree-ssa-threadbackward.c. Call new function
9480 Minimize header file usage.
9481 * tree-ssa-threadbackward.h: New file.
9482 * tree-ssa-threadbackward.c: Likewise.
9483 * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
9485 2015-10-11 Uros Bizjak <ubizjak@gmail.com>
9487 * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
9489 2015-10-11 Segher Boessenkool <segher@kernel.crashing.org>
9491 PR rtl-optimization/67864
9492 * bb-reorder (reorder_basic_blocks_simple): Prefer existing
9493 fallthrough edges for conditional jumps. Don't sort candidate
9494 edges if not optimizing for speed.
9496 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9498 * defaults.h (REVERSE_CONDITION): New default definition.
9499 * jump.c (reversed_comparison_code_parts): Adjust.
9501 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9503 * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
9504 check HARD_FRAME_POINTER_IS_ARG_POINTER.
9506 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9508 * defaults.h (FRAME_ADDR_RTX): New default definition.
9509 * builtins.c (expand_builtin_return_addr): Adjust.
9511 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9513 * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
9514 * builtins.c (expand_builtin_return_addr): Adjust.
9516 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9518 * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
9519 * builtins.c (expand_builtin_return_addr): Adjust.
9520 * doc/tm.texi: Likewise.
9521 * doc/tm.texi.in: Likewise.
9522 * except.c (expand_builtin_unwind_init): Likewise.
9524 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9526 * builtins.c (expand_builtin_return_addr): Adjust.
9527 * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
9529 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
9531 * tree.c (type_with_interoperable_signedness): New.
9532 (gimple_canonical_types_compatible_p): Use it.
9533 * tree.h (type_with_interoperable_signedness): Declare
9535 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
9537 * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
9538 and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
9539 when OEP_ADDRESS_OF is se.
9541 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
9542 Sebastian Pop <s.pop@samsung.com>
9544 * graphite-dependences.c (scop_get_dependences): Add dump of the
9545 data dependence graph.
9546 * graphite-poly.c (print_isl_union_map): New.
9547 (debug_isl_union_map): New.
9548 * graphite-poly.h (print_isl_union_map): Declare.
9549 (debug_isl_union_map): Declare.
9551 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
9552 Sebastian Pop <s.pop@samsung.com>
9554 * graphite-poly.c (print_iteration_domain): Remove verbosity.
9555 Remove OpenScop formatting.
9556 (print_iteration_domains): Same.
9557 (debug_iteration_domain): Same.
9558 (debug_iteration_domains): Same.
9561 (dump_gbb_cases): Same.
9562 (dump_gbb_conditions): Same.
9565 (print_pbb_body): Same.
9567 (print_scop_params): Same.
9568 (print_scop_context): Same.
9570 (debug_pbb_domain): Same.
9572 (debug_scop_context): Same.
9574 (debug_scop_params): Same.
9575 * graphite-poly.h: Same.
9576 * graphite.c (graphite_transform_loops): Same.
9578 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9580 * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
9581 call that isn't needed.
9583 2015-10-09 Jeff Law <law@redhat.com>
9585 * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
9586 rather than moving each name to the freelist individually.
9588 2015-10-09 Steve Ellcey <sellcey@imgtec.com>
9590 * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
9591 * frame-header-opt.c: New file.
9592 * config/mips/mips-proto.h (mips_register_frame_header_opt):
9594 * config/mips/mips.c (mips_compute_frame_info): Check
9595 optimize_call_stack flag.
9596 (mips_option_override): Register new frame_header_opt pass.
9597 (mips_frame_info, mips_int_mask, mips_shadow_set,
9598 machine_function): Move these types to...
9599 * config/mips/mips.h: here.
9600 (machine_function): Add does_not_use_frame_header and
9601 optimize_call_stack fields.
9602 * config/mips/t-mips (frame-header-opt.o): Add new make rule.
9603 * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
9605 * config/mips/mips.opt (mframe-header-opt): Add new option.
9607 2015-10-09 Uros Bizjak <ubizjak@gmail.com>
9609 * config/i386/i386.c
9610 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
9611 ROUND_DOWN where applicable.
9613 2015-10-09 Jeff Law <law@redhat.com>
9615 * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
9618 2015-10-09 Renlin Li <renlin.li@arm.com>
9620 * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
9621 operands[0] and operands[2].
9622 (neon_vtrn<mode>_insn): Likewise.
9623 (neon_vzip<mode>_insn): Likewise.
9625 2015-10-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
9627 * match.pd: ((X inner_op C0) outer_op C1) New pattern.
9628 ((X & C2) << C1): Expand to...
9629 (X {&,^,|} C2 << C1): ...This.
9630 ((X & C2) >> C1): Expand to...
9631 (X {&,^,|} C2 >> C1): ...This.
9633 2015-10-09 Alexander Fomin <alexander.fomin@intel.com>
9636 * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
9637 Adjust embedded rounding/SAE specifier position.
9638 (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
9639 (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
9640 (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
9641 (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
9642 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
9644 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
9646 2015-10-09 Martin Jambor <mjambor@suse.cz>
9648 tree-optimization/67794
9649 * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
9650 between types of state,ents but accept original definitions as a
9652 (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
9653 iterate over definitions.
9655 2015-10-09 James Norris <jnorris@codesourcery.com>
9657 * config/rs6000/rs6000.c (rs6000_offload_options): New.
9658 (TARGET_OFFLOAD_OPTIONS): New.
9660 2015-10-09 Alexandre Oliva <aoliva@redhat.com>
9663 * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
9666 * function.c (expand_function_end): Move return value
9667 promotion past the handling of PARALLELs and CONCATs.
9669 PR rtl-optimization/67828
9670 * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
9671 (tree_may_unswitch_on): Don't unswitch on expressions
9672 involving undefined values.
9674 2015-10-09 Richard Biener <rguenther@suse.de>
9676 * genmatch.c (print_operand): Fix formatting.
9677 (dt_node::append_simplify): Warn for multiple simplifiers
9678 that match the same pattern.
9679 * match.pd (log (exp @0)): Remove duplicates.
9681 2015-10-09 Richard Biener <rguenth@suse.de>
9684 * gimple-fold.c (optabs-query.h): Include
9685 (gimple_fold_builtin_memory_op): Allow unaligned stores
9686 when movmisalign_optabs are available.
9688 2015-10-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9691 * config/arm/arm.md (movmisalign<mode>): New.
9692 * config/arm/iterators.md (HSI): New.
9694 2015-10-09 Richard Biener <rguenther@suse.de>
9696 PR tree-optimization/67891
9697 * gimple-match.h (gimple_simplified_result_is_gimple_val):
9699 (gimple_resimplify1): Declare.
9700 (gimple_resimplify2): Likewise.
9701 (gimple_resimplify3): Likewise.
9702 * gimple-match-head.c (gimple_resimplify1): Export.
9703 (gimple_resimplify2): Likewise.
9704 (gimple_resimplify3): Likewise.
9705 (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
9706 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
9707 * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
9708 to avoid creating stmts without VN info.
9710 2015-10-08 Jan Hubicka <hubicka@ucw.cz>
9712 * ipa-icf.c (sem_item::compare_symbol_references): Fix use
9715 2015-10-08 Jeff Law <law@redhat.com>
9717 * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
9718 and release_ssa_name in two places.
9719 (gimple_stringop_fixed_value): Similarly.
9721 * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
9724 * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
9725 unlink_stmt_vdef and release_ssa_name_fn.
9727 * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
9730 2015-10-08 H.J. Lu <hongjiu.lu@intel.com>
9732 * config/i386/i386.c (ix86_compute_frame_layout): Round up the
9733 SSE register save area to 16 bytes only if the incoming stack
9734 boundary is no less than 16 bytes.
9736 2015-10-08 Jeff Law <law@redhat.com>
9738 * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
9739 release_ssa_name. Fix typo in comment.
9741 2015-10-08 Nathan Sidwell <nathan@acm.org>
9743 * config/nvptx/nvptx.h (struct machine_function): Add comment.
9744 * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
9745 may return pointer as well as in memory.
9746 (nvptx_output_return): Likewise.
9748 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
9750 * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
9751 (fold_builtin_1): Update accordingly. Handle constant arguments here.
9752 * match.pd: Add rules previously handled by fold_builtin_sqrt
9753 and fold_builtin_cbrt.
9755 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
9757 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
9758 * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
9759 * fold-const.h (tree_unary_nonnegative_warnv_p)
9760 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
9761 (tree_expr_nonnegative_warnv_p): Add depth parameters.
9762 * fold-const.c: Include gimple-fold.h and params.h.
9763 (tree_ssa_name_nonnegative_warnv_p): New function.
9764 (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
9765 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
9766 (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
9767 Add a depth parameter and increment it for recursive calls to
9768 tree_expr_nonnegative_warnv_p. Use tree_ssa_name_nonnegative_warnv_p
9769 to handle SSA names.
9770 * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
9771 (gimple_stmt_nonnegative_warnv_p): Declare.
9772 * tree-vrp.c (remove_range_assertions): Remove assert that condition
9773 cannot be proven false.
9774 (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
9775 (gimple_stmt_nonnegative_warnv_p): Move to...
9776 * gimple-fold.c: ...here. Add depth parameters and pass them
9777 down to the tree routines. Accept statements that aren't
9778 assignments or calls but just return false for them.
9779 (gimple_val_nonnegative_real_p): Delete.
9780 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
9781 tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
9782 Check HONOR_NANs first.
9784 2015-10-08 Martin Jambor <mjambor@suse.cz>
9786 * ipa-cp.c (meet_with_1): Make the argument of abs signed. Remove
9789 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
9791 * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
9792 in the tail of outer-loop.
9794 2015-10-08 David Edelsohn <dje.gcc@gmail.com>
9796 * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
9799 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
9801 * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
9802 "cfghooks.h", add prototypes for introduced new functions.
9803 (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
9804 checks on ability of loop unswitching to tree_unswitch_single_loop;
9805 invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
9806 on innermost loop check.
9807 (tree_unswitch_single_loop): Add all required checks on ability of
9808 loop unswitching under zero recursive level guard.
9809 (tree_unswitch_outer_loop): New function.
9810 (find_loop_guard): Likewise.
9811 (empty_bb_without_guard_p): Likewise.
9812 (used_outside_loop_p): Likewise.
9813 (get_vop_from_header): Likewise.
9814 (hoist_guard): Likewise.
9815 (check_exit_phi): Likewise.
9817 2015-10-08 Marek Polacek <polacek@redhat.com>
9819 * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
9822 2015-10-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9825 * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
9826 create_tmp_var_raw instead of create_tmp_var.
9828 2015-10-07 Jan Hubicka <hubicka@ucw.cz>
9830 * expr.c (store_expr_with_bounds): Handle aggregate moves from
9832 * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
9833 to define gimple type system; compare aggregates only by size.
9835 2015-10-07 Jeff Law <law@redhat.com>
9837 * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
9838 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
9839 here instead. Tighten test to avoid setting LOOPS_NEED_FIXUP
9842 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
9843 Sebastian Pop <s.pop@samsung.com>
9845 * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
9846 * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
9847 (generate_isl_schedule): Same.
9848 * graphite-optimize-isl.c (scop_get_domains): Same.
9849 (apply_schedule_map_to_scop): Same.
9850 * graphite-poly.c (print_iteration_domains): Same.
9851 (remove_gbbs_in_scop): Same.
9855 * graphite-poly.h (struct scop): Rename bbs to pbbs.
9857 * graphite-scop-detection.c (compare_bb_depths): Remove.
9858 (graphite_sort_dominated_info): Remove.
9859 (try_generate_gimple_bb): Move out of scop_detection.
9860 (all_non_dominated_preds_marked_p): Remove.
9861 (build_scop_bbs_1): Remove.
9862 (build_scop_bbs): Remove.
9863 (nb_pbbs_in_loops): Do not use SCOP_BBS.
9864 (find_scop_parameters): Same.
9865 (sese_dom_walker): Rename gather_bbs.
9866 (before_dom_children): Call try_generate_gimple_bb and collect gbb
9868 (build_scops): Call gather_bbs.
9869 * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
9870 (add_conditions_to_constraints): Same.
9871 (build_scop_iteration_domain): Same.
9872 (build_scop_drs): Same.
9873 (new_pbb_from_pbb): Same.
9874 * sese.c (new_sese_info): Create bbs.
9875 * sese.h (struct sese_info_t): Add bbs.
9877 2015-10-07 David Edelsohn <dje.gcc@gmail.com>
9879 * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
9880 encoding in 64-bit mode.
9882 2015-10-07 Uros Bizjak <ubizjak@gmail.com>
9885 * config/i386/i386.c (ix86_option_override_internal): Always use
9886 8-byte minimum stack boundary in 64-bit mode.
9887 (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
9888 (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
9889 Add a REG_CFA_EXPRESSION note if needed.
9890 (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
9891 (ix86_handle_force_align_arg_pointer_attribute): New.
9892 (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
9893 (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
9894 with ix86_handle_force_align_arg_pointer_attribute.
9895 * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
9897 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
9898 Sebastian Pop <s.pop@samsung.com>
9900 * graphite-scop-detection.c (parameter_index_in_region): Remove
9901 use of SESE_ADD_PARAMS.
9902 (find_scop_parameters): Same.
9903 * sese.c (new_sese_info): Same.
9904 * sese.h (struct sese_info_t): Remove add_params.
9905 (SESE_ADD_PARAMS): Remove.
9907 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
9908 Sebastian Pop <s.pop@samsung.com>
9910 * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
9913 (copy_internal_parameters): Same.
9914 (translate_isl_ast_to_gimple): Use an sese_l.
9915 (build_iv_mapping): Same.
9916 * graphite-poly.c (new_sese): Rename new_sese_info.
9917 (free_sese): Rename free_sese_info.
9918 * graphite-poly.h (struct scop): Use an sese_info_p.
9919 (scop_set_region): Same.
9920 * graphite-scop-detection.c (struct sese_l): Moved...
9921 (get_entry_bb): Moved...
9922 (get_exit_bb): Moved...
9923 (parameter_index_in_region_1): Use an sese_info_p.
9924 (parameter_index_in_region): Same.
9925 (scan_tree_for_params): Same.
9926 (find_params_in_bb): Same.
9927 (sese_dom_walker): Use an sese_l.
9928 * graphite-sese-to-poly.c (remove_invariant_phi): Same.
9929 (reduction_phi_p): Same.
9930 (parameter_index_in_region_1): Use an sese_info_p.
9931 (propagate_expr_outside_region): Use an sese_l.
9932 * graphite.c: Replace uses of SCOP_REGION.
9933 * sese.c (sese_record_loop): Use an sese_info_p.
9934 (build_sese_loop_nests): Same.
9935 (sese_build_liveouts_use): Same.
9936 (sese_build_liveouts_bb): Same.
9937 (sese_build_liveouts_bb): Same.
9938 (sese_bad_liveouts_use): Same.
9939 (sese_reset_debug_liveouts_bb): Same.
9940 (sese_build_liveouts): Same.
9941 (new_sese): Renamed new_sese_info.
9942 (free_sese): Renamed free_sese_info.
9943 (set_rename): Use an sese_info_p.
9944 (graphite_copy_stmts_from_block): Same.
9945 (copy_bb_and_scalar_dependences): Same.
9946 (outermost_loop_in_sese_1): Use an sese_l.
9947 (outermost_loop_in_sese): Same.
9948 (if_region_set_false_region): Use an sese_info_p.
9949 (move_sese_in_condition): Same.
9950 (scalar_evolution_in_region): Use an sese_l.
9951 * sese.h (struct sese_l): ... here.
9952 (SESE_ENTRY): Remove.
9953 (SESE_ENTRY_BB): Remove.
9954 (SESE_EXIT): Remove.
9955 (SESE_EXIT_BB): Remove.
9956 (sese_contains_loop): Use an sese_info_p.
9957 (sese_nb_params): Same.
9958 (bb_in_sese_p): Use an sese_l.
9959 (stmt_in_sese_p): Same.
9960 (defined_in_sese_p): Same.
9961 (loop_in_sese_p): Same.
9962 (sese_loop_depth): Same.
9963 (struct ifsese_s): Use an sese_info_p.
9964 (gbb_loop_at_index): Use an sese_l.
9965 (nb_common_loops): Same.
9966 (scev_analyzable_p): Same.
9968 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
9970 * config/i386/i386.c (ix86_conditional_register_usage): Use
9971 CALL_USED_REGISTERS_MASK.
9972 * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
9974 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
9977 * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
9978 * configure: Regenerated.
9980 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
9983 * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
9984 (ix86_set_current_function): This.
9985 (TARGET_EXPAND_TO_RTL_HOOK): Removed.
9987 2015-10-07 Richard Biener <rguenther@suse.de>
9989 * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
9990 (vinfo_for_stmt): Adjust.
9991 (set_vinfo_for_stmt): Likewise.
9992 * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
9993 * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
9994 * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
9996 (vect_analyze_loop_1): Remove.
9997 (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
9998 inner loop when vectorizing an outer loop by splitting out from ...
9999 (vect_analyze_loop_form): ... here.
10001 2015-10-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10004 * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
10005 Use create_tmp_var_raw instead of create_tmp_var.
10007 2015-10-07 Richard Sandiford <richard.sandiford@arm.com>
10009 * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
10010 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
10011 * real.c (CACHED_FRACTION): New helper macro.
10012 (dconst_third_ptr): Use it.
10013 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
10014 * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
10016 (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
10018 2015-10-06 Jeff Law <law@redhat.com>
10020 PR tree-optimization/67816
10021 * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
10022 from remove_jump_threads_starting_at. Accept an edge rather than
10024 * tree-ssa-threadupdate.c (removed_edges): New hash table.
10025 (remove_jump_threads_including): Note edges that get removed from
10026 the CFG for later pruning of jump threading paths including them.
10027 (thread_through_all_blocks): Remove paths which include edges that
10029 * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
10030 on each outgoing edges when optimizing away a control statement.
10032 2015-10-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10034 * reorg.c (emit_delay_sequence): Store list of delay slot insns
10035 in a vector instead of rtx_insn_list.
10036 (add_to_delay_list): Likewise.
10037 (delete_from_delay_slot): Likewise.
10038 (optimize_skip): Likewise.
10039 (redirect_with_delay_list_safe_p): Likewise.
10040 (check_annul_list_true_false): Likewise.
10041 (steal_delay_list_from_target): Likewise.
10042 (steal_delay_list_from_fallthrough): Likewise.
10043 (redundant_insn): Likewise.
10044 (fill_simple_delay_slots): Likewise.
10045 (fill_slots_from_thread): Likewise.
10046 (fill_eager_delay_slots): Likewise.
10047 (relax_delay_slots): Likewise.
10049 2015-10-06 Sandra Loosemore <sandra@codesourcery.com>
10051 * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
10052 For -mgpopt=local, also exclude unintialized common symbols.
10053 * doc/invoke.texi (Nios II Options): Document the change.
10055 2015-10-07 Kugan Vivekanandarajah <kuganv@linaro.org>
10057 * config/aarch64/iterators.md (vwcore): Add missing cases for
10060 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
10061 Sebastian Pop <s.pop@samsung.com>
10063 * graphite-poly.c (new_scop): Initialize drs.
10064 * graphite-poly.h (struct dr_info): New.
10065 (struct scop): Add drs.
10066 * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
10067 (pdr_add_memory_accesses): Same.
10068 (build_poly_dr): Same.
10069 (build_alias_set): Same.
10070 (build_scop_drs): Same.
10071 (build_pbb_drs): Remove.
10072 * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
10073 * tree-data-ref.h (data_reference): Remove alias_set.
10075 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
10076 Sebastian Pop <s.pop@samsung.com>
10078 * graphite-poly.c (free_data_refs_aux): Remove.
10079 (free_gimple_poly_bb): Do not call free_data_refs_aux.
10080 * graphite-poly.h (struct base_alias_pair): Remove.
10081 * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
10082 base_alias_pair and dr->aux.
10083 (build_alias_set): Same.
10084 * tree-data-ref.c (create_data_ref): Initialize alias_set.
10085 * tree-data-ref.h (data_reference): Add alias_set.
10087 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
10088 Sebastian Pop <s.pop@samsung.com>
10090 * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
10091 Do not set PDR_BASE_OBJECT_SET.
10092 * graphite-poly.h (poly_dr): Same.
10093 (PDR_BASE_OBJECT_SET): Remove.
10094 (new_poly_dr): Update decl.
10095 * graphite-sese-to-poly.c (build_poly_dr): Update call to
10097 (write_alias_graph_to_ascii_dimacs): Remove.
10098 (write_alias_graph_to_ascii_dot): Remove.
10099 (write_alias_graph_to_ascii_ecc): Remove.
10100 (dr_same_base_object_p): Remove.
10101 (build_alias_set_optimal_p): Rename build_alias_set. Remove dead
10103 (build_base_obj_set_for_drs): Remove.
10104 (dump_alias_graphs): Remove.
10105 (build_scop_drs): Remove dead code.
10107 2015-10-05 Michael Meissner <meissner@linux.vnet.ibm.com>
10108 Peter Bergner <bergner@vnet.ibm.com>
10111 * config/rs6000/rs6000.md (extenddftf2): In the expander, only
10112 allow registers, but provide insns for the combiner to create for
10113 loads from memory. Separate VSX code from non-VSX code. For
10114 non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
10115 externaldftf2_internal to externaldftf2_fprs. Reorder constraints
10116 so that registers come before memory operations. Drop support from
10117 converting DFmode to TFmode, if the DFmode value is in a GPR
10119 (extenddftf2_fprs): Likewise.
10120 (extenddftf2_internal): Likewise.
10121 (extenddftf2_vsx): Likewise.
10122 (extendsftf2): In the expander, only allow registers, but provide
10123 insns for the combiner to create for stores and loads.
10125 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10127 * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
10128 from the decl parameter.
10130 2015-10-06 Nathan Sidwell <nathan@codesourcery.com>
10133 * gimple-fold.c (gimple_fold_builtin): Add break after
10134 BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
10136 2015-10-06 H.J. Lu <hongjiu.lu@intel.com>
10138 * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
10139 to scop->isl_context.
10141 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
10143 * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
10144 (output_probe_stack_range): Rotate the loop and simplify.
10145 (thumb1_expand_prologue): Tweak sorry message.
10146 * config/arm/arm.md (probe_stack): Use bare string.
10148 2015-10-06 Nick Clifton <nickc@redhat.com>
10150 * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
10152 2015-10-06 Nick Clifton <nickc@redhat.com>
10154 * config/msp430/msp430.c (ATTR_NOINIT): New constant.
10155 (ATTR_PERSIST): New constant.
10156 (msp430_data_attr): New function - verifies an attribute that only
10157 applies to variables.
10158 (msp430_attributes): Add noinit and persistent attributes.
10159 (noinit_section): New variable.
10160 (presis_section): New variable.
10161 (TARGET_ASM_INIT_SECTIONS): Define.
10162 (msp430_init_sections): New function - initialises the noinit and
10163 persist section variables.
10164 (msp430_select_section): Add support for noinit and persist
10166 (msp430_section_type_flags): Likewise.
10167 * doc/extend.texi: Document the reent, critical, wakeup, noinit
10168 and persistent attributes.
10170 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
10171 Sebastian Pop <s.pop@samsung.com>
10173 * graphite-dependences.c (scop_get_transformed_schedule): Remove.
10174 (no_violations): Remove.
10175 (subtract_commutative_associative_deps): Remove.
10176 (compute_deps): Do not call subtract_commutative_associative_deps.
10177 (transform_is_safe): Remove.
10178 (graphite_legal_transform): Remove.
10179 * graphite-poly.h (graphite_legal_transform): Remove.
10181 2015-10-05 Aditya Kumar <hiraditya@msn.com>
10183 * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
10184 which are in this region are passed so gcc_assert and remove redundant
10186 * sese.c (sese_build_liveouts): Pass only those bbs which are not
10188 (sese_bad_liveouts_use): Only BBs which are not in region are passed so
10189 gcc_assert on that and remove unnecessary computation.
10190 (sese_build_liveouts_use): Same.
10192 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
10194 * graphite-dependences.c (scop_get_reads): Renamed scop->context
10195 to scop->param_context.
10196 (scop_get_must_writes): Same.
10197 (scop_get_may_writes): Same.
10198 (scop_get_original_schedule): Same.
10199 (scop_get_transformed_schedule): Same.
10200 (subtract_commutative_associative_deps): Same.
10201 * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
10202 (generate_isl_context): Same.
10203 (generate_isl_schedule): Same.
10204 (scop_to_isl_ast): Same.
10205 (graphite_regenerate_ast_isl): Same.
10206 * graphite-optimize-isl.c (scop_get_domains): Same.
10207 (optimize_isl): Renamed scop->context to scop->param_context.
10208 * graphite-poly.c (new_poly_bb): Change the type of argument to
10210 (new_scop): Renamed scop->context to scop->param_context.
10212 (print_scop_context): Same.
10213 * graphite-poly.h (new_poly_dr): Change the type of argument from
10214 void* to data_reference_p.
10215 (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
10216 (new_poly_bb): Change the type of argument from void* to
10218 (pbb_set_black_box): Same.
10219 (struct scop): Rename context to param_context, ctx to isl_context.
10220 * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
10221 Move declarations closer to assignment.
10222 (find_params_in_bb): Same.
10223 (find_scop_parameters): Same.
10224 * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
10225 Global to be used for statement IDs.
10226 (isl_id_for_pbb): Use ssa_name_version_typesize.
10227 (simple_copy_phi_p): Move declarations closer to assignment.
10228 (build_pbb_scattering_polyhedrons): Same.
10229 (build_scop_scattering): Same.
10230 (isl_id_for_ssa_name): Same.
10231 (extract_affine_name): Same.
10232 (extract_affine_int): Same.
10233 (extract_affine): Same.
10234 (set_scop_parameter_dim): Use renamed member.
10235 (build_loop_iteration_domains): Same.
10236 (add_param_constraints): Same.
10237 (build_scop_iteration_domain): Same.
10238 (pdr_add_data_dimensions): Same.
10239 (build_poly_dr): Same.
10240 (build_scop_drs): Move declarations closer to assignment.
10241 (analyze_drs_in_stmts): Same.
10242 (insert_out_of_ssa_copy): Same.
10243 (insert_out_of_ssa_copy_on_edge): Same.
10244 (propagate_expr_outside_region): Same.
10245 (rewrite_phi_out_of_ssa): Same.
10246 (rewrite_degenerate_phi): Same.
10247 (rewrite_reductions_out_of_ssa): Same.
10248 (rewrite_cross_bb_scalar_dependence): Same.
10249 (handle_scalar_deps_crossing_scop_limits): Same.
10250 (rewrite_cross_bb_scalar_deps): Same.
10251 * graphite.c (graphite_transform_loops): Use renamed member.
10253 2015-10-06 Uros Bizjak <ubizjak@gmail.com>
10256 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
10257 create_tmp_var_raw instead of create_tmp_var.
10259 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10262 * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
10263 Use create_tmp_var_raw instead of create_tmp_var.
10265 2015-10-06 Alexander Fomin <alexander.fomin@intel.com>
10268 * config/i386/sse.md (define_split vec_select/V8FI): Restrict
10269 split for upper-bank registers when target does not support
10271 (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
10272 split when target does not support AVX512VL.
10274 2015-10-06 David Edelsohn <dje.gcc@gmail.com>
10277 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
10278 Adjust to use create_tmp_var_raw instead of create_tmp_var.
10280 2015-10-06 Nick Clifton <nickc@redhat.com>
10282 * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
10285 2015-10-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
10287 * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
10288 (case ${target}): Add znver1.
10289 * config/i386/cpuid.h(bit_CLZERO): Define.
10290 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
10291 -march=native recognize znver1 processors.
10292 * config/i386/i386-c.c (ix86_target_macros_internal): Add
10293 znver1, clzero def_and_undef.
10294 * config/i386/i386.c (struct processor_costs znver1_cost): New.
10295 (m_znver1): New definition.
10296 (m_AMD_MULTIPLE): Includes m_znver1.
10297 (processor_target_table): Add znver1 entry.
10298 (ix86_target_string) : Add clzero entry.
10299 (static const char *const cpu_names): Add znver1 entry.
10300 (ix86_option_override_internal): Add znver1 instruction sets.
10301 (PTA_CLZERO) : New definition.
10302 (ix86_option_override_internal): Handle new clzerooption.
10303 (ix86_issue_rate): Add znver1.
10304 (ix86_adjust_cost): Add znver1.
10305 (ia32_multipass_dfa_lookahead): Add znver1.
10306 (has_dispatch): Add znver1.
10307 * config/i386/i386.h (TARGET_znver1): New definition.
10308 (TARGET_CLZERO): Define.
10309 (TARGET_CLZERO_P): Define.
10310 (struct ix86_size_cost): Add TARGET_ZNVER1.
10311 (enum processor_type): Add PROCESSOR_znver1.
10312 * config/i386/i386.md (define_attr "cpu"): Add znver1.
10313 (set_attr znver1_decode): New definitions for znver1.
10314 * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
10316 * config/i386/mmx.md (set_attr znver1_decode): New definitions
10318 * config/i386/sse.md (set_attr znver1_decode): Likewise.
10319 * config/i386/x86-tune.def: Add znver1 tunings.
10320 * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
10321 * doc/invoke.texi: Add details about znver1
10323 2015-10-06 Richard Biener <rguenther@suse.de>
10325 PR tree-optimization/67859
10326 * tree-ssa-pre.c (create_expression_by_pieces): Properly
10327 discard not inserted stmts.
10329 2015-10-06 Jonathan Wakely <jwakely@redhat.com>
10331 * doc/extend.texi (Template Instantiation): Reorder options and
10332 de-emphasize -frepo.
10333 * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
10334 example instead of -frepo.
10336 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
10339 * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
10340 use create_tmp_var_raw rather than create_tmp_var.
10342 2015-10-06 Richard Biener <rguenther@suse.de>
10344 * tree-vectorizer.h (vec_info): New base class for...
10345 (_loop_vec_info): ... this and ...
10346 (_bb_vec_info): ... this.
10347 (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
10348 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
10349 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
10350 vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
10351 vect_destroy_datarefs): Adjust interface to take a vec_info *
10352 rather than both a loop_vec_info and a bb_vec_info argument.
10353 * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
10354 vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
10355 vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
10356 vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
10358 * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
10359 (destroy_loop_vec_info, vect_analyze_loop_2,
10360 vect_is_simple_reduction_1, get_initial_def_for_induction,
10361 vect_create_epilog_for_reduction, vectorizable_reduction,
10362 vectorizable_live_operation, vect_transform_loop): Adjust.
10363 * tree-vect-patterns.c (type_conversion_p,
10364 vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
10365 vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
10366 vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
10367 check_bool_pattern, vect_recog_bool_pattern,
10368 vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
10369 * tree-vect-slp.c (vect_get_and_check_slp_defs,
10370 vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
10371 vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
10372 vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
10373 (new_bb_vec_info): Initialize base classs.
10374 * tree-vect-stmts.c (record_stmt_cost, process_use,
10375 vect_get_vec_def_for_operand, vect_finish_stmt_generation,
10376 vectorizable_mask_load_store, vectorizable_call,
10377 vectorizable_simd_clone_call, vectorizable_conversion,
10378 vectorizable_assignment, vectorizable_shift,
10379 vectorizable_operation, vectorizable_store,
10380 vectorizable_load, vect_is_simple_cond, vectorizable_condition,
10381 new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
10382 * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
10384 2015-10-05 Kaz Kojima <kkojima@gcc.gnu.org>
10387 * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
10388 create_tmp_var_raw rather than create_tmp_var.
10390 2015-10-05 Marek Polacek <polacek@redhat.com>
10392 * tree-ssa-loop-im.c
10393 (move_computations_dom_walker::before_dom_children): Don't set
10394 SSA_NAME_ANTI_RANGE_P.
10395 * tree-ssa-phiopt.c (value_replacement): Likewise.
10397 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
10398 Sebastian Pop <s.pop@samsung.com>
10400 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
10402 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
10403 Sebastian Pop <s.pop@samsung.com>
10405 * graphite-poly.c (new_gimple_poly_bb): ... here.
10406 (free_data_refs_aux): ... here.
10407 (free_gimple_poly_bb): ... here.
10408 (remove_gbbs_in_scop): ... here.
10409 (new_scop): Call new_sese.
10410 (free_scop): Call remove_gbbs_in_scop and free_sese.
10411 * graphite-poly.h (base_alias_pair): ... here.
10412 (new_gimple_poly_bb): Declare.
10413 (free_gimple_poly_bb): Declare.
10414 * graphite-scop-detection.c (parameter_index_in_region_1):
10415 (parameter_index_in_region): ... here.
10416 (scan_tree_for_params): ... here.
10417 (find_params_in_bb): ... here.
10418 (find_scop_parameters): ... here.
10419 (build_scops): Call find_scop_parameters.
10420 * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
10421 (free_scops): Move...
10422 (single_pred_cond_non_loop_exit): Move...
10423 (sese_dom_walker::before_dom_children): Move...
10424 (sese_dom_walker::after_dom_children): Move...
10425 (build_poly_scop): Move...
10426 * graphite-sese-to-poly.h (base_alias_pair): Move...
10427 * graphite.c (free_scops): ... here.
10429 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
10430 Sebastian Pop <s.pop@samsung.com>
10432 * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
10433 (trivially_empty_bb_p): Move...
10434 (same_close_phi_node): Move...
10435 (new_gimple_poly_bb): Move...
10436 (compare_bb_depths): Move...
10437 (graphite_sort_dominated_info): Move...
10438 (remove_duplicate_close_phi): Move...
10439 (make_close_phi_nodes_unique): Move...
10440 (canonicalize_loop_closed_ssa): Move...
10441 (canonicalize_loop_closed_ssa_form): Move...
10442 (loop_ivs_can_be_represented): Move...
10443 (single_pred_cond_non_loop_exit): Move...
10444 (graphite_can_represent_init): Move...
10445 (graphite_can_represent_scev): Move...
10446 (stmt_has_simple_data_refs_p): Move...
10447 (stmt_has_side_effects): Move...
10448 (graphite_can_represent_stmt): Move...
10449 (scop_detection): ... here.
10450 (sese_dom_walker): ... and here.
10451 (build_scops): Call all moved functions.
10452 * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
10453 (all_non_dominated_preds_marked_p): Move...
10454 (build_scop_bbs_1): Move...
10455 (build_scop_bbs): Move...
10456 (set_scop_parameter_dim): Move...
10457 (nb_pbbs_in_loops): Move...
10458 (build_poly_scop): Do not call all the moved functions.
10460 2015-10-05 Martin Jambor <mjambor@suse.cz>
10461 Jan Hubicka <hubicka@ucw.cz>
10463 * ipa-cp.c (ipcp_alignment_lattice): New type.
10464 (ipcp_param_lattices): Use the above to represent alignment.
10465 (ipcp_alignment_lattice::print): New function.
10466 (print_all_lattices): Use it to print alignment information.
10467 (ipcp_alignment_lattice::top_p): New function.
10468 (ipcp_alignment_lattice::bottom_p): Likewise.
10469 (ipcp_alignment_lattice::set_to_bottom): Likewise.
10470 (ipcp_alignment_lattice::meet_with_1): Likewise.
10471 (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
10472 (set_all_contains_variable): Use set_to_bottom of alignment lattice.
10473 (initialize_node_lattices): Likewise.
10474 (propagate_alignment_accross_jump_function): Work with the new class
10475 for alignment lattices.
10476 (propagate_constants_accross_call): Pass only the alignment lattice to
10477 propagate_alignment_accross_jump_function.
10478 (ipcp_store_alignment_results): Work with the new class for alignment
10481 2015-10-05 Marek Polacek <polacek@redhat.com>
10483 PR tree-optimization/67821
10484 * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
10486 2015-10-05 Thomas Schwinge <thomas@codesourcery.com>
10489 * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
10491 (mkoffload_cleanup): ... this. Adjust all users.
10492 (maybe_unlink): Look at save_temps and verbose flags instead of
10494 (main): Parse "-save-temps" flag.
10495 (generate_target_descr_file, generate_target_offloadend_file)
10496 (generate_host_descr_file, prepare_target_image): Pass it on.
10497 * config/nvptx/mkoffload.c (tool_cleanup): Implement.
10498 (mkoffload_cleanup): New function.
10499 (maybe_unlink): Look at save_temps and verbose flags instead of
10501 (main): Instead of calling utils_cleanup, register atexit handler
10502 for mkoffload_cleanup.
10503 (main): Parse "-save-temps" flag.
10504 (compile_native, main): Pass it on.
10505 * lto-wrapper.c (compile_offload_image): Likewise.
10507 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10509 * gimple.h (gimple_op_ptr): Require a non const gimple *.
10510 (gimple_assign_lhs_ptr): Likewise.
10511 (gimple_assign_rhs1_ptr): Likewise.
10512 (gimple_assign_rhs2_ptr): Likewise.
10513 (gimple_assign_rhs3_ptr): Likewise.
10514 (gimple_call_lhs_ptr): Likewise.
10515 (gimple_call_fn_ptr): Likewise.
10516 (gimple_call_chain_ptr): Likewise.
10517 (gimple_call_arg_ptr): Likewise.
10518 (gimple_cond_lhs_ptr): Likewise.
10519 (gimple_cond_rhs_ptr): Likewise.
10520 (gimple_switch_index_ptr): Likewise.
10521 (gimple_return_retval_ptr): Likewise.
10523 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10525 * gimple.h (gimple_asm_input_op_ptr): Remove.
10526 (gimple_asm_output_op_ptr): Likewise.
10528 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10530 * gimple.h (gimple_location_ptr): Remove.
10531 * tree-vrp.c (check_all_array_refs): Adjust.
10533 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10535 * tree-ssa-operands.c (build_uses): store tree * instead of
10537 (finalize_ssa_uses): Adjust.
10538 (append_use): Likewise.
10539 (verify_ssa_operands): Likewise.
10541 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
10543 * real.h (build_real_truncate): Declare.
10544 * tree.c (build_real_truncate): New function.
10545 (strip_float_extensions): Use it.
10546 * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
10547 (fold_builtin_hypot, fold_builtin_pow): Likewise.
10548 * match.pd: Likewise.
10550 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
10551 Jiong Wang <jiong.wang@arm.com>
10553 * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
10555 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
10557 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
10558 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
10559 (aarch64_print_operand, aarch64_float_const_representable_p)
10560 (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
10561 instead of REAL_VALUE_FROM_CONST_DOUBLE.
10562 * config/arc/arc.c (arc_print_operand): Likewise.
10563 * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
10564 (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
10565 (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
10567 * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
10568 (consttable_16): Likewise.
10569 * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
10570 * config/avr/avr.c (avr_print_operand): Likewise.
10571 * config/bfin/bfin.md: Likewise (in a define_split).
10572 * config/c6x/c6x.md: Likewise (in a define_split).
10573 * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
10574 (cr16_print_operand): Likewise.
10575 * config/cris/cris.c (cris_print_operand): Likewise.
10576 * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
10577 * config/fr30/fr30.c (fr30_print_operand): Likewise.
10578 (fr30_const_double_is_zero): Likewise.
10579 * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
10580 * config/frv/frv.md: Likewise (in a define_split).
10581 * config/frv/predicates.md (int_2word_operand): Likewise.
10582 * config/h8300/h8300.c (h8300_print_operand): Likewise.
10583 * config/i386/i386.c (standard_80387_constant_p): Likewise.
10584 (ix86_print_operand, ix86_split_to_parts): Likewise.
10585 * config/i386/i386.md: Likewise (in a define_split).
10586 * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
10587 * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
10588 * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
10589 * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
10590 (print_operand): Likewise.
10591 * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
10592 * config/mep/mep.md: Likewise (in define_split).
10593 * config/microblaze/microblaze.c (microblaze_const_double_ok)
10594 (print_operand): Likewise.
10595 * config/mips/mips.md (consttable_float): Likewise.
10596 * config/mmix/mmix.c (mmix_intval): Likewise.
10597 * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
10598 * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
10599 * config/pa/pa.c (pa_singlemove_string): Likewise.
10600 * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
10601 (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
10602 * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
10603 (output_toc): Likewise.
10604 * config/rs6000/rs6000.md: Likewise (in define_splits).
10605 * config/rx/rx.c (rx_print_operand): Likewise.
10606 * config/s390/s390.c (s390_output_pool_entry): Likewise.
10607 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
10608 * config/sh/sh.md (consttable_sf, consttable_df): Likewise
10609 (and also in define_splits).
10610 * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
10611 (fp_high_losum_p): Likewise.
10612 * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
10613 (*movsf_high): Likewise.
10614 * config/spu/spu.c (const_double_to_hwint): Likewise.
10615 * config/v850/v850.c (const_double_split): Likewise.
10616 * config/vax/vax.c (vax_float_literal): Likewise.
10617 * config/visium/visium.c (visium_expand_copysign): Likewise.
10618 * config/visium/visium.md: Likewise (in define_split).
10619 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
10620 * config/xtensa/xtensa.c (print_operand): Likewise.
10621 (xtensa_output_literal): Likewise.
10622 * cprop.c (implicit_set_cond_p): Likewise.
10623 * dwarf2out.c (insert_float): Likewise.
10624 * expmed.c (expand_mult, make_tree): Likewise.
10625 * expr.c (compress_float_constant): Likewise.
10626 * rtlanal.c (split_double): Likewise.
10627 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
10628 (simplify_const_unary_operation, simplify_binary_operation_1)
10629 (simplify_const_binary_operation): Likewise.
10630 (simplify_const_relational_operation): Likewise.
10631 * varasm.c (output_constant_pool_2): Likewise.
10633 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
10635 * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
10636 instead of CONST_DOUBLE_FROM_REAL_VALUE.
10637 (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
10638 * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
10639 instead of CONST_DOUBLE_FROM_REAL_VALUE.
10640 * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
10641 * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
10642 (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
10643 (ix86_emit_swsqrtsf): Likewise.
10644 * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
10645 * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
10646 (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
10647 * config/pa/pa.c (pa_expand_builtin): Likewise.
10648 * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
10649 (rs6000_scale_v2df): Likewise.
10650 * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
10651 * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
10652 (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
10653 * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
10654 (vec_ctul): Likewise.
10655 * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
10656 * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
10657 * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
10658 * cse.c (fold_rtx): Likewise.
10659 * emit-rtl.c (immed_double_const): Likewise (in comments).
10660 (init_emit_once): Likewise.
10661 * expr.c (compress_float_constant, expand_expr_real_1)
10662 (const_vector_from_tree): Likewise.
10663 * optabs.c (expand_float, expand_fix): Likewise.
10664 * reg-stack.c (reg_to_stack): Likewise.
10665 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
10666 (simplify_const_unary_operation, simplify_binary_operation_1)
10667 (simplify_const_binary_operation, simplify_relational_operation)
10668 (simplify_immed_subreg): Likewise.
10670 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
10672 * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
10673 * doc/tm.texi: Regenerate.
10674 * real.h (REAL_ARITHMETIC): Delete.
10675 * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
10676 (ix86_expand_round_sse4): Use real_arithmetic instead of
10678 * config/i386/sse.md (round<mode>2): Likewise.
10679 * rtl.h (rtx_to_tree_code): Likewise (in comment).
10680 * explow.c (rtx_to_tree_code): Likewise (in comment).
10681 * match.pd: Likewise.
10682 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
10683 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
10684 (expand_pow_as_sqrts): Likewise.
10685 * tree-pretty-print.c (dump_generic_node): Remove code that
10686 was conditional on REAL_ARITHMETIC being undefined.
10688 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
10690 * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
10691 * doc/tm.texi: Regenerate.
10692 * real.h (real_less): Declare.
10693 (REAL_VALUES_LESS): Delete.
10694 * real.c (real_less): New function.
10695 (real_compare): Use it.
10696 * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
10697 of REAL_VALUES_LESS.
10698 * config/microblaze/microblaze.c (microblaze_const_double_ok):
10700 * fold-const.c (fold_convert_const_int_from_real): Likewise.
10701 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
10702 (simplify_const_relational_operation): Likewise.
10703 * tree-call-cdce.c (check_pow): Likewise.
10704 (gen_conditions_for_pow_cst_base): Likewise.
10706 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
10708 * real.h (REAL_VALUES_IDENTICAL): Delete.
10709 * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
10710 instead of REAL_VALUES_IDENTICAL.
10711 * fold-const.c (operand_equal_p): Likewise.
10712 * ipa-icf.c (sem_variable::equals): Likewise.
10713 * tree-complex.c (some_nonzerop): Likewise.
10714 (expand_complex_multiplication): Likewise.
10715 * tree.c (simple_cst_equal): Likewise.
10716 * varasm.c (compare_constant): Likewise.
10718 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
10720 * real.h (real_equal): Declare.
10721 (REAL_VALUES_EQUAL): Delete.
10722 * real.c (real_equal): New function.
10723 (real_compare): Use it.
10724 * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
10725 * doc/tm.texi: Regenerate.
10726 * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
10727 real_equal instead of REAL_VALUES_EQUAL.
10728 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
10729 * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
10730 (fp_const_from_val): Likewise.
10731 * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
10732 * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
10733 (floating_exact_log2): Likewise.
10734 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
10735 * config/vax/vax.c (vax_float_literal): Likewise.
10736 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
10737 * cprop.c (implicit_set_cond_p): Likewise.
10738 * expmed.c (expand_mult): Likewise.
10739 * fold-const.c (const_binop): Likewise.
10740 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
10741 (simplify_const_binary_operation): Likewise.
10742 (simplify_const_relational_operation): Likewise.
10743 * tree-call-cdce.c (check_pow): Likewise.
10744 (gen_conditions_for_pow_cst_base): Likewise.
10745 * tree-inline.c (estimate_num_insns): Likewise.
10746 * tree-ssa-dom.c (record_equality): Likewise.
10747 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
10748 (gimple_expand_builtin_pow): Likewise.
10749 (pass_optimize_widening_mul::execute): Likewise.
10750 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
10751 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
10752 * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
10754 2015-10-05 Richard Biener <rguenther@suse.de>
10757 * ipa-inline-analysis.c (estimate_function_body_sizes): Only
10758 consider loop header PHI defs as IVs.
10760 2015-10-05 Richard Biener <rguenther@suse.de>
10762 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
10764 (create_expression_by_pieces): ... here and build GIMPLE
10765 calls directly. Use gimple_build API and avoid force_gimple_operand.
10766 (insert_into_preds_of_block): Simplify.
10767 (do_regular_insertion): Add comment.
10769 2015-10-04 Jason Merrill <jason@redhat.com>
10771 * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
10773 2015-10-04 Uros Bizjak <ubizjak@gmail.com>
10775 * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
10776 check for general register.
10777 (ix86_emit_save_regs): Ditto.
10778 (ix86_emit_save_regs_using_mov): Ditto.
10779 (ix86_emit_restore_regs_using_pop): Ditto.
10780 (ix86_emit_restore_regs_using_mov): Ditto.
10782 2015-10-03 Marek Polacek <polacek@redhat.com>
10784 * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
10785 (insn-dfatab.o): Likewise.
10787 2015-10-03 Max Filippov <jcmvbkbc@gmail.com>
10789 * config.gcc (xtensa*-*-uclinux*): New configuration.
10790 * config/xtensa/uclinux.h: New file.
10791 * config/xtensa/uclinux.opt: New file.
10793 2015-10-03 Jonathan Wakely <jwakely@redhat.com>
10795 * doc/cpp.texi (Standard Predefined Macros): Document value of
10796 __cplusplus for C++14.
10798 2015-10-02 Bernd Schmidt <bernds@codesourcery.com>
10800 * gcc.c (process_command): Use spec_machine rather than
10801 spec_host_machine to build tooldir_prefix2.
10803 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
10804 Bernd Schmidt <bernds@codesourcery.com>
10806 * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
10807 (Token, Stmt): Remove structs.
10808 (decls, vars, fns): Remove variables.
10809 (alloc_comment, append_stmt, is_keyword): Remove macros.
10810 (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
10811 (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
10812 (parse_init, parse_file): Remove functions.
10813 (read_file): Accept a pointer to a length and store into it.
10814 (process): Don't try to parse the input file, just write it out as
10815 a string, but looking for maps. Also write out the length.
10816 (main): Don't use "-S" to compile PTX code.
10818 2015-10-02 Jeff Law <law@redhat.com>
10820 * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
10823 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
10826 * config/nvptx/mkoffload.c (main): Scan the argument vector for
10827 -fopenmp, and skip generating an offloading image if specified.
10829 2015-10-02 Uros Bizjak <ubizjak@gmail.com>
10831 * system.h (ROUND_UP): New macro definition.
10832 (ROUND_DOWN): Ditto.
10833 * ggc-page.c (ROUND_UP): Remove local macro definition.
10834 (PAGE_ALIGN): Implement using ROUND_UP macro.
10836 * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
10837 * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
10839 (ix86_compute_frame_layout): Ditto.
10840 (ix86_expand_prologue): Ditto.
10841 (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
10842 to round down values.
10843 (expand_set_or_movmem_via_rep): Ditto.
10845 2015-10-02 Marek Polacek <polacek@redhat.com>
10847 * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
10849 2015-10-02 Aditya Kumar <aditya.k7@samsung.com>
10851 * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
10852 (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
10853 * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
10854 (free_gimple_bb): Renamed free_gimple_poly_bb.
10855 (try_generate_gimple_bb): Hoist loop invariant code.
10856 (analyze_drs_in_stmts): Same.
10857 (build_scop_drs): Call renamed functions.
10858 (new_pbb_from_pbb): Same.
10859 (scop_ivs_can_be_represented): Delete as functionality now moved to
10860 graphite-scop-detection.c
10861 (build_poly_scop): Remove call to scop_ivs_can_be_represented.
10863 2015-10-02 Aditya Kumar <hiraditya@msn.com>
10865 * graphite-scop-detection.c (stmt_has_side_effects): New function
10866 outlined from stmt_simple_for_scop_p.
10867 (graphite_can_represent_stmt): Same.
10868 (stmt_simple_for_scop_p): Moved code out of this function for better
10871 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
10873 * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
10875 (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
10877 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10879 * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
10881 2015-10-02 Vladimir Makarov <vmakarov@redhat.com>
10883 PR rtl-optimization/67756
10884 * lra-constraints.c (match_reload): Add a new parameter. Use it
10885 for creating a pseudo with the same value.
10886 (curr_insn_transform): Pass a new argument to match_reload.
10888 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
10890 * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
10891 (expand_vec_perm_even_odd_1): Handle V64QImode.
10892 (ix86_expand_vec_perm_const_1): Try expansion with
10893 expand_vec_perm_even_odd_trunc as well.
10894 * config/i386/sse.md (VI124_AVX512F): Rename to ...
10895 (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
10897 (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
10898 (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
10899 to V32HI and V16SI.
10900 (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
10901 (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
10902 (define_expand "vec_unpacks_lo_<mode>"): Ditto.
10903 (define_expand "vec_unpacks_hi_<mode>"): Ditto.
10904 (define_expand "vec_unpacku_lo_<mode>"): Ditto.
10905 (define_expand "vec_unpacku_hi_<mode>"): Ditto.
10907 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
10909 * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
10910 -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
10912 2015-10-02 Jason Merrill <jason@redhat.com>
10915 * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
10916 (diagnose_tm_1_op): Also diagnose volatile accesses in
10917 transaction_safe function.
10919 2015-10-02 Jonathan Wakely <jwakely@redhat.com>
10921 * system.h (malloc.h): Don't include obsolete header.
10923 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10925 * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
10926 (TLS_SECTION_ASM_FLAG): Delete.
10928 2015-10-02 Marek Polacek <polacek@redhat.com>
10931 * doc/invoke.texi: Document -Wduplicated-cond.
10932 * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
10933 (insn-dfatab.o): Likewise.
10934 * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
10937 2015-10-02 Oleg Endo <olegendo@gcc.gnu.org>
10939 * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
10942 2015-10-02 Renlin Li <renlin.li@arm.com>
10944 * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
10946 2015-10-02 Renlin Li <renlin.li@arm.com>
10949 * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
10951 2015-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10953 PR rtl-optimization/67786
10954 PR rtl-optimization/67787
10955 * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
10956 it modifies a reg used in the condition calculation.
10958 2015-10-02 James Greenhalgh <james.greenhalgh@arm.com>
10960 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
10961 alternatives for reads from memory and moves from general-purpose
10963 (*aarch64_combinez_be<mode>): Likewise.
10965 2015-10-02 Kai Tietz <ktietz70@googlemail.com>
10968 * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
10969 selectany within this function without need to keep attribute.
10970 (i386_pe_encode_section_info): Remove selectany-code.
10972 2015-10-02 Richard Biener <rguenther@suse.de>
10974 * tree-ssa-sccvn.c (has_VN_INFO): New function.
10975 (free_scc_vn): Use it.
10976 (visit_use): Remove dead code and refactor to use gassign
10977 and use less indentation.
10979 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10983 * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
10984 (rs6000_cannot_copy_insn_p): New function.
10985 * config/rs6000/rs6000.md (cannot_copy): New attribute.
10986 (load_toc_v4_PIC_1_normal): Set cannot_copy.
10987 (load_toc_v4_PIC_1_476): Ditto.
10989 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
10991 * graphite-scop-detection.c (struct sese_l): New conversion constructor
10992 so that this type can be pushed into a vec.
10993 (class scop_builder): use sese_l to collect scops.
10994 (get_scops): New getter function.
10995 (remove_intersecting_scops): Use sese_l instead of scops_p.
10996 (intersects): Same.
10999 (remove_subscops): Same.
11000 (build_scops): Add scops to vec<scops_p> once all the scops have been
11003 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
11005 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
11006 Renamed type from gimple_bb_p to gimple_poly_bb_p.
11007 (translate_isl_ast_node_user): Same.
11008 * graphite-poly.c (new_poly_bb): Same.
11009 * graphite-poly.h (gbb_from_bb): Same.
11011 * graphite-sese-to-poly.c (new_gimple_bb):
11012 gimple_bb_p -> gimple_poly_bb_p
11013 (build_scop_scattering): Same.
11014 (find_params_in_bb): Same.
11015 (add_conditions_to_domain): Same.
11016 (sese_dom_walker::before_dom_children): Same.
11017 (analyze_drs_in_stmts): Same.
11018 (new_pbb_from_pbb): Same.
11019 (free_data_refs_aux): New pointer to type base_alias_pair.
11020 * graphite-sese-to-poly.h: Same.
11021 * sese.c (if_region_set_false_region): Fixed Indentation.
11022 (move_sese_in_condition): Same.
11024 2015-10-01 Sebastian Pop <s.pop@samsung.com>
11025 Aditya Kumar <aditya.k7@samsung.com>
11027 PR tree-optimization/66980
11028 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
11029 when data reference analysis has failed.
11031 2015-10-01 Sebastian Pop <s.pop@samsung.com>
11032 Aditya Kumar <aditya.k7@samsung.com>
11034 PR tree-optimization/67754
11035 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
11036 scev analysis on the same loop nest as analyze_drs_in_stmts.
11037 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
11039 (try_generate_gimple_bb): Call outermost_loop_in_sese.
11040 (analyze_drs_in_stmts): Same.
11041 * sese.c (outermost_loop_in_sese): ...here.
11043 2015-10-01 Sebastian Pop <s.pop@samsung.com>
11044 Aditya Kumar <aditya.k7@samsung.com>
11046 PR tree-optimization/67754
11047 * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
11048 recursion on the inner loops.
11050 2015-10-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11052 * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
11053 function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
11054 tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
11055 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
11056 tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
11058 2015-10-01 Marek Polacek <polacek@redhat.com>
11061 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
11062 create_tmp_var_raw rather than create_tmp_var.
11064 2015-10-01 Marek Polacek <polacek@redhat.com>
11066 PR tree-optimization/67769
11067 * tree-ssa-phiopt.c (conditional_replacement): Call
11068 reset_flow_sensitive_info_in_bb.
11069 (minmax_replacement): Likewise.
11070 (abs_replacement): Likewise.
11072 2015-10-01 Nathan Sidwell <nathan@codesourcery.com>
11074 * builtins.c: Don't include gomp-constants.h.
11075 (fold_builtin_1): Don't fold acc_on_device here.
11076 * gimple-fold.c: Include gomp-constants.h.
11077 (gimple_fold_builtin_acc_on_device): New.
11078 (gimple_fold_builtin): Call it.
11080 2015-10-01 H.J. Lu <hongjiu.lu@intel.com>
11082 * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
11083 (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
11085 2015-10-01 James Greenhalgh <james.greenhalgh@arm.com>
11087 * config/arm/aarch-common-protos.h
11088 (aarch_accumulator_forwarding): New.
11089 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
11090 * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
11091 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
11092 * config/arm/cortex-a53.md: Rewrite.
11094 2015-10-01 Richard Biener <rguenther@suse.de>
11096 * gimple-match.h (mprts_hook): Declare.
11097 * gimple-match.head.c (mprts_hook): Define.
11098 (maybe_push_res_to_seq): Use new hook.
11099 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
11100 * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
11101 (vn_ssa_aux::has_constants): Remove.
11102 * tree-ssa-sccvn.c: Include gimple-match.h.
11103 (VN_INFO_GET): Assert we don't re-use SSA names.
11104 (vn_get_expr_for): Remove.
11105 (expr_has_constants): Likewise.
11106 (stmt_has_constants): Likewise.
11107 (simplify_binary_expression): Likewise.
11108 (simplify_unary_expression): Likewise.
11109 (vn_lookup_simplify_result): New hook.
11110 (visit_copy): Adjust.
11111 (visit_reference_op_call): Likewise.
11112 (visit_phi): Likewise.
11113 (visit_use): Likewise.
11114 (process_scc): Likewise.
11115 (init_scc_vn): Likewise.
11116 (visit_reference_op_load): Likewise. Use match-and-simplify and
11117 a gimple seq for inserted expressions.
11118 (try_to_simplify): Remove GENERIC stmt combining code.
11119 (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
11120 * tree-ssa-pre.c (eliminate_insert): Adjust.
11121 (eliminate_dom_walker::before_dom_children): Likewise.
11123 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
11125 * doc/invoke.texi (Optimization Options): Add
11126 -freorder-blocks-algorithm=.
11127 (Optimize Options) <-O>: Add -freorder-blocks.
11128 <-O2>: Remove -freorder-blocks. Add -freorder-blocks-algorithm=stc.
11129 <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
11130 <-freorder-blocks>: Also enabled at levels -O and -Os.
11131 <-freorder-blocks-algorithm=>: Document new option.
11133 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
11135 * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
11136 with flag_reorder_blocks_algorithm.
11137 * common.opt (freorder-blocks-algorithm=): New flag.
11138 (reorder_blocks_algorithm): New enum.
11139 * flag-types.h (reorder_blocks_algorithm): New enum.
11140 * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
11141 and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
11143 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
11145 * bb-reorder.c: Add intro comment.
11146 (reorder_basic_blocks_software_trace_cache): Print a header to
11148 (edge_order): New function.
11149 (reorder_basic_blocks_simple): New function.
11150 (reorder_basic_blocks): Choose between the STC and the simple
11151 algorithms (always choose the former).
11153 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
11155 * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
11156 function, factored out from ...
11157 (reorder_basic_blocks): ... here.
11159 2015-10-01 Tom de Vries <tom@codesourcery.com>
11161 * tree-cfg.c (dump_function_to_file): Dump function attributes using
11162 __attribute__(()) string. Move dumping of function attributes to before
11165 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
11168 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
11169 * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
11170 based on gold linker version.
11171 * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
11172 HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
11173 * configure, config.in: Regenerate.
11175 2015-10-01 Alan Modra <amodra@gmail.com>
11177 * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
11178 r2_setup_needed when TARGET_SINGLE_PIC_BASE.
11179 (rs6000_output_mi_thunk): Likewise.
11181 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
11183 * config/nvptx/mkoffload.c (process): Change offload data format.
11185 2015-09-30 Jeff Law <law@redhat.com>
11187 * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
11188 with constant conditions.
11189 * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
11190 (remove_ctrl_stmt_and_useless_edges): No longer static.
11191 * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
11192 (remove_ctrl_stmt_and_useless_edges): Likewise.
11194 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
11195 Cesar Philippidis <cesar@codesourcery.com>
11197 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
11198 (TARGET_GOACC_VALIDATE_DIMS): Override.
11199 * target.def (TARGET_GOACC): New target hook prefix.
11200 (validate_dims): New hook.
11201 * targhooks.h (default_goacc_validate_dims): New.
11202 * omp-low.c (oacc_validate_dims): New.
11203 (execute_oacc_device_lower): New.
11204 (default_goacc_validate_dims): New.
11205 (pass_data_oacc_device_lower): New.
11206 (pass_oacc_device_lower): New pass.
11207 (make_pass_oacc_device_lower): New.
11208 * tree-pass.h (make_pass_oacc_device_lower): Declare.
11209 * passes.def (pass_oacc_device_lower): Add it.
11210 * doc/tm.texi: Rebuilt.
11211 * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
11212 * doc/invoke.texi (oaccdevlow): Document tree dump flag.
11214 2015-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
11216 PR rtl-optimization/67037
11217 * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
11219 2015-09-30 Bernd Schmidt <bernds@redhat.com>
11221 * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
11222 * passes.c: Include tree-ssanames.h.
11223 (execute_function_todo): Flush the pending free SSA_NAMEs after
11224 eliminating unreachable basic blocks.
11225 * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
11226 (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
11227 (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
11228 (flush_ssanames_freelist): New function.
11229 (release_ssaname_fn): Put released names on the queue.
11230 (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
11231 * tree-ssanames.h (flush_ssanames_freelist): Declare.
11233 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
11235 * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
11236 (generate_target_descr_file, generate_target_offloadend_file)
11237 (generate_host_descr_file, prepare_target_image): Pass it on.
11238 * config/nvptx/mkoffload.c (main): Parse "-v" flag.
11239 (compile_native, main): Pass it on.
11240 * lto-wrapper.c (compile_offload_image): Likewise.
11242 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
11243 Ilya Verbin <ilya.verbin@intel.com>
11244 Andrey Turetskiy <andrey.turetskiy@intel.com>
11246 * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
11247 (prepare_target_image, main): Refactor argv building to use
11250 2015-09-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11252 * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
11253 * config/spu/spu.c (spu_expand_atomic_op): New function.
11254 * config/spu/spu.md (AINT): New mode iterator.
11255 (ATOMIC): New code iterator.
11256 (atomic_name, atomic_pred): New code predicates.
11257 ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
11258 ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
11259 (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
11260 "atomic_<atomic_name>_fetch<mode>"): Likewise.
11262 2015-09-30 Ilya Enkovich <enkovich.gnu@gmail.com>
11264 * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
11266 (scalar_chain::convert_reg): Likewise.
11268 2015-09-30 Richard Biener <rguenther@suse.de>
11270 * builtins.c: Add comment that no new simplifications should
11273 2015-09-30 Marek Polacek <polacek@redhat.com>
11275 PR tree-optimization/67690
11276 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
11277 reset_flow_sensitive_info_in_bb.
11278 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
11279 * tree-ssanames.c: Include "gimple-iterator.h".
11280 (reset_flow_sensitive_info_in_bb): New function.
11281 * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
11283 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
11285 * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
11286 variable, replacing it with...
11287 (offload_abi): ... this new variable. Adjust all users.
11288 * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
11290 2015-09-30 Matthias Klose <doko@ubuntu.com>
11292 * configure.ac: Remove extraneous ;;.
11293 * configure: Regenerate.
11295 2015-09-29 James Bowman <james.bowman@ftdichip.com>
11297 * config/ft32/predicates.md (ft32_imm_operand): New predicate.
11298 * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
11299 predicate, disallow register for operand 2.
11301 2015-09-29 Aditya Kumar <aditya.k7@samsung.com>
11303 * graphite-dependences.c (scop_get_dependences): Moved in down
11304 in order to be visible to its caller.
11305 * graphite-poly.h: Removed compute_deps, and extend_schedule.
11307 2015-09-29 Sebastian Pop <s.pop@samsung.com>
11308 Aditya Kumar <aditya.k7@samsung.com>
11310 PR tree-optimization/67754
11311 * graphite-optimize-isl.c (optimize_isl): Call
11312 isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
11314 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
11316 * builtins.c (expand_builtin_acc_on_device): Delete.
11317 (expand_builtin): Don't call it.
11318 (fold_builtin_1): Fold acc_on_device.
11320 2015-09-29 H.J. Lu <hongjiu.lu@intel.com>
11322 * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
11323 (ix86_nsaved_sseregs): Likewise.
11325 2015-09-29 Jeff Law <law@redhat.com>
11327 * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
11328 computation of unused value.
11330 * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
11331 * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
11332 inline macro expansion.
11334 * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
11336 * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
11337 (gen_shl_sext): Likewise.
11338 * config/sh/sh.md (divsi3): Likewise.
11339 (imm->ext_dest_operand splitter): Likewise.
11341 2015-09-29 Sebastian Pop <s.pop@samsung.com>
11342 Aditya Kumar <aditya.k7@samsung.com>
11344 * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
11345 (nb_data_writes_in_bb): Remove.
11346 (split_pbb): Remove.
11347 (split_reduction_stmt): Remove.
11348 (is_reduction_operation_p): Remove.
11349 (phi_contains_arg): Remove.
11350 (follow_ssa_with_commutative_ops): Remove.
11351 (detect_commutative_reduction_arg): Remove.
11352 (detect_commutative_reduction_assign): Remove.
11353 (follow_inital_value_to_phi): Remove.
11354 (edge_initial_value_for_loop_phi): Remove.
11355 (initial_value_for_loop_phi): Remove.
11356 (used_outside_reduction): Remove.
11357 (detect_commutative_reduction): Remove.
11358 (translate_scalar_reduction_to_array_for_stmt): Remove.
11359 (remove_phi): Remove.
11360 (dr_indices_valid_in_loop): Remove.
11361 (close_phi_written_to_memory): Remove.
11362 (translate_scalar_reduction_to_array): Remove.
11363 (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
11364 (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
11365 (rewrite_commutative_reductions_out_of_ssa): Remove.
11366 (build_poly_scop): Remove call to
11367 rewrite_commutative_reductions_out_of_ssa.
11369 2015-09-29 Evandro Menezes <e.menezes@samsung.com>
11371 * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
11372 Add new insn types for vector load and store pairs.
11373 * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
11374 types "neon_ldp{,_q}".
11375 * config/arm/cortex-a57.md (neon_load_c): Add insn types
11377 (neon_store_complex): Add insn types "neon_stp{,_q}".
11378 * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
11379 "neon_{ldp,stp}_q".
11381 2015-09-29 Jeff Law <law@redhat.com>
11383 * config/rx/constraints.md (Int08): Fix undefined left shift
11385 (Sint08, Sint16, Sint24): Likewise.
11386 * config/rx/rx.c (rx_get_stack_layout): Likewise.
11388 * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
11391 * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
11392 left shift behaviour.
11393 * config/msp430/constraints.md ('L' constraint): Similarly.
11394 ('Ys' constraint): Similarly.
11396 2015-09-29 Richard Biener <rguenther@suse.de>
11398 PR tree-optimization/67170
11399 * tree-ssa-alias.h (get_continuation_for_phi): Adjust
11400 the translate function pointer parameter to get the
11401 bool whether to disambiguate only by reference.
11402 (walk_non_aliased_vuses): Likewise.
11403 * tree-ssa-alias.c (maybe_skip_until): Adjust.
11404 (get_continuation_for_phi_1): Likewise.
11405 (get_continuation_for_phi): Likewise.
11406 (walk_non_aliased_vuses): Likewise.
11407 * tree-ssa-sccvn.c (const_parms): New bitmap.
11408 (vn_reference_lookup_3): Adjust for interface change.
11409 Disambiguate parameters pointing to readonly memory.
11410 (free_scc_vn): Free const_parms.
11411 (run_scc_vn): Initialize const_parms from a fn spec attribute.
11413 2015-09-29 Richard Biener <rguenther@suse.de>
11415 PR tree-optimization/67741
11416 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
11417 builtin calls with correct signature.
11419 2015-09-29 Ilya Enkovich <enkovich.gnu@gmail.com>
11422 * config/i386/i386.c: Include dbgcnt.h.
11423 (has_non_address_hard_reg): New.
11424 (convertible_comparison_p): New.
11425 (scalar_to_vector_candidate_p): New.
11426 (remove_non_convertible_regs): New.
11427 (scalar_chain): New.
11428 (scalar_chain::scalar_chain): New.
11429 (scalar_chain::~scalar_chain): New.
11430 (scalar_chain::add_to_queue): New.
11431 (scalar_chain::mark_dual_mode_def): New.
11432 (scalar_chain::analyze_register_chain): New.
11433 (scalar_chain::add_insn): New.
11434 (scalar_chain::build): New.
11435 (scalar_chain::compute_convert_gain): New.
11436 (scalar_chain::replace_with_subreg): New.
11437 (scalar_chain::replace_with_subreg_in_insn): New.
11438 (scalar_chain::emit_conversion_insns): New.
11439 (scalar_chain::make_vector_copies): New.
11440 (scalar_chain::convert_reg): New.
11441 (scalar_chain::convert_op): New.
11442 (scalar_chain::convert_insn): New.
11443 (scalar_chain::convert): New.
11444 (convert_scalars_to_vector): New.
11445 (pass_data_stv): New.
11447 (make_pass_stv): New.
11448 (ix86_option_override): Created and register stv pass.
11449 (flag_opts): Add -mstv.
11450 (ix86_option_override_internal): Likewise.
11451 * config/i386/i386.md (SWIM1248x): New.
11452 (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
11453 (and<mode>3): Use SWIM1248x iterator instead of SWIM.
11454 (*anddi3_doubleword): New.
11455 (*zext<mode>_doubleword): New.
11456 (*zextsi_doubleword): New.
11457 (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
11458 (*<code>di3_doubleword): New.
11459 * config/i386/i386.opt (mstv): New.
11460 * dbgcnt.def (stv_conversion): New.
11462 2015-09-29 Tom de Vries <tom@codesourcery.com>
11464 * tree-cfg.c (dump_function_to_file): Dump function attributes.
11466 2015-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
11469 * config/sh/sh.c (sh_override_options_after_change): New.
11470 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
11471 (sh_option_override): Move align_loops, align_jumps and
11472 align_functions handling into sh_override_options_after_change.
11474 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
11476 * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
11477 (nvptx_record_offload_symbol): Record function execution geometry.
11478 * config/nvptx/mkoffload.c (process): Include launch geometry in
11480 * omp-low.c (oacc_launch_pack): New.
11481 (replace_oacc_fn_attrib): New.
11482 (set_oacc_fn_attrib): New.
11483 (get_oacc_fn_attrib): New.
11484 (expand_omp_target): Create keyed varargs for GOACC_parallel call
11486 * omp-low.h (get_oacc_fn_attrib): Declare.
11487 * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
11488 (DEF_FUNCTION_TYPE_VAR_11): Delete.
11489 * tree.h (OMP_CLAUSE_EXPR): New.
11490 * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
11492 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
11493 Sebastian Pop <s.pop@samsung.com>
11495 * sese.c (invariant_in_sese_p_rec): Remove unused variable.
11497 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
11498 Sebastian Pop <s.pop@samsung.com>
11500 * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
11501 * graphite-scop-detection.c (struct sese_l): New type.
11502 (get_entry_bb): API for getting entry bb of SESE.
11503 (get_exit_bb): API for getting exit bb of SESE.
11504 (class debug_printer): New type. Simple printer in debug mode.
11505 (trivially_empty_bb_p): New. Return true when BB is empty or
11506 contains only debug instructions.
11507 (graphite_can_represent_expr): Call scalar_evoution_in_region
11508 instead of analyze_scalar_evolution. Pass in scop instead of only
11510 (stmt_has_simple_data_refs_p): Pass in scop instead of only the
11512 (stmt_simple_for_scop_p): Same.
11513 (harmful_stmt_in_bb): Same.
11514 (graphite_can_represent_loop): Deleted.
11515 (struct scopdet_info): Deleted.
11516 (scopdet_basic_block_info): Deleted.
11517 (build_scops_1): Deleted.
11518 (bb_in_sd_region): Deleted.
11519 (find_single_entry_edge): Deleted.
11520 (find_single_exit_edge): Deleted.
11521 (create_single_entry_edge): Deleted.
11522 (sd_region_without_exit): Deleted.
11523 (create_single_exit_edge): Deleted.
11524 (unmark_exit_edges): Deleted.
11525 (mark_exit_edges): Deleted.
11526 (create_sese_edges): Deleted.
11527 (build_graphite_scops): Deleted.
11528 (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
11529 (build_scops): Use the new scop_builder to build scops.
11530 (dot_all_scops_1): Use the new pretty printer. Print loop father
11532 (loop_body_is_valid_scop): New. Return true if loop body is a
11534 (class scop_builder): New. Builds SCoPs for polyhedral
11536 (scop_builder): New constructor.
11537 (static sese_l invalid_sese): sese_l with invalid edges.
11538 (get_sese): Get an sese (from a loop) if possible, invalid_sese
11540 (get_nearest_dom_with_single_entry): Get nearest dominator of a
11541 basic_block with single entry. Return NULL if we get to the
11542 beginning of a function.
11543 (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
11544 a basic_block with single exit. Return NULL if we get to the
11545 beginning of a function.
11546 (print_sese): Pretty-print SESE.
11547 (merge_sese): Merge two SESEs if possible and return the new SESE.
11548 (build_scop_depth): Start building the SCoP within a loop nest.
11549 (build_scop_breadth): Start building the SCoP at a single loop
11550 depth. Merge adjacent SESEs if valid.
11551 (can_represent_loop_1): Returns true if Graphite can represent
11552 loop inside SCoP. Helper for can_represent_loop.
11553 (can_represent_loop): Returns true if Graphite can represent LOOP
11554 and all its nested loops in SCoP.
11555 (loop_is_valid_scop): Returns true if LOOP and all its nests
11556 constitute a valid SCoP.
11557 (region_has_one_loop): Returns true of a region has only one loop.
11558 (add_scop): Add SCoP to the list of valid scops. Removes an
11559 already existing scop if it intersects with or subsumed by this one.
11560 (harmful_stmt_in_region): Returns true if SCoP has any statment
11561 which cannot be represented by Graphite.
11562 (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
11563 (remove_subscops): Remove any SCoP from the list of already found
11564 SCoPs, if subsumed by S1.
11565 (intersects): Return true if region bounded by SCoPs S1 and S2
11567 (remove_intersecting_scops): Remove any SCoP which intersects with S1.
11568 * graphite.c (print_graphite_scop_statistics):
11569 (print_graphite_statistics): Print SCoP info while debugging.
11570 (graphite_initialize): Early exit in case number of loops in a
11571 function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
11572 basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
11573 (graphite_finalize):
11574 * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
11575 * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
11576 (recompute_all_dominators): Recalculate POST_DOMINATORS.
11577 * tree-cfg.c (print_loops): Print the function name while printing
11580 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
11581 Sebastian Pop <s.pop@samsung.com>
11583 PR tree-optimization/67700
11584 * graphite-sese-to-poly.c (parameter_index_in_region): Call
11585 invariant_in_sese_p_rec.
11586 (extract_affine): Same.
11587 (rewrite_cross_bb_scalar_deps): Call update_ssa.
11588 * sese.c (invariant_in_sese_p_rec): Export. Handle vdefs and vuses.
11589 * sese.h (invariant_in_sese_p_rec): Declare.
11591 2015-09-28 David Wohlferd <dw@LimeGreenSocks.com>
11593 * doc/extend.texi (Asm Labels): Break out text for data vs functions.
11595 2015-09-28 Jiong Wang <jiong.wang@arm.com>
11598 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11599 Jiong Wang <jiong.wang@arm.com>
11601 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
11602 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
11603 (REG_CLASS_NAMES): Likewise.
11604 (REG_CLASS_CONTENTS): Likewise.
11605 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
11606 (aarch64_register_move_cost): Likewise.
11607 (aarch64_load_symref_appropriately): Invoke the new added pattern if
11609 * config/aarch64/constraints.md (Uc0): New constraint.
11611 2015-09-28 Daniel Hellstrom <daniel@gaisler.com>
11613 * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
11615 2015-09-28 David Edelsohn <dje.gcc@gmail.com>
11617 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
11618 SECTION_EXCLUDE in XO mapping class.
11620 2015-09-28 Oleg Endo <olegendo@gcc.gnu.org>
11623 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
11624 and handle ne and eq codes.
11625 * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
11626 (sh_recog_treg_set_expr): Early accept negt_reg_operand. Eearly reject
11627 CONST_INT_P. Use reverse_condition.
11628 (sh_split_treg_set_expr): Likewise.
11630 2015-09-28 James Greenhalgh <james.greenhalgh@arm.com>
11632 * config/arm/types.md (type): Add rotate_imm.
11633 * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
11634 ROR immediate case.
11635 (*rorsi3_insn_uxtw): Likewise.
11636 * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
11637 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
11638 * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
11640 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11642 PR rtl-optimization/67481
11643 * ifcvt.c (contains_ccmode_rtx_p): New function.
11644 (insn_valid_noce_process_p): Use it.
11646 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11648 PR rtl-optimization/67456
11649 PR rtl-optimization/67464
11650 PR rtl-optimization/67465
11651 * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
11652 move in the mode of x. Handle combination of complex and simple
11653 block pairs as well as the case when one is empty.
11655 2015-09-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11657 * doc/gimple.texi: Update references to gimple_statement_base.
11658 * gdbhooks.py: Likewise.
11659 * gimple.h: Likewise.
11661 2015-09-28 Daniel Cederman <cederman@gaisler.com>
11663 * config/sparc/driver-sparc.c: map LEON to leon3
11665 2015-09-28 Daniel Cederman <cederman@gaisler.com>
11667 * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
11668 and make it inverse to change default
11669 * config/sparc/sync.md: Only use supervisor ASI for CASA when in
11671 * doc/invoke.texi: Document change of default
11673 2015-09-28 Daniel Cederman <cederman@gaisler.com>
11675 * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
11676 true on %f0 for a target without FPU.
11677 * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
11679 (untyped_return): Do not load %f0 for a target without FPU.
11681 2015-09-28 Andrew Pinski <apinski@cavium.com>
11683 * config/aarch64/aarch64.md (prefetch):
11684 Change the predicate of operand 0 to register_operand.
11686 2015-09-27 Uros Bizjak <ubizjak@gmail.com>
11688 * config/i386/predicates.md (register_sse4nonimm_operand): New
11690 * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
11691 (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
11692 Use register_sse4nonimm_operand as operand 0 predicate.
11693 (*vec_extractv8hi_sse2): Remove insn pattern.
11694 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
11695 *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
11697 2015-09-27 Oleg Endo <olegendo@gcc.gnu.org>
11698 Kaz Kojima <kkojima@gcc.gnu.org>
11701 * config/sh/sh-protos.h (sh_lra_p): Declare.
11702 * config/sh/sh.c (sh_lra_p): Make non-static.
11703 * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
11704 arith_reg_operand for operands[1]. Remove TARGET_SHMEDIA case.
11705 Expand into addsi3_scr if operands[2] if needed.
11706 (*addsi3_compact): Rename to *addsi3_compact_lra. Use
11707 arith_reg_operand for operands[1]. Allow it only when LRA is enabled.
11708 (addsi3_scr, *addsi3): New insn_and_split patterns.
11710 2015-09-27 Alexandre Oliva <aoliva@redhat.com>
11712 PR rtl-optimization/64164
11713 PR tree-optimization/67312
11714 PR middle-end/67340
11715 PR middle-end/67490
11717 * cfgexpand.c (parm_in_stack_slot_p): Remove.
11718 (ssa_default_def_partition): Remove.
11719 (get_rtl_for_parm_ssa_default_def): Remove.
11720 (set_rtl): Check that RTL assignments match expectations.
11721 Loop on SUBREGs, CONCATs and PARALLELs subexprs. Set only the
11722 default def location for params and results. Record SSA names
11723 or types in REG and MEM attrs, respectively.
11724 (set_parm_rtl): New.
11725 (expand_one_ssa_partition): Drop logic that assigned MEMs with
11726 unassigned addresses.
11727 (adjust_one_expanded_partition_var): Don't accept NULL RTL on
11728 deferred stack alloc vars.
11729 (expand_used_vars): Skip partitions holding parm default defs.
11730 Move adjust_one_expanded_partition_var loop...
11731 (pass_expand::execute): ... here. Drop redundant assert.
11732 Adjust comments before the final loop over all ssa names.
11733 Require assigned rtl of parms and results to match exactly.
11734 Reset its attributes to match them, not any other variables in
11735 the same partition.
11736 (expand_debug_expr): Use entry value for PARM's default defs
11737 only iff they have zero nondebug uses.
11738 * cfgexpand.h (parm_in_stack_slot_p): Remove.
11739 (get_rtl_for_parm_ssa_default_def): Remove.
11740 (set_parm_rtl): Declare.
11741 * doc/invoke.texi: Improve wording.
11742 * explow.c (promote_decl_mode): Fix promote_function_mode for
11743 result decls not by reference.
11744 (promote_ssa_mode): Disregard BLKmode from promote_decl, and
11745 bypass TYPE_MODE to get the actual vector mode.
11746 * function.c: Include tree-dfa.h. Revert 2015-08-14's and
11747 2015-08-19's changes as follows. Drop include of
11748 basic-block.h and df.h.
11749 (rtl_for_parm): Remove.
11750 (maybe_reset_rtl_for_parm): Remove.
11751 (parm_in_unassigned_mem_p): Remove.
11752 (use_register_for_decl): Add logic for RESULT_DECLs matching
11753 assign_parms' behavior.
11754 (split_complex_args): Revert.
11755 (assign_parms_augmented_arg_list): Revert. Add comment
11756 referencing the logic above.
11757 (assign_parm_adjust_stack_rtl): Revert.
11758 (assign_parm_setup_block): Revert. Use set_parm_rtl instead
11759 of SET_DECL_RTL. Set up a REG if the parm demands so.
11760 (assign_parm_setup_reg): Revert. Consolidated SET_DECL_RTL
11761 calls into a single set_parm_rtl. Set up a temporary RTL
11762 temporarily for expand_assignment.
11763 (assign_parm_setup_stack): Revert. Use set_parm_rtl.
11764 (assign_parms_unsplit_complex): Revert. Use set_parm_rtl.
11765 (assign_bounds): Revert.
11766 (assign_parms): Revert. Use set_parm_rtl.
11767 (allocate_struct_function): Relayout result and parms of
11768 non-abstruct functions.
11769 (expand_function_start): Revert. Use set_parm_rtl. If the
11770 result is not a hard reg, create a pseudo from the promoted
11771 mode of the default def. Promote static chain mode.
11772 * tree-outof-ssa.c (remove_ssa_form): Drop unused
11773 partition_has_default_def. Set up
11774 partitions_for_parm_default_defs.
11775 (finish_out_of_ssa): Remove partition_has_default_def.
11776 Release partitions_for_parm_default_defs.
11777 * tree-outof-ssa.h (struct ssaexpand): Remove
11778 partition_has_default_def. Add
11779 partitions_for_parm_default_defs.
11780 * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
11782 (build_ssa_conflict_graph): Fix conflict-detection of default
11783 defs of even unused default defs of params and results.
11784 (for_all_parms): New.
11785 (create_default_def): New.
11786 (register_default_def): New.
11787 (coalesce_with_default): New.
11788 (create_outofssa_var_map): Create default defs for all parms
11789 and results, and register their partitions. Add GIMPLE_RETURN
11790 operands as coalesce candidates with results. Add default
11791 defs of each parm or result as coalesce candidates with its
11792 other defs. Mark each result def, and each default def of
11793 parms, as used_in_copy.
11794 (gimple_can_coalesce_p): Call it. Call use_register_for_decl
11795 with the ssa names, even anonymous ones. Drop
11796 parm_in_stack_slot_p calls. Require same signedness and
11798 (coalesce_ssa_name): Add coalesce candidates for all defs of
11799 each parm and result, even unused ones.
11800 (parm_default_def_partition_arg): New type.
11801 (set_parm_default_def_partition): New.
11802 (get_parm_default_def_partitions): New.
11803 * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
11804 * tree-ssa-live.c (partition_view_init): Regard unused defs of
11805 parms and results as used.
11806 (verify_live_on_entry): Don't error out just because they're
11809 2015-09-26 David Edelsohn <dje.gcc@gmail.com>
11811 * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
11812 (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
11813 (output_fde): Don't output length for debug_frame on AIX.
11814 (output_call_frame_info): Don't output length for debug_frame on AIX.
11815 (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
11816 HAVE_XCOFF_DWARF_EXTRAS.
11817 (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
11818 HAVE_XCOFF_DWARF_EXTRAS.
11819 (output_compilation_unit_header): Don't output length on AIX.
11820 (output_pubnames): Don't output length on AIX.
11821 (output_aranges): Delete argument. Compute length locally. Don't
11822 output length on AIX.
11823 (output_line_info): Don't output length on AIX.
11824 (dwarf2out_finish): Don't compute aranges_length.
11825 * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
11826 (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
11827 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
11828 symbol decoration for AIX.
11829 (rs6000_xcoff_debug_unwind_info): New.
11830 (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
11832 (rs6000_xcoff_declare_function_name): Emit different
11833 .function pseudo-op when DWARF2_DEBUG. Don't call
11834 xcoffout_declare_function for DWARF2_DEBUG.
11835 * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
11837 * config/rs6000/aix71.h: New.
11838 * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
11840 * configure: Regenerate.
11841 * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
11844 2015-09-26 Jeff Law <law@redhat.com>
11846 * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
11848 * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
11851 * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
11854 * config/mips/mips.c (mips_compute_frame_info): Fix left shift
11855 undefined behaviour.
11857 * config/cris/cris.md (asrandb): Fix left shift undefined
11859 (asrandw): Likewise.
11861 2015-09-25 Vladimir Makarov <vmakarov@redhat.com>
11864 * lra-constarints.c (match_reload): Check presence of the input pseudo
11865 in the output operand.
11867 2015-09-25 Tobias Burnus <burnus@net-b.de>
11869 * doc/invoke.texi (-fsanitize): Minor wording tweak.
11871 2015-09-25 Tobias Burnus <burnus@net-b.de>
11873 * doc/invoke.texi (-fsanitize): Update URLs.
11875 2015-09-25 Teresa Johnson <tejohnson@google.com>
11877 * opts.c (finish_options): Unset -freorder-blocks-and-partition
11878 if not using profile.
11880 2015-09-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
11882 PR pretty-print/67567
11883 * pretty-print.c (pp_string): Add gcc_checking_assert.
11884 * pretty-print.h (output_buffer_append_r): Likewise.
11886 2015-09-25 Oleg Endo <olegendo@gcc.gnu.org>
11889 * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
11890 addr2 individually. Don't emit logical or insn if one is known to
11891 be aligned approriately.
11892 (sh_expand_cmpnstr): Likewise.
11894 2015-09-25 Richard Sandiford <richard.sandiford@arm.com>
11896 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
11897 __builtin_aarch64_fp[sc]r arguments into a register.
11899 2015-09-25 H.J. Lu <hongjiu.lu@intel.com>
11901 * config.gcc (x86_archs): Replace lakemount with lakemont.
11902 (with_cpu): Likewise.
11903 (with_arch): Likewise.
11904 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
11905 PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT. Replace
11906 __tune_lakemount__ with __tune_lakemont__.
11907 * config/i386/i386.c (lakemount_cost): Renamed to ...
11908 (lakemont_cost): This.
11909 (m_LAKEMOUNT): Renamed to ...
11910 (m_LAKEMONT): This.
11911 (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
11912 (processor_target_table): Replace "lakemount" with "lakemont".
11913 (processor_alias_table): Likewise.
11914 (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
11915 PROCESSOR_LAKEMONT.
11916 (ix86_adjust_cost): Likewise.
11917 (ia32_multipass_dfa_lookahead): Likewise.
11918 * config/i386/i386.h (processor_type): Likewise.
11919 * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
11920 * doc/invoke.texi: Replace lakemount with lakemont. Replace
11921 Lakemount with Lakemont.
11923 2015-09-24 H.J. Lu <hongjiu.lu@intel.com>
11925 * config.gcc (x86_archs): Replace iamcu with lakemount.
11926 (with_cpu): Likewise.
11927 (with_arch): Likewise.
11928 * doc/invoke.texi: Likewise.
11929 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
11930 PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT. Replace
11931 __tune_iamcu__ with __tune_lakemount__.
11932 * config/i386/i386.c (iamcu_cost): Renamed to ...
11933 (lakemount_cost): This.
11934 (m_IAMCU): Renamed to ...
11935 (m_LAKEMOUNT): This.
11936 (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
11937 (processor_target_table): Replace "iamcu" with "lakemount".
11938 (processor_alias_table): Likewise.
11939 (ix86_issue_rate): Replace PROCESSOR_IAMCU with
11940 PROCESSOR_LAKEMOUNT.
11941 (ix86_adjust_cost): Likewise.
11942 (ia32_multipass_dfa_lookahead): Likewise.
11943 * config/i386/i386.h (processor_type): Likewise.
11944 * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
11946 2015-09-24 John David Anglin <danglin@gcc.gnu.org>
11948 * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
11949 * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
11951 * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
11952 (pa_expand_compare_and_swap_loop): New.
11953 (pa_maybe_emit_compare_and_swap_exchange_loop): New.
11954 * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
11955 atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
11956 (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
11957 (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
11960 2015-09-24 Michael Collison <michael.collison@linaro.org>
11963 * read-md.c (read_name): Allow mode iterators inside angle
11964 brackets in rtl expressions.
11966 2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
11969 * ira-color.c (update_allocno_cost): Add parameter.
11970 (update_costs_from_allocno): Decrease conflict cost. Pass the new
11973 2015-09-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
11976 * opts-common.c (prune_options): Discard all -fdiagnostics-color
11977 but the last one, which is moved to the front to be processed
11979 * opts.c (enable_warning_as_error): Reject options that do not
11982 2015-09-24 Jiong Wang <jiong.wang@arm.com>
11984 * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
11986 2015-09-24 Jiong Wang <jiong.wang@arm.com>
11988 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
11989 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
11990 (aarch64_cannot_force_const_mem): Likewise.
11991 (aarch64_classify_address): Likewise.
11992 (aarch64_classify_symbolic_expression): Likewise.
11993 (aarch64_print_operand): Likewise.
11994 (aarch64_classify_symbol): Likewise.
11995 (aarch64_mov_operand_p): Likewise.
11996 * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
11997 (aarch64_mov_operand): Likewise.
11999 2015-09-24 Segher Boessenkool <segher@kernel.crashing.org>
12001 * config/rs6000/rs6000.c (debug_stack_info): Invert the test
12002 for info->spe_gp_size.
12004 2015-09-24 Richard Biener <rguenther@suse.de>
12007 * lto-cgraph.c (compute_ltrans_boundary): Do not stream
12010 2015-09-24 Thomas Schwinge <thomas@codesourcery.com>
12012 * tree-object-size.c (plus_stmt_object_size)
12013 (cond_expr_object_size): Change the formal parameters from gimple
12015 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
12016 * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
12017 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
12019 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12021 * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
12022 Check for ld -type pie on Solaris 11.x and 12.
12023 * configure: Regenerate.
12024 * config.in: Regenerate.
12026 * gcc.c (LD_PIE_SPEC): Allow redefinition.
12028 * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
12029 (STARTFILE_SPEC): Use it.
12030 (ENDFILE_CRTEND_SPEC): Define.
12031 (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
12032 (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
12033 ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
12034 [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
12035 (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
12036 * config/i386/sol2.h (ENDFILE_SPEC): Remove.
12037 (ENDFILE_ARCH_SPEC): Define.
12038 * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
12040 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12042 * configure.ac (gcc_cv_solaris_crts): New test.
12043 * configure. Regenerate.
12044 * config.in: Regenerate.
12045 * config/sol2.h (STARTFILE_SPEC): Simplify, provide
12046 HAVE_SOLARIS_CRTS variant.
12048 2015-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12050 * tree-inline.h (count_insns_seq): Delete prototype.
12051 (estimate_num_insns_seq): Define prototype.
12052 * tree-inline.c (count_insns_seq): Delete.
12053 (estimate_num_insns_seq): Remove static qualifier.
12054 * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
12055 with estimate_num_insns_seq.
12057 2015-09-24 Richard Biener <rguenther@suse.de>
12059 * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
12061 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
12062 and base for MEM_REF and TARGET_MEM_REF. Handle BIT_FIELD_REF
12064 (ao_ref_init_from_vn_reference): Record clique and base in the
12066 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
12068 2015-09-24 Richard Biener <rguenther@suse.de>
12070 PR tree-optimization/48885
12071 * tree-ssa-structalias.c (visit_loadstore): Handle default defs
12072 as not including any restrict tags from other pointers.
12074 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
12076 * gcc.c (handle_foffload_option): Don't lose the trailing NUL
12077 character when appending to offload_targets.
12079 * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
12080 offload targets by commas, not colons.
12081 * config.in: Regenerate.
12082 * configure: Likewise.
12083 * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
12084 instead of setting up the default offload targets here...
12085 (process_command): ..., do it here.
12087 * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
12088 targets are separated by commas.
12089 * config.h.in: Regenerate.
12091 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
12092 Nathan Sidwell <nathan@codesourcery.com>
12094 * omp-low.h (omp_reduction_init_op): Declare.
12095 * omp-low.c (omp_reduction_init_op): New, broken out of ...
12096 (omp_reduction_init): ... here. Call it.
12097 * tree-parloops.c (initialize_reductions): Use
12098 omp_reduction_init_op.
12100 2015-09-23 Richard Biener <rguenther@suse.de>
12102 PR middle-end/67662
12103 * fold-const.c (fold_binary_loc): Do not reassociate two vars with
12104 undefined overflow unless they will cancel out.
12106 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
12108 * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
12111 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
12114 * opts.h (write_langs): Declare.
12115 * opts-global.c (write_langs): Make it extern.
12117 2015-09-23 Oleg Endo <olegendo@gcc.gnu.org>
12120 * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
12121 overlapping regs when matching the pattern.
12123 2015-09-23 James Greenhalgh <james.greenhalgh@arm.com>
12125 * config/aarch64/aarch64-simd.md
12126 (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
12127 (aarch64_float_truncate_hi_v4sf_le): New.
12128 (aarch64_float_truncate_hi_v4sf_be): Likewise.
12130 2015-09-23 Richard Biener <rguenther@suse.de>
12132 * tree-ssa-structalias.c (intra_create_variable_infos): Build
12133 representatives for all restrict qualified pointer destinations.
12135 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
12137 * config/i386/i386.md (define_code_attr mshift): New.
12138 (define_mode_iterator SWI1248_AVX512BW): Rename ...
12139 (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
12141 (define_insn "*k<logic><mode>"): Use new iterator name.
12142 (define_insn "*<mshift><mode>3"): New.
12144 2015-09-23 Mikhail Maltsev <maltsevm@gmail.com>
12146 PR middle-end/67649
12147 * memory-block.h (memory_block_pool::allocate): Use valgrind API to
12148 mark the block as accessible.
12150 2015-09-22 Segher Boessenkool <segher@kernel.crashing.org>
12152 * function.c (thread_prologue_and_epilogue_insns): Delete
12153 orig_entry_edge argument to try_shrink_wrapping.
12154 * shrink-wrap.c (can_get_prologue): New function.
12155 (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
12156 (try_shrink_wrapping): Delete orig_entry_edge argument. Use
12157 can_get_prologue where needed. Remove code that finds a single
12158 edge for the prologue. Remove code that tests if any reg clobbered
12159 by the prologue is live on the prologue edge. Remove code that finds
12160 the new prologue edge after duplicating blocks. Make a new prologue
12162 * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
12164 2015-09-22 Jeff Law <law@redhat.com>
12166 * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
12169 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
12171 * doc/invoke.texi (-Wmultiple-inheritance, -Wvirtual-inheritance,
12172 -Wtemplates, -Wnamespaces): Document.
12174 2015-09-22 Tom de Vries <tom@codesourcery.com>
12176 PR tree-optimization/67671
12177 * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
12178 pointer references as restrict.
12180 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
12182 * config/nios2/nios2.c (nios2_legitimize_address): When handling
12183 'reg + reloc' cases, allow first operand to be non-REG, and use
12184 force_reg() to enforce address pattern.
12186 2015-09-22 Alexander Fomin <alexander.fomin@intel.com>
12189 * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
12190 (define_mode_iterator VI12_AVX_AVX512F): New.
12191 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
12192 all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
12193 (define_insn "*<code><mode>3"): ... Into new pattern using
12194 VI12_AVX_AVX512F iterators without masking.
12196 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
12198 * config.gcc: Support "skylake-avx512".
12199 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
12200 PROCESSOR_SKYLAKE_AVX512.
12201 * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
12202 (processor_target_table): Add "skylake-avx512".
12203 (PTA_SKYLAKE_AVX512): Define.
12204 (ix86_option_override_internal): Add "skylake_avx512".
12205 (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
12206 F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
12207 * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
12208 (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
12209 * doc/invoke.texi (skylake-avx512): New.
12211 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
12213 * config/i386/i386.md (define_insn "kunpckhi"): Fix
12214 operand in pattern.
12215 (define_insn "kunpcksi"): Ditto.
12216 (define_insn "kunpckdi"): Ditto.
12218 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
12220 * config/i386/i386.md (define_split not/xor SWI1248x): Use
12221 iterator instead of fixed modes.
12223 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
12225 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
12226 Adjust declaration.
12227 * config/aarch64/aarch64.c (aarch64_emit_bic): New.
12228 (aarch64_gen_atomic_ldop): Adjust comment. Add parameter
12229 out_result. Update to support update-fetch operations.
12230 * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
12231 Adjust for change to aarch64_gen_atomic_ldop.
12232 (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
12233 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
12234 (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
12235 (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
12236 (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
12238 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
12240 * config/aarch64/aarch64-protos.h
12241 (aarch64_atomic_ldop_supported_p): Declare.
12242 * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
12243 (enum aarch64_atomic_load_op_code): New.
12244 (aarch64_emit_atomic_load_op): New.
12245 (aarch64_gen_atomic_ldop): Update to support load-operate
12247 * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
12249 (aarch64_atomic_<atomic_optab><mode>): New.
12250 (aarch64_atomic_<atomic_optab><mode>_lse): New.
12251 (atomic_fetch_<atomic_optab><mode>): Change to an expander.
12252 (aarch64_atomic_fetch_<atomic_optab><mode>): New.
12253 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
12255 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
12257 * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
12258 (UNSPECV_ATOMIC_LDOP_OR): New.
12259 (UNSPECV_ATOMIC_LDOP_BIC): New.
12260 (UNSPECV_ATOMIC_LDOP_XOR): New.
12261 (UNSPECV_ATOMIC_LDOP_PLUS): New.
12262 (ATOMIC_LDOP): New.
12263 (atomic_ldop): New.
12264 (aarch64_atomic_load<atomic_ldop><mode>): New.
12266 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
12268 * config/aarch64/aarch64.md
12269 (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
12272 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
12274 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
12276 * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
12277 (aarch64_gen_atomic_ldop): New.
12278 (aarch64_split_atomic_op): Fix whitespace and add a comment.
12279 * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
12280 (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
12281 (atomic_exchange<mode>): Replace with an expander.
12282 (aarch64_atomic_exchange<mode>): New.
12283 (aarch64_atomic_exchange<mode>_lse): New.
12284 (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
12285 (aarch64_atomic_swp<mode>): New.
12287 2015-09-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
12289 * tree-inline.c (expand_call_inline): Use inform for extra note.
12290 Do not give a note with UNKNOWN_LOCATION.
12291 Replace input_location with gimple_location (stmt).
12292 Use true/false instead of TRUE/FALSE.
12294 2015-09-22 Tom de Vries <tom@codesourcery.com>
12296 PR tree-optimization/67666
12297 * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
12298 with single field non-conservative.
12300 2015-09-21 David S. Miller <davem@davemloft.net>
12304 2015-09-11 David S. Miller <davem@davemloft.net>
12306 * config/sparc/constraints.md: Make "U" constraint a real register
12308 * config/sparc/sparc.c (TARGET_LRA_P): Define.
12309 (D_MODES, DF_MODES): Add missing cast.
12310 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
12311 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
12312 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
12314 * config/sparc/sparc.h (PROMOTE_MODE): Define.
12315 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
12316 provide these insn when flag_pic.
12318 2015-09-17 David S. Miller <davem@davemloft.net>
12320 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
12322 * config/sparc/sparc.c (sparc_secondary_memory_needed): New
12324 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
12325 (HARD_REGNO_CALLER_SAVE_MODE): Define.
12326 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
12327 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
12328 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
12329 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
12330 provide when flag_pic.
12332 2015-09-21 Jeff Law <law@redhat.com>
12334 * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
12337 2015-09-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12339 * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
12341 2015-09-21 Richard Biener <rguenther@suse.de>
12343 * passes.c (rest_of_decl_compilation): Do not call
12344 dwarf2out_early_global_decl for aliases.
12346 2015-09-21 Richard Biener <rguenther@suse.de>
12349 * dwarf2out.c (add_location_or_const_value_attribute): Remove
12350 attribute parameter. Early exit if either DW_AT_const_value
12351 or DW_AT_location are present already.
12352 (gen_variable_die): Adjust caller.
12353 (dwarf2out_late_global_decl): Likewise.
12355 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
12358 * config/sh/sh.c (sh_remove_overlapping_post_inc,
12359 sh_peephole_emit_move_insn): Add new functions.
12360 * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
12361 sh_peephole_emit_move_insn): Declere them.
12362 * config/sh/sh.md: Use them in various peephole2 patterns.
12364 2015-09-21 Richard Biener <rguenther@suse.de>
12366 PR middle-end/67651
12367 * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
12368 address with -fno-delete-null-pointer-checks.
12370 2015-09-21 Alan Lawrence <alan.lawrence@arm.com>
12372 * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
12373 (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
12374 (reduc_uplus_v16qi): Remove.
12376 * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
12377 (reduc_<VEC_reduc_name>_v2df): Remove.
12378 (reduc_<VEC_reduc_name>_v4sf): Remove.
12379 (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
12381 * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
12382 gen_ function by removing * prefix.
12383 (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
12385 2015-09-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
12387 PR middle-end/60832
12388 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
12389 Print i_bound without converting it to a tree.
12391 2015-09-21 Bilyan Borisov <bilyan.borisov@arm.com>
12393 * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
12394 operands[4] operands[5] swap with std::swap, removed tmp variable.
12395 (arm_evpc_neon_vzip): Replaced in0/in1 and
12396 out0/out1 swaps with std::swap, removed x variable.
12397 (arm_evpc_neon_vtrn): Replaced in0/int1 and
12398 out0/out1 swaos with std::swap, removed x variable.
12399 (arm_expand_vec_perm_const_1): Replaced
12400 d->op0/d->op1 swap with std::swap, removed x variable.
12401 (arm_evpc_neon_vuzp): Replaced in0/in1 and
12402 out0/out1 swaps with std::swap, removed x variable.
12404 2015-09-21 Jonathan Yong <10walls@gmail.com>
12406 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
12407 sysroot/usr/lib/32api for additional win32 libraries,
12408 fixes failing Cygwin bootstrapping.
12410 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
12412 * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
12414 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
12417 * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
12418 (*mov_t_msb_neg): Rewrite negc pattern.
12420 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
12422 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
12423 immediate generation code.
12425 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
12427 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
12428 redundant immediate generation code.
12430 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
12432 * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
12433 (AARCH64_NUM_BITMASKS): Remove.
12434 (aarch64_bitmasks_cmp): Remove.
12435 (aarch64_build_bitmask_table): Remove.
12437 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
12439 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
12440 slow immediate matching loops with a faster algorithm.
12442 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
12444 * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
12447 2015-09-20 Jeff Law <law@redhat.com>
12449 PR tree-optimization/47679
12450 * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
12451 * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
12452 * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
12453 (thread_through_normal_block): Use record_temporary_equivalences.
12455 2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
12457 * coretypes.h (gimple): Change typedef to be a forward declaration.
12458 * gimple.h (gimple_statement_base): rename to gimple.
12459 * (all functions and types using gimple): Adjust.
12460 * *.[ch]: Likewise.
12462 2015-09-19 Andrew Dixie <andrewd@gentrack.com>
12463 David Edelsohn <dje.gcc@gmail.com>
12465 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
12466 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
12467 (EH_FRAME_THROUGH_COLLECT2): Define.
12468 (EH_TABLES_CAN_BE_READ_ONLY): Define.
12469 (ASM_OUTPUT_DWARF_PCREL): Define.
12470 (ASM_OUTPUT_DWARF_DATAREL): Define.
12472 2015-09-19 John David Anglin <danglin@gcc.gnu.org>
12474 * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
12477 2015-09-18 Jeff Law <law@redhat.com>
12479 PR tree-optimization/47679
12480 * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped. Move
12482 (dom_opt_dom_walker): New private member holding the avail_exprs_stack
12483 object. Update constructor.
12484 (pass_dominator::execute): Corresponding chagnes to declaration
12485 and initialization of avail_exprs_stack. Update constructor call
12486 for dom_opt_dom_walker object.
12487 (lookup_avail_expr, record_cond): Accept additional argument. Pass
12488 it down to children as needed.
12489 (record_equivalences_from_incoming_edge): Likewise.
12490 (eliminate_redundant_computations): Likewise.
12491 (record_equivalences_from_stmt): Likewise.
12492 (simplify_stmt_for_jump_threading): Likewise.
12493 (record_temporary_equivalences): Likewise.
12494 (optimize_stmt): Likewise.
12495 (dom_opt_dom_walker::thread_across_edge): Update access to
12496 avail_exprs_stack object and pass it to children as needed.
12497 (dom_opt_dom_walker::before_dom_children): Similarly.
12498 (dom_opt_dom_walker::after_dom_children): Similarly.
12499 * tree-ssa-threadedge.c (pfn_simplify): New typedef.
12500 (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
12501 Add avail_expr_stack argument. Pass it to children as needed.
12502 (dummy_simplify): Likewise.
12503 (simplify_control_stmt_condition): Likewise.
12504 (thread_around_empty_blocks): Likewise.
12505 (thread_through_normal_block): Likewise.
12506 (thread_across_edge): Likewise.
12507 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
12508 * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
12510 PR tree-optimization/47679
12511 * tree-ssa-dom.c (const_and_copies): No longer file scoped. Move
12513 (dom_opt_dom_walker): New private member holding the const_and_copies
12514 object. Update constructor.
12515 (pass_dominator::execute): Corresponding changes to declaration
12516 and initialization of const_and_copies. Update constructor call
12517 for the dom_opt_dom_walker object.
12518 (record_temporary_equivalences): Accept const_and_copies argument
12519 pass it down to children as needed.
12520 (record_equality): Likewise.
12521 (record_equivalences_from_incoming_edge): Likewise.
12522 (cprop_into_successor_phis, optimize_stmt): Likewise.
12523 (eliminate_redundant_computations): Likewise.
12524 (dom_opt_dom_walker::thread_across_edge): Update access to
12525 const_and_copies object and pass it to children as needed.
12526 (dom_opt_dom_walker::before_dom_children): Similarly.
12527 (dom_opt_dom_walker::after_dom_children): Similarly.
12529 PR tree-optimization/47679
12530 * tree-ssa-dom.c (avail_exprs): No longer file scoped. Bury
12531 it into the avail_exprs_stack class.
12532 (pass_dominator::execute): Corresponding changes to declaration
12533 and initialization of avail_exprs. Pass avail_exprs to
12534 dump_dominator_optimization_stats.
12535 (record_cond): Extract avail_exprs from avail_exprs_stack.
12536 (lookup_avail_expr): Similarly.
12537 (htab_staticstics): Remove unnecessary prototype. Move to earlier
12539 (dump_dominator_optimization_stats): Make static and prototype.
12540 Add argument for the hash table to dump.
12541 (debug_dominator_optimization_stats): Remove.
12542 * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
12544 (debug_dominator_optimization_stats): Similarly.
12545 * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
12546 "void" in prototype for pop_to_marker method. Add accessor method
12547 for the underlying avail_exprs table.
12549 * tree-ssa-threadedge.c: Remove trailing whitespace.
12551 2014-09-18 John David Anglin <danglin@gcc.gnu.org>
12553 * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
12555 (pa_ldil_cint_p): Likewise.
12556 * config/pa/pa.c (pa_cint_ok_for_move): likewise.
12557 (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
12559 * config/pa/pa.md: Likewise.
12561 2015-09-18 David Malcolm <dmalcolm@redhat.com>
12563 * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
12564 * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
12565 (diagnostic_show_locus): Likewise.
12566 (diagnostic_print_caret_line): Likewise.
12567 * diagnostic-show-locus.c: New file.
12569 2015-09-18 David Edelsohn <dje.gcc@gmail.com>
12571 * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
12572 "back" parameter. Declare label in #if block.
12574 2015-09-18 Uros Bizjak <ubizjak@gmail.com>
12576 PR middle-end/67619
12577 * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
12578 the address to a register.
12580 2015-09-18 Jeff Law <law@redhat.com>
12582 PR tree-optimization/47679
12583 * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
12584 * tree-ssa-dom.c: Remove unnecessary header includes.
12585 (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
12586 (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
12587 (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
12588 (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
12589 (pass_phi_only_cprop::execute): Likewise.
12590 (make_pass_phi_only_cprop): Likewise.
12591 * tree-ssa-phionlycprop.c: New file with moved code. Eliminate
12592 uses of file scoped statics by passing the required objects
12593 as parameters wherever needed.
12595 2015-09-18 Andrew Dixie <andrewd@gentrack.com>
12596 David Edelsohn <dje.gcc@gmail.com>
12598 * defaults.h (EH_FRAME_SECTION_NAME): Depend on
12599 EH_FRAME_THROUGH_COLLECT2.
12600 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
12602 * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
12603 even if EH_FRAME_SECTION_NAME is undefined. Restrict special
12604 collect2 labels to EH_FRAME_THROUGH_COLLECT2.
12605 * except.c (switch_to_exception_section): Use a read-only section
12606 even if EH_FRAME_SECTION_NAME is undefined.
12607 * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
12608 * collect2.c (write_c_file_stat): Provide dbase on AIX.
12609 (scan_prog_file): Don't export __dso_handle nor
12610 __gcc_unwind_dbase.
12611 * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
12612 (EH_TABLES_CAN_BE_READ_ONLY): Define.
12613 (ASM_OUTPUT_DWARF_PCREL): Define.
12614 (ASM_OUTPUT_DWARF_DATAREL): Define.
12615 (EH_FRAME_THROUGH_COLLECT2): Define.
12616 (EH_FRAME_IN_DATA_SECTION): Delete.
12617 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
12618 * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
12620 (rs6000_asm_output_dwarf_datarel): Declare.
12621 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
12622 (rs6000_aix_asm_output_dwarf_datarel): New.
12623 (rs6000_xcoff_asm_init_sections): Don't set exception_section.
12624 * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
12625 (EH_FRAME_THROUGH_COLLECT2): Define.
12626 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
12627 (EH_FRAME_THROUGH_COLLECT2): Define.
12628 (EH_TABLES_CAN_BE_READ_ONLY): Define.
12629 * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
12630 (EH_FRAME_THROUGH_COLLECT2): New.
12631 (ASM_OUTPUT_DWARF_DATAREL): New.
12632 * doc/tm.texi: Regenerate.
12634 2015-09-18 Richard Biener <rguenther@suse.de>
12636 * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
12637 we're in early phase.
12638 (schedule_generic_params_dies_gen): Likewise.
12639 (gen_remaining_tmpl_value_param_die_attribute): Do only as much
12640 work as possible, retaining unhandled cases.
12641 (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
12642 clear out generic_type_instances at the end.
12643 (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
12644 (dwarf2out_early_finish): ... here. Do most of
12645 gen_remaining_tmpl_value_param_die_attribute here.
12647 2015-09-18 Alan Lawrence <alan.lawrence@arm.com>
12649 PR tree-optimization/67283
12650 * tree-sra.c (type_consists_of_records_p): Rename to...
12651 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
12652 (completely_scalarize_record): Rename to...
12653 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
12654 (scalarize_elem): New.
12655 (analyze_all_variable_accesses): Follow renamings.
12657 2015-09-18 Richard Biener <rguenther@suse.de>
12659 * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
12662 2015-09-18 Richard Biener <rguenther@suse.de>
12664 PR tree-optimization/66142
12665 * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
12666 treat MEM[&x] and x the same.
12667 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
12668 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
12669 when we simplified sth.
12670 (vn_reference_maybe_forwprop_address): Likewise.
12671 (valueize_refs_1): When we simplified through
12672 vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
12673 set valueized_anything to true.
12674 (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
12675 one ref kills the other instead of just a offset-based test.
12676 * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
12677 for the operand_equal_p test to compare bases and also compare
12680 2015-09-17 Christian Bruel <christian.bruel@st.com>
12682 * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
12684 2015-09-17 Richard Henderson <rth@redhat.com>
12687 * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
12688 pointers that encode the alignment of the object.
12690 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
12692 PR rtl-optimization/66790
12693 * df-problems.c (LIVE): Amend documentation.
12695 2015-09-17 Richard Sandiford <richard.sandiford@arm.com>
12697 * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
12699 (GTFILES): Replace optabs.c with optabs-libfunc.c.
12700 * genopinit.c (main): Add an include guard to insn-opinit.h.
12701 Protect the rtx_code parts with NUM_RTX_CODE.
12702 * optabs.h: Split parts out to...
12703 * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
12704 * optabs.c: Split parts out to...
12705 * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
12706 * cilk-common.c: Include optabs-query.h rather than optabs.h.
12707 * fold-const.c: Likewise.
12708 * target-globals.c: Likewise.
12709 * tree-if-conv.c: Likewise.
12710 * tree-ssa-forwprop.c: Likewise.
12711 * tree-ssa-loop-prefetch.c: Likewise.
12712 * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
12713 Remove unncessary include files.
12714 * tree-ssa-phiopt.c: Likewise.
12715 * tree-ssa-reassoc.c: Likewise.
12716 * tree-switch-conversion.c: Likewise.
12717 * tree-vect-data-refs.c: Likewise.
12718 * tree-vect-generic.c: Likewise.
12719 * tree-vect-loop.c: Likewise.
12720 * tree-vect-patterns.c: Likewise.
12721 * tree-vect-slp.c: Likewise.
12722 * tree-vect-stmts.c: Likewise.
12723 * tree-vrp.c: Likewise.
12724 * toplev.c: Include optabs-query.h and optabs-libfuncs.h
12725 rather than optabs.h.
12726 * expr.c: Include optabs-tree.h.
12727 * function.c: Likewise.
12729 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
12731 PR middle-end/65958
12732 * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
12733 * config/arm/arm-protos.h (output_probe_stack_range): Declare.
12734 * config/arm/arm.c: Include common/common-target.h.
12735 (use_return_insn): Return 0 if the static chain register was saved
12736 above a non-APCS frame.
12737 (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
12738 (struct scratch_reg): New.
12739 (get_scratch_register_on_entry): New function.
12740 (release_scratch_register_on_entry): Likewise.
12741 (arm_emit_probe_stack_range): Likewise.
12742 (output_probe_stack_range): Likewise.
12743 (arm_expand_prologue): Factor out code dealing with the IP register
12744 for nested function and adjust it for stack checking.
12745 Invoke arm_emit_probe_stack_range if static builtin stack checking
12747 (thumb1_expand_prologue): Sorry out if static builtin stack checking
12749 (arm_expand_epilogue): Add the saved static chain register, if any, to
12750 the amount of pre-pushed registers to pop.
12751 (arm_frame_pointer_required): Return true if static stack checking is
12752 enabled and we want to catch the exception with the EABI unwinder.
12753 * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
12754 (UNSPEC_PROBE_STACK_RANGE): Likewise.
12755 * config/arm/arm.md (probe_stack): New insn.
12756 (probe_stack_range): Likewise.
12758 2015-09-17 Richard Biener <rguenther@suse.de>
12760 * genmatch.c (parser::parse_expr): Improve error message
12761 for mis-placed flags.
12763 2015-09-17 Richard Biener <rguenther@suse.de>
12765 * passes.c (rest_of_decl_compilation): Always call early_global_decl
12766 debug hook when we created a varpool node.
12767 * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
12768 dwarf2out_early_global_decl, when not just add location or
12769 value attributes to existing DIEs.
12771 2015-09-17 James Greenhalgh <james.greenhalgh@arm.com>
12773 * config/aarch64/aarch64.md (copysigndf3): New.
12774 (copysignsf3): Likewise.
12776 2015-09-17 David S. Miller <davem@davemloft.net>
12778 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
12779 * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
12780 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
12781 (HARD_REGNO_CALLER_SAVE_MODE): Define.
12782 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
12783 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
12784 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
12785 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
12786 provide when flag_pic.
12788 2015-09-17 Kaz Kojima <kkojima@gcc.gnu.org>
12790 * config/sh/sh.c (label_ref_list_d_pool): Adjust to
12791 object_allocator change.
12793 2015-09-17 Bin Cheng <bin.cheng@arm.com>
12795 PR tree-optimization/66388
12796 * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
12797 (dump_iv): Dump no_overflow information.
12798 (alloc_iv): Initialize new field for struct iv.
12799 (mark_bivs): Count number of no_overflow bivs.
12800 (find_deriving_biv_for_expr, record_biv_for_address_use): New
12802 (idx_find_step): Call new functions above.
12803 (add_candidate_1, add_candidate): New paramter.
12804 (add_iv_candidate_for_biv): Add sizetype cand for BIV.
12805 (get_computation_aff): Simplify convertion of cand for BIV.
12806 (get_computation_cost_at): Step cand's base if necessary.
12808 2015-09-17 Bin Cheng <bin.cheng@arm.com>
12810 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
12812 (tree_simplify_using_condition): Ditto.
12813 (simplify_using_initial_conditions): Ditto.
12814 (loop_exits_before_overflow): Pass new argument to function
12815 simplify_using_initial_conditions. Remove case for type conversions
12817 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
12819 * tree-scalar-evolution.c (simple_iv): Simplify type conversions
12820 in iv base using loop initial conditions.
12822 2015-09-16 Jeff Law <law@redhat.com>
12824 PR tree-optimization/47679
12825 * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
12826 (free_all_edge_infos): Use it.
12827 (allocate_edge_info): Free preexisting edge info data.
12828 (pass_dominator::execute): Set up initial edge info structures.
12829 (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
12830 thread_across_edge.
12831 * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
12832 If non-null, then push/pop markers appropriately.
12833 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
12834 * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
12835 thread-across_edge.
12837 2015-09-16 James Bowman <james.bowman@ftdichip.com>
12839 * config/ft32/ft32.c: Fix the memory address space predicate.
12841 2015-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
12844 * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
12845 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
12847 2015-09-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
12849 * toplev.h (check_global_declaration): Remove declaration.
12850 * toplev.c (check_global_declaration): Move to ...
12851 * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
12852 (analyze_functions): Update call.
12854 2015-09-16 David S. Miller <davem@davemloft.net>
12856 * lra-constraints.c (simplify_operand_subreg): Do not assume that
12857 lowpart of a SUBREG has offset zero.
12859 2015-09-16 Jeff Law <law@redhat.com>
12861 PR tree-optimization/47679
12862 * tree-ssa-dom.c (enum expr_kind): Moved from here to
12863 tree-ssa-scopedtables.h.
12864 (struct hashable_expr, class expr_hash_elt): Likewise.
12865 (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
12866 Move associated methods into tree-ssa-scopedtables.c.
12867 (avail_expr_hash, initialize_expr_from_cond): Similarly.
12868 (hashable_expr_equal_p, add_expr_commutative): Likewise.
12869 (add_hashable_expr): Likewise.
12870 (record_cond): Delete element directly.
12871 * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
12872 private copy ctor and assignment operator methods.
12873 (expr_elt_hasher): Inline trivial methods.
12874 (initialize_expr_from_cond): Prototype.
12875 * tree-ssa-scopedtables.c: Add necessary includes, functions and
12876 methods that were previously in tree-ssa-dom.c. Improve various
12879 2015-09-16 Paolo Carlini <paolo.carlini@oracle.com>
12881 * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
12883 2015-09-16 Segher Boessenkool <segher@kernel.crashing.org>
12886 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
12889 2015-09-16 Richard Biener <rguenther@suse.de>
12891 PR middle-end/67253
12892 * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
12893 location of possibly shared trees.
12895 2015-09-16 Richard Biener <rguenther@suse.de>
12897 PR middle-end/67271
12898 * fold-const.c (native_encode_expr): Bail out on bogus offsets.
12900 2015-09-16 Eric Botcazou <ebotcazou@adacore.com>
12902 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
12903 offset and size computations instead of HOST_WIDE_INT.
12905 2015-09-16 Richard Biener <rguenther@suse.de>
12907 PR middle-end/67442
12908 * fold-const.c (extract_muldiv_1): Properly extend multiplication
12909 result before builting a tree via wide_int_to_tree.
12911 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
12913 * Makefile.in: Add memory-block.cc
12914 (pool_allocator::initialize): Use fixed block size.
12915 (pool_allocator::release): Use memory_block_pool.
12916 (pool_allocator::allocate): Likewise.
12917 * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
12919 * cfg.c (initialize_original_copy_tables): Likewise.
12920 * cselib.c (elt_list_pool, elt_loc_list_pool,
12921 cselib_val_pool): Likewise.
12922 * df-problems.c (df_chain_alloc): Likewise.
12923 * df-scan.c (df_scan_alloc): Likewise.
12924 * dse.c (cse_store_info_pool, rtx_store_info_pool,
12925 read_info_type_pool, insn_info_type_pool, bb_info_pool,
12926 group_info_pool, deferred_change_pool): Likewise.
12927 * et-forest.c (et_nodes, et_occurrences): Likewise.
12928 * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
12929 ipcp_agg_lattice_pool): Likewise.
12930 * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
12931 * ipa-profile.c (histogram_pool): Likewise.
12932 * ipa-prop.c (ipa_refdesc_pool): Likewise.
12933 * ira-build.c (live_range_pool, allocno_pool, object_pool,
12934 initiate_cost_vectors, pref_pool, copy_pool): Likewise.
12935 * ira-color.c (update_cost_record_pool): Likewise.
12936 * lra-lives.c (lra_live_range_pool): Likewise.
12937 * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
12938 * memory-block.cc: New file.
12939 * memory-block.h: New file.
12940 * regcprop.c (queued_debug_insn_change_pool): Use common block size.
12941 * sched-deps.c (sched_deps_init): Likewise.
12942 * sel-sched-ir.c (sched_lists_pool): Likewise.
12943 * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
12944 * tree-sra.c (access_pool): Likewise.
12945 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
12946 * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
12947 * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
12948 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
12949 * tree-ssa-strlen.c (strinfo_pool): Likewise.
12950 * tree-ssa-structalias.c (variable_info_pool): Likewise.
12951 * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
12952 location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
12954 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
12956 * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
12958 (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
12961 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
12963 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
12964 to pass TLS call argument, according to current ABI.
12965 * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
12966 callx0 for TLS call, according to current ABI.
12968 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
12970 * tree-eh.c (lower_try_finally_dup_block): Clear location information
12971 on stack restore statements.
12972 (decide_copy_try_finally): Do not consider a stack restore statement as
12973 coming from sources.
12975 2015-09-15 Uros Bizjak <ubizjak@gmail.com>
12977 * config/alpha/alpha.c (alpha_expand_block_clear): Use
12978 HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
12980 2015-09-15 Jeff Law <law@redhat.com>
12982 PR tree-optimization/47679
12983 * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
12984 methods and private members.
12985 (avail_exprs_stack): Similarly. Change type of global
12986 from a pair of expr_hash_elt_t to the new class.
12987 (expr_elt_hasher::hash): Corresponding changes.
12988 (expr_elt_hasher::equal): Similarly.
12989 (avail_expr_hash): Similarly.
12990 (pass_dominator::execute): Similarly.
12991 (dom_opt_dom_walker::thread_across_edge): Similarly.
12992 (record_cond): Similarly.
12993 (dom_opt_dom_walker::before_dom_children): Similarly.
12994 (dom_opt_dom_walker::after_dom_children): Similarly.
12995 (lookup_avail_expr): Likewise.
12996 (initialize_hash_element): Now a expr_hash_elt constructor.
12997 (initialize_hash_element_from_expr): Similarly.
12998 (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
12999 (free_expr_hash_elt): Call dtor for the element.
13000 (remove_local_expressions_from_table): Now the "pop_to_marker"
13001 method in the available_exprs_stack class.
13002 (avail_expr_stack::record_expr): Method factored out.
13003 (print_expr_hash_elt): Now a method in the expr_hash_elt class.
13005 (hashable_expr_equal_p): Fix formatting.
13007 2015-09-15 David Malcolm <dmalcolm@redhat.com>
13009 * input.h (location_get_source_line): Drop "expanded_location"
13010 param in favor of a file and line number.
13011 * input.c (location_get_source_line): Likewise.
13012 (dump_location_info): Update for change in signature of
13013 location_get_source_line.
13014 * diagnostic.c (diagnostic_print_caret_line): Likewise.
13016 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
13018 * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
13019 Bump to 4KB for SJLJ exceptions.
13020 (STACK_CHECK_PROTECT): Likewise. Bump to 8KB for SJLJ exceptions.
13021 * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
13022 * doc/tm.texi: Regenerate.
13024 2015-09-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13026 * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
13027 of -1 when shifting. Change type of val to unsigned HOST_WIDE_INT.
13030 2015-09-15 Richard Biener <rguenther@suse.de>
13032 PR tree-optimization/67470
13033 * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
13034 structure for PHI hoisting by inserting a forwarder block
13037 2015-09-15 Christian Bruel <christian.bruel@st.com>
13039 * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
13040 (arm_option_print): New function.
13042 2015-09-15 Christian Bruel <christian.bruel@st.com>
13045 * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
13046 * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
13047 Remove flags parameter.
13048 * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
13049 (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
13050 (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
13051 (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
13052 (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
13053 (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
13054 (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
13055 * config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
13057 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
13059 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
13061 * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
13062 AARCH64_VALID_SIMD_DREG_MODE.
13064 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
13066 * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
13067 aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
13068 (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
13069 (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
13070 aarch64_ld4_lane<mode>): Combine together, making...
13071 (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
13072 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
13073 aarch64_st4_lane<mode>): Combine together, making...
13074 (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
13075 * config/aarch64/iterators.md (nregs): Add comment.
13077 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
13079 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
13080 Change operand mode from <V_TWO_ELEM> to BLK.
13081 (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
13082 (aarch64_vec_store_lanesoi_lane<mode): Likewise
13083 (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
13084 (aarch64_ld2_lane<mode>): Likewise.
13085 (aarch64_st2_lane<VQ:mode>): Likewise.
13086 * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
13088 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
13090 * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
13091 Change operand mode from <V_FOUR_ELEM> to BLK.
13092 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
13093 (aarch64_vec_store_lanesxi_lane<mode): Likewise.
13094 (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
13095 (aarch64_ld4_lane<mode>): Likewise.
13096 (aarch64_st4_lane<mode>): Likewise.
13097 * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
13099 2015-09-15 Richard Biener <rguenther@suse.de>
13101 PR middle-end/67563
13102 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
13103 transfer EH info from old to new stmt.
13104 (replace_call_with_value): Likewise.
13105 (replace_call_with_call_and_fold): Likewise.
13106 (gimple_fold_builtin_memory_op): Likewise.
13107 (gimple_fold_builtin_memset): Likewise.
13108 (gimple_fold_builtin_stpcpy): Likewise.
13109 (gimple_fold_call): Likewise.
13111 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
13113 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
13115 * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
13116 (aarch64_simd_intEI_type_node): Likewise.
13117 (aarch64_simd_builtin_std_type): Remove EImode case.
13118 (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
13119 * config/aarch64/aarch64-modes.def: Remove EImode.
13121 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
13123 * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
13124 Change operand mode from <V_THREE_ELEM> to BLK.
13125 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
13126 (aarch64_vec_store_lanesci_lane<mode>): Likewise.
13127 (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
13128 (aarch64_ld3_lane<mode>): Likewise.
13129 (aarch64_st3_lane<mode>): Likewise.
13130 * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
13132 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
13134 * config/aarch64/aarch64-simd.md
13135 (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
13136 Change all TImode operands to BLKmode.
13137 (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
13138 Change all EImode operands to BLKmode.
13139 (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
13140 Change all OImode operands to BLKmode.
13142 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
13143 and call set_mem_size.
13144 (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
13146 * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
13148 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
13150 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
13152 (aarch64_vec_store_lanesoi_lane<mode>): ...this.
13154 (vec_store_lanesci_lane<mode>): Rename to...
13155 (aarch64_vec_store_lanesci_lane<mode>): ...this.
13157 (vec_store_lanesxi_lane<mode>): Rename to...
13158 (aarch64_vec_store_lanesxi_lane<mode>): ...this.
13160 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
13161 aarch64_st4_lane<mode>): Follow renaming.
13163 2015-09-15 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13165 * config/s390/s390.c (s390_const_operand_ok): Add missing
13168 2015-09-15 Richard Biener <rguenther@suse.de>
13171 * lto-streamer.h (lto_location_cache::current_sysp): Properly
13173 * lto-streamer-out.c (clear_line_info): Likewise.
13175 2015-09-15 Richard Biener <rguenther@suse.de>
13177 * doc/match-and-simplify.texi: Fix wording.
13179 2015-09-15 Bin Cheng <bin.cheng@arm.com>
13181 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
13182 unnecessary type conversion in op1.
13184 2015-09-14 Segher Boessenkool <segher@kernel.crashing.org>
13186 * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
13187 (dup_block_and_redirect): Delete function.
13188 (can_dup_for_shrink_wrapping): New function.
13189 (fix_fake_fallthrough_edge): New function.
13190 (try_shrink_wrapping): Rewrite function.
13191 (convert_to_simple_return): Call fix_fake_fallthrough_edge.
13193 2015-09-14 Rich Felker <dalias@libc.org>
13195 * configure.ac: Change target pattern for sh TLS support
13196 test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
13197 * configure: Regenerate.
13199 2015-09-14 Jeff Law <law@redhat.com>
13201 PR tree-optimization/47679
13202 * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
13203 type rather than void *.
13205 2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
13208 * diagnostic.c (diagnostic_initialize): Do not set
13209 some_warnings_are_errors.
13210 (diagnostic_finish): Use DK_WERROR count instead.
13211 (diagnostic_report_diagnostic): Do not set
13212 some_warnings_are_errors.
13213 * diagnostic.h (struct diagnostic_context): Remove
13214 some_warnings_are_errors.
13216 2015-09-14 Richard Sandiford <richard.sandiford@arm.com>
13218 * config/sparc/predicates.md (const_all_ones_operand): Use
13219 CONSTM1_RTX to simplify definition.
13221 2015-09-14 Oleg Endo <olegendo@gcc.gnu.org>
13224 * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
13227 2015-09-14 Chung-Lin Tang <cltang@codesourcery.com>
13229 * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
13230 OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
13231 OPT_fshow_column to handled saved option cases.
13232 (append_compiler_options): Do not skip the above added options.
13234 2015-09-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13237 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
13238 nopcrelative_literal_loads.
13239 (aarch64_classify_address): Likewise.
13240 (aarch64_constant_pool_reload_icode): Define.
13241 (aarch64_secondary_reload): Handle secondary reloads for
13243 (aarch64_override_options): Handle nopcrelative_literal_loads.
13244 (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
13245 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
13247 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
13248 * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
13249 * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
13251 * doc/invoke.texi (mpc-relative-literal-loads): Document.
13253 2015-09-14 John David Anglin <danglin@gcc.gnu.org>
13255 PR middle-end/67401
13256 * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
13257 sync_compare_and_swap_optab libcall to target_oval.
13259 2015-09-14 Marek Polacek <polacek@redhat.com>
13261 * rtlanal.c (split_double): Cast to unsigned when shifting a negative
13263 * sched-int.h (UNKNOWN_DEP_COST): Likewise.
13265 2015-09-11 Mark Wielaard <mjw@redhat.com>
13268 * toplev.c (check_global_declaration): Check and use
13269 warn_unused_const_variable.
13270 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
13271 (-Wunused-variable): Remove non-constant. For C implies
13272 -Wunused-const-variable.
13273 (-Wunused-const-variable): New.
13275 2015-09-14 Richard Biener <rguenther@suse.de>
13277 * doc/match-and-simplify.texi: Update for changed syntax
13278 of inner ifs and the new switch expression.
13280 2015-09-14 Yuri Rumyantsev <ysrumyan@gmail.com>
13282 * config/i386/haswell.md: New file describing Haswell pipeline.
13283 * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
13284 haswell-like processors.
13285 (ix86_reassociation_width): Increase reassociation width for 64-bit
13286 Haswell processor family.
13287 * config/i386/i386.md: Introduce haswell cpu and include new md file.
13289 2015-09-14 Richard Biener <rguenther@suse.de>
13291 * doc/match-and-simplify.texi: Fixup some formatting issues
13292 and document the 's' flag.
13294 2015-09-13 Olivier Hainque <hainque@adacore.com>
13295 Eric Botcazou <ebotcazou@adacore.com>
13297 * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
13298 gr6 as possible values, defaulting to gr5. Set target_cpu_default2.
13299 * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
13300 (TARGET_CPU_gr5): Likewise.
13301 (TARGET_CPU_gr6): Likewise.
13302 (MULTILIB_DEFAULTS): Likewise.
13303 * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
13304 for mcpu=gr5 and mcpu=gr6.
13305 (MULTILIB_DIRNAMES): Adjust accordingly.
13307 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13309 * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
13310 (mem_ref_p): Likewise.
13311 (outermost_indep_loop): Adjust.
13312 (mem_ref_in_stmt): Likewise.
13313 (determine_max_movement): Likewise.
13314 (mem_ref_alloc): Likewise.
13315 (record_mem_ref_loc): Likewise.
13316 (set_ref_stored_in_loop): Likewise.
13317 (mark_ref_stored): Likewise.
13318 (gather_mem_refs_stmt): Likewise.
13319 (mem_refs_may_alias_p): Likewise.
13320 (for_all_locs_in_loop): Likewise.
13321 (struct rewrite_mem_ref_loc): Likewise.
13322 (rewrite_mem_refs): Likewise.
13323 (struct first_mem_ref_loc_1): Likewise.
13324 (first_mem_ref_loc): Likewise.
13325 (struct sm_set_flag_if_changed): Likewise.
13326 (execute_sm_if_changed_flag_set): Likewise.
13327 (execute_sm): Likewise.
13328 (hoist_memory_references):
13329 (struct ref_always_accessed): Likewise.
13330 (ref_always_accessed_p): Likewise.
13331 (refs_independent_p): Likewise.
13332 (record_dep_loop): Likewise.
13333 (ref_indep_loop_p_1): Likewise.
13334 (ref_indep_loop_p_2): Likewise.
13335 (ref_indep_loop_p): Likewise.
13336 (can_sm_ref_p): Likewise.
13337 (find_refs_for_sm): Likewise.
13338 (tree_ssa_lim_finalize): Likewise.
13340 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13342 * dwarf2out.c (dw_attr_ref): Remove typedef.
13343 (dw_line_info_ref): Likewise.
13344 (pubname_ref): Likewise.
13345 (dw_ranges_ref): Likewise.
13346 (dw_ranges_by_label_ref): Likewise.
13347 (comdat_type_node_ref): Likewise.
13349 (get_AT_low_pc): Likewise.
13350 (get_AT_hi_pc): Likewise.
13351 (get_AT_string): Likewise.
13352 (get_AT_flag): Likewise.
13353 (get_AT_unsigned): Likewise.
13354 (get_AT_ref): Likewise.
13355 (get_AT_file): Likewise.
13356 (remove_AT): Likewise.
13357 (print_die): Likewise.
13358 (check_die): Likewise.
13359 (die_checksum): Likewise.
13360 (attr_checksum_ordered): Likewise.
13361 (struct checksum_attributes): Likewise.
13362 (collect_checksum_attributes): Likewise.
13363 (die_checksum_ordered): Likewise.
13364 (same_die_p): Likewise.
13365 (is_declaration_die): Likewise.
13366 (clone_die): Likewise.
13367 (clone_as_declaration): Likewise.
13368 (copy_declaration_context): Likewise.
13369 (break_out_comdat_types): Likewise.
13370 (copy_decls_walk): Likewise.
13371 (output_location_lists): Likewise.
13372 (external_ref_hasher::hash): Likewise.
13373 (optimize_external_refs_1): Likewise.
13374 (build_abbrev_table): Likewise.
13375 (size_of_die): Likewise.
13376 (unmark_all_dies): Likewise.
13377 (size_of_pubnames): Likewise.
13378 (output_die_abbrevs): Likewise.
13379 (output_die): Likewise.
13380 (output_pubnames): Likewise.
13381 (add_ranges_num): Likewise.
13382 (add_ranges_by_labels): Likewise.
13383 (add_high_low_attributes): Likewise.
13384 (gen_producer_string): Likewise.
13385 (dwarf2out_set_name): Likewise.
13386 (new_line_info_table): Likewise.
13387 (prune_unused_types_walk_attribs): Likewise.
13388 (prune_unused_types_update_strings): Likewise.
13389 (prune_unused_types): Likewise.
13390 (resolve_addr): Likewise.
13391 (optimize_location_lists_1): Likewise.
13392 (index_location_lists): Likewise.
13393 (dwarf2out_finish): Likewise.
13395 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13397 * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
13399 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13401 * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
13402 (dump_asserts_for): Adjust.
13403 (register_new_assert_for): Likewise.
13404 (process_assert_insertions): Likewise.
13405 (insert_range_assertions): Likewise.
13407 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13409 * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
13410 and remove typedef.
13411 (new_temp_expr_table): Adjust.
13412 (free_temp_expr_table): Likewise.
13413 (version_to_be_replaced_p): Likewise.
13414 (make_dependent_on_partition): Likewise.
13415 (add_to_partition_kill_list): Likewise.
13416 (remove_from_partition_kill_list): Likewise.
13417 (add_dependence): Likewise.
13418 (finished_with_expr): Likewise.
13419 (process_replaceable): Likewise.
13420 (kill_expr): Likewise.
13421 (kill_virtual_exprs): Likewise.
13422 (mark_replaceable): Likewise.
13423 (find_replaceable_in_bb): Likewise.
13424 (find_replaceable_exprs): Likewise.
13425 (debug_ter): Likewise.
13427 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13429 * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
13430 (struct btr_user): Rename from btr_user_s.
13431 (struct btr_def): Rename from btr_def_s.
13432 (find_btr_def_group): Adjust.
13433 (add_btr_def): Likewise.
13434 (new_btr_user): Likewise.
13435 (note_other_use_this_block): Likewise.
13436 (compute_defs_uses_and_gen): Likewise.
13437 (link_btr_uses): Likewise.
13438 (build_btr_def_use_webs): Likewise.
13439 (block_at_edge_of_live_range_p): Likewise.
13440 (btr_def_live_range): Likewise.
13441 (combine_btr_defs): Likewise.
13442 (move_btr_def): Likewise.
13443 (migrate_btr_def): Likewise.
13444 (migrate_btr_defs): Likewise.
13446 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13448 * var-tracking.c (shared_hash_def): Rename to shared_hash.
13449 (shared_hash): Remove typedef.
13450 (struct dataflow_set): Adjust.
13451 (shared_hash_unshare): Likewise.
13452 (dataflow_set_merge): Likewise.
13453 (vt_initialize): Likewise.
13454 (vt_finalize): Likewise.
13456 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13458 * var-tracking.c (struct location_chain): Rename from
13459 location_chain_def.
13460 (struct variable_part): Adjust.
13461 (variable_htab_free): Likewise.
13462 (unshare_variable): Likewise.
13463 (get_init_value): Likewise.
13464 (get_addr_from_local_cache): Likewise.
13465 (drop_overlapping_mem_locs): Likewise.
13466 (val_reset): Likewise.
13467 (struct variable_union_info): Likewise.
13468 (variable_union): Likewise.
13469 (find_loc_in_1pdv): Likewise.
13470 (insert_into_intersection): Likewise.
13471 (intersect_loc_chains): Likewise.
13472 (canonicalize_loc_order_check): Likewise.
13473 (canonicalize_values_mark): Likewise.
13474 (canonicalize_values_star): Likewise.
13475 (canonicalize_vars_star): Likewise.
13476 (variable_merge_over_cur): Likewise.
13477 (remove_duplicate_values): Likewise.
13478 (variable_post_merge_new_vals): Likewise.
13479 (variable_post_merge_perm_vals): Likewise.
13480 (find_mem_expr_in_1pdv): Likewise.
13481 (dataflow_set_preserve_mem_locs): Likewise.
13482 (dataflow_set_remove_mem_locs): Likewise.
13483 (variable_part_different_p): Likewise.
13484 (onepart_variable_different_p): Likewise.
13485 (find_src_set_src): Likewise.
13486 (dump_var): Likewise.
13487 (set_slot_part): Likewise.
13488 (clobber_slot_part): Likewise.
13489 (delete_slot_part): Likewise.
13490 (vt_expand_var_loc_chain): Likewise.
13491 (emit_note_insn_var_location): Likewise.
13492 (vt_finalize): Likewise.
13494 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13496 * dse.c (store_info_t): Remove typedef.
13497 (group_info_t): Likewise.
13498 (const_group_info_t): Likewise.
13499 (deferred_change_t): Likewise.
13500 (get_group_info): Adjust.
13501 (free_store_info): Likewise.
13502 (canon_address): Likewise.
13503 (clear_rhs_from_active_local_stores): Likewise.
13504 (record_store): Likewise.
13505 (replace_read): Likewise.
13506 (check_mem_read_rtx): Likewise.
13507 (scan_insn): Likewise.
13508 (remove_useless_values): Likewise.
13509 (dse_step1): Likewise.
13510 (dse_step2_init): Likewise.
13511 (dse_step2_nospill): Likewise.
13512 (scan_stores_nospill): Likewise.
13513 (scan_reads_nospill): Likewise.
13514 (dse_step3_exit_block_scan): Likewise.
13515 (dse_step3): Likewise.
13516 (dse_step5_nospill): Likewise.
13517 (dse_step6): Likewise.
13519 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13521 * alias.c (alias_set_entry_d): Rename to alias_set_entry.
13522 (alias_set_entry): Remove typedef.
13523 (alias_set_subset_of): Adjust.
13524 (alias_sets_conflict_p): Likewise.
13525 (init_alias_set_entry): Likewise.
13526 (get_alias_set): Likewise.
13527 (new_alias_set): Likewise.
13528 (record_alias_subset): Likewise.
13530 2015-09-13 Gerald Pfeifer <gerald@pfeifer.com>
13532 * doc/install.texi (Downloading the source): Mark up
13533 contrib/download_prerequisites properly and drop leading "./".
13535 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13537 * config/arc/arc.h: Remove define of STRUCT_VALUE.
13538 * config/lm32/lm32.h: Likewise.
13539 * config/mep/mep.h: Likewise.
13540 * config/visium/visium.h: Likewise.
13541 * system.h: Poison STRUCT_VALUE macro.
13543 2015-09-12 John David Anglin <danglin@gcc.gnu.org>
13545 * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
13546 CONSTANT_P operands.
13548 2015-09-11 David S. Miller <davem@davemloft.net>
13550 * config/sparc/constraints.md: Make "U" constraint a real register
13552 * config/sparc/sparc.c (TARGET_LRA_P): Define.
13553 (D_MODES, DF_MODES): Add missing cast.
13554 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
13555 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
13556 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
13558 * config/sparc/sparc.h (PROMOTE_MODE): Define.
13559 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
13560 provide these insn when flag_pic.
13562 2015-09-11 Jeff Law <law@redhat.com>
13564 PR tree-optimization/47679
13565 * tree-ssa-dom.c (struct cond_equivalence): Update comment.
13566 * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
13567 member with m_. Update inline member functions as necessary. Add
13569 * tree-ssa-scopedtables.c: Update const_and_copies's member
13570 functions to use m_ prefix to access the stack.
13572 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
13574 * graphite-optimize-isl.c (disable_tiling): Remove.
13575 (get_schedule_for_band): Do not use disable_tiling.
13576 (get_prevector_map): Delete function.
13577 (enable_polly_vector): Remove.
13578 (get_schedule_for_band_list): Remove dead code.
13580 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
13582 * graphite-optimize-isl.c (get_tile_map): Refactor.
13583 (get_schedule_for_band): Same.
13584 (getScheduleForBand): Same.
13585 (get_prevector_map): Same.
13586 (get_schedule_for_band_list): Same.
13587 (get_schedule_map): Same.
13588 (get_single_map): Same.
13589 (apply_schedule_map_to_scop): Same.
13590 (optimize_isl): Same.
13592 2015-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13595 * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
13597 * config/aarch64/iterators.md (GPF_TF_F16): New.
13600 2015-09-10 Nathan Sidwell <nathan@acm.org>
13602 * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
13603 (nvptx_reorg): Adjust comments.
13605 2015-09-15 John David Anglin <danglin@gcc.gnu.org>
13608 * configure.ac: Check if setenv and unsetenv are declared.
13609 * configure: Rebuild.
13610 * config.in: Rebuild.
13611 * system.h: Declare setenv and unsetenv if not declared.
13613 2015-09-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13615 * config/rs6000/rs6000.c (swap_web_entry): Update preceding
13616 commentary to simplify permute mask adjustment equation.
13617 (special_handling_values): Add SH_VPERM.
13618 (const_load_sequence_p): New function.
13619 (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
13620 the mask loaded from the constant pool.
13621 (adjust_vperm): New function.
13622 (handle_special_swappables): Call adjust_vperm.
13623 (dump_swap_insn_table): Handle SH_VPERM.
13625 2015-09-10 H.J. Lu <hongjiu.lu@intel.com>
13627 * shrink-wrap.c (requires_stack_frame_p): Remove static.
13628 * shrink-wrap.h (requires_stack_frame_p): Put back.
13630 2015-09-10 Richard Sandiford <richard.sandiford@arm.com>
13632 * reload1.c (elimination_costs_in_insn): Locally turn
13633 -Wmaybe-uninitialized into a warning.
13635 2015-09-10 Segher Boessenkool <segher@kernel.crashing.org>
13637 * shrink-wrap.c (requires_stack_frame_p): Make static.
13638 (prepare_shrink_wrap): Likewise.
13639 (dup_block_and_redirect): Likewise.
13640 * shrink-wrap.h: Remove declarations of those functions.
13642 2015-09-10 Mark Wielaard <mjw@redhat.com>
13644 * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
13646 2015-09-10 Oleg Endo <olegendo@gcc.gnu.org>
13649 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
13650 missing simplify_gen_subreg.
13652 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13654 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
13655 the vector element is bigger than 64 bit.
13657 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13659 * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
13660 ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
13662 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13664 * config/s390/s390.c: Add V1TImode to constant pool modes.
13666 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13669 * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
13670 predicate. Set predicable_short_it attr to "no".
13672 2015-09-10 Jiong Wang <jiong.wang@arm.com>
13674 PR rtl-optimization/67421
13675 * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
13676 left wide shift tranformation.
13678 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
13680 * common/config/arc/arc-common.c: Remove references to A5.
13681 * config/arc/arc-opts.h: Likewise.
13682 * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
13683 * config/arc/arc.opt, config/arc/constraints.md: Likewise.
13684 * config/arc/t-arc-newlib: Likewise.
13686 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
13688 * config/arc/arc.md (length): Fix attribute length for conditional
13689 executed instructions with long immediate.
13691 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13693 * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
13694 type for second alternative.
13696 2015-09-10 Markus Trippelsdorf <markus@trippelsdorf.de>
13698 * doc/invoke.texi (Downloading GCC): Mention
13699 contrib/download_prerequisites script.
13701 2015-09-10 Jakub Jelinek <jakub@redhat.com>
13704 * gimplify.c (gimplify_omp_for): If inner stmt is not found
13705 for combined loop, assert seen_error () and return GS_ERROR.
13707 PR middle-end/67521
13708 * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
13709 if decl is already in outer->variables.
13711 PR middle-end/67517
13712 * gimplify.c (gimplify_scan_omp_clauses): Instead of
13713 asserting that decl is not specified in octx->variables,
13714 break out of the loop if it is.
13717 * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
13718 iterator is not explicitly determined, but is defined inside
13719 of the combined workshare region, handle it like if it has
13720 DECL_EXPR in OMP_FOR_PRE_BODY.
13722 2015-09-09 Nathan Sidwell <nathan@acm.org>
13724 * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
13725 (*cmp<mode>): Add assembler spacing.
13726 (setcc_int<mode>, set_cc_float<mode>): Likewise.
13727 * config/nvptx/nvptx.c (nvptx_option_override): Override debug
13729 (write_func_decl_from_insn): Refactor argument loops & comma emission.
13730 (nvptx_expand_call): Likewise.
13731 (nvptx_output_call_insn): Likewise.
13732 (nvptx_reorg_subreg): Add spacing.
13734 2015-09-09 Marek Polacek <polacek@redhat.com>
13736 PR middle-end/67512
13737 * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
13740 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
13743 * doc/invoke.texi ([Wsubobject-linkage]): Document.
13745 2015-09-09 Tom de Vries <tom@codesourcery.com>
13747 * params-list.h: Add missing copyright notice.
13749 2015-09-09 Nathan Sidwell <nathan@acm.org>
13751 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
13752 sel_truesi, not andsi.
13754 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13756 * config/arm/arm.md (*subsi3_compare0): Rename to...
13757 (subsi3_compare0): ... This.
13758 (modsi3): New define_expand.
13759 * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
13760 when operand is power of 2.
13762 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13764 * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
13765 (*neg<mode>2_compare0): Rename to...
13766 (neg<mode>2_compare0): ... This.
13767 * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
13768 Move check for speed inside the if-then-elses. Reflect
13769 CSNEG sequence in MOD by power of 2 case.
13771 2015-09-09 Alan Modra <amodra@gmail.com>
13774 * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
13775 reload replacement for PRE_MODIFY address reg.
13777 2015-09-09 Sebastian Pop <s.pop@samsung.com>
13779 PR tree-optimization/53852
13780 * config.in: Regenerate.
13781 * configure: Regenerate.
13782 * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
13783 * graphite-optimize-isl.c (optimize_isl): Stop computation when
13784 PARAM_MAX_ISL_OPERATIONS is reached.
13785 * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
13786 * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
13787 result equal to isl_stat_ok as the status now can be isl_error_quota.
13788 (subtract_commutative_associative_deps): Same.
13789 (compute_deps): Same.
13791 2015-09-08 Aditya Kumar <hiraditya@msn.com>
13792 Sebastian Pop <s.pop@samsung.com>
13794 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
13795 Return the parameter if it was saved in corresponding
13796 parameter_rename_map of the region.
13797 (copy_def): Copy def from sese region to the newly created region.
13798 (copy_internal_parameters): Copy all the internal parameters defined
13799 within a region to the newly created region.
13800 (graphite_regenerate_ast_isl): Copy parameters to the new region before
13801 translating isl to gimple.
13802 * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
13803 the loop-nest does not have any data-references.
13804 (build_graphite_scops): Create a scop only when there is at least one
13806 (contains_only_close_phi_nodes): Deleted.
13807 (print_graphite_scop_statistics): Deleted
13808 (print_graphite_statistics): Deleted
13809 (limit_scops): Deleted.
13810 (build_scops): Removed call to limit_scops.
13811 * sese.c (new_sese): Construct.
13812 (free_sese): Destruct.
13813 (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
13815 (set_rename): Pass sese region so that parameters inside the region can
13816 be added to its parameter_rename_map.
13817 (rename_uses): Pass sese region.
13818 (graphite_copy_stmts_from_block): Do not copy parameters that have been
13819 generated in the header of the scop. For each SSA_NAME in the
13820 parameter_rename_map rename its usage.
13821 (invariant_in_sese_p_rec): Return false if tree t is defined outside
13823 (scalar_evolution_in_region): If the tree t is invariant just return t.
13824 * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
13825 struct sese to keep track of all the parameters which need renaming.
13826 * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
13828 * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
13830 2015-09-08 Tom de Vries <tom@codesourcery.com>
13832 * Makefile.in (generated_files): Add params.list.
13833 (params.list, s-params.list): Add rule.
13834 * params.h (enum compiler_param): Include params-list.h. Move define
13835 DEFPARAM, include params.def and undef DEFPARAM ...
13836 * params-list.h: ... here. New file.
13838 2015-09-08 David Malcolm <dmalcolm@redhat.com>
13840 * pretty-print.h (printer_fn): Fix typo in comment.
13842 2015-09-07 Jeff Law <law@redhat.com>
13844 * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
13846 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13848 * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
13849 (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
13850 (arm_neon_fp16_hw): New.
13852 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13854 * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
13855 UNITS_PER_WORD >= 4.
13857 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13859 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
13860 aarch64_simd_vec_unpacks_hi_<mode>): New insn.
13861 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
13862 (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
13863 (aarch64_float_extend_lo_v2df): Rename to...
13864 (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
13866 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
13867 (float_extend_lo): Add v4sf.
13869 * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
13870 * config/aarch64/iterators.md (VQ_HSF): New iterator.
13871 (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
13872 (Vwide): New mode_attr.
13874 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13876 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
13877 aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
13878 aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
13879 vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
13880 V4HF and V8HF variants to iterator.
13882 * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
13884 * config/aarch64/iterators.md (VDQF_F16): New.
13885 (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
13887 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13889 * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
13890 vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
13891 vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
13892 vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
13893 vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
13894 vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
13895 vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
13896 vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
13897 vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
13898 vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
13899 vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
13900 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
13901 vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
13902 vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
13903 vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
13904 vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
13905 vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
13906 vld1q_dup_f16): New.
13908 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13910 * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
13911 Reparameterize to...
13912 (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
13913 (aarch64_float_truncate_hi_v4sf): Reparameterize to...
13914 (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
13916 * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
13918 (float_truncate_lo_): Use BUILTIN_VDF iterator.
13920 * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
13922 * config/aarch64/iterators.md (VDF, Vdtype): New.
13923 (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
13925 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13927 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
13928 * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
13929 (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
13930 Add __builtin_aarch64_simd_hf.
13931 * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
13932 float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
13933 vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
13934 vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
13935 vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
13936 vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
13937 vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
13938 vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
13939 vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
13941 * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
13942 V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
13943 (VDC, Vdbl): Add V4HF.
13945 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13947 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
13948 V4HFmode and V8HFmode.
13949 (aarch64_split_simd_move): Add case for V8HFmode.
13950 * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
13951 (aarch64_simd_builtin_std_type): Handle HFmode.
13952 (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
13954 * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
13955 aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
13956 (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
13958 * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
13961 * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
13962 * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
13964 (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
13965 vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
13966 vst1q_lane_f16): New.
13967 * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
13968 (VALLDI_F16, VALL_F16): New.
13969 (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
13970 Add cases for V4HF and V8HF.
13971 (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
13973 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13975 * config/arm/arm-builtins.c (VAR11, VAR12): New.
13976 * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
13977 vld4_dup): Add v4hf variant.
13978 (vget_high, vget_low): Add v8hf variant.
13979 (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
13980 vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
13981 v4hf and v8hf variants.
13983 * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
13985 (V_DOUBLE): Add case for V4HF.
13987 (V_HALF): Add case for V8HF.
13988 (VDQX): Add V4HF, V8HF.
13989 (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
13990 V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
13992 * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
13993 neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
13994 vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
13995 neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
13996 neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
13997 neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
13998 vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
13999 neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
14000 neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
14002 (neon_vcreate, neon_vreinterpretv8qi<mode>,
14003 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
14004 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
14005 Change VDX to VD_RE.
14007 (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
14008 neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
14009 Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
14011 * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
14012 float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
14013 vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
14014 vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
14015 vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
14016 vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
14017 vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
14018 vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
14019 vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
14021 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
14023 * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
14024 vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
14025 vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
14026 vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
14027 vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
14028 vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
14029 vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
14030 vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
14031 vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
14032 vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
14035 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
14037 * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
14039 * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
14041 * config/arm/arm-builtins.c (v8hf_UP): New.
14042 (arm_init_simd_builtin_types): Initialise Float16x8_t.
14044 * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
14046 * config/arm/arm_neon.h (float16x8_t): New typedef.
14048 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
14050 * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
14051 vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
14052 vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
14053 vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
14054 vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
14055 vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
14056 vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
14057 vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
14058 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
14059 vreinterpret_u16_f16, vreinterpret_u32_f16): New.
14061 2015-09-07 Ilya Verbin <ilya.verbin@intel.com>
14063 * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
14064 non-alphanumeric characters in the symbol name.
14066 2015-09-07 Marek Polacek <polacek@redhat.com>
14068 PR inline-asm/67448
14069 * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
14072 2015-09-07 Marek Polacek <polacek@redhat.com>
14074 * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
14076 2015-09-04 Paolo Bonzini <bonzini@gnu.org>
14078 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
14081 2015-09-04 Jakub Jelinek <jakub@redhat.com>
14083 PR middle-end/67452
14084 * tree-ssa-live.c: Include cfgloop.h.
14085 (remove_unused_locals): Clear loop->simduid if simduid is about
14086 to be removed from cfun->local_decls.
14088 2015-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
14091 * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
14094 2015-09-04 Tom de Vries <tom@codesourcery.com>
14096 * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
14098 2015-09-04 Jeff Law <law@redhat.com>
14100 * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
14101 unnecessary constructor. It's now trivial and implemented inside...
14102 * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
14103 constructor. Add comments to various methods. Remove unused
14105 * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
14106 * tree-vrp.c (identify_jump_threads): Likewise.
14107 * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
14108 indentation issues.
14109 (thread_across_edge): Similarly.
14110 (record_temporary_equivalences_from_stmts_at_dest): Remove unused
14111 arguments in constructor call.
14113 2015-09-04 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
14115 * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
14116 temp path contains a '-'.
14118 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
14119 Petr Murzin <petr.murzin@intel.com>
14120 Kirill Yukhin <kirill.yukhin@intel.com>
14122 * config/i386/i386-builtin-types.def
14123 (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
14124 (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
14125 (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
14126 (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
14127 * config/i386/i386.c
14128 (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
14129 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
14130 IX86_BUILTIN_SCATTERALTDIV16SI.
14131 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
14132 __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
14133 __builtin_ia32_scatteraltdiv8si.
14134 (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
14135 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
14136 IX86_BUILTIN_SCATTERALTDIV16SI.
14137 (ix86_vectorize_builtin_scatter): New.
14138 (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
14139 ix86_vectorize_builtin_scatter.
14141 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
14142 Petr Murzin <petr.murzin@intel.com>
14143 Kirill Yukhin <kirill.yukhin@intel.com>
14145 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
14146 * doc/tm.texi: Regenerate.
14147 * target.def: Add scatter builtin.
14148 * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
14149 for loads/stores in case of gather/scatter accordingly.
14150 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
14151 STMT_VINFO_GATHER_P(S).
14152 (vect_check_gather): Rename to ...
14153 (vect_check_gather_scatter): this.
14154 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
14155 STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
14156 (vect_check_gather_scatter): Use it instead of vect_check_gather.
14157 (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
14158 variable and new checkings for it accordingly.
14159 * tree-vect-stmts.c
14160 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
14161 STMT_VINFO_GATHER_P(S).
14162 (vect_check_gather_scatter): Use it instead of vect_check_gather.
14163 (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
14165 2015-09-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
14167 * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
14169 (mulv16qi3): New define_expand.
14171 2015-09-03 Martin Sebor <msebor@redhat.com>
14174 * doc/extend.texi (Other Builtins): Document when the address
14175 of a built-in function can be taken.
14177 2015-09-03 Richard Biener <rguenther@suse.de>
14179 * dwarf2out.c (flush_limbo_die_list): Split out from ...
14180 (dwarf2out_early_finish): ... here.
14181 (dwarf2out_finish): Do not call dwarf2out_early_finish but
14182 flush_limbo_die_list. Assert we have no deferred asm names.
14184 2015-09-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14186 * optabs.c (expand_binop): Don't create a broadcast vector with a
14187 source element wider than the inner mode.
14189 2015-09-03 Richard Biener <rguenther@suse.de>
14191 * varasm.c (output_constant): Use fold_convert instead of
14194 2015-09-03 Tom de Vries <tom@codesourcery.com>
14196 PR tree-optimization/65637
14197 * omp-low.c (expand_omp_for_static_chunk): Handle case that
14198 fin_bb has 2 predecessors.
14200 2015-09-03 Tom de Vries <tom@codesourcery.com>
14202 PR tree-optimization/65637
14203 * omp-low.c (find_phi_with_arg_on_edge): New function.
14204 (expand_omp_for_static_chunk): Fix inner loop phi.
14206 2015-09-03 Tom de Vries <tom@codesourcery.com>
14208 PR tree-optimization/65637
14209 * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
14212 2015-09-03 Tom de Vries <tom@codesourcery.com>
14214 * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
14216 2015-09-03 Tom de Vries <tom@codesourcery.com>
14218 * doc/invoke.texi (parloops-chunk-size): Add item.
14219 * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
14220 * tree-parloops.c: Include params.h.
14221 (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
14222 param parloops-chunk-size is used.
14224 2015-09-03 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
14226 PR middle-end/67351
14227 * fold-const.c (fold_binary_loc) : Move
14228 Transform (x >> c) << c into x & (-1<<c) or
14229 transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
14230 types using simplify and match.
14231 * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
14232 (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
14234 2015-09-03 Richard Biener <rguenther@suse.de>
14237 * tree-ssa-structalias.c (ctor_for_analysis): New function.
14238 (create_variable_info_for_1): Use ctor_for_analysis instead
14239 of get_constructor.
14240 (create_variable_info_for): Likewise.
14242 2015-09-02 Charles Baylis <charles.baylis@linaro.org>
14245 * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
14246 in new callgraph edge.
14248 2015-09-02 Christophe Lyon <christophe.lyon@linaro.org>
14253 * config/aarch64/aarch64-simd.md
14254 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
14255 gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
14256 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
14257 gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
14259 2015-09-02 Alan Modra <amodra@gmail.com>
14261 * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
14262 * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
14263 (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
14265 2015-09-02 Alan Modra <amodra@gmail.com>
14268 * config/rs6000/predicates.md (current_file_function_operand): Don't
14269 return true for weak symbols.
14270 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
14272 2015-09-01 Matthew Fortune <matthew.fortune@imgtec.com>
14273 Andrew Bennett <andrew.bennett@imgtec.com>
14275 * config/mips/mips-opts.h (mips_cb_setting): New enum.
14276 * config/mips/mips-protos.h: Add definitions for
14277 mips_output_jump and mips_output_equal_conditional_branch
14278 * config/mips/mips.c (MIPS_JR): Change to support the
14280 (mips_emit_compare): Add support for the MIPS R6 conditional
14282 (mips_process_sync_loop): Likewise.
14283 (mips_output_order_conditional_branch): Likewise.
14284 (mips16_build_call_stub): Change MIPS_CALL to
14286 (mips_print_operand_punctuation): Update 's' case to only
14287 apply to micromips r2.
14288 (mips_adjust_insn_length): Add support for forbidden slot
14290 (mips_avoid_hazard): Likewise.
14291 (mips_reorg_process_insns): Likewise.
14292 (mips_output_jump): New function.
14293 (mips_output_equal_conditional_branch): Likewise.
14294 (mips_output_conditional_branch): Use jrc/bc if compact
14295 branch support is enabled. Ensure the forbidden slots
14296 between the two branch instructions is filled with a nop.
14297 (mips_option_override): Add support to process the compact
14298 branch option and set the correct defaults. Prevent
14299 non-explict relocs being using for MIPS R6.
14300 (mips_trampoline_init): Add compact branch support.
14301 (mips_mult_zero_zero_cost): Allow zero initialisation of
14302 accumulators with TARGET_DSP.
14303 * config/mips/mips.h (TARGET_CB_NEVER): New define.
14304 (TARGET_CB_MAYBE): New define.
14305 (TARGET_CB_ALWAYS): New define.
14306 (ISA_HAS_DELAY_SLOTS): New define.
14307 (ISA_HAS_COMPACT_BRANCHES): New define.
14308 (ISA_HAS_JRC): New define.
14309 (MIPS_BRANCH_C): New define.
14310 (MIPS_CALL): Removed.
14311 (MICROMIPS_J): Removed.
14312 * config/mips/mips.md (compact_form): New attr.
14313 (hazard): Add support for forbidden slots.
14314 (define_delay): Add support for compact branches.
14315 (*branch_order<mode>): Likewise.
14316 (*branch_order<mode>_inverted): Likewise.
14317 (*branch_equality<mode>): Likewise.
14318 (*branch_equality<mode>_inverted): Likewise.
14319 (*jump_absolute): Likewise.
14320 (*jump_pic): Likewise.
14321 (indirect_jump): Use mips_output_jump to produce assembly output.
14322 (tablejump_<mode>"): Likewise.
14323 (*<optab>"): Likewise.
14324 (<optab>_internal): Likewise.
14325 (sibcall_internal): Likewise.
14326 (sibcall_value_internal): Likewise.
14327 (sibcall_value_multiple_internal): Likewise.
14328 (call_internal): Likewise.
14329 (call_split): Likewise.
14330 (call_internal_direct): Likewise.
14331 (call_direct_split): Likewise.
14332 (call_value_internal): Likewise.
14333 (call_value_split): Likewise.
14334 (call_value_internal_direct): Likewise.
14335 (call_value_direct_split): Likewise.
14336 (call_value_multiple_internal): Likewise.
14337 (call_value_multiple_split): Likewise.
14338 (mips_get_fcsr_mips16_<mode>): Likewise.
14339 (mips_set_fcsr_mips16_<mode>): Likewise.
14340 (tls_get_tp_mips16_<mode>): Likewise.
14341 * config/mips/mips.opt: Add -mcompact-branches option.
14342 * config/mips/predicates.md (order_operator): Ensure the
14343 conditional compact branches are only used if the ISA them.
14344 * doc/invoke.texi: Document -mcompact-branches option.
14346 2015-09-01 Vladimir Makarov <vmakarov@redhat.com>
14349 * lra-lives.c (process_bb_lives): Process move pseudos with the
14350 same value for copies and preferences
14351 * lra-constraints.c (match_reload): Create match reload pseudo
14352 with the same value from single dying input pseudo.
14354 2015-09-01 Ilya Enkovich <enkovich.gnu@gmail.com>
14357 * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
14359 2015-09-01 Aldy Hernandez <aldyh@redhat.com>
14361 * trans-mem.c: Add contributed-by.
14362 * trans-mem.h: Same.
14364 2015-09-01 Richard Biener <rguenther@suse.de>
14366 * expr.c (expand_expr_real_1): For expanding TERed defs
14367 set the current location to that of the def if not UNKNOWN.
14369 2015-09-01 David Sherwood <david.sherwood@arm.com>
14371 * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
14373 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14375 * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
14376 then_cost, else_cost fields. Change branch_cost field to unsigned int.
14377 (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
14378 Include rtl-iter.h.
14379 (noce_simple_bbs): New function.
14380 (noce_try_move): Bail if basic blocks are not simple.
14381 (noce_try_store_flag): Likewise.
14382 (noce_try_store_flag_constants): Likewise.
14383 (noce_try_addcc): Likewise.
14384 (noce_try_store_flag_mask): Likewise.
14385 (noce_try_cmove): Likewise.
14386 (noce_try_minmax): Likewise.
14387 (noce_try_abs): Likewise.
14388 (noce_try_sign_mask): Likewise.
14389 (noce_try_bitop): Likewise.
14390 (bbs_ok_for_cmove_arith): New function.
14391 (noce_emit_all_but_last): Likewise.
14392 (noce_emit_insn): Likewise.
14393 (noce_emit_bb): Likewise.
14394 (noce_try_cmove_arith): Handle non-simple basic blocks.
14395 (insn_valid_noce_process_p): New function.
14396 (contains_mem_rtx_p): Likewise.
14397 (bb_valid_for_noce_process_p): Likewise.
14398 (noce_process_if_block): Allow non-simple basic blocks
14401 2015-08-31 Alan Lawrence <alan.lawrence@arm.com>
14403 * tree-ssa-dom.c (record_equivalences_from_phis,
14404 record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
14405 (lookup_avail_expr): Likewise, and remove comment and unused temp.
14407 2015-09-01 Nick Clifton <nickc@redhat.com>
14409 * config/msp430/msp430.opt (mcpu): Fix typo.
14411 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14413 * config/aarch64/aarch64.c (aarch64_set_current_function):
14414 Re-layout any vector parameters have non-simd layout.
14415 * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
14417 (aarch64_simd_expand_args): Delete call to the above.
14419 2015-08-31 Mike Frysinger <vapier@gentoo.org>
14421 * doc/invoke.texi (asan-stack): Add space before option.
14423 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
14425 * tree.h (zerop): New function.
14426 * tree.c (zerop): Likewise.
14427 (element_precision): Handle expressions.
14428 * match.pd (define_predicates): Add zerop.
14429 (x <= +Inf): Fix comment.
14430 (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
14431 * fold-const.c (fold_binary_loc): ... here. Remove.
14433 2015-08-31 Richard Biener <rguenther@suse.de>
14435 PR middle-end/67381
14436 * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
14438 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
14440 * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
14441 (CEXPI): New operator list.
14442 (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
14443 imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
14445 * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
14447 2015-08-31 Tom de Vries <tom@codesourcery.com>
14449 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
14450 (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
14452 (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
14453 (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
14454 (rewrite_into_loop_closed_ssa): ... here.
14455 (replace_uses_in_dominated_bbs): Remove function.
14456 (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
14457 rewrite_into_loop_closed_ssa_1.
14459 2015-08-31 Michael Matz <matz@suse.de>
14461 * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
14462 enter entry and exit blocks for reverse post order.
14464 2015-08-31 Richard Biener <rguenther@suse.de>
14466 * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
14467 (lto_location_cache::current_sysp): Likewise.
14468 (output_block::current_sysp): Likewise.
14469 * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
14470 (lto_location_cache::apply_location_cache): Properly record
14471 system header locations.
14472 (lto_location_cache::input_location): Input whether a file
14473 is a system header.
14474 * lto-streamer-out.c (lto_output_location): Stream whether a file
14475 is a system header.
14477 2015-08-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14480 * gcc.c (env_manager::xput): Replace strndup by xstrndup.
14482 2015-08-31 Tom de Vries <tom@codesourcery.com>
14484 * tree-ssa-loop-manip.c (find_uses_to_rename_use)
14485 (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
14486 Improve function header comments.
14488 2015-08-30 Michael Collison <michael.collison@linaro.org>
14491 * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
14494 2015-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14496 * config/rs6000/rs6000.c (swap_web_entry): Enlarge
14497 special_handling bitfield.
14498 (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
14499 (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
14500 that represents a general xxpermdi.
14501 (insn_is_swappable_p): Add handling for vec_concat of two
14502 doublewords, which maps to a specific xxpermdi.
14503 (adjust_xxpermdi): New function.
14504 (adjust_concat): Likewise.
14505 (handle_special_swappables): Call adjust_xxpermdi and
14507 (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
14509 2015-08-30 Rich Felker <dalias@libc.org>
14511 * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
14512 case instead of sh[123456ble]-*-*.
14514 2015-08-29 Anatoly Sokolov <aesok@post.ru>
14516 * ira.c (print_unform_and_important_classes,
14517 print_translated_classes): Remove reg_class_names static array.
14518 (print_unform_and_important_classes): Rename to ...
14519 (print_uniform_and_important_classes): ... this.
14520 (ira_debug_allocno_classes): Update accordingly.
14522 2015-08-29 Tom de Vries <tom@codesourcery.com>
14524 PR tree-optimization/46193
14525 * omp-low.c (omp_reduction_init): Handle pointer type for min or max
14528 2015-08-28 Jeff Law <law@redhat.com>
14531 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
14532 unable to find X NE 0 in the tables, return X as the simplified
14534 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
14535 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
14537 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
14538 after removing the control flow statement and unnecessary edges.
14540 2015-08-28 Alan Lawrence <alan.lawrence@arm.com>
14543 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
14545 PR tree-optimization/67283
14546 * tree-sra.c (type_consists_of_records_p): Rename to...
14547 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
14549 (completely_scalarize_record): Rename to...
14550 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
14552 (scalarize_elem): New.
14554 2015-08-28 Jiong Wang <jiong.wang@arm.com>
14556 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
14557 SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
14558 (aarch64_symbol_type): Likewise.
14559 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
14561 (aarch64_expand_mov_immediate): Likewise.
14562 (aarch64_print_operand): Likewise.
14563 (aarch64_classify_tls_symbol): Likewise.
14565 2015-08-28 Richard Biener <rguenther@suse.de>
14567 * cgraphunit.c (symbol_table::compile): Move early debug generation
14569 (symbol_table::finalize_compilation_unit): ... back here and
14570 add a !seen_error () guard.
14572 2015-08-27 Sebastian Pop <s.pop@samsung.com>
14574 * toplev.c (process_options): Do not use flag_loop_block,
14575 flag_loop_interchange, and flag_loop_strip_mine. Add check for
14576 flag_loop_optimize_isl.
14578 2015-08-27 Sebastian Pop <s.pop@samsung.com>
14580 * Makefile.in (OBJS): Remove graphite-blocking.o and
14581 graphite-interchange.o.
14582 * common.opt (floop-strip-mine, floop-interchange, floop-block):
14583 Alias of floop-nest-optimize.
14584 * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
14585 Document as alias of -floop-nest-optimize.
14586 * graphite-blocking.c: Remove.
14587 * graphite-interchange.c: Remove.
14588 * graphite-optimize-isl.c: Include dumpfile.h.
14589 (getScheduleForBand): Add dump for tiled loops. Use
14590 PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
14591 * graphite-poly.c (scop_max_loop_depth): Remove.
14592 (print_scattering_function_1): Remove.
14593 (print_scattering_function): Remove.
14594 (print_scattering_functions): Remove.
14595 (debug_scattering_function): Remove.
14596 (debug_scattering_functions): Remove.
14597 (apply_poly_transforms): Remove use of flag_loop_block,
14598 flag_loop_strip_mine, and flag_loop_interchange.
14599 (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
14601 (print_pdr_access_layout): Remove.
14602 (print_pdr): Print ISL representation.
14603 (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
14604 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
14606 (openscop_print_pbb_domain): Remove.
14607 (print_pbb): Remove call to print_scattering_function.
14608 (openscop_print_scop_context): Remove.
14609 (print_scop_context): Do not print matrices anymore.
14610 (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
14611 SCOP_TRANSFORMED_SCHEDULE.
14612 (print_isl_set): Add printing of a new line.
14613 (print_isl_map): Same.
14614 (print_isl_aff): Same.
14615 (print_isl_constraint): Same.
14616 (loop_to_lst): Remove.
14617 (scop_to_lst): Remove.
14618 (lst_indent_to): Remove.
14619 (print_lst): Remove.
14620 (debug_lst): Remove.
14621 (dot_lst_1): Remove.
14623 (reverse_loop_at_level): Remove.
14624 (reverse_loop_for_pbbs): Remove.
14625 * graphite-poly.h (pdr_dim_iter_domain): Remove.
14626 (pdr_nb_params): Remove.
14627 (pdr_alias_set_dim): Remove.
14628 (pdr_subscript_dim): Remove.
14629 (pdr_iterator_dim): Remove.
14630 (pdr_parameter_dim): Remove.
14631 (same_pdr_p): Remove.
14632 (struct poly_scattering): Remove.
14633 (struct poly_bb): Remove _original, _transformed, _saved.
14634 (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
14635 (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
14636 (PBB_NB_LOCAL_VARIABLES): Remove.
14637 (PBB_NB_SCATTERING_TRANSFORM): Remove.
14638 (schedule_to_scattering): Remove.
14639 (number_of_write_pdrs): Remove.
14640 (pbb_dim_iter_domain): Remove.
14641 (pbb_nb_params): Remove.
14642 (pbb_nb_scattering_orig): Remove.
14643 (pbb_nb_scattering_transform): Remove.
14644 (pbb_nb_dynamic_scattering_transform): Remove.
14645 (pbb_nb_local_vars): Remove.
14646 (pbb_iterator_dim): Remove.
14647 (pbb_parameter_dim): Remove.
14648 (psco_scattering_dim): Remove.
14649 (psct_scattering_dim): Remove.
14650 (psct_local_var_dim): Remove.
14651 (psco_iterator_dim): Remove.
14652 (psct_iterator_dim): Remove.
14653 (psco_parameter_dim): Remove.
14654 (psct_parameter_dim): Remove.
14655 (psct_dynamic_dim): Remove.
14656 (psct_static_dim): Remove.
14657 (psct_add_local_variable): Remove.
14658 (new_lst_loop): Remove.
14659 (new_lst_stmt): Remove.
14660 (free_lst): Remove.
14661 (copy_lst): Remove.
14662 (lst_add_loop_under_loop): Remove.
14663 (lst_depth): Remove.
14664 (lst_dewey_number): Remove.
14665 (lst_dewey_number_at_depth): Remove.
14666 (lst_pred): Remove.
14667 (lst_succ): Remove.
14668 (lst_find_pbb): Remove.
14669 (find_lst_loop): Remove.
14670 (lst_find_first_pbb): Remove.
14671 (lst_empty_p): Remove.
14672 (lst_find_last_pbb): Remove.
14673 (lst_contains_p): Remove.
14674 (lst_contains_pbb): Remove.
14675 (lst_create_nest): Remove.
14676 (lst_remove_from_sequence): Remove.
14677 (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
14678 (lst_niter_for_loop): Remove.
14679 (pbb_update_scattering): Remove.
14680 (lst_update_scattering_under): Remove.
14681 (lst_update_scattering): Remove.
14682 (lst_insert_in_sequence): Remove.
14683 (lst_replace): Remove.
14684 (lst_substitute_3): Remove.
14685 (lst_distribute_lst): Remove.
14686 (lst_remove_all_before_including_pbb): Remove.
14687 (lst_remove_all_before_excluding_pbb): Remove.
14688 (struct scop): Remove original_schedule, transformed_schedule, and
14690 (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
14691 (SCOP_SAVED_SCHEDULE): Remove.
14692 (poly_scattering_new): Remove.
14693 (poly_scattering_free): Remove.
14694 (poly_scattering_copy): Remove.
14695 (store_scattering_pbb): Remove.
14696 (store_lst_schedule): Remove.
14697 (restore_lst_schedule): Remove.
14698 (store_scattering): Remove.
14699 (restore_scattering_pbb): Remove.
14700 (restore_scattering): Remove.
14701 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
14702 Remove scattering_dimensions. Do not use pbb_dim_iter_domain:
14703 compute the scattering polyhedron dimension from the dimension of
14705 (build_scop_scattering): Update call to
14706 build_pbb_scattering_polyhedrons.
14707 (build_poly_scop): Remove call to scop_to_lst.
14708 * graphite.c (graphite_transform_loops): Add call to print_scop.
14709 (gate_graphite_transforms): Remove use of flag_loop_block,
14710 flag_loop_interchange, and flag_loop_strip_mine.
14712 2015-08-27 Sebastian Pop <s.pop@samsung.com>
14714 * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
14715 * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
14716 -floop-nest-optimize.
14717 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
14718 (generate_luj_sepclass): Remove.
14719 (generate_luj_options): Remove.
14720 (set_options): Remove opt_luj.
14721 (scop_to_isl_ast): Remove opt_luj.
14722 * graphite-optimize-isl.c (getScheduleForBand): Remove check for
14723 flag_loop_unroll_jam.
14724 (getPrevectorMap_full): Remove.
14725 (getScheduleForBandList): Remove map_sepcl.
14726 (getScheduleMap): Same.
14727 (apply_schedule_map_to_scop): Remove sepcl.
14728 (optimize_isl): Same.
14729 * graphite-poly.c (apply_poly_transforms): Remove check for
14730 flag_loop_unroll_jam.
14731 (new_poly_bb): Remove map_sepclass.
14732 * graphite-poly.h (struct poly_bb): Same.
14733 * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
14734 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
14735 (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
14736 * toplev.c (process_options): Remove flag_loop_unroll_jam.
14738 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
14741 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
14742 (addqi3_cc): Ditto.
14743 (UNSPEC_ADD_CARRY): Remove.
14744 (addqi3_cconly_overflow): New expander.
14745 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
14746 Adjust for changed add<mode>3_carry.
14747 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
14748 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
14749 (<plusminus_insn><mode>3_carry): Remove expander.
14750 (*<plusminus_insn><mode>3_carry): Split insn pattern to
14751 add<mode>3_carry and sub<mode>3_carry.
14752 (plusminus_carry_mnemonic): Remove code attribute.
14753 (add<mode>3_carry): Canonicalize insn pattern.
14754 (*addsi3_carry_zext): Ditto.
14755 (sub<mode>3_carry): Ditto.
14756 (*subsi3_carry_zext): Ditto.
14757 (adcx<mode>3): Remove insn pattern.
14758 (addcarry<mode>): New insn pattern.
14759 (subborrow<mode>): Ditto.
14760 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
14761 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
14762 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
14763 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
14764 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
14765 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
14766 Rewrite expander to not clobber carry flag chains.
14768 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
14770 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
14771 instead of a rotate.
14773 2015-08-27 Marek Polacek <polacek@redhat.com>
14775 PR middle-end/67005
14776 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
14777 an entry into an irreducible region.
14779 2015-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
14781 * configure: Regenerate.
14783 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
14785 PR tree-optimization/67283
14786 * tree-sra.c (type_consists_of_records_p): Rename to...
14787 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
14789 (completely_scalarize_record): Rename to...
14790 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
14791 (scalarize_elem): New.
14793 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
14795 * tree-sra.c (completely_scalarize_var): Rename to...
14796 (create_total_scalarization_access): ... Here. Drop call to
14797 completely_scalarize_record.
14799 (analyze_all_variable_accesses): Replace completely_scalarize_var
14800 with create_total_scalarization_access and completely_scalarize_record.
14802 2015-08-27 Alan Modra <amodra@gmail.com>
14805 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
14808 2015-08-27 Richard Biener <rguenther@suse.de>
14810 * passes.c (rest_of_decl_compilation): Guard early_global_decl
14811 call with !seen_error ().
14812 * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
14813 early debug generation and finish...
14814 (symbol_table::compile): ... here to put it after a !seen_error ()
14817 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14819 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
14822 2015-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14823 Andre Vieira <andre.simoesdiasvieira@arm.com>
14825 * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
14826 (*cb<optab><mode>1): Likewise.
14827 (*tb<optab><mode>1): Likewise.
14828 (*cb<optab><mode>1): Likewise.
14829 * config/aarch64/iterators.md (inv_cb): New code attribute.
14830 (inv_tb): Likewise.
14831 * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
14832 * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
14834 2015-08-27 Richard Biener <rguenther@suse.de>
14836 * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
14838 2015-08-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
14840 * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
14843 2015-08-26 Michael Meissner <meissner@linux.vnet.ibm.com>
14845 * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
14848 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
14850 (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
14851 floating point in VSX registers.
14852 (rs6000_output_move_128bit): Always print out the set insn if we
14853 can't generate an appropriate 128-bit move.
14854 (rs6000_generate_compare): Add support for IEEE 128-bit floating
14855 point in VSX registers comparisons.
14856 (rs6000_expand_float128_convert): Likewise.
14858 * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
14859 predicate for only GPR hard registers.
14861 * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
14862 modes to iterators. Add new iterators for moving 128-bit values in
14863 scalar FPR registers and VSX registers.
14864 (FMOVE128): Likewise.
14865 (FMOVE128_FPR): Likewise.
14866 (FMOVE128_GPR): Likewise.
14867 (FMOVE128_VSX): Likewise.
14868 (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
14871 (IBM128): Likewise.
14872 (TFIFKF): Likewise.
14873 (RELOAD): Add IEEE 128-bit floating point modes.
14874 (signbittf2): Convert TF insns to add support for new IEEE 128-bit
14875 floating point in VSX registers modes.
14876 (signbit<mode>2, IBM128 iterator): Likewise.
14877 (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
14878 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
14879 (negtf2): Likewise.
14880 (neg<mode>2, TFIFKF iterator): Likewise.
14881 (negtf2_internal): Likewise.
14882 (abstf2): Likewise.
14883 (abs<mode>2, TFIFKF iterator): Likewise.
14884 (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
14885 VSX insn support for negate, absolute value, and negative absolute
14887 (ieee_128bit_vsx_neg<mode>2): Likewise.
14888 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
14889 (ieee_128bit_vsx_abs<mode>2): Likewise.
14890 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
14891 (ieee_128bit_vsx_nabs<mode>2): Likewise.
14892 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
14893 (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
14894 floating point in VSX registers.
14895 (unpack<mode>_dm): Likewise.
14896 (unpack<mode>_nodm): Likewise.
14897 (pack<mode>): Likewise.
14898 (unpackv1ti): Likewise.
14899 (unpack<mode>, FMOVE128_VSX iterator): Likewise.
14900 (packv1ti): Likewise.
14901 (pack<mode>, FMOVE128_VSX iterator): Likewise.
14902 (extenddftf2): Add support for IEEE 128-bit floating point in VSX
14904 (extenddftf2_internal): Likewise.
14905 (trunctfdf2): Likewise.
14906 (trunctfdf2_internal2): Likewise.
14907 (fix_trunc_helper): Likewise.
14908 (fix_trunctfdi2"): Likewise.
14909 (floatditf2): Likewise.
14910 (floatuns<mode>tf2): Likewise.
14911 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
14912 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
14913 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
14914 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
14915 (float<SDI:mode><IFKF:mode>2): Likewise.
14916 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
14918 2015-08-26 Renlin Li <renlin.li@arm.com>
14920 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
14922 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
14923 Jiong Wang <jiong.wang@arm.com>
14925 * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
14926 (tlsie_tiny_<mode>): New define_insn.
14927 (tlsie_tiny_sidi): Likewise.
14928 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
14930 (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
14931 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
14933 (aarch64_expand_mov_immediate): Likewise.
14934 (aarch64_print_operand): Likewise.
14935 (arch64_classify_tls_symbol): Likewise.
14937 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
14939 * config/arm/arm-arches.def: Replace single value flags with
14940 an initializer built from ARM_FSET_MAKE_CPU1.
14941 * config/arm/arm-cores.def: Likewise.
14942 * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
14943 derivation from the ARM_CORE macro definition, use the given value
14945 (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
14946 ARM_ARCH macro definition, use the given value instead.
14948 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
14950 * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
14952 (struct builtin_description): Replace field mask with field
14954 (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
14955 (IWMMXT2_BUILTIN): Likewise.
14956 (IWMMXT2_BUILTIN2): Likewise.
14957 (FP_BUILTIN): Likewise.
14958 (CRC32_BUILTIN): Likewise.
14959 (CRYPTO_BUILTIN): Likewise.
14960 (iwmmx_mbuiltin): Likewise.
14961 (iwmmx2_mbuiltin): Likewise.
14962 (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
14963 struct builtin_description.
14965 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
14967 * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
14968 (struct builtin_description): Change type of mask to unsigned
14970 * config/arm/arm-protos.h (insn_flags): Declare as type
14972 (tune_flags): Likewise.
14973 * config/arm/arm.c (feature_count): New.
14974 (insn_flags): Define as type arm_feature_set.
14975 (tune_flags): Likewise.
14976 (struct processors): Define field flags as type arm_feature_set.
14977 (all_cores): Update for change to struct processors.
14978 (all_architectures): Likewise.
14979 (arm_option_check_internal): Use arm_feature_set and ARM_FSET
14981 (arm_option_override_internal): Likewise.
14982 (arm_option_override): Likewise.
14984 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
14985 Jiong Wang <jiong.wang@arm.com>
14987 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
14988 tls size for tiny, small, large memory model.
14989 (aarch64_load_symref_appropriately): Support new symbol types.
14990 (aarch64_expand_mov_immediate): Likewise.
14991 (aarch64_print_operand): Likewise.
14992 (aarch64_classify_tls_symbol): Likewise.
14993 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
14994 (aarch64_symbol_type): Likewise.
14995 * config/aarch64/aarch64.md (tlsle): Deleted.
14996 (tlsle12_<mode>): New define_insn.
14997 (tlsle24_<mode>): Likewise.
14998 (tlsle32_<mode>): Likewise.
14999 (tlsle48_<mode>): Likewise.
15000 * doc/sourcebuild.texi (AArch64-specific attributes): Document
15003 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
15005 * config/arm/arm-protos.h (FL_NONE): New.
15007 (arm_feature_set): New.
15008 (ARM_FSET_MAKE): New.
15009 (ARM_FSET_MAKE_CPU1): New.
15010 (ARM_FSET_MAKE_CPU2): New.
15011 (ARM_FSET_CPU1): New.
15012 (ARM_FSET_CPU2): New.
15013 (ARM_FSET_EMPTY): New.
15014 (ARM_FSET_ANY): New.
15015 (ARM_FSET_HAS_CPU1): New.
15016 (ARM_FSET_HAS_CPU2): New.
15017 (ARM_FSET_HAS_CPU): New.
15018 (ARM_FSET_ADD_CPU1): New.
15019 (ARM_FSET_ADD_CPU2): New.
15020 (ARM_FSET_DEL_CPU1): New.
15021 (ARM_FSET_DEL_CPU2): New.
15022 (ARM_FSET_UNION): New.
15023 (ARM_FSET_INTER): New.
15024 (ARM_FSET_XOR): New.
15025 (ARM_FSET_EXCLUDE): New.
15026 (AFM_FSET_IS_EMPTY): New.
15027 (ARM_FSET_CPU_SUBSET): New.
15029 2015-08-26 Jiong Wang <jiong.wang@arm.com>
15031 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
15032 SYMBOL_TLSLE to SYMBOL_TLSLE24.
15033 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
15035 (aarch64_expand_mov_immediate): Likewise.
15036 (aarch64_print_operand): Likewise.
15037 (aarch64_classify_symbol): Likewise.
15039 2015-08-26 Jiong Wang <jiong.wang@arm.com>
15041 * config/aarch64/aarch64.opt (mtls-size): New entry.
15042 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
15043 (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
15044 * doc/invoke.texi (AArch64 Options): Document -mtls-size.
15046 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
15048 * config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
15049 ARM_CORE entry. Fix some white-space.
15050 * config/arm/arm.c: Remove FL_FOR_ARCH derivation from
15051 ARM_CORE definition.
15053 2015-08-26 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
15055 * fold-const.c (fold_binary_loc) : Move Optimize
15056 root(x)*root(y) as root(x*y) to match.pd.
15057 Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
15058 Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
15059 Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
15060 Move Optimize x/expN(y) into x*expN(-y) to match.pd.
15061 * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
15062 (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
15063 (mult (exps:s @0) (exps:s @1)) : New simplifier.
15064 (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
15065 (rdiv @0 (exps:s @1)) : New simplifier.
15067 2015-08-25 Joseph Myers <joseph@codesourcery.com>
15069 * gcc.c (driver::finalize): Only assign to extra_specs if
15072 2015-08-25 Marek Polacek <polacek@redhat.com>
15074 PR middle-end/67330
15075 * varasm.c (declare_weak): Return after giving an error.
15077 2015-08-25 David Malcolm <dmalcolm@redhat.com>
15079 * gcc-main.c (main): Add params to driver ctor.
15080 * gcc.c (class env_manager): New.
15082 (env_manager::init): New.
15083 (env_manager::get): New.
15084 (env_manager::xput): New.
15085 (env_manager::restore): New.
15086 Poison getenv and putenv.
15087 (DEFAULT_TARGET_SYSTEM_ROOT): New.
15088 (target_system_root): Update initialization to use
15089 DEFAULT_TARGET_SYSTEM_ROOT.
15090 (struct spec_list): Add field "default_ptr".
15091 (INIT_STATIC_SPEC): Initialize new field "default_ptr".
15092 (init_spec): Likewise.
15093 (set_spec): Clear field "default_ptr".
15094 (read_specs): Free "spec" and "buffer".
15095 (xputenv): Reimplement in terms of env_manager.
15096 (process_command): Replace ::getenv calls with calls to the
15097 env_manager singleton.
15098 (process_brace_body): Free string in three places.
15099 (driver::driver): New.
15100 (driver::~driver): New.
15101 (used_arg): Convert from a function to...
15102 (class used_arg_t): ...this class, and...
15103 (used_arg): ...this new global instance.
15104 (used_arg_t::finalize): New function.
15105 (getenv_spec_function): Add "const" to local "value". Replace
15106 ::getenv call with call to the env_manager singleton.
15107 (path_prefix_reset): New function.
15108 (driver::finalize): New function.
15109 * gcc.h (driver::driver): New.
15110 (driver::~driver): New.
15111 (driver::finalize): New.
15113 2015-08-25 Nathan Sidwell <nathan@acm.org>
15115 * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
15116 target doesn't have one.
15118 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
15121 * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
15123 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
15126 * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
15127 a define_insn, remove second alternative.
15129 2015-08-25 Thomas Schwinge <thomas@codesourcery.com>
15130 Joseph Myers <joseph@codesourcery.com>
15132 * gcc.c (struct switchstr): Expand comment.
15134 2015-08-25 Nathan Sidwell <nathan@acm.org>
15136 * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
15137 (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
15139 2015-08-25 Richard Biener <rguenther@suse.de>
15141 PR middle-end/67306
15142 * genmatch.c (expr::gen_transform): Verify the result of
15143 builtin_decl_implicit.
15144 (dt_simplify::gen_1): Likewise.
15146 2015-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
15148 * config/arm/constraints.md: Also list Cs and US ARM-specific
15149 constraints as used.
15151 2015-08-24 Kaz Kojima <kkojima@gcc.gnu.org>
15154 * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
15156 (nonpic_symbol_mentioned_p): Likewise.
15157 (sh_delegitimize_address): Likewise.
15158 (sh_function_ok_for_sibcall): Take into account weak symbols.
15159 (sh_expand_sym_label2reg): New.
15160 * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
15161 * config/sh/sh.md (UNSPEC_PCREL): New enum.
15162 (call_pcrel): Use sh_expand_sym_label2reg.
15163 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
15164 (symPCREL_label2reg) New expand.
15166 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
15168 * graphite-poly.c: Change type of region from void* to sese.
15169 * graphite-poly.h (struct scop): Changing the type of scop::region
15170 from void* to sese. Change accessor macro accordingly.
15171 * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
15173 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
15175 * graphite-scop-detection.c (stmt_simple_for_scop_p):
15176 Constrain only on INTEGER_TYPE.
15178 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
15181 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
15182 -mefficient-unaligned-vsx on ISA 2.7.
15184 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
15185 option to a masked option.
15187 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
15188 logic for -mefficient-unaligned-vsx so that it is set via an arch
15189 ISA option, instead of being set if -mtune=power8 is set. Move
15190 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
15191 near other default option handling.
15193 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
15195 * genflags.c (gen_macro): Delete.
15196 (gen_proto): Don't create GEN.*CALL.* macros.
15197 * gensupport.h (get_file_location): Declare.
15198 * gensupport.c (rtx_locs): New variable.
15199 (read_md_rtx): Record rtx locations.
15200 (get_file_location): New function.
15201 * target-insns.def (call, call_pop, call_value, call_value_pop)
15202 (sibcall, sibcall_value): New patterns.
15203 * gentarget-def.c (parse_argument): New function.
15204 (def_target_insn): Use it. Handle optional operands. Raise an
15205 error if an .md pattern has the wrong number of operands for the
15206 pattern name. Remove the names of unused operands from the prototype.
15207 * builtins.c (expand_builtin_apply): Use targetm functions
15208 instead of HAVE_call_value and GEN_CALL_VALUE.
15209 * calls.c (emit_call_1): Likewise. Remove support for sibcall_pop
15210 and sibcall_value_pop.
15211 * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
15213 * config/alpha/alpha.md (untyped_call): Likewise.
15214 * config/iq2000/iq2000.md (untyped_call): Likewise.
15215 * config/m68k/m68k.md (untyped_call): Likewise.
15216 * config/mips/mips.md (untyped_call): Likewise.
15217 * config/pa/pa.md (untyped_call): Likewise.
15218 * config/rs6000/rs6000.md (untyped_call): Likewise.
15219 * config/sparc/sparc.md (untyped_call): Likewise.
15220 * config/tilegx/tilegx.md (untyped_call): Likewise.
15221 * config/tilepro/tilepro.md (untyped_call): Likewise.
15222 * config/visium/visium.md (untyped_call): Likewise.
15223 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
15224 gen_call_value instead of GEN_CALL_VALUE.
15225 * config/arm/arm.md (untyped_call): Likewise.
15226 * config/cr16/cr16.c (cr16_function_arg): Remove reference to
15229 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
15231 * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
15232 (have_cbranchcc4): New variable.
15233 (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
15234 (noce_get_condition): Use it instead of HAVE_cbranchcc4.
15235 (if_convert): Initialize have_cbranchcc4.
15237 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
15239 * builtins.c (expand_cmpstrn): Rename to...
15240 (expand_cmpstrn_or_cmpmem): ...this.
15241 (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
15242 (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
15243 Remove mode argument.
15244 (expand_builtin): Update accordingly.
15246 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
15248 * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
15249 (expand_builtin_strcmp, expand_builtin_strncmp): Use them. Remove
15250 references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
15251 * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
15252 Add predicates for operands 0 and 3.
15253 * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
15255 * config/sh/sh.md (cmpstrnsi): Change the length predicate from
15256 immediate_operand to nonmemory_operand.
15258 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
15260 * df-scan.c (df_insn_info_init_fields): New function, split out
15262 (df_insn_create_insn_record): ...here.
15263 (df_insn_info_free_fields): New function, split out from...
15264 (df_insn_info_delete): ...here.
15265 (df_insn_rescan): Use the new functions instead of freeing and
15266 reallocating the df_insn_info.
15268 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
15270 * doc/install.texi (Binaries): Remove links no longer valid.
15272 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
15274 * config/nvptx/mkoffload.c (process): Replace
15275 GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
15277 2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
15280 * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
15282 2015-08-24 Renlin Li <renlin.li@arm.com>
15284 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
15285 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
15286 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
15287 * config/arm/constraints.md ("j"): Add check for high code.
15289 2015-08-24 Tom de Vries <tom@codesourcery.com>
15291 PR tree-optimization/65468
15292 * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
15295 2015-08-24 Nathan Sidwell <nathan@acm.org>
15297 * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
15298 change to nvptx_type_from_mode call. Use arg_promotion for both
15299 split and non-split args.
15301 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
15303 * target-insns.def (movstr): New pattern.
15304 * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
15305 (expand_movstr): Use targetm rather than HAVE_movstr/
15308 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
15310 * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
15313 2015-08-24 Andrew Pinski <apinski@cavium.com>
15315 * config/aarch64/aarch64-tuning-flags.def: Remove all index to
15316 AARCH64_EXTRA_TUNING_OPTION.
15317 * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
15319 (aarch64_extra_tuning_flags): Base the shifted value on the index
15320 instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
15321 * config/aarch64/aarch64.c: Remove the last argument to
15322 AARCH64_EXTRA_TUNING_OPTION.
15324 2015-08-23 Nathan Sidwell <nathan@acm.org>
15326 * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
15328 (nvptx_declare_function_name): Insert formatting tabs for
15331 2015-08-23 Tom de Vries <tom@codesourcery.com>
15333 * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
15334 parm_decl, rather than generating a dummy default def in cfun.
15335 * tree-cfg.c (replace_ssa_name): Assume no default defs. Make sure
15336 ssa_name from cfun and child_fn do not share a stmt as def stmt.
15337 (move_stmt_op): Handle PARM_DECl.
15338 (gather_ssa_name_hash_map_from): New function.
15339 (move_sese_region_to_fn): Add default defs for function params, and add
15340 them to vars_map. Release copied ssa names.
15341 * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
15343 2015-08-23 Tom de Vries <tom@codesourcery.com>
15345 * doc/sourcebuild.texi: Rename vect_no_int_max with
15346 vect_no_int_min_max. Update description.
15348 2015-08-22 Andrew Pinski <apinski@cavium.com>
15350 * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
15351 * config/aarch64/aarch64-protos.h
15352 (aarch64_fusion_pairs_index): New enum.
15353 (aarch64_fusion_pairs): Base the shifted value on the index instead
15354 Rewrite AARCH64_FUSE_ALL to be based on the end index.
15355 of the argument to AARCH64_FUSION_PAIR.
15356 * config/aarch64/aarch64.c: Remove the last argument to
15357 AARCH64_FUSION_PAIR.
15359 2015-08-22 Mikhail Maltsev <maltsevm@gmail.com>
15361 * dominance.c (new_zero_array): Define.
15362 (dom_info): Redefine as class with proper encapsulation.
15363 (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
15365 (dom_info::dom_info, ~dom_info): Define. Use new/delete for memory
15366 allocations/deallocations. Pass function as parameter (instead of
15368 (dom_info::get_idom): Define accessor method.
15369 (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
15370 link_roots, calc_idoms): Redefine as class members. Do not use cfun.
15371 (calculate_dominance_info): Adjust to use dom_info class.
15372 (verify_dominators): Likewise.
15374 2015-08-21 Alexandre Oliva <aoliva@redhat.com>
15376 * print-rtl.c (print_rtx): Check the correct range for
15377 flag_dump_unnumbered_links to behave as documented.
15379 PR rtl-optimization/67227
15380 PR rtl-optimization/64164
15381 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
15382 (nonoverlapping_memrefs_p): Test offsets and sizes when given
15383 identical gimple_reg exprs.
15385 2015-08-21 Nathan Sidwell <nathan@acm.org>
15387 * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
15389 * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
15390 crtl->stack_alignment_needed to determine alignment.
15391 (nvptx_get_drap_rtx): New.
15392 (TARGET_GET_DRAP_RTX): Override.
15393 * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
15395 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
15397 * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
15399 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
15401 * configure.ac: Remove uwin* cases.
15402 * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
15403 i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
15404 i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
15405 i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
15406 * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
15407 i[34567]86-*-uwin*, powerpc-*-beos*.
15409 2015-08-21 Richard Sandiford <richard.sandiford@arm.com>
15411 * gencodes.c (gencodes): Print the comma for the preceding
15412 enum value rather than the current one. Use aliased enum values
15413 rather than #defines for compiled-out patterns.
15414 (main): Update accordingly. Replace LAST_INSN_CODE with
15416 * lra.c (insn_code_data): Update accordingly.
15417 (finish_insn_code_data_once, get_static_insn_data): Likewise.
15418 * recog.h (target_recog): Likewise.
15419 (preprocess_insn_constraints): Change parameter to unsigned int.
15420 * recog.c (preprocess_insn_constraints): Likewise.
15421 (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
15422 * tree-vect-stmts.c (vectorizable_operation): Simplify.
15424 2015-08-21 Markus Trippelsdorf <markus@trippelsdorf.de>
15426 PR rtl-optimization/61657
15427 * loop-iv.c (iv_number_of_iterations): Declare up and down as
15428 unsigned. Remove superflous uint64_t cast.
15430 2014-08-21 Felix Yang <felix.yang@huawei.com>
15431 Jiji Jiang <jiangjiji@huawei.com>
15433 * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
15434 argument and get builtin function code directly from CALL.
15435 (gimple_stringop_fixed_value): Modified accordingly.
15436 (gimple_stringops_transform, gimple_stringops_values_to_profile):
15437 Modified accordingly and only accept BUILT_IN_NORMAL string operations.
15439 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
15441 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
15443 2015-08-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
15445 * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
15447 Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
15448 Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
15449 Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
15450 Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
15451 Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
15452 Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
15453 Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
15454 Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
15455 Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
15456 Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
15458 * match.pd (SIN ) : New Operator.
15459 (TAN) : New Operator.
15460 (mult (SQRT@1 @0) @1) : New simplifier.
15461 (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
15462 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
15463 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
15464 (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
15465 (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
15466 (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
15467 (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
15468 (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
15469 (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
15470 (rdiv @0 (POW:s @1 @2)) : New simplifier.
15472 2015-08-21 Bin Cheng <bin.cheng@arm.com>
15474 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
15475 loop if EXPR is simplified to const value.
15477 2015-08-21 Yury Gribov <y.gribov@samsung.com>
15479 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
15480 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
15482 2015-08-21 Richard Biener <rguenther@suse.de>
15484 PR middle-end/67285
15485 * gimple-fold.c (replace_stmt_with_simplification): Assert
15486 seq is empty when replacing a call with itself but different
15488 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
15489 a call require that it is const.
15491 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15493 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
15494 * builtins.c (get_object_alignment_2): Adjust.
15495 * varasm.c (align_variable): Likewise.
15496 (get_variable_align): Likewise.
15497 (build_constant_desc): Likewise.
15498 (force_const_mem): Likewise.
15499 * doc/tm.texi.in: Likewise.
15500 * doc/tm.texi: Regenerate.
15502 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15504 * genconfig.c (main): Always define HAVE_cc0.
15505 * recog.c (rest_of_handle_peephole2): Adjust.
15507 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15509 * reorg.c (relax_delay_slots): Don't use #if to check value of
15512 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15514 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
15515 * targhooks.c (default_have_conditional_execution): Adjust.
15517 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
15519 * rtl.h (rtvec_all_equal_p): Declare.
15520 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
15521 * rtl.c (rtvec_all_equal_p): New function.
15522 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
15523 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
15524 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
15525 * config/arm/arm.c (neon_vdup_constant): Likewise.
15526 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
15527 * config/tilegx/constraints.md (W, Y): Likewise.
15528 * config/tilepro/constraints.md (W, Y): Likewise.
15529 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
15530 (classify_immediate): Use unwrap_const_vec_duplicate.
15531 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
15532 (reg_or_v2s8bit_operand): Likewise.
15533 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
15534 (reg_or_v4s8bit_operand): Likewise.
15536 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15538 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
15539 (vec_shasigma_be): New #define.
15540 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
15541 (VPMSUMH): Likewise.
15542 (VPMSUMW): Likewise.
15543 (VPMSUMD): Likewise.
15544 (VPMSUM): New BU_P8V_OVERLOAD_2.
15545 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
15546 entries for VEC_MADD and VEC_VPMSUM.
15548 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
15550 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
15551 Multiply argument avr_n_flash by 64 to match unit of "KiB".
15552 (avr_pgm_check_var_decl): Same.
15554 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
15556 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
15557 initialization of HFmode scalar type (float16_t) to...
15558 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
15561 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
15563 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
15564 having an -mfp16-format.
15566 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
15568 * config/i386/predicates.md (vector_all_ones_operand): Use
15569 CONSTM1_RTX to simplify definition.
15571 2015-08-20 Richard Biener <rguenther@suse.de>
15573 * toplev.c (compile_file): Remove loop calling late_global_decl
15575 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
15576 on decls we assembled.
15578 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
15580 * common/config/aarch64/aarch64-common.c
15581 (AARCH64_CPU_NAME_LENGTH): Delete.
15582 (aarch64_option_extension): New.
15583 (all_extensions): Likewise.
15584 (processor_name_to_arch): Likewise.
15585 (arch_to_arch_name): Likewise.
15587 (all_architectures): Likewise.
15588 (aarch64_get_extension_string_for_isa_flags): Likewise.
15589 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
15590 architecture names.
15591 * config/aarch64/aarch64-protos.h
15592 (aarch64_get_extension_string_for_isa_flags): New.
15593 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
15594 (aarch64_option_print): Get the string to print from
15595 aarch64_get_extension_string_for_isa_flags.
15596 (aarch64_declare_function_name): Likewise.
15597 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
15598 (MCPU_TO_MARCH_SPEC): This.
15599 (ASM_CPU_SPEC): Use it.
15600 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
15601 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
15602 (EXTRA_SPEC_FUNCTIONS): Use it.
15604 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
15606 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
15607 expansion when !ISA_HAS_LWL_LWR.
15608 (mips_block_move_straight): Update the size of elements copied to
15609 account for alignment when !ISA_HAS_LWL_LWR.
15610 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
15612 2015-08-19 Jiong Wang <jiong.wang@arm.com>
15614 * expr.c (expand_expr_real_2): Check gimple statement during
15615 LSHIFT_EXPR expand.
15617 2015-08-19 Magnus Granberg <zorry@gentoo.org>
15619 * common.opt (fstack-protector): Initialize to -1.
15620 (fstack-protector-all): Likewise.
15621 (fstack-protector-strong): Likewise.
15622 (fstack-protector-explicit): Likewise.
15623 * configure.ac: Add --enable-default-ssp.
15624 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
15625 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
15627 * doc/install.texi: Document --enable-default-ssp.
15628 * config.in: Regenerated.
15629 * configure: Likewise.
15631 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
15633 PR rtl-optimization/64164
15634 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
15635 (parm_in_stack_slot_p): ... this. Disregard mode, what
15636 matters is whether the parm will live in a pseudo or a stack
15638 (expand_one_ssa_partition): Deal with params without a default
15639 def. Disregard mode.
15640 * cfgexpand.h: Renamed function declaration.
15641 * tree-ssa-coalesce.c: Adjust.
15642 * function.c (split_complex_args): Allocate stack slot for
15643 unassigned parms before splitting.
15644 (parm_in_unassigned_mem_p): New. Use it instead of
15645 parm_maybe_byref_p throughout this file.
15646 (assign_parm_setup_block): Use it. Accept pseudos in the
15647 expand-assigned rtl.
15648 (assign_parm_setup_reg): Drop BLKmode requirement.
15649 (assign_parm_setup_stack): Allocate and fill in the address of
15650 unassigned MEM parms.
15652 2015-08-19 David Sherwood <david.sherwood@arm.com>
15654 * genmodes.c (emit_mode_unit_size_inline): New function.
15655 (emit_mode_unit_precision_inline): New function.
15656 (emit_insn_modes_h): Emit new #define. Emit new functions.
15657 (emit_mode_unit_size): New function.
15658 (emit_mode_unit_precision): New function.
15659 (emit_mode_adjustments): Add mode_unit_size adjustments.
15660 (emit_insn_modes_c): Emit new arrays.
15661 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
15662 use new inline methods.
15664 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15666 * config/aarch64/aarch64.c (bit_count): Delete prototype
15668 (aarch64_print_operand): Use popcount_hwi instead of the above.
15670 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15672 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
15675 2015-08-19 Marek Polacek <polacek@redhat.com>
15677 PR middle-end/67133
15678 * gimple-ssa-isolate-paths.c
15679 (insert_trap_and_remove_trailing_statements): Rename to ...
15680 (insert_trap): ... this. Don't remove trailing statements; split
15682 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
15684 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
15687 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
15688 conditionalize the whole on __GNUC__. Add fallback code
15689 depending neither on undefined nor implementation-defined behaviour.
15691 2015-08-19 Jiong Wang <jiong.wang@arm.com>
15693 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
15694 whitespaces with tab.
15696 2015-08-19 Florian Weimer <fweimer@redhat.com>
15698 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
15699 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
15700 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
15701 Move Name_Ids instantiation to the Prj.Proc package, to avoid
15704 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15706 * config/arm/arm.c (bounds_check): Use %wd print format
15707 for HOST_WIDE_INT arguments.
15709 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
15711 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
15712 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
15713 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
15714 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
15715 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
15716 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
15717 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
15718 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
15719 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
15722 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
15724 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
15725 function.c, graphite-scop-detection.c, haifa-sched.c,
15726 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
15727 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
15728 varasm.c: Remove typedefs of structs.
15730 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
15732 * config/rs6000/altivec.h (vec_adde): New define.
15733 (vec_addec): Likewise.
15734 (vec_double): Likewise.
15735 (vec_bperm): Likewise.
15736 (vec_gb): Likewise.
15737 * config/rs6000/rs6000-builtin.def (ADDE): New
15738 BU_ALTIVEC_OVERLOAD_3.
15740 (DOUBLE): New BU_VSX_OVERLOAD_1.
15741 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
15742 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
15743 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
15744 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
15745 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
15746 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
15747 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
15748 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
15749 and P8V_BUILTIN_VEC_VBPERMQ.
15751 2015-08-18 Jason Merrill <jason@redhat.com>
15753 * print-tree.c (print_node): Handle TREE_BINFO.
15755 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
15757 PR middle-end/36757
15758 * builtins.c (expand_builtin_signbit): Add asserts to make sure
15759 we can expand BUILT_IN_SIGNBIT inline.
15760 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
15761 * doc/extend.texi: Document the type-generic __builtin_signbit.
15763 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
15765 PR rtl-optimization/67218
15766 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
15767 (simplify_unary_operation_1): Use it.
15769 2015-08-18 Marek Polacek <polacek@redhat.com>
15771 PR middle-end/67222
15772 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
15773 if the call isn't valid.
15774 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
15775 gimple_call_builtin_p.
15776 (call_may_clobber_ref_p_1): Likewise.
15777 (stmt_kills_ref_p): Likewise.
15779 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
15781 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
15782 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
15783 (mips_hard_regno_scratch_ok): Likewise.
15784 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
15785 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
15787 2015-08-18 Bin Cheng <bin.cheng@arm.com>
15789 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
15790 (determine_value_range): Call refine_value_range_using_guard for
15791 each loop initial condition to improve value range.
15793 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
15795 * config/i386/i386.c: Remove include of fibheap.h.
15797 2015-08-17 Richard Biener <rguenther@suse.de>
15799 PR tree-optimization/67221
15800 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
15801 (sccvn_dom_walker::before_dom_children): Mark backedges of
15802 non-executable blocks as not executable.
15804 2015-08-17 David Sherwood <david.sherwood@arm.com>
15806 * config/arm/arm.c (neon_element_bits): Replace call to
15807 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
15808 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
15809 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
15810 (neon_vdup_lane<mode>): Likewise.
15811 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
15812 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
15813 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
15814 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
15815 * config/spu/spu.c (arith_immediate_p): Likewise.
15816 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
15817 * expr.c (expand_expr_real_2): Likewise.
15818 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
15819 * simplify-rtx.c (simplify_immed_subreg): Likewise.
15820 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
15821 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
15823 * fold-const.c (fold_binary_loc): Replace call to
15824 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
15825 GET_MODE_UNIT_PRECISION (m).
15827 2015-08-17 Mike Stump <mikestump@comcast.net>
15829 * config/arm/arm.c (arm_block_move_unaligned_straight):
15830 Emit normal move instead of unaligned load when source or destination
15831 are appropriately aligned.
15833 2015-08-17 Richard Biener <rguenther@suse.de>
15834 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
15836 PR middle-end/16107
15837 * match.pd (div (coss (op @0) : New simplifier.
15839 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
15841 PR rtl-optimization/64164
15843 PR middle-end/66983
15844 PR rtl-optimization/67000
15845 PR middle-end/67034
15846 PR middle-end/67035
15847 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
15848 * tree-ssa-copyrename.c: Removed.
15849 * opts.c (default_options_table): Drop -ftree-copyrename. Add
15850 -ftree-coalesce-vars.
15851 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
15852 * common.opt (ftree-copyrename): Ignore.
15853 (ftree-coalesce-inlined-vars): Likewise.
15854 * doc/invoke.texi: Remove the ignored options above.
15855 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
15856 * tree-ssa-coalesce.h: ... here.
15857 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
15858 headers required by it.
15859 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
15860 across variables when flag_tree_coalesce_vars. Check register
15861 use and promoted modes to allow coalescing. Do not coalesce
15862 maybe-byref parms with SSA_NAMEs of other variables, or
15863 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
15864 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
15865 with its member functions to tree-ssa-coalesce.c.
15866 (var_map_base_init): Likewise. Renamed to
15867 compute_samebase_partition_bases.
15868 (partition_view_normal): Drop want_bases parameter.
15869 (partition_view_bitmap): Likewise.
15870 * tree-ssa-live.h: Adjust declarations.
15871 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
15872 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
15873 default defs at the entry point.
15874 (dump_part_var_map): New.
15875 (compute_optimized_partition_bases): New, called by...
15876 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
15877 of compute_samebase_partition_bases. Adjust.
15878 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
15879 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
15880 (ssa_default_def_partition): New.
15881 (get_rtl_for_parm_ssa_default_def): New.
15882 (align_local_variable, add_stack_var): Support anonymous SSA
15884 (defer_stack_allocation): Likewise. Declare earlier.
15885 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
15886 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
15887 Do no record deferred-allocation marker in
15888 SA.partition_to_pseudo.
15889 (expand_stack_vars): Adjust check for the marker in it.
15890 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
15891 redundant MEM attr setting.
15892 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
15894 (expand_one_stack_var): ... this. New wrapper to check and
15895 skip already expanded SSA partitions.
15896 (record_alignment_for_reg_var): New, factored out of...
15897 (expand_one_var): ... this.
15898 (expand_one_ssa_partition): New.
15899 (adjust_one_expanded_partition_var): New.
15900 (expand_one_register_var): Check and skip already expanded SSA
15902 (expand_used_vars): Don't create DECLs for anonymous SSA
15903 names. Expand all SSA partitions, then adjust all SSA names.
15904 (pass::execute): Replace the loops that set
15905 SA.partition_to_pseudo from partition leaders and cleared
15906 DECL_RTL for multi-location variables, and that which used to
15907 rename vars and set attrs, with one that clears DECL_RTL and
15908 checks that PARMs and RESULTs default_defs match DECL_RTL.
15909 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
15910 * emit-rtl.c: Include stor-layout.h.
15911 (set_reg_attrs_for_parm): Handle NULL decl.
15912 (set_reg_attrs_for_decl_rtl): Take mode from expression if
15914 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
15915 rather than its possibly-NULL DECL.
15916 * explow.c (promote_ssa_mode): New.
15917 * explow.h (promote_ssa_mode): Declare.
15918 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
15919 (read_complex_part): Export.
15920 * expr.h (read_complex_part): Declare.
15921 * cfgexpand.h (parm_maybe_byref_p): Declare.
15922 * function.c: Include cfgexpand.h.
15923 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
15924 (use_register_for_parm_decl): Wrapper for the above to
15925 special-case the result_ptr.
15926 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
15927 (split_complex_args): Take assign_parm_data_all argument.
15928 Pass it to rtl_for_parm. Set up rtl and context for split
15929 args. Reset complex parm before fetching its default decl
15931 (assign_parms_unsplit_complex): Use the default-def complex
15932 parm rtl if it matches the components.
15933 (assign_parms_augmented_arg_list): Adjust.
15934 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
15935 multiple locations. Recognize split complex args.
15936 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
15937 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
15938 (assign_parm_setup_block): Prefer SSA-assigned location, and
15939 fill in its address if the memory location of a maybe-byref
15940 parm was not assigned by cfgexpand.
15941 (assign_parm_setup_reg): Likewise. Adjust its mode as
15942 needed. Use entry_parm for equiv if stack_parm is NULL. Make
15943 sure passed_pointer parms don't need conversion. Copy address
15944 or value as needed.
15945 (assign_parm_setup_stack): Prefer SSA-assigned location.
15946 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
15947 rtl before testing for pointer bounds. Special-case result_ptr.
15948 (expand_function_start): Maybe reset DECL_RTL of result.
15949 Prefer SSA-assigned location for result and static chain.
15950 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
15951 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
15952 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
15953 anonymous SSA names. Use promote_ssa_mode.
15954 (get_temp_reg): Likewise.
15955 (remove_ssa_form): Adjust.
15956 * stor-layout.c (layout_decl): Don't set mem attributes of
15958 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
15959 and get its reg_usage for reg invalidation.
15960 (compute_bb_dataflow): Pass it insn.
15961 (emit_notes_in_bb): Likewise.
15963 2015-08-14 Marek Polacek <polacek@redhat.com>
15965 * tree-core.h (tree_base): Fix typo.
15967 2015-08-14 Marek Polacek <polacek@redhat.com>
15969 PR middle-end/67133
15970 * gimple.c (infer_nonnull_range_by_attribute): Check that the
15971 nonnull argument position is not outside function arguments.
15973 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
15976 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
15977 'lconst_atomic' with 'const_atomic'.
15978 (atomic_fetch_<optab><mode>): Likewise.
15979 (atomic_<optab>_fetch<mode>): Likewise.
15980 * config/aarch64/iterators.md (lconst-atomic): Move below
15982 (const_atomic): New.
15984 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
15985 Bernd Schmidt <bernds@codesourcery.com>
15987 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
15989 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
15990 (DWARF2_DEBUGGING_INFO): Don't define.
15991 * debug.h (dwarf2_lineno_debug_hooks): Declare.
15992 * toplev.c (process_options): Add a case for it.
15993 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
15994 (dwarf2out_init): Skip most initializations if
15995 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
15997 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
15998 DWARF2_LINENO_DEBUGGING_INFO.
15999 * opts.c (set_debug_level): Likewise.
16001 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
16003 * config/arm/types.md (is_neon_type): Add missing types.
16005 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
16007 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
16009 * config/i386/i386.c (PTA_SKYLAKE): New macros.
16010 (processor_alias_table): Add skylake description.
16011 (enum processor_model): Add skylake processor.
16012 (arch_names_table): Add skylake record.
16013 * doc/invoke.texi: Add skylake item.
16015 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
16017 * ira-int.h: Include recog.h.
16018 * ira-build.c: Don't include recog.h.
16019 * ira-color.c: Likewise.
16020 * ira-conflicts.c: Likewise.
16021 * ira-costs.c: Likewise.
16022 * ira-emit.c: Likewise.
16023 * ira-lives.c: Likewise.
16025 * sched-deps.c: Likewise.
16026 * sel-sched.c: Likewise.
16027 * target-globals.c: Likewise.
16029 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
16032 * reload1.c (elimination_costs_in_insn): Make it obvious to the
16033 compiler that the n_dups and n_operands loop bounds are invariant.
16035 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16037 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
16038 expressions in A and B.
16040 2015-08-13 Richard Biener <rguenther@suse.de>
16042 * tree.c (nonnull_arg_p): Move from ...
16043 * tree-vrp.c (nonnull_arg_p): ... here.
16044 * tree.h (nonnull_arg_p): Declare.
16045 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
16046 here, register ptr != 0 for nonnull_arg_p pointer arguments.
16047 Properly initialize static chain and by-reference result pointer.
16048 (run_scc_vn): Adjust.
16050 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
16052 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
16055 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
16057 * config/aarch64/aarch64-protos.h
16058 (aarch64_gen_atomic_cas): Declare.
16059 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
16060 Choose appropriate instruction pattern for the target.
16061 (aarch64_gen_atomic_cas): New.
16062 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
16063 (atomic_compare_and_swap<mode>_1): Rename to
16064 aarch64_compare_and_swap<mode>. Fix some indentation.
16065 (aarch64_compare_and_swap<mode>_lse): New.
16066 (aarch64_atomic_cas<mode>): New.
16068 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
16070 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
16073 2015-08-13 Richard Biener <rguenther@suse.de>
16075 PR tree-optimization/67191
16076 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
16077 assert we value-numbered last stmts operand because it can validly
16078 trigger for unreachable code.
16080 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16082 PR rtl-optimization/67103
16083 * ifcvt.c (noce_try_store_flag_constants): Move
16084 x = (-(test != 0) & (b - a)) + a transformation to...
16085 (noce_try_cmove): ... Here. Try it if normal conditional
16088 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
16090 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
16092 * config/mips/mips.md (processor): Remove w32 and w64.
16094 2015-08-13 Richard Biener <rguenther@suse.de>
16096 PR tree-optimization/66502
16097 PR tree-optimization/67167
16098 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
16099 backedge arguments.
16100 (vn_phi_lookup): Adjust.
16101 (vn_phi_insert): Likewise.
16102 (visit_phi): Prefer to value-number to another PHI node
16103 over value-numbering to a PHI argument.
16104 (init_scc_vn): Mark DFS back edges.
16106 2015-08-13 Richard Biener <rguenther@suse.de>
16108 * gimple.h (gcall::code_): New constant static member.
16109 (gcond::code_): Likewise.
16110 * gimple.c (gcall::code_): Define.
16111 (gcond::code_): Likewise.
16112 (is_a_helper <const gcond *>): Add.
16113 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
16114 and forward to a new gcall overload with less checking and a
16115 cheaper way to access the operand.
16116 (gimple_call_lhs_ptr): Likewise.
16117 (gimple_call_set_lhs): Likewise.
16118 (gimple_call_internal_p): Likewise.
16119 (gimple_call_with_bounds_p): Likewise.
16120 (gimple_call_set_with_bounds): Likewise.
16121 (gimple_call_internal_fn): Likewise.
16122 (gimple_call_set_ctrl_altering): Likewise.
16123 (gimple_call_ctrl_altering_p): Likewise.
16124 (gimple_call_fntype): Likewise.
16125 (gimple_call_fn): Likewise.
16126 (gimple_call_fn_ptr): Likewise.
16127 (gimple_call_set_fndecl): Likewise.
16128 (gimple_call_fndecl): Likewise.
16129 (gimple_call_chain): Likewise.
16130 (gimple_call_num_args): Likewise.
16131 (gimple_call_arg): Likewise.
16132 (gimple_call_arg_ptr): Likewise.
16133 (gimple_call_set_arg): Likewise.
16134 (gimple_call_noreturn_p): Likewise.
16135 (gimple_cond_code): Likewise.
16136 (gimple_cond_lhs): Likewise.
16137 (gimple_cond_rhs): Likewise.
16138 (gimple_has_lhs): Reduce checking.
16140 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
16142 PR middle-end/25529
16143 * match.pd (div (mult @0 @1) @1) : New simplifier.
16145 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
16148 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
16149 predicate to allow construction of vector constants using the
16150 VSLDOI vector shift instruction.
16152 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
16155 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
16156 the number of bytes to be shifted left and filled in with either
16157 all zero or all one bits.
16158 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
16160 (output_vec_const_move): On power8, generate XXLORC to generate
16161 a vector constant with all 1's. Do a split if we need to use a
16162 VSLDOI instruction.
16164 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
16165 properly test for the MSB.
16167 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
16168 vector constants that can be created with VSLDOI.
16170 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
16173 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
16174 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
16175 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
16176 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
16177 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
16178 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
16179 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
16180 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
16181 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
16183 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
16185 * config/xtensa/constraints.md (define_constraint "Y"): New
16187 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
16188 * config/xtensa/linux.h (ASM_SPEC): Likewise.
16189 * config/xtensa/predicates.md (move_operand): Match constants
16190 and symbols in the presence of TARGET_AUTO_LITPOOLS.
16191 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
16192 immediate references to TLS data.
16193 (xtensa_emit_move_sequence): Don't force constants to memory in
16194 the presence of TARGET_AUTO_LITPOOLS.
16195 (print_operand): Add 'y' format, same as default, but capable of
16196 printing SF mode constants as well.
16197 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
16198 (movsf_internal): Add movi pattern that loads literal.
16199 (movsf, movdf): Don't force constants to memory in the presence
16200 of TARGET_AUTO_LITPOOLS.
16201 (movdf_internal): Add 'Y' constraint.
16202 * config/xtensa/xtensa.opt (mauto-litpools): New option.
16203 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
16205 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
16207 * config/arm/arm-fpus.def: Replace booleans with feature flags.
16209 * config/arm/arm.c (ARM_FPU): Update macro.
16210 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
16211 (TARGET_FP16): Likewise.
16212 (TARGET_CRYPTO): Likewise.
16213 (TARGET_NEON): Likewise.
16214 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
16217 2015-08-12 Tom de Vries <tom@codesourcery.com>
16221 * doc/install.texi: Remove --with_host_libstdcxx item. Update
16222 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
16223 accordingly. Mention default for --with-stage1-ldflags.
16225 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
16227 * config/arm/arm.h (arm_fpu_feature_set): New.
16228 (ARM_FPU_FSET_HAS): New.
16229 (FPU_FL_NONE): New.
16230 (FPU_FL_NEON): New.
16231 (FPU_FL_FP16): New.
16232 (FPU_FL_CRYPTO): New.
16234 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16236 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
16237 after -mcmodel=large -fPIC sorry.
16239 2015-08-12 Richard Biener <rguenther@suse.de>
16241 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
16242 comparison operand order and commutative ternary op operand order.
16243 (sccvn_dom_walker::cond_stack): New state to track temporary
16245 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
16247 (sccvn_dom_walker::record_cond): Add a single temporary conditional
16249 (sccvn_dom_walker::record_conds): Add a temporary conditional
16250 expressions and all related expressions also true/false.
16251 (sccvn_dom_walker::before_dom_children): Record temporary
16252 expressions based on the controlling condition of a single
16253 predecessor. When trying to simplify a conditional statement
16254 lookup expressions we might have inserted earlier.
16256 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
16259 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
16260 to ARM core registers.
16262 2015-08-12 Nathan Sidwell <nathan@acm.org>
16264 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
16265 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
16267 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
16269 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
16270 line with comments.
16271 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
16273 2015-08-12 Richard Biener <rguenther@suse.de>
16275 * gimple.h (remove_pointer): New trait.
16276 (GIMPLE_CHECK2): New inline template function.
16277 (gassign::code_): New constant static member.
16278 (is_a_helper<const gassign *>): Add.
16279 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
16280 and forward to a new gassign overload with less checking and a
16281 cheaper way to access the operand.
16282 (gimple_assign_lhs_ptr): Likewise.
16283 (gimple_assign_set_lhs): Likewise.
16284 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
16286 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
16288 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
16290 (gimple_assign_rhs_code): Likewise.
16291 * gimple.c (gassign::code_): Define.
16293 2015-08-12 Richard Biener <rguenther@suse.de>
16295 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
16296 Eliminate edges marked as not executable by SCCVN.
16297 * tree-ssa-sccvn.c: Include gimple-iterator.h.
16298 (cond_dom_walker): Rename to sccvn_dom_walker.
16299 (sccvn_dom_walker::before_dom_children): Value-number defs
16301 (run_scc_vn): Remove loop value-numbering all SSA names.
16302 Drop not visited SSA names to varying.
16304 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
16306 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
16307 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
16308 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
16309 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
16310 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
16311 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
16312 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
16313 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
16314 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
16316 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
16319 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
16320 to enum feature_priority and feature_list.
16321 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
16322 and isa_names_table.
16324 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
16326 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
16327 vect_induction_def.
16329 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
16333 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
16334 account when deciding what was the command-line status.
16336 2015-08-11 Nathan Sidwell <nathan@acm.org>
16338 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
16340 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
16341 we're not the only contributor to target phi.
16343 2015-08-11 Jiong Wang <jiong.wang@arm.com>
16345 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
16348 2015-08-11 Tom de Vries <tom@codesourcery.com>
16350 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
16352 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
16354 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
16356 * config/i386/i386.md (cpu): Remove knl.
16358 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
16361 PR middle-end/66332
16362 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
16363 open-coded sequence.
16364 * omp-low.c (oacc_process_reduction_data): Remove handline of
16365 GOMP_DEVICE_HOST_NONSHM.
16367 * lto-streamer-in.c (lto_input_mode_table): Adjust to
16368 GET_MODE_INNER changes.
16370 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
16371 Ilya Verbin <ilya.verbin@intel.com>
16373 * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
16375 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
16377 * doc/options.texi (EnabledBy): Document that the argument must be
16379 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
16380 Not enabled by -Wall.
16381 * optc-gen.awk: Give nicer error messages. Detect if the argument
16382 of EnabledBy is not a Common option.
16383 * common.opt (Wnull-dereference): Not enabled by -Wall.
16384 * opt-functions.awk (lang_enabled_by): Nicer error messages.
16386 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
16388 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
16389 model == 0x4f as Broadwell.
16391 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
16393 PR rtl-optimization/67028
16394 * combine.c (simplify_comparison): Fix comment. Rearrange code.
16395 Add test to see if a const_int fits in the new mode.
16397 2015-08-07 DJ Delorie <dj@redhat.com>
16399 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
16401 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
16403 PR rtl-optimization/67029
16404 * ira-color.c: Include "recog.h" before including "ira-int.h".
16405 * target-globals.c: Likewise.
16406 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
16407 adds an alternative_mask argument and use it instead of
16408 preferred_alternatives.
16409 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
16410 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
16411 * sched-deps.c: Include "ira-int.h" after including "ira.h".
16412 (sched_analyze_insn): Update call to
16413 ira_implicitly_set_insn_hard_regs.
16414 * sel-sched.c: Include "ira-int.h" after including "ira.h".
16415 (implicit_clobber_conflict_p): Update call to
16416 ira_implicitly_set_insn_hard_regs.
16418 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
16420 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
16422 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
16425 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
16426 currently_expanding_to_rtl is set.
16428 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
16430 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
16431 * configure: Regenerate.
16433 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16434 Jiong Wang <jiong.wang@arm.com>
16436 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
16437 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
16438 (REG_CLASS_NAMES): Likewise.
16439 (REG_CLASS_CONTENTS): Likewise.
16440 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
16441 (aarch64_register_move_cost): Likewise.
16442 (aarch64_load_symref_appropriately): Invoke the new added pattern if
16444 * config/aarch64/constraints.md (Uc0): New constraint.
16446 2015-08-06 Jiong Wang <jiong.wang@arm.com>
16448 * config/aarch64/constraints.md (Usf): Add the test of
16449 aarch64_is_noplt_call_p.
16451 2015-08-06 Jiong Wang <jiong.wang@arm.com>
16453 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
16455 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
16456 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
16457 (call_symbol): Likewise.
16459 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
16461 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
16462 for vectorizing multiplication patterns.
16463 * tree-vectorizer.h: Adjust the number of patterns.
16465 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
16467 * config/i386/sse.md (*vec_concatv2df): Declare added
16468 alternatives as sselog type.
16470 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16472 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
16475 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16477 * config/s390/s390.c (s390_expand_tbegin): Expand either
16478 tbegin_1_z13 or tbegin_1 depending on VX flag.
16479 * config/s390/s390.md ("tbegin_1_z13"): New expander.
16481 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16483 * config/s390/s390.opt: Clarify description for -mzvector
16484 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
16487 2015-08-06 Richard Biener <rguenther@suse.de>
16489 * gimple.h (gimple_call_set_fn): Access op member directly.
16490 (gimple_call_chain_ptr): Likewise.
16491 (gimple_call_set_chain): Likewise.
16492 (gimple_cond_lhs_ptr): Likewise.
16493 (gimple_cond_set_lhs): Likewise.
16494 (gimple_cond_rhs_ptr): Likewise.
16495 (gimple_cond_set_rhs): Likewise.
16496 (gimple_cond_true_label): Likewise.
16497 (gimple_cond_set_true_label): Likewise.
16498 (gimple_cond_set_false_label): Likewise.
16499 (gimple_cond_false_label): Likewise.
16500 (gimple_label_label): Likewise.
16501 (gimple_label_set_label): Likewise.
16502 (gimple_goto_set_dest): Likewise.
16503 (gimple_asm_input_op): Likewise.
16504 (gimple_asm_input_op_ptr): Likewise.
16505 (gimple_asm_set_input_op): Likewise.
16506 (gimple_asm_output_op): Likewise.
16507 (gimple_asm_output_op_ptr): Likewise.
16508 (gimple_asm_set_output_op): Likewise.
16509 (gimple_asm_clobber_op): Likewise.
16510 (gimple_asm_set_clobber_op): Likewise.
16511 (gimple_asm_label_op): Likewise.
16512 (gimple_asm_set_label_op): Likewise.
16513 (gimple_switch_index): Likewise.
16514 (gimple_switch_index_ptr): Likewise.
16515 (gimple_return_retval_ptr): Likewise.
16516 (gimple_return_retval): Likewise.
16517 (gimple_return_set_retval): Likewise.
16518 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
16519 (gimple_switch_label): Likewise.
16520 (gimple_switch_set_label): Likewise.
16522 2015-08-06 Richard Biener <rguenther@suse.de>
16524 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
16525 bool comparison canonicalization and restrict to integers.
16527 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
16529 * coretypes.h (enum symbol_visibility): Relocate here.
16530 * flag-types.h (enum symbol_visibility): Remove.
16531 * tree-core.h (enum symbol_visibility): Remove.
16533 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
16536 * config/rs6000/rs6000.c (rs6000_emit_prologue): Check
16537 for no_split_stack function attribute along with
16539 (rs6000_expand_split_stack_prologue): Likewise.
16541 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
16542 Jeff Law <law@redhat.com>
16545 * doc/invoke.texi (Wnull-dereference): New.
16546 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
16547 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
16548 Warn for potential NULL dereferences.
16549 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
16550 * ubsan.c (instrument_nonnull_arg): Call
16551 infer_nonnull_range_by_attribute.
16552 (instrument_nonnull_return): Likewise.
16553 * common.opt (Wnull-dereference); New.
16554 * gimple.c (infer_nonnull_range): Remove bool arguments.
16555 (infer_nonnull_range_by_dereference): New.
16556 (infer_nonnull_range_by_attribute): New.
16557 * gimple.h: Update declarations.
16559 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
16561 * gensupport.c (sequence_num): Replace with...
16562 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
16563 ...these new variables.
16564 (init_rtx_reader_args_cb): Update accordingly.
16565 (get_num_code_insns): Likewise.
16566 (read_md_rtx): Rework to use a while loop and get_c_test.
16567 Use the new counters. Remove redundant DEFINE_SUBST case.
16568 * genoutput.c (gen_split): Delete.
16569 (main): Don't call it.
16571 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
16573 * gensupport.h (get_c_test): Declare.
16574 * gensupport.c (get_c_test): New function.
16575 * genconditions.c (main): Use it.
16576 * genrecog.c (validate_pattern): Likewise.
16577 (match_pattern_1): Likewise. Remove c_test argument.
16578 (match_pattern): Update accordingly and remove c_test argument.
16579 (main): Update accordingly.
16581 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
16583 * gensupport.h (get_num_insn_codes): Declare.
16584 * gensupport.c (get_num_insn_codes): New function.
16585 * genattrtab.c (optimize_attrs): Rename max_insn_code to
16587 (main): Likewise. Use get_num_insn_codes.
16588 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
16590 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
16592 PR middle-end/66311
16593 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
16594 is zero- rather than sign-extended.
16596 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
16598 * target-insns.def (can_extend): Delete.
16600 2015-08-05 Richard Biener <rguenther@suse.de>
16602 PR tree-optimization/67121
16603 * tree-if-conv.c (combine_blocks): Clear range-info produced
16604 by stmts no longer executed conditionally.
16606 2015-08-05 Nick Clifton <nickc@redhat.com>
16608 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
16609 to allow identical far pointers to remain.
16611 2015-08-05 Richard Biener <rguenther@suse.de>
16613 PR middle-end/67120
16614 * match.pd: Compare address bases with == if they are decls
16615 or SSA names, not operand_equal_p. Otherwise fail.
16617 2015-08-05 Richard Biener <rguenther@suse.de>
16619 PR tree-optimization/67055
16620 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
16623 * g++.dg/torture/pr67055.C: New testcase.
16625 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
16627 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
16629 (define_attr "enabled"): Handle avx521vl and noavx512vl.
16630 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
16631 AVX-512 alternative out of SSE.
16632 (define_insn "*vec_concatv2df"): Ditto.
16634 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
16636 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
16637 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
16638 CODE_FOR_avx_ptestv4di.
16639 * config/i386/sse.md (define_mode_iterator V_AVX): New.
16640 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
16641 (define_insn "avx_ptest256"): Merge this ...
16642 (define_insn "sse4_1_ptest"): And this ...
16643 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
16645 2015-08-05 Richard Biener <rguenther@suse.de>
16647 PR tree-optimization/67109
16648 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
16649 against too big groups. Print whether this is a load or store
16650 group. Rename from ...
16651 (vect_analyze_group_access): ... this which is now a wrapper
16652 dissolving an invalid group.
16653 (vect_analyze_data_ref_accesses): Print whether this is a load
16656 2015-08-05 Richard Biener <rguenther@suse.de>
16658 PR middle-end/67107
16659 * match.pd: Guard const_binop result checking against NULL_TREE
16662 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
16664 * cse.c (cse_insn): Restoring old behaviour for src_eqv
16665 when dest and value in the REG_EQUAL are same and dest
16666 is STRICT_LOW_PART.
16668 2015-08-04 Anatoly Sokolov <aesok@post.ru>
16670 * config/moxie/moxie.h (PRINT_OPERAND,
16671 PRINT_OPERAND_ADDRESS): Remove macros.
16672 * config/moxie/moxie-protos.h (moxie_print_operand,
16673 moxie_print_operand_address): Remove declaration.
16674 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
16675 TARGET_PRINT_OPERAND_ADDRESS): Define.
16676 (moxie_print_operand, moxie_print_operand_address): Make static.
16678 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
16681 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
16682 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
16684 2015-08-04 Richard Biener <rguenther@suse.de>
16686 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
16688 (dt_operand::gen_gimple_expr): Adjust.
16690 2015-08-04 Richard Biener <rguenther@suse.de>
16692 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
16693 bool compares on RHS.
16694 * match.pd: Add X ==/!= !X is false/true pattern.
16696 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
16698 * config/aarch64/aarch64.c: Change inner loop statement cost
16699 to be consistent with other targets.
16701 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
16703 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
16706 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
16708 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
16709 (machine_function): Remove pseudos field.
16711 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16713 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
16714 Exit early and use target_option_current_node if processing current
16717 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16719 * doc/extend.texi (AArch64 Function Attributes): New node.
16720 (AArch64 Pragmas): Likewise.
16722 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16724 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
16725 Initialize simd builtins if TARGET_SIMD.
16726 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
16727 Make sure that the builtins are initialized only once no matter how
16728 many times the function is called.
16729 (aarch64_init_builtins): Unconditionally initialize crc builtins.
16730 (aarch64_relayout_simd_param): New function.
16731 (aarch64_simd_expand_args): Use above during argument expansion.
16732 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
16733 simd builtins if TARGET_SIMD.
16734 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
16736 (aarch64_relayout_simd_types): Likewise.
16738 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16740 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
16741 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
16742 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
16743 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
16745 (aarch64_reset_previous_fndecl): New function.
16746 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
16748 * config/aarch64/aarch64-c.c: New file.
16749 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
16750 Push and pop options at beginning and end. Remove ifdef
16751 __ARM_FEATURE_CRC32.
16752 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
16753 Add pragma +nothing+simd and +nothing+crypto where appropriate.
16754 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
16755 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
16757 (aarch64_register_pragmas): Likewise.
16758 (aarch64_reset_previous_fndecl): Likewise.
16759 (aarch64_process_target_attr): Likewise.
16760 (aarch64_override_options_internal): Likewise.
16762 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16764 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
16766 (aarch64_can_inline_p): Likewise.
16767 (TARGET_CAN_INLINE_P): Define.
16769 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16771 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
16772 Remove static. Handle OPT_mgeneral_regs_only,
16773 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
16774 OPT_momit_leaf_frame_pointer.
16775 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
16776 (aarch64_attr_opt_type): New enum.
16777 (aarch64_attribute_info): New struct.
16778 (aarch64_handle_attr_arch): New function.
16779 (aarch64_handle_attr_cpu): Likewise.
16780 (aarch64_handle_attr_tune): Likewise.
16781 (aarch64_handle_attr_isa_flags): Likewise.
16782 (aarch64_attributes): New table.
16783 (aarch64_process_one_target_attr): New function.
16784 (num_occurences_in_str): Likewise.
16785 (aarch64_process_target_attr): Likewise.
16786 (aarch64_option_valid_attribute_p): Likewise.
16787 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
16788 * config/aarch64/aarch64-protos.h: Include input.h
16789 (aarch64_handle_option): Declare prototype.
16791 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16793 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
16794 * config/aarch64/aarch64.c: Include target-globals.h
16795 (aarch64_previous_fndecl): New variable.
16796 (aarch64_set_current_function): New function.
16797 (TARGET_SET_CURRENT_FUNCTION): Define.
16799 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16801 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
16802 (explicit_arch): Likewise.
16803 (x_aarch64_isa_flags): Likewise.
16804 (mgeneral-regs-only): Mark as Save.
16805 (mfix-cortex-a53-835769): Likewise.
16806 (mcmodel=): Likewise.
16807 (mstrict-align): Likewise.
16808 (momit-leaf-frame-pointer): Likewise.
16809 (mtls-dialect): Likewise.
16810 (master=): Likewise.
16811 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
16812 (aarch64_isa_flags): Remove extern declaration.
16813 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
16814 to indicate success or failure.
16815 (aarch64_validate_march): Likewise.
16816 (aarch64_validate_mtune): Likewise.
16817 (aarch64_isa_flags): Delete.
16818 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
16819 instead of aarch64_isa_flags.
16820 (aarch64_get_tune_cpu): New function.
16821 (aarch64_get_arch): Likewise.
16822 (aarch64_override_options): Use above and set up explicit_tune_core
16824 (aarch64_print_extension): Move earlier in file. Add isa_flags
16825 argument and use that instead of the global aarch64_isa_flags.
16826 (aarch64_option_save): New function.
16827 (aarch64_option_restore): Likewise.
16828 (aarch64_option_print): Likewise.
16829 (aarch64_declare_function_name): Likewise.
16830 (aarch64_start_file): Delete.
16831 (TARGET_ASM_FILE_START): Do not define.
16832 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
16833 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
16836 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16838 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
16839 flag_omit_leaf_frame_pointer to 2.
16841 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16843 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
16845 (TARGET_FIX_ERR_A53_835769): New macro.
16846 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
16847 handling of opts->x_aarch64_fix_a53_err835769.
16848 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
16849 than aarch64_fix_a53_err835769.
16850 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
16851 * config/aarch64/aarch64-linux.h: Likewise.
16853 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
16855 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
16856 ix86_expand_int_movcc as boolean.
16858 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16860 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
16861 (aarch64_cpu_string): Likewise.
16862 (aarch64_tune_string): Likewise.
16863 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
16864 (aarch64_parse_extension): Return aarch64_parse_opt_result.
16865 Add extra argument to put result into.
16866 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
16867 (aarch64_parse_cpu): Add arguments to put results into. Return
16868 aarch64_parse_opt_result.
16869 (aarch64_parse_tune): Likewise.
16870 (aarch64_override_options_after_change_1): New function.
16871 (aarch64_override_options_internal): New function.
16872 (aarch64_validate_mcpu): Likewise.
16873 (aarch64_validate_march): Likewise.
16874 (aarch64_validate_mtune): Likewise.
16875 (aarch64_override_options): Update to reflect above changes.
16876 Move some logic into aarch64_override_options_internal.
16877 Initialize target_option_default_node and target_option_current_node.
16878 (aarch64_override_options_after_change): Move logic into
16879 aarch64_override_options_after_change_1 and call it with global_options.
16880 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
16881 flag values from that.
16883 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16885 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
16886 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
16887 * config/aarch64/aarch64.c (struct processor): Add arch field.
16888 (all_architectures): Handle above, move above all_cores.
16889 (all_cores): Handle above.
16890 (aarch64_parse_arch): Handle above changes.
16891 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
16892 above. Update comments.
16893 (armv8.1-a): Likewise.
16894 * config/aarch64/aarch64-cores.def: Update according to above.
16895 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
16896 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
16897 aarch64_arch_driver_info.
16899 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16901 * config/aarch64/aarch64.c (struct processor): Add ident field.
16902 Rename core sched_core.
16903 (all_cores): Handle above changes.
16904 (all_architectures): Likewise.
16905 (aarch64_parse_arch): Likewise.
16906 (aarch64_override_options): Likewise.
16908 2015-08-04 Richard Biener <rguenther@suse.de>
16910 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
16911 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
16912 comparisons embedded in [VEC_]COND_EXPRs.
16914 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
16916 * tree-if-conv.c: Fix various typos in comments.
16917 * tree-vect-stmts.c: Likewise.
16919 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
16921 PR tree-optimization/67043
16922 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
16923 preheader after hoisting invariant in it.
16924 (find_defs): Force recomputation of all luids.
16926 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
16928 * config/rs6000/htm.md (tabort.): Restrict the source operand to
16929 using a base register.
16931 2015-08-03 David Malcolm <dmalcolm@redhat.com>
16933 * main.c (main): Pass in NULL for toplev's external_timer.
16934 * timevar.c: Include coretypes.h.
16935 (class timer::named_items): New.
16936 (timer::named_items::named_items): New.
16937 (timer::named_items::~named_items): New.
16938 (timer::named_items::push): New.
16939 (timer::named_items::pop): New.
16940 (timer::named_items::print): New.
16941 (timer::timer): Initialize field "m_jit_client_items".
16942 (timer::~timer): New.
16943 (timer::push): Move bulk of implementation to...
16944 (timer::push_internal): ...here. New function.
16945 (timer::pop): Move bulk of implementation to...
16946 (timer::pop_internal): ...here. New function.
16947 (timer::push_client_item): New.
16948 (timer::pop_client_item): New.
16949 (timer::print_row): New function, taken from timer::print.
16950 (timer::print): Print "GCC items" header if we also have client
16951 items. Move row-printing to timer::print_row. Print any client
16953 (timer::get_topmost_item_name): New method.
16954 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
16955 (TV_JIT_CLIENT_CODE): New.
16956 * timevar.h (timer::push_client_item): New declaration.
16957 (timer::pop_client_item): New declaration.
16958 (timer::get_topmost_item_name): New method.
16959 (timer::push_internal): New declaration.
16960 (timer::pop_internal): New declaration.
16961 (timer::print_row): New declaration.
16962 (timer::named_items): New declaration.
16963 (timer::m_jit_client_items): New field.
16964 (timer): Add friend class named_items.
16965 (auto_timevar::auto_timevar): Add timer param.
16966 (auto_timevar::~auto_timevar): Use field "m_timer".
16967 (auto_timevar::m_timer): New field.
16968 * toplev.c (initialize_rtl): Add g_timer as param when
16969 constructing auto_timevar instance.
16970 (toplev::toplev): Add "external_timer" param, and use it to
16971 initialize the "g_timer" global if non-NULL.
16972 (toplev::~toplev): If this created "g_timer", delete it.
16973 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
16974 with "external_timer" timer *.
16976 2015-08-03 Alexander Basov <coohpt@gmail.com>
16978 PR middle-end/64744
16979 PR middle-end/48470
16980 PR middle-end/43404
16981 * cfgexpand.c (expand_one_var): Add check if stack is going to
16982 be used in naked function.
16983 * expr.c (expand_expr_addr_expr_1): Remove excess checking
16984 whether expression should not reside in MEM.
16985 * function.c (use_register_for_decl): Do not use registers for
16986 non-register things (volatile, float, BLKMode) in naked functions.
16988 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
16991 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
16992 Adjust splits to match new pattern.
16994 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
16996 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
16999 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
17000 point in VSX registers.
17002 * config/rs6000/constraints.md (wb constraint): Document unused
17004 (we constraint): Likewise.
17005 (wo constraint): Likewise.
17006 (wp constraint): New constraint for IEEE 128-bit floating point in
17008 (wq constraint): Likewise.
17010 * config/rs6000/predicates.md (easy_fp_constant): Add support for
17011 IEEE 128-bit floating point in VSX registers.
17012 (easy_scalar_constant): Likewise.
17014 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
17015 constraints (wp, wq) for IEEE 128-bit floating point in VSX
17017 (rs6000_init_hard_regno_mode_ok): Likewise.
17019 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
17020 floating point in VSX registers.
17023 (VSX_M2): Likewise.
17029 (vsx_le_permute_<mode>): Add support to properly swap bytes for
17030 IEEE 128-bit floating point in VSX registers on little endian.
17031 (vsx_le_undo_permute_<mode>): Likewise.
17032 (vsx_le_perm_load_<mode>): Likewise.
17033 (vsx_le_perm_store_<mode>): Likewise.
17034 (splitters for IEEE 128-bit fp moves): Likewise.
17036 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
17039 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
17040 floating point in VSX registers.
17043 * doc/md.text (Machine Constraints): Document wp and wq
17044 constraints on PowerPC.
17046 2015-08-03 Jeff Law <law@redhat.com>
17048 PR middle-end/66314
17049 PR gcov-profile/66899
17050 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
17051 iterate over the jump threading paths when an element in the
17052 jump threading paths array is eliminated.
17054 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
17056 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
17058 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
17060 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
17061 is_use_properly_guarded the variable def_preds. Free its
17062 contents before returning.
17063 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
17064 (is_use_properly_guarded): Replace local variable def_preds with
17065 a parameter. Adjust accordingly. Only update *def_preds if it's
17068 2015-08-03 Richard Biener <rguenther@suse.de>
17070 * genmatch.c (simplify::for_subst_vec): New member.
17071 (binary_ok): New helper for for lowering.
17072 (lower_for): Delay substituting operators into result expressions
17073 if we can merge the results eventually again.
17074 (capture_info::walk_result): Adjust for user_id appearing as
17075 result expression operator.
17076 (expr::gen_transform): Likewise.
17077 (dt_simplify::gen_1): Likewise.
17078 (dt_simplify::gen): Pass not substituted operators to tail
17079 functions or initialize local variable with it.
17080 (decision_tree::gen): Adjust function signature.
17081 * match.pd: Fix tests against global code and add default
17082 cases to switch stmts.
17084 2015-08-03 Richard Biener <rguenther@suse.de>
17086 * genmatch.c (dt_simplify::gen): Create captures array
17087 with an initializer.
17089 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17091 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
17092 the host compiler is affected by placement new aliasing bug.
17093 * configure: Regenerate.
17094 * Makefile.in (ALIASING_FLAGS): New variable.
17095 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
17097 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
17100 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
17101 (negmulsf3_vfp): Likewise.
17102 (muldf3negdf_vfp): Disable for -frounding-math.
17103 (mulsf3negsf_vfp): Likewise.
17104 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
17105 fix MULT cost with -frounding-math.
17107 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17109 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
17110 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
17111 explicit. Prefer to add the flag whenever possible.
17112 (noce_process_if_block): Try noce_try_store_flag_constants before
17115 2015-08-03 Richard Biener <rguenther@suse.de>
17117 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
17118 New hash-map to record equivalent transforms.
17119 (dt_node::analyze): Populate the equivalent transforms hash-map.
17120 (dt_simplify::info): Add reference to hash-map entry.
17121 (dt_simplify::gen): If we have split out a function for the
17122 transform, generate a call to it.
17123 (sinfo_hashmap_traits::hash): New function.
17124 (compare_op): New helper function for ...
17125 (sinfo_hashmap_traits::equal_keys): ... this new function.
17126 (decision_tree::gen): Split out common equivalent transforms
17129 2015-08-03 Richard Biener <rguenther@suse.de>
17131 * gimple-fold.c (fold_gimple_assign): Remove folding of
17132 the comparison in COND_EXPRs.
17134 2015-08-03 Richard Biener <rguenther@suse.de>
17136 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
17137 on the rhs of assignments first simplify the embedded
17140 2015-08-03 Richard Biener <rguenther@suse.de>
17142 PR tree-optimization/66917
17143 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
17145 (DR_VECT_AUX): New macro.
17146 (set_dr_misalignment): Adjust.
17147 (dr_misalignment): Likewise.
17148 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
17149 Compute whether the base is at least element aligned.
17150 * tree-vect-stmts.c (ensure_base_align): Adjust.
17151 (vectorizable_store): If the base is not element aligned
17152 preserve alignment of the original access if misalignment is unknown.
17153 (vectorizable_load): Likewise.
17155 2015-08-02 Martin Sebor <msebor@redhat.com>
17157 * c-family/c.opt (-Wframe-address): New warning option.
17158 * doc/invoke.texi (Wframe-address): Document it.
17159 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
17160 Clarify possible effects of calling the functions with non-zero
17161 arguments and mention -Wframe-address.
17162 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
17164 2015-08-01 Michael Collison <michael.collison@linaro.org
17165 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
17167 * config/arm/arm.md (*arm_smin_cmp): New pattern.
17168 (*arm_umin_cmp): Likewise.
17170 2015-08-01 Caroline Tice <cmtice@google.com>
17173 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
17175 (vtbl_find_mangled_name): New function.
17176 (vtbl_register_mangled_name): New function.
17177 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
17178 mangled name in mangled name vectors.
17179 (find_or_create_vtbl_map_node): Ditto.
17180 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
17181 update recursion_depth on function entry; pass it to every recursive
17182 call; automatically exit if depth > 25 (give up looking at that point).
17183 (verify_bb_vtables): Initialize recursion_depth and pass it to
17184 var_is_used_for_virtual_call_p.
17185 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
17186 global variable decls.
17187 (vtbl_register_mangled_name): New extern function decl.
17189 2015-08-01 Tom de Vries <tom@codesourcery.com>
17191 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
17193 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
17195 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
17196 operation_no_trapping_overflow. Allow non-overflow operations.
17197 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
17200 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
17203 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
17205 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17207 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
17208 Enable for TARGET_32BIT.
17209 (*if_move_neg): Likewise.
17211 2015-07-31 Nick Clifton <nickc@redhat.com>
17213 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
17214 Returns true for __model__.
17215 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
17217 2015-07-31 Alan Modra <amodra@gmail.com>
17220 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
17221 (rs6000_emit_prologue): Set it.
17222 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
17224 2015-07-31 Richard Biener <rguenther@suse.de>
17226 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
17227 -> X == (C1 ^ C2) which is already implemented in match.pd.
17228 Remove redundant dispatching to fold_relational_const.
17229 Move unordered self and NaN compares ...
17230 * match.pd: ... as patterns here. Remove some stray captures
17233 2015-07-31 Petr Murzin <petr.murzin@intel.com>
17235 * config/i386/i386.c
17236 (bdesc_special_args): Convert mask type from signed to unsigned for
17238 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
17239 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
17240 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
17241 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
17242 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
17243 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
17244 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
17245 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
17246 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
17247 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
17248 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
17249 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
17250 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
17251 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
17252 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
17253 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
17254 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
17255 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
17256 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
17257 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
17258 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
17259 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
17260 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
17261 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
17262 * config/i386/i386-builtin-types.def
17263 (V16QI_FTYPE_V16SI): Remove.
17264 (V8DF_FTYPE_V8SI): Ditto.
17265 (V8HI_FTYPE_V8DI): Ditto.
17266 (V8SI_FTYPE_V8DI): Ditto.
17267 (V8SF_FTYPE_V8DF): Ditto.
17268 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
17269 (V16HI_FTYPE_V16SI): Ditto.
17270 (V16SF_FTYPE_V16HI): Ditto.
17271 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
17272 (V16SF_FTYPE_V16SI): Ditto.
17273 (V4DI_FTYPE_V4DI): Ditto.
17274 (V16SI_FTYPE_V16SF): Ditto.
17275 (V16SF_FTYPE_FLOAT): Ditto.
17276 (V8DF_FTYPE_DOUBLE): Ditto.
17277 (V8DI_FTYPE_INT64): Ditto.
17278 (V8DI_FTYPE_V4DI): Ditto.
17279 (V16QI_FTYPE_V8DI): Ditto.
17280 (UINT_FTYPE_V4SF): Ditto.
17281 (UINT64_FTYPE_V4SF): Ditto.
17282 (UINT_FTYPE_V2DF): Ditto.
17283 (UINT64_FTYPE_V2DF): Ditto.
17284 (V16SI_FTYPE_V16SI): Ditto.
17285 (V8DI_FTYPE_V8DI): Ditto.
17286 (V16SI_FTYPE_PV4SI): Ditto.
17287 (V16SF_FTYPE_PV4SF): Ditto.
17288 (V8DI_FTYPE_PV2DI): Ditto.
17289 (V8DF_FTYPE_PV2DF): Ditto.
17290 (V4DI_FTYPE_PV2DI): Ditto.
17291 (V4DF_FTYPE_PV2DF): Ditto.
17292 (V16SI_FTYPE_PV2SI): Ditto.
17293 (V16SF_FTYPE_PV2SF): Ditto.
17294 (V8DI_FTYPE_PV4DI): Ditto.
17295 (V8DF_FTYPE_PV4DF): Ditto.
17296 (V8SF_FTYPE_FLOAT): Ditto.
17297 (V4SF_FTYPE_FLOAT): Ditto.
17298 (V4DF_FTYPE_DOUBLE): Ditto.
17299 (V8SF_FTYPE_PV4SF): Ditto.
17300 (V8SI_FTYPE_PV4SI): Ditto.
17301 (V4SI_FTYPE_PV2SI): Ditto.
17302 (V8SF_FTYPE_PV2SF): Ditto.
17303 (V8SI_FTYPE_PV2SI): Ditto.
17304 (V16SF_FTYPE_PV8SF): Ditto.
17305 (V16SI_FTYPE_PV8SI): Ditto.
17306 (V8DI_FTYPE_V8SF): Ditto.
17307 (V4DI_FTYPE_V4SF): Ditto.
17308 (V2DI_FTYPE_V4SF): Ditto.
17309 (V64QI_FTYPE_QI): Ditto.
17310 (V32HI_FTYPE_HI): Ditto.
17311 (V8UHI_FTYPE_V8UHI): Ditto.
17312 (V16UHI_FTYPE_V16UHI): Ditto.
17313 (V32UHI_FTYPE_V32UHI): Ditto.
17314 (V2UDI_FTYPE_V2UDI): Ditto.
17315 (V4UDI_FTYPE_V4UDI): Ditto.
17316 (V8UDI_FTYPE_V8UDI): Ditto.
17317 (V4USI_FTYPE_V4USI): Ditto.
17318 (V8USI_FTYPE_V8USI): Ditto.
17319 (V16USI_FTYPE_V16USI): Ditto.
17320 (V2DF_FTYPE_V2DF_UINT64): Ditto.
17321 (V2DI_FTYPE_V2DF_V2DF): Ditto.
17322 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
17323 (V8DF_FTYPE_V8DF_V8DI): Ditto.
17324 (V4SF_FTYPE_V4SF_UINT64): Ditto.
17325 (V4SI_FTYPE_V4SF_V4SF): Ditto.
17326 (V16SF_FTYPE_V16SF_V16SI): Ditto.
17327 (V64QI_FTYPE_V32HI_V32HI): Ditto.
17328 (V32HI_FTYPE_V16SI_V16SI): Ditto.
17329 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
17330 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
17331 (V32HI_FTYPE_V64QI_V64QI): Ditto.
17332 (V32HI_FTYPE_V32HI_V32HI): Ditto.
17333 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
17334 (V16SI_FTYPE_V16SI_V4SI): Ditto.
17335 (V16SI_FTYPE_V16SI_V16SI): Ditto.
17336 (V16SI_FTYPE_V32HI_V32HI): Ditto.
17337 (V16SI_FTYPE_V16SI_SI): Ditto.
17338 (V8DI_FTYPE_V8DI_V8DI): Ditto.
17339 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
17340 (V8DI_FTYPE_V16SI_V16SI): Ditto.
17341 (V8DI_FTYPE_V8DI_V2DI): Ditto.
17342 (QI_FTYPE_QI): Ditto.
17343 (SI_FTYPE_SI): Ditto.
17344 (DI_FTYPE_DI): Ditto.
17345 (QI_FTYPE_QI_QI): Ditto.
17346 (QI_FTYPE_QI_INT): Ditto.
17347 (HI_FTYPE_HI_INT): Ditto.
17348 (SI_FTYPE_SI_INT): Ditto.
17349 (DI_FTYPE_DI_INT): Ditto.
17350 (HI_FTYPE_V16QI_V16QI): Ditto.
17351 (SI_FTYPE_V32QI_V32QI): Ditto.
17352 (DI_FTYPE_V64QI_V64QI): Ditto.
17353 (QI_FTYPE_V8HI_V8HI): Ditto.
17354 (HI_FTYPE_V16HI_V16HI): Ditto.
17355 (SI_FTYPE_V32HI_V32HI): Ditto.
17356 (QI_FTYPE_V4SI_V4SI): Ditto.
17357 (QI_FTYPE_V8SI_V8SI): Ditto.
17358 (QI_FTYPE_V2DI_V2DI): Ditto.
17359 (QI_FTYPE_V4DI_V4DI): Ditto.
17360 (QI_FTYPE_V8DI_V8DI): Ditto.
17361 (HI_FTYPE_V16SI_V16SI): Ditto.
17362 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
17363 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
17364 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
17365 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
17366 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
17367 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
17368 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
17369 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
17370 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
17371 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
17372 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
17373 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
17374 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
17375 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
17376 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
17377 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
17378 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
17379 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
17380 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
17381 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
17382 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
17383 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
17384 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
17385 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
17386 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
17387 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
17388 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
17389 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
17390 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
17391 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
17392 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
17393 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
17394 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
17395 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
17396 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
17397 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
17398 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
17399 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
17400 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
17401 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
17402 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
17403 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
17404 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
17405 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
17406 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
17407 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
17408 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
17409 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
17410 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
17411 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
17412 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
17413 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
17414 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
17415 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
17416 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
17417 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
17418 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
17419 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
17420 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
17421 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
17422 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
17423 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
17424 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
17425 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
17426 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
17427 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
17428 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
17429 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
17430 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
17431 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
17432 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
17433 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
17434 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
17435 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
17436 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
17437 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
17438 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
17439 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
17440 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
17441 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
17442 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
17443 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
17444 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
17445 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
17446 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
17447 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
17448 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
17449 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
17450 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
17451 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
17452 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
17453 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
17454 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
17455 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
17456 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
17457 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
17458 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
17459 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
17460 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
17461 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
17462 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
17463 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
17464 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
17465 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
17466 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
17467 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
17468 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
17469 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
17470 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
17471 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
17472 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
17473 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
17474 (HI_FTYPE_HI): Ditto.
17475 (HI_FTYPE_V16QI): Ditto.
17476 (SI_FTYPE_V32QI): Ditto.
17477 (DI_FTYPE_V64QI): Ditto.
17478 (QI_FTYPE_V8HI): Ditto.
17479 (HI_FTYPE_V16HI): Ditto.
17480 (SI_FTYPE_V32HI): Ditto.
17481 (QI_FTYPE_V4SI): Ditto.
17482 (QI_FTYPE_V8SI): Ditto.
17483 (HI_FTYPE_V16SI): Ditto.
17484 (QI_FTYPE_V2DI): Ditto.
17485 (QI_FTYPE_V4DI): Ditto.
17486 (QI_FTYPE_V8DI): Ditto.
17487 (V16QI_FTYPE_HI): Ditto.
17488 (V32QI_FTYPE_SI): Ditto.
17489 (V64QI_FTYPE_DI): Ditto.
17490 (V8HI_FTYPE_QI): Ditto.
17491 (V16HI_FTYPE_HI): Ditto.
17492 (V32HI_FTYPE_SI): Ditto.
17493 (V4SI_FTYPE_QI): Ditto.
17494 (V4SI_FTYPE_HI): Ditto.
17495 (V8SI_FTYPE_QI): Ditto.
17496 (V8SI_FTYPE_HI): Ditto.
17497 (V2DI_FTYPE_QI): Ditto.
17498 (V4DI_FTYPE_QI): Ditto.
17499 (HI_FTYPE_HI_HI): Ditto.
17500 (SI_FTYPE_SI_SI): Ditto.
17501 (DI_FTYPE_DI_DI): Ditto.
17502 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
17503 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
17504 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
17505 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
17506 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
17507 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
17508 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
17509 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
17510 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
17511 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
17512 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
17513 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
17514 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
17515 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
17516 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
17517 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
17518 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
17519 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
17520 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
17521 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
17522 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
17523 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
17524 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
17525 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
17526 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
17527 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
17528 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
17529 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
17530 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
17531 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
17532 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
17533 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
17534 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
17535 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
17536 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
17537 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
17538 (V16SI_FTYPE_HI): Ditto.
17539 (V8DI_FTYPE_QI): Ditto.
17540 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
17541 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
17542 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
17543 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
17544 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
17545 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
17546 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
17547 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
17548 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
17549 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
17550 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
17551 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
17552 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
17553 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
17554 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
17555 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
17556 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
17557 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
17558 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
17559 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
17560 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
17561 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
17562 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
17563 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
17564 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
17565 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
17566 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
17567 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
17568 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
17569 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
17570 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
17571 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
17572 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
17573 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
17574 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
17575 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
17576 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
17577 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
17578 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
17579 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
17580 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
17581 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
17582 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
17583 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
17584 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
17585 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
17586 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
17587 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
17588 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
17589 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
17590 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
17591 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
17592 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
17593 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
17594 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
17595 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
17596 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
17597 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
17598 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
17599 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
17600 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
17601 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
17602 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
17603 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
17604 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
17605 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
17606 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
17607 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
17608 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
17609 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
17610 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
17611 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
17612 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
17613 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
17614 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
17615 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
17616 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
17617 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
17618 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
17619 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
17620 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
17621 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
17622 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
17623 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
17624 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
17625 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
17626 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
17627 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
17628 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
17629 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
17630 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
17631 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
17632 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
17633 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
17634 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
17635 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
17636 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
17637 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
17638 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
17639 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
17640 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
17641 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
17642 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
17643 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
17644 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
17645 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
17646 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
17647 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
17648 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
17649 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
17650 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
17651 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
17652 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
17653 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
17654 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
17655 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
17656 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
17657 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
17658 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
17659 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
17660 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
17661 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
17662 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
17663 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
17664 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
17665 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
17666 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
17667 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
17668 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
17669 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
17670 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
17671 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
17672 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
17673 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
17674 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
17675 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
17676 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
17677 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
17678 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
17679 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
17680 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
17681 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
17682 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
17683 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
17684 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
17685 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
17686 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
17687 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
17688 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
17689 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
17690 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
17691 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
17692 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
17693 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
17694 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
17695 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
17696 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
17697 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
17698 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
17699 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
17700 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
17701 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
17702 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
17703 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
17704 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
17705 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
17706 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
17707 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
17708 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
17709 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
17710 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
17711 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
17712 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
17713 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
17714 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
17715 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
17716 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
17717 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
17718 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
17719 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
17720 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
17721 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
17722 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
17723 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
17724 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
17725 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
17726 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
17727 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
17728 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
17729 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
17730 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
17731 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
17732 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
17733 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
17734 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
17735 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
17736 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
17737 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
17738 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
17739 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
17740 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
17741 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
17742 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
17743 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
17744 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
17745 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
17746 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
17747 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
17748 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
17749 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
17750 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
17751 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
17752 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
17753 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
17754 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
17755 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
17756 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
17757 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
17758 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
17759 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
17760 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
17761 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
17762 (QI_FTYPE_V8DF_INT_QI): Ditto.
17763 (QI_FTYPE_V4DF_INT_QI): Ditto.
17764 (QI_FTYPE_V2DF_INT_QI): Ditto.
17765 (HI_FTYPE_V16SF_INT_HI): Ditto.
17766 (QI_FTYPE_V8SF_INT_QI): Ditto.
17767 (QI_FTYPE_V4SF_INT_QI): Ditto.
17768 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
17770 2015-07-31 Richard Biener <rguenther@suse.de>
17772 * gimple-fold.c (fold_gimple_assign): Remove folding of
17775 2015-07-31 Tom de Vries <tom@codesourcery.com>
17777 PR tree-optimization/66846
17778 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
17779 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
17780 (expand_omp_target) [ENABLE_CHECKING]: Same.
17781 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
17782 cfun if !LOOPS_NEED_FIXUP.
17783 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
17784 that omp_for already has its own loop struct.
17785 * tree-parloops.c (create_phi_for_local_result)
17786 (create_call_for_reduction): Handle simple latch bb.
17787 (create_parallel_loop): Add simple latch bb to preserve
17788 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
17789 (gen_parallel_loop): Remove call to cancel_loop_tree.
17790 (parallelize_loops): Skip loops that are inner loops of parallelized
17792 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
17793 verify_loop_structure.
17795 2015-07-30 Anatoly Sokolov <aesok@post.ru>
17797 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
17798 * config/v850/v850.md (RV_REGNUM): New constants.
17799 * config/v850/v850.c (v850_libcall_value): New functions.
17800 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
17801 (TARGET_LIBCALL_VALUE): Define.
17803 2015-07-30 Anatoly Sokolov <aesok@post.ru>
17805 * rtl.h (lowpart_subreg): Move in file.
17806 * loop-iv.c (lowpart_subreg): Move to...
17807 * simplify-rtx.c (lowpart_subreg): ...here.
17808 (simplify_binary_operation_1): Use lowpart_subreg instead of
17809 simplify_gen_subreg.
17810 * expr.c (expand_expr_real_2): Ditto.
17811 * emit-rtl.c (gen_lowpart_common): Ditto.
17812 * combine.c (gen_lowpart_for_combine): Ditto.
17813 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
17814 expand_debug_source_expr): Ditto.
17816 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
17818 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
17819 (expand_builtin_atomic_clear): Remove support for atomic_clear
17822 2015-07-30 Richard Biener <rguenther@suse.de>
17824 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
17825 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
17826 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
17827 redundant operand canonicalization.
17829 2015-07-30 David Sherwood <david.sherwood@arm.com>
17831 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
17832 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
17833 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
17834 * config/arm/arm.c (neon_valid_immediate): Likewise.
17835 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
17836 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
17837 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
17838 (expand_vec_perm_vpshufb2_vpermq): Likewise.
17839 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
17840 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
17841 * config/i386/sse.md
17842 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
17843 (*ssse3_palignr<mode>_perm): Likewise.
17844 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
17845 * config/spu/spu.c (arith_immediate_p): Likewise.
17846 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
17847 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
17849 2015-07-30 Richard Biener <rguenther@suse.de>
17851 * genmatch.c (decision_tree::gen_gimple): Merge with ...
17852 (decision_tree::gen_generic): ... this into ...
17853 (decision_tree::gen): ... this.
17854 (main): Adjust callers.
17856 2015-07-30 Richard Biener <rguenther@suse.de>
17858 * genmatch.c (verbose): New global.
17859 (warning_at): Add overload with source_location.
17860 (capture_info::capture_info): Add bool whether generating gimple
17861 or generic. Add gimple member.
17862 (capture_info::cinfo): Add capture member.
17863 (capture_info::walk_match): Record capture. Warn on
17864 non-captured leafs.
17865 (capture_info::walk_c_expr): Add more fragments captures cannot
17866 escape through. Warn on escaped captures.
17867 (dt_simplify::gen_1): Warn on operands we force to have no
17869 (main): Initialize verbose.
17870 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
17872 2015-07-30 Richard Biener <rguenther@suse.de>
17874 PR middle-end/67053
17875 * match.pd: Allow both operands to independently have conversion
17876 when simplifying compares of addresses.
17878 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
17882 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
17883 around those cases that need one.
17885 2015-07-29 Aditya Kumar <hiraditya@msn.com>
17887 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
17889 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
17891 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
17892 New. Copied from config/i386/gnu-user.h.
17893 (ASM_COMMENT_START): Likewise.
17894 (DBX_REGISTER_NUMBER): Likewise.
17896 2015-07-29 Richard Biener <rguenther@suse.de>
17898 * gimple-fold.c (fold_gimple_cond): Remove.
17899 (fold_stmt_1): Do not call it.
17901 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
17903 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
17904 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
17906 * config/aarch64/aarch64-modes.def: Add HFmode.
17908 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
17909 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
17911 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
17912 aarch64_promoted_type): New.
17914 (aarch64_float_const_representable_p): Disable HFmode.
17915 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
17916 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
17917 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
17919 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
17920 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
17922 * config/aarch64/iterators.md (GPF_F16): New.
17924 2015-07-29 Richard Biener <rguenther@suse.de>
17926 * match.pd: Merge address comparison patterns and make them
17927 handle some more cases.
17929 2015-07-29 Richard Biener <rguenther@suse.de>
17931 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
17932 (parser::parse_capture): Add bool argument on whether to reject
17934 (parser::parse_expr): Adjust.
17935 (parser::parse_op): Likewise.
17936 (parser::parse_pattern): Likewise.
17938 2015-07-29 Richard Biener <rguenther@suse.de>
17940 * gimple-fold.c (has_use_on_stmt): New function.
17941 (replace_stmt_with_simplification): Use it to allow
17942 abnormals originally referenced in the stmt.
17943 (fold_stmt_1): Canonicalize operand order.
17945 2015-07-28 David Sherwood <david.sherwood@arm.com>
17947 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
17948 GET_MODE_INNER unconditionally.
17949 * config/spu/spu.c (arith_immediate_p): Likewise.
17950 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
17951 * expmed.c (synth_mult): Remove check for VOIDmode result from
17953 (expand_mult_const): Likewise.
17954 * fold-const.c (fold_binary_loc): Replace call to element_precision
17955 with call to GET_MODE_PRECISION.
17956 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
17958 (emit_mode_inner): Likewise.
17959 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
17961 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
17962 (GET_MODE_UNIT_PRECISION): Likewise.
17963 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
17964 * simplify-rtx.c (simplify_immed_subreg): Likewise.
17965 * stor-layout.c (bitwise_type_for_mode): Update assert.
17966 (element_precision): Remove.
17968 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
17970 * target-insns.def (reload_load_address): New targetm instruction
17972 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
17974 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
17976 * target-insns.def (atomic_test_and_set): New targetm instruction
17978 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
17979 HAVE_*/gen_* interface.
17981 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
17983 * target-insns.def (can_extend, ptr_extend): New targetm instruction
17985 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
17986 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
17987 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
17988 * rtlanal.c (nonzero_bits1): Likewise.
17989 (num_sign_bit_copies1): Likewise.
17991 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
17993 * target-insns.def (eh_return): New targetm instruction pattern.
17994 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
17996 * function.c (thread_prologue_and_epilogue_insns): Remove
17997 preprocessor condition.
17999 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
18001 * target-insns.def (indirect_jump): New targetm instruction pattern.
18002 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
18005 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
18007 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
18008 instead of nonimmediate_operand. Remove C condiition.
18010 2015-07-28 Richard Biener <rguenther@suse.de>
18012 * match.pd: Add more simplification of address comparisons.
18014 2015-07-28 Richard Biener <rguenther@suse.de>
18016 * match.pd: Re-order two cases in comparison with max/min
18017 value simplification to make it apply for bools.
18019 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18021 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
18022 Handle simple SIGN_EXTEND or ZERO_EXTEND.
18023 (aarch64_rtx_costs): Properly strip extend or extract before
18024 passing down to rtx costs again.
18026 2015-07-28 Nick Clifton <nickc@redhat.com>
18028 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
18029 Optimizes the case where -mes0 is active and a constant symbolic
18031 * config/rl78/rl78-protos.h: Prototype the new function.
18032 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
18034 2015-07-28 Tom de Vries <tom@codesourcery.com>
18036 * tree-parloops.c (reduc_stmt_res): New function.
18037 (initialize_reductions, add_field_for_reduction)
18038 (create_phi_for_local_result, create_loads_for_reductions)
18039 (create_stores_for_reduction, build_new_reduction): Handle case that
18040 reduc_stmt is a phi.
18041 (gather_scalar_reductions): Allow double_reduc reductions.
18043 2015-07-28 Richard Biener <rguenther@suse.de>
18045 * fold-const.c (fold_comparison): Remove equality folding
18046 of decl addresses ...
18047 * match.pd: ... here and merge with existing pattern.
18049 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
18051 PR tree-optimization/66828
18052 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
18053 from int64_t to uint64_t.
18055 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
18057 * opts-common.c (read_cmdline_option): List DriverOnly enum values
18058 as valid only in the error message of the driver, not in the
18059 messages of the language compilers.
18061 2015-07-27 Tom de Vries <tom@codesourcery.com>
18063 * tree-parloops.c (gather_scalar_reductions): Simplify function
18066 2015-07-27 Marek Polacek <polacek@redhat.com>
18068 * ipa-devirt.c (types_same_for_odr): Fix typo.
18070 2015-07-27 Jason Merrill <jason@redhat.com>
18073 * dwarf2out.c (gen_inlined_subroutine_die): Check
18074 cgraph_function_possibly_inlined_p.
18076 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
18078 * config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
18079 Place integer variant first.
18080 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
18082 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
18085 * config/arm/arm-builtins.c (enum arm_builtins):
18086 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
18087 (ARM_BUILTIN_NEON_BASE): Rename macro to....
18088 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
18089 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
18090 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
18092 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
18095 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
18096 Add qualifier_lane_index.
18097 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
18098 (arm_getlane_qualifiers): Use qualifier_lane_index.
18099 (arm_lanemac_qualifiers): Rename to...
18100 (arm_mac_n_qualifiers): ...this.
18101 (LANEMAC_QUALIFIERS): Rename to...
18102 (MAC_N_QUALIFIERS): ...this.
18103 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
18104 (arm_setlane_qualifiers): Use qualifier_lane_index.
18105 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
18106 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
18107 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
18108 (arm_expand_neon_builtin): Handle qualifier_lane_index.
18110 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
18111 * config/arm/arm.c (bounds_check): Likewise, improve error message.
18112 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
18113 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
18114 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
18115 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
18116 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
18117 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
18118 qualifiers to TERNOP_IMM.
18119 (vdup_lane): Change qualifiers to GETLANE.
18120 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
18121 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
18122 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
18123 vqdmlsl_n): Change qualifiers to MAC_N.
18125 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
18126 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
18127 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
18128 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
18129 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
18130 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
18131 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
18132 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
18133 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
18134 Remove call to neon_lane_bounds.
18136 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
18138 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
18139 Place integer variant first.
18141 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
18143 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
18144 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
18145 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
18146 for armv6kz targets.
18147 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
18148 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
18149 (FL_FOR_ARCH6ZK): Remove.
18150 (FL_FOR_ARCH6KZ): New.
18151 (arm_arch6zk): New declaration.
18152 * config/arm/arm-tables.opt: Regenerate.
18153 * config/arm/arm.c (arm_arch6kz): New.
18154 (arm_option_override): Set arm_arch6kz.
18155 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
18156 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
18157 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
18159 2015-07-27 Marek Polacek <polacek@redhat.com>
18163 * doc/invoke.texi: Document -Wtautological-compare.
18165 2015-07-27 Richard Biener <rguenther@suse.de>
18167 * genmatch.c (decision_tree::gen_gimple): Split out large
18168 subtrees into separate functions.
18169 (decision_tree::gen_generic): Likewise.
18171 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
18173 * config/alpha/alpha.c: Use SUBREG_P predicate.
18174 * config/alpha/predicates.md: Ditto.
18176 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
18178 * config.host (s390*-*-*): Include driver-native.c only when
18179 building with s390* as host *and* target.
18181 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
18184 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
18185 T bit register modified_between_p check.
18187 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
18189 * config/i386/i386.c: Use SUBREG_P predicate.
18190 * config/i386/i386.md: Ditto.
18191 * config/i386/sse.md: Ditto.
18192 * config/i386/predicates.md: Ditto.
18194 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
18197 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
18198 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
18200 2015-07-25 Sebastian Pop <s.pop@samsung.com>
18202 * Makefile.in: Remove use of TREEBROWSER.
18203 * config.in: Regenerated.
18204 * configure: Regenerated.
18205 * configure.ac: Remove definition of TREEBROWSER.
18206 * tree-browser.c: Removed.
18207 * tree-browser.def: Removed.
18209 2015-07-25 Sebastian Pop <s.pop@samsung.com>
18211 * graphite-scop-detection.c: Include gimple-pretty-print.h.
18212 (stmt_simple_for_scop_p): Print when a stmt is not handled in
18214 (scopdet_basic_block_info): Print when a loop or bb cannot be
18215 represented in Graphite.
18217 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
18220 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
18221 execution guard when min_size is less than size_needed.
18223 2015-07-25 Sebastian Pop <s.pop@samsung.com>
18225 * doc/install.texi: Document supported versions of ISL.
18227 2015-07-25 Jeff Law <law@redhat.com>
18231 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
18232 unable to find X NE 0 in the tables, return X as the simplified
18234 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
18235 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
18236 to VISISTED_BBS. */
18237 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
18238 after removing the control flow statement and unnecessary edges.
18240 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
18243 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
18245 PR rtl-optimization/64164
18246 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
18247 * tree-ssa-copyrename.c: Removed.
18248 * opts.c (default_options_table): Drop -ftree-copyrename. Add
18249 -ftree-coalesce-vars.
18250 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
18251 * common.opt (ftree-copyrename): Ignore.
18252 (ftree-coalesce-inlined-vars): Likewise.
18253 * doc/invoke.texi: Remove the ignored options above.
18254 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
18255 * tree-ssa-coalesce.h: ... here.
18256 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
18257 headers required by it.
18258 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
18259 across variables when flag_tree_coalesce_vars. Check register
18260 use and promoted modes to allow coalescing. Moved to
18261 tree-ssa-coalesce.c.
18262 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
18263 with its member functions to tree-ssa-coalesce.c.
18264 (var_map_base_init): Likewise. Renamed to
18265 compute_samebase_partition_bases.
18266 (partition_view_normal): Drop want_bases parameter.
18267 (partition_view_bitmap): Likewise.
18268 * tree-ssa-live.h: Adjust declarations.
18269 * tree-ssa-coalesce.c: Include explow.h.
18270 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
18271 default defs at the entry point.
18272 (dump_part_var_map): New.
18273 (compute_optimized_partition_bases): New, called by...
18274 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
18275 of compute_samebase_partition_bases. Adjust.
18276 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
18277 * cfgexpand.c (leader_merge): New.
18278 (get_rtl_for_parm_ssa_default_def): New.
18279 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
18280 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
18281 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
18282 redundant MEM attr setting.
18283 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
18285 (expand_one_stack_var): ... this. New wrapper to check and
18286 skip already expanded SSA partitions.
18287 (record_alignment_for_reg_var): New, factored out of...
18288 (expand_one_var): ... this.
18289 (expand_one_ssa_partition): New.
18290 (adjust_one_expanded_partition_var): New.
18291 (expand_one_register_var): Check and skip already expanded SSA
18293 (expand_used_vars): Don't create DECLs for anonymous SSA
18294 names. Expand all SSA partitions, then adjust all SSA names.
18295 (pass::execute): Replace the loops that set
18296 SA.partition_to_pseudo from partition leaders and cleared
18297 DECL_RTL for multi-location variables, and that which used to
18298 rename vars and set attrs, with one that clears DECL_RTL and
18299 checks that PARMs and RESULTs default_defs match DECL_RTL.
18300 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
18301 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
18302 * explow.c (promote_ssa_mode): New.
18303 * explow.h (promote_ssa_mode): Declare.
18304 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
18305 * function.c: Include cfgexpand.h.
18306 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
18307 (use_register_for_parm_decl): Wrapper for the above to
18308 special-case the result_ptr.
18309 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
18310 (split_complex_args): Take assign_parm_data_all argument.
18311 Pass it to rtl_for_parm. Set up rtl and context for split
18313 (assign_parms_augmented_arg_list): Adjust.
18314 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
18315 multiple locations. Recognize split complex args.
18316 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
18317 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
18318 (assign_parm_setup_block): Prefer SSA-assigned location.
18319 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
18320 if stack_parm is NULL.
18321 (assign_parm_setup_stack): Prefer SSA-assigned location.
18322 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
18323 rtl before testing for pointer bounds. Special-case result_ptr.
18324 (expand_function_start): Maybe reset DECL_RTL of result.
18325 Prefer SSA-assigned location for result and static chain.
18326 Factor out DECL_RESULT and SET_DECL_RTL.
18327 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
18328 anonymous SSA names. Use promote_ssa_mode.
18329 (get_temp_reg): Likewise.
18330 (remove_ssa_form): Adjust.
18331 * stor-layout.c (layout_decl): Don't set mem attributes of
18333 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
18334 and get its reg_usage for reg invalidation.
18335 (compute_bb_dataflow): Pass it insn.
18336 (emit_notes_in_bb): Likewise.
18338 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
18340 * config/i386/i386.c (ix86_va_start): Remove
18341 unneeded !TARGET_64BIT check.
18342 (ix86_gimplify_va_arg): Ditto.
18344 2015-07-24 Tom de Vries <tom@codesourcery.com>
18346 * graphite-sese-to-poly.c (build_poly_scop): Always call
18347 rewrite_commutative_reductions_out_of_ssa.
18349 2015-07-24 Tom de Vries <tom@codesourcery.com>
18351 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
18352 flag_associative_math to FLOAT_TYPE_P. Honour
18353 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
18355 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
18358 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
18359 and "%qD" in warning_at instead of "%q+D" in warning.
18361 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
18363 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
18364 (ix86_function_abi): Cleanup.
18366 2015-07-24 Michael Darling <darlingm@gmail.com>
18369 * acinclude.m4: Reflects renaming of configure.in to configure.ac
18370 * configure: Likewise
18371 * configure.ac: Likewise
18372 * doc/install.texi: Likewise
18373 * doc/tm.texi: Likewise
18374 * doc/tm.texi.in: Likewise
18376 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18378 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
18379 manually swapping values.
18380 * cse.c (fold_rtx): Likewise.
18381 * lra-eliminations.c (form_sum): Likewise.
18383 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
18386 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
18387 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
18388 (*jcc_1, *jcc_2, jump, simple_return_internal)
18389 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
18390 Set length_nobnd attribute instead of length attribute.
18391 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
18392 (length_nobnd): Remove attribute.
18393 (length): Remove length_nobnd processing.
18395 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
18397 * gimplify.c (omp_default_clause): New function. Reorganize flow
18398 for clarity. Broken out of ...
18399 (omp_notice_variable): ... here.
18401 2015-07-24 Gary Funck <gary@intrepid.com>
18403 PR middle-end/66984
18404 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
18405 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
18407 2015-07-24 Tom de Vries <tom@codesourcery.com>
18409 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
18410 exit-first loop transform.
18412 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
18415 * tree-cfg.c (struct replace_decls_d): New struct.
18416 (replace_block_vars_by_duplicates_1): New function.
18417 (replace_block_vars_by_duplicates): Use it to replace the decls
18418 in the value exprs by duplicates.
18420 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
18422 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
18423 -shared, -symbolic, -rdynamic.
18425 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
18428 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
18429 -dynamic-linker within %{!static %{!shared, and -rdynamic within
18432 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
18435 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
18436 edge summary is available.
18438 2015-07-24 Richard Biener <rguenther@suse.de>
18440 * genmatch.c (struct dt_node): Add statistic fields.
18441 (dt_node::analyze): New method.
18442 (decision_tree::gen_gimple): Call analyze on the root node
18443 and print statistics to stderr.
18444 (decision_tree::gen_generic): Likewise.
18446 2015-07-24 Richard Biener <rguenther@suse.de>
18448 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
18449 against the highest or lowest possible integer ...
18450 * match.pd: ... as patterns here.
18452 2015-07-24 Richard Biener <rguenther@suse.de>
18454 * genmatch.c (struct capture_info): Add same_as field.
18455 (capture_info::capture_info): Initialize same_as.
18456 (capture_info::walk_match): Compute same_as.
18457 (capture_info::walk_result): Compute stuff for the leader.
18458 (capture_info::walk_c_expr): Likewise.
18459 (dt_simplify::gen_1): Only look at leaders when deciding
18460 to force no side-effects or emit side-effects of omitted operands.
18462 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18464 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
18465 reg note to the GPR -> FPR save instructions.
18467 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18469 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
18471 (s390_expand_insv): Don't generate risbg pattern for constant zero
18473 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
18474 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
18477 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
18479 * config/s390/s390.c (s390_reorg): Clean up handling of processors
18482 (s390_issue_rate): Likewise.
18483 (s390_sched_reorder): Likewise.
18484 (s390_sched_variable_issue): Likewise.
18485 (s390_loop_unroll_adjust): Likewise.
18486 (s390_option_override): Likewise.
18488 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
18490 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
18491 processor capabilities with -march=native.
18492 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
18493 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
18494 (S390_TARGET_BITS_STRING): Macro to simplify specs.
18496 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
18498 * config/s390/s390.c (s390_issue_rate): Handle
18499 PROCESSOR_2094_Z9_EC.
18500 (s390_option_override): Likewise.
18501 (s390_adjust_priority): Likewise.
18503 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
18505 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
18506 when cross compiling.
18508 2015-07-24 Richard Biener <rguenther@suse.de>
18510 * fold-const.c (maybe_canonicalize_comparison_1): Move
18511 A code CST canonicalization ...
18512 * match.pd: ... to a pattern here.
18514 2015-07-24 Jiong Wang <jiong.wang@arm.com>
18517 2015-07-22 Jiong Wang <jiong.wang@arm.com>
18519 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
18520 (HONOR_REG_ALLOC_ORDER): Define.
18522 2015-07-24 Richard Biener <rguenther@suse.de>
18524 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
18525 * fold-const.c (fold_comparison): Move parameter does not
18526 alias &local simplification ...
18527 * match.pd: ... as a pattern here.
18529 2015-07-24 Richard Biener <rguenther@suse.de>
18531 * gimple-fold.c (replace_stmt_with_simplification): Special-case
18532 valueizing call operands.
18533 * gimple-match-head.c (maybe_push_res_to_seq): Take
18534 number of call arguments from ops array.
18535 (do_valueize): New function.
18536 (gimple_simplify): Return true if valueization changed
18537 any operand even if the result didn't simplify further.
18539 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
18541 PR middle-end/25530
18542 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
18544 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
18546 PR middle-end/25529
18547 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
18549 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
18551 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
18554 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
18556 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
18559 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
18561 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
18562 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
18564 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
18565 ms_va_list_type_node initialization.
18567 2015-07-23 Jeff Law <law@redhat.com>
18570 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
18571 unable to find X NE 0 in the tables, return X as the simplified
18573 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
18574 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
18575 to VISISTED_BBS. */
18576 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
18577 after removing the control flow statement and unnecessary edges.
18579 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
18581 * tree-pass.h (get_current_pass_name): Removed.
18583 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
18585 PR rtl-optimization/64164
18586 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
18587 * tree-ssa-copyrename.c: Removed.
18588 * opts.c (default_options_table): Drop -ftree-copyrename. Add
18589 -ftree-coalesce-vars.
18590 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
18591 * common.opt (ftree-copyrename): Ignore.
18592 (ftree-coalesce-inlined-vars): Likewise.
18593 * doc/invoke.texi: Remove the ignored options above.
18594 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
18595 * tree-ssa-coalesce.h: ... here.
18596 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
18597 headers required by it.
18598 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
18599 across variables when flag_tree_coalesce_vars. Check register
18600 use and promoted modes to allow coalescing. Moved to
18601 tree-ssa-coalesce.c.
18602 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
18603 with its member functions to tree-ssa-coalesce.c.
18604 (var_map_base_init): Likewise. Renamed to
18605 compute_samebase_partition_bases.
18606 (partition_view_normal): Drop want_bases parameter.
18607 (partition_view_bitmap): Likewise.
18608 * tree-ssa-live.h: Adjust declarations.
18609 * tree-ssa-coalesce.c: Include explow.h.
18610 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
18611 default defs at the entry point.
18612 (dump_part_var_map): New.
18613 (compute_optimized_partition_bases): New, called by...
18614 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
18615 of compute_samebase_partition_bases. Adjust.
18616 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
18617 * cfgexpand.c (leader_merge): New.
18618 (get_rtl_for_parm_ssa_default_def): New.
18619 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
18620 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
18621 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
18622 redundant MEM attr setting.
18623 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
18625 (expand_one_stack_var): ... this. New wrapper to check and
18626 skip already expanded SSA partitions.
18627 (record_alignment_for_reg_var): New, factored out of...
18628 (expand_one_var): ... this.
18629 (expand_one_ssa_partition): New.
18630 (adjust_one_expanded_partition_var): New.
18631 (expand_one_register_var): Check and skip already expanded SSA
18633 (expand_used_vars): Don't create DECLs for anonymous SSA
18634 names. Expand all SSA partitions, then adjust all SSA names.
18635 (pass::execute): Replace the loops that set
18636 SA.partition_to_pseudo from partition leaders and cleared
18637 DECL_RTL for multi-location variables, and that which used to
18638 rename vars and set attrs, with one that clears DECL_RTL and
18639 checks that PARMs and RESULTs default_defs match DECL_RTL.
18640 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
18641 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
18642 * explow.c (promote_ssa_mode): New.
18643 * explow.h (promote_ssa_mode): Declare.
18644 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
18645 * function.c: Include cfgexpand.h.
18646 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
18647 (use_register_for_parm_decl): Wrapper for the above to
18648 special-case the result_ptr.
18649 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
18650 (split_complex_args): Take assign_parm_data_all argument.
18651 Pass it to rtl_for_parm. Set up rtl and context for split
18653 (assign_parms_augmented_arg_list): Adjust.
18654 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
18655 multiple locations. Recognize split complex args.
18656 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
18657 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
18658 (assign_parm_setup_block): Prefer SSA-assigned location.
18659 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
18660 if stack_parm is NULL.
18661 (assign_parm_setup_stack): Prefer SSA-assigned location.
18662 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
18663 rtl before testing for pointer bounds. Special-case result_ptr.
18664 (expand_function_start): Maybe reset DECL_RTL of result.
18665 Prefer SSA-assigned location for result and static chain.
18666 Factor out DECL_RESULT and SET_DECL_RTL.
18667 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
18668 anonymous SSA names. Use promote_ssa_mode.
18669 (get_temp_reg): Likewise.
18670 (remove_ssa_form): Adjust.
18671 * stor-layout.c (layout_decl): Don't set mem attributes of
18673 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
18674 and get its reg_usage for reg invalidation.
18675 (compute_bb_dataflow): Pass it insn.
18676 (emit_notes_in_bb): Likewise.
18678 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
18681 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
18683 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
18684 (rs6000_emit_2insn_and): Handle dot forms.
18685 * config/rs6000/rs6000.md (and<mode>3): Adjust.
18686 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
18687 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
18689 2015-07-23 Richard Biener <rguenther@suse.de>
18691 * generic-match-head.c: Include cgraph.h.
18692 * gimple-match-head.c: Likewise.
18693 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
18695 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
18696 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
18699 2015-07-23 Richard Biener <rguenther@suse.de>
18701 * gimple-fold.c (fold_gimple_cond): Do not require folding
18702 results to pass valid_gimple_rhs_p.
18703 * tree-cfg.h (fold_cond_expr_cond): Remove.
18704 * tree-cfg.c (fold_cond_expr_cond): Likewise.
18705 (make_edges): Do not call it.
18706 * tree-inline.c (tree_function_versioning): Likewise.
18708 2015-07-23 Tom de Vries <tom@codesourcery.com>
18710 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
18711 vect_force_simple_reduction.
18712 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
18713 (vect_is_simple_reduction_1): Add and handle
18714 need_wrapping_integral_overflow parameter.
18715 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
18716 need_wrapping_integral_overflow parameter.
18717 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
18718 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
18721 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
18723 PR tree-optimization/66926,66951
18724 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
18725 INNER_LOOP and fix up condition for renaming virtual operands.
18727 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18729 * combine.c (try_combine): Use std::swap instead of manually
18732 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
18734 * config/mips/i6400.md: New file.
18735 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
18736 (mips64r6): Likewise.
18738 * config/mips/mips-tables.opt: Regenerate.
18739 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
18740 (mips_issue_rate): Add support for i6400.
18741 (mips_multipass_dfa_lookahead): Likewise.
18742 * config/mips/mips.h (TUNE_I6400): Define.
18743 * config/mips/mips.md: Include i6400.md.
18744 (processor): Add i6400.
18745 * doc/invoke.texi (-march=@var{arch}): Add i6400.
18747 2015-07-23 Richard Biener <rguenther@suse.de>
18749 PR middle-end/66916
18750 * match.pd: Guard widen and sign-change comparison simplification
18753 2015-07-23 Richard Biener <rguenther@suse.de>
18755 PR tree-optimization/66945
18756 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
18757 ::before_dom_children): Force the propagators idea of
18758 non-executable edges to materialize, not what the folder
18761 2015-07-23 Richard Biener <rguenther@suse.de>
18763 * gimple.h (gimple_cond_make_false): Use 0 != 0.
18764 (gimple_cond_make_true): Use 1 != 0.
18766 2015-07-22 DJ Delorie <dj@redhat.com>
18768 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
18771 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
18772 (ashrhi3): Likewise.
18773 (lshrhi3): Likewise.
18774 (movhi): Take advantage of zero-extend to load small constants.
18775 (movpsi): Likewise.
18776 (and<mode>3): Likewise.
18777 (zero_extendqihi2): Likewise.
18778 (zero_extendqisi2): New.
18779 * config/msp430/constraints.md (N,O): New.
18780 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
18782 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
18785 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
18786 to enum feature_priority and feature_list.
18787 (fold_builtin_cpu): Add F_AES to enum processor_features
18788 and isa_names_table.
18790 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
18793 * config/i386/linux-common.h (MPX_SPEC): Use linker option
18794 for 64bit target only.
18796 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
18798 * config/nvptx/nvptx.c: Expand some comments.
18800 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
18802 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
18803 (cortex_a53_advsimd): ...This.
18805 2015-07-22 Richard Biener <rguenther@suse.de>
18807 * genmatch.c (expr::gen_transform): Clarify error message
18808 and display location.
18810 2015-07-22 Richard Biener <rguenther@suse.de>
18812 * genmatch.c (struct operand): Add location member.
18813 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
18815 (struct simplify): Remove match_location and result_location
18817 (elsehwere): Adjust.
18819 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
18821 * config/mips/m5100.md: New file.
18822 * config/mips/mips-cpus.def (m5100, m5101): Define.
18823 * config/mips/mips-tables.opt: Regenerate.
18824 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
18825 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
18826 -march=m5101 to -mips32r5.
18827 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
18828 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
18830 * config/mips/mips.md: Include m5100.md.
18831 (processor): Add m5100.
18832 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
18834 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
18836 * config/mips/mips-cpus.def (interaptiv): Define.
18837 * config/mips/mips-tables.opt: Regenerate.
18838 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
18840 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
18841 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
18843 2015-07-22 Jiong Wang <jiong.wang@arm.com>
18846 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
18847 (HONOR_REG_ALLOC_ORDER): Define.
18849 2015-07-22 Richard Biener <rguenther@suse.de>
18851 PR tree-optimization/66952
18852 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
18853 blocks we end up executing unconditionally reset all SSA
18854 info such as range and alignment.
18855 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
18856 * tree-ssanames.c (reset_flow_sensitive_info): New function.
18858 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
18860 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
18863 2015-07-22 Richard Biener <rguenther@suse.de>
18865 * genmatch.c (parser::parse_result): Properly handle
18866 match with result operands and conditions.
18868 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
18871 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
18872 Add qualifier_struct_load_store_lane_index.
18873 (aarch64_types_loadstruct_lane_qualifiers): Use
18874 qualifier_struct_load_store_lane_index for lane index argument for
18876 (aarch64_types_storestruct_lane_qualifiers): Ditto.
18877 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
18878 (aarch64_simd_expand_args): Add new argument describing mode of
18879 builtin. Check lane bounds for arguments with
18880 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
18881 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
18882 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
18883 (aarch64_simd_expand_builtin): Handle arguments with
18884 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
18885 aarch64_simd_expand_args.
18886 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
18887 vst[234]_lane with BUILTIN_VALLDIF.
18888 * config/aarch64/aarch64-simd.md:
18889 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
18890 endianness reversal on lane index.
18891 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
18892 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
18893 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
18894 (vec_store_lanesci_lane<mode>): Ditto.
18895 (vec_store_lanesxi_lane<mode>): Ditto.
18896 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
18897 reversal of lane index.
18898 (aarch64_ld3_lane<mode>): Ditto.
18899 (aarch64_ld4_lane<mode>): Ditto.
18900 (aarch64_st2_lane<mode>): Ditto.
18901 (aarch64_st3_lane<mode>): Ditto.
18902 (aarch64_st4_lane<mode>): Ditto.
18903 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
18904 to qmode. Add new mode parameter. Update uses.
18905 (__LD3_LANE_FUNC): Ditto.
18906 (__LD4_LANE_FUNC): Ditto.
18907 (__ST2_LANE_FUNC): Ditto.
18908 (__ST3_LANE_FUNC): Ditto.
18909 (__ST4_LANE_FUNC): Ditto.
18911 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
18913 * doc/invoke.texi (Language Independent Options): Rename node to
18914 Diagnostic Message Formatting Options.
18916 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
18919 * lra-remat.c (operand_to_remat): Prevent using insns with input
18920 subregs processed separately by IRA.
18922 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
18924 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
18926 (single_imm_use): Check for iterator node.
18927 (num_imm_uses): Likewise.
18928 * tree-ssa-operands.c (has_zero_uses_1): Delete.
18929 (single_imm_use_1): Check for iterator node.
18931 2015-07-21 Mike Frysinger <vapier@gentoo.org>
18932 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
18934 * configure.ac: Add check for new options in isl-0.15.
18935 * config.in, configure: Rebuilt.
18936 * graphite-blocking.c: Include <isl/constraint.h>
18937 * graphite-interchange.c, graphite-poly.c: Likewise.
18938 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
18939 * graphite.c: Likewise.
18940 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
18942 * graphite-dependences.c: Include <isl/constraint.h>.
18943 (max_number_of_out_dimensions): Returns isl_stat.
18944 (extend_schedule_1): Likewise
18945 (extend_schedule): Corresponding changes.
18946 * graphite-optimize-isl.c: Include <isl/constraint.h> and
18948 (getSingleMap): Change return type of isl_stat.
18949 (optimize_isl): Conditionally use
18950 isl_options_set_schedule_serialize_sccs.
18951 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
18952 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
18954 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
18957 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
18958 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
18960 2015-07-21 Richard Biener <rguenther@suse.de>
18962 PR tree-optimization/66948
18963 * genmatch.c (capture_info::walk_match): Also recurse to
18964 captures. Properly compute expr state from captures of
18966 * match.pd: Add single-use guards to
18967 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
18969 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
18971 * config/nvptx/mkoffload.c (process): Add static destructor call.
18973 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18975 PR middle-end/66915
18976 * match.pd (A - B -> A + (-B)): Don't allow folding
18977 when type if a fixed-point type.
18979 2015-07-20 DJ Delorie <dj@redhat.com>
18981 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
18982 (iorqi3_real): Likewise for set1.
18984 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
18986 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
18989 2015-07-20 Aditya Kumar <hiraditya@msn.com>
18991 * graphite-isl-ast-to-gimple.c:
18992 Refactor so that each function can access 'region'. This will help
18993 maintain a parameter rename_map within a region.
18995 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18997 * config/rs6000/rs6000.md (*lt0_disi): New.
18999 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
19002 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
19003 "available letters" comment.
19004 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
19005 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
19006 and_2rld_operand): Delete.
19007 (and_operand): Adjust.
19008 (rotate_mask_operator): New.
19009 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
19010 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
19011 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
19012 extract_ME): Delete.
19013 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
19014 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
19015 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
19016 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
19017 rs6000_emit_2insn_and): New.
19018 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
19019 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
19020 includes_rldic_lshift_p, includes_rldicr_lshift_p,
19021 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
19022 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
19023 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
19024 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
19025 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
19026 rs6000_emit_2insn_and): New.
19027 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
19028 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
19030 <NOT>: Don't fall through to next case.
19031 <AND>: Handle the various rotate-and-mask cases directly.
19032 <IOR>: Always cost as one insn.
19033 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
19034 (and<mode>3): Adjust expander for the new patterns.
19035 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
19036 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
19037 (*and<mode>3_imm_dot_shifted): New.
19038 (*and<mode>3_mask): Delete, rewrite as ...
19039 (and<mode>3_mask): ... New.
19040 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
19041 (andsi3_internal0_nomc): Delete.
19042 (*andsi3_internal6): Delete.
19043 (*and<mode>3_2insn): New.
19044 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
19045 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
19046 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
19047 *insvdi_internal3): Delete.
19048 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
19049 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
19050 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
19051 *ior<mode>_mask): New.
19052 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
19053 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
19054 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
19055 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
19057 (ashr<mode>3): Delete expander.
19058 (*ashr<mode>3): Rename to ...
19059 (ashr<mode>3): ... This.
19060 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
19061 (*rotldi3_internal4, *rotldi3_internal5 and split,
19062 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
19063 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
19064 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
19065 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
19066 (splitter for loading a mask): Adjust.
19067 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
19069 2015-07-20 Marek Polacek <polacek@redhat.com>
19071 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
19072 output_add_clobbers, output_added_clobbers_hard_reg_p,
19073 gen_rtx_scratch): Remove declarations.
19075 2015-07-20 Marek Polacek <polacek@redhat.com>
19078 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
19080 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19082 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
19083 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
19085 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19087 * combine.c (combine_simplify_rtx): Move simplification step
19088 before various transformations/substitutions.
19090 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
19092 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
19093 (struct int_traits): Likewise.
19095 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19097 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
19098 function to vmsdbgout_function_decl.
19100 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
19103 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
19104 from misaligned positions.
19105 (ix86_expand_pinsr): Reject insertions to misaligned positions.
19107 2015-07-18 Sebastian Pop <s.pop@samsung.com>
19109 PR middle-end/46851
19110 PR middle-end/60340
19111 * Makefile.in: Removed omega.o.
19112 * common.opt: Document flag fcheck-data-deps as deprecated.
19113 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
19114 its associated params: omega-max-vars, omega-max-geqs,
19115 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
19116 omega-max-keys, omega-eliminate-redundant-constraints.
19117 * doc/loop.texi: Remove all the section on Omega.
19118 * graphite-blocking.c: Include missing params.h: it used to be
19119 included through tree-data-ref.h and omega.h.
19120 * graphite-isl-ast-to-gimple.c: Same.
19121 * graphite-optimize-isl.c: Same.
19122 * graphite-sese-to-poly.c: Same.
19123 * graphite.c: Same.
19126 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
19127 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
19128 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
19129 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
19130 * passes.def: Remove pass_check_data_deps.
19131 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
19132 (dump_conflict_function): Same.
19133 (dump_subscript): Same.
19134 (print_direction_vector): Same.
19135 (print_dir_vectors): Same.
19136 (print_lambda_vector): Same.
19137 (print_dist_vectors): Same.
19138 (dump_data_dependence_relation): Same.
19139 (dump_data_dependence_relations): Same.
19140 (dump_dist_dir_vectors): Same.
19142 (init_omega_eq_with_af): Removed.
19143 (omega_extract_distance_vectors): Removed.
19144 (omega_setup_subscript): Removed.
19145 (init_omega_for_ddr_1): Removed.
19146 (init_omega_for_ddr): Removed.
19147 (ddr_consistent_p): Removed.
19148 (compute_affine_dependence): Do not use omega to check data
19150 (compute_data_dependences_for_bb): Removed.
19151 (analyze_all_data_dependences): Removed.
19152 (tree_check_data_deps): Removed.
19153 * tree-data-ref.h: Do not include omega.h.
19154 (compute_data_dependences_for_bb): Removed.
19155 (tree_check_data_deps): Removed.
19156 * tree-ssa-loop.c (pass_check_data_deps): Removed.
19157 (make_pass_check_data_deps): Removed.
19158 * tree-ssa-phiopt.c: Include params.h.
19159 * tree-vect-data-refs.c: Same.
19160 * tree-vect-slp.c: Same.
19162 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
19164 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
19165 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
19166 (mem->fpreg splitters): Ditto.
19167 (general_operand->nonimmediate_operand splitter): Use explicit modes.
19168 Disable DFmode for TARGET_64BIT.
19170 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
19173 * config/i386/i386.c (ix86_expand_prologue): Replicate static
19174 chain on the stack.
19176 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
19178 * config/nvptx/mkoffload.c (process): Constify host data.
19179 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
19180 Constify host data.
19181 (generate_host_descr_file): Likewise.
19183 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
19184 Sebastian Pop <s.pop@samsung.com>
19186 PR middle-end/61929
19187 * graphite-dependences.c (add_pdr_constraints): Renamed
19188 pdr->extent to pdr->subscript_sizes.
19189 * graphite-interchange.c (build_linearized_memory_access): Add
19190 back all gcc_assert's that the "isl_int to isl_val conversion"
19191 patch has removed. Refactored.
19192 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
19193 * graphite-poly.c (new_poly_dr): Same.
19194 (free_poly_dr): Same.
19195 * graphite-poly.h (struct poly_dr): Same.
19196 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
19197 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
19198 * graphite-scop-detection.h: Fix space.
19199 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
19200 back all gcc_assert's removed by a previous patch.
19201 (wrap): Remove the_isl_ctx global variable that the same patch has
19203 (build_loop_iteration_domains): Same.
19204 (add_param_constraints): Same.
19205 (pdr_add_data_dimensions): Same. Refactored.
19206 (build_poly_dr): Renamed extent to subscript_sizes.
19208 2015-07-17 Marek Polacek <polacek@redhat.com>
19210 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
19211 * match.pd: ... here.
19213 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
19215 * config/nvptx/mkoffload.c (process): Constify target data.
19216 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
19217 Constify target data.
19218 (generate_target_offloadend_file): Likewise.
19220 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
19222 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
19223 to allow renaming of PHI arguments on edges incoming from outer
19224 loop header, add corresponding check before start PHI iterator.
19225 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
19226 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
19227 with true force_vectorize. Set-up dominator for outer loop too.
19228 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
19229 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
19230 was marked with force_vectorize and has restricted cfg.
19231 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
19233 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
19234 do peeling for outer loops.
19236 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
19237 Matthias Klose <doko@ubuntu.com>
19239 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
19240 build-sysroot, sysroot from the `Miscenalleous configure options' to
19241 the `Directories' section and strip trailing `/' from with_sysroot.
19242 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
19243 * configure: Regenerated.
19245 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
19248 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
19249 (TARGET_HARD_DF_REGS): Ditto.
19250 (TARGET_HARD_XF_REGS): Ditto.
19251 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
19252 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
19253 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
19254 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
19255 (*movsf_internal): Add alternatives 16 and 17. Enable
19256 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
19258 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
19260 PR rtl-optimization/66891
19261 * calls.c (expand_call): Wrap precompute_register_parameters with
19262 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
19264 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
19266 * config/nvptx/mkoffload.c (process): Constify mapping variables.
19267 Define target data struct and initialize it.
19269 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
19271 PR rtl-optimization/66626
19272 * ira.h (emit-rtl.h): Include.
19273 (non_spilled_static_chain_regno_p): New.
19274 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
19275 unless it is non spilled static chain pseudo.
19276 (assign_hard_rego): Spill memory profitable allocno unless it is
19277 non spilled static chain pseudo.
19278 (allocno_spill_priority_compare): Put non spilled static chain
19279 pseudo at the end of sorted array.
19280 (improve_allocation): Do nothing if we have static chain and
19282 (allocno__priority_compare_func): Put non spilled static chain
19283 pseudo at the beginning of sorted array.
19284 (move_spill_restore): Ignore non spilled static chain pseudo.
19285 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
19286 to non spilled static chain pseudo.
19287 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
19288 pseudo at the beginning of sorted array.
19289 (spill_for): Spill non spilled static chain pseudo last.
19290 * lra-constraints.c (lra_constraints): Remove static chain pseudo
19291 check for equivalence.
19293 2015-07-16 Martin Liska <mliska@suse.cz>
19296 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
19297 dst_ctx if it does not exist.
19299 2015-07-16 Martin Liska <mliska@suse.cz>
19301 * hash-set.h (remove): New function.
19302 (iterator): New iteration class for hash_set.
19304 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
19306 * genattrtab.c (make_canonical): Add a file_location parameter.
19307 Use fatal_at rather than fatal.
19308 (get_attr_value): Likewise. Update call to make_canonical.
19309 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
19310 (make_internal_attr): Update calls accordingly.
19312 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
19314 * read-md.h (message_with_line, error_with_line): Delete.
19315 * read-md.c (message_with_line, error_with_line): Delete.
19316 * gensupport.h: Include read-md.h.
19317 (md_rtx_info): New structure.
19318 (read_md_rtx): Use it. Return a bool success value.
19319 * gensupport.c (read_md_rtx): Likewise.
19320 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
19321 (main): Update after interface changes.
19322 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
19323 (main): Update after interface changes.
19324 * genattrtab.c (insn_code_number): Delete.
19325 (optimize_attrs): Add a max_insn_code parameter and use it instead
19326 of insn_code_number.
19327 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
19328 Use *_at rather than *_with_line functions.
19329 (gen_insn): Likewise.
19330 (gen_delay): Likewise.
19331 (gen_insn_reserv): Likewise.
19332 (gen_bypass): Take an md_rtx_info rather than an rtx.
19333 (main): Update after interface changes. Use a local max_insn_code
19334 variable instead of insn_code_number.
19335 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
19336 an rtx. Use fatal_at rather than fatal.
19337 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
19338 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
19339 (gen_absence_set, gen_final_absence_set, gen_automaton)
19340 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
19341 (main): Update after interface changes.
19342 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
19344 (main): Update after interface changes.
19345 * genconditions.c (main): Use new read_md_rtx interface.
19346 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
19347 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
19348 (main): Update after interface changes.
19349 * genemit.c (insn_code_number, insn_index_number): Delete.
19350 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
19351 Use fatal_at rather than fatal.
19352 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
19354 (gen_split): Likewise.
19355 (main): Update after interface changes.
19356 * genextract.c (line_no): Delete.
19357 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
19358 Update call to walk_rtx.
19359 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
19360 rather than message_with_line.
19361 (walk_rtx): Add an md_rtx_info argument. Update call to
19362 VEC_safe_set_locstr.
19363 (main): Update after interface changes.
19364 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
19365 and lineno. Use error_at rather than separate message_with_line
19366 calls and have_error assignments.
19367 (main): Update after interface changes.
19368 * genmddump.c (main): Use new read_md_rtx interface.
19369 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
19370 (main): Update after interface changes.
19371 * genoutput.c (next_code_number): Delete.
19372 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
19373 (gen_peephole, gen_expand, gen_split): Likewise.
19374 (note_constraint): Likewise. Use *_at rather than *_with_line
19376 (main): Update after interface changes.
19377 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
19379 (main): Update after interface changes.
19380 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
19381 than an rtx and lineno.
19382 (process_define_constraint): Likewise.
19383 (process_define_register_constraint): Likewise.
19384 (main): Update after interface changes.
19385 * genrecog.c (next_insn_code, pattern_lineno): Delete.
19386 (validate_pattern): Replace top-level rtx with an md_rtx_info.
19387 Use *_at rather than *_with_line functions.
19388 (match_pattern_2): Likewise.
19389 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
19390 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
19391 Use *_at rather than *_with_line functions.
19392 * gentarget-def.c (add_insn): New function.
19393 (main): Use it. Use new read_md_rtx interface.
19395 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
19397 * gensupport.h (compute_test_codes): Take a file_location rather
19398 than a line number.
19399 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
19400 rather than *_with_line functions.
19401 (process_define_predicate): Update call to compute_test_codes.
19402 * genpreds.c (validate_exp): Take a file_location rather than a
19403 line number. Use *_at functions rather than *_with_line functions.
19404 (process_define_predicate): Update call to validate_exp.
19405 (constraint_data): Replace lineno field with a file_location.
19406 (add_constraint): Take a file_location rather than a line number.
19407 Use *_at functions rather than *_with_line functions. Fix error
19408 message for address constraints. Update after changes to
19409 validate_exp, constraint_data and compute_test_codes.
19410 (process_define_constraint): Update accordingly.
19411 (process_define_register_constraint): Likewise.
19413 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
19415 * genoutput.c (data): Use a file_location to record the source
19418 (idata, idata_end): Remove initialization.
19419 (constraint_data): Replace lineno with a file_location.
19420 (output_insn_data): Update after changes to data.
19421 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
19422 (scan_operands): Likewise, using *_at rather than *_with_line
19424 (process_template): Likewise.
19425 (validate_insn_alternatives): Likewise.
19426 (validate_insn_operands): Likewise.
19427 (validate_optab_operands): Likewise.
19428 (init_insn_for_nothing): Initialize idata and idata_end.
19429 (note_constraint): Update after changes to constraint_data,
19430 using at rather than with_line functions.
19431 (mdep_constraint_len): Take a file_location rather than a
19432 line number. Use at rather than with_line functions.
19434 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
19436 * read-md.h (fatal_at): Declare.
19437 * read-md.c (fatal_at): New function.
19438 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
19439 to record the source position.
19440 (check_attr_test): Take a file_location instead of a line number.
19441 Use fatal_at instead of fatal.
19442 (check_attr_value): Update after above changes, using "at"
19443 rather than "with_line" reporting functions.
19444 (convert_set_attr_alternative): Likewise.
19445 (gen_attr): Likewise.
19446 (check_defs): Likewise. Don't assign to read_md_filename.
19447 (gen_insn): Update initialization after above changes.
19448 (gen_delay): Likewise.
19449 (write_insn_cases): Print the filename for a define_peephole.
19450 (gen_insn_reserv): Take a line number as argument and update
19451 the call to check_attr_test.
19452 (main): Pass a line number to gen_insn_reserv.
19454 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
19456 * read-md.h (file_location): New structure.
19457 (directive_handler_t): Take a file_location rather than a line number.
19458 (message_at, error_at): Declare.
19459 (read_skip_construct): Delete.
19460 * read-md.c (message_with_line_1): Replace with...
19461 (message_at_1): ...this new function.
19462 (message_at, error_at): New functions.
19463 (message_with_line, error_with_line): Update to use message_at_1.
19464 (handle_enum): Take a file_location rather than a line number
19465 and use error_at for error reporting.
19466 (handle_include): Likewise.
19467 (read_skip_construct): Likewise. Make static.
19468 (handle_file): Update after above changes. Pass a file_location
19469 rather than a line number to handle_directive.
19470 * gensupport.c (queue_elem): Replace separate filename and lineno
19471 with a file_location.
19472 (queue_pattern): Replace filename and lineno arguments with a
19473 file_location. Update after change to queue_elem.
19474 (process_define_predicate): Replace lineno argument with a
19475 file_location and use error_at for error reporting. Update
19476 after above changes.
19477 (process_rtx): Likewise.
19478 (subst_pattern_match): Likewise.
19479 (get_alternatives_number): Likewise.
19480 (alter_predicate_for_insn): Likewise.
19481 (rtx_handle_directive): Likewise.
19482 (is_predicable): Update after above changes, using error_at rather
19483 than error_with_line.
19484 (has_subst_attribute): Likewise.
19485 (identify_predicable_attribute): Likewise.
19486 (alter_attrs_for_subst_insn): Likewise.
19487 (process_one_cond_exec): Likewise.
19488 (process_substs_on_one_elem): Likewise.
19489 (process_define_subst): Likewise.
19490 (check_define_attr_duplicates): Likewise.
19491 (read_md_rtx): Update after change to queue_elem.
19493 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
19495 * genoutput.c (next_index_number): Delete.
19496 (data): Remove index_number.
19497 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
19498 (main): Remove manipulation of next_index_number.
19500 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
19502 * genattrtab.c (check_attr_value): Remove handling of null attrs.
19503 (make_canonical): Likewise.
19505 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
19507 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
19508 instead of adjust_address_nv.
19509 (restore_stack_nonlocal): Likewise.
19510 (nonlocal_goto): Likewise.
19512 2015-07-16 Tom de Vries <tom@codesourcery.com>
19514 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
19515 not have a corresponding loop header phi.
19517 2015-07-16 Tom de Vries <tom@codesourcery.com>
19519 * tree-parloops.c (create_loads_for_reductions): Handle case that
19520 reduction is unused.
19522 2015-07-16 Richard Biener <rguenther@suse.de>
19524 PR tree-optimization/66894
19525 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
19526 about deriving NE_EXPR from truncated values.
19528 2015-07-16 Martin Liska <mliska@suse.cz>
19531 (object_allocator): Add new class.
19532 (pool_allocator::initialize): Use the underlying class.
19533 (pool_allocator::allocate): Likewise.
19534 (pool_allocator::remove): Likewise.
19535 (operator new): A new generic allocator.
19536 * asan.c (struct asan_mem_ref): Remove unused members.
19537 (asan_mem_ref_new): Replace new operator with
19538 object_allocator::allocate.
19539 (free_mem_ref_resources): Change deallocation.
19540 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
19541 with object_allocator.
19542 * config/sh/sh.c (add_constant): Replace new operator with
19543 object_allocator::allocate.
19544 (sh_reorg): Change call to a release method.
19545 * cselib.c (struct elt_list): Remove unused members.
19546 (new_elt_list): Replace new operator with
19547 object_allocator::allocate.
19548 (new_elt_loc_list): Likewise.
19549 (new_cselib_val): Likewise.
19550 (unchain_one_elt_list): Change delete operator with remove method.
19551 (unchain_one_elt_loc_list): Likewise.
19552 (unchain_one_value): Likewise.
19553 (cselib_finish): Release newly added static allocators.
19554 * cselib.h (struct cselib_val): Remove unused members.
19555 (struct elt_loc_list): Likewise.
19556 * df-problems.c (df_chain_alloc): Replace pool_allocator with
19558 * df-scan.c (struct df_scan_problem_data): Likewise.
19559 (df_scan_alloc): Likewise.
19560 * df.h (struct dataflow): Likewise.
19561 * dse.c (struct read_info_type): Likewise.
19562 (struct insn_info_type): Likewise.
19563 (struct dse_bb_info_type): Likewise.
19564 (struct group_info): Likewise.
19565 (struct deferred_change): Likewise.
19566 (get_group_info): Likewise.
19567 (delete_dead_store_insn): Likewise.
19568 (free_read_records): Likewise.
19569 (replace_read): Likewise.
19570 (check_mem_read_rtx): Likewise.
19571 (scan_insn): Likewise.
19572 (dse_step1): Likewise.
19573 (dse_step7): Likewise.
19574 * et-forest.c (struct et_occ): Remove unused members.
19575 (et_new_occ): Use allocate instead of new operator.
19576 (et_new_tree): Likewise.
19577 (et_free_tree): Call release method explicitly.
19578 (et_free_tree_force): Likewise.
19579 (et_free_pools): Likewise.
19580 (et_split): Use remove instead of delete operator.
19581 * et-forest.h (struct et_node): Remove unused members.
19582 * ipa-cp.c: Change pool_allocator to object_allocator.
19583 * ipa-inline-analysis.c: Likewise.
19584 * ipa-profile.c: Likewise.
19585 * ipa-prop.c: Likewise.
19586 * ipa-prop.h: Likewise.
19587 * ira-build.c (initiate_cost_vectors): Cast return value.
19588 (ira_allocate_cost_vector): Likewise.
19589 * ira-color.c (struct update_cost_record): Remove unused members.
19590 * lra-int.h (struct lra_live_range): Likewise.
19591 (struct lra_copy): Likewise.
19592 (struct lra_insn_reg): Likewise.
19593 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
19594 * lra.c (new_insn_reg): Replace new operator with allocate method.
19595 (free_insn_regs): Same for operator delete.
19596 (finish_insn_regs): Release new static allocator.
19597 (finish_insn_recog_data): Likewise.
19598 (lra_free_copies): Replace delete operator with remove method.
19599 (lra_create_copy): Replace operator new with allocate method.
19600 (invalidate_insn_data_regno_info): Same for remove method.
19601 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
19602 (free_debug_insn_changes): Replace delete operator with remove method.
19603 (replace_oldest_value_reg): Replace operator new with allocate method.
19604 (pass_cprop_hardreg::execute): Release new static variable.
19605 * sched-deps.c (sched_deps_init): Change pool_allocator to
19607 * sel-sched-ir.c: Likewise.
19608 * sel-sched-ir.h: Likewise.
19609 * stmt.c (expand_case): Likewise.
19610 (expand_sjlj_dispatch_table): Likewise.
19611 * tree-sra.c (struct access): Remove unused members.
19612 (struct assign_link): Likewise.
19613 (sra_deinitialize): Release newly added static pools.
19614 (create_access_1):Replace operator new with allocate method.
19615 (build_accesses_from_assign): Likewise.
19616 (create_artificial_child_access): Likewise.
19617 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
19618 pool_allocator to object_allocator.
19619 * tree-ssa-pre.c: Likewise.
19620 * tree-ssa-reassoc.c: Likewise.
19621 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
19622 * tree-ssa-strlen.c: Likewise.
19623 * tree-ssa-structalias.c: Likewise.
19624 * var-tracking.c (onepart_pool_allocate): New function.
19625 (unshare_variable): Use the newly added function.
19626 (variable_merge_over_cur): Likewise.
19627 (variable_from_dropped): Likewise.
19628 (variable_was_changed): Likewise.
19629 (set_slot_part): Likewise.
19630 (emit_notes_for_differences_1): Likewise.
19631 (vt_finalize): Release newly added static pools.
19633 2015-07-16 Martin Jambor <mjambor@suse.cz>
19635 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
19636 all uses. Fix two typos in its general comment.
19637 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
19639 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
19641 * config/i386/linux-common.h (LINK_MPX): New.
19642 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
19643 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
19644 indicating '-z bndplt' support by linker.
19645 * configure: Regenerate.
19646 * config.in: Regenerate.
19648 2015-07-16 Richard Biener <rguenther@suse.de>
19650 * fold-const.c (fold_widened_comparison): Remove.
19651 (fold_sign_changed_comparison): Likewise.
19652 (fold_comparison): Move widened and sign-changed comparison
19654 * match.pd: ... to patterns here.
19655 * generic-match-head.c: Include target.h.
19656 * gimple-match-head.c: Likewise.
19658 2015-07-16 Richard Biener <rguenther@suse.de>
19660 * tree-ssa-dom.c (dom_valueize): New function.
19661 (record_temporary_equivalences): Also record equivalences
19662 for dominating stmts that have uses of equivalences we are
19665 2015-07-16 Bin Cheng <bin.cheng@arm.com>
19667 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
19668 add_autoinc_candidates.
19669 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
19670 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
19671 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
19672 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
19674 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
19675 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
19676 Remove parameter struct iv*. Call add_autoinc_candidates here.
19677 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
19678 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
19680 (find_iv_candidates): Call new functions.
19682 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
19684 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
19685 uninitialized-variable warning.
19687 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
19690 * config/sh/sh.md (movdi): Split simple reg move to two movsi
19691 when the destination is R0.
19693 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
19696 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
19697 * config/i386/i386.c (ix86_expand_pextr): New function.
19698 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
19699 for non-lowpart subregs.
19700 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
19701 (insv<mode>): Use SWI248 mode iterator.
19702 (insv<mode>_1): Ditto.
19704 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
19705 Sebastian Pop <s.pop@samsung.com>
19707 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
19708 iterator to use_stmt.
19710 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
19711 Sebastian Pop <s.pop@samsung.com>
19713 * graphite-scop-detection.c (build_scops_1): Discard scops for
19716 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
19717 Sebastian Pop <s.pop@samsung.com>
19719 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
19720 case of a return statement in scop.
19722 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
19723 Sebastian Pop <s.pop@samsung.com>
19725 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
19726 INTEGER_TYPE parameters.
19727 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
19728 VECTOR_CST in scan_tree_for_params.
19729 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
19731 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
19733 * gimple-pretty-print.h: Don't include pretty-print.h.
19734 * tree-streamer.h: Don't include lto-streamer.h.
19735 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
19736 * gimple-streamer-in.c: Remove redundant includes.
19737 * gimple-streamer-out.c: Likewise.
19738 * ipa-devirt.c: Likewise.
19739 * ipa-icf.c: Likewise.
19740 * ipa-inline-analysis.c: Likewise.
19741 * ipa-polymorphic-call.c: Likewise.
19742 * ipa-profile.c: Likewise.
19743 * ipa-prop.c: Likewise.
19744 * ipa-pure-const.c: Likewise.
19745 * lto-cgraph.c: Likewise.
19746 * lto-streamer-in.c: Likewise.
19747 * lto-streamer-out.c: Likewise.
19748 * lto-streamer.c: Likewise.
19749 * tree-streamer-in.c: Likewise.
19750 * tree-streamer-out.c: Likewise.
19751 * tree-streamer.c: Likewise.
19753 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
19755 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
19757 * opts.c: Remove multiline #include comment.
19759 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
19761 * config/nvptx/mkoffload.c (process): Add C++ protection to
19764 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
19767 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
19768 null before IEEE 128-bit floating point support patch.
19770 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19772 * simplify-rtx.c (simplify_ternary_operation): Add simplification
19773 for (!c) != {0,...,0} ? a : b for vector modes.
19775 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
19776 Martin Jambor <mjambor@suse.cz>
19778 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
19779 struct func_body_info* instead of struct ipa_node_params*, expecting
19780 fbi->info to be filled in. Replace throughout. Adjust call to
19781 ipa_load_from_parm_agg.
19782 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
19783 instead of struct ipa_node_params*. Adjust calls to other functions
19784 so that they pass either fbi or fbi->info.
19785 (set_switch_stmt_execution_predicate): Likewise.
19786 (will_be_nonconstant_predicate): Likewise.
19787 (compute_bb_predicates): Likewise.
19788 (estimate_function_body_sizes): Move asserts earlier. Fill in
19789 struct func_body_info, replace parms_info with fbi.info. Adjust
19790 calls to functions that now accept struct func_body_info.
19791 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
19792 (struct func_body_info): Likewise.
19793 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
19794 remove static. Adjust callers.
19795 (ipa_load_from_parm_agg): Remove.
19796 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
19797 (func_body_info): Likewise.
19798 (ipa_load_from_parm_agg): Adjust prototype.
19800 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19802 * gensupport.c (rtx_handle_directive): Adjust.
19803 * read-rtl.c (apply_iterators): Take vector to add rtxs to
19804 instead of expr list rtx.
19805 (add_define_attr_for_define_subst): Likewise.
19806 (add_define_subst_attr): Likewise.
19807 (read_subst_mapping): Likewise.
19808 (read_rtx): Likewise.
19809 * rtl.h (read_rtx): Adjust.
19811 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19813 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
19815 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
19818 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
19819 (*tls_local_dynamic_base_64_<mode>): Ditto.
19820 (*tls_local_dynamic_base_64_largepic): Ditto.
19821 (tls_global_dynamic_64_<mode>): Update expander pattern.
19822 (tls_local_dynamic_base_64_<mode>): Ditto.
19824 2015-07-15 Richard Biener <rguenther@suse.de>
19826 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
19827 and bool_var == 1 -> bool_var simplifications ...
19828 * match.pd: ... to patterns here. Factor out negate_expr_p
19829 cases from the A - B -> A + (-B) patterns as negate_expr_p
19830 predicate and add a -(A + B) -> (-B) - A pattern.
19832 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
19834 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
19836 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
19837 Robert Suchanek <robert.suchanek@imgtec.com>
19839 * config/mips/mips.c (mips_int_mask): New enum.
19840 (mips_shadow_set): Likewise.
19841 (int_mask): New variable.
19842 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
19843 (machine_function): Add int_mask and use_shadow_register_set.
19844 (mips_attribute_table): Add attribute handlers for interrupt and
19845 use_shadow_register_set.
19846 (mips_interrupt_mask): New static function.
19847 (mips_handle_interrupt_attr): Likewise.
19848 (mips_handle_use_shadow_register_set_attr): Likewise.
19849 (mips_use_shadow_register_set): Change return type to enum
19850 mips_shadow_set. Add argument handling for use_shadow_register_set
19852 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
19853 compare with mips_shadow_set enum.
19854 (mips_compute_frame_info): Add interrupt mask and
19855 use_shadow_register_set to per-function information structure.
19856 Add a stack slot for EPC unconditionally.
19857 (mips_expand_prologue): Compare use_shadow_register_set value
19858 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
19859 masked interrupt register but in EIC mode use K0 and save Cause in K0.
19860 EPC saved and restored unconditionally. Use PMODE_INSN macro when
19861 copying the stack pointer from the shadow register set.
19862 * config/mips/mips.h (SR_IM0): New define.
19863 * config/mips/mips.md (mips_rdpgpr): Rename to...
19864 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
19865 * doc/extend.texi (Declaring Attributes of Functions): Document
19866 optional arguments for interrupt and use_shadow_register_set
19869 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
19871 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
19872 interrupt attribute.
19873 (mips_expand_prologue): Disable the floating point unit in an ISR.
19874 * config/mips/mips.h (SR_COP1): New define.
19876 2015-07-15 Richard Biener <rguenther@suse.de>
19878 * genmatch.c (parser::peek, parser::peek_ident): Add argument
19879 to tell how many tokens to peek ahead (default 1).
19880 (parser::eat_token, parser::eat_ident): Return token consumed.
19881 (parser::parse_result): Parse new switch statement.
19882 * match.pd: Use case statements where appropriate.
19884 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
19886 PR rtl-optimization/58066
19887 * calls.c (expand_call): Precompute register parameters before stack
19888 alignment is performed.
19890 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
19892 PR rtl-optimization/66838
19893 * postreload.c (reload_cse_move2add): Also process
19894 CALL_INSN_FUNCTION_USAGE when resetting information of
19895 call-clobbered registers.
19897 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
19898 Cesar Philippidis <cesar@codesourcery.com>
19899 Chung-Lin Tang <cltang@codesourcery.com>
19901 * config/nios2/constraints.md (U, v): New constraints.
19902 * config/nios2/predicates.md (rdprs_dcache_operand): New.
19903 (ldstex_memory_operand): New.
19904 * config/nios2/sync.md: New file.
19905 * config/nios2/nios2.md (unspecv): Add new builtin function
19907 (rdprs, flushd, flushda, wrpie, eni): New patterns.
19908 (top-level): Include sync.md.
19909 * config/nios2/nios2.c (N2_FTYPES): Add function types for
19911 (N2_BUILTINS): Add arch field setting, add new builtins.
19912 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
19914 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
19915 Also handle ldex/stex/ldsex/stsex builtins.
19916 (nios2_expand_rdprs_builtin): New function.
19917 (nios2_expand_cache_builtin): New function.
19918 (nios2_expand_wrpie_builtin): New function.
19919 (nios2_expand_eni_builtin): New function.
19920 (nios2_expand_builtin): Add arch field handling and new builtin
19922 * doc/extend.texi (Altera Nios II Built-in Functions): Document
19924 * doc/md.texi (Machine Constraints): Document U and v constraints.
19926 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
19927 Cesar Philippidis <cesar@codesourcery.com>
19928 Chung-Lin Tang <cltang@codesourcery.com>
19930 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
19931 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
19932 callee_save_reg_size and uses_anonymous_args fields.
19933 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
19934 (nios2_create_cfa_notes): New function.
19935 (nios2_adjust_stack): New function for adjusting stack.
19936 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
19937 Use nios2_adjust_stack.
19938 (nios2_expand_epilogue): Likewise.
19939 (nios2_expand_return): New function.
19940 (nios2_can_use_return_insn): Update for CDX pop.n usage.
19941 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
19942 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
19943 * config/nios2/nios2.md (return): Use nios2_expand_return.
19945 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
19946 Cesar Philippidis <cesar@codesourcery.com>
19947 Chung-Lin Tang <cltang@codesourcery.com>
19949 * config/nios2/predicates.md (pop_operation): New.
19950 (ldwm_operation, stwm_operation): New.
19951 (nios2_hard_register_operand): New.
19952 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
19953 (ldstwm_operation_p): Declare.
19954 (gen_ldstwm_peep): Declare.
19955 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
19956 (base_reg_adjustment_p): New.
19957 (pop_operation_p): New.
19958 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
19959 (nios2_ldstwm_regset_p): New.
19960 (ldstwm_operation_p): New.
19962 (nios2_ldst_parallel): New.
19963 (struct ldswm_operand): Declare.
19964 (compare_ldstwm_operands): New.
19965 (can_use_cdx_ldstw): New.
19966 (gen_ldstwm_peep): New.
19967 * config/nios2/nios2-ldstwm.sml: New.
19968 * config/nios2/nios2.md: Include ldstwm.md.
19969 * config/nios2/ldstwm.md: Generated.
19971 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
19972 Cesar Philippidis <cesar@codesourcery.com>
19973 Chung-Lin Tang <cltang@codesourcery.com>
19975 * config/nios2/nios2.h (LABEL_ALIGN): Define.
19976 (REG_ALLOC_ORDER): Define.
19977 (ADJUST_REG_ALLOC_ORDER): Define.
19978 (HONOR_REG_ALLOC_ORDER): Define.
19979 (CDX_REG_P): Define.
19980 (ANDCLEAR_INT): Define.
19981 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
19982 (nios2_label_align): Declare.
19983 (nios2_cdx_narrow_form_p): Declare.
19984 (nios2_adjust_reg_alloc_order): Declare.
19985 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
19987 (nios2_large_unspec_reloc_p): New function, split from...
19988 (nios2_legitimate_pic_operand_p): ...here.
19989 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
19990 (nios2_print_operand_punct_valid_p): New.
19991 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
19992 (split_mem_address): New.
19993 (split_alu_insn): New.
19995 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
19996 (enum nios2_add_insn_kind): New.
19997 (nios2_add_insn_names, nios2_add_insn_narrow): New.
19998 (nios2_add_insn_classify): New.
19999 (nios2_add_insn_asm): New.
20000 (nios2_cdx_narrow_form_p): New.
20001 (label_align, min_labelno, max_labelno): New.
20002 (nios2_reorg): New.
20003 (nios2_label_align): New.
20004 (nios2_adjust_reg_alloc_order): New.
20005 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
20006 (TARGET_MACHINE_DEPENDENT_REORG): Define.
20007 * config/nios2/constraints.md (P): New constraint.
20008 * config/nios2/predicates.md (const_and_operand): New.
20009 (and_operand): New.
20010 (stack_memory_operand): New.
20011 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
20012 (length): Update to use nios2_cdx_narrow_form_p().
20013 (type): Add new insn type values.
20014 (control, alu, st, ld, shift): Update insn reservations with
20015 new insn type values.
20016 (*high, *lo_sum): Define new insn patterns for constant generation.
20017 (movqi_internal, movhi_internal, movsi_internal): Reduce
20018 alternatives, update asm template to handle CDX variants, update
20020 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
20021 template, update type attributes.
20022 (extendhisi2, extendqi<mode>2): Likewise.
20023 (addsi3): Change to use function for asm string.
20024 (subsi3): Add CDX notation to asm template, update type attributes.
20025 (negsi3, one_cmplsi3): Likewise.
20026 (andsi3): New pattern, specialized from logical patterns.
20027 (<code>si3): Remove and case, combine alternatives, update asm
20029 (<shift_op>si3): Add CDX notation, update type attributes.
20030 (rotrsi3): Update type attribute.
20031 (*merge, extzv, insv): New insn patterns.
20032 (return): Change to define_expand.
20033 (simple_return): Add CDX notation, update type attributes.
20034 (indirect_jump): Add CDX notation.
20035 (jump): Update asm cases, update length attribute expression.
20036 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
20037 (nios2_cbranch): Update asm cases and length attribute expression
20038 to handle CDX variants.
20039 (nios2_cmp<code>): Update asm template.
20040 (nop): Add CDX notation, update type attributes.
20041 (trap): Add CDX notation.
20042 (ctrapsi4): Update asm cases and length attribute expression to
20043 handle CDX variant.
20044 * doc/md.texi (Machine Constraints): Document P constraint.
20046 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
20047 Cesar Philippidis <cesar@codesourcery.com>
20048 Chung-Lin Tang <cltang@codesourcery.com>
20050 * config/nios2/nios2.h (SMALL_INT12): New macro.
20051 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
20052 (nios2_valid_addr_expr_p): Use it.
20053 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
20054 with implicit "io" instructions on R2.
20055 * config/nios2/constraints.md (w): New constraint.
20056 * config/nios2/predicates.md (ldstio_memory_operand): New.
20057 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
20058 operand predicate and constraint.
20059 (ld<bh>io_signed, st<bhw>io>): Likewise.
20060 * doc/md.texi (Machine Constraints): Document w constraint.
20062 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
20063 Cesar Philippidis <cesar@codesourcery.com>
20064 Chung-Lin Tang <cltang@codesourcery.com>
20066 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
20067 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
20068 Nios II architecture level.
20069 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
20070 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
20071 (OPTION_DEFAULT_SPECS): Define.
20072 (ASM_SPEC): Add -march= spec strings.
20073 * config/nios2/nios2.c (nios2_option_override): Check for
20074 conflicts involving new options.
20075 * config.gcc (nios2*-*-*): Support --with-arch=.
20076 * doc/invoke.texi (Option Summary, Nios II Options): Document
20077 -march=, -mbmx, and -mcdx.
20079 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
20081 PR rtl-optimization/66626
20082 * lra-constraints.c (lra_constraints): Prevent equivalence
20083 substitution for static chain pseudo in functions with nonlocal
20086 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
20088 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
20089 (nios2_emit_stack_limit_check): Add size parameter. Handle
20090 -fstack-limit-symbol as well as -fstack-limit-register.
20091 (nios2_expand_prologue): Emit only a single stack limit check,
20092 even if multiple stack adjustments are required.
20093 (nios2_option_override): Diagnose unsupported combination of -fpic
20094 and -stack-limit-symbol.
20096 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
20098 * Makefile.in (top_srcdir): New.
20099 * configure.ac: Use AM_ZLIB.
20100 * configure: Regeneated.
20102 2015-07-14 Matthias Klose <doko@ubuntu.com>
20105 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
20107 2015-07-14 Richard Biener <rguenther@suse.de>
20109 PR tree-optimization/66863
20110 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
20111 what we record for conversion use stmt lhs inequalities.
20113 2015-07-14 Richard Biener <rguenther@suse.de>
20115 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
20116 (decision_tree::gen_gimple): Likewise.
20118 2015-07-14 Tom de Vries <tom@codesourcery.com>
20120 * gcc.c (greater_than_spec_func): Declare forward.
20121 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
20122 -ftree-parallelize-loops={0,1}.
20123 (static_spec_functions): Add greater_than_spec_func function with name
20125 (greater_than_spec_func): New function.
20127 2015-07-14 Richard Biener <rguenther@suse.de>
20129 * tree-ssa-dom.c (record_temporary_equivalences): Merge
20130 wideing type conversion case from record_equivalences_from_incoming_edge
20131 and use record_equality to record equivalences.
20132 (record_equivalences_from_incoming_edge): Call
20133 record_temporary_equivalences.
20135 2015-07-14 Richard Biener <rguenther@suse.de>
20137 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
20138 (struct if_expr): New.
20139 (struct with_expr): Likewise.
20140 (is_a_helper): Add helpers for if_expr and with_expr.
20141 (struct simplify): Add simplify_kind enum and member. Remove
20143 (simplify::simplify): Adjust.
20144 (lower_commutative): Adjust.
20145 (lower_opt_convert): Likewise.
20146 (lower_cond): Likewise.
20147 (replace_id): Handle with_expr and if_expr.
20148 (lower_for): Adjust.
20149 (dt_simplify::gen_1): New recursive worker, split out from ...
20150 (dt_simplify::gen): ... here. Deal with if and with expansion
20152 (capture_info::capture_info): Take context argument
20153 (capture_info::walk_result): Only analyze specific result.
20154 (parser::parse_result): New function.
20155 (parser::parse_simplify): Adjust to parse ifs with then end
20157 (parser::parse_if): Simplify.
20158 (parser::parse_pattern): Pass down simplify kind.
20159 * match.pd: Convert if structure to new syntax.
20161 2015-07-13 Marek Polacek <polacek@redhat.com>
20163 * rtl.c (rtx_equal_p_cb): Fix typo.
20165 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
20167 * omega.h: Don't include config.h, don't include params.h again if
20168 omega.h has already been included.
20169 * graphite-poly.h: Include sese.h.
20170 * graphite.c: Don't include sese.h, remove needless includes and
20171 minimize includes outside #ifdef HAVE_isl block.
20172 * graphite-blocking.c: Don't include sese.h, remove needless includes,
20173 and wrap entire file in #ifdef HAVE_isl
20174 * graphite-dependences.c: Likewise.
20175 * graphite-interchange.c: Likewise.
20176 * graphite-isl-ast-to-gimple.c: Likewise.
20177 * graphite-optimize-isl.c: Likewise.
20178 * graphite-poly.c: Likewise.
20179 * graphite-scop-detection.c: Likewise.
20180 * graphite-sese-to-poly.c: Likewise.
20182 2015-07-13 Tom de Vries <tom@codesourcery.com>
20184 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
20186 2015-07-13 Renlin Li <renlin.li@arm.com>
20189 * simplify-rtx.c (simplify_const_relational_operation): Add
20190 side_effects_p checks.
20192 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
20194 * bitmap.h: Fix double word typos.
20195 * builtins.c: Same.
20197 * cfgloopmanip.c: Same.
20200 * cgraphclones.c: Same.
20202 * config/aarch64/aarch64-protos.h: Same.
20203 * config/aarch64/aarch64.c: Same.
20204 * config/aarch64/aarch64.md: Same.
20205 * config/arm/arm.md: Same.
20206 * config/arm/arm1020e.md: Same.
20207 * config/arm/arm1026ejs.md: Same.
20208 * config/arm/arm926ejs.md: Same.
20209 * config/arm/fa526.md: Same.
20210 * config/arm/fa606te.md: Same.
20211 * config/arm/fa626te.md: Same.
20212 * config/arm/fa726te.md: Same.
20213 * config/arm/fmp626.md: Same.
20214 * config/darwin.c: Same.
20215 * config/epiphany/epiphany.c: Same.
20216 * config/frv/frv.c: Same.
20217 * config/ft32/ft32.c: Same.
20218 * config/gnu-user.h: Same.
20219 * config/h8300/constraints.md: Same.
20220 * config/i386/i386.c: Same.
20221 * config/i386/i386.md: Same.
20222 * config/iq2000/iq2000.md: Same.
20223 * config/mips/mips.c: Same.
20224 * config/mmix/mmix.md: Same.
20225 * config/moxie/moxie.c: Same.
20226 * config/nds32/nds32.md: Same.
20227 * config/pa/pa.h: Same.
20228 * config/rs6000/aix.h: Same.
20229 * config/rs6000/rs6000.h: Same.
20230 * config/sh/sh.c: Same.
20231 * config/tilegx/tilegx.md: Same.
20232 * config/tilepro/gen-mul-tables.cc: Same.
20235 * doc/invoke.texi: Same.
20237 * dwarf2out.c: Same.
20240 * genmatch.c: Same.
20241 * gimplify.c: Same.
20242 * hash-table.h: Same.
20243 * internal-fn.c: Same.
20245 * ipa-devirt.c: Same.
20248 * ipa-profile.c: Same.
20249 * ipa-prop.c: Same.
20250 * ipa-prop.h: Same.
20253 * reg-stack.c: Same.
20254 * regcprop.c: Same.
20259 * tree-inline.c: Same.
20260 * tree-sra.c: Same.
20261 * tree-ssa-dom.c: Same.
20262 * tree-ssa-loop-ivopts.c: Same.
20263 * tree-ssa-structalias.c: Same.
20264 * tree-ssa-tail-merge.c: Same.
20265 * tree-ssa-ter.c: Same.
20266 * tree-ssa-threadupdate.c: Same.
20267 * tree-ssa-uninit.c: Same.
20268 * tree-ssanames.c: Same.
20269 * tree-vect-loop-manip.c: Same.
20270 * tree-vrp.c: Same.
20272 * valtrack.c: Same.
20275 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
20277 PR middle-end/66726
20278 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
20279 tree_ssa_phiopt_worker): Call it.
20281 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
20283 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
20284 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
20287 2015-07-11 Marek Polacek <polacek@redhat.com>
20289 PR middle-end/66353
20290 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
20291 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
20292 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
20293 rather than bb_has_abnormal_call_pred.
20294 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
20295 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
20296 rather than bb_has_abnormal_call_pred.
20298 2015-07-10 Anatoly Sokolov <aesok@post.ru>
20300 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
20301 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
20302 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
20303 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
20304 v850_legitimate_address_p): New functions.
20305 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
20307 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
20310 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
20311 indirect sibcall with register arguments if register available
20312 for argument passing.
20313 (init_cumulative_args): Set cfun->machine->arg_reg_available
20314 to (cum->nregs > 0) or to true if function has a variable
20316 (function_arg_advance_32): Set cfun->machine->arg_reg_available
20317 to false if cum->nregs <= 0.
20318 * config/i386/i386.h (machine_function): Add arg_reg_available.
20320 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
20322 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
20323 and gen_higpart instead of gen_rtx_SUBREG.
20324 * config/i386/i386.md
20325 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
20326 (read-modify peephole2): Use gen_lowpart instead of
20327 gen_rtx_SUBREG for operand 5.
20329 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
20331 * config/tilepro/gen-mul-tables.cc (main): Change include list for
20333 * config/tilepro/mul-tables.c: Regenerate.
20334 * config/tilegx/mul-tables.c: Regenerate.
20336 2015-07-10 Richard Biener <rguenther@suse.de>
20338 * fold-const.c (distribute_bit_expr): Remove.
20339 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
20340 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
20341 to A & (B | C) and simplifying A << C1 << C2 to ...
20342 * match.pd: ... patterns here.
20344 2015-07-10 Jiong Wang <jiong.wang@arm.com>
20346 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
20347 Mark mem as READONLY and NOTRAP for PIC symbol.
20349 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
20351 * gimple-predict.h: New file.
20352 (gimple_predict_predictor, gimple_predict_set_predictor,
20353 gimple_predict_outcome, gimple_predict_set_outcome,
20354 gimple_build_predict): Relocate here.
20355 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
20356 gimple_predict_outcome, gimple_predict_set_outcome): Move to
20358 * gimple.c (gimple_build_predict): Move to gimple-predict.h
20359 * basic-block.h: Don't include cfghooks.h.
20360 * backend.h: Don't include predict.h.
20361 * cfghooks.h: Include predict.h.
20362 * gimple-pretty-print.c: Include gimple-predict.h.
20363 * gimplify.c: Likwise.
20364 * predict.c: Adjust includes.
20365 * tree-inline.c: Likewise.
20366 * asan.c: Likewise.
20367 * auto-inc-dec.c: Likewise.
20368 * auto-profile.c: Likewise.
20369 * bb-reorder.c: Likewise.
20370 * builtins.c: Likewise.
20371 * caller-save.c: Likewise.
20372 * calls.c: Likewise.
20373 * cfganal.c: Likewise.
20374 * cfgbuild.c: Likewise.
20376 * cfgcleanup.c: Likewise.
20377 * cfgexpand.c: Likewise.
20378 * cfghooks.c: Likewise.
20379 * cfgloopanal.c: Likewise.
20380 * cfgloop.c: Likewise.
20381 * cfgloopmanip.c: Likewise.
20382 * cfgrtl.c: Likewise.
20383 * cgraph.c: Likewise.
20384 * cgraphunit.c: Likewise.
20385 * combine.c: Likewise.
20386 * cprop.c: Likewise.
20389 * dojump.c: Likewise.
20391 * except.c: Likewise.
20392 * expmed.c: Likewise.
20393 * expr.c: Likewise.
20394 * final.c: Likewise.
20395 * fold-const.c: Likewise.
20396 * function.c: Likewise.
20397 * fwprop.c: Likewise.
20398 * gcc-plugin.h: Likewise.
20399 * gcse.c: Likewise.
20400 * genattrtab.c: Likewise.
20401 * genemit.c: Likewise.
20402 * gengtype.c: Likewise.
20403 * genopinit.c: Likewise.
20404 * genoutput.c: Likewise.
20405 * genpreds.c: Likewise.
20406 * genrecog.c: Likewise.
20407 * gimple-fold.c: Likewise.
20408 * gimple-iterator.c: Likewise.
20409 * gimple-ssa-isolate-paths.c: Likewise.
20410 * gimple-ssa-strength-reduction.c: Likewise.
20411 * graph.c: Likewise.
20412 * graphite-blocking.c: Likewise.
20413 * graphite.c: Likewise.
20414 * graphite-dependences.c: Likewise.
20415 * graphite-interchange.c: Likewise.
20416 * graphite-isl-ast-to-gimple.c: Likewise.
20417 * graphite-optimize-isl.c: Likewise.
20418 * graphite-poly.c: Likewise.
20419 * graphite-scop-detection.c: Likewise.
20420 * graphite-sese-to-poly.c: Likewise.
20421 * haifa-sched.c: Likewise.
20422 * ifcvt.c: Likewise.
20423 * internal-fn.c: Likewise.
20424 * ipa-cp.c: Likewise.
20425 * ipa-profile.c: Likewise.
20426 * ipa-split.c: Likewise.
20427 * ipa-utils.c: Likewise.
20428 * ira-build.c: Likewise.
20429 * ira-color.c: Likewise.
20430 * ira-conflicts.c: Likewise.
20431 * ira-costs.c: Likewise.
20432 * ira-emit.c: Likewise.
20433 * ira-lives.c: Likewise.
20434 * jump.c: Likewise.
20435 * loop-doloop.c: Likewise.
20436 * loop-init.c: Likewise.
20437 * loop-invariant.c: Likewise.
20438 * loop-unroll.c: Likewise.
20439 * lower-subreg.c: Likewise.
20440 * lra-assigns.c: Likewise.
20442 * lra-coalesce.c: Likewise.
20443 * lra-constraints.c: Likewise.
20444 * lra-lives.c: Likewise.
20445 * lto-cgraph.c: Likewise.
20446 * lto-streamer-in.c: Likewise.
20447 * mode-switching.c: Likewise.
20448 * modulo-sched.c: Likewise.
20449 * omp-low.c: Likewise.
20450 * optabs.c: Likewise.
20451 * passes.c: Likewise.
20452 * postreload.c: Likewise.
20453 * postreload-gcse.c: Likewise.
20454 * profile.c: Likewise.
20455 * recog.c: Likewise.
20456 * regstat.c: Likewise.
20457 * reload1.c: Likewise.
20458 * reorg.c: Likewise.
20459 * rtlanal.c: Likewise.
20460 * sched-ebb.c: Likewise.
20461 * sel-sched-ir.c: Likewise.
20462 * sese.c: Likewise.
20463 * shrink-wrap.c: Likewise.
20464 * simplify-rtx.c: Likewise.
20465 * stmt.c: Likewise.
20466 * store-motion.c: Likewise.
20467 * tracer.c: Likewise.
20468 * trans-mem.c: Likewise.
20469 * tree-call-cdce.c: Likewise.
20470 * tree-cfg.c: Likewise.
20471 * tree-cfgcleanup.c: Likewise.
20472 * tree-chkp.c: Likewise.
20473 * tree-complex.c: Likewise.
20474 * tree-eh.c: Likewise.
20475 * tree-if-conv.c: Likewise.
20476 * tree-loop-distribution.c: Likewise.
20477 * tree-outof-ssa.c: Likewise.
20478 * tree-parloops.c: Likewise.
20479 * tree-predcom.c: Likewise.
20480 * tree-pretty-print.c: Likewise.
20481 * tree-profile.c: Likewise.
20482 * tree-sra.c: Likewise.
20483 * tree-ssa.c: Likewise.
20484 * tree-ssa-coalesce.c: Likewise.
20485 * tree-ssa-dce.c: Likewise.
20486 * tree-ssa-dom.c: Likewise.
20487 * tree-ssa-forwprop.c: Likewise.
20488 * tree-ssa-ifcombine.c: Likewise.
20489 * tree-ssa-loop-ch.c: Likewise.
20490 * tree-ssa-loop-im.c: Likewise.
20491 * tree-ssa-loop-ivcanon.c: Likewise.
20492 * tree-ssa-loop-ivopts.c: Likewise.
20493 * tree-ssa-loop-manip.c: Likewise.
20494 * tree-ssa-loop-prefetch.c: Likewise.
20495 * tree-ssa-loop-unswitch.c: Likewise.
20496 * tree-ssa-math-opts.c: Likewise.
20497 * tree-ssa-phiopt.c: Likewise.
20498 * tree-ssa-pre.c: Likewise.
20499 * tree-ssa-reassoc.c: Likewise.
20500 * tree-ssa-sink.c: Likewise.
20501 * tree-ssa-tail-merge.c: Likewise.
20502 * tree-ssa-threadedge.c: Likewise.
20503 * tree-ssa-threadupdate.c: Likewise.
20504 * tree-switch-conversion.c: Likewise.
20505 * tree-tailcall.c: Likewise.
20506 * tree-vect-data-refs.c: Likewise.
20507 * tree-vect-loop.c: Likewise.
20508 * tree-vect-loop-manip.c: Likewise.
20509 * tree-vectorizer.c: Likewise.
20510 * tree-vrp.c: Likewise.
20511 * ubsan.c: Likewise.
20512 * value-prof.c: Likewise.
20513 * varasm.c: Likewise.
20514 * var-tracking.c: Likewise.
20515 * config/aarch64/aarch64-builtins.c: Likewise.
20516 * config/aarch64/aarch64.c: Likewise.
20517 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
20518 * config/alpha/alpha.c: Likewise.
20519 * config/arc/arc.c: Likewise.
20520 * config/arm/arm.c: Likewise.
20521 * config/avr/avr.c: Likewise.
20522 * config/bfin/bfin.c: Likewise.
20523 * config/c6x/c6x.c: Likewise.
20524 * config/cr16/cr16.c: Likewise.
20525 * config/cris/cris.c: Likewise.
20526 * config/darwin.c: Likewise.
20527 * config/darwin-c.c: Likewise.
20528 * config/epiphany/epiphany.c: Likewise.
20529 * config/epiphany/mode-switch-use.c: Likewise.
20530 * config/epiphany/resolve-sw-modes.c: Likewise.
20531 * config/fr30/fr30.c: Likewise.
20532 * config/frv/frv.c: Likewise.
20533 * config/ft32/ft32.c: Likewise.
20534 * config/h8300/h8300.c: Likewise.
20535 * config/i386/i386.c: Likewise.
20536 * config/i386/winnt.c: Likewise.
20537 * config/ia64/ia64.c: Likewise.
20538 * config/iq2000/iq2000.c: Likewise.
20539 * config/lm32/lm32.c: Likewise.
20540 * config/m32c/m32c.c: Likewise.
20541 * config/m32r/m32r.c: Likewise.
20542 * config/m68k/m68k.c: Likewise.
20543 * config/mcore/mcore.c: Likewise.
20544 * config/mep/mep.c: Likewise.
20545 * config/microblaze/microblaze.c: Likewise.
20546 * config/mips/mips.c: Likewise.
20547 * config/mmix/mmix.c: Likewise.
20548 * config/mn10300/mn10300.c: Likewise.
20549 * config/moxie/moxie.c: Likewise.
20550 * config/msp430/msp430.c: Likewise.
20551 * config/nds32/nds32.c: Likewise.
20552 * config/nds32/nds32-cost.c: Likewise.
20553 * config/nds32/nds32-fp-as-gp.c: Likewise.
20554 * config/nds32/nds32-intrinsic.c: Likewise.
20555 * config/nds32/nds32-isr.c: Likewise.
20556 * config/nds32/nds32-md-auxiliary.c: Likewise.
20557 * config/nds32/nds32-memory-manipulation.c: Likewise.
20558 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
20559 * config/nds32/nds32-predicates.c: Likewise.
20560 * config/nios2/nios2.c: Likewise.
20561 * config/nvptx/nvptx.c: Likewise.
20562 * config/pa/pa.c: Likewise.
20563 * config/pdp11/pdp11.c: Likewise.
20564 * config/rl78/rl78.c: Likewise.
20565 * config/rs6000/rs6000.c: Likewise.
20566 * config/rx/rx.c: Likewise.
20567 * config/s390/s390.c: Likewise.
20568 * config/sh/sh.c: Likewise.
20569 * config/sh/sh-mem.cc: Likewise.
20570 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
20571 * config/sh/sh_treg_combine.cc: Likewise.
20572 * config/sparc/sparc.c: Likewise.
20573 * config/spu/spu.c: Likewise.
20574 * config/stormy16/stormy16.c: Likewise.
20575 * config/tilegx/tilegx.c: Likewise.
20576 * config/tilepro/tilepro.c: Likewise.
20577 * config/v850/v850.c: Likewise.
20578 * config/vax/vax.c: Likewise.
20579 * config/visium/visium.c: Likewise.
20580 * config/xtensa/xtensa.c: Likewise.
20582 2015-07-10 Richard Biener <rguenther@suse.de>
20584 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
20585 (decision_tree::gen_gimple): Likewise.
20586 (decision_tree::gen_generic): Likewise.
20588 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
20591 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
20592 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
20594 2015-07-10 Jakub Jelinek <jakub@redhat.com>
20596 PR middle-end/66820
20597 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
20598 or ORT_TASK contexts.
20599 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
20602 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20604 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
20607 2015-07-10 Tom de Vries <tom@codesourcery.com>
20609 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
20610 insert nit + 1 bound.
20612 2015-07-10 Richard Biener <rguenther@suse.de>
20614 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
20615 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
20616 (if_convertible_loop_p_1): For this always compute bb predicates.
20617 (if_convertible_loop_p): And free them.
20619 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20621 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
20624 2015-07-10 Richard Biener <rguenther@suse.de>
20626 PR tree-optimization/66823
20627 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
20628 inverted predicate.
20630 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
20632 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
20633 to handle mips[32|64]r3 and mips[32|64]r5.
20635 2015-07-09 Jakub Jelinek <jakub@redhat.com>
20637 PR middle-end/66633
20638 * tree-nested.c (get_static_chain): Or in a flag into
20639 info->static_chain_added.
20640 (get_frame_field, get_nonlocal_debug_decl): Likewise.
20641 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
20642 2015-07-01 changes.
20643 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
20644 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
20647 PR tree-optimization/66718
20648 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
20650 (vect_simd_lane_linear): New function.
20651 (vectorizable_simd_clone_call): Support using linear arguments for
20652 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
20654 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
20657 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
20659 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
20661 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
20662 Use machine mode, not enum machine_mode in the prototype.
20664 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
20665 classify 128-bit floating point support.
20666 (FLOAT128_IBM_P): Likewise.
20667 (FLOAT128_VECTOR_P): Likewise.
20668 (FLOAT128_2REG_P): Likewise.
20669 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
20670 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
20671 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
20672 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
20674 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
20675 tests against TFmode/TDmode, since those modes do not use VSX
20677 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
20679 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
20680 tests against TFmode, etc.
20681 (invalid_e500_subreg): Add tests against IFmode/KFmode.
20682 (reg_offset_addressing_ok_p): Likewise.
20683 (rs6000_legitimate_offset_address_p): Likewise.
20684 (rs6000_legitimize_address): Likewise.
20685 (rs6000_legitimize_reload_address): Likewise.
20686 (rs6000_legitimate_address_p): Clean up tests against TFmode and
20687 TDmode to use the new helper macros, which will include IFmode and
20689 (rs6000_emit_move): Likewise.
20690 (rs6000_darwin64_record_arg_recurse): Likewise.
20691 (print_operand): Likewise.
20692 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
20693 that uses a single vector register as a vector and not as a
20694 floating point register in terms of the calling sequence.
20695 (rs6000_discover_homogeneous_aggregate): Likewise.
20696 (rs6000_return_in_memory): Likewise.
20697 (init_cumulative_args): Likewise.
20698 (rs6000_function_arg_boundary): Likewise.
20699 (rs6000_function_arg_advance_1): Likewise.
20700 (rs6000_function_arg): Likewise.
20701 (rs6000_pass_by_reference): Likewise.
20702 (rs6000_gimplify_va_arg): Likewise.
20703 (rs6000_secondary_reload_memory): Use machine_mode not enum
20705 (rs6000_split_multireg_move): Use new helper macros.
20706 (spe_func_has_64bit_regs_p): Likewise.
20707 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
20708 (output_toc): Use new helper macros.
20709 (rs6000_register_move_cost): Likewise.
20710 (rs6000_function_value): Add IEEE 128-bit floating point calling
20712 (rs6000_libcall_value): Likewise.
20713 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
20714 floating point support.
20715 (rs6000_vector_mode_supported_p): Likewise.
20717 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
20719 PR rtl-optimization/66782
20720 * lra-int.h (struct lra_insn_recog_data): Add comment about
20721 clobbered hard regs for arg_hard_regs.
20722 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
20723 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
20724 Add condition for processing used hard regs.
20725 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
20726 Process clobbered hard regs.
20728 2015-07-09 Michael Matz <matz@suse.de>
20730 * genmatch.c (fprintf_indent): New function.
20731 (operand::gen_transform): Add indent parameter.
20732 (expr::gen_transform, c_expr::gen_transform,
20733 capture::gen_transform): Ditto and use fprintf_indent.
20734 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
20735 (dt_operand::gen, dt_operand::gen_predicate,
20736 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
20737 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
20738 (decision_tree::gen_gimple): Adjust calls and indent generated
20740 (decision_tree::gen_generic): Ditto.
20741 (write_predicate): Ditto.
20743 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
20746 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
20747 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
20748 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
20749 {GENERAL,SSE,MMX}_REG_P where appropriate.
20751 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
20753 * lto-streamer.h: Don't include target.h and alloc-pool.h.
20754 * builtins.c: Adjust includes.
20755 * gimple.c: Likewise.
20756 * ipa-icf.c: Likewise.
20757 * lto-opts.c: Likewise.
20758 * ipa-reference.c: Likewise.
20759 * lto-section-out.c: Likewise.
20760 * lto-streamer-in.c: Likewise.
20761 * lto-streamer-out.c: Likewise.
20762 * opts-global.c: Likewise.
20763 * symtab.c: Likewise.
20764 * tree-chkp.c: Likewise.
20765 * tree-ssa-live.c: Likewise.
20766 * tree-streamer-in.c: Likewise.
20767 * tree-streamer-out.c: Likewise.
20768 * config/darwin.c: Likewise.
20769 * config/i386/winnt.c: Likewise.
20771 2015-07-09 Richard Biener <rguenther@suse.de>
20773 * genmatch.c (struct expr): Add force_single_use flag.
20774 (expr::expr): Add copy constructor.
20775 (capture_info::walk_match): Gather force_single_use captures.
20776 (expr::gen_transform): Use possibly NULLified sequence.
20777 (dt_simplify::gen): Apply single-use restrictions by NULLifying
20778 seq if any constrained expr is not single-use.
20779 (parser::parse_expr): Refactor to allow multiple flags. Handle
20780 's' flag to force an expression have a single-use if the pattern
20781 simplifies to more than one statement.
20782 * match.pd: Convert most single_use conditionals to :s flags.
20784 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
20786 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
20787 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
20788 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
20790 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
20792 * flags.h: Don't include flag-types.h or options.h.
20793 * opts-common.c: Adjust includes.
20794 * opts-global.c: Likewise.
20795 * common/config/epiphany/epiphany-common.c: Likewise.
20797 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
20800 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
20803 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
20806 * config/i386/i386.c (ix86_return_in_memory): Return true
20807 if int_size_in_bytes returns negative for IA MCU.
20809 2015-07-09 Marek Polacek <polacek@redhat.com>
20811 PR tree-optimization/66718
20812 * Makefile.in (OBJS): Add gimple-laddress.o.
20813 * passes.def: Schedule pass_laddress.
20814 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
20815 * tree-pass.h (make_pass_laddress): Declare.
20816 * gimple-laddress.c: New file.
20818 2015-07-09 Richard Biener <rguenther@suse.de>
20820 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
20822 2015-07-09 Richard Biener <rguenther@suse.de>
20824 PR tree-optimization/66807
20825 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
20827 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
20829 * function.c (stack_protect_epilogue): Use if rather than switch for
20830 check targetm.have_stack_protect_test.
20832 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20834 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
20835 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
20836 * config/arc/arc.h: Likewise.
20837 * config/arm/arm.h: Likewise.
20838 * config/bfin/bfin.h: Likewise.
20839 * config/epiphany/epiphany.h: Likewise.
20840 * config/frv/frv.h: Likewise.
20841 * config/ia64/ia64.h: Likewise.
20842 * config/iq2000/iq2000.h: Likewise.
20843 * config/lm32/lm32.h: Likewise.
20844 * config/m32r/m32r.h: Likewise.
20845 * config/mcore/mcore.h: Likewise.
20846 * config/mep/mep.h: Likewise.
20847 * config/microblaze/microblaze.h: Likewise.
20848 * config/mips/mips.h: Likewise.
20849 * config/mmix/mmix.h: Likewise.
20850 * config/mn10300/mn10300.h: Likewise.
20851 * config/nds32/nds32.h: Likewise.
20852 * config/nios2/nios2.h: Likewise.
20853 * config/pa/pa.h: Likewise.
20854 * config/rl78/rl78.h: Likewise.
20855 * config/sh/sh.h: Likewise.
20856 * config/sparc/sparc.h: Likewise.
20857 * config/stormy16/stormy16.h: Likewise.
20858 * config/tilegx/tilegx.h: Likewise.
20859 * config/tilepro/tilepro.h: Likewise.
20860 * config/v850/v850.h: Likewise.
20861 * config/xtensa/xtensa.h: Likewise.
20862 * doc/tm.texi: Regenerate.
20863 * doc/tm.texi.in: Adjust.
20864 * combine.c (simplify_set): Likewise.
20865 (simplify_comparison): Likewise.
20866 * expr.c (store_constructor): Likewise.
20867 * internal-fn.c (expand_arith_overflow): Likewise.
20868 * reload.c (push_reload): Likewise.
20869 (find_reloads): Likewise.
20870 (find_reloads_subreg_address): Likewise.
20871 * reload1.c (eliminate_regs_1): Likewise.
20872 * rtlanal.c (nonzero_bits1): Likewise.
20873 (num_sign_bit_copies1): Likewise.
20874 * simplify-rtx.c (simplify_truncation): Likewise.
20876 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20878 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
20879 of AUTO_INC_DEC with the preprocessor.
20880 * combine.c (combine_instructions): Likewise.
20881 (can_combine_p): Likewise.
20882 (try_combine): Likewise.
20883 * emit-rtl.c (try_split): Likewise.
20884 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
20885 * lower-subreg.c (resolve_simple_move): Likewise.
20886 * lra.c (update_inc_notes): Likewise.
20887 * recog.c (asm_operand_ok): Likewise.
20888 (constrain_operands): Likewise.
20889 * regrename.c (scan_rtx_address): Likewise.
20890 * reload.c (update_auto_inc_notes): Likewise.
20891 (reg_inc_found_and_valid_p): Likewise.
20892 * reload1.c (reload): Likewise.
20893 (emit_input_reload_insns): Likewise.
20894 (delete_output_reload): Likewise.
20895 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
20896 * valtrack.c (cleanup_auto_inc_dec): Likewise.
20898 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20900 * rtl.h: Always define AUTO_INC_DEC.
20901 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
20902 * combine.c (combine_instructions): Likewise.
20903 (can_combine_p): Likewise.
20904 (try_combine): Likewise.
20905 * emit-rtl.c (try_split): Likewise.
20906 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
20907 * lower-subreg.c (resolve_simple_move): Likewise.
20908 * lra.c (update_inc_notes): Likewise.
20909 * recog.c (asm_operand_ok): Likewise.
20910 (constrain_operands): Likewise.
20911 * regrename.c (scan_rtx_address): Likewise.
20912 * reload.c (update_auto_inc_notes): Likewise.
20913 (find_equiv_reg): Likewise.
20914 * reload1.c (reload): Likewise.
20915 (reload_as_needed): Likewise.
20916 (choose_reload_regs): Likewise.
20917 (emit_input_reload_insns): Likewise.
20918 (delete_output_reload): Likewise.
20919 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
20920 * valtrack.c (cleanup_auto_inc_dec): Likewise.
20922 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20924 * combine.c (can_combine_def_p): Don't check the value of
20925 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
20926 (combinable_i3pat): Likewise.
20927 (mark_used_regs_combine): Likewise.
20928 * regrename.c (rename_chains): Likewise.
20929 * reload.c (find_reloads_address): Likewise.
20930 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
20932 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20934 * combine.c (update_rsp_from_reg_equal): Don't check if
20935 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
20936 (reg_nonzero_bits_for_combine): Likewise.
20937 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
20939 * config/frv/frv.h: Likewise.
20940 * config/lm32/lm32.h: Likewise.
20941 * config/mep/mep.h: Likewise.
20942 * config/mips/mips.h: Likewise.
20943 * config/rs6000/rs6000.h: Likewise.
20944 * config/sh/sh.h: Likewise.
20945 * config/tilegx/tilegx.h (enum reg_class): Likewise.
20946 * config/tilepro/tilepro.h: Likewise.
20947 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
20948 * doc/tm.texi: Regenerate.
20949 * doc/tm.texi.in: Adjust.
20950 * rtlanal.c (nonzero_bits1): Likewise.
20952 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20954 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
20955 with the preprocessor.
20956 (combine_instructions): Likewise.
20957 (try_combine): Likewise.
20959 (distribute_notes): Likewise.
20961 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20963 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
20965 (simplify_set): Likewise.
20966 * cse.c (cse_insn): Likewise.
20967 * fold-const.c (fold_single_bit_test): Likewise.
20968 (fold_unary_loc): Likewise.
20969 * postreload.c (reload_cse_simplify_set): Likewise.
20970 (reload_cse_simplify_operands): Likewise.
20972 2015-07-08 Jiong Wang <jiong.wang@arm.com>
20974 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
20975 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
20977 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
20980 * config/i386/x86intrin.h: Include <adxintrin.h> even if
20981 __iamcu__ is defined.
20983 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
20985 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
20987 2015-07-08 Iain Sandoe <iain@codesourcery.com>
20990 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
20991 names from preservation.
20993 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
20996 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
20998 (function_arg_advance_32): Don't pass vectors in registers for
21000 (function_arg_32): Likewise.
21001 (ix86_return_in_memory): Don't return vectors in registers for
21004 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
21006 PR middle-end/66334
21007 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
21008 hard regno live at the start of BB with incoming abnormal edges.
21009 * lra-lives.c (process_bb_lives): Ditto.
21011 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
21014 * config/nvptx/mkoffload.c (main): Create an offload image only in
21015 64-bit configurations.
21017 2015-07-08 Martin Liska <mliska@suse.cz>
21020 * tree-sra.c (create_access_1): Call ctor without brackets.
21021 (create_artificial_child_access): Likewise.
21023 2015-07-08 Richard Biener <rguenther@suse.de>
21025 PR tree-optimization/66793
21026 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
21027 Properly split the block after stmts ending it.
21029 2015-07-08 Richard Biener <rguenther@suse.de>
21031 PR tree-optimization/66794
21032 * passes.c (execute_function_todo): Assert that post-dominators
21034 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
21035 Free post-dominators.
21037 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21039 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
21042 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
21044 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
21045 more than or equal 8 and less than 32 when optimizing for size.
21047 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21049 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
21050 COSTS_N_INSNS (1) and increment it appropriately throughout the
21053 2015-07-08 Richard Biener <rguenther@suse.de>
21055 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
21057 2015-07-08 Alan Modra <amodra@gmail.com>
21059 * target.def (rtx_costs): Remove "code" param, add "mode".
21060 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
21061 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
21062 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
21063 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
21064 call. Track mode when given in rtx.
21065 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
21066 (default_address_cost): Pass Pmode to rtx_cost.
21067 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
21068 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
21070 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
21071 (notreg_cost): Add mode param. Use it.
21072 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
21073 mode param and pass to set_src_cost. Update all calls.
21074 (hash_scan_set): Formatting.
21075 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
21076 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
21078 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
21079 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
21080 emit_store_flag): Update set_src_cost and rtx_cost calls.
21081 * auto-inc-dec.c (attempt_change): Likewise.
21082 * calls.c (precompute_register_parameters): Likewise.
21083 * combine.c (expand_compound_operation, make_extraction,
21084 force_to_mode, distribute_and_simplify_rtx): Likewise.
21085 * dojump.c (prefer_and_bit_test): Likewise.
21086 * dse.c (find_shift_sequence): Likewise.
21087 * expr.c (compress_float_constant): Likewise.
21088 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
21089 * ifcvt.c (noce_try_sign_mask): Likewise.
21090 * loop-doloop.c (doloop_optimize): Likewise.
21091 * loop-invariant.c (create_new_invariant): Likewise.
21092 * lower-subreg.c (shift_cost, compute_costs): Likewise.
21093 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
21094 lshift_cheap_p): Likewise.
21095 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
21096 try_replace_in_use, reload_cse_move2add): Likewise.
21097 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
21099 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
21100 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
21101 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
21102 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
21103 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
21104 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
21106 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
21107 * config/arc/arc.c (arc_rtx_costs): Likewise.
21108 * config/arm/arm.c (arm_rtx_costs): Likewise.
21109 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
21110 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
21111 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
21112 * config/cris/cris.c (cris_rtx_costs): Likewise.
21113 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
21114 * config/frv/frv.c (frv_rtx_costs): Likewise.
21115 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
21116 * config/i386/i386.c (ix86_rtx_costs): Likewise.
21117 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
21118 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
21119 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
21120 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
21121 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
21122 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
21123 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
21124 * config/mep/mep.c (mep_rtx_cost): Likewise.
21125 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
21126 * config/mips/mips.c (mips_rtx_costs): Likewise.
21127 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
21128 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
21129 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
21130 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
21131 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
21132 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
21133 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
21134 * config/pa/pa.c (hppa_rtx_costs): Likewise.
21135 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
21136 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
21137 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
21138 * config/s390/s390.c (s390_rtx_costs): Likewise.
21139 * config/sh/sh.c (sh_rtx_costs): Likewise.
21140 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
21141 * config/spu/spu.c (spu_rtx_costs): Likewise.
21142 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
21143 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
21144 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
21145 * config/v850/v850.c (v850_rtx_costs): Likewise.
21146 * config/vax/vax.c (vax_rtx_costs): Likewise.
21147 * config/visium/visium.c (visium_rtx_costs): Likewise.
21148 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
21149 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
21150 "code" param, and pass as outer_code to first rtx_cost call. Pass
21151 mode to rtx_cost calls.
21152 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
21154 (aarch64_rtx_costs_wrapper): Update.
21155 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
21156 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
21158 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
21159 and rtx_cost calls.
21160 (avr_operand_rtx_cost): Similarly.
21161 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
21162 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
21163 * config/mips/mips.c (mips_stack_address_p): Comment typo.
21164 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
21165 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
21166 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
21168 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
21169 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
21170 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
21171 * doc/tm.texi: Regenerate.
21173 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
21175 * tree-core.h: Include symtab.h.
21176 * rtl.h: Include hard-reg-set.h but not flags.h.
21177 (HARD_CONST): Remove condition compilation involving HARD_CONST since
21178 hard-reg-set.h is always included.
21179 * regs.h: Don't include hard-reg-set.h or rtl.h.
21180 * cfg.h: Include dominance.h.
21181 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
21182 * backend.h: New. Aggregate commonly used backend header files.
21183 * gimple-ssa.h: Don't include tree-hasher.h.
21184 * ssa.h: New. Aggregate commonly used SSA header files.
21185 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
21186 * sel-sched-ir.h: Flatten includes.
21187 * lra-int.h: Flatten completely.
21188 * sel-sched-dump.h: Flatten includes.
21189 * ira-int.h: Flatten includes.
21190 * gimple-streamer.h: Remove all includes.
21191 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
21192 * resource.h: Flatten hard-reg-set.h and df.h.
21193 * sched-int.h: Flatten insn-arrt.h and df.h.
21194 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
21195 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
21196 * genattrtab.c (write_header): Adjust generated includes.
21197 * genautomata.c (main): Likewise.
21198 * genconditions.c (write-header): Likewise.
21199 * genemit.c (main): Likewise.
21200 * gengtype.c (open_base_files): Likewise.
21201 * genopinit.c (main): Likewise.
21202 * genoutput.c (output_prologue): Likewise.
21203 * genpeep.c (main): Likewise.
21204 * genpreds.c (write_insn_preds_c): Likewise.
21205 * genrecog.c (write_header): Likewise.
21206 * alias.c: Adjust includes.
21207 * asan.c: Likewise.
21208 * attribs.c: Likewise.
21209 * auto-inc-dec.c: Likewise.
21210 * auto-profile.c: Likewise.
21211 * bb-reorder.c: Likewise.
21212 * bt-load.c: Likewise.
21213 * builtins.c: Likewise.
21214 * caller-save.c: Likewise.
21215 * calls.c: Likewise.
21216 * ccmp.c: Likewise.
21218 * cfganal.c: Likewise.
21219 * cfgbuild.c: Likewise.
21220 * cfgcleanup.c: Likewise.
21221 * cfgexpand.c: Likewise.
21222 * cfghooks.c: Likewise.
21223 * cfgloop.c: Likewise.
21224 * cfgloopanal.c: Likewise.
21225 * cfgloopmanip.c: Likewise.
21226 * cfgrtl.c: Likewise.
21227 * cgraph.c: Likewise.
21228 * cgraphbuild.c: Likewise.
21229 * cgraphclones.c: Likewise.
21230 * cgraphunit.c: Likewise.
21231 * cilk-common.c: Likewise.
21232 * combine-stack-adj.c: Likewise.
21233 * combine.c: Likewise.
21234 * compare-elim.c: Likewise.
21235 * convert.c: Likewise.
21236 * coverage.c: Likewise.
21237 * cppbuiltin.c: Likewise.
21238 * cprop.c: Likewise.
21240 * cselib.c: Likewise.
21241 * data-streamer-in.c: Likewise.
21242 * data-streamer-out.c: Likewise.
21243 * data-streamer.c: Likewise.
21244 * dbxout.c: Likewise.
21247 * debug.c: Likewise.
21248 * df-core.c: Likewise.
21249 * df-problems.c: Likewise.
21250 * df-scan.c: Likewise.
21252 * dojump.c: Likewise.
21253 * dominance.c: Likewise.
21254 * domwalk.c: Likewise.
21255 * double-int.c: Likewise.
21257 * dumpfile.c: Likewise.
21258 * dwarf2asm.c: Likewise.
21259 * dwarf2cfi.c: Likewise.
21260 * dwarf2out.c: Likewise.
21261 * emit-rtl.c: Likewise.
21262 * et-forest.c: Likewise.
21263 * except.c: Likewise.
21264 * explow.c: Likewise.
21265 * expmed.c: Likewise.
21266 * expr.c: Likewise.
21267 * final.c: Likewise.
21268 * fixed-value.c: Likewise.
21269 * fold-const.c: Likewise.
21270 * function.c: Likewise.
21271 * fwprop.c: Likewise.
21272 * gcc-plugin.h: Likewise.
21273 * gcse-common.c: Likewise.
21274 * gcse.c: Likewise.
21275 * generic-match-head.c: Likewise.
21276 * ggc-page.c: Likewise.
21277 * gimple-builder.c: Likewise.
21278 * gimple-expr.c: Likewise.
21279 * gimple-fold.c: Likewise.
21280 * gimple-iterator.c: Likewise.
21281 * gimple-low.c: Likewise.
21282 * gimple-match-head.c: Likewise.
21283 * gimple-pretty-print.c: Likewise.
21284 * gimple-ssa-isolate-paths.c: Likewise.
21285 * gimple-ssa-strength-reduction.c: Likewise.
21286 * gimple-streamer-in.c: Likewise.
21287 * gimple-streamer-out.c: Likewise.
21288 * gimple-walk.c: Likewise.
21289 * gimple.c: Likewise.
21290 * gimplify-me.c: Likewise.
21291 * gimplify.c: Likewise.
21292 * godump.c: Likewise.
21293 * graph.c: Likewise.
21294 * graphite-blocking.c: Likewise.
21295 * graphite-dependences.c: Likewise.
21296 * graphite-interchange.c: Likewise.
21297 * graphite-isl-ast-to-gimple.c: Likewise.
21298 * graphite-optimize-isl.c: Likewise.
21299 * graphite-poly.c: Likewise.
21300 * graphite-scop-detection.c: Likewise.
21301 * graphite-sese-to-poly.c: Likewise.
21302 * graphite.c: Likewise.
21303 * haifa-sched.c: Likewise.
21304 * hw-doloop.c: Likewise.
21305 * ifcvt.c: Likewise.
21306 * init-regs.c: Likewise.
21307 * internal-fn.c: Likewise.
21308 * ipa-chkp.c: Likewise.
21309 * ipa-comdats.c: Likewise.
21310 * ipa-cp.c: Likewise.
21311 * ipa-devirt.c: Likewise.
21312 * ipa-icf-gimple.c: Likewise.
21313 * ipa-icf.c: Likewise.
21314 * ipa-inline-analysis.c: Likewise.
21315 * ipa-inline-transform.c: Likewise.
21316 * ipa-inline.c: Likewise.
21317 * ipa-polymorphic-call.c: Likewise.
21318 * ipa-profile.c: Likewise.
21319 * ipa-prop.c: Likewise.
21320 * ipa-pure-const.c: Likewise.
21321 * ipa-ref.c: Likewise.
21322 * ipa-reference.c: Likewise.
21323 * ipa-split.c: Likewise.
21324 * ipa-utils.c: Likewise.
21325 * ipa-visibility.c: Likewise.
21327 * ira-build.c: Likewise.
21328 * ira-color.c: Likewise.
21329 * ira-conflicts.c: Likewise.
21330 * ira-costs.c: Likewise.
21331 * ira-emit.c: Likewise.
21332 * ira-lives.c: Likewise.
21334 * jump.c: Likewise.
21335 * langhooks.c: Likewise.
21337 * loop-doloop.c: Likewise.
21338 * loop-init.c: Likewise.
21339 * loop-invariant.c: Likewise.
21340 * loop-iv.c: Likewise.
21341 * loop-unroll.c: Likewise.
21342 * lower-subreg.c: Likewise.
21343 * lra-assigns.c: Likewise.
21344 * lra-coalesce.c: Likewise.
21345 * lra-constraints.c: Likewise.
21346 * lra-eliminations.c: Likewise.
21347 * lra-lives.c: Likewise.
21348 * lra-remat.c: Likewise.
21349 * lra-spills.c: Likewise.
21351 * lto-cgraph.c: Likewise.
21352 * lto-compress.c: Likewise.
21353 * lto-opts.c: Likewise.
21354 * lto-section-in.c: Likewise.
21355 * lto-section-out.c: Likewise.
21356 * lto-streamer-in.c: Likewise.
21357 * lto-streamer-out.c: Likewise.
21358 * lto-streamer.c: Likewise.
21360 * mode-switching.c: Likewise.
21361 * modulo-sched.c: Likewise.
21362 * omega.c: Likewise.
21363 * omp-low.c: Likewise.
21364 * optabs.c: Likewise.
21365 * opts-global.c: Likewise.
21366 * passes.c: Likewise.
21367 * plugin.c: Likewise.
21368 * postreload-gcse.c: Likewise.
21369 * postreload.c: Likewise.
21370 * predict.c: Likewise.
21371 * print-rtl.c: Likewise.
21372 * print-tree.c: Likewise.
21373 * profile.c: Likewise.
21374 * real.c: Likewise.
21375 * realmpfr.c: Likewise.
21376 * recog.c: Likewise.
21378 * reg-stack.c: Likewise.
21379 * regcprop.c: Likewise.
21380 * reginfo.c: Likewise.
21381 * regrename.c: Likewise.
21382 * regstat.c: Likewise.
21383 * reload.c: Likewise.
21384 * reload1.c: Likewise.
21385 * reorg.c: Likewise.
21386 * resource.c: Likewise.
21387 * rtl-chkp.c: Likewise.
21388 * rtlanal.c: Likewise.
21389 * rtlhooks.c: Likewise.
21390 * sanopt.c: Likewise.
21391 * sched-deps.c: Likewise.
21392 * sched-ebb.c: Likewise.
21393 * sched-rgn.c: Likewise.
21394 * sched-vis.c: Likewise.
21395 * sdbout.c: Likewise.
21396 * sel-sched-dump.c: Likewise.
21397 * sel-sched-ir.c: Likewise.
21398 * sel-sched.c: Likewise.
21399 * sese.c: Likewise.
21400 * shrink-wrap.c: Likewise.
21401 * simplify-rtx.c: Likewise.
21402 * stack-ptr-mod.c: Likewise.
21403 * stmt.c: Likewise.
21404 * stor-layout.c: Likewise.
21405 * store-motion.c: Likewise.
21406 * stringpool.c: Likewise.
21407 * symtab.c: Likewise.
21408 * target-globals.c: Likewise.
21409 * targhooks.c: Likewise.
21410 * toplev.c: Likewise.
21411 * tracer.c: Likewise.
21412 * trans-mem.c: Likewise.
21413 * tree-affine.c: Likewise.
21414 * tree-browser.c: Likewise.
21415 * tree-call-cdce.c: Likewise.
21416 * tree-cfg.c: Likewise.
21417 * tree-cfgcleanup.c: Likewise.
21418 * tree-chkp-opt.c: Likewise.
21419 * tree-chkp.c: Likewise.
21420 * tree-chrec.c: Likewise.
21421 * tree-complex.c: Likewise.
21422 * tree-data-ref.c: Likewise.
21423 * tree-dfa.c: Likewise.
21424 * tree-diagnostic.c: Likewise.
21425 * tree-dump.c: Likewise.
21426 * tree-eh.c: Likewise.
21427 * tree-emutls.c: Likewise.
21428 * tree-if-conv.c: Likewise.
21429 * tree-inline.c: Likewise.
21430 * tree-into-ssa.c: Likewise.
21431 * tree-iterator.c: Likewise.
21432 * tree-loop-distribution.c: Likewise.
21433 * tree-nested.c: Likewise.
21434 * tree-nrv.c: Likewise.
21435 * tree-object-size.c: Likewise.
21436 * tree-outof-ssa.c: Likewise.
21437 * tree-parloops.c: Likewise.
21438 * tree-phinodes.c: Likewise.
21439 * tree-predcom.c: Likewise.
21440 * tree-pretty-print.c: Likewise.
21441 * tree-profile.c: Likewise.
21442 * tree-scalar-evolution.c: Likewise.
21443 * tree-sra.c: Likewise.
21444 * tree-ssa-address.c: Likewise.
21445 * tree-ssa-alias.c: Likewise.
21446 * tree-ssa-ccp.c: Likewise.
21447 * tree-ssa-coalesce.c: Likewise.
21448 * tree-ssa-copy.c: Likewise.
21449 * tree-ssa-copyrename.c: Likewise.
21450 * tree-ssa-dce.c: Likewise.
21451 * tree-ssa-dom.c: Likewise.
21452 * tree-ssa-dse.c: Likewise.
21453 * tree-ssa-forwprop.c: Likewise.
21454 * tree-ssa-ifcombine.c: Likewise.
21455 * tree-ssa-live.c: Likewise.
21456 * tree-ssa-loop-ch.c: Likewise.
21457 * tree-ssa-loop-im.c: Likewise.
21458 * tree-ssa-loop-ivcanon.c: Likewise.
21459 * tree-ssa-loop-ivopts.c: Likewise.
21460 * tree-ssa-loop-manip.c: Likewise.
21461 * tree-ssa-loop-niter.c: Likewise.
21462 * tree-ssa-loop-prefetch.c: Likewise.
21463 * tree-ssa-loop-unswitch.c: Likewise.
21464 * tree-ssa-loop.c: Likewise.
21465 * tree-ssa-math-opts.c: Likewise.
21466 * tree-ssa-operands.c: Likewise.
21467 * tree-ssa-phiopt.c: Likewise.
21468 * tree-ssa-phiprop.c: Likewise.
21469 * tree-ssa-pre.c: Likewise.
21470 * tree-ssa-propagate.c: Likewise.
21471 * tree-ssa-reassoc.c: Likewise.
21472 * tree-ssa-sccvn.c: Likewise.
21473 * tree-ssa-scopedtables.c: Likewise.
21474 * tree-ssa-sink.c: Likewise.
21475 * tree-ssa-strlen.c: Likewise.
21476 * tree-ssa-structalias.c: Likewise.
21477 * tree-ssa-tail-merge.c: Likewise.
21478 * tree-ssa-ter.c: Likewise.
21479 * tree-ssa-threadedge.c: Likewise.
21480 * tree-ssa-threadupdate.c: Likewise.
21481 * tree-ssa-uncprop.c: Likewise.
21482 * tree-ssa-uninit.c: Likewise.
21483 * tree-ssa.c: Likewise.
21484 * tree-ssanames.c: Likewise.
21485 * tree-stdarg.c: Likewise.
21486 * tree-streamer-in.c: Likewise.
21487 * tree-streamer-out.c: Likewise.
21488 * tree-streamer.c: Likewise.
21489 * tree-switch-conversion.c: Likewise.
21490 * tree-tailcall.c: Likewise.
21491 * tree-vect-data-refs.c: Likewise.
21492 * tree-vect-generic.c: Likewise.
21493 * tree-vect-loop-manip.c: Likewise.
21494 * tree-vect-loop.c: Likewise.
21495 * tree-vect-patterns.c: Likewise.
21496 * tree-vect-slp.c: Likewise.
21497 * tree-vect-stmts.c: Likewise.
21498 * tree-vectorizer.c: Likewise.
21499 * tree-vrp.c: Likewise.
21500 * tree.c: Likewise.
21501 * tsan.c: Likewise.
21502 * ubsan.c: Likewise.
21503 * valtrack.c: Likewise.
21504 * value-prof.c: Likewise.
21505 * var-tracking.c: Likewise.
21506 * varasm.c: Likewise.
21507 * varpool.c: Likewise.
21508 * vmsdbgout.c: Likewise.
21509 * vtable-verify.c: Likewise.
21511 * wide-int.cc: Likewise.
21512 * xcoffout.c: Likewise.
21513 * config/aarch64/aarch64-builtins.c: Likewise.
21514 * config/aarch64/aarch64.c: Likewise.
21515 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
21516 * config/alpha/alpha.c: Likewise.
21517 * config/arc/arc.c: Likewise.
21518 * config/arm/aarch-common.c: Likewise.
21519 * config/arm/arm-builtins.c: Likewise.
21520 * config/arm/arm-c.c: Likewise.
21521 * config/arm/arm.c: Likewise.
21522 * config/avr/avr-c.c: Likewise.
21523 * config/avr/avr-log.c: Likewise.
21524 * config/avr/avr.c: Likewise.
21525 * config/bfin/bfin.c: Likewise.
21526 * config/c6x/c6x.c: Likewise.
21527 * config/cr16/cr16.c: Likewise.
21528 * config/cris/cris.c: Likewise.
21529 * config/darwin-c.c: Likewise.
21530 * config/darwin.c: Likewise.
21531 * config/epiphany/epiphany.c: Likewise.
21532 * config/epiphany/mode-switch-use.c: Likewise.
21533 * config/epiphany/resolve-sw-modes.c: Likewise.
21534 * config/fr30/fr30.c: Likewise.
21535 * config/frv/frv.c: Likewise.
21536 * config/ft32/ft32.c: Likewise.
21537 * config/h8300/h8300.c: Likewise.
21538 * config/i386/i386-c.c: Likewise.
21539 * config/i386/i386.c: Likewise.
21540 * config/i386/msformat-c.c: Likewise.
21541 * config/i386/winnt-cxx.c: Likewise.
21542 * config/i386/winnt-stubs.c: Likewise.
21543 * config/i386/winnt.c: Likewise.
21544 * config/ia64/ia64-c.c: Likewise.
21545 * config/ia64/ia64.c: Likewise.
21546 * config/iq2000/iq2000.c: Likewise.
21547 * config/lm32/lm32.c: Likewise.
21548 * config/m32c/m32c-pragma.c: Likewise.
21549 * config/m32c/m32c.c: Likewise.
21550 * config/m32r/m32r.c: Likewise.
21551 * config/m68k/m68k.c: Likewise.
21552 * config/mcore/mcore.c: Likewise.
21553 * config/mep/mep-pragma.c: Likewise.
21554 * config/mep/mep.c: Likewise.
21555 * config/microblaze/microblaze-c.c: Likewise.
21556 * config/microblaze/microblaze.c: Likewise.
21557 * config/mips/mips.c: Likewise.
21558 * config/mmix/mmix.c: Likewise.
21559 * config/mn10300/mn10300.c: Likewise.
21560 * config/moxie/moxie.c: Likewise.
21561 * config/msp430/msp430-c.c: Likewise.
21562 * config/msp430/msp430.c: Likewise.
21563 * config/nds32/nds32-cost.c: Likewise.
21564 * config/nds32/nds32-fp-as-gp.c: Likewise.
21565 * config/nds32/nds32-intrinsic.c: Likewise.
21566 * config/nds32/nds32-isr.c: Likewise.
21567 * config/nds32/nds32-md-auxiliary.c: Likewise.
21568 * config/nds32/nds32-memory-manipulation.c: Likewise.
21569 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
21570 * config/nds32/nds32-predicates.c: Likewise.
21571 * config/nds32/nds32.c: Likewise.
21572 * config/nios2/nios2.c: Likewise.
21573 * config/nvptx/nvptx.c: Likewise.
21574 * config/pa/pa.c: Likewise.
21575 * config/pdp11/pdp11.c: Likewise.
21576 * config/rl78/rl78-c.c: Likewise.
21577 * config/rl78/rl78.c: Likewise.
21578 * config/rs6000/rs6000-c.c: Likewise.
21579 * config/rs6000/rs6000.c: Likewise.
21580 * config/rx/rx.c: Likewise.
21581 * config/s390/s390-c.c: Likewise.
21582 * config/s390/s390.c: Likewise.
21583 * config/sh/sh-c.c: Likewise.
21584 * config/sh/sh-mem.cc: Likewise.
21585 * config/sh/sh.c: Likewise.
21586 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
21587 * config/sh/sh_treg_combine.cc: Likewise.
21588 * config/sol2-c.c: Likewise.
21589 * config/sol2-cxx.c: Likewise.
21590 * config/sol2-stubs.c: Likewise.
21591 * config/sol2.c: Likewise.
21592 * config/sparc/sparc-c.c: Likewise.
21593 * config/sparc/sparc.c: Likewise.
21594 * config/spu/spu-c.c: Likewise.
21595 * config/spu/spu.c: Likewise.
21596 * config/stormy16/stormy16.c: Likewise.
21597 * config/tilegx/mul-tables.c: Likewise.
21598 * config/tilegx/tilegx-c.c: Likewise.
21599 * config/tilegx/tilegx.c: Likewise.
21600 * config/tilepro/mul-tables.c: Likewise.
21601 * config/tilepro/tilepro-c.c: Likewise.
21602 * config/tilepro/tilepro.c: Likewise.
21603 * config/v850/v850-c.c: Likewise.
21604 * config/v850/v850.c: Likewise.
21605 * config/vax/vax.c: Likewise.
21606 * config/visium/visium.c: Likewise.
21607 * config/vms/vms-c.c: Likewise.
21608 * config/vms/vms.c: Likewise.
21609 * config/vxworks.c: Likewise.
21610 * config/xtensa/xtensa.c: Likewise.
21612 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
21614 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
21615 Remove operand constraints. Change operand 2 predicate to
21616 nonmemory operand. Limit const_int values to mode bitsize. Only
21617 allow const_int values less than 32 when optimizing for size.
21618 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
21619 Remove operand constraints.
21620 (*bt<mode>): Use SImode for const_int values less than 32.
21621 (regmode): Remove mode attribute.
21623 2015-07-07 Anatoly Sokolov <aesok@post.ru>
21625 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
21626 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
21627 moxie_legitimate_address_p): New functions.
21628 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
21630 2015-07-07 Tom de Vries <tom@codesourcery.com>
21632 PR tree-optimization/66642
21633 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
21634 header comment. Rename split_edge variable to edge_at_split. Split
21635 exit edge to create new loop exit bb. Insert loop exit phis in new
21638 2015-07-07 Tom de Vries <tom@codesourcery.com>
21640 * tree-cfg.c (get_virtual_phi): New function.
21641 * tree-cfg.h (get_virtual_phi): Declare.
21642 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
21643 (rewrite_virtuals_into_loop_closed_ssa): New function.
21644 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
21646 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
21647 (transform_to_exit_first_loop_alt): Use
21648 rewrite_virtuals_into_loop_closed_ssa.
21650 2015-07-07 Richard Biener <rguenther@suse.de>
21652 * fold-const.c (fold_binary_loc): Move
21653 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
21654 * match.pd: ... here.
21655 Add (X * C1) % C2 -> 0 simplification pattern derived from
21658 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
21661 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
21662 change for target/65249.
21664 2015-07-07 Paulo Matos <pmatos@broadcom.com>
21666 * symtab.c (address_matters_1): Fix typo in comment above.
21667 (can_increase_alignment_p): Likewise.
21669 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
21671 * function.c (free_after_compilation): Clear PROP_cfg in
21672 f->curr_properties.
21674 2015-07-07 Richard Biener <rguenther@suse.de>
21676 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
21678 (add_control_edge): Remove excessive vertical space in dumping.
21679 (process_ssa_edge_worklist): Simulate at most one statement and
21680 return whether we did. Do not simulate PHIs if they are in a
21681 BB not yet simulated.
21682 (ssa_propagate): Adjust to always drain the BB worklist whenever
21683 a BB is available there, likewise the VARYING edges list before
21684 the interesting edge list.
21686 2015-07-07 Christian Bruel <christian.bruel@st.com>
21689 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
21691 2015-07-07 Richard Biener <rguenther@suse.de>
21693 PR middle-end/66739
21694 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
21697 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
21699 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
21700 modes for operands 0 and 3. Use SImode for operands 2 and 3.
21701 Copy operand 0 to a temporary if !ext_register_operand. Remove
21702 ancient extract_bit_field workaround.
21703 (insv<mode>_1): Rename from mov<mode>_insv_1.
21704 (*insvqi): Rename from *movqi_insv_2.
21705 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
21706 for renamed insvsi_1.
21707 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
21709 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
21711 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
21712 call to nvptx_reorg_subreg.
21714 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
21716 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
21717 * graphite-dependencies.c, graphite-interchange.c,
21718 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
21719 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
21722 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
21724 * match.pd: Remove element_mode inside HONOR_*.
21725 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
21726 (~X | X -> -1, ~X ^ X -> -1): Merge.
21727 * tree.c (build_each_one_cst): New function.
21728 * tree.h (build_each_one_cst): Likewise.
21730 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
21732 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
21735 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
21737 * config.gcc <mips*-*-*>: Add fused-madd.opt.
21738 * config/mips/mips.opt (mfused-madd): Remove.
21739 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
21740 * config/mips/mips.h (TARGET_MIPS8000): New.
21741 (ISA_HAS_FP_MADD4_MSUB4): Remove.
21742 (ISA_HAS_FP_MADDF_MSUBF): Remove.
21743 (ISA_HAS_FP_MADD3_MSUB3): Remove.
21744 (ISA_HAS_NMADD4_NMSUB4): Remove.
21745 (ISA_HAS_NMADD3_NMSUB3): Remove.
21746 (ISA_HAS_FUSED_MADD4): New.
21747 (ISA_HAS_UNFUSED_MADD4): New.
21748 (ISA_HAS_FUSED_MADDF): New.
21749 (ISA_HAS_FUSED_MADD3): New.
21750 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
21751 (*fma<mode>4_madd3) New.
21752 (*fma<mode>4_madd4) New.
21753 (*fma<mode>4_maddf) New.
21755 (*fms<mode>4_msub3) New.
21756 (*fms<mode>4_msub4) New.
21758 (*fnma<mode>4_nmadd3) New.
21759 (*fnma<mode>4_nmadd4) New.
21761 (*fnms<mode>4_nmsub3) New.
21762 (*fnms<mode>4_nmsub4) New.
21763 (*madd4<mode>) Modify to be unfused only.
21764 (*msub4<mode>) Modify to be unfused only.
21765 (*nmadd4<mode>) Modify to be unfused only.
21766 (*nmsub4<mode>) Modify to be unfused only.
21767 (*madd3<mode>) Remove.
21768 (*msub3<mode>) Remove.
21769 (*nmadd3<mode>) Remove.
21770 (*nmsub3<mode>) Remove.
21771 (*nmadd3<mode>_fastmath) Remove.
21772 (*nmsub3<mode>_fastmath) Remove.
21773 (*nmadd4<mode>_fastmath) Update condition.
21774 (*nmsub4<mode>_fastmath) Update condition.
21776 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
21779 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
21780 alignment attribute, exploring one level down for records and arrays.
21782 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
21784 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
21785 modes for operands 0 and 1. Use SImode for operands 2 and 3.
21786 Copy operand 1 to a temporary if !ext_register_operand. Remove
21787 ancient extract_bit_field workaround.
21788 (*extv<mode>): Rename from *mov<mode>_extv_1.
21789 (*extvqi): Rename from *movqi_extv_1.
21790 (extzv<mode>): Rename from extzv. Use SWI248 modes for
21791 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
21792 to a temporary if !ext_register_operand. Remove ancient
21793 extract_bit_field workaround.
21794 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
21795 (*extzvqi): Rename from *movqi_extzv_2.
21796 (*testqi_ext_3): Remove modes from const_int_operand predicated
21797 operands. Add "n" constraint.
21798 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
21799 operand. Add "J" constraint.
21800 (*btsq, *btrq, *btcq peephole2s): Remove mode from
21801 const_0_to_63 predicated operand.
21802 (regmode): New insn attribute.
21803 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
21804 to nonmemory_operand. Use regmode insn attribute.
21805 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
21806 (*jcc_bt<mode>_mask): Remove mode from operand 3.
21807 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
21808 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
21809 operands. Use "N" constraint instead of "n".
21811 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
21813 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
21815 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
21818 * config/i386/i386.c (iamcu_cost): New.
21819 (m_IAMCU): Likewise.
21820 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
21821 (processor_target_table): Add an entry for "iamcu".
21822 (processor_alias_table): Likewise.
21823 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
21824 (ix86_adjust_cost): Likewise.
21825 (ia32_multipass_dfa_lookahead): Likewise.
21826 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
21827 * config/i386/x86-tune.def: Updated for m_IAMCU.
21829 2015-07-06 Richard Biener <rguenther@suse.de>
21831 PR tree-optimization/66772
21832 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
21833 values are available in the PHI node BB when there are
21834 still unexecutable edges.
21836 2015-07-06 Richard Biener <rguenther@suse.de>
21838 PR tree-optimization/66767
21839 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
21840 Make sure to build the alignment test on a SSA name without
21841 final alignment info valid only if the alignment test
21844 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
21847 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
21848 loop start when inserting LSETUP.
21850 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
21853 * config/i386/i386.c (ix86_option_override_internal): Allow
21854 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
21856 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21858 * read-md.c (decimal_string): Rename to ...
21859 (md_decimal_string): ... this.
21860 (handle_enum): Reflect this.
21862 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
21865 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
21867 2015-07-06 Richard Biener <rguenther@suse.de>
21869 PR middle-end/66759
21870 * match.pd: Add missing constraint of y to REAL_CST in
21871 REAL_CST - x CMP y to y - CST CMP x simplification.
21873 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
21875 PR tree-optimization/66757
21876 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
21878 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
21879 Sandra Loosemore <sandra@codesourcery.com>
21881 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
21882 Delete extern declaration.
21883 (gprel_constant_p): Add extern declaration.
21884 * config/nios2/constraints.md ("S"): Use gprel_constant_p
21885 instead of nios2_symbol_ref_in_small_data_p.
21886 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
21887 (nios2_symbol_ref_in_small_data_p): Make static.
21888 (gprel_constant_p): Make non-static.
21890 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
21892 * doc/fragments.texi (Target Fragment): Convert debian.org
21894 * doc/install.texi (Configuration): Ditto.
21896 2015-07-05 Jakub Jelinek <jakub@redhat.com>
21898 PR tree-optimization/66718
21899 * tree-vect-stmts.c (vectorizable_call): Replace uses of
21900 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
21902 PR tree-optimization/66718
21903 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
21904 vectorizable_load, vectorizable_condition): Move vectype,
21905 nunits, ncopies computation after checking what kind of statement
21908 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21910 * target-insns.def (extv, extzv, insv): New targetm instruction
21912 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
21914 * recog.c (simplify_while_replacing): Likewise.
21916 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21918 * target-insns.def (doloop_begin, doloop_end): New targetm
21919 instruction patterns.
21920 * loop-init.c: Include target.h.
21921 (pass_loop2::gate): Use the new targetm patterns instead of
21922 HAVE_*/gen_* interface.
21923 (pass_rtl_doloop::gate): Likewise.
21924 (pass_rtl_doloop::execute): Remove preprocessor condition.
21925 * hw-doloop.c: Build unconditionally.
21926 * loop-doloop.c: Likewise.
21927 (doloop_optimize): Use the new targetm patterns instead of
21928 HAVE_*/gen_* interface.
21929 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
21930 * modulo-sched.c (doloop_register_get): Likewise.
21932 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21934 * target-insns.def (clear_cache): New targetm instruction pattern.
21935 * builtins.c (expand_builtin___clear_cache): Use it instead of
21936 HAVE_*/gen_* interface.
21938 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21940 * target-insns.def (allocate_stack, check_stack, probe_stack)
21941 (probe_stack_address, split_stack_prologue, split_stack_space_check):
21942 New targetm instruction patterns.
21943 * explow.c (allocate_dynamic_stack_space): Use them instead of
21944 HAVE_*/gen_* interface.
21945 (emit_stack_probe): Likewise.
21946 (probe_stack_range): Likewise.
21947 * function.c (thread_prologue_and_epilogue_insns): Likewise.
21949 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21951 * target-insns.def (stack_protect_set, stack_protect_test): New
21952 targetm instruction patterns.
21953 * cfgexpand.c (stack_protect_prologue): Use them instead of
21954 HAVE_*/gen_* interface.
21955 * function.c (stack_protect_epilogue): Likewise.
21957 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21959 * expr.h (gen_move_insn_uncast): Delete.
21960 * expr.c (gen_move_insn_uncast): Delete.
21962 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21964 * target-insns.def (restore_stack_block, restore_stack_function)
21965 (restore_stack_nonlocal, save_stack_block, save_stack_function)
21966 (save_stack_nonlocal): New targetm instruction patterns.
21967 * builtins.c (expand_builtin_apply): Use them instead of
21968 HAVE_*/gen_* interface.
21969 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
21971 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21973 * target-insns.def (trap): New targetm instruction pattern.
21974 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
21976 * explow.c (allocate_dynamic_stack_space): Likewise.
21977 * ifcvt.c (find_if_header): Likewise.
21979 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21981 * target-insns.def (prefetch): New targetm instruction pattern.
21982 * tree-ssa-loop-prefetch.c: Include targeth.
21983 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
21984 of HAVE_*/gen_* interface.
21985 * builtins.c (expand_builtin_prefetch): Likewise.
21986 * toplev.c (process_options): Likewise.
21988 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21990 * target-insns.def (untyped_call, untyped_return): New targetm
21991 instruction patterns.
21992 * builtins.c (expand_builtin_apply): Use them instead of
21993 HAVE_*/gen_* interface.
21994 (result_vector): Define unconditionally.
21996 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21998 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
21999 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
22000 (nonlocal_goto_receiver): New targetm instruction patterns.
22001 * builtins.c (expand_builtin_setjmp_setup): Use them instead
22002 of HAVE_*/gen_* interface.
22003 (expand_builtin_setjmp_receiver): Likewise.
22004 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
22005 * except.c (expand_dw2_landing_pad_for_region): Likewise.
22007 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
22009 * target.def: Add code_for_* hooks.
22010 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
22011 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
22012 * target-insns.def (casesi, tablejump): New targetm instruction
22014 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
22015 (do_tablejump): Likewise.
22016 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
22017 (expand_sjlj_dispatch_table): Likewise.
22018 * targhooks.c (default_case_values_threshold): Likewise.
22020 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
22022 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
22023 Use rtx_insn * instead of rtx.
22024 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
22025 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
22026 (nios2_call_tls_get_addr): Likewise.
22027 (nios2_emit_expensive_div): Likewise.
22028 (nios2_emit_move_sequence): Change return type to bool.
22029 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
22030 Change return type to bool.
22032 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
22035 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
22037 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
22040 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
22041 of register_operand. Remove constraint.
22043 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
22045 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
22046 the first argument.
22048 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
22050 * attribs.c (decl_attributes): Guard inform with the return value
22051 of the preceding warning.
22053 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
22055 * doc/invoke.texi (moverride): Move to correct section.
22057 2015-07-03 Richard Biener <rguenther@suse.de>
22059 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
22061 (dt_operand::gen_gimple_expr): After valueizing operands
22062 re-canonicalize operand order for commutative tree codes.
22064 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
22067 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
22069 (__crc32w): Likewise.
22070 (__crc32d): Likewise.
22071 (__rdpmc): Likewise.
22072 (__rdtscp): Likewise.
22073 (_rdpmc): Likewise.
22074 (_rdtscp): Likewise.
22075 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
22078 2015-07-03 Richard Biener <rguenther@suse.de>
22080 * fold-const.c (fold_mathfn_compare): Remove.
22081 (fold_inf_compare): Likewise.
22082 (fold_comparison): Move floating point comparison simplifications...
22083 * match.pd: ... to patterns here. Introduce simple_comparisons
22084 operator list and use it for patterns formerly in fold_comparison.
22086 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
22088 PR tree-optimization/66119
22089 * toplev.c (process_options): Don't set up default values for
22090 the sra_max_scalarization_size_{speed,size} parameters.
22091 * tree-sra (analyze_all_variable_accesses): If no values
22092 have been set for the sra_max_scalarization_size_{speed,size}
22093 parameters, call get_move_ratio to get target defaults.
22095 2015-07-03 Richard Biener <rguenther@suse.de>
22097 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
22098 * match.pd: ... here.
22100 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
22103 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
22104 is not actually the default on FreeBSD.
22106 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22108 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
22110 (CMPGE_8HI): Likewise.
22111 (CMPGE_4SI): Likewise.
22112 (CMPGE_2DI): Likewise.
22113 (CMPGE_U16QI): Likewise.
22114 (CMPGE_U8HI): Likewise.
22115 (CMPGE_U4SI): Likewise.
22116 (CMPGE_U2DI): Likewise.
22117 (CMPLE_16QI): Likewise.
22118 (CMPLE_8HI): Likewise.
22119 (CMPLE_4SI): Likewise.
22120 (CMPLE_2DI): Likewise.
22121 (CMPLE_U16QI): Likewise.
22122 (CMPLE_U8HI): Likewise.
22123 (CMPLE_U4SI): Likewise.
22124 (CMPLE_U2DI): Likewise.
22125 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
22126 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
22127 ALTIVEC_BUILTIN_VEC_CMPLE.
22128 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
22129 floating-point vector modes.
22130 (vector_nlt<mode>): New define_expand.
22131 (vector_nltu<mode>): Likewise.
22132 (vector_ngt<mode>): Likewise.
22133 (vector_ngtu<mode>): Likewise.
22135 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
22137 PR rtl-optimization/66706
22138 * combine.c (make_compound_operation): If an AND of SUBREG of
22139 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
22141 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
22143 * tree-pass.h (make_pass_ch_vect): New.
22144 * passes.def: Add pass_ch_vect just before pass_if_conversion.
22146 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
22147 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
22148 make_pass_ch_vect): New.
22149 (pass_ch): Extend ch_base.
22151 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
22152 (ch_base::copy_headers): ...here.
22154 2015-07-02 Richard Biener <rguenther@suse.de>
22156 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
22157 * fold-const.c (get_pointer_modulus_and_residue): Remove.
22158 (fold_binary_loc): Implement (T)ptr & CST in terms of
22159 get_pointer_alignment_1.
22160 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
22161 Make sure to build the alignment test on a SSA name without
22162 final alignment info valid only after the prologue.
22164 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
22166 * config/cris/cris.md ("epilogue"): Remove condition.
22167 ("prologue"): Ditto.
22169 2015-07-02 Richard Biener <rguenther@suse.de>
22171 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
22172 parameter to record a condition that is false.
22173 (record_conditions): When recording an extra NE_EXPR that is
22174 true also record a EQ_EXPR that is false.
22176 2015-07-02 Bin Cheng <bin.cheng@arm.com>
22178 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
22179 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
22180 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
22181 (set_iv, find_interesting_uses_address, add_candidate_1): New
22182 argument to alloc_iv.
22183 (find_interesting_uses_op, find_interesting_uses_cond): Don't
22184 duplicate struct iv.
22185 (free_loop_data): Don't free struct iv explicitly.
22186 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
22188 2015-07-01 DJ Delorie <dj@redhat.com>
22190 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
22192 (SUPPORTS_DISCRIMINATOR): Define.
22194 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
22197 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
22198 there are no CALLs in the same pattern.
22200 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
22202 PR rtl-optimization/61047
22203 * rtlanal.c (get_initial_register_offset): New function.
22204 (rtx_addr_can_trap_p_1): Check offsets of stack references.
22206 2015-07-01 Richard Biener <rguenther@suse.de>
22208 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
22209 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
22210 ~X CMP C -> X CMP' ~C to ...
22211 * match.pd: ... patterns here.
22213 2015-07-01 Nick Clifton <nickc@redhat.com>
22215 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
22216 a 16-bit value into a 20-bit memory slot.
22218 2015-07-01 Jiong Wang <jiong.wang@arm.com>
22220 * doc/sourcebuild.texi (AArch64-specific attributes): Document
22221 "aarch64_tiny", "aarch64_small", "aarch64_large",
22222 "aarch64_little_endian", "aarch64_big_endian".
22224 2015-07-01 Jiong Wang <jiong.wang@arm.com>
22226 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
22227 Document "aarch64_small_fpic".
22229 2015-07-01 Jiong Wang <jiong.wang@arm.com>
22231 * configure.ac: Add check for aarch64 assembler -fpic relocation
22233 * configure: Regenerate.
22234 * config.in: Regenerate.
22235 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
22236 to -fPIC if not support of -fpic relocation modifier in assembler.
22238 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
22241 * rtl.c (classify_insn): Handle returns in PARALLELs.
22243 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
22245 PR middle-end/66633
22246 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
22247 to true if the function is nested and if not optimizing.
22248 (convert_local_omp_clauses): Initialize need_frame to true if the
22249 function contains nested functions and if not optimizing.
22251 2015-07-01 Richard Biener <rguenther@suse.de>
22253 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
22254 (X & Y) ^ Y -> ~X & Y transforms to ...
22255 * match.pd: ... here.
22257 2015-07-01 Richard Biener <rguenther@suse.de>
22259 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
22260 of converts to avoid uninteresting noise from the conversion
22261 simplifying patterns.
22263 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
22265 * config/c6x/c6x.c (try_rename_operands): Do not depend on
22266 gcc_assert evaluating its argument for side-effect.
22268 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
22271 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
22274 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
22276 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
22277 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
22278 (hash_scc): Add this_ref_p and ref_p parameters and pass them
22279 to the inner DFS walk.
22281 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
22283 * target-insns.def (jump): New targetm instruction pattern.
22284 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
22285 instead of gen_jump.
22286 (fix_up_crossing_landing_pad): Likewise.
22287 (add_labels_and_missing_jumps): Likewise.
22288 (fix_crossing_conditional_branches): Likewise.
22289 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
22290 (force_nonfallthru_and_redirect): Likewise.
22291 * cse.c (cse_insn): Likewise.
22292 * expmed.c (expand_divmod): Likewise.
22293 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
22294 * haifa-sched.c (init_before_recovery): Likewise.
22295 (sched_create_recovery_edges): Likewise.
22296 * ifcvt.c (find_cond_trap): Likewise.
22297 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
22298 (expand_float, expand_fix): Likewise.
22299 * stmt.c (emit_jump): Likewise.
22301 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
22303 * defaults.h (HAVE_load_multiple, gen_load_multiple)
22304 (HAVE_store_multiple, gen_store_multiple): Delete.
22305 * target-insns.def (load_multiple, store_multiple): New targetm
22306 instruction patterns.
22307 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
22308 of HAVE_*/gen_* interface.
22310 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
22312 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
22313 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
22314 (gen_mem_signal_fence): Delete.
22315 * target-insns.def (mem_signal_fence, mem_thread_fence)
22316 (memory_barrier): New targetm instruction patterns.
22317 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
22319 (expand_mem_signal_fence): Likewise.
22321 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
22323 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
22324 * target-insns.def (epilogue, prologue, sibcall_prologue): New
22325 targetm instruction patterns.
22326 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
22328 * calls.c (expand_call): Likewise.
22329 * cfgrtl.c (cfg_layout_finalize): Likewise.
22330 * df-scan.c (df_get_entry_block_def_set): Likewise.
22331 (df_get_exit_block_use_set): Likewise.
22332 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
22333 * final.c (final_start_function): Likewise.
22334 * function.c (thread_prologue_and_epilogue_insns): Likewise.
22335 (reposition_prologue_and_epilogue_notes): Likewise.
22336 * reorg.c (find_end_label): Likewise.
22337 * toplev.c (process_options): Likewise.
22339 2015-06-30 David Malcolm <dmalcolm@redhat.com>
22341 * typed-splay-tree.h: New file.
22343 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
22346 * lra-int.h (lra_substitute_pseudo): Add a parameter.
22347 (lra_substitute_pseudo_within_insn): Ditto.
22348 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
22350 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
22351 to lra_substitute_pseudo.
22352 * lra-lives.c (process_bb_lives): Add an argument to
22353 lra_substitute_pseudo_within_insn call.
22354 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
22355 argument to lra_substitute_pseudo and
22356 lra_substitute_pseudo_within_insn calls.
22357 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
22359 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
22361 * configure: Regenerated.
22363 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
22365 * config.gcc: Support i[34567]86-*-elfiamcu target.
22366 * config/i386/iamcu.h: New.
22367 * config/i386/i386.opt: Add -miamcu.
22368 * doc/invoke.texi: Document -miamcu.
22369 * common/config/i386/i386-common.c (ix86_handle_option): Turn
22370 off x87/MMX/SSE/AVX codegen for -miamcu.
22371 * config/i386/i386-c.c (ix86_target_macros_internal): Define
22372 __iamcu/__iamcu__ for -miamcu.
22373 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
22374 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
22375 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
22376 * config/i386/i386.c (ix86_option_override_internal): Ignore and
22377 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
22378 MCU by default. Default long double to 64-bit for Intel MCU.
22379 Turn on -freg-struct-return for Intel MCU. Issue an error when
22380 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
22382 (function_arg_advance_32): Pass value whose size is no larger
22383 than 8 bytes in registers for Intel MCU.
22384 (function_arg_32): Likewise.
22385 (ix86_return_in_memory): Return value whose size is no larger
22386 than 8 bytes in registers for Intel MCU.
22387 (iamcu_alignment): New function.
22388 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
22390 (ix86_local_alignment): Don't increase alignment for Intel MCU.
22391 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
22394 2015-06-30 Marek Polacek <polacek@redhat.com>
22396 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
22397 both operands of the resulting expression.
22399 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
22400 the final expression with the operand's type and then convert
22401 it to the type of the expression.
22403 2015-06-30 Richard Biener <rguenther@suse.de>
22405 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
22406 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
22407 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
22408 * match.pd: ... to patterns here.
22410 2015-06-30 Richard Biener <rguenther@suse.de>
22412 PR tree-optimization/66704
22413 * tree-vect-data-refs.c (vect_setup_realignment): Use
22414 make_ssa_name for non-SSA name source.
22416 2015-06-30 Jakub Jelinek <jakub@redhat.com>
22418 PR middle-end/66702
22419 * omp-low.c (simd_clone_adjust): Handle addressable linear
22420 or uniform parameters or non-gimple type uniform parameters.
22422 2015-06-30 Richard Biener <rguenther@suse.de>
22424 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
22425 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
22426 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
22427 * match.pd: ... here.
22428 Add a few cases of A - B -> A + (-B) when B "easily" negates.
22429 Move (x & y) | x -> x and friends before
22430 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
22432 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
22434 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
22435 -mfix-ut699 is not specified.
22436 (leon3_load): Rename into...
22437 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
22440 2015-06-30 Marek Polacek <polacek@redhat.com>
22442 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
22443 * match.pd: ... here.
22445 2015-06-30 Richard Biener <rguenther@suse.de>
22447 * target-insns.def (canonicalize_funcptr_for_compare): Add.
22448 * fold-const.c (build_range_check): Replace uses of
22449 HAVE_canonicalize_funcptr_for_compare.
22450 (fold_widened_comparison): Likewise.
22451 (fold_sign_changed_comparison): Likewise.
22452 * dojump.c: Include "target.h".
22453 (do_compare_and_jump): Replace uses of
22454 HAVE_canonicalize_funcptr_for_compare and
22455 gen_canonicalize_funcptr_for_compare.
22456 * expr.c (do_store_flag): Likewise.
22458 2015-06-30 Tom de Vries <tom@codesourcery.com>
22460 PR tree-optimization/66652
22461 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
22462 max_loop_iterations to determine if nit + 1 overflows.
22464 2015-06-30 Richard Biener <rguenther@suse.de>
22466 * tree-vrp.c (register_edge_assert_for_2): Also register
22467 asserts for dominating conversion results.
22469 2015-06-30 Bin Cheng <bin.cheng@arm.com>
22471 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
22472 field in struct iv.
22474 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
22477 * configure.ac: Fix filds and fildq test for 64-bit.
22478 * configure: Regenerated.
22480 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
22482 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
22483 (nvptx_reorg): Here. Keep the non-subreg pieces.
22485 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
22487 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
22488 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
22490 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
22492 * config/i386/i386.md (*jcc_1): Use %! in asm template.
22493 Set attribute "length_nobnd" instead of "length".
22496 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
22498 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
22500 * config/nios2/nios2.c (nios2_delegitimize_address): Make
22501 assert less restrictive.
22503 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
22506 * cgraphunit.c (cgraph_node::finalize_function): Do not call
22507 do_warn_unused_parameter.
22508 * function.c (do_warn_unused_parameter): Move from here.
22509 * function.h (do_warn_unused_parameter): Do not declare.
22511 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
22514 * gcc.target/arm/armv-sync-comp-swap.c: New.
22515 * gcc.target/arm/armv-sync-op-acquire.c: New.
22516 * gcc.target/arm/armv-sync-op-full.c: New.
22517 * gcc.target/arm/armv-sync-op-release.c: New.
22519 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
22522 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
22523 initial acquire barrier with final barrier.
22525 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
22528 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
22529 initial acquire barrier with final barrier.
22531 2015-06-29 Richard Henderson <rth@redhat.com>
22533 * config/i386/constraints.md (Bf): New constraint.
22534 * config/i386/i386-c.c (ix86_target_macros): Define
22535 __GCC_ASM_FLAG_OUTPUTS__.
22536 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
22538 * doc/extend.texi (FlagOutputOperands): Document them.
22540 2015-06-29 Jiong Wang <jiong.wang@arm.com>
22542 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
22543 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
22545 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
22546 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
22547 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
22548 (aarch64_symbol_context): Ditto.
22549 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
22550 and use new pattern name.
22551 (aarch64_expand_mov_immediate): Ditto.
22552 (aarch64_print_operand): Ditto.
22553 (aarch64_classify_tls_symbol): Ditto.
22555 2015-06-29 Marek Polacek <polacek@redhat.com>
22556 Marc Glisse <marc.glisse@inria.fr>
22558 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
22559 * match.pd: ... pattern here.
22561 2015-06-29 Tom de Vries <tom@codesourcery.com>
22563 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
22564 function structure.
22566 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
22568 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
22569 feature description, split out the native option, add a link to
22570 the feature documentation, rearrange and slightly rewrite text.
22571 (Aarch64 options, -mcpu): Likewise.
22572 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
22573 +rdma implies Adv. SIMD.
22575 2015-06-29 Marek Polacek <polacek@redhat.com>
22578 * function.c (stack_protect_epilogue): Remove a cast to int.
22579 * doc/invoke.texi: Update -Wswitch-bool description.
22581 2015-06-29 Richard Biener <rguenther@suse.de>
22583 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
22584 * fold-const.c (fold_binary_loc): Move &A - &B simplification
22585 via ptr_difference_const ...
22586 * match.pd: ... here.
22587 When matching (X ^ Y) == Y also match with swapped operands.
22589 2015-06-29 Richard Biener <rguenther@suse.de>
22591 * lto-streamer.h (LTO_major_version): Bump to 5.
22593 2015-06-29 Richard Biener <rguenther@suse.de>
22595 PR tree-optimization/66677
22596 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
22597 STMT_VINFO_VEC_STMT clobbering less strict.
22599 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
22601 PR middle-end/64130
22602 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
22603 division, compute max and min when value ranges for dividend and
22604 divisor are available.
22606 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
22607 Sandra Loosemore <sandra@codesourcery.com>
22609 * regrename.h (regrename_do_replace): Change to return bool.
22610 * regrename.c (rename_chains): Check return value of
22611 regname_do_replace.
22612 (regrename_do_replace): Re-validate the modified insns and
22613 return bool status.
22614 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
22615 Update to match rename_chains changes.
22616 * config/c6x/c6x.c (try_rename_operands): Assert that
22617 regrename_do_replace returns true.
22619 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
22621 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
22622 operand 2 here. Use copy_addr_to_reg to copy non-index
22623 register operand 2 to a temporary.
22624 (<mode>_stx): Ditto for operand 1.
22625 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
22626 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
22627 (ix86_store_bounds): Ditto.
22629 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
22631 * print-tree.c (print_node) [TREE_VEC]: Print its length.
22633 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
22635 * gimple.c (gimple_call_set_fndecl): Remove.
22636 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
22637 build1_loc directly instead of build_fold_addr_expr_loc.
22639 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
22641 * hash-map.h (hash_map::traverse): Use the definition of the
22642 Key typedef rather than the typedef itself.
22644 2015-06-26 Martin Jambor <mjambor@suse.cz>
22647 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
22648 NULL instead of calling dump_enabled_p.
22650 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
22652 * config/aarch64/aarch64.opt: (override): New.
22653 * doc/invoke.texi (override): Document.
22654 * config/aarch64/aarch64.c (aarch64_flag_desc): New
22655 (aarch64_fusible_pairs): Likewise.
22656 (aarch64_tuning_flags): Likewise.
22657 (aarch64_tuning_override_function): Likewise.
22658 (aarch64_tuning_override_functions): Likewise.
22659 (aarch64_parse_one_option_token): Likewise.
22660 (aarch64_parse_boolean_options): Likewise.
22661 (aarch64_parse_fuse_string): Likewise.
22662 (aarch64_parse_tune_string): Likewise.
22663 (aarch64_parse_one_override_token): Likewise.
22664 (aarch64_parse_override_string): Likewise.
22665 (aarch64_override_options): Parse the -override string if it
22668 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
22670 * config/aarch64/aarch64-protos.h (tune_params): Remove
22671 const from members.
22672 (aarch64_tune_params): Remove const, change to no longer be
22674 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
22675 change to no longer be a pointer, initialize to generic_tunings.
22676 (aarch64_min_divisions_for_recip_mul): Change dereference of
22677 aarch64_tune_params to member access.
22678 (aarch64_reassociation_width): Likewise.
22679 (aarch64_rtx_mult_cost): Likewise.
22680 (aarch64_address_cost): Likewise.
22681 (aarch64_branch_cost): Likewise.
22682 (aarch64_rtx_costs): Likewise.
22683 (aarch64_register_move_cost): Likewise.
22684 (aarch64_memory_move_cost): Likewise.
22685 (aarch64_sched_issue_rate): Likewise.
22686 (aarch64_builtin_vectorization_cost): Likewise.
22687 (aarch64_override_options): Take a copy of the selected tuning
22688 struct in to aarch64_tune_params, rather than just setting
22689 a pointer, change dereferences of aarch64_tune_params to member
22691 (aarch64_override_options_after_change): Change dereferences of
22692 aarch64_tune_params to member access.
22693 (aarch64_macro_fusion_p): Likewise.
22694 (aarch_macro_fusion_pair_p): Likewise.
22695 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
22697 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
22699 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
22700 (aarch64_tune_flags): Likewise.
22701 (AARCH64_TUNE_FMA_STEERING): Likewise.
22702 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
22703 to AARCH64_FL_USE_FMA_STEERING_PASS.
22704 (cortex-a57.cortex-a53): Likewise.
22705 (cortex-a72): Use cortexa72_tunings.
22706 (cortex-a72.cortex-a53): Likewise.
22707 (exynos-m1): Likewise.
22708 * config/aarch64/aarch64-protos.h (tune_params): Add
22709 a field: extra_tuning_flags.
22710 * config/aarch64/aarch64-tuning-flags.def: New.
22711 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
22712 (aarch64_extra_tuning_flags): Likewise.
22713 (aarch64_tune_params): Declare here.
22714 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
22715 (cortexa53_tunings): Likewise.
22716 (cortexa57_tunings): Likewise.
22717 (thunderx_tunings): Likewise.
22718 (xgene1_tunings): Likewise.
22719 (cortexa72_tunings): New.
22720 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
22721 (gate): Check against aarch64_tune_params.
22722 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
22725 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
22727 * config/aarch64/aarch64-fusion-pairs.def: New.
22728 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
22729 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
22730 aarch64_fusion_pairs.
22731 (AARCH64_FUSE_MOV_MOVK): Likewise.
22732 (AARCH64_FUSE_ADRP_ADD): Likewise.
22733 (AARCH64_FUSE_MOVK_MOVK): Likewise.
22734 (AARCH64_FUSE_ADRP_LDR): Likewise.
22735 (AARCH64_FUSE_CMP_BRANCH): Likewise.
22737 2015-06-26 Jiong Wang <jiong.wang@arm.com>
22739 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
22740 SYMBOL_SMALL_GOT_28K.
22741 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
22742 relocation modifiers.
22743 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
22744 (ldr_got_small_28k_<mode>): New.
22745 (ldr_got_small_28k_sidi): New.
22746 * config/aarch64/iterators.md (got_modifier): New mode iterator.
22747 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
22748 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
22749 SYMBOL_SMALL_GOT_28K.
22750 (aarch64_rtx_costs): Add costs for new instruction sequences.
22751 (initialize_aarch64_code_model): Initialize new model.
22752 (aarch64_classify_symbol): Recognize new model and new symbol classification.
22753 (aarch64_asm_preferred_eh_data_format): Support new model.
22754 (aarch64_load_symref_appropriately): Generate new instruction
22755 sequences for -fpic.
22756 (TARGET_USE_PSEUDO_PIC_REG): New definition.
22757 (aarch64_use_pseudo_pic_reg): New function.
22759 2015-06-26 Jiong Wang <jiong.wang@arm.com>
22761 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
22762 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
22763 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
22764 (aarch64_expand_mov_immediate): Ditto.
22765 (aarch64_print_operand): Ditto.
22766 (aarch64_classify_symbol): Ditto.
22768 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
22770 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
22772 2015-06-26 Bin Cheng <bin.cheng@arm.com>
22775 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
22776 assertion failed. Remove assertion itself.
22778 2015-06-26 Richard Biener <rguenther@suse.de>
22780 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
22781 and -A CMP CST -> A CMP -CST which is redundant with a pattern
22783 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
22784 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
22785 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
22786 * match.pd: ... patterns here.
22788 2015-06-26 Marek Polacek <polacek@redhat.com>
22790 * match.pd ((x | y) & ~(x & y) -> x ^ y,
22791 (x | y) & (~x ^ y) -> x & y): New patterns.
22793 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
22795 * rtl.h (emit): Add an optional boolean parameter to control
22796 whether barriers are emitted.
22797 * emit-rtl.c (emit): Likewise.
22798 * gensupport.c (get_emit_function): Return null rather than "emit".
22799 * genemit.c (gen_emit_seq): Handle the null return value.
22800 Don't emit barriers after the final instruction in the sequence.
22801 * gentarget-def.c (main): Don't emit barriers after the instruction.
22803 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22805 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
22806 TARGET_UNIFIED_ASM.
22808 2015-06-26 Richard Biener <rguenther@suse.de>
22810 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
22812 2015-06-26 Richard Biener <rguenther@suse.de>
22814 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
22815 irrespective on whether the inner operation has a single use
22816 of both off are constant.
22818 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
22819 Segher Boessenkool <segher@kernel.crashing.org>
22822 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
22823 before doing PUT_MODE or PUT_CODE on operands to avoid
22824 in-place RTX modification.
22826 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
22828 * gentarget-def.c (def_target_insn): Cast return of strtol to
22831 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
22833 * gimple.h (gimple_call_set_fn): Move inline function.
22834 * gimple.c (gimple_call_set_fn): Relocate here.
22836 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
22840 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
22841 the replacement insn will work.
22843 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
22845 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
22848 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
22850 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
22851 * cgraph.h: Include ipa-ref.h and plugin-api.h.
22852 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
22853 (symtab_node::address_can_be_compared_p): Move function.
22854 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
22856 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
22857 * auto-profile.c: Likewise.
22858 * bb-reorder.c: Likewise.
22859 * builtins.c: Likewise.
22860 * calls.c: Likewise.
22861 * cfgexpand.c: Likewise.
22862 * cgraphbuild.c: Likewise.
22863 * cgraphclones.c: Likewise.
22864 * cgraphunit.c: Likewise.
22865 * combine.c: Likewise.
22866 * coverage.c: Likewise.
22867 * data-streamer-in.c: Likewise.
22868 * data-streamer-out.c: Likewise.
22869 * data-streamer.c: Likewise.
22870 * dbxout.c: Likewise.
22871 * dwarf2out.c: Likewise.
22872 * except.c: Likewise.
22873 * expr.c: Likewise.
22874 * final.c: Likewise.
22875 * fold-const.c: Likewise.
22876 * ggc-page.c: Likewise.
22877 * gimple-fold.c: Likewise.
22878 * gimple-iterator.c: Likewise.
22879 * gimple-pretty-print.c: Likewise.
22880 * gimple-streamer-in.c: Likewise.
22881 * gimple-streamer-out.c: Likewise.
22882 * gimple.c: Likewise.
22883 * gimplify.c: Likewise.
22884 * ipa-chkp.c: Likewise.
22885 * ipa-comdats.c: Likewise.
22886 * ipa-cp.c: Likewise.
22887 * ipa-devirt.c: Likewise.
22888 * ipa-icf-gimple.c: Likewise.
22889 * ipa-icf.c: Likewise.
22890 * ipa-inline-analysis.c: Likewise.
22891 * ipa-inline-transform.c: Likewise.
22892 * ipa-inline.c: Likewise.
22893 * ipa-polymorphic-call.c: Likewise.
22894 * ipa-profile.c: Likewise.
22895 * ipa-prop.c: Likewise.
22896 * ipa-pure-const.c: Likewise.
22897 * ipa-ref.c: Likewise.
22898 * ipa-reference.c: Likewise.
22899 * ipa-split.c: Likewise.
22900 * ipa-utils.c: Likewise.
22901 * ipa-visibility.c: Likewise.
22903 * langhooks.c: Likewise.
22904 * lto-cgraph.c: Likewise.
22905 * lto-compress.c: Likewise.
22906 * lto-opts.c: Likewise.
22907 * lto-section-in.c: Likewise.
22908 * lto-section-out.c: Likewise.
22909 * lto-streamer-in.c: Likewise.
22910 * lto-streamer-out.c: Likewise.
22911 * lto-streamer.c: Likewise.
22912 * omp-low.c: Likewise.
22913 * opts-global.c: Likewise.
22914 * passes.c: Likewise.
22915 * predict.c: Likewise.
22916 * print-tree.c: Likewise.
22917 * profile.c: Likewise.
22919 * sanopt.c: Likewise.
22920 * stor-layout.c: Likewise.
22921 * symtab.c: Likewise.
22922 * toplev.c: Likewise.
22923 * trans-mem.c: Likewise.
22924 * tree-cfg.c: Likewise.
22925 * tree-chkp.c: Likewise.
22926 * tree-eh.c: Likewise.
22927 * tree-emutls.c: Likewise.
22928 * tree-inline.c: Likewise.
22929 * tree-nested.c: Likewise.
22930 * tree-parloops.c: Likewise.
22931 * tree-pretty-print.c: Likewise.
22932 * tree-profile.c: Likewise.
22933 * tree-sra.c: Likewise.
22934 * tree-ssa-alias.c: Likewise.
22935 * tree-ssa-live.c: Likewise.
22936 * tree-ssa-loop-ivcanon.c: Likewise.
22937 * tree-ssa-loop-ivopts.c: Likewise.
22938 * tree-ssa-pre.c: Likewise.
22939 * tree-ssa-sccvn.c: Likewise.
22940 * tree-ssa-strlen.c: Likewise.
22941 * tree-ssa-structalias.c: Likewise.
22942 * tree-streamer-in.c: Likewise.
22943 * tree-streamer-out.c: Likewise.
22944 * tree-streamer.c: Likewise.
22945 * tree-switch-conversion.c: Likewise.
22946 * tree-tailcall.c: Likewise.
22947 * tree-vect-data-refs.c: Likewise.
22948 * tree-vect-stmts.c: Likewise.
22949 * tree-vectorizer.c: Likewise.
22950 * tree.c: Likewise.
22951 * tsan.c: Likewise.
22952 * ubsan.c: Likewise.
22953 * value-prof.c: Likewise.
22954 * varasm.c: Likewise.
22955 * varpool.c: Likewise.
22956 * config/arm/arm.c: Likewise.
22957 * config/bfin/bfin.c: Likewise.
22958 * config/c6x/c6x.c: Likewise.
22959 * config/cris/cris.c: Likewise.
22960 * config/darwin-c.c: Likewise.
22961 * config/darwin.c: Likewise.
22962 * config/i386/i386.c: Likewise.
22963 * config/i386/winnt.c: Likewise.
22964 * config/microblaze/microblaze.c: Likewise.
22965 * config/mips/mips.c: Likewise.
22966 * config/rs6000/rs6000.c: Likewise.
22967 * config/rx/rx.c: Likewise.
22968 * config/s390/s390.c: Likewise.
22969 * config/tilegx/mul-tables.c: Likewise.
22971 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22973 * config/aarch64/aarch64.c, config/alpha/alpha.c,
22974 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
22975 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
22976 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
22977 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
22978 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
22979 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
22980 config/microblaze/microblaze.c, config/mips/mips.c,
22981 config/mmix/mmix.c, config/mn10300/mn10300.c,
22982 config/moxie/moxie.c, config/msp430/msp430.c,
22983 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
22984 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
22985 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
22986 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
22987 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
22988 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
22989 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
22990 target-def.h include.
22991 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
22993 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22995 * Makefile.in (TARGET_DEF): Add target-insns.def.
22996 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
22997 (build/gentarget-def.o): New rule.
22998 (genprogrtl): Add target-def.
22999 * target-insns.def, gentarget-def.c: New files.
23000 * target.def: Add targetm.have_* and targetm.gen_* hooks,
23001 based on the contents of target-insns.def.
23002 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
23003 (HAVE_return, gen_return): Delete.
23004 * target-def.h: Include insn-target-def.h.
23005 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
23006 instead of direct calls. Rely on them to do the appropriate assertions.
23007 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
23008 (convert_jumps_to_returns): Use targetm interface instead of
23010 (thread_prologue_and_epilogue_insns): Likewise.
23011 * reorg.c (find_end_label, dbr_schedule): Likewise.
23012 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
23013 * shrink-wrap.c (convert_to_simple_return): Likewise.
23014 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
23016 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23018 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
23019 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
23020 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
23021 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
23022 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
23023 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
23024 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
23025 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
23026 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
23027 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
23028 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
23029 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
23030 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
23031 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
23032 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
23033 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
23036 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23038 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
23039 (unbounded_int_hashmap_traits::key_type): Likewise.
23040 * hash-map.h (hash_map): Get the key type from the traits.
23041 * hash-traits.h (default_hash_traits): By default, inherit from the
23042 template parameter.
23043 * alias.c (alias_set_traits): Delete.
23044 (alias_set_entry_d::children): Use alias_set_hash as the first
23045 template parameter.
23046 (record_alias_subset): Update accordingly.
23047 * except.c (tree_hash_traits): Delete.
23048 (type_to_runtime_map): Use tree_hash as the first template parameter.
23049 (init_eh): Update accordingly.
23050 * genmatch.c (capture_id_map_hasher): Delete.
23051 (cid_map_t): Use nofree_string_hash as first template parameter.
23052 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
23053 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
23054 Use symbol_compare_hash as the first template parameter in
23055 subdivide_hash_map.
23056 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
23057 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
23058 template parameter.
23059 * passes.c (pass_registry_hasher): Delete.
23060 (name_to_pass_map): Use nofree_string_hash as the first template
23062 (register_pass_name): Update accordingly.
23063 * sanopt.c (sanopt_tree_map_traits): Delete.
23064 (sanopt_tree_triplet_map_traits): Delete.
23065 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
23066 template parameter.
23067 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
23068 the first template parameter.
23069 * sese.c (rename_map_hasher): Delete.
23070 (rename_map_type): Use tree_ssa_name_hash as the first template
23072 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
23073 (function_summary::m_map): Use map_hash as the first template
23075 (function_summary::release): Update accordingly.
23076 * tree-if-conv.c (phi_args_hash_traits): Delete.
23077 (predicate_scalar_phi): Use tree_operand_hash as the first template
23078 parameter to phi_arg_map.
23079 * tree-inline.h (dependence_hasher): Delete.
23080 (copy_body_data::dependence_map): Use dependence_hash as the first
23081 template parameter.
23082 * tree-inline.c (remap_dependence_clique): Update accordingly.
23083 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
23084 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
23086 (addr_stridxptr): Update accordingly.
23087 * value-prof.c (profile_id_traits): Delete.
23088 (cgraph_node_map): Use profile_id_hash as the first template
23090 (init_node_map): Update accordingly.
23091 * config/alpha/alpha.c (string_traits): Delete.
23092 (machine_function::links): Use nofree_string_hash as the first
23093 template parameter.
23094 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
23095 * config/m32c/m32c.c (pragma_traits): Delete.
23096 (pragma_htab): Use nofree_string_hash as the first template parameter.
23097 (m32c_note_pragma_address): Update accordingly.
23098 * config/mep/mep.c (pragma_traits): Delete.
23099 (pragma_htab): Use nofree_string_hash as the first template parameter.
23100 (mep_note_pragma_flag): Update accordingly.
23101 * config/mips/mips.c (mips16_flip_traits): Delete.
23102 (mflip_mips16_htab): Use nofree_string_hash as the first template
23104 (mflip_mips16_use_mips16_p): Update accordingly.
23105 (local_alias_traits): Delete.
23106 (mips16_local_aliases): Use nofree_string_hash as the first template
23108 (mips16_local_alias): Update accordingly.
23110 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23112 * hash-map-traits.h (default_hashmap_traits): Delete.
23114 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23116 * hash-map-traits.h (unbounded_hashmap_traits): New class.
23117 (unbounded_int_hashmap_traits): Likewise.
23118 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
23120 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23122 * ipa-icf.h (symbol_compare_hash): New class.
23123 (symbol_compare_hashmap_traits): Use it.
23124 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
23125 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
23126 (mem_alloc_description::reverse_mem_map_t): Remove redundant
23127 default_hashmap_traits.
23128 * sanopt.c (sanopt_tree_triplet_hash): New class.
23129 (sanopt_tree_triplet_map_traits): Use it.
23131 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23133 * gengtype-parse.c (require_template_declaration): Allow '+' in
23134 template parameters. Consolidate cases.
23135 * hash-traits.h (int_hash): New class.
23136 * alias.c (alias_set_hash): New structure.
23137 (alias_set_traits): Use it.
23138 * symbol-summary.h (function_summary::map_hash): New class.
23139 (function_summary::summary_hashmap_traits): Use it.
23140 * tree-inline.h (dependence_hash): New class.
23141 (dependence_hasher): Use it.
23142 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
23143 * value-prof.c (profile_id_hash): New class.
23144 (profile_id_traits): Use it.
23146 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23148 * config/mips/mips.c (mips16_flip_traits): Use it.
23149 (local_alias_traits, mips16_local_aliases): Convert from a map of
23150 rtxes to a map of symbol names.
23151 (mips16_local_alias): Update accordingly.
23153 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23155 * hash-traits.h (string_hash, nofree_string_hash): New classes.
23156 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
23157 * passes.c (pass_registry_hasher): Likewise.
23158 * config/alpha/alpha.c (string_traits): Likewise.
23159 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
23160 * config/m32c/m32c.c (pragma_traits): Likewise.
23161 * config/mep/mep.c (pragma_traits): Likewise.
23163 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23165 * tree-hash-traits.h (tree_hash): New class.
23166 * except.c: Include tree-hash-traits.h.
23167 (tree_hash_traits): Use tree_hash.
23169 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23171 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
23172 * sese.c: Include tree-hash-traits.h.
23173 (rename_map_hasher): Use tree_ssa_name_hasher.
23175 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23177 * tree-hash-traits.h (tree_decl_hash): New class.
23178 * tree-ssa-strlen.c: Include tree-hash-traits.h.
23179 (stridxlist_hash_traits): Use tree_decl_hash.
23181 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23183 * tree-hash-traits.h: New file.
23184 (tree_operand_hash): New class.
23185 * sanopt.c: Include tree-hash-traits.h.
23186 (sanopt_tree_map_traits): Use tree_operand_hash.
23187 * tree-if-conv.c: Include tree-hash-traits.h.
23188 (phi_args_hash_traits): Use tree_operand_hash.
23189 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
23190 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
23192 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23194 * hash-map-traits.h: Include hash-traits.h.
23195 (simple_hashmap_traits): New class.
23196 * mem-stats.h (hash_map): Change the default traits to
23197 simple_hashmap_traits<default_hash_traits<Key> >.
23199 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23201 * hash-table.h: Update comments.
23203 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23205 * hash-traits.h (default_hash_traits): New structure.
23206 * hash-set.h (default_hashset_traits): Delete.
23207 (hash_set): Use default_hash_traits<Key> instead of
23208 default_hashset_traits. Delete hash_entry type and use Key directly.
23209 * ipa-devirt.c (pair_traits): Delete.
23210 (default_hash_traits <type_pair>): Override.
23211 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
23212 (odr_types_equivalent_p, add_type_duplicate): Likewise.
23214 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23216 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
23218 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23220 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
23221 (has_is_empty, is_empty_helper): Delete.
23222 (has_mark_deleted, mark_deleted_helper): Delete.
23223 (has_mark_empty, mark_empty_helper): Delete.
23224 (hash_table::is_deleted): Call the Descriptor unconditionally.
23225 (hash_table::is_empty): Likewise.
23226 (hash_table::mark_deleted): Likewise.
23227 (hash_table::mark_empty): Likewise.
23229 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23231 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
23232 redundant typedefs and members.
23233 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
23234 redundant typedefs.
23235 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
23236 * ipa-devirt.c (odr_name_hasher): Likewise.
23237 (polymorphic_call_target_hasher): Likewise.
23238 * ira-costs.c (cost_classes_hasher): Likewise.
23239 * statistics.c (stats_counter_hasher): Likewise.
23240 * trans-mem.c (log_entry_hasher): Likewise.
23241 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
23242 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
23243 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
23244 * var-tracking.c (variable_hasher): Likewise.
23245 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
23246 Remove redundant typedefs and members.
23248 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23250 * hash-traits.h (ggc_cache_hasher): Rename to...
23251 (ggc_cache_remove): ...this and remove typedefs.
23252 (ggc_cache_ptr_hash): New class.
23253 * hash-table.h: Update commentary.
23254 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
23255 rather than ggc_cache_hasher.
23256 (const_wide_int_hasher, reg_attr_hasher): Likewise.
23257 (const_double_hasher, const_fixed_hasher): Likewise.
23258 * function.c (insn_cache_hasher): Likewise.
23259 * trans-mem.c (tm_wrapper_hasher): Likewise.
23260 * tree.h (tree_decl_map_cache_hasher): Likewise.
23261 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
23262 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
23263 * ubsan.c (tree_type_map_cache_hasher): Likewise.
23264 * varasm.c (tm_clone_hasher): Likewise.
23265 * config/i386/i386.c (dllimport_hasher): Likewise.
23266 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
23267 (tree_hasher): Likewise.
23269 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23271 * hash-traits.h (ggc_hasher): Rename to...
23272 (ggc_remover): ...this and remove typedefs.
23273 (ggc_cache_hasher): Update accordingly. Add typedefs.
23274 (ggc_ptr_hash): New class.
23275 * hash-table.h: Update comment.
23276 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
23278 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
23279 (tree_descriptor_hasher): Likewise.
23280 * cgraph.c (function_version_hasher): Likewise.
23281 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
23282 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
23283 (dw_loc_list_hasher, addr_hasher): Likewise.
23284 * function.h (used_type_hasher): Likewise.
23285 * function.c (temp_address_hasher): Likewise.
23286 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
23287 * libfuncs.h (libfunc_hasher): Likewise.
23288 * lto-streamer.h (decl_state_hasher): Likewise.
23289 * optabs.c (libfunc_decl_hasher): Likewise.
23290 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
23291 * varasm.c (section_hasher, object_block_hasher): Likewise.
23292 (const_rtx_desc_hasher): Likewise.
23293 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
23294 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
23296 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23298 * hash-traits.h (free_ptr_hash): New class.
23299 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
23300 rather than typed_free_remove. Remove redudant typedefs.
23301 (external_ref_hasher): Likewise.
23302 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
23303 (ehspec_hasher): Likewise.
23304 * ggc-common.c (saving_hasher): Likewise.
23305 * gimplify.c (gimplify_hasher): Likewise.
23306 * haifa-sched.c (delay_i2_hasher): Likewise.
23307 * loop-invariant.c (invariant_expr_hasher): Likewise.
23308 * loop-iv.c (biv_entry_hasher): Likewise.
23309 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
23310 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
23311 * tree-cfg.c (locus_discrim_hasher): Likewise.
23312 * tree-eh.c (finally_tree_hasher): Likewise.
23313 * tree-into-ssa.c (var_info_hasher): Likewise.
23314 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
23315 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
23316 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
23317 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
23318 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
23319 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
23320 (shared_bitmap_hasher): Likewise.
23321 * tree-ssa-threadupdate.c (redirection_data): Likewise.
23322 * tree-vectorizer.h (peel_info_hasher): Likewise.
23323 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
23324 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
23326 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23328 * hash-table.h: Update comments.
23329 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
23330 (nofree_ptr_hash): New class.
23331 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
23332 than typed_noop_remove. Remove redudant typedefs.
23333 * attribs.c (attribute_hasher): Likewise.
23334 * cfg.c (bb_copy_hasher): Likewise.
23335 * cselib.c (cselib_hasher): Likewise.
23336 * dse.c (invariant_group_base_hasher): Likewise.
23337 * dwarf2cfi.c (trace_info_hasher): Likewise.
23338 * dwarf2out.c (macinfo_entry_hasher): Likewise.
23339 (comdat_type_hasher, loc_list_hasher): Likewise.
23340 * gcse.c (pre_ldst_expr_hasher): Likewise.
23341 * genmatch.c (id_base): Likewise.
23342 * genrecog.c (test_pattern_hasher): Likewise.
23343 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
23344 * haifa-sched.c (delay_i1_hasher): Likewise.
23345 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
23346 * ipa-icf.h (congruence_class_group_hash): Likewise.
23347 * ipa-profile.c (histogram_hash): Likewise.
23348 * ira-color.c (allocno_hard_regs_hasher): Likewise.
23349 * lto-streamer.h (string_slot_hasher): Likewise.
23350 * lto-streamer.c (tree_entry_hasher): Likewise.
23351 * plugin.c (event_hasher): Likewise.
23352 * postreload-gcse.c (expr_hasher): Likewise.
23353 * store-motion.c (st_expr_hasher): Likewise.
23354 * tree-sra.c (uid_decl_hasher): Likewise.
23355 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
23356 (ssa_name_var_hash): Likewise.
23357 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
23358 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
23359 * tree-ssa-pre.c (pre_expr_d): Likewise.
23360 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
23361 * vtable-verify.h (registration_hasher): Likewise.
23362 * vtable-verify.c (vtbl_map_hasher): Likewise.
23363 * config/arm/arm.c (libcall_hasher): Likewise.
23364 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
23365 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
23366 * config/sol2.c (comdat_entry_hasher): Likewise.
23367 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
23368 (print_fold_checksum, fold_checksum_tree): Likewise.
23369 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
23370 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
23371 (fold_build_call_array_loc): Likewise.
23372 * tree-ssa-ccp.c (gimple_htab): Likewise.
23373 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
23374 rather than pointer_type.
23376 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23378 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
23379 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
23381 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23383 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
23384 (ggc_hasher::ggc_mx): Likewise.
23385 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
23386 that duplicate ggc_hasher ones.
23388 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23390 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
23391 (gt_cleare_cache): Check here for deleted and empty entries.
23392 Replace handle_cache_entry with a call to keep_cache_entry.
23393 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
23394 (ggc_cache_hasher::keep_cache_entry): New function.
23395 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
23396 (tm_wrapper_hasher::keep_cache_entry): New function.
23397 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
23398 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
23399 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
23400 (type_cache_hasher::keep_cache_entry): New function.
23401 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
23402 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
23403 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
23404 (tree_type_map_cache_hasher::keep_cache_entry): New function.
23405 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
23406 (tm_clone_hasher::keep_cache_entry): New function.
23407 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
23408 (dllimport_hasher::keep_cache_entry): New function.
23410 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23412 * hash-table.h: Include hash-traits.h.
23413 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
23414 (ggc_cache_hasher): Move to...
23415 * hash-traits.h: ...this new file.
23417 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
23419 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
23420 struct cl_optimization.
23421 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
23422 * tree.c (make_node_stat): Allocate cl_optimization struct.
23423 (copy_node_stat): Allocate and copy cl_optimization struct.
23425 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
23427 * function.h (struct incoming_args): Move struct.
23428 (pass_by_reference, reference_callee_copied): Remove prototypes.
23429 * emit-rtl.h (struct incoming_args): Relocate struct here.
23430 * calls.h (pass_by_reference, reference_callee_copied): Relocate
23432 * function.c (pass_by_reference, reference_callee_copied): Move.
23433 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
23434 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
23435 * ipa-chkp.c: Include calls.h.
23437 2015-06-25 Andrew Macleod <amacleod@redhat.com>
23439 * alias.h (alias_set_type): Move typedef.
23440 * coretypes.h (alias_set_type): Relocate typedef here.
23441 * rtl.h: Don't include alias.h.
23443 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
23445 * cgraph.h (cgraph_rtl_info): Move to rtl.h
23446 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
23448 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
23449 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
23451 * calls.c: Include hard-reg-set.h before rtl.h.
23454 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
23455 Vladimir Makarov <vmakarov@redhat.com>
23457 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
23460 2015-06-25 Richard Biener <rguenther@suse.de>
23462 * fold-const.c (fold_binary_loc): Move simplification of
23463 (X <<>> C1) & C2 ...
23464 * match.pd: ... here.
23466 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
23468 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
23470 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23472 * match.pd: Add patterns for vec_conds between 1 and 0.
23474 2015-06-25 Richard Biener <rguenther@suse.de>
23476 * tree-vect-stmts.c (vectorizable_conversion): Do not set
23477 STMT_VINFO_VEC_STMT for SLP.
23478 (vectorizable_store): Likewise.
23479 (vectorizable_load): Likewise.
23480 (vect_transform_stmt): Catch SLP vectorization clobbering
23481 STMT_VINFO_VEC_STMT.
23483 2015-06-25 Richard Biener <rguenther@suse.de>
23485 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
23487 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
23488 cleanup resulting dead code and parameters.
23489 (vect_transform_slp_perm_load): Adjust.
23491 2015-06-25 Nick Clifton <nickc@redhat.com>
23493 * config/bfin/bfin.c (bfin_expand_prologue): Set
23494 current_function_static_stack_size if flag_stack_usage_info is set.
23495 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
23496 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
23497 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
23498 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
23500 2015-06-25 Tom de Vries <tom@codesourcery.com>
23502 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
23503 comment that the generated IV is unsigned.
23505 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23508 * config/arm/arm.c (arm_dbx_register_number): Return
23509 DWARF_FRAME_REGISTERS by default.
23511 2015-06-25 Tom de Vries <tom@codesourcery.com>
23513 * dominance.c (calculate_dominance_info): Fix verify_dominators call
23514 argument. Call verify_dominator when reusing dominator info.
23516 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
23519 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
23520 an additional element of the unspec vector. Modify indices
23522 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
23523 * config/sh/sh.c (prepare_move_operands): Pass incremented
23524 const_int to gen_GOTaddr2picreg.
23525 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
23527 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
23529 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
23530 Condition on TARGET_FLOAT.
23532 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
23534 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
23537 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
23539 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
23541 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
23542 aarch64_err_no_fpadvsimd.
23544 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
23545 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
23546 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
23547 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
23548 Turn error into assert, test TARGET_FLOAT.
23549 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
23552 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
23555 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
23557 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
23559 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
23561 2015-06-24 Renlin Li <renlin.li@arm.com>
23563 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
23564 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
23566 2015-06-24 Richard Biener <rguenther@suse.de>
23568 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
23570 (lower_opt_convert): Support lowering of conditional view_convert.
23571 (parser::parse_operation): Likewise.
23572 (parser::parse_for): Likewise.
23574 2015-06-24 Renlin Li <renlin.li@arm.com>
23576 * varasm.c (emit_local): Use unsigned int for align variable.
23578 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23581 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
23582 for negative numbers.
23584 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23586 PR rtl-optimization/66306
23587 * reload.c (find_reloads): Swap the match_dup info for
23588 commutative operands.
23590 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23592 * config/s390/vx-builtins.md
23593 ("vec_scatter_element<mode>_<non_vec_int>")
23594 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
23595 attribute with bhfgq.
23597 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23599 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
23601 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23603 * config/s390/s390-builtin-types.def: Add flag to indicate the
23604 options under which the function type is needed.
23605 * config/s390/s390-builtins.def: Add flag to indicate the options
23606 under which the builtin is enabled.
23607 * config/s390/s390-builtins.h: Add flags parameter to macro
23609 (bflags_for_builtin): New function.
23610 (flags_for_builtin): Renamed to ...
23611 (opflags_for_builtin): ... this.
23612 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
23613 flags_for_builtin to bflags_for_builtin and
23614 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
23615 * config/s390/s390.c: Add initialization of bflags_builtin and
23616 opflags_builtin arrays.
23617 Remove code for flags_builtin.
23618 (s390_init_builtins): Only create builtin function types if one of
23619 their flags is active.
23620 Only create builtins if all of their flags are active.
23621 (s390_expand_builtin): Rename flags_for_builtin to
23622 opflags_for_builtin.
23624 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23626 * config/s390/vecintrin.h: Remove internal builtins.
23628 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23630 * config/s390/s390.c (s390_secondary_reload): Fix check for
23631 GENERAL_REGS register class.
23633 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23635 * config/s390/s390.c (s390_support_vector_misalignment): Call
23636 default implementation for !TARGET_VX.
23638 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23640 * config/s390/s390.c (s390_legitimate_constant_p): Add
23643 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23645 * config/s390/s390.c (s390_vector_abi): New variable definition.
23646 (s390_check_type_for_vector_abi): New function.
23647 (TARGET_ASM_FILE_END): New macro definition.
23648 (s390_asm_file_end): New function.
23649 (s390_function_arg): Call s390_check_type_for_vector_abi.
23650 (s390_gimplify_va_arg): Likewise.
23651 * configure: Regenerate.
23652 * configure.ac: Check for .gnu_attribute Binutils feature.
23654 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
23657 * config/bfin/bfin.c (hwloop_optimize): Initialize
23658 JUMP_LABEL for newly created jump.
23660 2015-06-23 Tristan Gingold <gingold@adacore.com>
23662 * collect-utils.c (collect_wait): Unlink the response file here
23664 (do_wait): ...here.
23665 (utils_cleanup): ...and here.
23667 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
23669 * df-scan.c: Don't include target-def.h.
23670 * targhooks.c: Likewise.
23671 * config/arm/arm-c.c: Likewise.
23672 * config/i386/i386-c.c: Likewise.
23673 * config/nds32/nds32-cost.c: Likewise.
23674 * config/nds32/nds32-fp-as-gp.c: Likewise.
23675 * config/nds32/nds32-intrinsic.c: Likewise.
23676 * config/nds32/nds32-isr.c: Likewise.
23677 * config/nds32/nds32-md-auxiliary.c: Likewise.
23678 * config/nds32/nds32-memory-manipulation.c: Likewise.
23679 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
23680 * config/nds32/nds32-predicates.c: Likewise.
23682 2015-06-23 Richard Biener <rguenther@suse.de>
23684 PR tree-optimization/66636
23685 * tree-vect-stmts.c (vectorizable_store): Properly compute the
23686 def type for further defs for strided stores.
23688 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
23690 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
23691 conditional selects.
23692 (setcc_int<mode>, setcc_float<mode>): Reformat.
23694 2015-06-23 Marek Polacek <polacek@redhat.com>
23696 * match.pd ((x + y) - (x | y) -> x & y,
23697 (x + y) - (x & y) -> x | y): New patterns.
23699 2015-06-23 Ludovic Courtès <ludo@gnu.org>
23702 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
23703 '-dynamic-linker' within %{!shared: ...}.
23705 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
23708 * config/i386/predicates.md (addsub_vm_operator): New predicate.
23709 (addsub_vs_operator): Ditto.
23710 (addsub_vs_parallel): Ditto.
23711 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
23712 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
23713 Put minus RTX before plus and adjust vec_merge selector.
23714 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
23715 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
23716 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
23717 (addsub vec_merge splitters): New combiner splitters.
23718 (addsub vec_select/vec_concat splitters): Ditto.
23720 2015-06-23 Bin Cheng <bin.cheng@arm.com>
23722 PR tree-optimization/66449
23723 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
23724 POINTER_PLUS_EXPR for pointers.
23726 2015-06-23 Alan Modra <amodra@gmail.com>
23728 * rtlanal.c (commutative_operand_precedence): Correct comments.
23729 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
23730 declaration. Return an int. Distinguish REG,REG return from
23732 (struct simplify_plus_minus_op_data): Make local to function.
23733 (simplify_plus_minus): Don't set canonicalized if merely sorting
23734 registers. Avoid packing ops if nothing changes. White space fixes.
23736 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
23738 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
23739 -fdump-ada-spec is passed but not if -fsyntax-only is.
23741 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
23744 * lra-lives.c (process_bb_lives): Check insn copying the same
23745 reload pseudo and don't create a copy for it.
23747 2015-06-22 Tom de Vries <tom@codesourcery.com>
23749 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
23752 2015-06-22 Tom de Vries <tom@codesourcery.com>
23754 * builtins.def (DEF_GOMP_BUILTIN): Test
23755 'flag_tree_parallelize_loops > 1' instead of
23756 'flag_tree_parallelize_loops'. Test flag_cilkplus.
23758 2015-06-22 Tom de Vries <tom@codesourcery.com>
23760 * dominance.c (calculate_dominance_info): Verify dominators if
23763 2015-06-22 Marek Polacek <polacek@redhat.com>
23765 * match.pd ((x ^ y) ^ (x | y) -> x & y,
23766 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
23767 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
23768 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
23770 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
23773 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
23774 cost of embedded comparison.
23776 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23779 * config/rs6000/predicates.md (altivec_register_operand): Permit
23780 virtual stack registers.
23781 (vsx_register_operand): Likewise.
23782 (vfloat_operand): Likewise.
23783 (vint_operand): Likewise.
23784 (vlogical_operand): Likewise.
23786 2015-06-22 Richard Biener <rguenther@suse.de>
23788 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
23789 and single_scalar_iteration_cost members.
23790 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
23791 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
23792 (vect_get_single_scalar_iteration_cost): Remove.
23793 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
23794 Use LOOP_VINFO_SCALAR_ITERATION_COST.
23795 * tree-vect-loop.c (destroy_loop_vec_info): Free
23797 (vect_get_single_scalar_iteration_cost): Compute result into
23798 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
23799 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
23800 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
23801 (vect_estimate_min_profitable_iters): Use them.
23803 2015-06-22 Christian Bruel <christian.bruel@st.com>
23806 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
23807 (TARGET_INSERT_ATTRIBUTES): Define.
23808 (thumb_flipper): New var.
23809 * config/arm/arm.opt (-mflip-thumb): New switch.
23811 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
23812 Martin Liska <mliska@suse.cz>
23815 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
23816 construction of arg_types.
23817 (sem_function::sem_function): Likewise.
23818 (sem_function::~sem_function): Remove destruction of arg_types.
23819 (sem_function::compatible_parm_types_p): New function.
23820 (sem_function::equals_wpa): Reorg matching of return values
23821 and parameter types.
23822 (sem_function::equals_private): Reorg mathcing of argument types.
23823 (sem_function::parse_tree_args): Remove.
23824 * ipa-icf.h (init_wpa): Do not call it.
23825 (parse_tree_args): Remove.
23826 (compatible_parm_types_p): Declare.
23827 (result_type): Remove.
23828 (arg_types): Remove.
23830 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
23833 * ipa-polymorphic-call.c
23834 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
23835 initializing alias oracle; fix formating; set base_alias_set if it
23838 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
23840 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
23841 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
23842 (find_inc): Likewise.
23843 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
23845 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
23846 * df-scan.c (df_swap_refs): Remove.
23847 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
23848 * dominance.c (link_roots): Use std::swap instead of manually swapping.
23849 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
23850 * fold-const.c (fold_relational_const): Likewise.
23851 * genattrtab.c (simplify_test_exp): Likewise.
23852 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
23853 gimple_simplify): Likewise.
23854 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
23855 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
23856 * ipa-devirt.c (add_type_duplicate): Likewise.
23857 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
23858 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
23859 * lra.c (lra_create_copy): Likewise.
23860 * lto-streamer-out.c (DFS::DFS): Likewise.
23861 * modulo-sched.c (get_sched_window): Likewise.
23862 * omega.c (omega_pretty_print_problem): Likewise.
23863 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
23864 * reload1.c (reloads_unique_chain_p): Likewise.
23865 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
23866 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
23868 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
23870 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
23871 predicate_mem_writes): Likewise.
23872 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
23873 * tree-predcom.c (combine_chains): Likewise.
23874 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
23875 refs_may_alias_p_1): Likewise.
23876 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
23877 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
23878 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
23879 number_of_iterations_cond): Likewise.
23880 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
23881 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
23882 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
23883 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
23884 * tree-vrp.c (extract_range_from_binary_expr_1,
23885 extract_range_from_unary_expr_1): Likewise.
23887 2015-06-20 Marek Polacek <polacek@redhat.com>
23889 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
23891 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
23894 * config/sh/sh.c (prepare_move_operands): Replace subreg
23895 index term with R0 for base and index addressing.
23897 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
23899 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
23901 (movsf_aarch64): Change condition from register_operand to
23902 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
23903 load1. Change type for alternative 7 to store1.
23904 (movdf_aarch64): Likewise.
23906 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
23908 * config/vax/vax.md: Adjust sign/zero extend patterns to
23909 handle SUBREGs in operands[1].
23911 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23913 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
23914 of manually swapping.
23915 (expand_vec_perm_interleave2): Likewise.
23917 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
23919 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
23920 reuse bounds created for abnormal ssa names.
23922 2015-06-19 Jakub Jelinek <jakub@redhat.com>
23924 * config/nvptx/nvptx.md (allocate_stack): Rename to...
23925 (allocate_stack_<mode>): ... this, and add :P on both
23926 match_operand and unspec.
23927 (allocate_stack): New expander.
23929 2015-06-19 Christian Bruel <christian.bruel@st.com>
23933 * config/arm/arm.c (arm_set_current_function): Handle
23934 explicit default options.
23936 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
23938 * config/i386/i386.md (*movsicc_noc_zext): New insn.
23939 (zero-extended cmove with mem peephole2): New pattern.
23940 (cmove with mem peephole2): Merge patterns.
23942 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
23944 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
23946 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
23948 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
23949 * config/mips/mips.md (*madd4<mode>): Ditto.
23950 (*nmadd3<mode>) Ditto.
23951 (*nmadd4<mode>_fastmath): Ditto.
23952 (*nmadd3<mode>_fastmath): Ditto.
23953 (*nmsub4<mode>): Ditto.
23954 (*nmsub3<mode>): Ditto.
23955 (*nmsub4<mode>_fastmath): Ditto.
23956 (*nmsub3<mode>_fastmath): Ditto.
23958 2015-06-18 Michael Matz <matz@suse.de>
23960 PR middle-end/66253
23961 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
23962 grouped strided stores.
23963 (vectorizable_load): Don't use the DR from first_stmt in
23964 the non-SLP grouped strided case.
23966 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
23969 * function.c (assign_bounds): Add arguments assign_regs,
23970 assign_special, assign_bt.
23971 (assign_parms): For vararg functions handle bounds in BT
23972 and special slots after incoming vararg bounds.
23974 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
23976 PR middle-end/66568
23977 * cfgexpand.c (expand_return): Handle missing bounds.
23978 (expand_gimple_stmt_1): Likewise.
23979 * tree-chkp.c (chkp_expand_zero_bounds): New.
23980 * tree-chkp.h (chkp_expand_zero_bounds): New.
23982 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
23984 PR middle-end/66567
23985 * ipa-chkp.c (chkp_maybe_create_clone): Require
23986 functions to be instrumentable.
23987 * tree-chkp.c (chkp_replace_function_pointer): Use
23988 chkp_instrumentable_p instead of attribute check.
23990 2015-06-18 Richard Biener <rguenther@suse.de>
23992 PR tree-optimization/66510
23993 * tree-vect-stmts.c (vectorizable_load): Properly compute the
23994 number of vector loads for SLP permuted loads.
23995 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
23996 check the stride for loop vectorization.
23997 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
23998 vectorization factor.
23999 (vect_analyze_group_access): If the group size is not a power
24000 of two require a epilogue loop.
24001 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
24002 compute and optimizing and alias test pruning after final
24003 vectorization factor computation.
24004 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
24006 (vect_transform_slp_perm_load): Properly compute the original
24007 number of vector load stmts.
24009 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
24011 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
24012 "unlikely character , in @var" warning.
24014 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
24016 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
24017 (ix86_function_arg_advance): Ditto.
24018 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
24020 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
24022 * function.h (struct rtl_data): Remove struct and accessor macros.
24023 * emit-rtl.h (struct rtl_data): Relocate to here.
24024 * Makefile.in (GTFILES): Add emit-rtl.h.
24025 * df-core.c: Include emit-rtl.h.
24026 * genattrtab.c: Likewise.
24027 * genconditions.c: Likewise.
24028 * genpreds.c: Likewise.
24029 * genrecog.c: Likewise.
24030 * regcprop.c: Likewise.
24031 * resource.c: Likewise.
24032 * sched-rgn.c: Likewise.
24033 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
24034 * config/i386/winnt.c: Likewise.
24036 2015-06-17 Jakub Jelinek <jakub@redhat.com>
24038 PR middle-end/66429
24039 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
24040 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
24041 and has_force_vectorize_loops flags from cfun into
24043 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
24044 if simduid is non-NULL.
24045 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
24046 * passes.def (pass_simduid_cleanup): Add new pass after loop
24048 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
24049 indirection from htab argument's type.
24050 (shrink_simd_arrays): New function.
24051 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
24052 Don't call adjust_simduid_builtins if there are no loops.
24053 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
24054 (pass_simduid_cleanup::execute): New method.
24055 (make_pass_simduid_cleanup): New function.
24057 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
24059 * tree-core.h (tree_target_option): Make opts field a pointer to a
24060 cl_target_option instead of an instance of the struct.
24061 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
24063 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
24064 TARGET_OPTION_NODE.
24065 (copy_node_stat): Allocate and copy struct cl_target_option.
24067 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
24069 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
24070 Remove conditional exposure of prototypes.
24071 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
24072 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
24073 definitions in tree.h with functions.
24074 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
24076 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
24078 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
24080 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
24081 (*cmp<mode>_signed): ... this.
24082 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
24083 (*cmp<mode>_unsigned): ... this. Remove %b.
24085 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
24087 * coretypes.h: Include input.h and as-a.h.
24088 * rtl.h: Include input.h and as-a.h for generator files.
24089 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
24090 * vec.c: Don't include diagnostic-core.h.
24091 * alias.c: Do not include input.h, line-map.h or is-a.h.
24092 * asan.c: Likewise.
24093 * attribs.c: Likewise.
24094 * auto-inc-dec.c: Likewise.
24095 * auto-profile.c: Likewise.
24096 * bb-reorder.c: Likewise.
24097 * bt-load.c: Likewise.
24098 * builtins.c: Likewise.
24099 * caller-save.c: Likewise.
24100 * calls.c: Likewise.
24101 * ccmp.c: Likewise.
24103 * cfganal.c: Likewise.
24104 * cfgbuild.c: Likewise.
24105 * cfgcleanup.c: Likewise.
24106 * cfgexpand.c: Likewise.
24107 * cfghooks.c: Likewise.
24108 * cfgloop.c: Likewise.
24109 * cfgloop.h: Likewise.
24110 * cfgloopanal.c: Likewise.
24111 * cfgloopmanip.c: Likewise.
24112 * cfgrtl.c: Likewise.
24113 * cgraph.c: Likewise.
24114 * cgraphbuild.c: Likewise.
24115 * cgraphclones.c: Likewise.
24116 * cgraphunit.c: Likewise.
24117 * cilk-common.c: Likewise.
24118 * combine-stack-adj.c: Likewise.
24119 * combine.c: Likewise.
24120 * compare-elim.c: Likewise.
24121 * convert.c: Likewise.
24122 * coverage.c: Likewise.
24123 * cppbuiltin.c: Likewise.
24124 * cprop.c: Likewise.
24126 * cselib.c: Likewise.
24127 * data-streamer-in.c: Likewise.
24128 * data-streamer-out.c: Likewise.
24129 * data-streamer.c: Likewise.
24130 * dbxout.c: Likewise.
24133 * debug.c: Likewise.
24134 * df-core.c: Likewise.
24135 * df-problems.c: Likewise.
24136 * df-scan.c: Likewise.
24139 * diagnostic-core.h: Likewise.
24140 * diagnostic.c: Likewise.
24141 * dojump.c: Likewise.
24142 * dominance.c: Likewise.
24143 * domwalk.c: Likewise.
24144 * double-int.c: Likewise.
24146 * dumpfile.c: Likewise.
24147 * dumpfile.h: Likewise.
24148 * dwarf2asm.c: Likewise.
24149 * dwarf2cfi.c: Likewise.
24150 * dwarf2out.c: Likewise.
24151 * emit-rtl.c: Likewise.
24152 * et-forest.c: Likewise.
24153 * except.c: Likewise.
24154 * explow.c: Likewise.
24155 * expmed.c: Likewise.
24156 * expr.c: Likewise.
24157 * final.c: Likewise.
24158 * fixed-value.c: Likewise.
24159 * fold-const.c: Likewise.
24160 * function.c: Likewise.
24161 * fwprop.c: Likewise.
24162 * gcc-plugin.h: Likewise.
24163 * gcse.c: Likewise.
24164 * generic-match-head.c: Likewise.
24165 * ggc-page.c: Likewise.
24166 * gimple-builder.c: Likewise.
24167 * gimple-expr.c: Likewise.
24168 * gimple-fold.c: Likewise.
24169 * gimple-iterator.c: Likewise.
24170 * gimple-low.c: Likewise.
24171 * gimple-match-head.c: Likewise.
24172 * gimple-pretty-print.c: Likewise.
24173 * gimple-ssa-isolate-paths.c: Likewise.
24174 * gimple-ssa-strength-reduction.c: Likewise.
24175 * gimple-streamer-in.c: Likewise.
24176 * gimple-streamer-out.c: Likewise.
24177 * gimple-streamer.h: Likewise.
24178 * gimple-walk.c: Likewise.
24179 * gimple.c: Likewise.
24180 * gimplify-me.c: Likewise.
24181 * gimplify.c: Likewise.
24182 * godump.c: Likewise.
24183 * graph.c: Likewise.
24184 * graphite-blocking.c: Likewise.
24185 * graphite-dependences.c: Likewise.
24186 * graphite-interchange.c: Likewise.
24187 * graphite-isl-ast-to-gimple.c: Likewise.
24188 * graphite-optimize-isl.c: Likewise.
24189 * graphite-poly.c: Likewise.
24190 * graphite-scop-detection.c: Likewise.
24191 * graphite-sese-to-poly.c: Likewise.
24192 * graphite.c: Likewise.
24193 * haifa-sched.c: Likewise.
24194 * hw-doloop.c: Likewise.
24195 * ifcvt.c: Likewise.
24196 * init-regs.c: Likewise.
24197 * input.c: Likewise.
24198 * internal-fn.c: Likewise.
24199 * ipa-chkp.c: Likewise.
24200 * ipa-comdats.c: Likewise.
24201 * ipa-cp.c: Likewise.
24202 * ipa-devirt.c: Likewise.
24203 * ipa-icf-gimple.c: Likewise.
24204 * ipa-icf.c: Likewise.
24205 * ipa-inline-analysis.c: Likewise.
24206 * ipa-inline-transform.c: Likewise.
24207 * ipa-inline.c: Likewise.
24208 * ipa-polymorphic-call.c: Likewise.
24209 * ipa-profile.c: Likewise.
24210 * ipa-prop.c: Likewise.
24211 * ipa-pure-const.c: Likewise.
24212 * ipa-ref.c: Likewise.
24213 * ipa-reference.c: Likewise.
24214 * ipa-split.c: Likewise.
24215 * ipa-utils.c: Likewise.
24216 * ipa-visibility.c: Likewise.
24218 * ira-build.c: Likewise.
24219 * ira-color.c: Likewise.
24220 * ira-conflicts.c: Likewise.
24221 * ira-costs.c: Likewise.
24222 * ira-emit.c: Likewise.
24223 * ira-lives.c: Likewise.
24225 * jump.c: Likewise.
24226 * langhooks.c: Likewise.
24228 * loop-doloop.c: Likewise.
24229 * loop-init.c: Likewise.
24230 * loop-invariant.c: Likewise.
24231 * loop-iv.c: Likewise.
24232 * loop-unroll.c: Likewise.
24233 * lower-subreg.c: Likewise.
24234 * lra-assigns.c: Likewise.
24235 * lra-coalesce.c: Likewise.
24236 * lra-constraints.c: Likewise.
24237 * lra-eliminations.c: Likewise.
24238 * lra-lives.c: Likewise.
24239 * lra-remat.c: Likewise.
24240 * lra-spills.c: Likewise.
24242 * lto-cgraph.c: Likewise.
24243 * lto-compress.c: Likewise.
24244 * lto-opts.c: Likewise.
24245 * lto-section-in.c: Likewise.
24246 * lto-section-out.c: Likewise.
24247 * lto-streamer-in.c: Likewise.
24248 * lto-streamer-out.c: Likewise.
24249 * lto-streamer.c: Likewise.
24251 * mode-switching.c: Likewise.
24252 * modulo-sched.c: Likewise.
24253 * omega.c: Likewise.
24254 * omp-low.c: Likewise.
24255 * optabs.c: Likewise.
24256 * opts-global.c: Likewise.
24257 * opts.h: Likewise.
24258 * passes.c: Likewise.
24259 * plugin.c: Likewise.
24260 * postreload-gcse.c: Likewise.
24261 * postreload.c: Likewise.
24262 * predict.c: Likewise.
24263 * pretty-print.h: Likewise.
24264 * print-rtl.c: Likewise.
24265 * print-tree.c: Likewise.
24266 * profile.c: Likewise.
24267 * real.c: Likewise.
24268 * realmpfr.c: Likewise.
24269 * recog.c: Likewise.
24271 * reg-stack.c: Likewise.
24272 * regcprop.c: Likewise.
24273 * reginfo.c: Likewise.
24274 * regrename.c: Likewise.
24275 * regstat.c: Likewise.
24276 * reload.c: Likewise.
24277 * reload1.c: Likewise.
24278 * reorg.c: Likewise.
24279 * resource.c: Likewise.
24280 * rtl-chkp.c: Likewise.
24281 * rtl-error.c: Likewise.
24282 * rtlanal.c: Likewise.
24283 * rtlhooks.c: Likewise.
24284 * sanopt.c: Likewise.
24285 * sched-deps.c: Likewise.
24286 * sched-ebb.c: Likewise.
24287 * sched-rgn.c: Likewise.
24288 * sched-vis.c: Likewise.
24289 * sdbout.c: Likewise.
24290 * sel-sched-dump.c: Likewise.
24291 * sel-sched-ir.c: Likewise.
24292 * sel-sched.c: Likewise.
24293 * sese.c: Likewise.
24294 * shrink-wrap.c: Likewise.
24295 * simplify-rtx.c: Likewise.
24296 * stack-ptr-mod.c: Likewise.
24297 * statistics.c: Likewise.
24298 * stmt.c: Likewise.
24299 * stor-layout.c: Likewise.
24300 * store-motion.c: Likewise.
24301 * streamer-hooks.c: Likewise.
24302 * stringpool.c: Likewise.
24303 * symtab.c: Likewise.
24304 * target-globals.c: Likewise.
24305 * targhooks.c: Likewise.
24306 * toplev.c: Likewise.
24307 * tracer.c: Likewise.
24308 * trans-mem.c: Likewise.
24309 * tree-affine.c: Likewise.
24310 * tree-browser.c: Likewise.
24311 * tree-call-cdce.c: Likewise.
24312 * tree-cfg.c: Likewise.
24313 * tree-cfgcleanup.c: Likewise.
24314 * tree-chkp-opt.c: Likewise.
24315 * tree-chkp.c: Likewise.
24316 * tree-chrec.c: Likewise.
24317 * tree-complex.c: Likewise.
24318 * tree-data-ref.c: Likewise.
24319 * tree-dfa.c: Likewise.
24320 * tree-diagnostic.c: Likewise.
24321 * tree-dump.c: Likewise.
24322 * tree-eh.c: Likewise.
24323 * tree-emutls.c: Likewise.
24324 * tree-if-conv.c: Likewise.
24325 * tree-inline.c: Likewise.
24326 * tree-into-ssa.c: Likewise.
24327 * tree-iterator.c: Likewise.
24328 * tree-loop-distribution.c: Likewise.
24329 * tree-nested.c: Likewise.
24330 * tree-nrv.c: Likewise.
24331 * tree-object-size.c: Likewise.
24332 * tree-outof-ssa.c: Likewise.
24333 * tree-parloops.c: Likewise.
24334 * tree-phinodes.c: Likewise.
24335 * tree-predcom.c: Likewise.
24336 * tree-pretty-print.c: Likewise.
24337 * tree-profile.c: Likewise.
24338 * tree-scalar-evolution.c: Likewise.
24339 * tree-sra.c: Likewise.
24340 * tree-ssa-address.c: Likewise.
24341 * tree-ssa-alias.c: Likewise.
24342 * tree-ssa-ccp.c: Likewise.
24343 * tree-ssa-coalesce.c: Likewise.
24344 * tree-ssa-copy.c: Likewise.
24345 * tree-ssa-copyrename.c: Likewise.
24346 * tree-ssa-dce.c: Likewise.
24347 * tree-ssa-dom.c: Likewise.
24348 * tree-ssa-dse.c: Likewise.
24349 * tree-ssa-forwprop.c: Likewise.
24350 * tree-ssa-ifcombine.c: Likewise.
24351 * tree-ssa-live.c: Likewise.
24352 * tree-ssa-loop-ch.c: Likewise.
24353 * tree-ssa-loop-im.c: Likewise.
24354 * tree-ssa-loop-ivcanon.c: Likewise.
24355 * tree-ssa-loop-ivopts.c: Likewise.
24356 * tree-ssa-loop-manip.c: Likewise.
24357 * tree-ssa-loop-niter.c: Likewise.
24358 * tree-ssa-loop-prefetch.c: Likewise.
24359 * tree-ssa-loop-unswitch.c: Likewise.
24360 * tree-ssa-loop.c: Likewise.
24361 * tree-ssa-math-opts.c: Likewise.
24362 * tree-ssa-operands.c: Likewise.
24363 * tree-ssa-phiopt.c: Likewise.
24364 * tree-ssa-phiprop.c: Likewise.
24365 * tree-ssa-pre.c: Likewise.
24366 * tree-ssa-propagate.c: Likewise.
24367 * tree-ssa-reassoc.c: Likewise.
24368 * tree-ssa-sccvn.c: Likewise.
24369 * tree-ssa-scopedtables.c: Likewise.
24370 * tree-ssa-sink.c: Likewise.
24371 * tree-ssa-strlen.c: Likewise.
24372 * tree-ssa-structalias.c: Likewise.
24373 * tree-ssa-tail-merge.c: Likewise.
24374 * tree-ssa-ter.c: Likewise.
24375 * tree-ssa-threadedge.c: Likewise.
24376 * tree-ssa-threadupdate.c: Likewise.
24377 * tree-ssa-uncprop.c: Likewise.
24378 * tree-ssa-uninit.c: Likewise.
24379 * tree-ssa.c: Likewise.
24380 * tree-ssanames.c: Likewise.
24381 * tree-stdarg.c: Likewise.
24382 * tree-streamer-in.c: Likewise.
24383 * tree-streamer-out.c: Likewise.
24384 * tree-streamer.c: Likewise.
24385 * tree-switch-conversion.c: Likewise.
24386 * tree-tailcall.c: Likewise.
24387 * tree-vect-data-refs.c: Likewise.
24388 * tree-vect-generic.c: Likewise.
24389 * tree-vect-loop-manip.c: Likewise.
24390 * tree-vect-loop.c: Likewise.
24391 * tree-vect-patterns.c: Likewise.
24392 * tree-vect-slp.c: Likewise.
24393 * tree-vect-stmts.c: Likewise.
24394 * tree-vectorizer.c: Likewise.
24395 * tree-vrp.c: Likewise.
24396 * tree.c: Likewise.
24397 * tsan.c: Likewise.
24398 * ubsan.c: Likewise.
24399 * valtrack.c: Likewise.
24400 * value-prof.c: Likewise.
24401 * var-tracking.c: Likewise.
24402 * varasm.c: Likewise.
24403 * varpool.c: Likewise.
24404 * vmsdbgout.c: Likewise.
24405 * vtable-verify.c: Likewise.
24407 * wide-int.cc: Likewise.
24408 * xcoffout.c: Likewise.
24409 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
24410 * common/common-targhooks.c: Likewise.
24411 * config/aarch64/aarch64-builtins.c: Likewise.
24412 * config/aarch64/aarch64.c: Likewise.
24413 * config/alpha/alpha.c: Likewise.
24414 * config/arc/arc.c: Likewise.
24415 * config/arm/aarch-common.c: Likewise.
24416 * config/arm/arm-builtins.c: Likewise.
24417 * config/arm/arm-c.c: Likewise.
24418 * config/arm/arm.c: Likewise.
24419 * config/avr/avr-c.c: Likewise.
24420 * config/avr/avr-log.c: Likewise.
24421 * config/avr/avr.c: Likewise.
24422 * config/bfin/bfin.c: Likewise.
24423 * config/c6x/c6x.c: Likewise.
24424 * config/cr16/cr16.c: Likewise.
24425 * config/cris/cris.c: Likewise.
24426 * config/darwin-c.c: Likewise.
24427 * config/darwin.c: Likewise.
24428 * config/default-c.c: Likewise.
24429 * config/epiphany/epiphany.c: Likewise.
24430 * config/epiphany/mode-switch-use.c: Likewise.
24431 * config/epiphany/resolve-sw-modes.c: Likewise.
24432 * config/fr30/fr30.c: Likewise.
24433 * config/frv/frv.c: Likewise.
24434 * config/ft32/ft32.c: Likewise.
24435 * config/glibc-c.c: Likewise.
24436 * config/h8300/h8300.c: Likewise.
24437 * config/i386/i386-c.c: Likewise.
24438 * config/i386/i386.c: Likewise.
24439 * config/i386/msformat-c.c: Likewise.
24440 * config/i386/winnt-cxx.c: Likewise.
24441 * config/i386/winnt-stubs.c: Likewise.
24442 * config/i386/winnt.c: Likewise.
24443 * config/ia64/ia64-c.c: Likewise.
24444 * config/ia64/ia64.c: Likewise.
24445 * config/iq2000/iq2000.c: Likewise.
24446 * config/lm32/lm32.c: Likewise.
24447 * config/m32c/m32c-pragma.c: Likewise.
24448 * config/m32c/m32c.c: Likewise.
24449 * config/m32r/m32r.c: Likewise.
24450 * config/m68k/m68k.c: Likewise.
24451 * config/mcore/mcore.c: Likewise.
24452 * config/mep/mep-pragma.c: Likewise.
24453 * config/mep/mep.c: Likewise.
24454 * config/microblaze/microblaze-c.c: Likewise.
24455 * config/microblaze/microblaze.c: Likewise.
24456 * config/mips/mips.c: Likewise.
24457 * config/mmix/mmix.c: Likewise.
24458 * config/mn10300/mn10300.c: Likewise.
24459 * config/moxie/moxie.c: Likewise.
24460 * config/msp430/msp430-c.c: Likewise.
24461 * config/msp430/msp430.c: Likewise.
24462 * config/nds32/nds32-cost.c: Likewise.
24463 * config/nds32/nds32-fp-as-gp.c: Likewise.
24464 * config/nds32/nds32-intrinsic.c: Likewise.
24465 * config/nds32/nds32-isr.c: Likewise.
24466 * config/nds32/nds32-md-auxiliary.c: Likewise.
24467 * config/nds32/nds32-memory-manipulation.c: Likewise.
24468 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
24469 * config/nds32/nds32-predicates.c: Likewise.
24470 * config/nds32/nds32.c: Likewise.
24471 * config/nios2/nios2.c: Likewise.
24472 * config/nvptx/nvptx.c: Likewise.
24473 * config/pa/pa.c: Likewise.
24474 * config/pdp11/pdp11.c: Likewise.
24475 * config/rl78/rl78-c.c: Likewise.
24476 * config/rl78/rl78.c: Likewise.
24477 * config/rs6000/rs6000-c.c: Likewise.
24478 * config/rs6000/rs6000.c: Likewise.
24479 * config/rx/rx.c: Likewise.
24480 * config/s390/s390-c.c: Likewise.
24481 * config/s390/s390.c: Likewise.
24482 * config/sh/sh-c.c: Likewise.
24483 * config/sh/sh-mem.cc: Likewise.
24484 * config/sh/sh.c: Likewise.
24485 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
24486 * config/sh/sh_treg_combine.cc: Likewise.
24487 * config/sol2-c.c: Likewise.
24488 * config/sol2-cxx.c: Likewise.
24489 * config/sol2-stubs.c: Likewise.
24490 * config/sol2.c: Likewise.
24491 * config/sparc/sparc-c.c: Likewise.
24492 * config/sparc/sparc.c: Likewise.
24493 * config/spu/spu-c.c: Likewise.
24494 * config/spu/spu.c: Likewise.
24495 * config/stormy16/stormy16.c: Likewise.
24496 * config/tilegx/mul-tables.c: Likewise.
24497 * config/tilegx/tilegx-c.c: Likewise.
24498 * config/tilegx/tilegx.c: Likewise.
24499 * config/tilepro/mul-tables.c: Likewise.
24500 * config/tilepro/tilepro-c.c: Likewise.
24501 * config/tilepro/tilepro.c: Likewise.
24502 * config/v850/v850-c.c: Likewise.
24503 * config/v850/v850.c: Likewise.
24504 * config/vax/vax.c: Likewise.
24505 * config/visium/visium.c: Likewise.
24506 * config/vms/vms-c.c: Likewise.
24507 * config/vms/vms.c: Likewise.
24508 * config/vxworks.c: Likewise.
24509 * config/winnt-c.c: Likewise.
24510 * config/xtensa/xtensa.c: Likewise.
24512 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
24514 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
24516 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
24518 2015-06-17 Richard Biener <rguenther@suse.de>
24520 PR tree-optimization/66251
24521 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
24522 stmts for SLP strided stores.
24525 2015-05-22 Richard Biener <rguenther@suse.de>
24527 PR tree-optimization/66251
24528 * tree-vect-stmts.c (vectorizable_conversion): Properly
24529 set STMT_VINFO_VEC_STMT even for the SLP case.
24531 2015-05-26 Michael Matz <matz@suse.de>
24533 PR middle-end/66251
24534 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
24535 STMT_VINFO_VEC_STMT, also with SLP.
24537 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
24540 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
24541 (*avx_addsubv4df3_1s): Ditto.
24542 (*sse3_addsubv2df3_1): Ditto.
24543 (*sse3_addsubv2df3_1s): Ditto.
24544 (*avx_addsubv8sf3_1): Ditto.
24545 (*avx_addsubv8sf3_1s): Ditto.
24546 (*sse3_addsubv4sf3_1): Ditto.
24547 (*sse3_addsubv4sf3_1s): Ditto.
24549 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
24551 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
24552 (SYSROOT_SUFFIX_SPEC): Update.
24553 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
24554 (STARTFILE_PREFIX_SPEC): Update.
24555 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
24556 (MULTILIB_REQUIRED): New.
24557 (MULTILIB_OSDIRNAMES): New.
24558 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
24559 (MULTILIB_REQUIRED): New.
24560 (MULTILIB_OSDIRNAMES): New.
24562 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
24564 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
24565 * config/aarch64/aarch64-options-extensions.def: Update "fP",
24566 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
24567 * config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
24568 (AARCH64_FL_PAN): New.
24569 (AARCH64_FL_LOR): New.
24570 (AARCH64_FL_RDMA): New.
24571 (AARCH64_FL_FOR_ARCH8_1): New.
24572 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
24573 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
24575 2015-06-16 Martin Liska <mliska@suse.cz>
24577 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
24578 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
24581 2015-06-16 Richard Biener <rguenther@suse.de>
24583 * tree-vect-stmts.c (vectorizable_store): Adjust.
24584 (vectorizable_load): Likewise.
24585 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
24587 (vect_create_data_ref_ptr): Likewise.
24588 (bump_vector_ptr): Adjust.
24590 2015-06-16 Richard Biener <rguenther@suse.de>
24592 * tree-vect-stmts.c (vectorizable_load): Properly start loads
24593 with the first element if this is grouped loads.
24595 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
24597 * config/arm/arm-protos.h (struct tune_params): Rename
24598 log_op_non_sc to log_op_non_short_circuit, and rename enum
24599 values to expand SC to SHORT_CIRCUIT.
24600 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
24601 to LOG_OP_NON_SHORT_CIRCUIT.
24602 (arm_fastmul_tune):Likewise
24603 (arm_strongarm_tune): Likewise.
24604 (arm_xscale_tune): Likewise.
24605 (arm_9e_tune): Likewise.
24606 (arm_marvell_pj4_tune): Likewise.
24607 (arm_v6t2_tune): Likewise.
24608 (arm_cortex_tune): Likewise.
24609 (arm_cortex_a8_tune): Likewise.
24610 (arm_cortex_a7_tune): Likewise.
24611 (arm_cortex_a15_tune): Likewise.
24612 (arm_cortex_a53_tune): Likewise.
24613 (arm_cortex_a57_tune): Likewise.
24614 (arm_xgene1_tune): Likewise.
24615 (arm_cortex_a5_tune): Likewise.
24616 (arm_cortex_a9_tune): Likewise.
24617 (arm_cortex_a12_tune): Likewise.
24618 (arm_v7m_tune): Likewise.
24619 (arm_cortex_m7_tune): Likewise.
24620 (arm_v6m_tune): Likewise.
24621 (arm_fa726te_tune): Likewise.
24623 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
24625 * altivec.md: Delete UNSPEC_VMLADDUHM.
24626 (mulv4si3_p8): New pattern.
24627 (mulv4si3): Use it for POWER8.
24628 (mulv8hi3): Use vmladduhm with zero addend.
24629 (altivec_vmladduhm): Descriptive RTL.
24631 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
24633 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
24634 to use neon_move instead of mov_imm.
24635 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
24636 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
24638 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
24639 aarch64_float_const_zero_rtx_p check before TFmode check.
24640 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
24642 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
24643 code and attributes to match. Change condition from register_operand
24644 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
24645 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
24648 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
24651 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
24652 there is no parent.
24654 2015-06-14 Shiva Chen <shiva0217@gmail.com>
24656 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
24657 HOST_WIDE_INT parameter.
24659 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
24662 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
24663 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
24665 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
24667 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
24669 * rtl.h (classify_insn): Declare.
24670 * emit-rtl.c (classify_insn): Move to...
24671 * rtl.c: ...here and add generator support.
24672 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
24673 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
24674 * genemit.c (gen_emit_seq): New function.
24675 (gen_expand, gen_split): Use it.
24677 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
24679 * tree.c (make_vector_stat): Fix comment to state that the
24680 function returns a VECTOR_CST.
24682 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
24684 * gensupport.h (add_implicit_parallel): Declare.
24685 * genrecog.c (add_implicit_parallel): Move to...
24686 * gensupport.c (add_implicit_parallel): ...here.
24687 (process_one_cond_exec): Use it.
24688 * genemit.c (gen_insn): Likewise.
24690 2015-06-13 Iain Sandoe <iain@codesourcery.com>
24693 * passes.c (rest_of_decl_compilation): Do not register globals for
24694 early debug if they are declared in built-ins.
24696 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
24698 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
24700 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24702 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
24704 (noce_try_cmove_arith): Likewise.
24705 (noce_get_alt_condition): Likewise.
24707 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
24709 * common/config/i386/i386-common.c
24710 (OPTION_MASK_ISA_MWAITX_SET): New.
24711 (ix86_handle_option): Handle mwaitx.
24712 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
24713 (x86_64-*-*): Likewise.
24714 * config/i386/mwaitxintrin.h: New header.
24715 * config/i386/cpuid.h (bit_MWAITX): Define.
24716 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
24718 * config/i386/i386.opt (mwaitx): New.
24719 * config/i386/i386-builtin-types.def
24720 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
24721 * config/i386/i386-c.c: Define __MWAITX__ if needed.
24722 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
24724 (ix86_option_override_internal): Handle new option.
24725 (processor_alias_table): Added PTA_MWAITX.
24726 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
24727 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
24728 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
24729 IX86_BUILTIN_MONITORX built-ins.
24730 * config/i386/i386.h (TARGET_MWAITX): New.
24731 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
24733 (mwaitx): New pattern.
24734 (monitorx_<mode>): New pattern.
24735 * config/i386/x86intrin.h: Include mwaitxintrin.h.
24736 * doc/extend.texi: Document monitorx and mwaitx builtins.
24737 * doc/invoke.texi: Document -mmwaitx option.
24739 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
24741 * emit-rtl.c (need_atomic_barrier_p): Mask model with
24742 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
24744 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
24746 * dbxout.c (xcoff_debug_hooks): Provide a function for
24747 register_main_translation_unit hook.
24749 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
24751 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
24752 variants cases from switch.
24753 (rs6000_post_atomic_barrier): Same.
24754 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
24755 (rs6000_expand_atomic_exchange): Same.
24756 (rs6000_expand_atomic_op): Same.
24757 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
24758 SYNC variants cases from switch.
24759 (atomic_load): Same.
24760 (atomic_store): Same.
24762 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
24764 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
24765 CONST_INT for goto.
24767 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
24770 * dwarf2out.c (check_die): Check for common duplicate attributes.
24771 (add_location_or_const_value_attribute): Do not add duplicate
24773 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
24775 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
24776 (gen_type_die_with_usage): Call check_die.
24777 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
24779 2015-06-11 Jason Merrill <jason@redhat.com>
24781 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
24784 2015-06-11 Marek Polacek <polacek@redhat.com>
24786 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
24788 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
24791 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
24792 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
24793 (*addx_extend_sp32): Fix pasto.
24794 (*subx_extend): Rename into...
24795 (*subx_extend_sp32): ...this.
24796 (*adddi3_extend_sp32): Add earlyclobber.
24797 (*subdi3_insn_sp32): Likewise.
24798 (*subdi3_extend_sp32): Likewise.
24799 (*and_not_di_sp32): Likewise.
24800 (*or_not_di_sp32): Likewise.
24801 (*xor_not_di_sp32): Likewise.
24802 (*negdi2_sp32): Likewise.
24803 (*one_cmpldi2_sp32): Likewise.
24805 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
24807 * debug.h (struct gcc_debug_hooks): Add a
24808 register_main_translation_unit hook.
24809 * debug.c (do_nothing_debug_hooks): Provide a function for this
24811 * dbxout.c (dbx_debug_hooks): Likewise.
24812 * sdbout.c (sdb_debug_hooks): Likewise.
24813 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
24814 * dwarf2out.c (main_translation_unit): New global variable.
24815 (dwarf2out_register_main_translation_unit): New function
24816 implementing the new hook.
24817 (dwarf2_debug_hooks): Assign
24818 dwarf2out_register_main_translation_unit to this new hook.
24819 (dwarf2out_init): Associate any main translation unit to
24822 2015-06-11 Marek Polacek <polacek@redhat.com>
24824 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
24826 2015-06-11 Marek Polacek <polacek@redhat.com>
24828 * match.pd: Use single_use throughout.
24830 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24832 * config/arm/arm.c (arm_option_params_internal): When optimising
24833 for speed set max_insns_skipped when arm_restrict_it.
24835 2015-06-11 Christian Bruel <christian.bruel@st.com>
24838 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
24840 (arm_cpu_builtins): New function.
24841 (arm_pragma_target_parse): Call arm_cpu_builtins.
24842 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
24843 (arm_register_target_pragmas): Likewise.
24844 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
24845 Call arm_register_target_pragmas.
24846 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
24847 (arm_pragma_target_parse): Likewise.
24849 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
24851 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
24852 of the second operand.
24854 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
24857 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
24858 to prepare mask operand for AVX512 modes.
24860 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
24863 * doc/md.texi (Machine Constraints): Document that on the PowerPC
24864 if you use a constraint that targets a VSX register, you must use
24865 %x<n> in the template.
24867 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
24869 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
24870 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
24871 (define_insn "trap"): New definition.
24873 2015-06-10 Richard Biener <rguenther@suse.de>
24875 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
24877 (vect_supported_load_permutation_p): ... here. Handle
24878 supportable permutations in reductions.
24879 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
24880 for vectorizing strided group loads.
24882 2015-06-10 Jakub Jelinek <jakub@redhat.com>
24885 * config/i386/i386.c (ix86_split_long_move): For collisions
24886 involving direct tls segment refs, move the UNSPEC_TP possibly
24887 wrapped in ZERO_EXTEND out of the address for lea, to each of
24890 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24892 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
24893 dmb sy. Adjust tabs.
24895 2015-06-10 Tom de Vries <tom@codesourcery.com>
24897 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
24899 2015-06-10 Martin Liska <mliska@suse.cz>
24902 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
24903 all enum values in mem_alloc_origin.
24904 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
24906 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
24907 * bitmap.c (bitmap_register): Likewise.
24908 (dump_bitmap_statistics): Likewise.
24909 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
24910 (ggc_record_overhead): Likewise.
24911 * hash-map.h: Likewise.
24912 * hash-set.h: Likewise.
24913 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
24914 * hash-table.h: Likewise.
24915 * vec.c (vec_prefix::register_overhead): Likewise.
24916 (vec_prefix::release_overhead): Likewise.
24917 (dump_vec_loc_statistics): Likewise.
24919 2015-06-09 Christian Bruel <christian.bruel@st.com>
24922 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
24923 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
24924 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
24925 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
24926 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
24927 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
24928 (arm_valid_target_attribute_p): Likewise.
24929 (arm_set_current_function, arm_can_inline_p): Likewise.
24930 (arm_valid_target_attribute_rec): Likewise.
24931 (arm_previous_fndecl): New variable.
24932 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
24933 (TARGET_CAN_INLINE_P): Define.
24934 (arm_asm_trampoline_template): Emit mode.
24935 (arm_file_start): Don't set unified syntax.
24936 (arm_declare_function_name): Set unified syntax and mode.
24937 (arm_option_override): Init target_option_default_node.
24938 and target_option_current_node.
24939 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
24940 (*call_symbol): Likewise.
24941 * doc/extend.texi: Document ARM/Thumb target attribute.
24942 * doc/invoke.texi: Likewise.
24944 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
24947 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
24948 PR rtl-optimization/64164
24949 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
24950 * tree-ssa-copyrename.c: Removed.
24951 * opts.c (default_options_table): Drop -ftree-copyrename. Add
24952 -ftree-coalesce-vars.
24953 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
24954 * common.opt (ftree-copyrename): Ignore.
24955 (ftree-coalesce-inlined-vars): Likewise.
24956 * doc/invoke.texi: Remove the ignored options above.
24957 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
24958 * tree-ssa-coalesce.h: ... here.
24959 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
24960 headers required by it.
24961 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
24962 across variables when flag_tree_coalesce_vars. Check register
24963 use and promoted modes to allow coalescing. Moved to
24964 tree-ssa-coalesce.c.
24965 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
24966 with its member functions to tree-ssa-coalesce.c.
24967 (var_map_base_init): Likewise. Renamed to
24968 compute_samebase_partition_bases.
24969 (partition_view_normal): Drop want_bases parameter.
24970 (partition_view_bitmap): Likewise.
24971 * tree-ssa-live.h: Adjust declarations.
24972 * tree-ssa-coalesce.c: Include explow.h.
24973 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
24974 default defs at the entry point.
24975 (dump_part_var_map): New.
24976 (compute_optimized_partition_bases): New, called by...
24977 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
24978 of compute_samebase_partition_bases. Adjust.
24979 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
24980 * cfgexpand.c (leader_merge): New.
24981 (get_rtl_for_parm_ssa_default_def): New.
24982 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
24983 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
24984 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
24985 redundant MEM attr setting.
24986 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
24988 (expand_one_stack_var): ... this. New wrapper to check and
24989 skip already expanded SSA partitions.
24990 (record_alignment_for_reg_var): New, factored out of...
24991 (expand_one_var): ... this.
24992 (expand_one_ssa_partition): New.
24993 (adjust_one_expanded_partition_var): New.
24994 (expand_one_register_var): Check and skip already expanded SSA
24996 (expand_used_vars): Don't create DECLs for anonymous SSA
24997 names. Expand all SSA partitions, then adjust all SSA names.
24998 (pass::execute): Replace the loops that set
24999 SA.partition_to_pseudo from partition leaders and cleared
25000 DECL_RTL for multi-location variables, and that which used to
25001 rename vars and set attrs, with one that clears DECL_RTL and
25002 checks that PARMs and RESULTs default_defs match DECL_RTL.
25003 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
25004 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
25005 * explow.c (promote_ssa_mode): New.
25006 * explow.h (promote_ssa_mode): Declare.
25007 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
25008 * function.c: Include cfgexpand.h.
25009 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
25010 (use_register_for_parm_decl): Wrapper for the above to
25011 special-case the result_ptr.
25012 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
25013 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
25014 multiple locations.
25015 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
25016 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
25017 (assign_parm_setup_block): Prefer SSA-assigned location.
25018 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
25019 if stack_parm is NULL.
25020 (assign_parm_setup_stack): Prefer SSA-assigned location.
25021 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
25022 rtl before testing for pointer bounds. Special-case result_ptr.
25023 (expand_function_start): Maybe reset DECL_RTL of result.
25024 Prefer SSA-assigned location for result and static chain.
25025 Factor out DECL_RESULT and SET_DECL_RTL.
25026 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
25027 anonymous SSA names. Use promote_ssa_mode.
25028 (get_temp_reg): Likewise.
25029 (remove_ssa_form): Adjust.
25030 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
25031 and get its reg_usage for reg invalidation.
25032 (compute_bb_dataflow): Pass it insn.
25033 (emit_notes_in_bb): Likewise.
25034 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
25035 fail assert on conversion between unsigned types.
25037 2015-06-09 Tom de Vries <tom@codesourcery.com>
25039 PR tree-optimization/65460
25040 * omp-low.c (expand_omp_target): Set parallelized_function on
25041 cgraph_node for child_fn.
25043 2015-06-09 Tom de Vries <tom@codesourcery.com>
25045 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
25046 parallelized_function before add_new_function.
25048 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
25050 * gcc-plugin.h: Move decls to plugin.h and include it.
25051 * plugin.h: Relocate decls from gcc-plugin.h
25052 * ggc-page.c: Include required header files.
25053 * passes.c: Likewise.
25054 * cgraphunit.c: Likewise.
25056 2015-06-09 Tom de Vries <tom@codesourcery.com>
25058 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
25060 2015-06-09 Jason Merrill <jason@redhat.com>
25063 * toplev.c (check_global_declaration): Don't warn about a clone.
25065 2015-06-09 Marek Polacek <polacek@redhat.com>
25067 PR tree-optimization/66299
25068 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
25069 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
25072 2015-06-09 Richard Biener <rguenther@suse.de>
25074 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
25075 (vect_analyze_slp_instance): Instead do not falsely drop
25078 2015-06-09 Richard Biener <rguenther@suse.de>
25080 PR middle-end/66423
25081 * match.pd: Handle A % (unsigned)(1 << B).
25083 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
25085 * varasm.c (output_object_block_htab): Remove.
25086 (output_object_block_compare): New.
25087 (output_object_blocks): Sort named object_blocks before outputting
25090 2015-06-09 Richard Biener <rguenther@suse.de>
25092 PR tree-optimization/66419
25093 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
25094 consider GROUP_GAP when detecting a perfect subchain.
25096 2015-06-09 Nick Clifton <nickc@redhat.com>
25098 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
25099 place read only data in the .frodata section.
25101 2015-06-09 Shiva Chen <shiva0217@gmail.com>
25103 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
25104 (atomic_store<mode>): Likewise.
25106 2015-06-09 Richard Biener <rguenther@suse.de>
25108 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
25110 2015-06-09 Richard Biener <rguenther@suse.de>
25112 PR middle-end/66413
25113 * tree-inline.c (insert_init_debug_bind): Unshare value.
25115 2015-06-09 Richard Biener <rguenther@suse.de>
25117 PR tree-optimization/66396
25118 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
25119 Rename virtual operands.
25121 2015-06-09 Tom de Vries <tom@codesourcery.com>
25123 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
25124 always return false.
25126 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
25128 PR rtl-optimization/64164
25129 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
25130 * tree-ssa-copyrename.c: Removed.
25131 * opts.c (default_options_table): Drop -ftree-copyrename. Add
25132 -ftree-coalesce-vars.
25133 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
25134 * common.opt (ftree-copyrename): Ignore.
25135 (ftree-coalesce-inlined-vars): Likewise.
25136 * doc/invoke.texi: Remove the ignored options above.
25137 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
25138 * tree-ssa-coalesce.h: ... here.
25139 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
25140 headers required by it.
25141 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
25142 across variables when flag_tree_coalesce_vars. Check register
25143 use and promoted modes to allow coalescing. Moved to
25144 tree-ssa-coalesce.c.
25145 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
25146 with its member functions to tree-ssa-coalesce.c.
25147 (var_map_base_init): Likewise. Renamed to
25148 compute_samebase_partition_bases.
25149 (partition_view_normal): Drop want_bases parameter.
25150 (partition_view_bitmap): Likewise.
25151 * tree-ssa-live.h: Adjust declarations.
25152 * tree-ssa-coalesce.c: Include explow.h.
25153 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
25154 default defs at the entry point.
25155 (dump_part_var_map): New.
25156 (compute_optimized_partition_bases): New, called by...
25157 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
25158 of compute_samebase_partition_bases. Adjust.
25159 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
25160 * cfgexpand.c (leader_merge): New.
25161 (get_rtl_for_parm_ssa_default_def): New.
25162 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
25163 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
25164 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
25165 redundant MEM attr setting.
25166 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
25168 (expand_one_stack_var): ... this. New wrapper to check and
25169 skip already expanded SSA partitions.
25170 (record_alignment_for_reg_var): New, factored out of...
25171 (expand_one_var): ... this.
25172 (expand_one_ssa_partition): New.
25173 (adjust_one_expanded_partition_var): New.
25174 (expand_one_register_var): Check and skip already expanded SSA
25176 (expand_used_vars): Don't create DECLs for anonymous SSA
25177 names. Expand all SSA partitions, then adjust all SSA names.
25178 (pass::execute): Replace the loops that set
25179 SA.partition_to_pseudo from partition leaders and cleared
25180 DECL_RTL for multi-location variables, and that which used to
25181 rename vars and set attrs, with one that clears DECL_RTL and
25182 checks that PARMs and RESULTs default_defs match DECL_RTL.
25183 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
25184 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
25185 * explow.c (promote_ssa_mode): New.
25186 * explow.h (promote_ssa_mode): Declare.
25187 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
25188 * function.c: Include cfgexpand.h.
25189 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
25190 (use_register_for_parm_decl): Wrapper for the above to
25191 special-case the result_ptr.
25192 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
25193 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
25194 multiple locations.
25195 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
25196 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
25197 (assign_parm_setup_block): Prefer SSA-assigned location.
25198 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
25199 if stack_parm is NULL.
25200 (assign_parm_setup_stack): Prefer SSA-assigned location.
25201 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
25202 rtl before testing for pointer bounds. Special-case result_ptr.
25203 (expand_function_start): Maybe reset DECL_RTL of result.
25204 Prefer SSA-assigned location for result and static chain.
25205 Factor out DECL_RESULT and SET_DECL_RTL.
25206 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
25207 anonymous SSA names. Use promote_ssa_mode.
25208 (get_temp_reg): Likewise.
25209 (remove_ssa_form): Adjust.
25210 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
25211 and get its reg_usage for reg invalidation.
25212 (compute_bb_dataflow): Pass it insn.
25213 (emit_notes_in_bb): Likewise.
25214 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
25215 fail assert on conversion between unsigned types.
25217 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
25220 * tree-inline.c (reset_debug_binding): New.
25221 (reset_debug_bindings): Likewise.
25222 (expand_call_inline): Call it.
25224 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
25226 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
25229 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
25231 * lto-streamer-out.c (lto_output_location): Stream
25232 reserved locations correctly.
25233 * lto-streamer-in.c (lto_output_location): Likewise.
25235 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
25237 * coretypes.h: Include hash-table.h and hash-set.h for host files.
25238 * ggc.h: Don't include statistics.h>
25239 * hash-map.h: Remove all includes.
25240 * hash-set.h: Likewise.
25241 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
25242 the include list. Remove <new>.
25243 * inchash.h: Remove all includes.
25244 * mem-stats.h: Likewise.
25245 * vec.h: No special processing for generators or ggc.
25246 * alias.c : Adjust include files.
25247 * alloc-pool.c : Likewise.
25248 * alloc-pool.h : Likewise.
25249 * asan.c : Likewise.
25250 * attribs.c : Likewise.
25251 * auto-inc-dec.c : Likewise.
25252 * auto-profile.c : Likewise.
25253 * bb-reorder.c : Likewise.
25254 * bitmap.c : Likewise.
25255 * bitmap.h : Likewise.
25256 * bt-load.c : Likewise.
25257 * builtins.c : Likewise.
25258 * caller-save.c : Likewise.
25259 * calls.c : Likewise.
25260 * ccmp.c : Likewise.
25261 * cfg.c : Likewise.
25262 * cfganal.c : Likewise.
25263 * cfgbuild.c : Likewise.
25264 * cfgcleanup.c : Likewise.
25265 * cfgexpand.c : Likewise.
25266 * cfghooks.c : Likewise.
25267 * cfgloop.c : Likewise.
25268 * cfgloop.h : Likewise.
25269 * cfgloopanal.c : Likewise.
25270 * cfgloopmanip.c : Likewise.
25271 * cfgrtl.c : Likewise.
25272 * cgraph.c : Likewise.
25273 * cgraphbuild.c : Likewise.
25274 * cgraphclones.c : Likewise.
25275 * cgraphunit.c : Likewise.
25276 * cilk-common.c : Likewise.
25277 * combine-stack-adj.c : Likewise.
25278 * combine.c : Likewise.
25279 * compare-elim.c : Likewise.
25280 * context.c : Likewise.
25281 * convert.c : Likewise.
25282 * coverage.c : Likewise.
25283 * cppbuiltin.c : Likewise.
25284 * cprop.c : Likewise.
25285 * cse.c : Likewise.
25286 * cselib.c : Likewise.
25287 * data-streamer-in.c : Likewise.
25288 * data-streamer-out.c : Likewise.
25289 * data-streamer.c : Likewise.
25290 * data-streamer.h : Likewise.
25291 * dbxout.c : Likewise.
25292 * dce.c : Likewise.
25293 * ddg.c : Likewise.
25294 * debug.c : Likewise.
25295 * df-core.c : Likewise.
25296 * df-problems.c : Likewise.
25297 * df-scan.c : Likewise.
25299 * dfp.c : Likewise.
25300 * dojump.c : Likewise.
25301 * dominance.c : Likewise.
25302 * domwalk.c : Likewise.
25303 * double-int.c : Likewise.
25304 * dse.c : Likewise.
25305 * dumpfile.c : Likewise.
25306 * dwarf2asm.c : Likewise.
25307 * dwarf2cfi.c : Likewise.
25308 * dwarf2out.c : Likewise.
25309 * emit-rtl.c : Likewise.
25310 * et-forest.c : Likewise.
25311 * except.c : Likewise.
25312 * except.h : Likewise.
25313 * explow.c : Likewise.
25314 * expmed.c : Likewise.
25315 * expr.c : Likewise.
25316 * final.c : Likewise.
25317 * fixed-value.c : Likewise.
25318 * fold-const.c : Likewise.
25319 * function.c : Likewise.
25320 * fwprop.c : Likewise.
25321 * gcc-plugin.h : Likewise.
25322 * gcc.c : Likewise.
25323 * gcse-common.c : Likewise.
25324 * gcse.c : Likewise.
25325 * genattrtab.c : Likewise.
25326 * genautomata.c : Likewise.
25327 * genconditions.c : Likewise.
25328 * genemit.c : Likewise.
25329 * generic-match-head.c : Likewise.
25330 * genextract.c : Likewise.
25331 * gengtype-state.c : Likewise.
25332 * gengtype.c : Likewise.
25333 * genhooks.c : Likewise.
25334 * genmatch.c : Likewise.
25335 * genmodes.c : Likewise.
25336 * genrecog.c : Likewise.
25337 * gensupport.c : Likewise.
25338 * ggc-common.c : Likewise.
25339 * ggc-internal.h : Likewise.
25340 * ggc-none.c : Likewise.
25341 * ggc-page.c : Likewise.
25342 * gimple-builder.c : Likewise.
25343 * gimple-expr.c : Likewise.
25344 * gimple-fold.c : Likewise.
25345 * gimple-iterator.c : Likewise.
25346 * gimple-low.c : Likewise.
25347 * gimple-match-head.c : Likewise.
25348 * gimple-pretty-print.c : Likewise.
25349 * gimple-ssa-isolate-paths.c : Likewise.
25350 * gimple-ssa-strength-reduction.c : Likewise.
25351 * gimple-ssa.h : Likewise.
25352 * gimple-streamer-in.c : Likewise.
25353 * gimple-streamer-out.c : Likewise.
25354 * gimple-streamer.h : Likewise.
25355 * gimple-walk.c : Likewise.
25356 * gimple.c : Likewise.
25357 * gimplify-me.c : Likewise.
25358 * gimplify.c : Likewise.
25359 * godump.c : Likewise.
25360 * graph.c : Likewise.
25361 * graphds.c : Likewise.
25362 * graphite-blocking.c : Likewise.
25363 * graphite-dependences.c : Likewise.
25364 * graphite-interchange.c : Likewise.
25365 * graphite-isl-ast-to-gimple.c : Likewise.
25366 * graphite-optimize-isl.c : Likewise.
25367 * graphite-poly.c : Likewise.
25368 * graphite-scop-detection.c : Likewise.
25369 * graphite-sese-to-poly.c : Likewise.
25370 * graphite.c : Likewise.
25371 * haifa-sched.c : Likewise.
25372 * hard-reg-set.h : Likewise.
25373 * hw-doloop.c : Likewise.
25374 * ifcvt.c : Likewise.
25375 * inchash.c : Likewise.
25376 * incpath.c : Likewise.
25377 * init-regs.c : Likewise.
25378 * input.c : Likewise.
25379 * internal-fn.c : Likewise.
25380 * ipa-chkp.c : Likewise.
25381 * ipa-comdats.c : Likewise.
25382 * ipa-cp.c : Likewise.
25383 * ipa-devirt.c : Likewise.
25384 * ipa-icf-gimple.c : Likewise.
25385 * ipa-icf.c : Likewise.
25386 * ipa-inline-analysis.c : Likewise.
25387 * ipa-inline-transform.c : Likewise.
25388 * ipa-inline.c : Likewise.
25389 * ipa-polymorphic-call.c : Likewise.
25390 * ipa-profile.c : Likewise.
25391 * ipa-prop.c : Likewise.
25392 * ipa-pure-const.c : Likewise.
25393 * ipa-ref.c : Likewise.
25394 * ipa-reference.c : Likewise.
25395 * ipa-split.c : Likewise.
25396 * ipa-utils.c : Likewise.
25397 * ipa-visibility.c : Likewise.
25398 * ipa.c : Likewise.
25399 * ira-build.c : Likewise.
25400 * ira-color.c : Likewise.
25401 * ira-conflicts.c : Likewise.
25402 * ira-costs.c : Likewise.
25403 * ira-emit.c : Likewise.
25404 * ira-lives.c : Likewise.
25405 * ira.c : Likewise.
25406 * jump.c : Likewise.
25407 * langhooks.c : Likewise.
25408 * lcm.c : Likewise.
25409 * libfuncs.h : Likewise.
25410 * lists.c : Likewise.
25411 * loop-doloop.c : Likewise.
25412 * loop-init.c : Likewise.
25413 * loop-invariant.c : Likewise.
25414 * loop-iv.c : Likewise.
25415 * loop-unroll.c : Likewise.
25416 * lower-subreg.c : Likewise.
25417 * lra-assigns.c : Likewise.
25418 * lra-coalesce.c : Likewise.
25419 * lra-constraints.c : Likewise.
25420 * lra-eliminations.c : Likewise.
25421 * lra-lives.c : Likewise.
25422 * lra-remat.c : Likewise.
25423 * lra-spills.c : Likewise.
25424 * lra.c : Likewise.
25425 * lto-cgraph.c : Likewise.
25426 * lto-compress.c : Likewise.
25427 * lto-opts.c : Likewise.
25428 * lto-section-in.c : Likewise.
25429 * lto-section-out.c : Likewise.
25430 * lto-streamer-in.c : Likewise.
25431 * lto-streamer-out.c : Likewise.
25432 * lto-streamer.c : Likewise.
25433 * lto-streamer.h : Likewise.
25434 * mcf.c : Likewise.
25435 * mode-switching.c : Likewise.
25436 * modulo-sched.c : Likewise.
25437 * omega.c : Likewise.
25438 * omp-low.c : Likewise.
25439 * optabs.c : Likewise.
25440 * opts-global.c : Likewise.
25441 * opts.h : Likewise.
25442 * passes.c : Likewise.
25443 * plugin.c : Likewise.
25444 * postreload-gcse.c : Likewise.
25445 * postreload.c : Likewise.
25446 * predict.c : Likewise.
25447 * print-rtl.c : Likewise.
25448 * print-tree.c : Likewise.
25449 * profile.c : Likewise.
25450 * read-md.c : Likewise.
25451 * read-md.h : Likewise.
25452 * read-rtl.c : Likewise.
25453 * real.c : Likewise.
25454 * realmpfr.c : Likewise.
25455 * recog.c : Likewise.
25456 * ree.c : Likewise.
25457 * reg-stack.c : Likewise.
25458 * regcprop.c : Likewise.
25459 * reginfo.c : Likewise.
25460 * regrename.c : Likewise.
25461 * regstat.c : Likewise.
25462 * reload.c : Likewise.
25463 * reload1.c : Likewise.
25464 * reorg.c : Likewise.
25465 * resource.c : Likewise.
25466 * rtl-chkp.c : Likewise.
25467 * rtl.c : Likewise.
25468 * rtl.h : Likewise.
25469 * rtlanal.c : Likewise.
25470 * rtlhash.c : Likewise.
25471 * rtlhash.h : Likewise.
25472 * rtlhooks.c : Likewise.
25473 * sanopt.c : Likewise.
25474 * sched-deps.c : Likewise.
25475 * sched-ebb.c : Likewise.
25476 * sched-rgn.c : Likewise.
25477 * sched-vis.c : Likewise.
25478 * sdbout.c : Likewise.
25479 * sel-sched-dump.c : Likewise.
25480 * sel-sched-ir.c : Likewise.
25481 * sel-sched-ir.h : Likewise.
25482 * sel-sched.c : Likewise.
25483 * sese.c : Likewise.
25484 * shrink-wrap.c : Likewise.
25485 * shrink-wrap.h : Likewise.
25486 * simplify-rtx.c : Likewise.
25487 * stack-ptr-mod.c : Likewise.
25488 * statistics.c : Likewise.
25489 * stmt.c : Likewise.
25490 * stor-layout.c : Likewise.
25491 * store-motion.c : Likewise.
25492 * stringpool.c : Likewise.
25493 * symtab.c : Likewise.
25494 * target-globals.c : Likewise.
25495 * targhooks.c : Likewise.
25496 * tlink.c : Likewise.
25497 * toplev.c : Likewise.
25498 * tracer.c : Likewise.
25499 * trans-mem.c : Likewise.
25500 * tree-affine.c : Likewise.
25501 * tree-affine.h : Likewise.
25502 * tree-browser.c : Likewise.
25503 * tree-call-cdce.c : Likewise.
25504 * tree-cfg.c : Likewise.
25505 * tree-cfgcleanup.c : Likewise.
25506 * tree-chkp-opt.c : Likewise.
25507 * tree-chkp.c : Likewise.
25508 * tree-chrec.c : Likewise.
25509 * tree-complex.c : Likewise.
25510 * tree-data-ref.c : Likewise.
25511 * tree-dfa.c : Likewise.
25512 * tree-diagnostic.c : Likewise.
25513 * tree-dump.c : Likewise.
25514 * tree-eh.c : Likewise.
25515 * tree-eh.h : Likewise.
25516 * tree-emutls.c : Likewise.
25517 * tree-hasher.h : Likewise.
25518 * tree-if-conv.c : Likewise.
25519 * tree-inline.c : Likewise.
25520 * tree-inline.h : Likewise.
25521 * tree-into-ssa.c : Likewise.
25522 * tree-iterator.c : Likewise.
25523 * tree-loop-distribution.c : Likewise.
25524 * tree-nested.c : Likewise.
25525 * tree-nrv.c : Likewise.
25526 * tree-object-size.c : Likewise.
25527 * tree-outof-ssa.c : Likewise.
25528 * tree-parloops.c : Likewise.
25529 * tree-phinodes.c : Likewise.
25530 * tree-predcom.c : Likewise.
25531 * tree-pretty-print.c : Likewise.
25532 * tree-profile.c : Likewise.
25533 * tree-scalar-evolution.c : Likewise.
25534 * tree-sra.c : Likewise.
25535 * tree-ssa-address.c : Likewise.
25536 * tree-ssa-alias.c : Likewise.
25537 * tree-ssa-ccp.c : Likewise.
25538 * tree-ssa-coalesce.c : Likewise.
25539 * tree-ssa-copy.c : Likewise.
25540 * tree-ssa-copyrename.c : Likewise.
25541 * tree-ssa-dce.c : Likewise.
25542 * tree-ssa-dom.c : Likewise.
25543 * tree-ssa-dse.c : Likewise.
25544 * tree-ssa-forwprop.c : Likewise.
25545 * tree-ssa-ifcombine.c : Likewise.
25546 * tree-ssa-live.c : Likewise.
25547 * tree-ssa-loop-ch.c : Likewise.
25548 * tree-ssa-loop-im.c : Likewise.
25549 * tree-ssa-loop-ivcanon.c : Likewise.
25550 * tree-ssa-loop-ivopts.c : Likewise.
25551 * tree-ssa-loop-manip.c : Likewise.
25552 * tree-ssa-loop-niter.c : Likewise.
25553 * tree-ssa-loop-prefetch.c : Likewise.
25554 * tree-ssa-loop-unswitch.c : Likewise.
25555 * tree-ssa-loop.c : Likewise.
25556 * tree-ssa-math-opts.c : Likewise.
25557 * tree-ssa-operands.c : Likewise.
25558 * tree-ssa-phiopt.c : Likewise.
25559 * tree-ssa-phiprop.c : Likewise.
25560 * tree-ssa-pre.c : Likewise.
25561 * tree-ssa-propagate.c : Likewise.
25562 * tree-ssa-reassoc.c : Likewise.
25563 * tree-ssa-sccvn.c : Likewise.
25564 * tree-ssa-scopedtables.c : Likewise.
25565 * tree-ssa-sink.c : Likewise.
25566 * tree-ssa-strlen.c : Likewise.
25567 * tree-ssa-structalias.c : Likewise.
25568 * tree-ssa-tail-merge.c : Likewise.
25569 * tree-ssa-ter.c : Likewise.
25570 * tree-ssa-threadedge.c : Likewise.
25571 * tree-ssa-threadupdate.c : Likewise.
25572 * tree-ssa-uncprop.c : Likewise.
25573 * tree-ssa-uninit.c : Likewise.
25574 * tree-ssa.c : Likewise.
25575 * tree-ssanames.c : Likewise.
25576 * tree-stdarg.c : Likewise.
25577 * tree-streamer-in.c : Likewise.
25578 * tree-streamer-out.c : Likewise.
25579 * tree-streamer.c : Likewise.
25580 * tree-streamer.h : Likewise.
25581 * tree-switch-conversion.c : Likewise.
25582 * tree-tailcall.c : Likewise.
25583 * tree-vect-data-refs.c : Likewise.
25584 * tree-vect-generic.c : Likewise.
25585 * tree-vect-loop-manip.c : Likewise.
25586 * tree-vect-loop.c : Likewise.
25587 * tree-vect-patterns.c : Likewise.
25588 * tree-vect-slp.c : Likewise.
25589 * tree-vect-stmts.c : Likewise.
25590 * tree-vectorizer.c : Likewise.
25591 * tree-vectorizer.h : Likewise.
25592 * tree-vrp.c : Likewise.
25593 * tree.c : Likewise.
25594 * tsan.c : Likewise.
25595 * ubsan.c : Likewise.
25596 * valtrack.c : Likewise.
25597 * valtrack.h : Likewise.
25598 * value-prof.c : Likewise.
25599 * var-tracking.c : Likewise.
25600 * varasm.c : Likewise.
25601 * varpool.c : Likewise.
25603 * vmsdbgout.c : Likewise.
25604 * vtable-verify.c : Likewise.
25605 * vtable-verify.h : Likewise.
25606 * web.c : Likewise.
25607 * wide-int.cc : Likewise.
25608 * xcoffout.c : Likewise.
25609 * config/aarch64/aarch64-builtins.c : Likewise.
25610 * config/aarch64/aarch64.c : Likewise.
25611 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
25612 * config/alpha/alpha.c : Likewise.
25613 * config/arc/arc.c : Likewise.
25614 * config/arm/aarch-common.c : Likewise.
25615 * config/arm/arm-builtins.c : Likewise.
25616 * config/arm/arm-c.c : Likewise.
25617 * config/arm/arm.c : Likewise.
25618 * config/avr/avr-c.c : Likewise.
25619 * config/avr/avr-log.c : Likewise.
25620 * config/avr/avr.c : Likewise.
25621 * config/bfin/bfin.c : Likewise.
25622 * config/c6x/c6x.c : Likewise.
25623 * config/cr16/cr16.c : Likewise.
25624 * config/cris/cris.c : Likewise.
25625 * config/darwin-c.c : Likewise.
25626 * config/darwin.c : Likewise.
25627 * config/default-c.c : Likewise.
25628 * config/epiphany/epiphany.c : Likewise.
25629 * config/epiphany/mode-switch-use.c : Likewise.
25630 * config/epiphany/resolve-sw-modes.c : Likewise.
25631 * config/fr30/fr30.c : Likewise.
25632 * config/frv/frv.c : Likewise.
25633 * config/ft32/ft32.c : Likewise.
25634 * config/glibc-c.c : Likewise.
25635 * config/h8300/h8300.c : Likewise.
25636 * config/i386/i386-c.c : Likewise.
25637 * config/i386/i386.c : Likewise.
25638 * config/i386/msformat-c.c : Likewise.
25639 * config/i386/winnt-cxx.c : Likewise.
25640 * config/i386/winnt-stubs.c : Likewise.
25641 * config/i386/winnt.c : Likewise.
25642 * config/ia64/ia64-c.c : Likewise.
25643 * config/ia64/ia64.c : Likewise.
25644 * config/iq2000/iq2000.c : Likewise.
25645 * config/lm32/lm32.c : Likewise.
25646 * config/m32c/m32c-pragma.c : Likewise.
25647 * config/m32c/m32c.c : Likewise.
25648 * config/m32r/m32r.c : Likewise.
25649 * config/m68k/m68k.c : Likewise.
25650 * config/mcore/mcore.c : Likewise.
25651 * config/mep/mep-pragma.c : Likewise.
25652 * config/mep/mep.c : Likewise.
25653 * config/microblaze/microblaze-c.c : Likewise.
25654 * config/microblaze/microblaze.c : Likewise.
25655 * config/mips/mips.c : Likewise.
25656 * config/mmix/mmix.c : Likewise.
25657 * config/mn10300/mn10300.c : Likewise.
25658 * config/moxie/moxie.c : Likewise.
25659 * config/msp430/msp430-c.c : Likewise.
25660 * config/msp430/msp430.c : Likewise.
25661 * config/nds32/nds32-cost.c : Likewise.
25662 * config/nds32/nds32-fp-as-gp.c : Likewise.
25663 * config/nds32/nds32-intrinsic.c : Likewise.
25664 * config/nds32/nds32-isr.c : Likewise.
25665 * config/nds32/nds32-md-auxiliary.c : Likewise.
25666 * config/nds32/nds32-memory-manipulation.c : Likewise.
25667 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
25668 * config/nds32/nds32-predicates.c : Likewise.
25669 * config/nds32/nds32.c : Likewise.
25670 * config/nios2/nios2.c : Likewise.
25671 * config/nvptx/nvptx.c : Likewise.
25672 * config/pa/pa.c : Likewise.
25673 * config/pdp11/pdp11.c : Likewise.
25674 * config/rl78/rl78-c.c : Likewise.
25675 * config/rl78/rl78.c : Likewise.
25676 * config/rs6000/rs6000-c.c : Likewise.
25677 * config/rs6000/rs6000.c : Likewise.
25678 * config/rx/rx.c : Likewise.
25679 * config/s390/s390-c.c : Likewise.
25680 * config/s390/s390.c : Likewise.
25681 * config/sh/sh-c.c : Likewise.
25682 * config/sh/sh-mem.cc : Likewise.
25683 * config/sh/sh.c : Likewise.
25684 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
25685 * config/sh/sh_treg_combine.cc : Likewise.
25686 * config/sol2-c.c : Likewise.
25687 * config/sol2-cxx.c : Likewise.
25688 * config/sol2-stubs.c : Likewise.
25689 * config/sol2.c : Likewise.
25690 * config/sparc/sparc-c.c : Likewise.
25691 * config/sparc/sparc.c : Likewise.
25692 * config/spu/spu-c.c : Likewise.
25693 * config/spu/spu.c : Likewise.
25694 * config/stormy16/stormy16.c : Likewise.
25695 * config/tilegx/mul-tables.c : Likewise.
25696 * config/tilegx/tilegx-c.c : Likewise.
25697 * config/tilegx/tilegx.c : Likewise.
25698 * config/tilepro/mul-tables.c : Likewise.
25699 * config/tilepro/tilepro-c.c : Likewise.
25700 * config/tilepro/tilepro.c : Likewise.
25701 * config/v850/v850-c.c : Likewise.
25702 * config/v850/v850.c : Likewise.
25703 * config/vax/vax.c : Likewise.
25704 * config/visium/visium.c : Likewise.
25705 * config/vms/vms-c.c : Likewise.
25706 * config/vms/vms.c : Likewise.
25707 * config/vxworks.c : Likewise.
25708 * config/winnt-c.c : Likewise.
25709 * config/xtensa/xtensa.c : Likewise.
25711 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
25714 * ipa-utils.h (warn_types_mismatch): Update prototype.
25715 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
25717 (type_mismatch_p): New function.
25718 (warn_types_mismatch): Reorg to work better on non-C++ types.
25719 (odr_types_equivalent_p): Add loc1/loc2 parameters.
25720 (add_type_duplicate): Update.
25722 2015-06-08 Tom de Vries <tom@codesourcery.com>
25724 PR rtl-optimization/66444
25725 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
25728 2015-06-08 Richard Biener <rguenther@suse.de>
25730 PR tree-optimization/66422
25731 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
25732 block after inserted gcc_unreachable.
25734 2015-06-08 Nick Clifton <nickc@redhat.com>
25736 * config/rx/rx.c (rx_function_value): Do not promote vector types.
25737 (rx_promote_function_mode): Likewise.
25738 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
25740 2015-06-08 Jakub Jelinek <jakub@redhat.com>
25742 * genattrtab.c (insn_alternatives): Change type from int *
25744 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
25745 (get_attr_value): Change type of num_alt to uint64_t.
25746 (compute_alternative_mask): Change return type from
25747 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
25748 (make_alternative_compare, mk_attr_alt): Change argument type
25749 from int to uint64_t.
25750 (simplify_test_exp): Change type of i from int to uint64_t.
25751 Shift ((uint64_t) 1) instead of 1 up.
25752 (main): Adjust oballocvec first argument from int to uint64_t.
25753 Shift ((uint64_t) 1) instead of 1 up.
25755 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
25758 * gdbhooks.py: Import sys.
25759 (intptr): New function. Replace int(...) by intptr(...).
25761 2015-06-08 Richard Biener <rguenther@suse.de>
25763 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
25764 adjustment for gaps at the end of a SLP load group properly.
25765 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
25766 all permutations we can generate.
25767 (vect_transform_slp_perm_load): Use the correct group-size.
25769 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
25771 * genmatch.c (expr::gen_transform): For conditions, guess the type
25772 from the second operand.
25774 2015-06-08 Tom de Vries <tom@codesourcery.com>
25776 PR tree-optimization/66442
25777 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
25778 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
25779 if the loop latch is not a singleton. Use
25780 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
25782 2015-06-08 Marek Polacek <polacek@redhat.com>
25785 * toplev.c (check_global_declaration): Don't warn about artificial
25788 2015-06-08 Tom de Vries <tom@codesourcery.com>
25790 PR tree-optimization/66436
25791 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
25793 * gimplify.c: Add tree-dump.h include.
25794 (gimplify_function_tree): Dump function to gimple dump file.
25795 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
25798 2015-06-08 Tom de Vries <tom@codesourcery.com>
25800 PR tree-optimization/66435
25801 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
25804 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
25806 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
25807 of ptr_type_node to not be ptr_to_node.
25808 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
25809 TREE_TYPE of pointers.
25810 * gimple-expr.c (useless_type_conversion): Reorder the check for
25811 function pointers and TYPE_CANONICAL.
25813 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
25816 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
25817 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
25818 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
25820 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
25821 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
25822 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
25823 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
25824 and non iso if unix2003.
25826 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
25828 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
25830 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
25832 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
25833 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
25834 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
25835 except.c, final.c, function.c, gcse-common.c, genemit.c,
25836 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
25837 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
25838 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
25839 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
25842 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
25844 * combine.c (combine_split_insns): Remove cast.
25845 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
25846 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
25847 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
25848 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
25849 * genemit.c (gen_split): Change return type of generated functions to
25851 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
25852 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
25853 gen_peephole2_* functions.
25854 (print_subroutine, main): Likewise.
25855 * recog.c (peephole2_optimize): Remove cast.
25856 (peep2_next_insn): Promote return type to rtx_insn.
25857 * recog.h (peep2_next_insn): Fix prototype.
25858 * rtl.h (try_split, split_insns): Likewise.
25860 2015-06-06 DJ Delorie <dj@redhat.com>
25862 * config/msp430/msp430.c (msp430_asm_integer): Support addition
25863 and subtraction too.
25865 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
25868 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
25869 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
25870 instead of Snd. Disparage Sid/z alternative with '^'.
25872 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
25874 * dwarf2out.c: Remove deferred_locations*.
25875 (dwarf2_debug_hooks): Add early_finish hook.
25876 Remove global_decl hook.
25877 Add early_global_decl and late_global_decl hook.
25878 New global early_dwarf.
25879 New structure set_early_dwarf.
25880 (output_die): Indicate whether a DIE was generated early
25881 when generating assembly with -dA.
25882 (struct limbo_die_struct): Document created_for field.
25883 Remove file_table_last_lookup.
25884 (remove_AT): Return TRUE if successful.
25885 (remove_child_TAG): Clear die_parent.
25886 (reparent_child): New function abstracted from...
25887 (splice_child_die): ...here.
25888 (new_die): ICE if a DIE ends up in limbo too late.
25890 (defer_location): Remove.
25891 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
25892 (fill_variable_array_bounds): New.
25893 (decl_start_label): Call fill_variable_array_bounds.
25894 (gen_formal_parameter_die): Rewrite to reuse previously generated
25896 (gen_subprogram_die): Same.
25897 (gen_variable_die): Same.
25898 (gen_const_die): Same.
25899 (gen_label_die): Same.
25900 (gen_lexical_block_die): Same.
25901 (decl_will_get_specification_p): New.
25902 (local_function_static): New.
25903 (gen_struct_or_union_type_die): Fill in variable-length fields.
25904 (gen_typedef_die): Fill in variable-length typedefs.
25905 (gen_tagged_type_die): Gracefully return on error_mark_node.
25906 Handle re-entrancy.
25907 (gen_type_die_with_usage): Handle variable-length types.
25908 Remove duplicate code for ARRAY_TYPE case.
25909 (process_scope_var): Only process imported modules during early
25911 (dwarf2out_early_global_decl): New.
25912 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
25913 (dwarf2out_type_decl): Set early_dwarf while calling
25915 (dwarf2out_decl): Verify that we did not recreate a previously
25917 Do not return on DECL_EXTERNALs in VAR_DECLs.
25918 Abstract some code to local_function_static.
25919 (lookup_filename): Remove use of file_table_last_lookup.
25920 Gracefully exit on missing file_name.
25921 (dwarf2out_finish): Verify limbo list.
25922 Remove deferred_locations_list use.
25923 Move deferred_asm_name and limbo flushing to...
25924 (dwarf2out_early_finish): ...here. New.
25925 (dwarf2out_c_finalize): Remove set of deferred_location_list,
25926 deferred_asm_name, and file_table_last_lookup.
25927 * cgraph.h (referred_to_p): Add default argument.
25928 * cgraphunit.c (referred_to_p): Add and handle include_self
25930 (analyze_functions): Add first_time argument.
25931 Call check_global_declaration for all symbols.
25932 Call late_global_decl for nodes for moribund nodes.
25933 (finalize_compilation_unit): Add new argument to
25935 Call early_global_decl for functions.
25936 Call early_finish debug hook.
25937 * dbxout.c (dbxout_early_global_decl): New.
25938 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
25939 (dbx_debug_hooks): Add new hooks.
25940 (xcoff_debug_hooks): Same.
25941 * debug.c (do_nothing_debug_hooks): Add early_finish field.
25942 Add early and late debug hooks.
25943 Remove global_decl hook.
25944 * debug.h (struct gcc_debug_hooks): Add early_finish,
25945 early_global_decl, and late_global_decl fields.
25946 Remove global_decl field.
25947 Document gcc_debug_hooks.
25948 * gengtype.c (output_typename): Remove.
25949 * godump.c (go_early_global_decl): New.
25950 (go_late_global_decl): New.
25951 (go_global_decl): Remove.
25952 (dump_go_spec_init): Remove global_decl. Add
25953 {early,late}_global_decl.
25954 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
25955 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
25956 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
25957 (write_global_declarations): Remove.
25958 (global_decl_processing): New.
25959 * langhooks.h (struct lang_hooks_for_decls): Remove
25960 final_write_globals field.
25961 Add post_compilation_parsing_cleanups field.
25962 * passes.c (rest_of_decl_compilation): Call early_global_decl.
25963 * sdbout.c: Add early and late_global_decl hooks. Remove
25964 sdbout_global_decl hook.
25965 Add early_finish field for sdb_debug_hooks.
25966 (sdbout_global_decl): Remove.
25967 (sdbout_early_global_decl): New.
25968 (sdbout_late_global_decl): New.
25969 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
25970 * toplev.c (check_global_declaration): Rename from
25971 check_global_declaration_1.
25972 Adapt to use symtab infrastructure.
25973 (check_global_declarations): Remove.
25974 (emit_debug_global_declarations): Remove.
25975 (compile_file): Remove call to final_write_globals langhook.
25976 Run the actual compilation process.
25977 Perform any post compilation parser cleanups.
25978 Generate late debug info.
25979 * toplev.h (check_global_declaration): New.
25980 (check_global_declaration_1): Remove.
25981 (check_global_declarations): Remove.
25982 (write_global_declarations): Remove.
25983 (emit_debug_global_declarations): Remove.
25984 (global_decl_processing): New.
25985 * tree-core.h (struct tree_block): Add DIE field.
25986 * tree.h (BLOCK_DIE): New.
25987 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
25989 (vmsdbgout_early_global_decl): New.
25990 (vmsdbgout_late_global_decl): New.
25991 Add early_finish debug hook field to vmsdbg_debug_hooks.
25992 Remove vmsdbgout_decl to vmsdbgout_function_decl.
25993 Add early and late_global_decl debug hooks.
25995 2015-06-05 Julian Brown <julian@codesourcery.com>
25996 Sandra Loosemore <sandra@codesourcery.com>
25998 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
25999 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
26000 to print-sysroot-suffix.sh script.
26002 2015-06-05 Tom de Vries <tom@codesourcery.com>
26004 merge from gomp4 branch:
26005 2015-05-28 Tom de Vries <tom@codesourcery.com>
26007 PR tree-optimization/65443
26008 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
26009 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
26010 (try_transform_to_exit_first_loop_alt): New function.
26011 (transform_to_exit_first_loop): Use
26012 try_transform_to_exit_first_loop_alt.
26014 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
26016 * builtins.c (expand_builtin_atomic_compare_exchange): Call
26017 emit_cmp_and_jump_insns with the mode of target.
26019 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
26021 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
26023 2015-06-04 DJ Delorie <dj@redhat.com>
26025 * config/msp430/msp430.md (movsi_s): New. Special case for
26026 storing a 20-bit symbol into a 32-bit register.
26027 * config/msp430/msp430.c (msp430_subreg): Add support for it.
26028 * config/msp430/predicates.md (msp430_symbol_operand): New.
26030 2015-06-04 Sriraman Tallam <tmsriram@google.com>
26032 * c-family/c-common.c (noplt): New attribute.
26033 (handle_noplt_attribute): New handler.
26034 * calls.c (prepare_call_address): Check for noplt
26036 * config/i386/i386.c (ix86_expand_call): Check
26037 for noplt attribute.
26038 (ix86_nopic_noplt_attribute_p): New function.
26039 (ix86_output_call_insn): Output indirect call for non-pic
26041 * doc/extend.texi (noplt): Document new attribute.
26042 * doc/invoke.texi: Document new attribute.
26044 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
26046 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
26047 real.h, and fixed-value.h when included in host source files.
26048 * double-int.h: Remove redundant #includes listed above.
26049 * fixed-value.h: Likewise.
26050 * real.h: Likewise.
26051 * wide-int.h: Likewise.
26052 * inchash.h: Likewise.
26053 * rtl.h: Add some include files When included from a generator file.
26054 * target.h: Remove wide-int.h and insn-modes.h from the include list.
26055 * internal-fn.h: Don't include coretypes.h.
26056 * alias.c: Adjust includes for restructured coretypes.h.
26057 * asan.c: Likewise.
26058 * attribs.c: Likewise.
26059 * auto-inc-dec.c: Likewise.
26060 * auto-profile.c: Likewise.
26061 * bb-reorder.c: Likewise.
26062 * bt-load.c: Likewise.
26063 * builtins.c: Likewise.
26064 * caller-save.c: Likewise.
26065 * calls.c: Likewise.
26066 * ccmp.c: Likewise.
26068 * cfganal.c: Likewise.
26069 * cfgbuild.c: Likewise.
26070 * cfgcleanup.c: Likewise.
26071 * cfgexpand.c: Likewise.
26072 * cfghooks.c: Likewise.
26073 * cfgloop.c: Likewise.
26074 * cfgloop.h: Likewise.
26075 * cfgloopanal.c: Likewise.
26076 * cfgloopmanip.c: Likewise.
26077 * cfgrtl.c: Likewise.
26078 * cgraph.c: Likewise.
26079 * cgraphbuild.c: Likewise.
26080 * cgraphclones.c: Likewise.
26081 * cgraphunit.c: Likewise.
26082 * cilk-common.c: Likewise.
26083 * combine-stack-adj.c: Likewise.
26084 * combine.c: Likewise.
26085 * compare-elim.c: Likewise.
26086 * convert.c: Likewise.
26087 * coverage.c: Likewise.
26088 * cppbuiltin.c: Likewise.
26089 * cprop.c: Likewise.
26091 * cselib.c: Likewise.
26092 * data-streamer-in.c: Likewise.
26093 * data-streamer-out.c: Likewise.
26094 * data-streamer.c: Likewise.
26095 * dbxout.c: Likewise.
26098 * debug.c: Likewise.
26099 * df-core.c: Likewise.
26100 * df-problems.c: Likewise.
26101 * df-scan.c: Likewise.
26104 * dojump.c: Likewise.
26105 * dominance.c: Likewise.
26106 * domwalk.c: Likewise.
26107 * double-int.c: Likewise.
26109 * dumpfile.c: Likewise.
26110 * dwarf2asm.c: Likewise.
26111 * dwarf2cfi.c: Likewise.
26112 * dwarf2out.c: Likewise.
26113 * dwarf2out.h: Likewise.
26114 * emit-rtl.c: Likewise.
26115 * et-forest.c: Likewise.
26116 * except.c: Likewise.
26117 * explow.c: Likewise.
26118 * expmed.c: Likewise.
26119 * expr.c: Likewise.
26120 * final.c: Likewise.
26121 * fixed-value.c: Likewise.
26122 * fold-const.c: Likewise.
26123 * function.c: Likewise.
26124 * fwprop.c: Likewise.
26125 * gcc-plugin.h: Likewise.
26126 * gcse.c: Likewise.
26127 * generic-match-head.c: Likewise.
26128 * ggc-page.c: Likewise.
26129 * gimple-builder.c: Likewise.
26130 * gimple-expr.c: Likewise.
26131 * gimple-fold.c: Likewise.
26132 * gimple-iterator.c: Likewise.
26133 * gimple-low.c: Likewise.
26134 * gimple-match-head.c: Likewise.
26135 * gimple-pretty-print.c: Likewise.
26136 * gimple-ssa-isolate-paths.c: Likewise.
26137 * gimple-ssa-strength-reduction.c: Likewise.
26138 * gimple-streamer-in.c: Likewise.
26139 * gimple-streamer-out.c: Likewise.
26140 * gimple-streamer.h: Likewise.
26141 * gimple-walk.c: Likewise.
26142 * gimple.c: Likewise.
26143 * gimplify-me.c: Likewise.
26144 * gimplify.c: Likewise.
26145 * godump.c: Likewise.
26146 * graph.c: Likewise.
26147 * graphite-blocking.c: Likewise.
26148 * graphite-dependences.c: Likewise.
26149 * graphite-interchange.c: Likewise.
26150 * graphite-isl-ast-to-gimple.c: Likewise.
26151 * graphite-optimize-isl.c: Likewise.
26152 * graphite-poly.c: Likewise.
26153 * graphite-scop-detection.c: Likewise.
26154 * graphite-sese-to-poly.c: Likewise.
26155 * graphite.c: Likewise.
26156 * haifa-sched.c: Likewise.
26157 * hooks.h: Likewise.
26158 * hw-doloop.c: Likewise.
26159 * ifcvt.c: Likewise.
26160 * incpath.c: Likewise.
26161 * init-regs.c: Likewise.
26162 * internal-fn.c: Likewise.
26163 * ipa-chkp.c: Likewise.
26164 * ipa-comdats.c: Likewise.
26165 * ipa-cp.c: Likewise.
26166 * ipa-devirt.c: Likewise.
26167 * ipa-icf-gimple.c: Likewise.
26168 * ipa-icf.c: Likewise.
26169 * ipa-inline-analysis.c: Likewise.
26170 * ipa-inline-transform.c: Likewise.
26171 * ipa-inline.c: Likewise.
26172 * ipa-polymorphic-call.c: Likewise.
26173 * ipa-profile.c: Likewise.
26174 * ipa-prop.c: Likewise.
26175 * ipa-pure-const.c: Likewise.
26176 * ipa-ref.c: Likewise.
26177 * ipa-reference.c: Likewise.
26178 * ipa-split.c: Likewise.
26179 * ipa-utils.c: Likewise.
26180 * ipa-visibility.c: Likewise.
26182 * ira-build.c: Likewise.
26183 * ira-color.c: Likewise.
26184 * ira-conflicts.c: Likewise.
26185 * ira-costs.c: Likewise.
26186 * ira-emit.c: Likewise.
26187 * ira-lives.c: Likewise.
26189 * jump.c: Likewise.
26190 * langhooks.c: Likewise.
26192 * loop-doloop.c: Likewise.
26193 * loop-init.c: Likewise.
26194 * loop-invariant.c: Likewise.
26195 * loop-iv.c: Likewise.
26196 * loop-unroll.c: Likewise.
26197 * lower-subreg.c: Likewise.
26198 * lra-assigns.c: Likewise.
26199 * lra-coalesce.c: Likewise.
26200 * lra-constraints.c: Likewise.
26201 * lra-eliminations.c: Likewise.
26202 * lra-lives.c: Likewise.
26203 * lra-remat.c: Likewise.
26204 * lra-spills.c: Likewise.
26206 * lto-cgraph.c: Likewise.
26207 * lto-compress.c: Likewise.
26208 * lto-opts.c: Likewise.
26209 * lto-section-in.c: Likewise.
26210 * lto-section-out.c: Likewise.
26211 * lto-streamer-in.c: Likewise.
26212 * lto-streamer-out.c: Likewise.
26213 * lto-streamer.c: Likewise.
26215 * mode-switching.c: Likewise.
26216 * modulo-sched.c: Likewise.
26217 * omega.c: Likewise.
26218 * omp-low.c: Likewise.
26219 * optabs.c: Likewise.
26220 * opts-global.c: Likewise.
26221 * passes.c: Likewise.
26222 * plugin.c: Likewise.
26223 * postreload-gcse.c: Likewise.
26224 * postreload.c: Likewise.
26225 * predict.c: Likewise.
26226 * print-rtl.c: Likewise.
26227 * print-tree.c: Likewise.
26228 * profile.c: Likewise.
26229 * real.c: Likewise.
26230 * realmpfr.c: Likewise.
26231 * realmpfr.h: Likewise.
26232 * recog.c: Likewise.
26234 * reg-stack.c: Likewise.
26235 * regcprop.c: Likewise.
26236 * reginfo.c: Likewise.
26237 * regrename.c: Likewise.
26238 * regs.h: Likewise.
26239 * regstat.c: Likewise.
26240 * reload.c: Likewise.
26241 * reload1.c: Likewise.
26242 * reorg.c: Likewise.
26243 * resource.c: Likewise.
26244 * rtl-chkp.c: Likewise.
26245 * rtlanal.c: Likewise.
26246 * rtlhooks.c: Likewise.
26247 * sanopt.c: Likewise.
26248 * sched-deps.c: Likewise.
26249 * sched-ebb.c: Likewise.
26250 * sched-rgn.c: Likewise.
26251 * sched-vis.c: Likewise.
26252 * sdbout.c: Likewise.
26253 * sel-sched-dump.c: Likewise.
26254 * sel-sched-ir.c: Likewise.
26255 * sel-sched.c: Likewise.
26256 * sese.c: Likewise.
26257 * shrink-wrap.c: Likewise.
26258 * shrink-wrap.h: Likewise.
26259 * simplify-rtx.c: Likewise.
26260 * stack-ptr-mod.c: Likewise.
26261 * statistics.c: Likewise.
26262 * stmt.c: Likewise.
26263 * stor-layout.c: Likewise.
26264 * store-motion.c: Likewise.
26265 * stringpool.c: Likewise.
26266 * symtab.c: Likewise.
26267 * target-globals.c: Likewise.
26268 * targhooks.c: Likewise.
26269 * toplev.c: Likewise.
26270 * tracer.c: Likewise.
26271 * trans-mem.c: Likewise.
26272 * tree-affine.c: Likewise.
26273 * tree-affine.h: Likewise.
26274 * tree-browser.c: Likewise.
26275 * tree-call-cdce.c: Likewise.
26276 * tree-cfg.c: Likewise.
26277 * tree-cfgcleanup.c: Likewise.
26278 * tree-chkp-opt.c: Likewise.
26279 * tree-chkp.c: Likewise.
26280 * tree-chrec.c: Likewise.
26281 * tree-complex.c: Likewise.
26282 * tree-data-ref.c: Likewise.
26283 * tree-dfa.c: Likewise.
26284 * tree-diagnostic.c: Likewise.
26285 * tree-dump.c: Likewise.
26286 * tree-eh.c: Likewise.
26287 * tree-emutls.c: Likewise.
26288 * tree-if-conv.c: Likewise.
26289 * tree-inline.c: Likewise.
26290 * tree-into-ssa.c: Likewise.
26291 * tree-iterator.c: Likewise.
26292 * tree-loop-distribution.c: Likewise.
26293 * tree-nested.c: Likewise.
26294 * tree-nrv.c: Likewise.
26295 * tree-object-size.c: Likewise.
26296 * tree-outof-ssa.c: Likewise.
26297 * tree-parloops.c: Likewise.
26298 * tree-phinodes.c: Likewise.
26299 * tree-predcom.c: Likewise.
26300 * tree-pretty-print.c: Likewise.
26301 * tree-pretty-print.h: Likewise.
26302 * tree-profile.c: Likewise.
26303 * tree-scalar-evolution.c: Likewise.
26304 * tree-sra.c: Likewise.
26305 * tree-ssa-address.c: Likewise.
26306 * tree-ssa-alias.c: Likewise.
26307 * tree-ssa-ccp.c: Likewise.
26308 * tree-ssa-coalesce.c: Likewise.
26309 * tree-ssa-copy.c: Likewise.
26310 * tree-ssa-copyrename.c: Likewise.
26311 * tree-ssa-dce.c: Likewise.
26312 * tree-ssa-dom.c: Likewise.
26313 * tree-ssa-dse.c: Likewise.
26314 * tree-ssa-forwprop.c: Likewise.
26315 * tree-ssa-ifcombine.c: Likewise.
26316 * tree-ssa-live.c: Likewise.
26317 * tree-ssa-loop-ch.c: Likewise.
26318 * tree-ssa-loop-im.c: Likewise.
26319 * tree-ssa-loop-ivcanon.c: Likewise.
26320 * tree-ssa-loop-ivopts.c: Likewise.
26321 * tree-ssa-loop-manip.c: Likewise.
26322 * tree-ssa-loop-niter.c: Likewise.
26323 * tree-ssa-loop-prefetch.c: Likewise.
26324 * tree-ssa-loop-unswitch.c: Likewise.
26325 * tree-ssa-loop.c: Likewise.
26326 * tree-ssa-loop.h: Likewise.
26327 * tree-ssa-math-opts.c: Likewise.
26328 * tree-ssa-operands.c: Likewise.
26329 * tree-ssa-phiopt.c: Likewise.
26330 * tree-ssa-phiprop.c: Likewise.
26331 * tree-ssa-pre.c: Likewise.
26332 * tree-ssa-propagate.c: Likewise.
26333 * tree-ssa-reassoc.c: Likewise.
26334 * tree-ssa-sccvn.c: Likewise.
26335 * tree-ssa-scopedtables.c: Likewise.
26336 * tree-ssa-sink.c: Likewise.
26337 * tree-ssa-strlen.c: Likewise.
26338 * tree-ssa-structalias.c: Likewise.
26339 * tree-ssa-tail-merge.c: Likewise.
26340 * tree-ssa-ter.c: Likewise.
26341 * tree-ssa-threadedge.c: Likewise.
26342 * tree-ssa-threadupdate.c: Likewise.
26343 * tree-ssa-uncprop.c: Likewise.
26344 * tree-ssa-uninit.c: Likewise.
26345 * tree-ssa.c: Likewise.
26346 * tree-ssanames.c: Likewise.
26347 * tree-stdarg.c: Likewise.
26348 * tree-streamer-in.c: Likewise.
26349 * tree-streamer-out.c: Likewise.
26350 * tree-streamer.c: Likewise.
26351 * tree-switch-conversion.c: Likewise.
26352 * tree-tailcall.c: Likewise.
26353 * tree-vect-data-refs.c: Likewise.
26354 * tree-vect-generic.c: Likewise.
26355 * tree-vect-loop-manip.c: Likewise.
26356 * tree-vect-loop.c: Likewise.
26357 * tree-vect-patterns.c: Likewise.
26358 * tree-vect-slp.c: Likewise.
26359 * tree-vect-stmts.c: Likewise.
26360 * tree-vectorizer.c: Likewise.
26361 * tree-vrp.c: Likewise.
26362 * tree.c: Likewise.
26363 * tsan.c: Likewise.
26364 * ubsan.c: Likewise.
26365 * valtrack.c: Likewise.
26366 * value-prof.c: Likewise.
26367 * var-tracking.c: Likewise.
26368 * varasm.c: Likewise.
26369 * varpool.c: Likewise.
26370 * vmsdbgout.c: Likewise.
26371 * vtable-verify.c: Likewise.
26373 * wide-int-print.cc: Likewise.
26374 * wide-int-print.h: Likewise.
26375 * wide-int.cc: Likewise.
26376 * xcoffout.c: Likewise.
26377 * config/aarch64/aarch64-builtins.c: Likewise.
26378 * config/aarch64/aarch64.c: Likewise.
26379 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
26380 * config/alpha/alpha.c: Likewise.
26381 * config/arc/arc.c: Likewise.
26382 * config/arm/aarch-common.c: Likewise.
26383 * config/arm/arm-builtins.c: Likewise.
26384 * config/arm/arm-c.c: Likewise.
26385 * config/arm/arm.c: Likewise.
26386 * config/avr/avr-c.c: Likewise.
26387 * config/avr/avr-log.c: Likewise.
26388 * config/avr/avr.c: Likewise.
26389 * config/bfin/bfin.c: Likewise.
26390 * config/c6x/c6x.c: Likewise.
26391 * config/cr16/cr16.c: Likewise.
26392 * config/cris/cris.c: Likewise.
26393 * config/darwin-c.c: Likewise.
26394 * config/darwin.c: Likewise.
26395 * config/default-c.c: Likewise.
26396 * config/epiphany/epiphany.c: Likewise.
26397 * config/epiphany/mode-switch-use.c: Likewise.
26398 * config/epiphany/resolve-sw-modes.c: Likewise.
26399 * config/fr30/fr30.c: Likewise.
26400 * config/frv/frv.c: Likewise.
26401 * config/ft32/ft32.c: Likewise.
26402 * config/glibc-c.c: Likewise.
26403 * config/h8300/h8300.c: Likewise.
26404 * config/i386/i386-c.c: Likewise.
26405 * config/i386/i386.c: Likewise.
26406 * config/i386/msformat-c.c: Likewise.
26407 * config/i386/winnt-cxx.c: Likewise.
26408 * config/i386/winnt-stubs.c: Likewise.
26409 * config/i386/winnt.c: Likewise.
26410 * config/ia64/ia64-c.c: Likewise.
26411 * config/ia64/ia64.c: Likewise.
26412 * config/iq2000/iq2000.c: Likewise.
26413 * config/lm32/lm32.c: Likewise.
26414 * config/m32c/m32c-pragma.c: Likewise.
26415 * config/m32c/m32c.c: Likewise.
26416 * config/m32r/m32r.c: Likewise.
26417 * config/m68k/m68k.c: Likewise.
26418 * config/mcore/mcore.c: Likewise.
26419 * config/mep/mep-pragma.c: Likewise.
26420 * config/mep/mep.c: Likewise.
26421 * config/microblaze/microblaze-c.c: Likewise.
26422 * config/microblaze/microblaze.c: Likewise.
26423 * config/mips/mips.c: Likewise.
26424 * config/mmix/mmix.c: Likewise.
26425 * config/mn10300/mn10300.c: Likewise.
26426 * config/moxie/moxie.c: Likewise.
26427 * config/msp430/msp430-c.c: Likewise.
26428 * config/msp430/msp430.c: Likewise.
26429 * config/nds32/nds32-cost.c: Likewise.
26430 * config/nds32/nds32-fp-as-gp.c: Likewise.
26431 * config/nds32/nds32-intrinsic.c: Likewise.
26432 * config/nds32/nds32-isr.c: Likewise.
26433 * config/nds32/nds32-md-auxiliary.c: Likewise.
26434 * config/nds32/nds32-memory-manipulation.c: Likewise.
26435 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
26436 * config/nds32/nds32-predicates.c: Likewise.
26437 * config/nds32/nds32.c: Likewise.
26438 * config/nios2/nios2.c: Likewise.
26439 * config/nvptx/nvptx.c: Likewise.
26440 * config/pa/pa.c: Likewise.
26441 * config/pdp11/pdp11.c: Likewise.
26442 * config/rl78/rl78-c.c: Likewise.
26443 * config/rl78/rl78.c: Likewise.
26444 * config/rs6000/rs6000-c.c: Likewise.
26445 * config/rs6000/rs6000.c: Likewise.
26446 * config/rx/rx.c: Likewise.
26447 * config/s390/s390-c.c: Likewise.
26448 * config/s390/s390.c: Likewise.
26449 * config/sh/sh-c.c: Likewise.
26450 * config/sh/sh-mem.cc: Likewise.
26451 * config/sh/sh.c: Likewise.
26452 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
26453 * config/sh/sh_treg_combine.cc: Likewise.
26454 * config/sol2-c.c: Likewise.
26455 * config/sol2-cxx.c: Likewise.
26456 * config/sol2-stubs.c: Likewise.
26457 * config/sol2.c: Likewise.
26458 * config/sparc/sparc-c.c: Likewise.
26459 * config/sparc/sparc.c: Likewise.
26460 * config/spu/spu-c.c: Likewise.
26461 * config/spu/spu.c: Likewise.
26462 * config/stormy16/stormy16.c: Likewise.
26463 * config/tilegx/mul-tables.c: Likewise.
26464 * config/tilegx/tilegx-c.c: Likewise.
26465 * config/tilegx/tilegx.c: Likewise.
26466 * config/tilepro/mul-tables.c: Likewise.
26467 * config/tilepro/tilepro-c.c: Likewise.
26468 * config/tilepro/tilepro.c: Likewise.
26469 * config/v850/v850-c.c: Likewise.
26470 * config/v850/v850.c: Likewise.
26471 * config/vax/vax.c: Likewise.
26472 * config/visium/visium.c: Likewise.
26473 * config/vms/vms-c.c: Likewise.
26474 * config/vms/vms.c: Likewise.
26475 * config/vxworks.c: Likewise.
26476 * config/winnt-c.c: Likewise.
26477 * config/xtensa/xtensa.c: Likewise.
26478 * common/config/bfin/bfin-common.c: Likewise.
26480 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
26482 * tree.h (tree_code_for_canonical_type_merging): New function.
26483 * tree.c (gimple_canonical_types_compatible_p): Use
26484 tree_code_for_canonical_type_merging..
26486 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26490 * doc/tm.texi: Regenerate.
26491 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
26492 * target.def (TARGET_RELAXED_ORDERING): Likewise.
26493 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
26494 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
26495 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
26496 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
26497 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
26498 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
26499 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
26501 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26503 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
26504 register fma steering pass.
26505 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
26506 AARCH64_TUNE_FMA_STEERING.
26508 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
26510 * tree.c (verify_type_variant): Verify that type and variant is
26512 (gimple_canonical_types_compatible_p): Look for main variants.
26514 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
26516 * config.gcc (powerpc*-*-*): Add support for a new configure
26517 option --with-advance-toolchain=<xxx> which overrides using the
26518 default header files, libraries and dynamic linker.
26520 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
26521 specs to support the configure --with-advance-toolchain=<xxx>
26523 (INCLUDE_EXTRA_SPEC): Likewise.
26524 (LINK_OS_EXTRA_SPEC32): Likewise.
26525 (LINK_OK_EXTRA_SPEC64): Likewise.
26526 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
26527 (DYNAMIC_LINKER_PREFIX): Likewise.
26528 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
26530 (GLIBC_DYNAMIC_LINKER32): Likewise.
26531 (GLIBC_DYNAMIC_LINKER64): Likewise.
26532 (LINK_OS_LINUX_SPEC32): Likewise.
26533 (LINK_OS_LINUX_SPEC64): Likewise.
26535 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
26536 configuration option.
26538 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
26541 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
26542 to determine current function ABI.
26543 (ix86_function_value_regno_p): Ditto.
26545 2015-06-03 Martin Liska <mliska@suse.cz>
26547 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
26548 * bitmap.h (struct bitmap_usage): Likewise.
26549 * ggc-common.c (struct ggc_usage): Likewise.
26550 * mem-stats.h (struct mem_location): Likewise.
26551 (struct mem_usage): Likewise.
26552 * vec.c (struct vec_usage): Likewise.
26554 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
26556 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
26559 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
26561 * doc/plugins.texi (enum plugin_event): New event.
26562 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
26563 and PLUGIN_FINISH_FUNCTION.
26564 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
26565 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
26567 2015-06-03 Richard Biener <rguenther@suse.de>
26569 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
26570 compute GROUP_GAP for the first element.
26571 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
26574 2015-06-03 Nick Clifton <nickc@redhat.com>
26576 * config/rl78/rl78-real.md: Add peepholes to avoid a register
26577 copy when calling a function.
26578 * config/rl78/rl78.c (need_to_save): Do not push the frame
26579 pointer in an interrupt handler prologue if it is never used.
26581 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26583 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
26585 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
26587 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
26588 reference when cloning alias node.
26590 2015-06-03 Martin Liska <mliska@suse.cz>
26592 * alloc-pool.h (struct pool_usage): Correct space padding.
26593 * ggc-page.c (ggc_print_statistics): Align columns in a report.
26594 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
26595 * tree.c (dump_tree_statistics): Align columns in a report.
26597 2015-06-03 Martin Liska <mliska@suse.cz>
26599 * alloc-pool.c (allocate_pool_descriptor): Remove.
26600 (struct pool_output_info): Likewise.
26601 (print_alloc_pool_statistics): Likewise.
26602 (dump_alloc_pool_statistics): Likewise.
26603 * alloc-pool.h (struct pool_usage): New struct.
26604 (pool_allocator::initialize): Change usage of memory statistics
26605 to a new interface.
26606 (pool_allocator::release): Likewise.
26607 (pool_allocator::allocate): Likewise.
26608 (pool_allocator::remove): Likewise.
26609 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
26610 for a pool allocator.
26611 * mem-stats.h (struct mem_location): Add new ctor.
26612 (struct mem_usage): Add counter for number of
26614 (mem_alloc_description::register_descriptor): New overload of
26615 * mem-stats.h (mem_location::to_string): New function.
26616 * bitmap.h (struct bitmap_usage): Use this new function.
26617 * ggc-common.c (struct ggc_usage): Likewise.
26620 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
26622 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
26623 of GCC_INSN_FLAGS_H block.
26625 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
26627 * explow.c (plus_constant): Update check after force_const_mem call
26628 to see if the value returned is not a NULL_RTX.
26630 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
26632 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
26633 remove instumentation thunks calling reachable functions.
26634 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
26635 * lto/lto-partition.c (privatize_symbol_name_1): New.
26636 (privatize_symbol_name): Privatize both decl and orig_decl
26637 names for instrumented functions.
26638 * cgraph.c (cgraph_node::verify_node): Add transparent
26639 alias chain check for instrumented node.
26641 2015-06-03 Marek Polacek <polacek@redhat.com>
26645 * tree.c (attribute_value_equal): Handle attribute format.
26646 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
26648 2015-06-03 Richard Biener <rguenther@suse.de>
26650 PR tree-optimization/63916
26651 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
26652 Forward-propagate non-invariant addresses by splicing their
26653 reference ops if the result isn't going to be used by PRE.
26654 (vn_reference_lookup_3): Remove pointless assert.
26656 2015-06-03 Richard Biener <rguenther@suse.de>
26658 PR tree-optimization/66375
26659 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
26660 add to the evolution before following SSA edges.
26662 2015-06-03 Bin Cheng <bin.cheng@arm.com>
26664 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
26665 (dump_use, dump_cand, find_induction_variables): Pass new argument
26667 (record_use): Preserve the ssa name information in IV.
26669 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
26671 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
26673 (add_mode_tests): Don't add mode tests if the predicate only
26674 accepts scalar constant integers. Otherwise, allow the mode
26675 of "op" to be VOIDmode if the predicate does accept such integers.
26677 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
26680 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
26681 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
26682 (aarch64_secondary_reload): Likewise
26683 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
26685 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
26688 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
26689 Zhenqiang Chen <zhenqiang.chen@linaro.org>
26692 * cprop.c (try_replace_reg): Check cost of constants before propagating.
26694 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
26696 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
26697 provide access to the IBM extended double floating point mode if
26698 long double is IEEE 128-bit floating point.
26699 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
26700 point if long double is the IBM extended double type.
26702 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
26703 enable adding IEEE 128-bit floating point support.
26704 (-mfloat128-software): Likewise.
26705 (-mfloat128-sw): Likewise.
26707 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
26708 128-bit floating point types to occupy any register if
26709 -mlong-double-64. Do not allow use of IFmode/KFmode unless
26710 -mfloat128-software is enabled.
26711 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
26713 (rs6000_option_override_internal): Add -mfloat128-* support.
26714 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
26716 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
26717 and float128 type nodes.
26718 (ieee128_float_type_node): Likewise.
26719 (ibm128_float_type_node): Likewise.
26721 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26724 * config/aarch64/geniterators.sh: Rewrite in awk.
26726 2015-06-02 Martin Liska <mliska@suse.cz>
26728 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
26729 values to avoid -Wmaybe-uninitialized errors.
26731 2015-06-02 Richard Biener <rguenther@suse.de>
26734 * dwarf2out.c (lookup_context_die): New function.
26735 (resolve_addr): Avoid forcing a full DIE for the
26736 target of a DW_TAG_GNU_call_site during late compilation.
26737 Instead create a stub DIE without a type if we have a
26738 context DIE present.
26740 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
26742 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
26744 2015-06-02 Bin Cheng <bin.cheng@arm.com>
26746 PR tree-optimization/48052
26747 * cfgloop.h (struct control_iv): New.
26748 (struct loop): New field control_ivs.
26749 * tree-ssa-loop-niter.c : Include "stor-layout.h".
26750 (number_of_iterations_lt): Set no_overflow information.
26751 (number_of_iterations_exit): Init control iv in niter struct.
26752 (record_control_iv): New.
26753 (estimate_numbers_of_iterations_loop): Call record_control_iv.
26754 (loop_exits_before_overflow): New. Interface factored out of
26755 scev_probably_wraps_p.
26756 (scev_probably_wraps_p): Factor loop niter related code into
26757 loop_exits_before_overflow.
26758 (free_numbers_of_iterations_estimates_loop): Free control ivs.
26759 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
26761 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
26763 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
26764 the target doesn't belong to the current function.
26766 2015-06-02 Marek Polacek <polacek@redhat.com>
26768 PR middle-end/66345
26769 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
26770 get_maxval_strlen does not produce an INTEGER_CST.
26772 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
26774 * config/arc/constraints.md: Use lower-case names in match_code.
26775 * config/mmix/constraints.md: Likewise.
26777 2015-06-02 Richard Biener <rguenther@suse.de>
26779 PR tree-optimization/65961
26780 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
26781 check and clarify dump message.
26782 (vect_build_slp_tree): If all children are built up from scalars
26783 build up the parent from scalars instead.
26784 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
26786 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
26789 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
26790 instead of print ... .
26792 2015-06-02 Alan Modra <amodra@gmail.com>
26794 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
26797 2015-06-02 Bin Cheng <bin.cheng@arm.com>
26799 PR tree-optimization/52563
26800 PR tree-optimization/62173
26801 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
26802 (alloc_iv, set_iv): New parameter.
26803 (determine_biv_step): Delete.
26804 (find_bivs): Inline original determine_biv_step. Pass new
26805 argument to set_iv.
26806 (idx_find_step): Use no_overflow information for conversion.
26807 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
26808 resolve_mixers handle folded_casts.
26809 (instantiate_scev_name): Change bool parameter to bool pointer.
26810 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
26811 (instantiate_array_ref, instantiate_scev_not): Ditto.
26812 (instantiate_scev_3, instantiate_scev_2): Ditto.
26813 (instantiate_scev_1, instantiate_scev_r): Ditto.
26814 (instantiate_scev_convert, ): Change parameter. Pass argument
26815 to chrec_convert_aggressive.
26816 (instantiate_scev): Change argument.
26817 (resolve_mixers): New parameter and set it.
26818 (scev_const_prop): New argument.
26819 * tree-scalar-evolution.h (resolve_mixers): New parameter.
26820 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
26822 (chrec_convert): New parameter. Move definition below.
26823 (chrec_convert_aggressive): New parameter and set it. Call
26824 convert_affine_scev.
26825 * tree-chrec.h (chrec_convert): New parameter.
26826 (chrec_convert_aggressive): Ditto.
26828 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
26830 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
26831 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
26832 the LHS of a no-return call if its type has variable size.
26833 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
26834 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
26836 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
26838 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
26839 * config.in: Regenerate.
26841 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
26843 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
26844 consecutive accesses within outer-loop with force_vectorize
26845 for references with zero step in inner-loop.
26847 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
26849 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
26850 rather than from gcc/build directory.
26852 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
26855 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
26856 for __sync memory models, emit initial loads and final barriers as
26859 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
26862 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
26863 (aarch64_split_atomic_op): Check for __sync memory models, emit
26864 appropriate initial loads and final barriers.
26866 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
26868 * Makefile.in: Fix gcov dependencies that should
26869 not point to a build folder.
26871 2015-06-01 Richard Biener <rguenther@suse.de>
26874 2015-05-29 Richard Biener <rguenther@suse.de>
26876 PR tree-optimization/66314
26877 * tree-ssa-threadupdate.c (create_block_for_threading): Add
26878 parameter that says which loop the new block belongs to.
26879 (ssa_create_duplicates): Blocks duplicated for the threaded
26880 path belong to the loop of the thread destination.
26882 2015-06-01 Martin Liska <mliska@suse.cz>
26884 * sched-deps.c: Include pool-alloc.h before
26885 cselib.h header file is included.
26887 2015-06-01 Richard Biener <rguenther@suse.de>
26889 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
26892 2015-06-01 Martin Liska <mliska@suse.cz>
26894 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
26895 a function local variable.
26897 2015-06-01 Martin Liska <mliska@suse.cz>
26899 * alloc-pool.c (create_alloc_pool): Remove.
26900 (empty_alloc_pool): Likewise.
26901 (free_alloc_pool): Likewise.
26902 (free_alloc_pool_if_empty): Likewise.
26903 (pool_alloc): Likewise.
26904 (pool_free): Likewise.
26905 * alloc-pool.h: Remove old declarations.
26907 2015-06-01 Martin Liska <mliska@suse.cz>
26909 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
26910 (ira_create_object): Likewise.
26911 (ira_create_allocno): Likewise.
26912 (ira_create_live_range): Likewise.
26913 (copy_live_range): Likewise.
26914 (ira_finish_live_range): Likewise.
26915 (ira_free_allocno_costs): Likewise.
26916 (finish_allocno): Likewise.
26917 (finish_allocnos): Likewise.
26918 (initiate_prefs): Likewise.
26919 (ira_create_pref): Likewise.
26920 (finish_pref): Likewise.
26921 (finish_prefs): Likewise.
26922 (initiate_copies): Likewise.
26923 (ira_create_copy): Likewise.
26924 (finish_copy): Likewise.
26925 (finish_copies): Likewise.
26926 (finish_prefs): Likewise.
26928 2015-06-01 Martin Liska <mliska@suse.cz>
26930 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
26931 (allocate_and_init_ipcp_value): Likewise.
26932 (ipcp_lattice::add_value): Likewise.
26933 (merge_agg_lats_step): Likewise.
26934 (ipcp_driver): Likewise.
26935 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
26936 (ipa_free_all_structures_after_iinln): Likewise.
26937 * ipa-prop.h: Likewise.
26939 2015-06-01 Martin Liska <mliska@suse.cz>
26941 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
26943 (set_hint_predicate): Likewise.
26944 (inline_summary_alloc): Likewise.
26945 (reset_inline_edge_summary): Likewise.
26946 (reset_inline_summary): Likewise.
26947 (set_cond_stmt_execution_predicate): Likewise.
26948 (set_switch_stmt_execution_predicate): Likewise.
26949 (compute_bb_predicates): Likewise.
26950 (estimate_function_body_sizes): Likewise.
26951 (inline_free_summary): Likewise.
26953 2015-06-01 Martin Liska <mliska@suse.cz>
26955 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
26956 (ipa_edge_duplication_hook): Likewise.
26957 (ipa_free_all_structures_after_ipa_cp): Likewise.
26958 (ipa_free_all_structures_after_iinln): Likewise.
26960 2015-06-01 Martin Liska <mliska@suse.cz>
26962 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
26963 (ipa_profile_generate_summary): Likewise.
26964 (ipa_profile_read_summary): Likewise.
26965 (ipa_profile): Likewise.
26967 2015-06-01 Martin Liska <mliska@suse.cz>
26969 * tree-ssa-structalias.c (new_var_info): Use new type-based
26971 (new_constraint): Likewise.
26972 (init_alias_vars): Likewise.
26973 (delete_points_to_sets): Likewise.
26975 2015-06-01 Martin Liska <mliska@suse.cz>
26977 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
26978 (free_strinfo): Likewise.
26979 (pass_strlen::execute): Likewise.
26981 2015-06-01 Martin Liska <mliska@suse.cz>
26983 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
26985 (vn_reference_insert_pieces): Likewise.
26986 (vn_phi_insert): Likewise.
26987 (visit_reference_op_call): Likewise.
26988 (copy_phi): Likewise.
26989 (copy_reference): Likewise.
26990 (process_scc): Likewise.
26991 (allocate_vn_table): Likewise.
26992 (free_vn_table): Likewise.
26994 2015-06-01 Martin Liska <mliska@suse.cz>
26996 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
26998 (add_repeat_to_ops_vec): Likewise.
26999 (get_ops): Likewise.
27000 (maybe_optimize_range_tests): Likewise.
27001 (init_reassoc): Likewise.
27002 (fini_reassoc): Likewise.
27004 2015-06-01 Martin Liska <mliska@suse.cz>
27006 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
27008 (bitmap_set_new): Likewise.
27009 (get_or_alloc_expr_for_constant): Likewise.
27010 (get_or_alloc_expr_for): Likewise.
27011 (phi_translate_1): Likewise.
27012 (compute_avail): Likewise.
27013 (init_pre): Likewise.
27014 (fini_pre): Likewise.
27016 2015-06-01 Martin Liska <mliska@suse.cz>
27018 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
27019 (delete_dep_node): Likewise.
27020 (create_deps_list): Likewise.
27021 (free_deps_list): Likewise.
27022 (sched_deps_init): Likewise.
27023 (sched_deps_finish): Likewise.
27025 2015-06-01 Martin Liska <mliska@suse.cz>
27027 * regcprop.c (free_debug_insn_changes): Use new type-based
27029 (replace_oldest_value_reg): Likewise.
27030 (pass_cprop_hardreg::execute): Likewise.
27032 2015-06-01 Martin Liska <mliska@suse.cz>
27034 * ira-build.c (initiate_cost_vectors): Use new type-based
27036 (ira_allocate_cost_vector): Likewise.
27037 (ira_free_cost_vector): Likewise.
27038 (finish_cost_vectors): Likewise.
27040 2015-06-01 Martin Liska <mliska@suse.cz>
27042 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
27044 (free_sched_pools): Likewise.
27045 * sel-sched-ir.h (_list_alloc): Likewise.
27046 (_list_remove): Likewise.
27048 2015-06-01 Martin Liska <mliska@suse.cz>
27050 * stmt.c (add_case_node): Use new type-based pool allocator.
27051 (expand_case): Likewise.
27052 (expand_sjlj_dispatch_table): Likewise.
27054 2015-06-01 Martin Liska <mliska@suse.cz>
27056 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
27057 (free_bb): Likewise.
27058 (pass_cse_reciprocals::execute): Likewise.
27060 2015-06-01 Martin Liska <mliska@suse.cz>
27062 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
27063 (sra_deinitialize) Likewise.
27064 (create_access_1) Likewise.
27065 (build_accesses_from_assign) Likewise.
27066 (create_artificial_child_access) Likewise.
27068 2015-06-01 Martin Liska <mliska@suse.cz>
27070 * dse.c (get_group_info):Use new type-based pool allocator.
27071 (dse_step0) Likewise.
27072 (free_store_info) Likewise.
27073 (delete_dead_store_insn) Likewise.
27074 (free_read_records) Likewise.
27075 (record_store) Likewise.
27076 (replace_read) Likewise.
27077 (check_mem_read_rtx) Likewise.
27078 (scan_insn) Likewise.
27079 (dse_step1) Likewise.
27080 (dse_step7) Likewise.
27082 2015-06-01 Martin Liska <mliska@suse.cz>
27084 * df-scan.c (struct df_scan_problem_data):Use new type-based
27086 (df_scan_free_internal) Likewise.
27087 (df_scan_alloc) Likewise.
27088 (df_grow_reg_info) Likewise.
27089 (df_free_ref) Likewise.
27090 (df_insn_create_insn_record) Likewise.
27091 (df_mw_hardreg_chain_delete) Likewise.
27092 (df_insn_info_delete) Likewise.
27093 (df_free_collection_rec) Likewise.
27094 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
27095 (df_sort_and_compress_mws) Likewise.
27096 (df_ref_create_structure) Likewise.
27097 (df_ref_record) Likewise.
27099 2015-06-01 Martin Liska <mliska@suse.cz>
27101 * df-problems.c (df_chain_create):Use new type-based pool allocator.
27102 (df_chain_unlink_1) Likewise.
27103 (df_chain_unlink) Likewise.
27104 (df_chain_remove_problem) Likewise.
27105 (df_chain_alloc) Likewise.
27106 (df_chain_free) Likewise.
27107 * df.h (struct dataflow) Likewise.
27109 2015-06-01 Martin Liska <mliska@suse.cz>
27111 * cselib.c (new_elt_list):Use new type-based pool allocator.
27112 (new_elt_loc_list) Likewise.
27113 (unchain_one_elt_list) Likewise.
27114 (unchain_one_elt_loc_list) Likewise.
27115 (unchain_one_value) Likewise.
27116 (new_cselib_val) Likewise.
27117 (cselib_init) Likewise.
27118 (cselib_finish) Likewise.
27120 2015-06-01 Martin Liska <mliska@suse.cz>
27122 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
27123 (sh_reorg) Likewise.
27125 2015-06-01 Martin Liska <mliska@suse.cz>
27127 * cfg.c (initialize_original_copy_tables):Use new type-based
27129 (free_original_copy_tables) Likewise.
27130 (copy_original_table_clear) Likewise.
27131 (copy_original_table_set) Likewise.
27133 2015-06-01 Martin Liska <mliska@suse.cz>
27135 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
27137 (asan_mem_ref_new) Likewise.
27138 (free_mem_ref_resources) Likewise.
27140 2015-06-01 Martin Liska <mliska@suse.cz>
27142 * var-tracking.c (variable_htab_free):Use new type-based
27144 (attrs_list_clear) Likewise.
27145 (attrs_list_insert) Likewise.
27146 (attrs_list_copy) Likewise.
27147 (shared_hash_unshare) Likewise.
27148 (shared_hash_destroy) Likewise.
27149 (unshare_variable) Likewise.
27150 (var_reg_delete_and_set) Likewise.
27151 (var_reg_delete) Likewise.
27152 (var_regno_delete) Likewise.
27153 (drop_overlapping_mem_locs) Likewise.
27154 (variable_union) Likewise.
27155 (insert_into_intersection) Likewise.
27156 (canonicalize_values_star) Likewise.
27157 (variable_merge_over_cur) Likewise.
27158 (dataflow_set_merge) Likewise.
27159 (remove_duplicate_values) Likewise.
27160 (variable_post_merge_new_vals) Likewise.
27161 (dataflow_set_preserve_mem_locs) Likewise.
27162 (dataflow_set_remove_mem_locs) Likewise.
27163 (variable_from_dropped) Likewise.
27164 (variable_was_changed) Likewise.
27165 (set_slot_part) Likewise.
27166 (clobber_slot_part) Likewise.
27167 (delete_slot_part) Likewise.
27168 (loc_exp_insert_dep) Likewise.
27169 (notify_dependents_of_changed_value) Likewise.
27170 (emit_notes_for_differences_1) Likewise.
27171 (vt_emit_notes) Likewise.
27172 (vt_initialize) Likewise.
27173 (vt_finalize) Likewise.
27175 2015-06-01 Martin Liska <mliska@suse.cz>
27177 * ira-color.c (init_update_cost_records):Use new type-based
27179 (get_update_cost_record) Likewise.
27180 (free_update_cost_record_list) Likewise.
27181 (finish_update_cost_records) Likewise.
27182 (initiate_cost_update) Likewise.
27184 2015-06-01 Martin Liska <mliska@suse.cz>
27186 * lra.c (init_insn_regs): Use new type-based pool allocator.
27187 (new_insn_reg) Likewise.
27188 (free_insn_reg) Likewise.
27189 (free_insn_regs) Likewise.
27190 (finish_insn_regs) Likewise.
27191 (init_insn_recog_data) Likewise.
27192 (init_reg_info) Likewise.
27193 (finish_reg_info) Likewise.
27194 (lra_free_copies) Likewise.
27195 (lra_create_copy) Likewise.
27196 (invalidate_insn_data_regno_info) Likewise.
27198 2015-06-01 Martin Liska <mliska@suse.cz>
27200 * lra-lives.c (free_live_range): Use new type-based pool allocator.
27201 (free_live_range_list) Likewise.
27202 (create_live_range) Likewise.
27203 (copy_live_range) Likewise.
27204 (lra_merge_live_ranges) Likewise.
27205 (remove_some_program_points_and_update_live_ranges) Likewise.
27206 (lra_live_ranges_init) Likewise.
27207 (lra_live_ranges_finish) Likewise.
27209 2015-06-01 Martin Liska <mliska@suse.cz>
27211 * et-forest.c (et_new_occ): Use new type-based pool allocator.
27212 (et_new_tree): Likewise.
27213 (et_free_tree): Likewise.
27214 (et_free_tree_force): Likewise.
27215 (et_free_pools): Likewise.
27216 (et_split): Likewise.
27218 2015-06-01 Martin Liska <mliska@suse.cz>
27220 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
27222 * alloc-pool.h (pool_allocator::pool_allocator): New function.
27223 (pool_allocator::release): Likewise.
27224 (inline pool_allocator::release_if_empty): Likewise.
27225 (inline pool_allocator::~pool_allocator): Likewise.
27226 (pool_allocator::allocate): Likewise.
27227 (pool_allocator::remove): Likewise.
27229 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
27231 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
27234 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
27236 * config/arm/arm-protos.h (tune_params): Rename fuseable_ops
27238 * config/arm/arm.c (arm_print_tune_info): Likewise.
27239 (arm_macro_fusion_p): Likewise.
27240 (arm_macro_fusion_pair_p): Likewise.
27242 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
27244 * config/aarch64/aarch64-protos.h (tune_params): Rename
27245 fuseable_ops to fusible_ops.
27246 * config/aarch64/aarch64.c (generic_tunings): Rename
27247 fuseable_ops to fusible_ops.
27248 (cortexa53_tunings): Likewise.
27249 (cortexa57_tunings): Likewise.
27250 (thunderx_tunings): Likewise.
27251 (xgene1_tunings): Likewise.
27252 (aarch64_macro_fusion_p): Likewise.
27253 (aarch64_macro_fusion_pair_p): Likewise.
27255 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
27257 * config/s390/driver-native.c: New file.
27258 * config/s390/x-native: New file.
27259 * config.host: Add new files for s390.
27260 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
27262 * config.gcc: Likewise.
27263 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
27264 * config/s390/s390-opts.h (enum processor_type): Ditto.
27265 * config/s390/s390.c (s390_option_override): Catch unhandled
27268 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
27271 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
27272 redirection for instrumented calls.
27273 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
27274 (append_compiler_options): Append -fcheck-pointer-bounds.
27275 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
27276 (chkp_redirect_edge): New.
27277 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
27278 (chkp_redirect_edge): New.
27280 2015-06-01 Richard Biener <rguenther@suse.de>
27282 PR tree-optimization/66280
27283 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
27286 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27288 * config/aarch64/aarch64.md
27289 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
27292 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
27294 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
27295 Remove obsolete kludge.
27297 2015-06-01 Richard Biener <rguenther@suse.de>
27299 * tree-ssa-reassoc.c (get_rank): Simplify.
27301 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
27303 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
27304 * configure: Regenerated.
27306 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
27308 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
27309 issue (add space between string literal and macro).
27310 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
27312 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
27314 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
27315 implict or explicit -fPIE or -fpie.
27317 2015-05-30 Mike Frysinger <vapier@gentoo.org>
27319 * config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
27321 2015-05-28 DJ Delorie <dj@redhat.com>
27323 * expmed.c (extract_bit_field_1): Avoid clobbering a
27324 yet-to-be-used base/index register.
27326 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
27328 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
27329 (alias_stats): Add num_universal.
27330 (alias_set_subset_of): Special case pointers; be ready for NULL
27332 (alias_sets_conflict_p): Special case pointers; be ready for NULL
27334 (init_alias_set_entry): Break out from ...
27335 (record_alias_subset): ... here; propagate new fields;
27336 allocate children only when really needed.
27337 (get_alias_set): Do less generous pointer globbing.
27338 (dump_alias_stats_in_alias_c): Update statistics.
27340 2015-05-30 Alan Modra <amodra@gmail.com>
27342 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
27343 correct block for use of r12.
27344 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
27346 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
27349 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
27352 2015-05-29 Jakub Jelinek <jakub@redhat.com>
27354 PR tree-optimization/66142
27355 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
27356 virtual phis that feed themselves.
27358 2015-05-29 Richard Biener <rguenther@suse.de>
27360 PR tree-optimization/66314
27361 * tree-ssa-threadupdate.c (create_block_for_threading): Add
27362 parameter that says which loop the new block belongs to.
27363 (ssa_create_duplicates): Blocks duplicated for the threaded
27364 path belong to the loop of the thread destination.
27366 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
27368 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
27369 to cleanup-saved-temps.
27370 * doc/sourcebuild.texi (Clean up generated test files): Expand
27372 (dg-keep-saved-temps): Document new proc.
27373 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
27374 cleanup-saved-temps): Remove.
27376 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
27378 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
27379 gcc_AC_CHECK_DECLS.
27380 * configure: Regenerate.
27382 2015-05-28 Mike Frysinger <vapier@gentoo.org>
27384 * config/nios2/linux.h (CPP_SPEC): Define.
27386 2015-05-28 Mike Frysinger <vapier@gentoo.org>
27388 * config/microblaze/linux.h (CPP_SPEC): Define.
27390 2015-05-28 Mike Frysinger <vapier@gentoo.org>
27392 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
27393 -pthread is specified.
27395 2015-05-28 Richard Biener <rguenther@suse.de>
27397 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
27398 (vect_fixup_scalar_cycles_with_patterns): Likewise.
27399 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
27400 after pattern recog.
27401 (vect_create_epilog_for_reduction): Properly handle reductions
27403 (vectorizable_reduction): Likewise.
27404 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
27406 (vect_get_constant_vectors): Create the correct number of
27407 initial values for reductions.
27408 (vect_schedule_slp_instance): Handle reduction chains that are
27409 type changing properly.
27410 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
27412 2015-05-28 Richard Biener <rguenther@suse.de>
27414 PR tree-optimization/66142
27415 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
27416 values better in memcpy destination handling. Handle non-aliasing
27419 2015-05-28 Lawrence Velázquez <vq@larryv.me>
27422 * config/darwin-c.c (version_components): New global enum.
27423 (parse_version, version_as_legacy_macro)
27424 (version_as_modern_macro, macosx_version_as_macro): New functions.
27425 (version_as_macro): Remove.
27426 (darwin_cpp_builtins): Use new function.
27428 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
27430 * builtins.c (expand_builtin_acc_on_device): Mark parameters
27431 with ATTRIBUTE_UNUSED.
27433 2015-05-28 Julian Brown <julian@codesourcery.com>
27437 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
27438 sequence for !ACCEL_COMPILER.
27440 2015-05-28 Nick Clifton <nickc@redhat.com>
27442 * config/rx/rx.c (push_regs): New function. Extracts code from...
27443 (rx_expand_prologue): ... here. Use push_regs to push even small
27444 spans of registers.
27445 (pop_regs): New function.
27446 (rx_expand_epilogue): Use pop_regs to pop even small spans of
27449 2015-05-28 Richard Biener <rguenther@suse.de>
27451 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
27453 (SLP_INSTANCE_BODY_COST_VEC): Remove.
27454 (vect_update_slp_costs_according_to_vf): Likewise.
27455 (vect_slp_analyze_operations): Update prototype.
27456 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
27457 vect_update_slp_costs_according_to_vf, adjust.
27458 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
27459 (vect_analyze_slp_cost_1): Likewise.
27460 (vect_analyze_slp_cost): Likewise. Properly deal with
27461 widening reduction ops. Commit body costs.
27462 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
27463 cost for loops from here.
27464 (vect_slp_analyze_operations): But do it from here when
27465 the vectorization factor is known and stmts are analyzed.
27466 (vect_bb_vectorization_profitable_p): Simplify.
27467 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
27468 (vect_update_slp_costs_according_to_vf): Remove.
27470 2015-05-27 Magnus Granberg <zorry@gentoo.org>
27471 H.J. Lu <hongjiu.lu@intel.com>
27473 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
27474 (BUILD_CFLAGS): Likewise.
27475 (BUILD_CXXFLAGS): Likewise.
27476 (LINKER): Add @NO_PIE_FLAG@.
27477 (BUILD_LDFLAGS): Likewise.
27478 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
27479 --enable-default-pie.
27480 * common.opt (fPIE): Initialize to -1.
27482 (no-pie): New option.
27483 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
27484 * configure.ac: Add --enable-default-pie.
27485 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
27486 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
27487 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
27488 * gcc.c (NO_PIE_SPEC): New.
27489 (PIE_SPEC): Likewise.
27490 (NO_FPIE1_SPEC): Likewise.
27491 (FPIE1_SPEC): Likewise.
27492 (NO_FPIE2_SPEC): Likewise.
27493 (FPIE2_SPEC): Likewise.
27494 (NO_FPIE2_SPEC): Likewise.
27495 (FPIE_SPEC): Likewise.
27496 (NO_FPIE_SPEC): Likewise.
27497 (NO_FPIC1_SPEC): Likewise.
27498 (FPIC1_SPEC): Likewise.
27499 (NO_FPIC2_SPEC): Likewise.
27500 (FPIC2_SPEC): Likewise.
27501 (NO_FPIC2_SPEC): Likewise.
27502 (FPIC_SPEC): Likewise.
27503 (NO_FPIC_SPEC): Likewise.
27504 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
27505 (FPIE1_OR_FPIC1_SPEC): Likewise.
27506 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
27507 (FPIE2_OR_FPIC2_SPEC): Likewise.
27508 (NO_FPIE_AND_FPIC_SPEC): Likewise.
27509 (FPIE_OR_FPIC_SPEC): Likewise.
27510 (LD_PIE_SPEC): Likewise.
27511 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
27512 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
27513 * config/darwin.h (PIE_SPEC): Renamed to ...
27514 (DARWIN_PIE_SPEC): This.
27515 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
27516 * config/darwin9.h (PIE_SPEC): Renamed to ...
27517 (DARWIN_PIE_SPEC): This.
27518 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
27519 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
27520 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
27521 FPIE2_OR_FPIC2_SPEC.
27522 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
27523 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
27524 * config/sol2.h (ASM_PIC_SPEC): Likewise.
27525 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
27526 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
27527 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
27528 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
27529 * config/m32r/m32r.h (ASM_SPEC): Likewise.
27530 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
27531 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
27532 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
27533 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
27534 * config/sparc/linux.h (ASM_SPEC): Likewise.
27535 * config/sparc/linux64.h (ASM_SPEC): Likewise.
27536 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
27537 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
27538 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
27539 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
27540 * config/sparc/sparc.h (ASM_SPEC): Likewise.
27541 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
27542 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
27543 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
27544 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
27545 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
27546 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
27547 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
27548 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
27549 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
27550 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
27551 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
27552 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
27553 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
27554 * config/vax/linux.h (ASM_SPEC): Likewise.
27555 * doc/install.texi: Document --enable-default-pie.
27556 * doc/invoke.texi: Document -no-pie.
27557 * config.in: Regenerated.
27558 * configure: Likewise.
27560 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
27562 PR rtl-optimization/66168
27563 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
27564 can_move_invariant_reg.
27566 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
27569 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
27570 REG_EQUAL note when doing insert.
27572 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
27573 instead of "%d" for 'o' operand.
27575 2015-05-27 Nathan Sidwell <nathan@acm.org>
27578 * tree.c (build_pointer_type_for_mode): Canonical type does not
27579 inherit can_alias_all.
27580 (build_reference_type_for_mode): Likewise.
27582 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
27584 * expr.h (array_at_struct_end_p): Move to...
27585 (array_ref_element_size): Likewise.
27586 (component_ref_field_offset): Likewise.
27587 * tree.h (array_ref_element_size): ...here.
27588 (array_at_struct_end_p): Likewise.
27589 (component_ref_field_offset): Likewise.
27590 * expr.c (array_ref_element_size): Move to...
27591 (array_ref_low_bound): Likewise.
27592 (array_at_struct_end_p): Likewise.
27593 (array_ref_up_bound): Likewise.
27594 (component_ref_field_offset): Likewise.
27595 * tree.c (array_ref_element_size): ...here.
27596 (array_ref_low_bound): Likewise.
27597 (array_ref_up_bound): Likewise.
27598 (array_at_struct_end_p): Likewise.
27599 (component_ref_field_offset): Likewise.
27601 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
27602 Szabolcs Nagy <szabolcs.nagy@arm.com>
27604 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
27606 2015-05-27 Jason Merrill <jason@redhat.com>
27609 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
27610 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
27611 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
27613 2015-05-22 Aditya Kumar <hiraditya@msn.com>
27615 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
27618 * statistics.c (statistics_fini_pass): Print pass name.
27620 2015-05-27 Richard Biener <rguenther@suse.de>
27622 PR tree-optimization/66272
27624 2014-08-15 Richard Biener <rguenther@suse.de>
27626 PR tree-optimization/62031
27627 * tree-data-ref.c (dr_analyze_indices): Do not set
27628 DR_UNCONSTRAINED_BASE.
27629 (dr_may_alias_p): All indirect accesses have to go the
27630 formerly DR_UNCONSTRAINED_BASE path.
27631 * tree-data-ref.h (struct indices): Remove
27632 unconstrained_base member.
27633 (DR_UNCONSTRAINED_BASE): Remove.
27635 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
27637 * dwarf2out.c: Remove block_map.
27638 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
27639 (gen_lexical_block_die): Same.
27640 (dwarf2out_function_decl): Remove block_map use.
27641 (dwarf2out_c_finalize): Same.
27642 * tree-core.h (struct tree_block): Add die field.
27643 * tree.h (BLOCK_DIE): New.
27645 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27648 * expr.c (memory_load_overlap): New function.
27649 (emit_push_insn): When pushing partial args to the stack would
27650 clobber the register part load the overlapping part into a pseudo
27651 and put it into the hard reg after pushing. Change return type
27652 to bool. Add bool argument.
27653 * expr.h (emit_push_insn): Change return type to bool.
27655 * calls.c (expand_call): Cancel sibcall optimization when encountering
27656 partial argument on targets with ARGS_GROW_DOWNWARD and
27657 !STACK_GROWS_DOWNWARD.
27658 (emit_library_call_value_1): Update callsite of emit_push_insn.
27659 (store_one_arg): Likewise.
27661 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
27663 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
27665 2015-05-27 Martin Liska <mliska@suse.cz>
27667 * Makefile.in: Add additional dependencies related to memory report
27669 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
27670 * bitmap.c (struct bitmap_descriptor_d): Remove.
27671 (struct loc): Likewise.
27672 (struct bitmap_desc_hasher): Likewise.
27673 (bitmap_desc_hasher::hash): Likewise.
27674 (bitmap_desc_hasher::equal): Likewise.
27675 (get_bitmap_descriptor): Likewise.
27676 (bitmap_register): User new memory descriptor API.
27677 (register_overhead): Likewise.
27678 (bitmap_find_bit): Register nsearches and search_iter statistics.
27679 (struct bitmap_output_info): Remove.
27680 (print_statistics): Likewise.
27681 (dump_bitmap_statistics): Use new memory descriptor.
27682 * bitmap.h (struct bitmap_usage): New class.
27683 * genmatch.c: Extend header file inclusion.
27684 * genpreds.c: Likewise.
27685 * ggc-common.c (struct ggc_usage): New class.
27686 (struct ggc_loc_desc_hasher): Remove.
27687 (ggc_loc_desc_hasher::hash): Likewise.
27688 (ggc_loc_desc_hasher::equal): Likewise.
27689 (struct ggc_ptr_hash_entry): Likewise.
27690 (struct ptr_hash_hasher): Likewise.
27691 (ptr_hash_hasher::hash): Likewise.
27692 (ptr_hash_hasher::equal): Likewise.
27693 (make_loc_descriptor): Likewise.
27694 (ggc_prune_ptr): Likewise.
27695 (dump_ggc_loc_statistics): Use new memory descriptor.
27696 (ggc_record_overhead): Likewise.
27697 (ggc_free_overhead): Likewise.
27698 (final_cmp_statistic): Remove.
27699 (cmp_statistic): Likewise.
27700 (ggc_add_statistics): Liekwise.
27701 (ggc_prune_overhead_list): Likewise.
27702 * hash-map-traits.h: New file.
27703 * hash-map.h (struct default_hashmap_traits): Move the traits to a
27704 separate header file.
27705 * hash-set.h: Pass memory statistics info to ctor.
27706 * hash-table.c (void dump_hash_table_loc_statistics): New function.
27707 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
27708 (hash_table::~hash_table): Register memory release operation.
27709 (hash_table::alloc_entries): Handle memory allocation operation.
27710 (hash_table::expand): Likewise.
27711 * inchash.c (iterative_hash_hashval_t): Move implementation to header
27713 (iterative_hash_host_wide_int): Likewise.
27714 * inchash.h (class hash): Likewise.
27715 * mem-stats-traits.h: New file.
27716 * mem-stats.h: New file.
27717 (mem_location): Add new class.
27718 (mem_usage): Likewise.
27719 (mem_alloc_description): Likewise.
27720 * sese.c: Add new header file inclusision.
27721 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
27723 * tree-sra.c: Add new header file inclusision.
27724 * vec.c (struct vec_descriptor): Remove.
27725 (hash_descriptor): Likewise.
27726 (struct vec_usage): Likewise.
27727 (struct ptr_hash_entry): Likewise.
27728 (hash_ptr): Likewise.
27729 (eq_ptr): Likewise.
27730 (vec_prefix::register_overhead): Use new memory descriptor API.
27731 (vec_prefix::release_overhead): Likewise.
27732 (add_statistics): Remove.
27733 (dump_vec_loc_statistics): Use new memory descriptor API.
27734 * vec.h (struct vec_prefix): Likewise.
27735 (va_heap::reserve): Likewise.
27736 (va_heap::release): Likewise.
27737 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
27739 2015-05-27 Richard Biener <rguenther@suse.de>
27741 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
27742 earlier and remove ??? comment.
27743 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
27744 and got called from loop analysis bail out. Always pass the SLP
27745 node to the vectorizable_* functions.
27746 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
27747 the premature SLP check here.
27748 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
27749 detected SLP stmts.
27750 (vect_detect_hybrid_slp_1): Likewise.
27752 2015-05-26 Jeff Law <law@redhat.com>
27754 * combine.c (find_split_point): Verify that the shift count is a
27755 constant when choosing (plus (ashift ...)) as a split point.
27757 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
27758 No functional changes.
27760 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
27762 * ipa-polymorphic-call.c
27763 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
27764 case when call target is already known.
27766 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
27769 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
27770 take into account the case that operands[1] and operands[2]
27771 are the same register.
27773 2015-05-26 Michael Matz <matz@suse.de>
27775 PR middle-end/66251
27777 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
27779 (vect_create_vectorized_demotion_stmts): Always set
27780 STMT_VINFO_VEC_STMT, also with SLP.
27781 (vectorizable_store): Handle strided group stores.
27783 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
27786 * config/aarch64/aarch64.md
27787 (*adds_shift_imm_<mode>): New pattern.
27788 (*subs_shift_imm_<mode>): Likewise.
27789 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
27790 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
27791 (*add_uxt<mode>_shift2): Likewise.
27792 (*add_uxtsi_shift2_uxtw): Likewise.
27793 (*sub_uxt<mode>_shift2): Likewise.
27794 (*sub_uxtsi_shift2_uxtw): Likewise.
27796 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
27798 * config/rs6000/constraints.md (Y, U): Use match_test.
27800 2015-05-26 Christian Bruel <christian.bruel@st.com>
27803 * config/arm/arm.c (arm_option_check_internal)
27804 (arm_option_params_internal): Check opts->target_flags to set macros.
27805 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
27806 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
27807 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
27808 (builtin_define): Replaced with def_or_undef_macro.
27809 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
27810 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
27811 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
27812 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
27813 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
27814 (TARGET_ARM_FEATURE_LDREX_P)
27815 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
27816 * config/arm/arm-c.c (def_or_undef_macro): New function.
27817 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
27819 2015-05-26 Christian Bruel <christian.bruel@st.com>
27821 * c-common.h (builtin_define_with_int_value)
27822 (builtin_define_type_sizeof): Declare.
27823 * c-cppbuiltin.c (builtin_define_with_int_value)
27824 (builtin_define_type_sizeof): Externalize.
27825 (builtin_define_std): Cleanup declaration.
27826 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
27827 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
27828 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
27829 (builtin_define, builtin_assert): New macros.
27831 2015-05-26 Richard Biener <rguenther@suse.de>
27833 PR tree-optimization/66142
27834 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
27835 MEM_REFs for the same base address.
27837 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27840 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
27842 2015-05-26 Jason Merrill <jason@redhat.com>
27844 * configure.ac: Set CXXFLAGS for ISL test.
27845 * configure: Regenerate.
27847 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
27848 strstr and basename.
27849 * configure: Regenerate.
27851 2015-05-26 Richard Biener <rguenther@suse.de>
27853 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
27854 X % C -> X & (C - 1) for C being a power-of two to ...
27855 * match.pd: ... patterns.
27857 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
27859 * match.pd (swapped_tcc_comparison): New operator list.
27860 (-A CMP -B): New simplification.
27861 * fold-const.c (fold_comparison): Remove corresponding code.
27863 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
27865 * caller-save.c (init_caller_save): Base temporary register numbers
27866 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
27867 * cfgloopanal.c (init_set_costs): Likewise.
27868 * dojump.c (prefer_and_bit_test): Likewise.
27869 * expr.c (init_expr_target): Likewise.
27870 * ira.c (setup_prohibited_mode_move_regs): Likewise.
27871 * lower-subreg.c (init_lower_subreg): Likewise.
27872 * postreload.c (reload_cse_regs_1): Likewise.
27874 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
27876 * gensupport.h (compute_test_codes): Declare.
27877 * gensupport.c (compute_predicate_codes): Rename to...
27878 (compute_test_codes): ...this. Generalize error message.
27879 (process_define_predicate): Update accordingly.
27880 * genpreds.c (compute_maybe_allows): Delete.
27881 (add_constraint): Use compute_test_codes to determine whether
27882 something can accept a SUBREG, REG or MEM.
27884 2015-05-26 Torvald Riegel <triegel@redhat.com>
27886 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
27887 'memory model' to align with C++11; fix description of memory orders;
27890 2015-05-26 Richard Biener <rguenther@suse.de>
27892 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
27893 (vect_analyze_loop_operations): ... here. Remove slp parameter,
27894 detect whether we apply SLP. Remove call to
27895 vect_update_slp_costs_according_to_vf.
27896 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
27897 vect_update_slp_costs_according_to_vf from here. Dispatch
27898 to vect_slp_analyze_operations to analyze SLP stmts.
27899 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
27900 unused bb_vec_info parameter, adjust assert.
27901 (vect_slp_analyze_operations): Pass in the slp instance tree
27902 instead of bb_vec_info.
27903 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
27904 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
27906 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
27908 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
27909 Q_REGS. Expand comment.
27910 (REG_CLASS_NAMES): Ditto.
27911 (REG_CLASS_CONTENTS): Ditto.
27913 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
27916 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
27917 when LEGACY_INT_REGNO_P is processed.
27919 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
27921 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
27923 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
27925 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
27926 register if not marked dead/unused, before return.
27928 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
27931 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
27932 is set; check for assembler name at LTO time.
27933 (type_in_anonymous_namespace): Remove hacks, check that all
27934 anonymous types are called "<anon>"
27935 (odr_type_p): Simplify; add check for "<anon>"
27936 (odr_subtypes_equivalent): Add odr_type_p check.
27937 * tree.c (need_assembler_name_p): Even anonymous namespace needs
27940 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
27942 * ipa-utils.h (method_class_type): Remove.
27943 * cgraphunit.c (walk_polymorphic_call_targets): Use
27944 TYPE_METHOD_BASETYPE.
27945 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
27946 on main variants only.
27947 (method_class_type): Remove.
27948 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
27949 (build_type_inheritance_graph): Likewise.
27950 * ipa-icf.c (sem_function::equals_wpa): Likewise.
27951 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
27952 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
27954 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
27956 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
27957 is_typedef_decl, typedef_variant_p): Constify.
27958 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
27959 is_typedef_decl, typedef_variant_p): Constify.
27961 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27963 * defaults.h (gen_tablejump): New function.
27964 (HAVE_tablejump): Add default value.
27966 * stmt.c: Likewise.
27968 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27970 * defaults.h (gen_store_multiple): New function.
27971 (HAVE_store_multiple): Add default value.
27972 * expr.c (move_block_from_reg): Adjust.
27974 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27976 * defaults.h (gen_load_multiple): New function.
27977 (HAVE_load_multiple): Add default value.
27978 * expr.c (move_block_to_reg): Adjust.
27980 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27982 * defaults.h (gen_mem_signal_fence): New function.
27983 (HAVE_mem_signal_fence): Add default value.
27984 * optabs.c: Adjust.
27986 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27988 * defaults.h (gen_memory_barrier): New function.
27989 (HAVE_memory_barrier): Add default value.
27990 * optabs.c: Adjust.
27992 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27994 * defaults.h (gen_mem_thread_fence): New function.
27995 (HAVE_mem_thread_fence): Add default definition.
27996 * optabs.c: Adjust.
27998 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28000 * combine.c (find_split_point): Check the value of HAVE_lo_sum
28001 instead of if it is defined.
28002 (combine_simplify_rtx): Likewise.
28003 * lra-constraints.c (process_address_1): Likewise.
28004 * config/darwin.c: Adjust.
28005 * genconfig.c (main): Always define HAVE_lo_sum.
28007 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
28009 * genmatch.c (parser::parse_operation): Reject expanding
28010 operator-list inside 'for'.
28012 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
28014 * genmatch.c (parser::parse_for): Reject iterator if used as
28017 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
28019 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
28020 after end of id-list.
28022 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
28024 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
28025 we do not try to compute canonical type for type that does not need
28027 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
28029 * tree.h (type_with_alias_set_p): New.
28031 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
28033 * tree.c (gimple_canonical_types_compatible_p): Do not compare
28034 function attributes.
28035 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
28037 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
28039 * Makefile.in (check_gcc_parallelize): Delete.
28040 (lang_checks_parallelized): Update comment.
28042 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
28044 PR rtl-optimization/66237
28045 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
28046 location of an "as_a" cast.
28048 2015-05-22 Jeff Law <law@redhat.com>
28050 * config/pa/pa.md (non-canonical shift-add insns): Remove.
28051 (peepholes with non-canonical RTL sources): Remove.
28052 (peepholes for indexed stores of FP regs in integer modes): Match and
28053 generate canonical RTL.
28055 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
28057 PR tree-optimization/63387
28058 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
28059 ((x ord x) & (y ord y) -> (x ord y),
28060 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
28061 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
28062 vectors like scalars.
28064 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
28066 * convert.c (convert_to_integer, convert_to_vector): Include the
28067 types in the error message.
28069 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
28071 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
28074 2015-05-22 Jeff Law <law@redhat.com>
28076 * config/pa/pa.md (integer_indexed_store splitters): Use
28077 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
28078 insns -- adjusting the constant 2nd operand accordingly.
28080 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
28081 (plus (ashift X log2) Y) if it is a split point.
28083 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
28084 out of hppa_legitimize_address to handle both forms of a multiply
28086 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
28087 Always generate the ASHIFT variant as the result is not directly
28088 used in a MEM. Update comments and refactor slightly to improve
28091 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28094 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
28095 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
28096 (aarch64_composite_type_p): Return false if given type and mode are
28097 for a short vector.
28099 2015-05-22 Richard Biener <rguenther@suse.de>
28101 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
28103 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
28104 patterns when determining whether SLP is pure.
28105 (vect_is_slp_reduction): Remove check for pattern stmts.
28106 (vect_is_simple_reduction_1): Remove dead code.
28107 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
28108 (vect_get_and_check_slp_defs): Pass in the stmt number.
28109 Allow the first def in a reduction to be not a pattern stmt when
28110 the rest of the stmts def are patterns.
28111 (vect_build_slp_tree_1): Allow tcc_expression codes like
28112 SAD_EXPR and DOT_PROD_EXPR.
28113 (vect_build_slp_tree): Adjust.
28114 (vect_analyze_slp): Refactor and move BB vect error message ...
28115 (vect_slp_analyze_bb_1): ... here.
28117 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
28119 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
28120 for CSWTCH temporary.
28122 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28124 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
28125 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
28128 2015-05-22 Richard Biener <rguenther@suse.de>
28130 PR tree-optimization/66251
28131 * tree-vect-stmts.c (vectorizable_conversion): Properly
28132 set STMT_VINFO_VEC_STMT even for the SLP case.
28134 2015-05-22 Marek Polacek <polacek@redhat.com>
28136 * doc/extend.texi: Use @pxref instead of @xref.
28138 2015-05-22 hiraditya <hiraditya@msn.com>
28140 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
28143 2015-05-22 Richard Biener <rguenther@suse.de>
28145 PR tree-optimization/65701
28146 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
28147 Move peeling cost models into one place. Peel for alignment
28148 for single loads only if an aligned load is cheaper than
28151 2015-05-22 Marek Polacek <polacek@redhat.com>
28154 * doc/extend.texi (Enumerator Attributes): New section.
28155 Document syntax of enumerator attributes.
28157 2015-05-22 Richard Biener <rguenther@suse.de>
28159 * tree-vect-loop.c (get_reduction_op): New function.
28160 (vect_model_reduction_cost): Use it, add reduc_index parameter.
28161 Make ready for BB reductions.
28162 (vect_create_epilog_for_reduction): Use get_reduction_op.
28163 (vectorizable_reduction): Init reduc_index to a valid value.
28164 Adjust vect_model_reduction_cost call.
28165 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
28166 operand for reduction defaults. Add SAD_EXPR support.
28167 Assert we have a neutral op for SLP reductions.
28168 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
28169 walking pattern stmt ops only recurse to SSA names.
28171 2015-05-22 Richard Biener <rguenther@suse.de>
28173 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
28174 assert with guard, remove check on detected reduction.
28175 (vect_recog_sad_pattern): Likewise.
28176 (vect_recog_widen_sum_pattern): Likewise.
28178 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28180 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
28181 __always_inline__ attribute.
28182 (vaesdq_u8): Likewise.
28183 (vaesmcq_u8): Likewise.
28184 (vaesimcq_u8): Likewise.
28185 (vsha1cq_u32): Likewise.
28186 (vsha1mq_u32): Likewise.
28187 (vsha1pq_u32): Likewise.
28188 (vsha1h_u32): Likewise.
28189 (vsha1su0q_u32): Likewise.
28190 (vsha1su1q_u32): Likewise.
28191 (vsha256hq_u32): Likewise.
28192 (vsha256h2q_u32): Likewise.
28193 (vsha256su0q_u32): Likewise.
28194 (vsha256su1q_u32): Likewise.
28195 (vmull_p64): Likewise.
28196 (vmull_high_p64): Likewise.
28198 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28200 * final.c (final_scan_insn): Don't check HAVE_peephole with the
28202 * output.h: Likewise.
28203 * genconfig.c (main): Alwways define HAVE_peephole.
28204 * genpeep.c: Don't emit checks of HAVE_peephole.
28206 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28208 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
28209 check HAVE_conditional_move with the preprocessor.
28211 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28213 * genconfig.c (main): Always define HAVE_conditional_move.
28214 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
28215 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
28218 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28220 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
28221 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
28222 and FRAME_POINTER_REGNUM with the preprocessor.
28224 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28226 * defaults.h: Add default for STACK_PUSH_CODE.
28227 * expr.c: Don't redefine STACK_PUSH_CODE.
28228 * recog.c: Likewise.
28230 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28232 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
28233 sched-deps.c: Use if instead of preprocessor checks with
28234 STACK_GROWS_DOWNWARD.
28236 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28238 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
28240 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
28241 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
28242 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
28243 * doc/tm.texi: Regenerate.
28245 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
28248 * config/i386/constraints.md (Bg): New constraint for GOT memory
28250 * config/i386/i386.md (*call_got_x32): New pattern.
28251 (*call_value_got_x32): Likewise.
28252 * config/i386/predicates.md (GOT_memory_operand): New predicate.
28254 2015-05-21 Jakub Jelinek <jakub@redhat.com>
28256 PR tree-optimization/66233
28257 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
28260 2015-05-21 Jeff Law <law@redhat.com>
28262 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
28263 than MULT for shadd sequences.
28265 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
28267 * alias.c (alias_stats): New static var.
28268 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
28269 (dump_alias_stats_in_alias_c): New function.
28270 * alias.h (dump_alias_stats_in_alias_c): Declare.
28271 * tree-ssa-alias.c (dump_alias_stats): Call it.
28273 2015-05-08 Michael Matz <matz@suse.de>
28275 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
28277 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
28278 (STMT_VINFO_STRIDED_P): ... this.
28279 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
28280 (vect_verify_datarefs_alignment): Likewise.
28281 (vect_enhance_data_refs_alignment): Likewise.
28282 (vect_analyze_data_ref_access): Likewise.
28283 (vect_analyze_data_refs): Accept strided stores.
28284 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
28285 (vect_model_load_cost): Adjust for macro rename.
28286 (vectorizable_mask_load_store): Likewise.
28287 (vectorizable_load): Likewise.
28288 (vectorizable_store): Open code strided stores.
28290 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28292 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
28293 Document sqrt_insn.
28295 2015-05-21 Richard Biener <rguenther@suse.de>
28298 * match.pd: Guard pattern optimzing (int)(float)int
28299 conversions to apply only on GIMPLE.
28301 2015-05-21 Jeff Law <law@redhat.com>
28303 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
28304 multiply-accumulate/shift-add insn generation.
28306 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
28309 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
28310 operands[1] are the same.
28312 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
28314 PR middle-end/66221
28315 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
28316 build_distinct_type_copy to copy bounds.
28318 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
28320 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
28321 Change to unsigned int.
28323 2015-05-20 Jeff Law <law@redhat.com>
28325 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
28326 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
28327 (pa_shadd_constant_p): Allow constants for shadd insns rather
28328 than valid scaling constants for memory addresses.
28329 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
28330 * config/pa/predicates.md (mem_shadd_operand): New predicate.
28331 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
28332 (shift-add insns using ASHIFT): New patterns.
28334 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
28336 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
28338 (fix_up_fall_thru_edges): Likewise.
28339 (fix_crossing_conditional_branches): Likewise. Promote jump targets
28340 from to rtx_insn to rtx_code_label where feasible.
28341 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
28342 gen_move_insn (returned type changed to rtx_insn).
28343 * builtins.c (expand_errno_check): Fix arguments of
28344 do_compare_rtx_and_jump (now expects rtx_code_label).
28345 (expand_builtin_acc_on_device): Likewise.
28346 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
28347 invert_jump (now exprects rtx_jump_insn).
28348 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
28349 (construct_init_block): Use rtx_code_label.
28350 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
28351 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
28352 calling redirect_jump.
28353 (patch_jump_insn): Likewise.
28354 (redirect_branch_edge): Likewise.
28355 (force_nonfallthru_and_redirect): Likewise.
28356 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
28358 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
28359 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
28360 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
28361 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
28362 to store the value retured by gen_label_rtx.
28363 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
28365 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
28366 (split_branches): Fix calls of redirect_jump.
28367 * dojump.c (jumpifnot): Promote argument type from rtx to
28369 (jumpifnot_1): Likewise.
28370 (jumpif): Likewise.
28371 (jumpif_1): Likewise.
28372 (do_jump_1): Likewise.
28373 (do_jump): Likewise. Use rtx_code_label when feasible.
28374 (do_jump_by_parts_greater_rtx): Likewise.
28375 (do_jump_by_parts_zero_rtx): Likewise.
28376 (do_jump_by_parts_equality_rtx): Likewise.
28377 (do_compare_rtx_and_jump): Likewise.
28378 * dojump.h: Update function prototypes.
28379 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
28381 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
28383 (emit_label_before): Likewise.
28384 (emit_jump_insn_after_noloc): Likewise.
28385 (emit_jump_insn_after_setloc): Likewise.
28386 (emit_jump_insn_after): Likewise
28387 (emit_jump_insn_before_setloc): Likewise.
28388 (emit_jump_insn_before): Likewise.
28389 (emit_label_before): Promote return type to rtx_code_label.
28390 (emit_label): Likewise.
28391 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
28392 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
28394 (emit_stack_restore): Likewise.
28395 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
28396 (do_cmp_and_jump): Likewise.
28397 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
28398 from rtx to rtx_code_label.
28399 (gen_move_insn_uncast): New function.
28400 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
28401 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
28402 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
28403 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
28404 invert_jump_1 and redirect_jump_1.
28405 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
28406 do_compare_rtx_and_jump.
28407 (expand_addsub_overflow): Likewise.
28408 (expand_neg_overflow): Likewise.
28409 (expand_mul_overflow): Likewise.
28410 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
28411 return value of gen_move_insn.
28412 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
28413 * loop-doloop.c (add_test): Use rtx_code_label.
28414 (doloop_modify): Likewise.
28415 (doloop_optimize): Likewise.
28416 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
28417 * lra-constraints.c (emit_spill_move): Remove cast of value returned
28419 (inherit_reload_reg): Add cast when calling dump_insn_slim.
28420 (split_reg): Likewise.
28421 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
28423 * optabs.c (expand_binop_directly): Remove casts of values returned by
28425 (expand_unop_direct): Likewise.
28426 (expand_abs): Likewise.
28427 (maybe_emit_unop_insn): Likewise.
28428 (maybe_gen_insn): Promote return type to rtx_insn.
28429 * optabs.h: Update prototype of maybe_gen_insn.
28430 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
28432 * recog.c (struct peep2_insn_data): Promote type of insn field to
28434 (peep2_reinit_state): Use NULL instead of NULL_RTX.
28435 (peep2_attempt): Remove casts of insn in peep2_insn_data.
28436 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
28437 * recog.h (struct insn_gen_fn): Promote return types of function
28438 pointers and operator ().from rtx to rtx_insn.
28439 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
28440 (fill_eager_delay_slots): Likewise.
28441 (relax_delay_slots): Likewise.
28442 (make_return_insns): Likewise.
28443 (dbr_schedule): Likewise.
28444 (optimize_skips): Likewise.
28445 (reorg_redirect_jump): Likewise.
28446 (fill_slots_from_thread): Likewise.
28447 * reorg.h: Update prototypes.
28448 * resource.c (find_dead_or_set_registers): Use dyn_cast to
28449 rtx_jump_insn instead of check. Use it's jump_target method.
28450 * rtl.h (rtx_jump_insn::jump_label): Define new method.
28451 (rtx_jump_insn::jump_target): Define new method.
28452 (rtx_jump_insn::set_jump_target): Define new method.
28453 * rtlanal.c (tablejump_p): Promote type of one local variable.
28454 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
28455 (sched_analyze_insn): Likewise.
28456 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
28457 (print_insn): Likewise.
28458 * stmt.c (label_rtx): Promote return type to rtx_insn.
28459 (force_label_rtx): Likewise.
28460 (jump_target_rtx): Define new function.
28461 (expand_label): Use it, get rid of one cast.
28462 (expand_naked_return): Promote rtx to rtx_code_label.
28463 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
28464 (expand_case): Use rtx_code_label instread of rtx where feasible.
28465 (expand_sjlj_dispatch_table): Likewise.
28466 (emit_case_nodes): Likewise.
28467 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
28468 * store-motion.c (insert_store): Make use of new return type of
28469 gen_move_insn and remove a cast.
28470 (replace_store_insn): Likewise.
28472 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
28474 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
28475 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
28477 2015-05-20 Jeff Law <law@redhat.com>
28479 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
28480 dispose of the jump thread path when the jump threading
28481 opportunity is cancelled.
28483 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
28485 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
28486 when printing the caret character.
28488 2015-05-20 Marek Polacek <polacek@redhat.com>
28490 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
28492 2015-05-20 Marek Polacek <polacek@redhat.com>
28494 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
28495 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
28496 * gimple-fold.c (canonicalize_bool): Likewise.
28497 (same_bool_result_p): Likewise.
28498 * tree-if-conv.c (parse_predicate): Likewise.
28500 2015-05-20 Marek Polacek <polacek@redhat.com>
28502 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
28503 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
28505 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28507 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
28508 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
28511 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
28513 * config/mips/mips.h (micromips_globals): Declare.
28515 2015-05-20 David Malcolm <dmalcolm@redhat.com>
28517 * timevar.def (TV_INITIALIZE_RTL): New.
28518 * toplev.c (initialize_rtl): Use an auto_timevar to account this
28519 function's time to TV_INITIALIZE_RTL.
28521 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
28523 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
28524 gimple_build_nop calls.
28525 (chkp_find_bounds_for_elem): Likewise.
28526 (chkp_get_zero_bounds): Likewise.
28527 (chkp_get_none_bounds): Likewise.
28528 (chkp_get_bounds_by_definition): Likewise.
28529 (chkp_generate_extern_var_bounds): Likewise.
28530 (chkp_get_bounds_for_decl_addr): Likewise.
28531 (chkp_get_bounds_for_string_cst): Likewise.
28533 2015-05-20 Bin Cheng <bin.cheng@arm.com>
28535 PR tree-optimization/65447
28536 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
28537 (dump_use, dump_uses): Support to dump sub use.
28538 (record_use): New parameters to support sub use. Remove call to
28540 (record_sub_use, record_group_use): New functions.
28541 (compute_max_addr_offset, split_all_small_groups): New functions.
28542 (group_address_uses, rewrite_use_address): New functions.
28543 (strip_offset): New declaration.
28544 (find_interesting_uses_address): Call record_group_use.
28545 (add_candidate): New assertion.
28546 (infinite_cost_p): Move definition forward.
28547 (add_costs): Check INFTY cost and return immediately.
28548 (get_computation_cost_at): Clear setup cost and dependent bitmap
28550 (determine_use_iv_cost_address): Compute cost for sub uses.
28551 (rewrite_use_address_1): Rename from old rewrite_use_address.
28552 (free_loop_data): Free sub uses.
28553 (tree_ssa_iv_optimize_loop): Call group_address_uses.
28555 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
28556 Jim Wilson <jim.wilson@linaro.org>
28558 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
28559 new fields loadv and storev.
28560 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
28561 Initialize loadv and storev.
28562 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
28563 (cortexa53_extra_costs): Likewise.
28564 (cortexa57_extra_costs): Likewise.
28565 (xgene1_extra_costs): Likewise.
28566 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
28569 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
28571 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
28573 (cortexa8_extra_costs): Likewise.
28574 (cortexa5_extra_costs): Likewise.
28575 (cortexa7_extra_costs): Likewise.
28576 (cortexa12_extra_costs): Likewise.
28577 (cortexa15_extra_costs): Likewise.
28578 (v7m_extra_costs): Likewise.
28580 2015-05-20 Jeff Law <law@redhat.com>
28582 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
28583 instead of open-coded version. Also delete the jump thread created
28584 within this function.
28586 2015-05-20 Alan Modra <amodra@gmail.com>
28588 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
28589 stack adjusting insn. Formatting.
28590 (rs6000_emit_prologue): Track stack adjusting insn, and use of
28591 r12. If possible, emit first -fsplit-stack arg pointer insn
28592 before stack adjust. Don't use r12 to save cr if split-stack.
28594 2015-05-20 Alan Modra <amodra@gmail.com>
28596 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
28598 (rs6000_supports_split_stack): New function.
28599 * config/rs6000/rs6000.c (machine_function): Add
28600 split_stack_arg_pointer.
28601 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
28602 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
28603 rather than virtual_incoming_args_rtx.
28604 (rs6000_va_start): Likewise.
28605 (split_stack_arg_pointer_used_p): New function.
28606 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
28607 (morestack_ref): New var.
28608 (gen_add3_const, rs6000_expand_split_stack_prologue,
28609 rs6000_internal_arg_pointer, rs6000_live_on_entry,
28610 rs6000_split_stack_space_check): New functions.
28611 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
28612 * config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
28613 (UNSPECV_SPLIT_STACK_RETURN): Define.
28614 (split_stack_prologue, load_split_stack_limit,
28615 load_split_stack_limit_di, load_split_stack_limit_si,
28616 split_stack_return, split_stack_space_check): New expands and insns.
28617 * config/rs6000/rs6000-protos.h
28618 (rs6000_expand_split_stack_prologue): Declare.
28619 (rs6000_split_stack_space_check): Declare.
28621 2015-05-20 Alan Modra <amodra@gmail.com>
28623 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
28624 (direct_return): Test vrsave_size rather than vrsave_mask.
28625 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
28626 (rs6000_emit_epilogue): Likewise.
28628 2015-05-20 Alan Modra <amodra@gmail.com>
28630 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
28631 when not saving registers.
28632 (debug_stack_info): Adjust to omit printing unused offsets,
28634 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
28637 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28640 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
28641 value_type to const char *.
28643 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
28645 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
28646 to build a biarch toolchain again.
28648 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
28650 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
28651 or implicit declarations.
28652 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
28654 (get_odr_type): Check type has linkage before adding bases.
28655 (register_odr_type): Check that type has linkage before adding it.
28656 (type_known_to_have_no_deriavations_p): Rename to ..
28657 (type_known_to_have_no_derivations_p): This one.
28658 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
28659 (type_known_to_have_no_derivations_p): This one.
28660 * ipa-polymorphic-call.c
28661 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
28664 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
28666 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
28667 (layout_type): Use RECORD_OR_UNION_TYPE_P.
28669 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28671 * config/s390/s390.c (s390_vector_bool_type_p): New function.
28672 (s390_invalid_binary_op): New function.
28673 (TARGET_INVALID_BINARY_OP): Define macro.
28675 2015-05-19 David Sherwood <david.sherwood@arm.com>
28677 * loop-invariant.c (create_new_invariant): Don't calculate address cost
28678 if mode is not a scalar integer.
28679 (get_inv_cost): Increase computational cost for unused invariants.
28681 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28683 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
28684 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
28685 * config/s390/s390-builtin-types.def: New file.
28686 * config/s390/s390-builtins.def: New file.
28687 * config/s390/s390-builtins.h: New file.
28688 * config/s390/s390-c.c: New file.
28689 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
28690 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
28691 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
28692 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
28694 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
28696 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
28697 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
28698 variable definitions.
28699 (s390_const_operand_ok): New function.
28700 (s390_expand_builtin): Rewrite.
28701 (s390_init_builtins): New function.
28702 (s390_handle_vectorbool_attribute): New function.
28703 (s390_attribute_table): Add s390_vector_bool attribute.
28704 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
28705 (s390_branch_condition_mask): Generate masks for new modes.
28706 (s390_expand_vec_compare_cc): New function.
28707 (s390_mangle_type): Add mangling for vector bool types.
28708 (enum s390_builtin): Remove.
28709 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
28711 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
28712 s390_cpu_cpp_builtins.
28713 (REGISTER_TARGET_PRAGMAS): New macro.
28714 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
28715 (insn_cmp mode attribute): Add new CC modes.
28716 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
28717 (lcbb): New pattern definition.
28718 * config/s390/s390intrin.h: Include vecintrin.h.
28719 * config/s390/t-s390: New file.
28720 * config/s390/vecintrin.h: New file.
28721 * config/s390/vector.md: Include vx-builtins.md.
28722 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
28725 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28727 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
28729 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
28730 (s390_select_ccmode): Likewise.
28731 (s390_canonicalize_comparison): Swap operands if necessary.
28732 (s390_expand_vec_compare_scalar): Expand DFmode compare using
28733 single element vector instructions.
28734 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
28735 (s390_branch_condition_mask): Generate CC masks for the new modes.
28736 * config/s390/s390.md (v0, vf, vd): New mode attributes.
28737 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
28738 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
28739 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
28740 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
28741 (*extend<DSF:mode><BFP:mode>2): New insn definition.
28742 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
28743 (extend<DSF:mode><BFP:mode>2): Turn into expander.
28744 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
28745 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
28746 (sqrt<mode>2): Add vector instruction.
28748 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28750 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
28752 * config/s390/predicates.md (const0_operand, constm1_operand)
28753 (constable_operand): Accept vector operands.
28754 * config/s390/s390-modes.def: Add supported vector modes.
28755 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
28756 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
28757 (s390_bytemask_vector_p, s390_expand_vec_strlen)
28758 (s390_expand_vec_compare, s390_expand_vcond)
28759 (s390_expand_vec_init): Add prototypes.
28760 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
28761 (s390_vector_mode_supported_p): New function.
28762 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
28763 (s390_contiguous_bitmask_vector_p): New function.
28764 (s390_bytemask_vector_p): New function.
28765 (s390_split_ok_p): Vector regs don't work either.
28766 (regclass_map): Add VEC_REGS.
28767 (s390_legitimate_constant_p): Handle vector constants.
28768 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
28769 (legitimate_reload_vector_constant_p): New function.
28770 (s390_preferred_reload_class): Handle CONST_VECTOR.
28771 (s390_reload_symref_address): Likewise.
28772 (s390_secondary_reload): Vector memory instructions only support
28773 short displacements. Rename reload*_nonoffmem* to reload*_la*.
28774 (s390_emit_ccraw_jump): New function.
28775 (s390_expand_vec_strlen): New function.
28776 (s390_expand_vec_compare): New function.
28777 (s390_expand_vcond): New function.
28778 (s390_expand_vec_init): New function.
28779 (s390_dwarf_frame_reg_mode): New function.
28780 (print_operand): Handle addresses with 'O' and 'R' constraints.
28781 (NR_C_MODES, constant_modes): Add vector modes.
28782 (s390_output_pool_entry): Handle vector constants.
28783 (s390_hard_regno_mode_ok): Handle vector registers.
28784 (s390_class_max_nregs): Likewise.
28785 (s390_cannot_change_mode_class): New function.
28786 (s390_invalid_arg_for_unprototyped_fn): New function.
28787 (s390_function_arg_vector): New function.
28788 (s390_function_arg_float): Remove size variable.
28789 (s390_pass_by_reference): Handle vector arguments.
28790 (s390_function_arg_advance): Likewise.
28791 (s390_function_arg): Likewise.
28792 (s390_return_in_memory): Vector values are returned in a VR if
28794 (s390_function_and_libcall_value): Handle vector arguments.
28795 (s390_gimplify_va_arg): Likewise.
28796 (s390_call_saved_register_used): Consider the arguments named.
28797 (s390_conditional_register_usage): Disable v16-v31 for non-vec
28799 (s390_preferred_simd_mode): New function.
28800 (s390_support_vector_misalignment): New function.
28801 (s390_vector_alignment): New function.
28802 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
28803 (TARGET_VECTOR_MODE_SUPPORTED_P)
28804 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
28805 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
28806 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
28807 (TARGET_VECTOR_ALIGNMENT): Define target macro.
28808 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
28809 (FIRST_PSEUDO_REGISTER): Increase value.
28810 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
28811 (VECTOR_REG_P): Define macros.
28812 (FIXED_REGISTERS, CALL_USED_REGISTERS)
28813 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
28814 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
28815 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
28816 Add vector registers.
28817 (CANNOT_CHANGE_MODE_CLASS): Call C function.
28818 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
28819 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
28821 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
28822 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
28823 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
28824 (VR*_REGNUM): New constants.
28825 (ALL): New mode iterator.
28826 (INTALL): Remove mode iterator.
28828 (movti): Implement TImode moves for VRs.
28829 Disable TImode splitter for VR targets.
28830 Implement splitting TImode GPR<->VR moves.
28831 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
28832 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
28833 reload<mode>_la_in, reload<mode>_la_out.
28834 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
28835 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
28836 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
28837 (mov<mode> SF SD): Prefer lder, lde for loading.
28838 Add lrl and strl instructions.
28839 Add vector instructions.
28840 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
28841 Call s390_expand_vec_strlen on z13.
28842 (*cc_to_int): Change predicate to nonimmediate_operand.
28843 (addti3): Rename to *addti3. New expander.
28844 (subti3): Rename to *subti3. New expander.
28845 * config/s390/vector.md: New file.
28847 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28849 * common/config/s390/s390-common.c (processor_flags_table): Add
28851 * config.gcc: Add z13.
28852 * config/s390/s390-opts.h (enum processor_type): Add
28853 PROCESSOR_2964_Z13.
28854 * config/s390/s390.c (s390_adjust_priority): Check for
28855 PROCESSOR_2964_Z13.
28856 (s390_reorg): Likewise.
28857 (s390_sched_reorder): Likewise.
28858 (s390_sched_variable_issue): Likewise.
28859 (s390_loop_unroll_adjust): Likewise.
28860 (s390_option_override): Likewise. Default to -mvx when available.
28861 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
28862 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
28863 (TARGET_VX_ABI): Define macros.
28865 (TARGET_DEFAULT): Add MASK_OPT_VX.
28866 * config/s390/s390.md ("cpu" attribute): Add z13.
28867 ("cpu_facility" attribute): Add vec.
28868 * config/s390/s390.opt (processor_type): Add z13.
28869 (mvx): New options.
28870 * doc/invoke.texi: Add z13 option for -march.
28872 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28874 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
28875 mode check to make sure that only scalar integer values are
28878 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
28880 * tree.c (verify_type_variant): Fix #undef.
28881 (gimple_canonical_types_compatible_p): Move here from lto.c
28882 (verify_type): Verify TYPE_CANONICAL compatibility.
28883 * tree.h (gimple_canonical_types_compatible_p): Declare.
28885 2015-05-19 Jakub Jelinek <jakub@redhat.com>
28887 PR middle-end/66199
28888 * tree.h (OMP_TEAMS_COMBINED): Define.
28889 * gimplify.c (enum gimplify_omp_var_data): Add
28890 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
28891 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
28892 (omp_notice_variable): Accept both ORT_TEAMS
28893 and ORT_COMBINED_TEAMS. Don't recurse if
28894 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
28895 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
28897 (omp_no_lastprivate): New function.
28898 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
28899 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
28900 notice_outer and set appropriate bits, otherwise make
28901 sure default(none) combined constructs won't complain.
28902 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
28903 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
28904 omp_no_lastprivate either remove the clause or turn it
28905 into OMP_CLAUSE_PRIVATE.
28906 (gimplify_omp_for): Fix up handling of implicit
28907 lastprivate or linear iterators.
28908 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
28909 ORT_COMBINED_TEAMS.
28910 * omp-low.c (lower_omp_for_lastprivate): For combined
28911 for simd use fd.loop.n2 from the for rather than simd.
28913 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
28915 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
28916 instead of gen_rtx_raw_REG.
28917 (cris_expand_epilogue): Likewise.
28918 * config/microblaze/microblaze.c (microblaze_classify_address):
28920 * config/sparc/sparc.md: Likewise.
28922 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
28924 * config/alpha/alpha.c (alpha_legitimize_reload_address)
28925 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
28926 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
28927 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
28928 Use CASE_CONST_SCALAR_INT.
28929 (print_operand) <case 'M'>: Use mode_width_operand to check the
28930 value of the constant.
28931 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
28932 * config/alpha/predicates.md (input_operand): Use general_operand
28933 instead of match_code as operand check.
28934 (symbolic_operand): Use match_code with subexpression digits.
28935 * config/alpha/constraints.md (Q): Ditto.
28937 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28939 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
28941 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28943 * config/s390/s390.c (s390_secondary_reload): Fix check for
28944 load/store relative.
28946 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28948 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
28949 alternative_mask to uint64_t.
28951 2015-05-19 Jakub Jelinek <jakub@redhat.com>
28953 PR tree-optimization/66187
28954 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
28955 Pass TYPE_SIGN to tree_int_cst_min_precision. If
28956 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
28958 2015-05-19 David Malcolm <dmalcolm@redhat.com>
28960 * diagnostic.c (diagnostic_report_current_module): Strengthen
28961 local "new_map" from const line_map * to
28962 const line_map_ordinary *.
28963 * genmatch.c (error_cb): Likewise for local "map".
28964 (output_line_directive): Likewise for local "map".
28965 * input.c (expand_location_1): Likewise for local "map".
28966 Pass NULL rather than &map to
28967 linemap_unwind_to_first_non_reserved_loc, since the value is never
28968 read from there, and the value written back not read from here.
28969 (is_location_from_builtin_token): Strengthen local "map" from
28970 const line_map * to const line_map_ordinary *.
28971 (dump_location_info): Strengthen locals "map" from
28972 line_map *, one to const line_map_ordinary *, the other
28973 to const line_map_macro *.
28974 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
28975 const line_map * to const line_map_macro *.
28976 (maybe_unwind_expanded_macro_loc): Add a call to
28977 linemap_check_macro when writing to the "map" field of the
28979 Introduce local const line_map_ordinary * "ord_map", using it in
28980 place of "map" in the part of the function where we know we have
28981 an ordinary map. Strengthen local "m" from const line_map * to
28982 const line_map_ordinary *.
28984 2015-05-19 Nick Clifton <nickc@redhat.com>
28987 * config/msp430/msp430.md (zero_extendhisi2): Add support for
28988 separate source and destination registers.
28990 2015-05-19 Richard Biener <rguenther@suse.de>
28992 PR tree-optimization/66165
28993 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
28994 for no load permutation.
28996 PR tree-optimization/66185
28997 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
28998 when building the SLP node from scalars.
29000 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
29001 Tristan Gingold <gingold@adacore.com>
29003 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
29004 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
29005 (expand_stack_restore): Call record_new_stack_level.
29006 (expand_stack_save): Do not call do_pending_stack_adjust.
29007 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
29008 * calls.c (expand_call): Call record_new_stack_level for alloca.
29009 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
29010 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
29011 (update_sjlj_context): New global function.
29012 * except.h (update_sjlj_context): Declare.
29013 * explow.c (record_new_stack_level): New global function.
29014 (allocate_dynamic_stack_space): Call record_new_stack_level.
29015 * explow.h (record_new_stack_level): Declare.
29016 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
29017 * cfgrtl.c (duplicate_insn_chain): Likewise.
29019 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29021 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
29022 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
29023 STACK_GROWS_DOWNWARD as normal if.
29024 (expand_call): Likewise.
29026 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
29029 * config/sh/sh.md (*round_int_even): New insn_and_split and
29030 accompanying new unnamed split.
29032 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
29034 * bitmap.c (bitmap_set_range): Handle count==1 specially.
29035 (bitmap_clear_range): Likewise.
29036 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
29037 bitmap_set_range unconditionally.
29038 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
29039 * df-scan.c (df_mark_reg): Likewise.
29040 * haifa-sched.c (setup_ref_regs): Likewise.
29041 * sched-rgn.c (update_live_1): Likewise.
29043 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
29045 * regs.h (END_HARD_REGNO): Delete.
29046 (END_REGNO): Move to...
29048 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
29049 * caller-save.c (mark_set_regs): Likewise.
29050 * combine.c (move_deaths, distribute_notes): Likewise.
29051 * cse.c (invalidate, invalidate_for_call): Likewise.
29052 * df-scan.c (df_ref_record): Likewise.
29053 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
29054 (record_last_reg_set_info): Likewise.
29055 * reg-stack.c (convert_regs_exit): Likewise.
29056 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
29057 * resource.c (update_live_status): Likewise.
29058 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
29060 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
29062 * rtl.h (reg_info): Add an nregs field.
29063 (REG_NREGS): Use it.
29064 (SET_REGNO_RAW): Delete.
29065 (set_regno_raw): New function.
29066 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
29067 (END_REGNO): Redefine in terms of REG_NREGS.
29068 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
29070 * emit-rtl.c (set_mode_and_regno): Likewise.
29071 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
29072 instead of SET_REGNO_RAW.
29074 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
29076 * rtl.h (PUT_MODE_RAW): New macro.
29077 (PUT_REG_NOTE_KIND): Use it.
29078 (set_mode_and_regno): Declare.
29079 (gen_raw_REG): Change regno to "unsigned int".
29080 (gen_rtx_REG): Change "unsigned" to "unsigned int".
29081 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
29082 use set_mode_and_regno to change the mode of registers.
29083 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
29084 * emit-rtl.c (set_mode_and_regno): New function.
29085 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
29086 * caller-save.c (reg_save_code): Use set_mode_and_regno.
29087 * expr.c (init_expr_target): Likewise.
29088 * ira.c (setup_prohibited_mode_move_regs): Likewise.
29089 * postreload.c (reload_cse_simplify_operands): Likewise.
29091 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
29093 * caller-save.c (init_caller_save): Use word_mode and
29094 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
29095 * expr.c (init_expr_target): Likewise.
29096 * ira.c (setup_prohibited_mode_move_regs): Likewise.
29097 * postreload.c (reload_cse_regs_1): Likewise.
29099 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
29101 * rtl.def (REG): Change format to "r".
29102 * rtl.h (rtunion): Remove rt_reg.
29103 (reg_info): New structure.
29104 (rtx_def): Add reg field to main union.
29105 (X0REGATTR): Delete.
29106 (REG_CHECK): New macro.
29107 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
29108 * rtl.c (rtx_format): Document "r".
29109 (rtx_code_size): Handle REG specially.
29110 * gengenrtl.c (special_format): Return true for formats
29112 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
29113 Deal with REG_ATTRS after the field loop.
29114 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
29115 * expmed.c (init_expmed): Call gen_raw_REG instead of
29117 * expr.c (init_expr_target): Likewise.
29118 * regcprop.c (maybe_mode_change): Likewise.
29119 * varasm.c (make_decl_rtl): Likewise.
29120 * final.c (leaf_renumber_regs_insn): Return early after
29122 * genemit.c (gen_exp): Handle 'r' fields.
29123 * genpeep.c (match_rtx): Likewise.
29124 * gensupport.c (subst_pattern_match): Likewise.
29125 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
29126 (alter_constraints, subst_dup): Likewise.
29127 * read-rtl.c (read_rtx_code): Likewise.
29128 * print-rtl.c (print_rtx): Likewise.
29129 * genrecog.c (find_operand, find_matching_operand): Likewise.
29130 (validate_pattern, match_pattern_2): Likewise.
29131 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
29132 (rtx_test::regno_field): New function.
29133 (operator ==, safe_to_hoist_p, transition_parameter_type)
29134 (parameter_type_string, print_parameter_value)
29135 (print_nonbool_test, print_test): Handle new enum values.
29136 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
29137 * lra-constraints.c (operands_match_p): Likewise.
29139 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
29141 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
29142 Change type of new_regno to unsigned int.
29143 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
29144 new_regno to unsigned int.
29145 (df_ref_change_reg_with_loc): Remove old_regno parameter.
29146 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
29147 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
29148 (SET_REGNO_RAW): Add space after ",".
29150 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
29152 * rtl.h (REG_NREGS): New macro
29153 * alias.c (record_set): Use it.
29154 * cfgcleanup.c (mark_effect): Likewise.
29155 * combine.c (likely_spilled_retval_1): Likewise.
29156 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
29157 (move_deaths, distribute_notes): Likewise.
29158 * cselib.c (cselib_record_set): Likewise.
29159 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
29160 * df-scan.c (df_mark_reg): Likewise.
29161 * dse.c (look_for_hardregs): Likewise.
29162 * dwarf2out.c (reg_loc_descriptor): Likewise.
29163 (multiple_reg_loc_descriptor): Likewise.
29164 * expr.c (write_complex_part, read_complex_part): Likewise.
29165 (emit_move_complex): Likewise.
29166 * haifa-sched.c (setup_ref_regs): Likewise.
29167 * ira-lives.c (mark_hard_reg_live): Likewise.
29168 * lra.c (lra_set_insn_recog_data): Likewise.
29169 * mode-switching.c (create_pre_exit): Likewise.
29170 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
29171 (reload_combine_recognize_pattern): Likewise.
29172 (reload_combine_note_use, move2add_record_mode): Likewise.
29173 (reload_cse_move2add): Likewise.
29174 * reg-stack.c (subst_stack_regs_pat): Likewise.
29175 * regcprop.c (kill_value, copy_value): Likewise.
29176 (copyprop_hardreg_forward_1): Likewise.
29177 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
29178 (build_def_use): Likewise.
29179 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
29180 (deps_analyze_insn): Likewise.
29181 * sched-rgn.c (check_live_1, update_live_1): Likewise.
29182 * sel-sched.c (count_occurrences_equiv): Likewise.
29183 * valtrack.c (dead_debug_insert_temp): Likewise.
29185 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
29187 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
29188 * dse.c (note_add_store): Likewise.
29189 * ira-lives.c (mark_hard_reg_dead): Likewise.
29190 * loop-invariant.c (mark_reg_store): Likewise.
29191 (mark_reg_death): Likewise.
29192 * postreload.c (reload_combine): Likewise.
29193 (reload_combine_note_store): Likewise.
29194 (reload_combine_note_use): Likewise.
29195 * recog.c (peep2_reg_dead_p): Likewise.
29197 2015-05-19 Alan Modra <amodra@gmail.com>
29199 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
29200 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
29201 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
29203 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
29204 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
29205 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
29206 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
29208 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
29210 * config/mips/mips.md (JOIN_MODE): New mode iterator.
29211 (join2_load_Store<JOIN_MODE:mode>): New pattern.
29212 (join2_loadhi): Likewise.
29213 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
29214 load-load and store-stores.
29215 * config/mips/mips.opt (mload-store-pairs): New option.
29216 (TARGET_LOAD_STORE_PAIRS): New macro.
29217 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
29218 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
29219 * config/mips/mips.c (mips_load_store_bonding_p): New function.
29221 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
29223 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
29225 * dojump.c (do_compare_rtx_and_jump): Likewise.
29226 * expmed.c (emit_store_flag_1): Likewise.
29227 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
29228 * final.c (sprint_ul): Use std::reverse for reversing a string.
29229 * fold-const.c (extract_muldiv_1): Use std::swap.
29230 * genmodes.c (emit_mode_int_n): Likewise.
29231 * ifcvt.c (dead_or_predicable): Likewise.
29232 * ira-build.c (ira_merge_live_ranges): Likewise.
29233 (swap_allocno_copy_ends_if_necessary): Likewise.
29234 * ira.c (ira_setup_alts): Likewise.
29235 * loop-iv.c (iv_analyze_expr): Likewise.
29236 (implies_p): Likewise.
29237 (canon_condition): Likewise.
29238 * lra-constraints.c (swap_operands): Likewise.
29239 * lra-lives.c (lra_merge_live_ranges): Likewise.
29240 * omega.c (swap): Remove.
29242 (omega_unprotect_1): Use std::swap.
29243 (omega_solve_geq): Likewise.
29244 * optabs.c (expand_binop_directly): Likewise.
29245 (expand_binop): Likewise.
29246 (emit_conditional_move): Likewise.
29247 (emit_conditional_add): Likewise.
29248 * postreload.c (reload_cse_simplify_operands): Likewise.
29249 * reg-stack.c (emit_swap_insn): Likewise.
29250 (swap_to_top): Likewise.
29251 (compare_for_stack_reg): Likewise.
29252 (subst_asm_stack_regs): Likewise.
29253 * reload.c (find_reloads): Likewise.
29254 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
29255 * sel-sched.c (invoke_reorder_hooks): Likewise.
29256 (create_block_for_bookkeeping): Likewise.
29257 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
29258 (lambda_matrix_right_hermite): Use std::swap.
29259 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
29260 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
29261 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
29262 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
29263 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
29264 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
29265 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
29266 * tree-vrp.c (compare_ranges): Likewise.
29267 * var-tracking.c (add_with_sets): Likewise.
29268 (vt_find_locations): Likewise.
29270 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
29272 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
29274 (FBSD_ENDFILE_SPEC): Likewise.
29275 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
29276 config/freebsd-spec.h.
29277 (ENDFILE_SPEC): Likewise.
29279 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
29280 Richard Henderson <rth@redhat.com>
29283 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
29284 Check for a memory location that is not a reference (using an AND)
29285 to an unaligned location here.
29286 * config/alpha/predicates.md (normal_memory_operand): Remove.
29288 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
29290 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
29291 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
29293 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
29295 * config/mips/mips.c (micromips_globals): New variable.
29296 (mips_set_compression_mode): Save and reinitialize target-dependent
29297 state for microMIPS.
29299 2015-05-18 Martin Liska <mliska@suse.cz>
29301 * dbgcnt.def: Add new counter.
29302 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
29304 2015-05-18 Martin Liska <mliska@suse.cz>
29306 * dbgcnt.def: Sort counters.
29307 * opts.c (common_handle_option): Do not compile if
29308 -fdbg-cnt-list is enabled.
29310 2015-05-18 Tom de Vries <tom@codesourcery.com>
29312 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
29313 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
29314 address operator to va_list operand.
29315 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
29317 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
29319 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
29320 * config/s390/s390.c (s390_gimplify_va_arg): Same.
29321 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
29323 2015-05-18 Tom de Vries <tom@codesourcery.com>
29325 * tree-ssa-tail-merge.c: Fix whitespace.
29327 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
29329 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
29330 cortex-a17, and cortex-a17.cortex-a7.
29332 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
29335 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
29337 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
29340 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
29341 QImode inner modes for TARGET_AVX512BW. Force mask operand
29342 to a register for AVX512F modes.
29344 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
29346 * toplev.c (emit_debug_global_declarations): Do not output debug info
29347 when doing slim LTO objects.
29349 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
29351 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
29352 odr_types_equivalent_p): Declare.
29353 (odr_type_p): Use gcc_checking_assert.
29354 (type_in_anonymous_namespace_p) Declare.
29355 (type_with_linkage_p): Declare.
29356 * common.opt (Wlto-type-mismatch): New warning.
29357 * ipa-devirt.c (compound_type_base): New function.
29358 (odr_or_derived_type_p): New function.
29359 (odr_types_equivalent_p): New function.
29360 (add_type_duplicate): Simplify.
29361 (type_with_linkage_p): Add hack to prevent false positives on C types
29362 (type_in_anonymous_namespace_p): Likewise.
29363 * tree.c (need_assembler_name_p): Use type_with_linkage.
29364 * tree.h (type_in_anonymous_namespace_p): Remove.
29365 * doc/invoke.texi (-Wlto-type-mismatch): Document
29367 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
29369 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
29370 (verify_type): Verify STRING_FLAG.
29372 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
29375 * tree-pretty-print.c (percent_K_format): Replace locus pointer
29376 with accessor function.
29377 * tree-diagnostic.c (diagnostic_report_current_function): Use
29378 diagnostic_location function.
29379 (maybe_unwind_expanded_macro_loc): Likewise.
29380 (virt_loc_aware_diagnostic_finalizer): Likewise.
29381 (default_tree_printer): Replace locus pointer with accessor function.
29382 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
29383 (diagnostic_set_info_translated): Initialize second location.
29384 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
29385 (diagnostic_show_locus): Handle two locations. Call
29386 diagnostic_print_caret_line.
29387 (diagnostic_print_caret_line): New.
29388 (default_diagnostic_starter): Use diagnostic_location function.
29389 (diagnostic_report_diagnostic): Use diagnostic_location function.
29390 (verbatim): Do not set text.locus.
29391 * diagnostic.h (struct diagnostic_info): Remove location field.
29392 (struct diagnostic_context): Make caret_chars an array of two.
29393 (diagnostic_location): New inline.
29394 (diagnostic_expand_location): Handle two locations.
29395 (diagnostic_same_line): New inline.
29396 (diagnostic_print_caret_line): Declare.
29397 (CARET_LINE_MARGIN): New constant.
29398 * pretty-print.c (pp_printf): Do not set text.locus.
29399 (pp_verbatim): Do not set text.locus.
29400 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
29401 (struct text_info): Replace locus pointer with locations
29402 array. Add accessor functions.
29404 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
29405 Zhenqiang Chen <zhenqiang.chen@linaro.org>
29408 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
29409 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
29410 large constants in register instead of splitting them.
29412 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
29415 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
29416 replacements in memory addresses.
29417 (get_unaligned_address): Ditto.
29419 2015-05-16 James Bowman <james.bowman@ftdichip.com>
29421 * config/ft32/*: New files for FT32 port.
29422 * doc/install.texi: Add FT32 information.
29423 * doc/invoke.texi: Add FT32 information.
29424 * doc/md.texi: Add FT32 information.
29425 * doc/contrib.texi: Self added.
29427 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
29429 PR tree-optimization/64454
29430 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
29431 (-1 - A -> ~A): Remove unnecessary condition.
29433 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
29435 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
29436 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
29437 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
29439 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
29441 * ipa-chkp.h (chkp_wrap_function): New.
29442 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
29443 (chkp_wrap_function_name): New.
29444 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
29445 to get wrapper name.
29446 * lto-cgraph.c: Include ipa-chkp.h.
29447 (input_cgraph_1): Avoid alias chain for wrappers.
29449 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
29451 PR middle-end/66134
29452 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
29453 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
29455 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29457 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
29458 (AARCH64_FL_SLOWMUL): Delete.
29459 (AARCH64_FL_CRC): Redefine to 1<<3.
29460 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
29462 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29464 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
29467 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
29469 * config/alpha/alpha.md (extendqidi2): Use general_operand
29470 instead of some_operand for operand[1] predicate.
29471 (extendhidi2): Ditto.
29472 (cbranchdi4): Use general_operand instead of some_operand
29473 for operand[1] and operands[2] predicates.
29474 (cstoredi4): Ditto.
29475 * config/alpha/predicates.md (some_operand): Remove unused predicate.
29476 (some_ni_operand): Ditto.
29478 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
29480 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
29481 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
29482 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
29483 low part of the constant using alpha_emit_set_const_1.
29484 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
29486 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
29488 * varasm.c (output_constant_pool_1): Pass down alignment from
29489 constant pool entry's descriptor to output_constant_pool_2.
29490 (output_object_block): Add comment prior to call to
29491 output_constant_pool_1.
29493 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
29495 PR rtl-optimization/65862
29496 * target.def (ira_change_pseudo_allocno_class): New hook.
29497 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
29499 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
29500 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
29502 * ira-costs.c (find_costs_and_classes): Call the hook and change
29503 classes when it is necessary.
29504 * doc/tm.texi: Update.
29506 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
29508 * config/i386/i386.md (sibcall_memory): Check that register with
29509 callee address is not also used as one of the arguments, instead
29510 of checking that it is not live after the sibcall.
29511 (sibcall_pop_memory): Ditto.
29512 (sibcall_value_memory): Ditto.
29513 (sibcall_value_pop_memory): Ditto.
29515 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
29517 * generic-match-head.c (types_match): Handle non-types.
29518 * gimple-match-head.c (types_match): Likewise.
29519 * match.pd: Remove unnecessary TREE_TYPE for types_match.
29521 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
29523 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
29524 (csneg3<mode>_insn): Enable expansion of pattern.
29526 2015-05-14 Nick Clifton <nickc@redhat.com>
29528 * config/rl78/rl78.c (rl78_select_section): Select the correct
29529 default section based upon the category of the decl.
29531 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
29533 PR rtl-optimization/30967
29534 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
29535 destination mode for the cost of scc patterns.
29537 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
29539 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
29540 using SWIM248 mode iterator.
29541 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
29542 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
29543 for operand[2] constraint.
29544 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
29546 2015-05-13 Jakub Jelinek <jakub@redhat.com>
29548 PR middle-end/66133
29549 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
29550 make sure it is never noreturn, even when the task body does not
29552 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
29553 right before GIMPLE_OMP_RETURN.
29554 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
29555 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
29556 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
29558 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29560 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
29561 * tree-ssa-math-opts.c: Include params.h
29562 (pow_synth_sqrt_info): New struct.
29563 (representable_as_half_series_p): New function.
29564 (get_fn_chain): Likewise.
29565 (print_nested_fn): Likewise.
29566 (dump_fractional_sqrt_sequence): Likewise.
29567 (dump_integer_part): Likewise.
29568 (expand_pow_as_sqrts): Likewise.
29569 (gimple_expand_builtin_pow): Use above to attempt to expand
29570 pow as series of square roots. Removed now unused variables.
29572 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
29574 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
29575 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
29576 Remove *p0 and *p1 arguments. Rewrite function.
29577 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
29578 (alpha_split_const_mov): Update calls to alpha_extract_integer and
29579 alpha_emit_set_long_const.
29580 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
29581 (alpha_output_mi_thunk_osf): Ditto.
29582 * config/alpha/alpha.md (movti): Do not check operands[1]
29585 2015-05-13 Richard Biener <rguenther@suse.de>
29587 PR tree-optimization/66129
29588 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
29590 (vect_schedule_slp_instance): Fix typo.
29592 2015-05-13 David Malcolm <dmalcolm@redhat.com>
29594 * common.opt (fdump-internal-locations): New option.
29595 * input.c: Include diagnostic-core.h.
29596 (get_end_location): New function.
29597 (write_digit): New function.
29598 (write_digit_row): New function.
29599 (dump_location_range): New function.
29600 (dump_labelled_location_range): New function.
29601 (dump_location_info): New function.
29602 * input.h (dump_location_info): New prototype.
29603 * toplev.c (compile_file): Handle flag_dump_locations.
29605 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
29607 * gimple-expr.h (is_gimple_constant): Reorder.
29608 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
29610 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
29612 * combine.c (simplify_set): When generating a CC set, if the
29613 source already is in the correct mode, do not wrap it in a
29614 compare. Simplify the rest of that code.
29616 2015-05-13 Richard Biener <rguenther@suse.de>
29618 PR tree-optimization/66123
29619 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
29622 2015-05-13 Richard Biener <rguenther@suse.de>
29624 PR middle-end/66110
29625 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
29627 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
29629 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
29631 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
29632 * aclocal.m4: Regenerated with automake-1.11.6.
29634 2015-05-13 Tom de Vries <tom@codesourcery.com>
29636 PR tree-optimization/66010
29637 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
29638 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
29639 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
29640 and rval based on do_deref.
29642 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
29645 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
29646 link time constants into adress expressions and therefore set
29649 2015-05-13 Jakub Jelinek <jakub@redhat.com>
29652 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
29653 Use SWI248 iterator instead of SWI.
29654 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
29655 Use eq_attr "alternative" "0" instead of match_test in
29656 length_immediate attribute computation.
29657 (*mulvhi4, *mulvhi4_1): New define_insns.
29660 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
29661 SIGNED to get precision of non-negative value.
29663 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
29666 * function.c (diddle_return_value_1): Process bounds first.
29667 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
29670 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
29672 PR rtl-optimization/64616
29673 * loop-invariant.c (can_move_invariant_reg): New.
29674 (move_invariant_reg): Call above new function to decide whether
29675 instruction can just be moved, skipping creation of temporary
29678 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
29680 PR target/pr66047.c
29681 * i386.c (ix86_function_sseregparm): Only return -1 if local function
29682 with implied regparm is called from -mno-sse function.
29683 (init_cumulative_args): Output error if ix86_function_sseregparm
29684 return -1 and SSE register would be needed.
29685 (function_arg_advance_32): Likewise.
29686 (function_arg_32): Likewise.
29687 * i386.h (ix86_args): Add decl field.
29689 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
29692 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
29693 inlines across optimization boundary.
29695 2015-05-12 Jason Merrill <jason@redhat.com>
29697 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
29698 string literal and macro name.
29700 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
29702 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
29703 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
29704 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
29706 2015-05-12 David Malcolm <dmalcolm@redhat.com>
29708 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
29709 (-Wmisleading-indentation): New option.
29710 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
29712 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
29714 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
29715 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
29716 (alpha_extract_integer): Ditto.
29717 (alpha_legitimate_constant_p): Ditto.
29718 (alpha_split_tmode_pair): Ditto.
29719 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
29720 (alpha_expand_mov): Ditto.
29721 (print_operand): Remove handling of 'H' modifier.
29722 <case 'm'>: Remove CONST_DOUBLE handling.
29723 (summarize_insn): Handle CONST_WIDE_INT.
29724 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
29726 (movti): Handle CONST_WIDE_INT.
29727 * config/alpha/constraints.md ('H'): Remove constraint definition.
29728 ('G'): Do not match MODE_FLOAT class.
29729 * config/alpha/predicates.md (const0_operand): Also match
29731 (non_add_const_operand): Ditto.
29732 (non_zero_const_operand): Ditto.
29733 (some_operand): Ditto.
29734 (input_operand): Ditto. Handle CONST_WIDE_INT.
29735 (and_operand): Do not match const_double.
29736 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
29738 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
29741 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
29742 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
29743 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
29744 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
29745 is_mm_seq_cst, is_mm_sync): New accessor functions.
29746 * builtins.c (expand_builtin_sync_operation,
29747 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
29748 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
29749 (get_memmodel, expand_builtin_atomic_compare_exchange,
29750 expand_builtin_atomic_load, expand_builtin_atomic_store,
29751 expand_builtin_atomic_clear): Use new accessor routines.
29752 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
29753 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
29754 (maybe_emit_sync_lock_test_and_set): Use new accessors and
29755 MEMMODEL_SYNC_ACQUIRE.
29756 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
29757 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
29758 expand_atomic_store): Use new accessors.
29759 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
29760 * tsan.c (instrument_builtin_call): Update check for memory model beyond
29761 final enum to use MEMMODEL_LAST.
29762 * c-family/c-common.c: Use new accessor for memmodel_base.
29763 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
29765 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
29766 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
29767 mem_thread_fence, *dmb): Likewise.
29768 * config/alpha/alpha.c (alpha_split_compare_and_swap,
29769 alpha_split_compare_and_swap_12): Likewise.
29770 * config/arm/arm.c (arm_expand_compare_and_swap,
29771 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
29772 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
29773 atomic_loaddi): Likewise.
29774 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
29776 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
29777 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
29779 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
29780 atomic_store<mode>, atomic_compare_and_swap<mode>,
29781 atomic_exchange<mode>): Use new accessors.
29782 * config/mips/mips.c (mips_process_sync_loop): Likewise.
29783 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
29784 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
29785 rs6000_post_atomic_barrier): Add new cases.
29786 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
29787 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
29788 (atomic_load<mode>): Add new cases and use new accessors.
29789 (store_quadpti): Add new cases.
29790 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
29792 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
29793 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
29796 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
29798 * ipa-devirt.c (type_with_linkage_p): New function.
29799 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
29801 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
29802 (can_be_name_hashed_p): Simplify.
29803 (hash_odr_name): Check that type has linkage before checking if it is
29805 (types_same_for_odr): Likewise.
29806 (odr_name_hasher::equal): Likewise.
29807 (odr_subtypes_equivalent_p): Likewise.
29808 (warn_types_mismatch): Likewise.
29809 (get_odr_type): Likewise.
29810 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
29811 * ipa-utils.h (odr_type_p): Move offline.
29812 * tree.c (need_assembler_name_p): Fix handling of types
29814 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
29816 2015-05-12 David Malcolm <dmalcolm@redhat.com>
29818 * timevar.c (timevar_enable): Delete in favor of...
29819 (g_timer): New global.
29820 (struct timevar_def): Move to timevar.h inside class timer.
29821 (struct timevar_stack_def): Likewise.
29822 (timevars): Delete global in favor of field "m_timevars" within
29823 class timer in timevar.h
29824 (stack): Likewise, in favor of field "m_stack".
29825 (unused_stack_instances): Likewise, in favor of field
29826 "m_unused_stack_instances".
29827 (start_time): Likewise, in favor of field "m_start_time".
29828 (get_time): Eliminate check for timevar_enable.
29829 (timer::timer): New function, built from part of timevar_init.
29830 (timevar_init): Rewrite idempotency test from using
29831 "timevar_enable" bool to using dynamic allocation of "g_timer".
29832 Move rest of implementation into timer's constructor.
29833 (timevar_push_1): Rename to...
29834 (timer::push): ...this, adding "m_" prefixes to variables that
29835 are now fields of timer.
29836 (timevar_pop_1): Likewise, rename to...
29837 (timer::pop): ...this, and add "m_" prefixes.
29838 (timevar_start): Replace test for "timevar_enable" with one for
29839 "g_timer", and move bulk of implementation to...
29840 (timer::start): ...here, adding "m_" prefixes.
29841 (timevar_stop): Likewise, from here...
29842 (timer::stop): ...to here.
29843 (timevar_cond_start): Likewise, from here...
29844 (timer::cond_start): ...to here.
29845 (timevar_cond_stop): Likewise, from here...
29846 (timer::cond_stop): ...to here.
29847 (validate_phases): Rename to...
29848 (timer::validate_phases): ...this, and add "m_" prefixes. Make
29849 locals "total" and "tv" const.
29850 (timevar_print): Rename to...
29851 (timer::print): ...this, and add "m_" prefixes. Make locals
29852 "total" and "tv" const. Eliminate test for timevar_enable.
29853 * timevar.h (timevar_enable): Eliminate.
29854 (g_timer): New declaration.
29855 (timevar_push_1): Eliminate.
29856 (timevar_pop_1): Eliminate.
29857 (timevar_print): Eliminate.
29858 (class timer): New class.
29859 (timevar_push): Rewrite to use g_timer.
29860 (timevar_pop): Likewise.
29861 * toplev.c (toplev::~toplev): Likewise.
29863 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
29865 * arm-protos.h (arm_sched_autopref): Delete.
29866 (tune_params): Re-organize, use enums for flag values.
29867 (FUSE_OPS): New macro.
29868 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
29869 (ARM_PREFETCH_BENEFICIAL): Likewise.
29870 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
29871 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
29872 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
29873 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
29874 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
29875 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
29876 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
29877 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
29879 (arm_option_override, thumb2_reorg, arm_print_tune_info)
29880 (aarch_macro_fusion_pair_p): Update uses of current_tune.
29881 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
29883 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
29885 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
29888 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
29889 Sandra Loosemore <sandra@codesourcery.com>
29891 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
29893 (REG_CLASS_NAMES): Add "IJMP_REGS".
29894 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
29895 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
29896 use new "c" register constraint.
29897 * config/nios2/constraint.md (c): New register constraint
29898 corresponding to IJMP_REGS.
29900 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
29902 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
29903 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
29904 define_splits): Delete, revamp, transmogrify into ...
29905 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
29906 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
29907 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
29910 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
29912 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
29913 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
29915 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
29917 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
29918 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
29919 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
29920 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
29921 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
29922 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
29923 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
29924 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
29925 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
29926 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
29927 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
29928 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
29929 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
29930 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
29931 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
29932 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
29933 and 30 corresponding splitters): Delete.
29935 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
29937 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
29940 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
29942 * combine.c (recog_for_combine_1): New function, factored out
29943 from recog_for_combine.
29944 (change_zero_ext): New function.
29945 (recog_for_combine): If recog fails, try again with the pattern
29946 modified by change_zero_ext; if that still fails, restore the
29949 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
29951 * combine.c (get_undo_marker): New function.
29952 (undo_to_marker): New function, largely factored out from ...
29953 (undo_all): ... this. Adjust.
29955 2015-05-12 Richard Biener <rguenther@suse.de>
29957 PR tree-optimization/66101
29958 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
29959 fixup if we turn a loop exit edge to a fallthru edge.
29961 2015-05-12 Richard Biener <rguenther@suse.de>
29963 PR tree-optimization/37021
29964 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
29965 (SLP_TREE_TWO_OPERATORS): New define.
29966 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
29967 SLP_TREE_TWO_OPERATORS.
29968 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
29970 (vect_build_slp_tree): Adjust.
29971 (vect_analyze_slp_cost_1): Likewise.
29972 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
29973 emitting two vector stmts and mixing the results.
29975 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
29977 * call.c (print_z_candidates): Remove dead code.
29979 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29981 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
29982 and zEC12_simple_fp.
29983 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
29986 2015-05-12 Tom de Vries <tom@codesourcery.com>
29988 PR tree-optimization/66010
29989 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
29991 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
29992 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
29993 va_lists are passed, and remove corresponding handling.
29994 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
29995 do_deref argument to ifn_va_arg.
29996 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
29999 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30002 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
30003 REG before taking its REGNO.
30005 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
30007 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
30008 rsp->sign_bit_copies and rsp->nonzero_bits into ...
30009 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
30010 present to get more accurate information about the number of sign bit
30011 copies and non zero bits.
30013 2015-05-12 Richard Biener <rguenther@suse.de>
30015 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
30016 do not allow unrolling.
30018 2015-05-11 Richard Henderson <rth@redhat.com>
30020 * config/i386/i386-modes.def (CCP): New.
30021 * config/i386/i386.c (put_condition_code): Handle it.
30022 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
30024 2015-05-11 Richard Henderson <rth@redhat.com>
30026 * target.def (md_asm_clobbers): Replace with...
30027 (md_asm_adjust): this.
30028 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
30029 (TARGET_MD_ASM_ADJUST): New.
30030 * tm.texi: Rebuild.
30031 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
30032 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
30033 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
30035 * cfgexpand.c (check_operand_nalternatives): Accept vector of
30036 constraints instead of lists of outputs and inputs.
30037 (expand_asm_stmt): Save and restore input_location around the
30038 body of the function. Move asm data into vectors instead of
30039 building tree lists. Generate cleanup sequences as needed,
30040 rather than waiting til the end. Use new md_asm_adjust hook.
30042 * config/vxworks.c: Include vec.h before target.h.
30043 * gimple.c: Likewise.
30044 * incpath.c: Likewise.
30045 * mode-switching.c: Likewise.
30047 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
30048 (cris_md_asm_adjust): this.
30049 (TARGET_MD_ASM_CLOBBERS): Remove.
30050 (TARGET_MD_ASM_ADJUST): New.
30051 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
30052 (ix86_md_asm_adjust): this.
30053 (TARGET_MD_ASM_CLOBBERS): Remove.
30054 (TARGET_MD_ASM_ADJUST): New.
30055 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
30056 (mn10300_md_asm_adjust): this.
30057 (TARGET_MD_ASM_CLOBBERS): Remove.
30058 (TARGET_MD_ASM_ADJUST): New.
30059 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
30060 (rs6000_md_asm_adjust): this.
30061 (TARGET_MD_ASM_CLOBBERS): Remove.
30062 (TARGET_MD_ASM_ADJUST): New.
30063 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
30064 (visium_md_asm_adjust): this.
30065 (TARGET_MD_ASM_CLOBBERS): Remove.
30066 (TARGET_MD_ASM_ADJUST): New.
30068 2015-05-11 Richard Henderson <rth@redhat.com>
30070 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
30071 if noutputs is zero.
30072 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
30074 * cfgexpand.c (expand_asm_operands): Merge into...
30075 (expand_asm_stmt): ... here.
30077 * cfgexpand.c (expand_asm_operands): Don't call
30078 resolve_asm_operand_names.
30079 * stmt.c (resolve_asm_operand_names): Clarify block comment.
30081 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
30083 * dwarf2out.c (gen_member_die): Sanity check that we access
30084 TYPE_MAIN_VARIANT for TYPE_METHODS.
30085 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
30086 checking TYPE_METHODS.
30087 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
30089 (build_distinct_type_copy): Clear TYPE_METHODS.
30090 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
30091 (verify_type): Allow TYPE_METHODS to be error_mark_node.
30092 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
30094 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
30096 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
30097 (emit_pattern_before_setloc): Likewise.
30099 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
30101 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
30102 for define_peephole2s.
30103 (get_peephole2_pattern): New function.
30104 (main): Use it. Call validate_pattern.
30106 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
30108 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
30109 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
30110 (Last callee saved reg is different for AVR_TINY architecture)
30112 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
30114 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
30115 when looking for memory references.
30117 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
30120 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
30121 via function pointers.
30123 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
30125 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
30126 indirect call by forcing address into a pseudo with -fno-plt.
30127 * common.opt (flag_plt): New option.
30128 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
30129 ([-fno-plt]): Document.
30131 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
30134 * config/rs6000/option-defaults.h: Add space between string literal
30137 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
30139 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
30140 accross ARM targets.
30142 2015-05-11 Christian Bruel <christian.bruel@st.com>
30144 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
30145 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
30147 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
30149 PR rtl-optimization/66076
30150 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
30151 Don't grow the heap array if it is already big enough from a
30152 previous iteration.
30154 2015-05-11 Christian Bruel <christian.bruel@st.com>
30156 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
30157 (is_called_in_ARM_mode): Remove.
30158 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
30159 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
30160 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
30161 arm_declare_function_name.
30163 2015-05-11 Christian Bruel <christian.bruel@st.com>
30165 * config/arm/arm.c (arm_option_override): Reoganized and split into :
30166 (arm_option_params_internal); New function.
30167 (arm_option_check_internal): New function.
30168 (arm_option_override_internal): New function.
30169 (thumb_code, thumb1_code): Remove.
30170 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
30171 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
30172 (thumb_code, thumb1_code): Remove.
30173 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
30175 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
30177 * config/alpha/alpha.c (alpha_emit_set_const_1)
30178 (alpha_emit_set_long_const, alpha_extract_integer)
30179 (alpha_legitimate_constant_p, alpha_split_const_mov)
30180 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
30181 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
30182 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
30184 * config/alpha/predicates.md (mode_mask_operand): Do not match
30186 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
30187 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
30188 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
30189 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
30190 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
30192 2015-05-11 Jakub Jelinek <jakub@redhat.com>
30195 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
30196 default_binds_local_p_2.
30197 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
30198 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
30200 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
30202 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
30204 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
30206 Patch by Richard Biener
30207 * coverage.c (coverage_obj_init): Delay building of type variant
30208 until the type is finished.
30210 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
30212 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
30213 mismatch between C and C++ type; compoare correctly ARG_TYPES
30214 for non-prototypes and output correctly parameter index for METHOD_TYPE.
30215 (odr_types_equivalent_p): Fix wording of warning about attributes;
30216 it is OK to match prototype and non-prototype.
30218 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
30220 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
30221 TYPE_ARG_TYPES list.
30222 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
30223 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
30225 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
30227 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
30228 * tree.h (is_lang_specific): Constify.
30230 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
30232 PR tree-optimization/64454
30233 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
30236 2015-05-08 Jason Merrill <jason@redhat.com>
30238 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
30239 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
30240 config/darwin.h, config/darwin9.h, config/elfos.h,
30241 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
30242 config/microblaze/microblaze.h, config/mips/mips.h,
30243 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
30244 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
30245 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
30246 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
30247 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
30248 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
30249 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
30250 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
30251 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
30252 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
30253 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
30254 between string literal and macro name.
30256 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30258 * jump.c: Change argument types to rtx_insn *.
30261 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30263 * lra-constraints.c: Change argument type to rtx_insn *.
30265 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30267 * df-problems.c: Change argument type to rtx_insn *.
30269 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30271 * combine.c: Change argument type to rtx_insn *.
30273 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30276 * rtlanal.c: Change argument type to rtx_insn *.
30278 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30280 * sched-deps.c: Change argument types to rtx_insn *.
30281 * sched-int.h: Adjust.
30283 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30285 * dwarf2cfi.c: Change argument type to rtx_insn *.
30287 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30289 * ira.c (decrease_live_ranges_number): Changetype of local
30290 variable to rtx_insn *.
30291 * recog.c: Change argument types to rtx_insn *.
30294 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30296 * reorg.c: Change argument types to rtx_insn *.
30298 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30300 * ira-color.c: Change argument types to rtx_insn *.
30301 * lra-eliminations.c: Likewise.
30304 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30306 * gcse.c: Change argument types to rtx_insn *.
30308 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30310 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
30312 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30314 * emit-rtl.c (emit_debug_insn_before): Change argument type to
30318 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30320 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
30323 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30325 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
30328 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30330 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
30333 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30335 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
30338 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30340 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
30344 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30346 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
30350 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30352 * except.c (can_nonlocal_goto): Change type of argument to
30356 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30358 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
30361 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30363 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
30364 * cfgrtl.c (can_delete_label_p): Adjust.
30367 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30369 * reorg.c (stop_search_p): Change argument to rtx_insn *.
30371 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30373 * except.c (make_reg_eh_region_note): Change argument to
30375 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
30376 * except.h: Adjust.
30378 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30380 * mode-switching.c (commit_mode_sets): Change type of local
30381 variable from rtx to rtx_insn *.
30383 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
30385 * doc/install.texi (--enable-languages): Add missing jit and lto info.
30386 Add ^ to grep command.
30387 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
30388 arg to last gimple_simplify declaration. Add missing gimple_build
30389 declaration for built-in function case with four tree args.
30391 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
30392 Szabolcs Nagy <szabolcs.nagy@arm.com>
30394 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
30395 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
30396 (GNU_USER_DYNAMIC_LINKERN32): Update.
30398 2015-05-08 Richard Biener <rguenther@suse.de>
30400 PR tree-optimization/66036
30401 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
30402 Handle strided group loads.
30403 (vect_verify_datarefs_alignment): Likewise.
30404 (vect_enhance_data_refs_alignment): Likewise.
30405 (vect_analyze_group_access): Likewise.
30406 (vect_analyze_data_ref_access): Likewise.
30407 (vect_analyze_data_ref_accesses): Likewise.
30408 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
30409 (vectorizable_load): Likewise.
30411 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
30413 * config/rs6000/rs6000.md: Require operand inequality in one
30416 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
30417 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
30419 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
30421 * config/rx/rx.md (movdi, movdf): Likewise.
30422 Likewise for define_peephole2s.
30424 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
30426 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
30427 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
30428 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
30429 vtst_u64): Rewrite using gcc vector extensions.
30431 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
30433 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
30434 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
30436 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
30438 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
30440 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
30442 * config/glibc-stdint.h (OPTION_MUSL): Define.
30443 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
30444 Change the definition based on OPTION_MUSL for 64 bit targets.
30445 * config/linux.h (OPTION_MUSL): Redefine.
30446 * config/alpha/linux.h (OPTION_MUSL): Redefine.
30447 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
30448 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
30450 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
30451 Szabolcs Nagy <szabolcs.nagy@arm.com>
30453 * config.gcc (LIBC_MUSL): New tm_defines macro.
30454 * config/linux.h (OPTION_MUSL): Define.
30455 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
30456 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
30457 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
30458 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
30459 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
30460 * config/linux.opt (mmusl): New option.
30461 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
30462 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
30463 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
30464 * configure: Regenerate.
30466 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
30467 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
30470 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
30471 * config/i386/knetbsd-gnu64.h: New file.
30473 2015-05-08 Marek Polacek <polacek@redhat.com>
30476 * doc/invoke.texi: Document -Woverride-init-side-effects.
30478 2015-05-07 Marek Polacek <polacek@redhat.com>
30481 * doc/invoke.texi: Document -Wshift-negative-value.
30483 2015-05-06 Aditya Kumar <hiraditya@msn.com>
30485 * gcov-tool.c (do_merge): Refactore to remove int ret.
30486 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
30487 !type == FUNC to type != FUNC.
30488 * reload.h (struct target_reload): Changee to type of
30489 x_spill_indirect_levels from bool to unsigned char.
30491 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
30493 * rtl.h (always_void_p): New function.
30494 * gengenrtl.c (always_void_p): Likewise.
30495 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
30496 with code foo are always VOIDmode.
30497 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
30498 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
30499 compare-elim.c, config/aarch64/aarch64.c,
30500 config/aarch64/aarch64.md, config/alpha/alpha.c,
30501 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
30502 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
30503 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
30504 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
30505 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
30506 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
30507 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
30508 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
30509 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
30510 config/ia64/vect.md, config/iq2000/iq2000.c,
30511 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
30512 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
30513 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
30514 config/mep/mep.c, config/microblaze/microblaze.c,
30515 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
30516 config/mn10300/mn10300.c, config/msp430/msp430.c,
30517 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
30518 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
30519 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
30520 config/rs6000/altivec.md, config/rs6000/rs6000.c,
30521 config/rs6000/rs6000.md, config/rs6000/vector.md,
30522 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
30523 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
30524 config/sh/sh.md, config/sh/sh_treg_combine.cc,
30525 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
30526 config/spu/spu.md, config/stormy16/stormy16.c,
30527 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
30528 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
30529 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
30530 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
30531 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
30532 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
30533 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
30534 var-tracking.c: Update calls accordingly.
30536 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
30539 PR middle-end/54303
30540 * varasm.c (function_mergeable_rodata_prefix): New function.
30541 (mergeable_string_section): Use it.
30542 (mergeable_constant_section): Use it.
30544 2015-05-07 Jeff Law <law@redhat.com>
30547 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
30548 simplifier to narrow arithmetic.
30549 * generic-match-head.c: (types_match, single_use): New functions.
30550 * gimple-match-head.c: (types_match, single_use): New functions.
30552 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
30554 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
30557 2015-05-07 Richard Biener <rguenther@suse.de>
30559 PR tree-optimization/66002
30560 * passes.def: Schedule another pass_merge_phi after ifcombine, right
30563 2015-05-07 Marek Polacek <polacek@redhat.com>
30564 Martin Uecker <uecker@eecs.berkeley.edu>
30566 * doc/invoke.texi: Document -fsanitize=bounds-strict.
30567 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
30568 into SANITIZE_NONDEFAULT.
30569 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
30571 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
30574 * config/alpha/alpha.c (alpha_override_options_after_change): New.
30575 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
30576 (alpha_override_options): Move align_loops, align_jumps and
30577 align_functions handling into alpha_override_options_after_change.
30579 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
30580 Chris Jones <chrisj@nvidia.com>
30581 Joshua Conner <jconner@nvidia.com>
30583 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
30584 linking of crtfastmath.o.
30585 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
30587 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
30589 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
30590 (cstore<mode>4_unsigned_imm): New expander.
30591 (cstore<mode>4): Remove empty constraint strings. Use the new
30594 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
30597 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
30600 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
30602 * config/aarch64/geniterators.sh: Use standard BRE in sed.
30604 2015-05-06 Alan Modra <amodra@gmail.com>
30607 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
30608 (UNSPEC_NOP): Define.
30609 (reload_vsx_from_gpr<mode>): Add missing DONE.
30610 (reload_gpr_from_vsx<mode>): Likewise.
30611 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
30612 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
30614 2015-05-06 Christian Bruel <christian.bruel@st.com>
30617 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
30618 align_jumps, align_functions into aarch64_override_options_after_change.
30620 2015-05-06 Richard Biener <rguenther@suse.de>
30622 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
30623 vect_transform_slp_perm_load to check if we support a permutation
30624 for basic-block vectorization.
30626 2015-05-06 Nick Clifton <nickc@redhat.com>
30628 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
30629 used, even if it is not being used as a frame pointer.
30631 2015-05-05 Jason Merrill <jason@redhat.com>
30633 * dwarf2out.c (gen_member_die): Don't emit anything for an
30634 anonymous class constructor.
30636 2015-05-05 David Malcolm <dmalcolm@redhat.com>
30638 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
30639 that it reflects the block structure.
30640 (afdo_propagate_edge): Likewise.
30641 (afdo_calculate_branch_prob): Likewise.
30642 (afdo_annotate_cfg): Likewise.
30643 * cfgcleanup.c (equal_different_set_p): Likewise.
30644 (try_crossjump_to_edge): Likewise.
30645 * cgraph.c (cgraph_node::verify_node): Likewise.
30646 * cgraphunit.c (expand_all_functions): Likewise.
30647 * config/i386/i386.c (ix86_expand_copysign): Likewise.
30648 (exact_dependency_1): Likewise.
30649 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
30650 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
30651 * gensupport.c (process_define_subst): Likewise.
30652 * lto-wrapper.c (merge_and_complain): Likewise.
30653 * tree-if-conv.c (if_convertible_bb_p): Likewise.
30654 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
30655 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
30656 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
30657 * tree-vect-loop.c (vectorizable_reduction): Likewise.
30658 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
30659 * tree-vect-stmts.c (vectorizable_shift): Likewise.
30660 * tree-vrp.c (vrp_finalize): Likewise.
30661 * tree.c (variably_modified_type_p): Likewise.
30663 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
30665 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
30666 on darwin12 and later.
30667 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
30668 file to pass -rdynamic on darwin12 and later.
30669 * config/darwin.opt (rdynamic): Add.
30671 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
30673 * doc/extend.texi (C Extensions): Update menu for moved Variable
30674 Attributes and Type Attributes sections.
30676 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
30679 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
30680 if rep_8byte stringop strategy was specified for 32-bit target.
30682 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
30685 * config/i386/i386.md (vector convert to float spltiter): Check for
30686 xmm16+, when splitting scalar float conversion.
30687 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
30689 2015-05-05 Nick Clifton <nickc@redhat.com>
30691 * config/msp430/msp430-opts.h (enum msp430_regions): New.
30692 * config/msp430/msp430.c (msp430_override_options): Complain if
30693 -mcode-region or -mdata-region is used on a non MSP430X.
30694 (msp430_section_attr): New function. Checks lower, upper and
30696 (msp430_attribute_table): Add lower, upper and either.
30697 (gen_prefix): New function. Generates a prefix for a section
30699 (msp430_select_section): New function - handles the choice of
30700 section for an object. Takes into account memory region
30701 attributes and options.
30702 (msp430_function_section): Use gen_prefix.
30703 (TARGET_SECTION_TYPE_FLAGS): Define.
30704 (msp430_section_type_flags): New function.
30705 (TARGET_ASM_UNIQUE_SECTION): Define.
30706 (msp430_unique_section): New function.
30707 (msp430_output_aligned_decl_common): New function.
30708 (msp430_do_not_relax_short_jumps): New function.
30709 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
30711 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
30712 * config/msp430/msp430-protos.h
30713 (msp430_do_not_relax_short_jumps): New prototype.
30714 (msp430_output_aligned_decl_common): New prototype.
30715 * config/msp430/msp430.md (length): New attribute.
30716 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
30717 then use a long code sequence for short jumps.
30718 * config/msp430/msp430.opt (mcode-region): New.
30719 (mdata-region): New.
30720 * doc/invoke.texi: Document new options.
30721 * doc/extend.texi: Document new attributes.
30723 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
30725 * config/aarch64-protos.h (struct cpu_branch_cost): New.
30726 (tune_params): Add field branch_costs.
30727 (aarch64_branch_cost): Declare.
30728 * config/aarch64.c (generic_branch_cost): New.
30729 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
30730 (cortexa53_tunings): Likewise.
30731 (cortexa57_tunings): Likewise.
30732 (thunderx_tunings): Likewise.
30733 (xgene1_tunings): Likewise.
30734 (aarch64_branch_cost): Define.
30735 * config/aarch64/aarch64.h (BRANCH_COST): Redefine.
30737 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
30739 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
30740 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
30741 * config/i386/i386.md: Ditto.
30742 * config/i386/winnt.c: Ditto.
30744 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
30746 * doc/extend.texi (__atomic Builtins): Move implementation details
30747 to the end of the description, rewrite opening paragraphs, state
30748 difference with __sync builtins, state C11/C++11 assumptions,
30749 weaken itemized descriptions, add explanation of memory model
30750 behaviour, expand description of compare-exchange, simplify text.
30752 2015-05-05 Renlin Li <renlin.li@arm.com>
30754 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
30756 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
30758 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
30759 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
30760 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
30761 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
30762 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
30763 * configure: Regenerate.
30764 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
30765 * doc/install.texi (aarch64*-*-*): Document new
30766 --enable-fix-cortex-a53-843419 option.
30767 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
30768 and -mno-fix-cortex-a53-843419 options.
30770 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
30773 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
30775 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
30777 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
30778 fix overactive TYPE_MIN_VALUE check and add FIXME for type
30779 compatibility problems.
30781 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
30783 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
30785 (cbranchsi4_reg): New.
30786 * config/microblaze/microblaze.c
30787 (microblaze_expand_conditional_branch_reg): New.
30788 * config/microblaze/microblaze-protos.h
30789 (microblaze_expand_conditional_branch_reg): New prototype.
30791 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
30793 * config/microblaze/microblaze.md (peephole2): New.
30795 2015-05-04 Jeff Law <law@redhat.com>
30798 2015-05-04 Jeff Law <law@redhat.com>
30800 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
30801 simplifier to narrow arithmetic.
30802 * generic-match-head.c: (types_match, single_use): New functions.
30803 * gimple-match-head.c: (types_match, single_use): New functions.
30805 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
30808 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
30809 (split_branches): Likewise.
30811 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
30813 * common.opt (fdelete-null-pointer-checks): Init to -1.
30814 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
30815 override flag_delete_null_pointer_checks default.
30816 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
30817 behavior re address zero. Better document target-specific behavior.
30818 (-fisolate-errneous-paths-dereference): Mention relationship to
30819 -fdelete-null-pointer-checks.
30821 2015-05-04 Jakub Jelinek <jakub@redhat.com>
30823 PR tree-optimization/65984
30824 * ubsan.c: Include tree-cfg.h.
30825 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
30826 stmt_could_throw_p test, rename can_throw variable to ends_bb.
30828 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
30830 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
30831 to CONST_DOUBLE_P predicate.
30832 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
30833 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
30834 allow only operands that satisfy standard_sse_constant_p predicate.
30835 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
30836 to CONST_DOUBLE_P predicate.
30838 2015-05-04 Jeff Law <law@redhat.com>
30840 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
30841 simplifier to narrow arithmetic.
30842 * generic-match-head.c: (types_match, single_use): New functions.
30843 * gimple-match-head.c: (types_match, single_use): New functions.
30845 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
30847 * config/arm/arm.c: Restore bootstrap.
30849 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
30851 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
30852 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
30853 as CONST_WIDE_INT, not CONST_DOUBLE.
30854 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
30855 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
30856 (ix86_find_base_term): Do not check for CONST_DOUBLE.
30857 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
30858 (ix86_build_signbit_mask): Rewrite using wide ints.
30859 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
30860 (ix86_rtx_costs): Handle CONST_WIDE_INT.
30861 (find_constant): Ditto.
30862 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
30863 using gen_int_mode.
30864 * config/i386/predicates.md (x86_64_immediate_operand)
30865 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
30866 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
30867 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
30868 (const0_operand): Also match const_wide_int.
30869 (constm1_operand): Ditto.
30870 (const1_operand): Ditto.
30872 2015-05-04 Richard Biener <rguenther@suse.de>
30874 PR tree-optimization/65965
30875 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
30876 store groups at gaps.
30878 2015-05-04 Richard Biener <rguenther@suse.de>
30880 PR tree-optimization/65935
30881 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
30882 then make sure to apply that swapping to the IL.
30884 2015-05-04 Jakub Jelinek <jakub@redhat.com>
30886 * Makefile.in (PATCHLEVEL_c): New variable.
30887 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
30888 expand the same way as if DEVPHASE_c was non-empty.
30890 2015-05-04 Kai Tietz <ktietz@redhat.com>
30893 * lto-wrapper.c (run_gcc): Open filename
30896 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
30898 * doc/extend.texi (Variable Attributes, Type Attributes): Move
30899 sections up in file, to immediately after the Function Attributes
30902 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
30904 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
30906 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30908 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
30909 (insert_partition_copy_on_edge): Adjust.
30910 (insert_rtx_to_part_on_edge): Likewise.
30911 (insert_part_to_rtx_on_edge): Likewise.
30913 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30915 * function.c (set_return_jump_label): Change type of argument to
30917 * function.h (set_return_jump_label): Adjust.
30919 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30921 * reload.h (struct reg_equivs_t): Change type of init to
30923 * ira.c (fix_reg_equiv_init): Adjust.
30924 * reload1.c (eliminate_regs_1): Likewise.
30925 (init_eliminable_invariants): Likewise.
30927 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30929 * cselib.c (fp_setter_insn): Take a rtx_insn *.
30930 * cselib.h (fp_setter_insn): Adjust.
30932 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30934 * recog.c (struct validate_replace_src_data): Change type of
30935 insn field to rtx_insn *.
30936 (validate_replace_src_group): Change type of argument to rtx_insn *.
30937 * recog.h (validate_replace_src_group): Adjust.
30939 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30941 * haifa-sched.c: Change the type of some variables to rtx_insn *.
30942 * sched-deps.c: Likewise.
30943 * sched-int.h: Likewise.
30944 * sched-rgn.c: Likewise.
30945 * sel-sched.c: Likewise.
30947 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30950 * config/i386/i386.c: Change the type of some arguments to
30952 * config/arm/arm.c: Likewise.
30954 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30956 * lra-constraints.c: Change type of some arguments to rtx_insn *.
30958 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30960 * regcprop.c (kill_autoinc_value): Change type of argument to
30963 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30965 * genrecog.c (print_subroutine): Adjust.
30966 * recog.c (get_bool_attr_mask_uncached): Likewise.
30967 * recog.h (struct recog_data_d): Change the type of insn to
30970 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30972 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
30974 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30976 * df-problems.c (df_set_note): Change type of argument to
30979 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30981 * builtins.c (expand_builtin_trap): Change type of local
30982 variable to rtx_insn *.
30983 (add_sched_insns_for_speculation): Likewise.
30984 (ix86_emit_save_regs): Likewise.
30985 (get_scratch_register_on_entry): Likewise.
30986 (ix86_emit_restore_reg_using_pop): Likewise.
30987 (ix86_emit_leave): Likewise.
30988 (ix86_emit_restore_regs_using_mov): Likewise.
30989 (ix86_expand_epilogue): Likewise.
30991 (rl78_alloc_physical_registers_umul): Likewise.
30992 * cselib.c (discard_useless_locs): Likewise.
30993 (cselib_invalidate_regno): Likewise.
30994 (cselib_invalidate_mem): Likewise.
30995 * function.c (expand_function_start): Likewise.
30996 (emit_use_return_register_into_block): Likewise.
30997 * gcse.c: Likewise.
30998 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
30999 * ifcvt.c (noce_get_alt_condition): Likewise.
31000 * loop-doloop.c (doloop_condition_get): Likewise.
31001 * lra-constraints.c (inherit_in_ebb): Likewise.
31002 * modulo-sched.c (sms_schedule_by_order): Likewise.
31003 * recog.c (next_insn_tests_no_inequality): Likewise.
31004 * reorg.c (emit_delay_sequence): Likewise.
31005 (update_reg_dead_notes): Likewise.
31006 (fix_reg_dead_note): Likewise.
31007 (fill_slots_from_thread): Likewise.
31008 (delete_computation): Likewise.
31010 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
31012 * doc/extend.texi (Variable Attributes): Add menu and proper
31013 @nodes to subsections. Move Microsoft Windows attributes to
31014 their own subsection.
31015 (Type Attributes): Reorganize introduction to remove duplicate
31016 list of attributes. Add menu and proper @nodes to subsections.
31017 Alphabetize the main table of common attributes.
31019 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
31021 * match.pd: New simplification patterns.
31022 (x + (x & 1)) -> ((x + 1) & ~1)
31023 (x & ~(x & y)) -> ((x & ~y))
31024 (x | ~(x | y)) -> ((x | ~y))
31026 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31028 * target.def (attribute_table): Mention that struct attribute_spec
31029 is defined in tree-core.h rather than tree.h
31030 * doc/tm.texi: Regenerate.
31032 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
31034 * genrecog.c (test): Rename to rtx_test. Update rest of file
31037 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
31039 PR translation/65959
31040 * params.h (DEFPARAM): Rename msgid to nocmsgid.
31042 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
31044 * config/aarch64/aarch64-protos.h (tune_params):
31045 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
31046 * config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
31047 Return value depending on target.
31048 (generic_tunings): Initialize new target settings.
31049 (cortexa53_tunings): Likewise.
31050 (cortexa57_tunings): Likewise.
31051 (thunderx_tunings): Likewise.
31052 (xgene1_tunings): Likewise.
31054 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
31056 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
31057 Make Cortex-A53 shift costs more accurate.
31059 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31061 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
31064 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
31066 * config/aarch64/aarch64.c (aarch64_rtx_costs):
31067 Calculate cost of op0 and op1 in PLUS and MINUS cases.
31069 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31071 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
31072 Add cost of op0 in the compare-with-fpzero case.
31074 2015-04-30 David Malcolm <dmalcolm@redhat.com>
31076 * builtins.c (fold_builtin_1): Remove spurious second
31078 * cgraph.h (symtab_node::get_availability): Likewise.
31079 * opts.c (common_handle_option): Remove spurious second semicolon.
31080 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
31081 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
31083 2015-04-30 Caroline Tice <cmtice@google.com>
31085 PR gcov-profile/65929
31086 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
31087 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
31088 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
31089 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
31090 * doc/tm.texi: Regenerate.
31091 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
31092 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
31093 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
31094 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
31096 2015-04-30 Marek Polacek <polacek@redhat.com>
31098 * varasm.c (handle_cache_entry): Fix logic.
31100 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31102 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
31103 (*extrsi5_insn_uxtw_alt): Likewise.
31104 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
31105 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
31108 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31110 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
31113 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31115 * config/aarch64/aarch64.md
31116 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
31117 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
31118 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
31119 appropriately. Handle alternative EON form.
31121 2015-04-30 Renlin Li <renlin.li@arm.com>
31123 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
31124 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
31126 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
31129 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
31130 -fstrict-aliasing boundaries.
31132 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31134 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
31135 and [SU]MNEGL patterns.
31137 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31139 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
31140 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
31141 combined arithmetic-shift ops. Properly handle all shift and extend
31142 operations that can occur in combination with PLUS/MINUS.
31143 Rename maybe_fma to compound_p.
31144 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
31145 arithmetic and shift operations.
31147 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31149 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
31150 rather than arith_shift cost when costing ADD/MINUS of an
31153 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
31156 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
31159 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
31161 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
31162 are for the same position.
31164 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
31166 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
31168 (vectorize_loops): Use it.
31170 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
31172 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
31173 for aggregate types.
31174 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
31175 type to be non_ODR.
31176 * tree.c (need_assembler_name_p): Compute mangled name for
31177 non-fundamental types and integer types.
31179 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
31181 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
31183 * expr.c (expand_expr_real_2): Likewise.
31185 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
31187 * tree.c (build_common_builtin_nodes): Do not build
31188 __builtin_alloca_with_align as equivalent of library alloca.
31190 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
31192 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
31193 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
31195 * tree.c: Include print-tree.h and ipa-utils.h
31196 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
31197 (free_lang_data_in_cgraph): Call verify_type.
31198 (verify_type_variant): New function.
31199 (verify_type): New function.
31200 * tree.h (verify_type): Declare.
31202 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
31204 * config/mips/mips-cpus.def: (mips4): Change default processor
31205 from PROCESSOR_R8000 to PROCESSOR_R10000.
31207 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
31209 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
31210 la/jalr instead of jal.
31212 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
31215 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
31216 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
31217 (setcc+movzbl peephole2): Check also clobbered reg.
31218 (setcc+andl peephole2): Ditto.
31220 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
31223 * config/nvptx/mkoffload.c (target_ilp32): New variable.
31224 (main): Set it depending on "-foffload-abi=[...]".
31225 (compile_native, main): Use it to pass "-m32" or "-m64" to the
31228 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
31231 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
31232 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
31233 Flip lane index back at assembly time for bigendian.
31235 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
31237 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
31238 * gimplify.c (gimplify_omp_workshare): Use it.
31240 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
31242 * Makefile.in (build/genrecog.o): Depend on inchash.h.
31243 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
31245 * genrecog.c: Rewrite most of the code except for the third page.
31247 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
31249 * inchash.h, inchash.c: Include bconfig.h for build objects.
31250 * Makefile.in (build/inchash.o): New rule.
31252 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
31255 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
31256 number in type attribute expression.
31258 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
31260 * loop-iv.c (canon_condition): Generalize to all types of integer
31263 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
31265 * gimple-walk.c: Prune duplicate or unneeded includes.
31266 (walk_gimple_asm): Only call parse_input_constraint or
31267 parse_output_constraint if their findings are used.
31268 Honour parse_input_constraint and parse_output_constraint
31271 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
31273 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
31275 2015-04-29 Tom de Vries <tom@codesourcery.com>
31277 PR tree-optimization/65893
31278 * passes.def (pass_all_optimizations): Move pass_stdarg to after
31281 2015-04-29 Richard Biener <rguenther@suse.de>
31283 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
31284 compute GROUP_SIZE for basic-block SLP.
31285 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
31286 take into account gaps.
31287 (vect_get_mask_element): Properly reject references to previous
31289 (vect_transform_slp_perm_load): Likewise.
31291 2015-04-29 Christian Bruel <christian.bruel@st.com>
31294 * config/i386/i386.c (ix86_default_align): New function.
31295 (ix86_override_options_after_change): Call ix86_default_align.
31296 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
31297 (ix86_override_options_after_change): New function.
31299 2015-04-28 Jeff Law <law@redhat.com>
31301 * tree-ssa-dom.c (record_equality); Fix comment typos.
31303 2015-04-28 Tom de Vries <tom@codesourcery.com>
31305 PR tree-optimization/65887
31306 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
31308 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
31310 * doc/extend.texi (Declaring Attributes of Functions): Split into
31311 subsections by target. Alphabetize the table of common attributes.
31312 Rewrite some of the introductory text to reflect the new structure.
31313 Update some cross-references to point to the new subsections.
31314 (Attribute Syntax): Put paragraph about "__" naming here. Remove
31315 duplicate copies in the discussion of function, label, and type
31318 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
31321 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
31323 2015-04-28 Jason Merrill <jason@redhat.com>
31326 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
31327 (finalize_type_size): Respect TYPE_USER_ALIGN.
31328 (layout_type) [ARRAY_TYPE]: Likewise.
31330 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
31332 * config/arm/arm.md (*arm_movt): Fix type attribute.
31333 (*cmpsi_shiftsi): Likewise.
31334 (*cmpsi_shiftsi_swp): Likewise.
31335 (*movsicc_insn): Likewise.
31336 (*cond_move): Likewise.
31337 (*if_plus_move): Likewise.
31338 (*if_move_plus): Likewise.
31339 (*if_arith_move): Likewise.
31340 (*if_move_arith): Likewise.
31341 (*if_shift_move): Likewise.
31342 (*if_move_shift): Likewise.
31343 (*arm_movtas_ze): Likewise.
31344 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
31345 redundancy and type attribute.
31346 (*thumb2_movsi_insn): Fix type attribute.
31347 (*thumb2_addsi_short): Likewise.
31348 (thumb2_addsi3_compare0): Likewise.
31349 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
31350 attributes accordingly.
31352 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
31355 * function.c (pad_to_arg_alignment): Add parentheses.
31357 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
31359 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
31360 libgcc/config/frv/elf-lib.h.
31362 2015-04-28 Tom de Vries <tom@codesourcery.com>
31364 * tree-call-cdce.c: Fix example in header comment.
31366 2015-04-28 Richard Biener <rguenther@suse.de>
31368 PR tree-optimization/62283
31369 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
31370 fails fatally and we are vectorizing a basic-block simply
31371 cause the child to be constructed piecewise.
31372 (vect_analyze_slp_cost_1): Adjust.
31373 (vect_detect_hybrid_slp_stmts): Likewise.
31374 (vect_bb_slp_scalar_cost): Likewise.
31375 (vect_get_constant_vectors): For piecewise constructed
31376 constants place them after the last def.
31377 (vect_get_slp_defs): Adjust.
31378 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
31379 externals for basic-block vectorization.
31381 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
31384 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
31386 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
31387 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
31388 (AARCH64_TUNE_FMA_STEERING): Likewise.
31389 * config/aarch64/aarch64-cores.def: Set
31390 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
31391 FMUL/FMADD instructions.
31392 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
31393 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
31394 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
31395 * config/aarch64/cortex-a57-fma-steering.h: New file.
31396 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
31398 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
31400 * gensupport.c (std_preds): Add missing codes to address_operand entry.
31402 2015-04-28 Richard Biener <rguenther@suse.de>
31404 PR tree-optimization/65851
31405 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
31406 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
31407 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
31408 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
31409 (ccp_visit_phi_node): Adjust.
31410 (evaluate_stmt): For simplifications to SSA names return its
31411 lattice value if that isn't VARYING. Return immediately when
31412 simplified to a constant.
31413 (visit_assignment): Adjust.
31414 (ccp_visit_stmt): Likewise.
31416 2015-04-28 Tom de Vries <tom@codesourcery.com>
31418 PR tree-optimization/65818
31419 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
31422 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31424 * calls.c (save_fixed_argument_area): Don't check
31425 ARGS_GROW_DOWNWARD with the preprocessor.
31426 (restore_fixed_argument_area): Likewise.
31427 (mem_overlaps_already_clobbered_arg_p): Likewise.
31428 (check_sibcall_argument_overlap): Likewise.
31429 (expand_call): Likewise.
31430 (emit_library_call_value_1): Likewise.
31431 (store_one_arg): Likewise.
31432 * function.c (assign_parms): Likewise.
31433 (locate_and_pad_parm): Likewise.
31434 (pad_to_arg_alignment): Likewise.
31435 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
31437 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31439 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
31440 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
31441 * calls.c (save_fixed_argument_area): Don't chekc if
31442 ARGS_GROW_DOWNWARD is defined.
31443 (restore_fixed_argument_area): Likewise.
31444 (mem_overlaps_already_clobbered_arg_p): Likewise.
31445 (check_sibcall_argument_overlap): Likewise.
31446 (expand_call): Likewise.
31447 (emit_library_call_value_1): Likewise.
31448 (store_one_arg): Likewise.
31449 * function.c (assign_parms): Likewise.
31450 (locate_and_pad_parm): Likewise.
31451 (pad_to_arg_alignment): Likewise.
31452 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
31454 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31456 * defaults.h (gen_epilogue): New function.
31457 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
31459 * cfgrtl.c (cfg_layout_finalize): Likewise.
31460 * df-scan.c: Likewise.
31461 * function.c (thread_prologue_and_epilogue_insns): Likewise.
31462 (reposition_prologue_and_epilogue_notes): Likewise.
31463 * reorg.c (find_end_label): Likewise.
31464 * toplev.c: Likewise.
31466 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31468 * bb-reorder.c (HAVE_return): Don't check if its undefined.
31469 * defaults.h (gen_simple_return): New function.
31470 (gen_simple_return): Likewise.
31471 (HAVE_return): Add default definition to false.
31472 (HAVE_simple_return): Likewise.
31473 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
31474 HAVE_return and HAVE_simple_return are defined.
31475 * function.c (gen_return_pattern): Likewise.
31476 (convert_jumps_to_returns): Likewise.
31477 (thread_prologue_and_epilogue_insns): Likewise.
31478 * reorg.c (find_end_label): Likewise.
31479 (dbr_schedule): Likewise.
31480 * shrink-wrap.c: Likewise.
31481 * shrink-wrap.h: Likewise.
31483 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31485 * defaults.h (EPILOGUE_USES): Add default definition of false.
31486 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
31487 * resource.c (init_resource_info): Likewise.
31489 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31491 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
31493 * dwarf2out.c (field_byte_offset): REmove check if
31494 PCC_BITFIELD_TYPE_MATTERS is defined.
31495 * stor-layout.c (layout_decl): Likewise.
31496 (update_alignment_for_field): Likewise.
31497 (place_field): Likewise.
31499 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31501 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
31503 * regrename.c (check_new_reg_p): Remove check if
31504 HARD_REGNO_RENAME_OK is defined.
31505 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
31507 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31509 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
31510 * cse.c (fold_rtx): Likewise.
31511 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
31512 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
31513 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
31514 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
31515 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
31516 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
31517 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
31518 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
31519 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
31520 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
31522 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
31523 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
31524 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
31525 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
31526 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
31527 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
31528 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
31529 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
31530 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
31531 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
31532 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
31533 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
31534 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
31535 * doc/tm.texi: Regenerate.
31536 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
31537 either true or false.
31539 2015-04-27 Jeff Law <law@redhat.com>
31541 PR tree-optimization/65217
31542 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
31543 of them has a single use, make sure it is the LHS of the implied
31546 2015-04-28 Alan Modra <amodra@gmail.com>
31549 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
31550 (offsettable_ok_by_alignment): Use minimum of decl and toc
31551 pointer alignment. Replace dead code with assertion.
31552 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
31553 case if size exceeds toc pointer alignment.
31554 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
31555 (rs6000_emit_move): Likewise.
31556 * configure.ac: Add linker toc pointer alignment check.
31557 * configure: Regenerate.
31558 * config.in: Regenerate.
31560 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
31562 * config.gcc: Add h8300-*-linux.
31563 * config/h8300/linux.h: New.
31564 * config/h8300/t-linux: New.
31565 * config/h8300/h8300.c (h8300_option_override): Normal mode
31566 is not supported for h8300-*-linux.
31567 (h8300_file_start): Target priority change.
31568 (get_shift_alg): Likewise.
31569 (h8300_shift_need_scratch_p): Likewise.
31570 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
31571 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
31573 2015-04-27 Caroline Tice <cmtice@google.com>
31575 * final.c (final_scan_insn): Output cold_function_name as function
31577 * varasm.c (cold_function_name): Make global.
31578 (assemble_start_function): Re-set cold_function_name.
31579 (assemble_end_function): Output cold partition size.
31580 * varasm.h (cold_function_name): Declare global.
31582 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
31584 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
31585 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
31587 (*movxi_internal_avx512f): Ditto.
31588 (define_split): Check for xmm16+, when splitting scalar float_extend.
31589 (*extendsfdf2_mixed): Use "v" constraint.
31590 (define_split): Check for xmm16+, when splitting scalar float_truncate.
31591 (*truncdfsf_fast_sse): Use "v" constraint.
31592 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
31593 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
31594 (define_peephole2): Check for xmm16+, when converting scalar
31596 (define_peephole2): Check for xmm16+, when converting scalar
31598 (*fop_<mode>_comm_mixed): Use "v" constraint.
31599 (*fop_<mode>_comm_sse): Ditto.
31600 (*fop_<mode>_1_mixed): Ditto.
31601 (*sqrt<mode>2_sse): Ditto.
31602 (*ieee_s<ieee_maxmin><mode>3): Ditto.
31604 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31606 * combine.c (simplify_if_then_else): Use std::swap instead
31607 of manually swapping.
31608 (known_cond): Likewise.
31609 (simplify_comparison): Likewise.
31611 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
31614 * config/rs6000/htm.md: Remove all define_expands.
31615 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
31616 UNSPECV_HTM_TABORTWCI): Remove.
31617 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
31618 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
31619 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
31620 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
31621 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
31622 tabortwci_internal): Remove define_insns.
31623 (tabort<wd>c, tabort<wd>ci): New define_insns.
31624 (tabort): Use gpc_reg_operand.
31625 (tcheck): Remove operand.
31626 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
31627 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
31629 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
31630 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
31631 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
31632 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
31633 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
31634 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
31635 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
31636 (tcheck): Remove builtin argument.
31637 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
31639 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
31640 tabortdc and tabortdci builtins when not in 64-bit mode.
31641 Modify code to handle the loss of the HTM define_expands.
31642 Emit code to copy the CR register to TARGET.
31643 (htm_init_builtins): Modify code to handle the loss of the HTM
31645 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
31646 (RS6000_BTC_64BIT): Likewise.
31647 (RS6000_BTC_CR): New macro.
31648 * doc/extend.texi: Update documentation for htm builtins.
31650 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31652 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
31653 of manually swapping.
31654 (simplify_associative_operation): Likewise.
31655 (simplify_binary_operation): Likewise.
31656 (simplify_plus_minus): Likewise.
31657 (simplify_relational_operation): Likewise.
31658 (simplify_ternary_operation): Likewise.
31660 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
31662 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
31663 (xs_hi_nonmemory_operand): Remove error.
31664 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
31665 general_operand rather than xs_hi_general_operand.
31667 2015-04-27 Richard Biener <rguenther@suse.de>
31669 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
31670 (record_equivalences_from_stmt): Valueize rhs.
31671 (record_equality): Canonicalize x and y order via
31672 tree_swap_operands_p. Do not swap operands for same loop depth.
31674 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
31678 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
31679 Add hint how to use own spec file.
31681 2015-04-27 Jakub Jelinek <jakub@redhat.com>
31683 PR tree-optimization/65875
31684 * tree-vrp.c (update_value_range): If in is_new case setting
31685 old_vr to VR_VARYING, also set new_vr to it. Remove
31686 old_vr->type == VR_VARYING test.
31687 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
31688 SSA_PROP_INTERESTING if update_value_range returned true,
31689 but new range is VR_VARYING.
31691 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
31693 * combine.c (sign_extend_short_imm): New.
31694 (set_nonzero_bits_and_sign_copies): Use above new function for sign
31695 extension of src short immediate.
31696 (reg_nonzero_bits_for_combine): Likewise for tem.
31698 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
31700 * stor-layout.c (self_referential_component_ref_p): New predicate.
31701 (copy_self_referential_tree_r): Use it.
31702 (self_referential_size): Punt for simple operations directly involving
31703 self-referential component references.
31704 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
31706 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
31708 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
31710 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
31712 * vec.h (vec): Make splice arguments const. Update definitions
31715 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
31717 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
31720 2015-04-26 Tom de Vries <tom@codesourcery.com>
31722 PR tree-optimization/65826
31723 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
31725 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
31727 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
31728 (*madd3<mode>): Ditto.
31729 (*msub4<mode>): Ditto.
31730 (*msub3<mode>): Ditto.
31731 (*nmadd4<mode>): Ditto.
31732 (*nmadd3<mode>): Ditto.
31733 (*nmadd4<mode>_fastmath): Ditto.
31734 (*nmadd3<mode>_fastmath): Ditto.
31735 (*nmsub4<mode>): Ditto.
31736 (*nmsub3<mode>): Ditto.
31737 (*nmsub4<mode>_fastmath): Ditto.
31738 (*nmsub3<mode>_fastmath): Ditto.
31740 2015-04-24 Jason Merrill <jason@redhat.com>
31743 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
31744 down when building TYPE_CANONICAL.
31745 (build_pointer_type_for_mode): Likewise.
31747 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
31749 * genrecog.c (validate_pattern): Check matching constraint refers
31750 to a lower numbered operand.
31752 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
31755 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
31756 save to independent variables use the Save attribute. This will
31757 allow these options to be modified with the #pragma/attribute
31759 (-mallow-movmisalign): Likewise.
31760 (-mallow-df-permute): Likewise.
31761 (-msched-groups): Likewise.
31762 (-malways-hint): Likewise.
31763 (-malign-branch-targets): Likewise.
31764 (-mvectorize-builtins): Likewise.
31765 (-msave-toc-indirect): Likewise.
31767 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
31768 can be set via the #pragma/attribute target support.
31769 (rs6000_opt_vars): Likewise.
31770 (rs6000_inner_target_options): If VSX was set, also set
31771 -mno-avoid-indexed-addresses.
31773 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31775 * config/arm/iterators.md (shiftable_ops): Rename to...
31776 (SHIFTABLE_OPS): ... This. Update use in comments.
31777 (ior_xor): Rename to...
31778 (IOR_XOR): ... This.
31779 (vqh_ops): Rename to...
31780 (VQH_OPS): ... This.
31781 (vqhs_ops): Rename to...
31782 (VQHS_OPS): ... This.
31783 (rshifts): Rename to...
31784 (RSHIFTS): ... This.
31785 (returns): Rename to...
31786 (RETURNS): ... This.
31787 * config/arm/arm.md: Update uses of the above.
31788 * config/arm/neon.md: Likewise.
31790 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31792 * config.host (case ${host}): Add aarch64*-*-linux case.
31793 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
31794 fields to all the cores.
31795 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
31796 Add MCPU_MTUNE_NATIVE_SPECS.
31797 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
31798 field to all extensions.
31799 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
31800 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
31801 Adjust definition of AARCH64_OPT_EXTENSION.
31802 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
31803 (MCPU_MTUNE_NATIVE_SPECS): Define.
31804 * config/aarch64/driver-aarch64.c: New file.
31805 * config/aarch64/x-arch64: New file.
31806 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
31809 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
31810 Wei Mi <wmi@google.com>
31812 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
31813 * config/i386/i386.c (extract_base_offset_in_addr): New function.
31814 (ix86_operands_ok_for_move_multiple): Ditto.
31815 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
31816 (movlpd/movhpd to movupd peephole2): Ditto.
31818 2015-04-24 Marek Polacek <polacek@redhat.com>
31821 * input.h (from_macro_expansion_at): Define.
31824 * doc/invoke.texi: Update description of -Wlogical-op.
31826 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
31828 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
31829 ternary operator in fprintf and harmonize spacing.
31831 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
31833 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
31834 Mark operand1 commutative.
31836 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
31838 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
31839 input operands in memory.
31840 (*vec_concatv2si_sse4_1): Ditto.
31841 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
31842 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
31844 (vec_extract_hi_v32hi): Ditto.
31845 (vec_extract_hi_v64hi): Ditto.
31846 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
31848 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
31849 Steven Bosscher <steven@gcc.gnu.org>
31851 PR rtl-optimization/34503
31852 * cprop.c (cprop_reg_p): New.
31853 (hash_scan_set): Use above function to check if register can be
31855 (find_avail_set): Return up to two sets, one whose source is a
31856 register and one whose source is a constant. Sets are returned in an
31857 array passed as parameter rather than as a return value.
31858 (cprop_insn): Use a do while loop rather than a goto. Try each of the
31859 sets returned by find_avail_set, starting with the one whose source is
31860 a constant. Use cprop_reg_p to check if register can be propagated.
31861 (do_local_cprop): Use cprop_reg_p to check if register can be
31863 (implicit_set_cond_p): Likewise.
31865 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
31867 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
31868 (sem_function::equals): IGNORED_NODES parameter is now unused;
31869 update call of equals_private.
31870 (sem_function::equals_private): Do not call equals_wpa; skip
31871 gimple body matching if there is no body.
31872 (sem_function::init): Add logic to hash tthunk info.
31873 (sem_function::parse): Also parse thunks.
31874 * ipa-icf.h (equals_private): Update declaration.
31876 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31878 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
31879 asterisk from name so this can be generated directly.
31880 (*altivec_stvx_<mode>_internal): Likewise.
31881 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
31882 that this is never called during or after reload/lra.
31883 (rs6000_frame_related): Remove split_reg
31884 argument and logic that references it.
31885 (emit_frame_save): Remove last parameter from call to
31886 rs6000_frame_related.
31887 (rs6000_emit_prologue): Remove last parameter from eight calls to
31888 rs6000_frame_related. Force generation of stvx instruction for
31889 Altivec register saves. Remove split_reg handling, which is no
31891 (rs6000_emit_epilogue): Force generation of lvx instruction for
31892 Altivec register restores.
31894 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31896 * config/rs6000/rs6000.opt (mcrypto): Change option description to
31897 match category changes in ISA 2.07B.
31899 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31901 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
31903 (cmp_op, cmp_type): New code attributes.
31904 (NEON_VCMP, NEON_VACMP): New int iterators.
31905 (cmp_op_unsp): New int attribute.
31906 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
31907 (neon_vceq<mode>): Delete.
31908 (neon_vc<cmp_op><mode>_insn): New pattern.
31909 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
31910 (neon_vcgeu<mode>): Delete.
31911 (neon_vcle<mode>): Likewise.
31912 (neon_vclt<mode>: Likewise.
31913 (neon_vcage<mode>): Likewise.
31914 (neon_vcagt<mode>): Likewise.
31915 (neon_vca<cmp_op><mode>): New define_expand.
31916 (neon_vca<cmp_op><mode>_insn): New pattern.
31917 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
31919 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
31921 * tree.h (attribute_value_equal): Declare.
31922 * tree.c (attribute_value_equal): Export.
31924 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
31926 * ipa-icf.c (sem_item::compare_attributes): New function.
31927 (sem_item::compare_referenced_symbol_properties): Compare variable
31929 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
31930 (sem_function::param_used_p): New function.
31931 (sem_function::equals_wpa): Fix attribute comparsion; match
31932 parameter type codes; do not compare paremter flags when
31933 they are not used; compare edge flags; compare indirect calls.
31934 (sem_item::update_hash_by_addr_refs): Hash reference type.
31935 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
31936 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
31937 reference use type.
31938 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
31939 * ipa-icf.h (compare_attributes, param_used_p): Declare.
31941 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
31943 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
31945 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
31946 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
31947 (sem_item::compare_referenced_symbol_properties): New.
31948 (sem_item::hash_referenced_symbol_properties): New.
31949 (sem_item::compare_cgraph_references): Rename to ...
31950 (sem_item::compare_symbol_references): ... this one; use
31951 compare_referenced_symbol_properties.
31952 (sem_function::equals_wpa): Do not compare
31953 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
31954 DECL_IS_OPERATOR_NEW; compare pointer sizes.
31955 (sem_item::update_hash_by_addr_refs): Call
31956 hash_referenced_symbol_properties.
31957 (sem_item::update_hash_by_local_refs): Cleanup.
31958 (sem_function::merge): Do not mix up symbol properties.
31959 (sem_variable::equals_wpa): Use compare_symbol_references.
31960 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
31961 (sem_item::hash_referenced_symbol_properties): New.
31962 (sem_item::compare_symbol_references): New.
31963 (sem_item::compare_cgraph_references): Remove.
31965 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
31968 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
31969 Emit size of local.
31971 2015-04-23 Nick Clifton <nickc@redhat.com>
31973 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
31974 ATTRIBUTE_UNUSED to x parameter.
31975 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
31977 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31979 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
31980 TARGET_CRYPTO to TARGET_P8_VECTOR>
31981 (crypto_vpermxor_<mode>): Likewise.
31982 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
31983 (BU_CRYPTO_3A): Likewise.
31984 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
31985 (BU_CRYPTO_OVERLOAD_3A): New #define.
31986 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
31987 (VPMSUMH): Likewise.
31988 (VPMSUMW): Likewise.
31989 (VPMSUMD): Likewise.
31990 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
31991 (VPERMXOR_V4SI): Likewise.
31992 (VPERMXOR_V8HI): Likewise.
31993 (VPERMXOR_V16QI): Likewise.
31994 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
31995 BU_CRYPTO_OVERLOAD_2A.
31996 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
31997 BU_CRYPTO_OVERLOAD_3A.
31998 * config/rs6000/rs6000.opt (mcrypto): Change description of
32001 2015-04-23 Richard Biener <rguenther@suse.de>
32003 * passes.def: Remove copy propagation passes run directly after CCP.
32004 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
32006 (ccp_visit_phi_node): Rework to handle first executable edge
32009 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
32011 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
32012 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
32013 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
32014 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
32015 (thumb_legimitimize_reload_address): Remove.
32016 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
32018 (thumb_legimitimize_reload_address): Remove.
32020 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32022 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
32024 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32026 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
32028 (store_multiple): Likewise.
32030 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32032 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
32033 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
32034 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
32035 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
32036 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
32037 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
32038 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
32039 Specify issue_rate value.
32040 (arm_issue_rate): Look up issue rate from tuning structs. Remove
32041 large switch statement.
32042 (arm_marvell_pj4_tune): New struct.
32043 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
32046 2015-04-23 Richard Biener <rguenther@suse.de>
32048 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
32049 (vect_find_last_store_in_slp_instance): Rename to ...
32050 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
32051 (vect_analyze_slp_cost_1): Use vector_load for constant defs
32052 and vec_construct for external defs when estimating prologue cost.
32053 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
32054 Compute costs here only when vectorizing loops.
32055 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
32056 have been determined.
32057 (vect_schedule_slp_instance): Simplify vectorized code placement
32058 and prepare for in-BB external defs.
32059 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
32060 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
32061 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
32063 (vect_model_load_cost): Likewise.
32064 (vectorizable_store): Instead add it here.
32065 (vectorizable_load): Likewise.
32066 (vect_is_simple_use): Dump def type textually.
32068 2015-04-23 Richard Biener <rguenther@suse.de>
32070 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
32071 * cfgloop.c (verify_loop_structure): Verify the root loop node.
32072 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
32073 instead of get_eh_region_from_lp_number.
32074 * loop-init.c (fix_loop_structure): If we removed a loop, reset
32077 2015-04-23 Anton Blanchard <anton@samba.org>
32079 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
32080 need for -mprofile-kernel to save LR to stack.
32082 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32084 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
32086 (insn_is_swappable_p): Return 1 for a convert from double to
32087 single precision when all of its uses are splats of BE element
32090 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
32092 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
32094 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32097 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
32098 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
32099 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
32101 (rs6000_builtin_mask_for_load): Return 0 for targets with
32102 efficient unaligned VSX accesses so that the vectorizer will use
32103 direct unaligned loads.
32104 (rs6000_builtin_support_vector_misalignment): Always return true
32105 for targets with efficient unaligned VSX accesses.
32106 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
32107 stores on targets with efficient unaligned VSX accesses is almost
32108 always the same as the cost of an aligned load or store, so model
32110 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
32111 unaligned vectors if we have efficient unaligned VSX accesses.
32112 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
32113 undocumented option.
32115 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32118 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
32120 * config.gcc (LIBC_MUSL): New tm_defines macro.
32121 * config/linux.h (OPTION_MUSL): Define.
32122 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
32123 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
32124 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
32126 * config/linux.opt (mmusl): New option.
32127 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
32128 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
32130 * configure: Regenerate.
32132 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
32134 * config.gcc (LIBC_MUSL): New tm_defines macro.
32135 * config/linux.h (OPTION_MUSL): Define.
32136 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
32137 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
32138 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
32140 * config/linux.opt (mmusl): New option.
32141 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
32142 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
32144 * configure: Regenerate.
32146 2015-04-22 Yury Gribov <y.gribov@samsung.com>
32148 * doc/invoke.texi (-fsanitize-sections): Update description.
32149 * asan.c (set_sanitized_sections): Parse incoming arg.
32150 (section_sanitized_p): Support wildcards.
32152 2015-04-22 Tom de Vries <tom@codesourcery.com>
32154 PR tree-optimization/65823
32155 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
32156 equality between ap_copy and ap.
32158 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
32161 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
32163 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
32166 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
32168 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
32171 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
32172 remove already contained t-files.
32174 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
32176 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
32177 Remove unneeded forward declarations.
32178 (suitable_for_tail_call_opt_p): Commentary typo fix.
32180 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
32182 * varasm.c (emit_bss): Remove redundant guard.
32184 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
32186 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
32188 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
32190 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
32192 2015-04-22 Hale Wang <hale.wang@arm.com>
32193 Terry Guo <terry.guo@arm.com>
32195 PR rtl-optimization/64818
32196 * combine.c (can_combine_p): Don't combine user-specified
32197 register if it is in an asm input.
32199 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
32202 * passes.def (early_optimizations): Add pass_dse.
32204 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32206 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
32207 * reorg.c (redundant_insn): Remove ifdef
32208 INSN_REFERENCES_ARE_DELAYED.
32209 * resource.c (mark_referenced_resources): Likewise.
32211 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32213 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
32214 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
32215 * resource.c (mark_set_resources): Likewise.
32217 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32219 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
32220 * cfgcleanup.c (flow_find_cross_jump): Likewise.
32221 (flow_find_head_matching_sequence): Likewise.
32222 (try_head_merge_bb): Likewise.
32223 * combine.c (can_combine_p): Likewise.
32224 (try_combine): Likewise.
32225 (distribute_notes): Likewise.
32226 * df-problems.c (can_move_insns_across): Likewise.
32227 * final.c (final): Likewise.
32228 * gcse.c (insert_insn_end_basic_block): Likewise.
32229 * ira.c (find_moveable_pseudos): Likewise.
32230 * reorg.c (try_merge_delay_insns): Likewise.
32231 (fill_simple_delay_slots): Likewise.
32232 (fill_slots_from_thread): Likewise.
32233 * sched-deps.c (sched_analyze_2): Likewise.
32235 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32237 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
32238 PIC_OFFSET_TABLE_REGNUM.
32240 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32242 * alias.c (init_alias_target): Remove ifdef
32243 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
32244 * df-scan.c (df_insn_refs_collect): Likewise.
32245 (df_get_regular_block_artificial_uses): Likewise.
32246 (df_get_eh_block_artificial_uses): Likewise.
32247 (df_get_entry_block_def_set): Likewise.
32248 (df_get_exit_block_use_set): Likewise.
32249 * emit-rtl.c (gen_rtx_REG): Likewise.
32250 * ira.c (ira_setup_eliminable_regset): Likewise.
32251 * reginfo.c (init_reg_sets_1): Likewise.
32252 * regrename.c (rename_chains): Likewise.
32253 * reload1.c (reload): Likewise.
32254 (eliminate_regs_in_insn): Likewise.
32255 * resource.c (mark_referenced_resources): Likewise.
32256 (init_resource_info): Likewise.
32258 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32260 * defaults.h (MASK_RETURN_ADDR): New definition.
32261 * except.c (expand_builtin_extract_return_addr): Remove ifdef
32264 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32266 * defaults.h (RETURN_ADDR_OFFSET): New definition.
32267 * except.c (expand_builtin_extract_return_addr): Remove ifdef
32268 RETURN_ADDR_OFFSET.
32269 (expand_builtin_frob_return_addr): Likewise.
32271 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32273 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
32274 (try_redirect_by_replacing_jump): Likewise.
32275 (rtl_tidy_fallthru_edge): Likewise.
32276 * combine.c (insn_a_feeds_b): Likewise.
32277 (find_split_point): Likewise.
32278 (simplify_set): Likewise.
32279 * cprop.c (cprop_jump): Likewise.
32280 * cse.c (cse_extended_basic_block): Likewise.
32281 * df-problems.c (can_move_insns_across): Likewise.
32282 * function.c (emit_use_return_register_into_block): Likewise.
32283 * haifa-sched.c (sched_init): Likewise.
32284 * ira.c (find_moveable_pseudos): Likewise.
32285 * loop-invariant.c (find_invariant_insn): Likewise.
32286 * lra-constraints.c (curr_insn_transform): Likewise.
32287 * postreload.c (reload_combine_recognize_const_pattern):
32289 * reload.c (find_reloads): Likewise.
32290 * reorg.c (delete_scheduled_jump): Likewise.
32291 (steal_delay_list_from_target): Likewise.
32292 (steal_delay_list_from_fallthrough): Likewise.
32293 (redundant_insn): Likewise.
32294 (fill_simple_delay_slots): Likewise.
32295 (fill_slots_from_thread): Likewise.
32296 (delete_computation): Likewise.
32297 * sched-rgn.c (add_branch_dependences): Likewise.
32299 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32301 * genconfig.c (main): Always define HAVE_cc0.
32302 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
32304 * cfgcleanup.c (flow_find_cross_jump): Likewise.
32305 (flow_find_head_matching_sequence): Likewise.
32306 (try_head_merge_bb): Likewise.
32307 * cfgrtl.c (rtl_merge_blocks): Likewise.
32308 (try_redirect_by_replacing_jump): Likewise.
32309 (rtl_tidy_fallthru_edge): Likewise.
32310 * combine.c (do_SUBST_MODE): Likewise.
32311 (insn_a_feeds_b): Likewise.
32312 (combine_instructions): Likewise.
32313 (can_combine_p): Likewise.
32314 (try_combine): Likewise.
32315 (find_split_point): Likewise.
32317 (simplify_set): Likewise.
32318 (distribute_notes): Likewise.
32319 * cprop.c (cprop_jump): Likewise.
32320 * cse.c (cse_extended_basic_block): Likewise.
32321 * df-problems.c (can_move_insns_across): Likewise.
32322 * final.c (final): Likewise.
32323 (final_scan_insn): Likewise.
32324 * function.c (emit_use_return_register_into_block): Likewise.
32325 * gcse.c (insert_insn_end_basic_block): Likewise.
32326 * haifa-sched.c (sched_init): Likewise.
32327 * ira.c (find_moveable_pseudos): Likewise.
32328 * loop-invariant.c (find_invariant_insn): Likewise.
32329 * lra-constraints.c (curr_insn_transform): Likewise.
32330 * optabs.c (prepare_cmp_insn): Likewise.
32331 * postreload.c (reload_combine_recognize_const_pattern):
32333 * reload.c (find_reloads): Likewise.
32334 (find_reloads_address_1): Likewise.
32335 * reorg.c (delete_scheduled_jump): Likewise.
32336 (steal_delay_list_from_target): Likewise.
32337 (steal_delay_list_from_fallthrough): Likewise.
32338 (try_merge_delay_insns): Likewise.
32339 (redundant_insn): Likewise.
32340 (fill_simple_delay_slots): Likewise.
32341 (fill_slots_from_thread): Likewise.
32342 (delete_computation): Likewise.
32343 (relax_delay_slots): Likewise.
32344 * sched-deps.c (sched_analyze_2): Likewise.
32345 * sched-rgn.c (add_branch_dependences): Likewise.
32347 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32349 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
32350 that is trivially ded on non cc0 targets.
32351 (simplify_set): Likewise.
32352 (mark_used_regs_combine): Likewise.
32353 * cse.c (new_basic_block): Likewise.
32354 (fold_rtx): Likewise.
32355 (cse_insn): Likewise.
32356 (cse_extended_basic_block): Likewise.
32357 (set_live_p): Likewise.
32358 * rtlanal.c (canonicalize_condition): Likewise.
32359 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
32361 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32363 * conditions.h: Define macros even if HAVE_cc0 is undefined.
32364 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
32365 * final.c: Likewise.
32366 * jump.c: Likewise.
32367 * recog.c: Likewise.
32368 * recog.h: Declare functions even when HAVE_cc0 is undefined.
32369 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
32371 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32373 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
32374 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
32375 * builtins.c (expand_builtin): Remove check if
32376 EH_RETURN_DATA_REGNO is defined.
32377 * df-scan.c (df_bb_refs_collect): Likewise.
32378 (df_get_exit_block_use_set): Likewise.
32379 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
32380 * ira-lives.c (process_bb_node_lives): Likewise.
32381 * lra-lives.c (process_bb_lives): Likewise.
32383 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
32385 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
32386 FIRST_PSEUDO_REG): New.
32387 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
32388 (ARG_POINTER_REGNUM): Define to ARGP_REG.
32389 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
32390 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
32391 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
32392 (FIRST_INT_REG): New.
32393 (LAST_INT_REG): New.
32394 (FIRST_*_REG): Define using *_REG.
32395 (LAST_*_REG): Ditto.
32396 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
32397 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
32398 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
32400 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32402 * expmed.c: (synth_mult): Only assume overlapping
32403 shift with previous steps in alg_sub_t_m2 case.
32405 2015-04-21 Richard Biener <rguenther@suse.de>
32407 PR tree-optimization/65650
32408 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
32409 transitions involving copies.
32410 (set_lattice_value): Adjust for copy lattice state.
32411 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
32412 if that doesn't dominate the merge point.
32413 (bit_value_unop): Adjust what we treat as varying mask.
32414 (bit_value_binop): Likewise.
32415 (bit_value_assume_aligned): Likewise.
32416 (evaluate_stmt): When we simplified to a SSA name record a copy
32417 instead of dropping to varying.
32418 (visit_assignment): Simplify.
32420 * gimple-match.h (gimple_simplify): Add another callback.
32421 * gimple-fold.c (fold_stmt_1): Adjust caller.
32422 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
32423 for the 2nd callback.
32424 * gimple-match-head.c (gimple_simplify): Add a callback that is
32425 used to valueize the stmt operands and use it that way.
32427 2015-04-21 Richard Biener <rguenther@suse.de>
32429 PR tree-optimization/65788
32430 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
32432 2015-04-21 Richard Biener <rguenther@suse.de>
32434 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
32435 vec_construct cost by vec_stmt_cost.
32437 2015-04-21 Richard Biener <rguenther@suse.de>
32439 * cfghooks.h (create_basic_block): Replace with two overloads
32440 for RTL and GIMPLE.
32441 (split_block): Likewise.
32442 * cfghooks.c (split_block): Rename to ...
32443 (split_block_1): ... this.
32444 (split_block): Add two type-safe overloads for RTL and GIMPLE.
32445 (split_block_after_labels): Call split_block_1.
32446 (create_basic_block): Rename to ...
32447 (create_basic_block_1): ... this.
32448 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
32449 (create_empty_bb): Call create_basic_block_1.
32450 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
32451 split_block_after_labels.
32452 * omp-low.c (expand_parallel_call): Likewise.
32453 (expand_omp_target): Likewise.
32454 (simd_clone_adjust): Likewise.
32455 * tree-chkp.c (chkp_get_entry_block): Likewise.
32456 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
32457 create_basic_block overload.
32458 (cgraph_node::expand_thunk): Likewise.
32459 * tree-cfg.c (make_blocks): Likewise.
32460 (handle_abnormal_edges): Likewise.
32461 * tree-inline.c (copy_bb): Likewise.
32463 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32465 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
32467 (*xor_one_cmplsidi3_ze): Likewise.
32469 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
32471 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
32472 use df_remove_problem rather than manually removing problems, leaving
32473 holes in df->problems_in_order[].
32475 2015-04-21 Tom de Vries <tom@codesourcery.com>
32477 PR tree-optimization/65802
32478 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
32480 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32482 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
32484 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
32485 at '.'. Assert that there's enough space for everything.
32487 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
32489 PR tree-optimization/64950
32491 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
32494 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
32497 2015-04-20 Shiva Chen <shiva0217@gmail.com>
32499 PR rtl-optimization/64916
32500 * cfgcleanup.c (values_equal_p): New function.
32501 (can_replace_by): Use it.
32503 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
32506 * doc/invoke.texi ([-Wnarrowing]): Update.
32508 2015-04-20 Jeff Law <law@redhat.com>
32510 PR tree-optimization/65658
32511 * tree-ssa-threadupdate.c (redirection_block_p): Remove
32512 redundant test for GIMPLE_ASSIGN in last change.
32514 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
32516 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
32517 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
32518 (legitimize_tls_address): Ditto.
32519 (ix86_expand_move): Ditto.
32520 (ix86_expand_binary_operator): Remove reload_in_progress checks.
32521 (ix86_expand_unary_operator): Ditto.
32522 * config/i386/predicates.md (index_register_operand): Ditto.
32524 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
32526 * reorg.c (try_merge_delay_insns): Improve correctness checking
32527 for targets with multiple delay slots.
32529 2015-04-20 Jeff Law <law@redhat.com>
32531 PR tree-optimization/65658
32532 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
32535 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
32537 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
32538 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
32541 2015-04-20 Jakub Jelinek <jakub@redhat.com>
32544 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
32546 2015-04-20 Richard Biener <rguenther@suse.de>
32548 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
32549 * gimple-fold.c (gimple_build_valueize): New function.
32550 (gimple_build): Always use gimple_build_valueize as valueize hook.
32552 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
32555 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
32556 and overwrite variable parts if <= 1/2 the elements are variable.
32558 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
32560 PR rtl-optimization/65805
32561 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
32562 Don't use difference of offset and previous offset if
32563 update_sp_offset is non-zero.
32564 (eliminate_regs_in_insn): Ditto.
32565 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
32566 lra_eliminate_regs_1 call.
32567 * lra-constraints.c (get_equiv_with_elimination): Ditto.
32569 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
32571 * hash-table.h: Remove version of hash_table that stored value_type *.
32572 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
32573 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
32574 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
32575 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
32576 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
32577 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
32578 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
32579 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
32580 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
32581 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
32582 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
32583 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
32584 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
32585 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
32586 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
32587 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
32589 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32590 Jakub Jelinek <jakub@redhat.com>
32593 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
32594 subsequent SH_NONE operand does not overwrite an existing *special
32596 (adjust_extract): Handle case where a vec_extract operation is
32597 wrapped in a PARALLEL.
32599 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
32602 * config/i386/i386.c (ix86_binds_local_p): Define only if
32603 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
32605 2015-04-17 Jeff Law <law@redhat.com>
32607 PR tree-optimization/47679
32608 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
32609 * tree-ssa-scopedtables.c: New file.
32610 * tree-ssa-scopedtables.h: New file.
32611 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
32612 (const_and_copies): Change name/type.
32613 (record_const_or_copy): Move into tree-ssa-scopedtables.c
32614 (record_const_or_copy_1): Similarly.
32615 (restore_vars_to_original_value): Similarly.
32616 (pass_dominator::execute): Create and destroy const_and_copies table.
32617 (thread_across_edge): Update passing of const_and_copies.
32618 (record_temporary_equivalence): Use method calls rather than
32619 manipulating const_and_copies directly.
32620 (record_equality, cprop_into_successor_phis): Similarly.
32621 (dom_opt_dom_walker::before_dom_children): Similarly.
32622 (dom_opt_dom_walker::after_dom_children): Similarly.
32623 (eliminate_redundant_computations): Similarly.
32624 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
32625 (record_temporary_equivalence): Likewise.
32626 (invalidate_equivalences): Likewise.
32627 (record_temporary_equivalences_from_phis): Update due to type
32628 change of const_and_copies. Use method calls rather than
32629 manipulating the stack directly.
32630 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
32631 (thread_through_normal_block, thread_across_edge): Likewise.
32632 (thread_across_edge): Likewise.
32633 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
32634 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
32636 (identify_jump_threads): Update due to type change of equiv_stack.
32637 (finalize_jump_threads): Delete the equiv_stack when complete.
32639 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
32641 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
32642 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
32643 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
32645 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
32648 * config.gcc: Exit with a comment when we do not have a major version
32649 number for the FreeBSD target.
32651 2015-04-17 Jakub Jelinek <jakub@redhat.com>
32654 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
32655 maybe_allows_mem bitfields.
32656 (maybe_allows_none_start, maybe_allows_none_end,
32657 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
32658 maybe_allows_mem_end): New variables.
32659 (compute_maybe_allows): New function.
32660 (add_constraint): Use it to initialize maybe_allows_reg and
32661 maybe_allows_mem fields.
32662 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
32663 is_address constraints such that those that allow neither mem nor
32664 reg come first, then those that only allow reg but not mem, then
32665 those that only allow mem but not reg, then the rest.
32666 (write_allows_reg_mem_function): New function.
32667 (write_tm_preds_h): Call it.
32668 * stmt.c (parse_output_constraint, parse_input_constraint): Use
32669 the generated insn_extra_constraint_allows_reg_mem function
32670 instead of always setting *allows_reg = true; *allows_mem = true;
32671 for unknown extra constraints.
32673 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
32676 * output.h (default_binds_local_p_3): New.
32677 * varasm.c (default_binds_local_p_3): Make it public. Take an
32678 argument to indicate if common symbol may be local. If common
32679 symbol may be local, treat non-external variable as defined
32681 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
32682 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
32683 * config/i386/i386.c (ix86_binds_local_p): New.
32684 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
32685 ix86_binds_local_p.
32687 2015-04-17 Jakub Jelinek <jakub@redhat.com>
32690 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
32691 trying mem_loc_descriptor on XEXP (rtl, 0).
32693 2015-04-17 Martin Liska <mliska@suse.cz>
32695 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
32696 Release symbol_compare_collection.
32697 * ipa-reference.c: Add TODO that a vector should be released.
32699 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
32702 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
32703 to new AVR-LibC file layout (bug #44574).
32704 (*avrlibc_devicelib): Same.
32705 * config/avr/avr-mcus.def: Adjust comments.
32706 * config/avr/avr.opt (nodevicelib): Adjust help.
32708 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
32710 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
32712 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
32715 * gimplify.c (gimplify_init_constructor): Always emit a
32716 side-effecting constructor.
32718 2015-04-17 Tom de Vries <tom@codesourcery.com>
32720 PR tree-optimization/64950
32721 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
32722 in cfun->curr_properties.
32723 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
32724 if we generate an IFN_VA_ARG.
32725 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
32726 function if PROP_gimple_lva is not set in src function.
32728 2015-04-17 Tom de Vries <tom@codesourcery.com>
32729 Michael Matz <matz@suse.de>
32731 PR tree-optimization/64950
32732 * gimple-iterator.c (update_modified_stmts): Remove static.
32733 * gimple-iterator.h (update_modified_stmts): Declare.
32734 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
32735 (gimplify_va_arg_internal): New function.
32736 (gimplify_va_arg_expr): Use IFN_VA_ARG.
32737 * gimplify.h (gimplify_va_arg_internal): Declare.
32738 * internal-fn.c (expand_VA_ARG): New unreachable function.
32739 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
32740 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
32741 (expand_ifn_va_arg): New function.
32742 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
32743 (pass_stdarg::execute): Call expand_ifn_va_arg.
32744 (pass_data_lower_vaarg): New pass_data.
32745 (pass_lower_vaarg): New gimple_opt_pass.
32746 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
32747 (make_pass_lower_vaarg): New function.
32748 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
32749 properties_required field.
32750 * passes.def (all_passes): Add pass_lower_vaarg.
32751 * tree-pass.h (PROP_gimple_lva): Add define.
32752 (make_pass_lower_vaarg): Declare.
32754 2015-04-17 Tom de Vries <tom@codesourcery.com>
32756 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
32757 * calls.c (call_expr_flags): Same.
32759 2015-04-17 Tom de Vries <tom@codesourcery.com>
32761 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
32762 (pass_stdarg::execute): ... here.
32764 2015-04-17 Tom de Vries <tom@codesourcery.com>
32765 Michael Matz <matz@suse.de>
32767 * tree-cfg.c (make_blocks_1): Factor out of ...
32768 (make_blocks): ... here.
32769 (make_edges_bb): Factor out of ...
32770 (make_edges): ... here.
32771 (gimple_find_sub_bbs): New function.
32772 * tree-cfg.h (gimple_find_sub_bbs): Declare.
32774 2015-04-17 Tom de Vries <tom@codesourcery.com>
32776 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
32778 2015-04-17 Yury Gribov <y.gribov@samsung.com>
32780 * asan.c (set_sanitized_sections): New function.
32781 (section_sanitized_p): Ditto.
32782 (asan_protect_global): Optionally sanitize user-defined
32784 * asan.h (set_sanitized_sections): Declare new function.
32785 * common.opt (fsanitize-sections): New option.
32786 * doc/invoke.texi (-fsanitize-sections): Document new option.
32787 * opts-global.c (handle_common_deferred_options): Handle new
32790 2015-04-17 Jakub Jelinek <jakub@redhat.com>
32793 * dwarf2out.c (loc_list_from_tree): Return NULL
32794 for DEBUG_EXPR_DECL.
32796 2015-04-17 Christian Bruel <christian.bruel@st.com>
32798 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
32801 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
32803 * ira-color.c (setup_left_conflict_sizes_p): Do not process
32804 node itself when computing left conflict subnode size.
32806 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
32808 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
32809 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
32810 *fop_<mode>_1_sse using enabled attribute. Use
32811 register_mixssei387nonimm_operand operand 1 predicate. Change
32812 alternative 3 constraints from "x" to "v".
32814 2015-04-16 Richard Biener <rguenther@suse.de>
32816 PR tree-optimization/65774
32817 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
32818 bit-value tracking on.
32820 2015-04-16 Richard Biener <rguenther@suse.de>
32822 PR tree-optimization/64277
32823 * tree-vrp.c (check_array_ref): Fix anti-range handling,
32824 simplify upper bound handling.
32825 (search_for_addr_array): Simplify.
32826 (check_array_bounds): Handle ADDR_EXPRs here.
32827 (check_all_array_refs): Simplify.
32829 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
32831 * config/i386/i386.c (print_reg): Rewrite function.
32833 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32835 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
32836 Invert the condition.
32838 2015-04-16 Renlin Li <renlin.li@arm.com>
32840 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
32841 simplifications for UNSIGNED_FLOAT.
32843 2015-04-16 Nick Clifton <nickc@redhat.com>
32845 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
32847 (enum rl78_cpu_type): New.
32848 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
32849 (umulhi3_shift_virt): Remove m constraint from operand 1.
32850 (umulqihi3_virt): Likewise.
32851 * config/rl78/rl78.c (rl78_option_override): Add code to process
32852 -mcpu and -mmul options.
32853 (rl78_alloc_physical_registers): Add code to handle divhi and
32854 divsi valloc attributes.
32855 (set_origin): Likewise.
32856 * config/rl78/rl78.h (RL78_MUL_G14): Define.
32857 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
32858 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
32860 (ASM_SPEC): Pass -mcpu on to assembler.
32861 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
32862 (mulqi3_rl78): Likewise.
32863 (mulhi3_g13): Likewise.
32864 (mulhi3): Generate the G13 or G14 versions of the insn directly.
32865 (mulsi3): Likewise.
32866 (mulhi3_g14): Add clobbers of AX and BC.
32867 (mulsi3_g14): Likewise.
32868 (mulsi3_g13): Likewise.
32869 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
32870 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
32871 * config/rl78/rl78.opt (mmul): Initialise value to
32873 (mcpu): New option.
32874 (m13, m14, mrl78): New option aliases.
32875 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
32876 (MULTILIB_DIRNAMES): Add g13 and g14.
32877 * doc/invoke.texi: Document -mcpu and -mmul options.
32879 2015-04-16 Richard Biener <rguenther@suse.de>
32881 * tree-ssa-ccp.c (likely_value): See if we have operands that
32882 are marked as never simulate again and return CONSTANT in this
32884 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
32885 not have any operands that will be simulated again as
32886 not being simulated again.
32888 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
32890 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
32891 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
32892 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
32894 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
32896 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
32897 *float<SWI48:mode><MODEF:mode>2_sse.
32898 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
32900 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
32903 2015-04-15 Tom de Vries <tom@codesourcery.com>
32906 * function.c (push_dummy_function): New function.
32907 (init_dummy_function_start): Use push_dummy_function.
32908 (pop_dummy_function): New function. Factored out of ...
32909 (expand_dummy_function_end): ... here.
32910 * function.h (push_dummy_function, pop_dummy_function): Declare.
32911 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
32912 pop_dummy_function.
32913 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
32915 2015-04-15 Jeff Law <law@redhat.com>
32917 PR tree-optimization/47679
32918 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
32919 need for forward declaration in upcoming changes.
32920 (record_conditions, record_edge_info): Likewise.
32922 PR rtl-optimization/42522
32923 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
32924 SIGN_EXTRACT as a whole object rather than simplifying
32927 2015-04-15 Jakub Jelinek <jakub@redhat.com>
32930 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
32931 and GIMPLE_PREDICT use break instead of return true. For
32932 GIMPLE_EH_DISPATCH, compare dispatch region.
32934 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
32936 * doc/extend.texi (__sync Builtins): Simplify some text. Update
32937 details about the implementation. Make clear preference for
32938 __atomic builtins. Reduce possibility of future change.
32940 2015-04-15 Nick Clifton <nickc@redhat.com>
32942 * config/rx/rx.opt (mallow-string-insns): New option.
32943 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
32944 builtin if string instructions are denied.
32945 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
32946 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
32948 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
32949 * config/rx/rx.md (movstr): Enable pattern only if string
32950 instructions are allowed.
32951 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
32952 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
32953 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
32954 (MULTILIB_DIRNAMES): Add no-strings.
32955 * doc/invoke.texi: Document -mno-allow-string-insns.
32957 2015-04-15 Alan Modra <amodra@gmail.com>
32961 PR middle-end/36043
32962 * calls.c (load_register_parameters): Don't load past end of
32963 mem unless suitably aligned.
32965 2015-04-15 Nick Clifton <nickc@redhat.com>
32967 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
32968 decrement instruction as being frame related.
32969 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
32971 If zero extending a function address enclose the operation in
32973 (rl78_preferred_reload_class): New function.
32974 (TARGET_PREFERRED_RELOAD_CLASS): Define.
32975 * config/rl78/rl78.md: Remove useless constraints in expanders.
32976 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
32977 (mulhi3_rl78): Likewise.
32978 (mulhi3_g13): Likewise.
32979 (mulsi3_rl78): Likewise.
32980 (es_addr): Move to before the multiply patterns.
32982 2015-04-15 Alan Modra <amodra@gmail.com>
32984 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
32985 and sequence_stack. Add seq.
32986 (seq_stack): Delete.
32987 * function.c (prepare_function_start): Don't access x_last_insn.
32988 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
32989 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
32990 * emit_rtl.c (start_sequence, push_topmost_sequence,
32991 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
32992 sequence accessors.
32993 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
32994 remove_insn): Likewise. Simplify.
32995 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
32996 and pop_topmost_sequence.
32997 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
32999 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
33001 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
33004 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
33007 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
33009 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
33010 (LEGACY_INT_REGNO_P): Ditto.
33011 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
33012 (ANY_MASK_REG_P): Remove.
33013 (BND_REG_P): Rename from ANY_BND_REG_P.
33014 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
33015 legacy integer registers. Do not handle MMX_REG_P in a special way.
33016 Merge 64byte and 32byte SSE handling.
33018 2015-04-14 Nick Clifton <nickc@redhat.com>
33020 * expr.c (expand_assignment): Force an address offset computation
33021 into a register before changing its mode.
33022 (expand_expr_real_1): Likewise.
33024 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
33026 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
33027 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
33028 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
33029 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
33030 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
33031 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
33032 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
33033 and __aarch64_vget_lane_any.
33035 2015-04-14 Jakub Jelinek <jakub@redhat.com>
33037 PR rtl-optimization/65761
33038 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
33039 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
33041 2015-04-14 Richard Biener <rguenther@suse.de>
33043 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
33044 (graphite_can_represent_scev): Use POINTER_TYPE_P.
33046 2015-04-14 Richard Biener <rguenther@suse.de>
33048 PR tree-optimization/65758
33049 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
33051 (ccp_lattice_meet): Likewise.
33052 (bit_value_unop): Likewise.
33053 (bit_value_binop): Likewise.
33054 (bit_value_assume_aligned): Likewise.
33056 2015-04-14 Christian Bruel <christian.bruel@st.com>
33058 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
33061 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
33063 PR tree-optimization/63387
33064 * match.pd ((x unord x) | (y unord y) -> (x unord y),
33065 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
33067 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
33069 * config/i386/predicates.md (any_QIreg_operand): Rename from
33070 q_regs_operand. Do not process subregs.
33071 (QIreg_operand): Use QI_REGNO_P predicate.
33072 (ext_QIreg_operand): Ditto.
33073 (ext_register_operand): Ditto.
33074 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
33075 (AND splitters): Ditto.
33076 (AND with -65536 splitter): Add SWI48 mode for operand 0.
33077 (AND with -256 splitter): Use any_QIreg_operand predicate and
33078 SWI248 mode for operand 0.
33079 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
33080 mode for operand 0.
33081 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
33083 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
33085 * doc/plugins.texi: Rewrite first introductory paragraph.
33087 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
33089 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
33090 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
33092 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
33094 * ipa-profie.c (ipa_profile): Check number of parameters
33095 and possible polymorphic call targets before
33098 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
33100 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
33101 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
33103 2015-04-13 Richard Biener <rguenther@suse.de>
33105 PR tree-optimization/65204
33106 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
33107 takens for bit-CCP.
33109 2015-04-13 Richard Biener <rguenther@suse.de>
33112 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
33113 and cond_not_taken_branch_cost to 4 and 2.
33114 (bdver2_cost): Likewise.
33115 (bdver3_cost): Likewise.
33116 (bdver4_cost): Likewise.
33118 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
33120 * hash-table.h (hash_table constructor): Add mem stats.
33121 (alloc_entries): Likewise.
33123 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
33125 * ipa-cp.c (ipcp_driver): Relase prev_edge.
33126 * passes.c (execute_one_pass): Only add transform if pass has one.
33128 2015-04-12 Joseph Myers <joseph@codesourcery.com>
33130 * config/i386/i386.c (ix86_option_override_internal): Don't set
33131 -fprefetch-loop-arrays if optimizing for size.
33133 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
33134 Gerald Pfeifer <gerald@pfeifer.com>
33136 * doc/contrib.texi (Contributors): Add Martin Jambor and
33139 2015-04-12 Jakub Jelinek <jakub@redhat.com>
33141 * BASE-VER: Set to 6.0.0.
33143 PR tree-optimization/65747
33144 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
33145 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
33147 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
33149 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
33150 sentence. Improve grammar.
33152 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
33154 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
33156 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
33159 * ipa-inline-transform.c (speculation_removed): Remove static var.
33160 (check_speculations): New function.
33161 (clone_inlined_nodes): Do not check spculations.
33162 (inline_call): Call check_speculations.
33163 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
33164 consider non-invariants.
33166 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
33167 Martin Liska <mliska@suse.cz>
33170 * ipa-icf.c (sem_item::compare_cgraph_references): function and
33171 variable can not match.
33172 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
33173 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
33175 2015-04-11 Jakub Jelinek <jakub@redhat.com>
33177 PR tree-optimization/65735
33178 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
33179 Remove visited_phis argument, add visited_bbs, avoid recursing into the
33180 same bb rather than just into the same phi node.
33181 (thread_through_normal_block): Adjust caller.
33183 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
33185 * doc/contrib.texi (Contributors): Add Ira Rosen.
33187 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
33189 * gcov.c (find_source): Fix miswording in error message.
33190 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
33191 (ix86_expand_sse_comi_round): Fix typo in error message.
33193 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
33195 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
33197 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
33199 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
33201 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
33204 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
33205 Print bad_spills_num and insn_pseudos_num.
33207 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33210 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
33211 when creating +1 values for SImode.
33213 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
33216 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
33219 2015-04-10 Jakub Jelinek <jakub@redhat.com>
33220 Iain Sandoe <iain@codesourcery.com>
33223 * configure: Regenerate.
33225 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
33228 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
33230 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
33232 * doc/contrib.texi (Contributors): Add John Marino.
33234 2015-04-09 Jakub Jelinek <jakub@redhat.com>
33236 PR tree-optimization/65709
33237 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
33238 TREE_TYPE (TREE_TYPE (t)).
33240 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
33243 * lra-int.h (lra_bad_spill_regno_start): New.
33244 * lra.c (lra_bad_spill_regno_start): New.
33245 (lra): Set up lra_bad_spill_regno_start. Set up
33246 lra_constraint_new_regno_start unconditionally.
33247 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
33250 2015-04-09 Marek Polacek <polacek@redhat.com>
33251 Jakub Jelinek <jakub@redhat.com>
33253 PR middle-end/65554
33254 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
33255 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
33258 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
33260 PR rtl-optimization/65693
33261 * combine.c (is_parallel_of_n_reg_sets): Move outside of
33264 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
33267 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
33268 device specs file if "device-specs%s" didn't resolve to a path.
33270 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
33273 * config/i386/i386.c (fixup_modeless_constant): New.
33274 (ix86_expand_args_builtin): Fixup modeless constant operand.
33275 (ix86_expand_round_builtin): Ditto.
33276 (ix86_expand_special_args_builtin): Ditto.
33277 (ix86_expand_builtin): Ditto.
33279 2015-04-09 Jakub Jelinek <jakub@redhat.com>
33282 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
33283 any pow2 integer in between 2 and 0x80000000U inclusive.
33285 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
33287 PR rtl-optimization/65693
33288 * combine.c (is_parallel_of_n_reg_sets): Change first argument
33289 from an rtx_insn * to an rtx.
33290 (try_combine): Adjust both callers. Use it once more.
33292 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
33294 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
33295 (chkp_make_static_const_bounds): Search existing
33296 symbol by assembler name. Use make_decl_one_only.
33297 (chkp_get_zero_bounds_var): Remove node search which
33298 is now performed in chkp_make_static_const_bounds.
33299 (chkp_get_none_bounds_var): Likewise.
33301 2015-04-08 Michael Witten <mfwitten@gmail.com>
33303 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
33306 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
33308 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
33310 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
33312 * doc/extend.texi (__sync Builtins): Fix grammar.
33314 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
33316 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
33318 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
33320 * varasm.c (emit_local): Move definition of align.
33322 2015-04-08 Julian Brown <julian@codesourcery.com>
33324 * config/nvptx/mkoffload.c (process): Support variable mapping.
33326 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
33328 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
33330 (alpha_write_one_linkage): Correct typo.
33332 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
33334 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
33336 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
33338 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
33340 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
33342 * tree-chkp.h (chkp_insert_retbnd_call): New.
33343 * tree-chkp.c (chkp_insert_retbnd_call): New.
33344 * ipa-split.c (insert_bndret_call_after): Remove.
33345 (split_function): Use chkp_insert_retbnd_call.
33346 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
33347 bounds for instrumented functions.
33349 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
33352 * calls.c (initialize_argument_information): When producing tail
33353 call also turn SSA_NAMES passed by references to original PARM_DECLs
33355 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
33358 * lra-remat.c (do_remat): Process input and non-input insn
33359 registers separately.
33361 2015-04-07 Jakub Jelinek <jakub@redhat.com>
33364 * valtrack.c (debug_lowpart_subreg): New function.
33365 (dead_debug_insert_temp): Use it.
33367 PR middle-end/65680
33368 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
33369 into signed HOST_WIDE_INT the same as negative bit_offset.
33371 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
33373 * ipa-comdats.c (ipa_comdats): Visit all thunks
33374 to set proper comdat group.
33376 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33379 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
33380 on constants for NEON VSTRUCT modes.
33382 2015-04-07 Jakub Jelinek <jakub@redhat.com>
33383 Iain Sandoe <iain@codesourcery.com>
33386 * configure: Regenerate.
33388 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
33391 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
33392 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
33393 that LFD is used to load double constants instead of LFS. Add
33394 defaults for all costs structures. Add comments for missing
33395 initialization fields.
33396 (size32_cost): Likewise.
33397 (size64_cost): Likewise.
33398 (rs64a_cost): Likewise.
33399 (mpccore_cost): Likewise.
33400 (ppc403_cost): Likewise.
33401 (ppc405_cost): Likewise.
33402 (ppc440_cost): Likewise.
33403 (ppc476_cost): Likewise.
33404 (ppc601_cost): Likewise.
33405 (ppc603_cost): Likewise.
33406 (ppc604_cost): Likewise.
33407 (ppc604e_cost): Likewise.
33408 (ppc620_cost): Likewise.
33409 (ppc630_cost): Likewise.
33410 (ppccell_cost): Likewise.
33411 (ppc750_cost): Likewise.
33412 (ppc7450_cost): Likewise.
33413 (ppc8540_cost): Likewise.
33414 (ppce300c2c3_cost): Likewise.
33415 (ppce500mc_cost): Likewise.
33416 (ppce500mc64_cost): Likewise.
33417 (ppce5500_cost): Likewise.
33418 (ppce6500_cost): Likewise.
33419 (titan_cost): Likewise.
33420 (power4_cost): Likewise.
33421 (power6_cost): Likewise.
33422 (power7_cost): Likewise.
33423 (power8_cost): Likewise.
33424 (ppca2_cost): Likewise.
33425 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
33427 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
33428 instead of XXLOR to copy SFmode to clear out dirty bits created
33429 when SFmode denormals are generated.
33430 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
33431 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
33433 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
33435 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
33436 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
33437 * config/aarch64/aarch64-tune.md: Regenerate.
33439 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
33441 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
33442 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
33443 * config/arm/arm-cores.def (exynos-m1): New core.
33444 * config/arm/arm-tune.md: Regenerate.
33445 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
33446 * config/arm/bpabi.h: Likewise.
33448 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
33450 * ipa-cp (set_single_call_flag): Remove too
33451 restrictive assert.
33453 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
33455 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
33456 GOMP_offload_unregister from the destructor.
33458 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
33460 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
33461 flags for instrumentation thunk.
33462 (chkp_produce_thunks): Likewise.
33464 2015-04-05 Martin Liska <mliska@suse.cz>
33467 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
33468 has computed data structure.
33469 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
33471 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
33473 * invoke.texi (inline-unit-growth): Increase growth to 20%
33474 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
33476 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
33479 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
33481 (lra_rematerialization_iter): New.
33482 * lra.c (lra): Initialize lra_rematerialization_iter.
33483 Stop updating lra_constraint_new_regno_start after switching of
33484 inheritance and rematerialization.
33485 * lra-remat.c (lra_rematerialization_iter): New.
33486 (lra_remat): Add printing pass iteration. Do rematerialization
33487 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
33489 2015-04-04 Richard Biener <rguenther@suse.de>
33491 PR tree-optimization/64909
33492 PR tree-optimization/65660
33493 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
33494 to take a cost vector for scalar iteration cost.
33495 (vect_get_single_scalar_iteration_cost): Likewise.
33496 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
33497 Compute the scalar iteration cost into a cost vector.
33498 (vect_get_known_peeling_cost): Use the scalar cost vector to
33499 account for the cost of the peeled iterations.
33500 (vect_estimate_min_profitable_iters): Likewise.
33501 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
33504 2015-04-04 Alan Modra <amodra@gmail.com>
33508 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
33509 0.0 constant unless TARGET_VSX.
33510 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
33513 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
33516 * ipa-inline-transform.c (inline_call): Skip sanity check to work
33519 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
33522 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
33523 speculative indirect edges to avoid ordering issue.
33525 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
33528 * ipa-inline.c (edge_badness): Add combined size to the denominator.
33530 2015-04-03 Jakub Jelinek <jakub@redhat.com>
33532 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
33533 TYPE_ARTIFICIAL on the .omp_data* types.
33535 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
33537 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
33538 instrumentation thunks.
33540 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
33542 * config/i386/i386.c (ix86_expand_call): Avoid nested
33543 PARALLEL in returned call value.
33545 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
33547 * lto-cgraph.c (input_cgraph_1): Always link instrumented
33548 assembler name with original one.
33550 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
33552 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
33554 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
33556 Revert parts of r216820.
33557 * config/i386/i386.md (movqi_internal): Correct type calculation
33558 for alternatives 3 and 5.
33560 2015-04-02 Jakub Jelinek <jakub@redhat.com>
33562 PR preprocessor/61977
33563 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
33564 predefine __vector/__bool/__pixel macros nor context sensitive
33565 macros for CLK_ASM.
33566 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
33568 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
33570 * config/pa/pa.c (pa_output_move_double): Directly handle register
33571 indexed memory operand. Simplify handling of scaled register indexed
33574 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
33577 * config/i386/linux-common.h (MPX_SPEC): New.
33578 (CHKP_SPEC): Add MPX_SPEC.
33579 * doc/invoke.texi (-fcheck-pointer-boudns): Document
33580 possible issues with '-z bndplt' support in linker.
33582 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
33584 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
33585 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
33586 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
33587 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
33588 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
33590 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
33592 * config/i386/sync.md (UNSPEC_MOVA): Remove.
33593 (atomic_load<mode>): Change operand 0 predicate to
33594 nonimmediate_operand and fix up the destination when needed.
33596 (atomic_loaddi_fpu): Use UNSPEC_LDA.
33597 (atomic_store<mode>): Change operand 1 predicate to
33598 nonimmendate_operand and move the source to register when needed.
33600 (atomic_store<mode>_1): Use UNSPEC_STA.
33601 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
33602 Fix moves from memory operand. Use UNSPEC_STA.
33604 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
33606 * expmed.c (strict_volatile_bitfield_p): Check that the access will
33607 not cross a MODESIZE boundary.
33608 (store_bit_field, extract_bit_field): Added assertions in the
33609 strict volatile bitfields code path.
33611 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
33614 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
33615 Increase args array size by one to avoid buffer overflow.
33617 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
33619 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
33621 * ipa-inline.c (edge_badness): Add wrapper penalty.
33622 (sum_callers): Move up.
33623 (inline_small_functions): Set single_caller.
33624 * ipa-inline.h (inline_summary): Add single_caller.
33625 * ipa-split.c (split_function): Set split_part.
33626 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
33627 * cgraph.h (cgraph_node): Add split_part.
33629 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
33632 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
33633 Do not split operands 0 and operands 2 to halfmode.
33634 (atomic_compare_and_swap<mode>): Update for
33635 atomic_compare_and_swap<dwi>_doubleword changes.
33637 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
33639 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
33640 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
33641 no caching is done.
33643 2015-03-31 Martin Liska <mliska@suse.cz>
33646 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
33647 has already filled up function summary.
33648 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
33650 2015-03-31 Richard Biener <rguenther@suse.de>
33652 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
33655 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
33657 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
33659 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
33660 (s390_asm_output_function_label): Adapt to new signature of
33661 s390_function_num_hotpatch_hw
33662 Optimise the code generating assembler output.
33663 Add comments to assembler file.
33665 2015-03-31 Richard Biener <rguenther@suse.de>
33667 PR middle-end/65626
33668 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
33669 of the noreturn call so it is last and cleanup_control_flow_bb
33670 can do the CFG part.
33672 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
33675 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
33676 same_comdat_group for external symbols.
33677 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
33678 infinite same_comdat_group traversal loop.
33680 2015-03-31 Jakub Jelinek <jakub@redhat.com>
33683 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
33684 automatically to $headers.
33686 2015-03-30 Jakub Jelinek <jakub@redhat.com>
33689 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
33690 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
33692 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
33694 * ipa-prop.c (param_type_may_change_p): Likewise.
33695 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
33696 (remove_unused_scope_block_p): Add in_ctor_dtor_block
33697 argument. Before inlining, preserve
33698 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
33699 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
33701 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
33703 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
33706 * ipa-inline.c (edge_badness): Base denominator on callee's
33709 2015-03-27 Martin Jambor <mjambor@suse.cz>
33712 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
33713 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
33714 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
33715 node_calling_single_call.
33716 * ipa-cp.c (count_callers): New function.
33717 (set_single_call_flag): Likewise.
33718 (initialize_node_lattices): Count callers and set single_flag_call if
33720 (incorporate_penalties): New function.
33721 (good_cloning_opportunity_p): Use it, dump new flags.
33722 (propagate_constants_topo): Set node_within_scc flag if appropriate.
33723 * doc/invoke.texi (ipa-cp-recursion-penalty,
33724 ipa-cp-single-call-pentalty): Document.
33726 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
33729 * symtab.c (symtab_node::get_partitioning_class): Register vars
33731 * varpool.c (symbol_table::output_variables) Do not assemble unefined
33732 decls for non-symbols.
33734 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
33737 * output.h (default_binds_local_p_2): New.
33738 * varasm.c (default_binds_local_p_2): Renamed to ...
33739 (default_binds_local_p_3): This. Don't return true on protected
33740 data symbol if protected data may be external.
33741 (default_binds_local_p): Use default_binds_local_p_3.
33742 (default_binds_local_p_1): Likewise.
33743 (default_binds_local_p_2): New.
33744 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
33745 default_binds_local_p_2 if TARGET_MACHO is undefined.
33747 2015-03-27 Jakub Jelinek <jakub@redhat.com>
33750 * config/i386/i386.c (legitimize_pic_address): If base
33751 is SYMBOL_REF or LABEL_REF using %rip addressing, force
33752 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
33754 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
33757 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
33760 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
33763 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
33764 of optimized out indirect call.
33765 (redirect_to_unreachable): Always build symbol table node for
33766 BUILT_IN_UNREACHABLE
33768 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
33771 * ira-costs.c (record_reg_classes): Process all constraint string
33774 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
33776 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
33780 * config/c6x/constraints.md (S3): New constraint.
33781 * config/c6x/c6x.md (real_jump): Use it.
33783 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
33785 PR middle-end/65595
33786 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
33787 do redirection if the call is not optimized out.
33789 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
33792 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
33793 (fchkp-check-incomplete-type): Add LTO.
33794 (fchkp-zero-input-bounds-for-main): Likewise.
33795 (fchkp-first-field-has-own-bounds): Likewise.
33796 (fchkp-narrow-bounds): Likewise.
33797 (fchkp-narrow-to-innermost-array): Likewise.
33798 (fchkp-use-static-bounds): Likewise.
33799 (fchkp-use-static-const-bounds): Likewise.
33800 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
33802 2015-03-27 Marek Polacek <polacek@redhat.com>
33804 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
33806 2015-03-27 Marek Polacek <polacek@redhat.com>
33809 * ubsan.c (ubsan_create_edge): New function.
33810 (instrument_bool_enum_load): Call it.
33811 (instrument_nonnull_arg): Likewise.
33812 (instrument_nonnull_return): Likewise.
33813 (instrument_object_size): Likewise.
33815 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
33817 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
33820 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
33823 * lto-streamer.h (class lto_location_cache): New.
33824 (struct data_in): Add location_cache.
33825 (lto_input_location): Update prototype.
33826 (stream_input_location_now): New.
33827 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
33828 pointer to location.
33829 (stream_input_location): Update.
33830 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
33831 (warn_odr): Apply location cache before warning.
33832 (lto_input_location): Update prototype.
33833 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
33834 Use stream_input_location_now.
33835 * lto-streamer-in.c (lto_location_cache::current_cache): New static
33837 (lto_location_cache::cmp_loc): New function.
33838 (lto_location_cache::apply_location_cache): New function.
33839 (lto_location_cache::accept_location_cache): New function.
33840 (lto_location_cache::revert_location_cache): New function.
33841 (lto_location_cache::input_location): New function.
33842 (lto_input_location): Do location caching.
33843 (stream_input_location_now): New function.
33844 (input_eh_region, input_struct_function_base): Use
33845 stream_input_location_now.
33846 (lto_data_in_create): use new.
33847 (lto_data_in_delete): Use delete.
33848 * tree-streamer-in.c (unpack_ts_block_value_fields,
33849 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
33850 lto_input_ts_exp_tree_pointers): Update for cached location api.
33852 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
33855 * passes.def: Add pass_nothrow.
33856 * ipa-pure-const.c: (pass_data_nothrow): New.
33857 (pass_nothrow): New.
33858 (pass_nothrow::execute): New.
33859 (make_pass_nothrow): New.
33860 * tree-pass.h (make_pass_nothrow): Declare.
33862 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
33864 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
33865 edge to change by speculation resolution or redirection.
33866 (edge_set_predicate): Likewise.
33867 (inline_summary_t::duplicate): Likewise.
33868 (remap_edge_summaries): Likewise.
33870 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
33872 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
33874 (can_inline_edge_p): Relax option matching for always inline functions.
33876 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
33879 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
33880 Check operand 4 and operand 0 for equality.
33881 (avx512f_vextract<shuffletype>32x4_1_maskm):
33882 Check operand 6 and operand 0 for equality.
33883 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
33885 (vec_extract_hi_<mode>_maskm): Ditto.
33887 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
33889 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
33890 dead calls back to live.
33891 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
33893 (cgraph_node::verify_node): ... here; verify only callee edges,
33895 * cif-code.def (CILK_SPAWN): New code.
33897 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
33899 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
33900 (edge_set_predicate): Use it to mark unreachable edges.
33901 (inline_summary_t::duplicate): Remove unnecesary code.
33902 (remap_edge_summaries): Likewise.
33903 (dump_inline_summary): Report contains_cilk_spawn.
33904 (compute_inline_parameters): Compute contains_cilk_spawn.
33905 (inline_read_section, inline_write_summary): Stream
33906 contains_cilk_spawn.
33907 * ipa-inline.c (can_inline_edge_p): Do not touch
33908 DECL_STRUCT_FUNCTION that may not be available;
33909 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
33910 remove check for callee_fun->can_throw_non_call_exceptions and
33911 replace it by optimization attribute check; check for flag_exceptions.
33912 * ipa-inline-transform.c (inline_call): Maintain
33913 DECL_FUNCTION_PERSONALITY
33914 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
33916 2015-03-26 Jakub Jelinek <jakub@redhat.com>
33918 PR tree-optimization/65551
33919 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
33920 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
33922 2015-03-26 Richard Biener <rguenther@suse.de>
33924 PR middle-end/65555
33925 * tree-cfg.c (verify_gimple_call): Do not require a call to
33926 have no LHS if it wasn't recognized as control altering yet.
33928 2015-03-26 Jakub Jelinek <jakub@redhat.com>
33930 PR tree-optimization/64715
33931 * passes.def: Add another instance of pass_object_sizes before ccp1.
33932 * tree-object-size.c (pass_object_sizes::execute): In
33933 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
33934 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
33935 __bos result and the computed constant. Remove redundant
33936 checks, obsoleted by gimple_call_builtin_p test.
33938 * var-tracking.c (variable_tracking_main_1): Don't track
33939 variables for targetm.no_register_allocation targets.
33941 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
33943 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
33944 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
33946 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
33949 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
33950 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
33951 0.0 is correctly setup.
33952 (extenddftf2_internal): Likewise.
33954 2015-03-25 Sebastian Pop <s.pop@samsung.com>
33956 PR tree-optimization/65177
33957 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
33959 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
33960 edges not adjacent on the path to the original code.
33962 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
33965 * doc/install.texi (Building a native compiler): Document new
33966 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
33967 configuration assumes that the host supports the linker plugin.
33969 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
33972 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
33973 chain for generated call.
33975 2015-03-25 Richard Biener <rguenther@suse.de>
33977 * passes.c (pass_manager::execute_early_local_passes): Guard
33978 execution of pass_chkp_instrumentation_passes with
33979 flag_check_pointer_bounds.
33980 (pass_chkp_instrumentation_passes::gate): Likewise.
33982 2015-03-25 Martin Liska <mliska@suse.cz>
33984 PR tree-optimization/65538
33985 * symbol-summary.h (function_summary::~function_summary):
33986 Relese memory for allocated summaries.
33987 (function_summary::release): New function.
33989 2015-03-25 Jakub Jelinek <jakub@redhat.com>
33992 * lto-streamer-out.c (DFS::worklist): New struct.
33993 (DFS::worklist_vec): New data member.
33994 (DFS::next_dfs_num): Remove.
33995 (DFS::DFS): Rewritten using worklist instead of recursion,
33996 using most of code from DFS::DFS_write_tree.
33997 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
33998 pass it to DFS_write_tree calls.
33999 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
34000 quick initial checks push it into worklist_vec and return.
34002 2015-03-25 Richard Biener <rguenther@suse.de>
34004 PR middle-end/65519
34005 * genmatch.c (expr::gen_transform): Re-write to avoid
34006 using gimple_build.
34008 2015-03-25 Bin Cheng <bin.cheng@arm.com>
34010 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
34012 2015-03-25 Bin Cheng <bin.cheng@arm.com>
34014 * config/arm/arm.opt (print_tune_info): New option.
34015 * config/arm/arm.c (arm_print_tune_info): New function.
34016 (arm_file_start): Call arm_print_tune_info.
34017 * config/arm/arm-protos.h (struct tune_params): Add comment.
34018 * doc/invoke.texi (@item -mprint-tune-info): New item.
34019 (-mtune): mention it in ARM Option Summary.
34021 2015-03-25 DJ Delorie <dj@redhat.com>
34023 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
34026 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
34027 Martin Liska <mliska@suse.cz>
34029 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
34030 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
34031 (sem_item::add_type): New function.
34032 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
34033 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
34034 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
34035 (sem_function::equals_wpa): Fix typo.
34036 * ipa-icf.h (sem_item::add_type): New function.
34037 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
34040 2015-03-24 Jakub Jelinek <jakub@redhat.com>
34042 PR tree-optimization/65533
34043 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
34044 with swapped operands, call vect_free_slp_tree on
34045 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
34048 2015-03-24 Richard Biener <rguenther@suse.de>
34050 PR middle-end/65517
34051 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
34052 for fixup if necessary.
34054 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
34056 * doc/extend.texi (Function Attributes): Add @cindex entries
34057 for all attributes and regularize their format. Delete text
34058 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
34059 information about "eightbit_data", "tiny_data", and "model"
34060 variable attributes to the Variable Attributes section. Fix
34061 some obvious typos and copy-editing issues.
34062 (Variable Attributes, Type Attributes): Likewise add/fix
34063 @cindex entries for all attributes.
34065 2015-03-23 Jakub Jelinek <jakub@redhat.com>
34068 * tree-chkp.c (chkp_build_returned_bound): Ignore
34069 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
34071 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
34074 * config/sh/predicates.md (simple_mem_operand,
34075 displacement_mem_operand): Add test for reg.
34076 (short_displacement_mem_operand): Test for displacement_mem_operand
34077 before invoking sh_disp_addr_displacement.
34078 * config/sh/constraints.md (Sdd, Sra): Simplify.
34079 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
34080 Remove redundant displacement_mem_operand tests.
34082 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
34085 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
34086 the same -mmcu=MCU more than once.
34088 2015-03-23 Jakub Jelinek <jakub@redhat.com>
34091 * ipa-devirt.c: Remove duplicate demangle.h include.
34094 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
34096 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
34097 REG_POINTER on *destptr after adjusting it for prologue size.
34100 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
34101 ultimate_alias_target ()->order ints instead of
34102 ultimate_alias_target () pointers.
34104 2015-03-23 Richard Biener <rguenther@suse.de>
34106 PR tree-optimization/65518
34107 * tree-vect-stmts.c (vectorizable_load): Reject single-element
34108 interleaving cases we generate absymal code for.
34110 2015-03-23 Richard Biener <rguenther@suse.de>
34112 PR tree-optimization/65494
34113 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
34115 (vect_analyze_slp_instance): But do that here, always and once.
34117 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34119 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
34120 adding T or multiplying by T+1 and subracting T.
34122 2015-03-22 Jeff Law <law@redhat.com>
34124 PR rtl-optimization/64317
34125 * Makefile.in (OBJS): Add gcse-common.c
34126 * gcse.c: Include gcse-common.h
34127 (struct modify_pair_s): Move structure definition to gcse-common.h
34128 (compute_transp): Move function to gcse-common.c.
34129 (canon_list_insert): Similarly.
34130 (record_last_mem_set_info): Break out some code and put it into
34131 gcse-common.c. Call into the new common code.
34132 (compute_local_properties): Pass additional arguments to compute_transp.
34133 * postreload-gcse.c: Include gcse-common.h and df.h
34134 (modify_mem_list_set, blocks_with_calls): New variables.
34135 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
34136 (get_bb_avail_insn): Pass in the expression index too.
34137 (alloc_mem): Allocate memory for the new bitmaps and lists.
34138 (free_mem): Free memory for the new bitmaps and lists.
34139 (insert_expr_in_table): Record a bitmap index for each entry we
34141 (record_last_mem_set_info): Call into common code in gcse-common.c.
34142 (get_bb_avail_insn): If no available insn was found in the requested
34143 BB. If BB has a single predecessor, see if the expression is
34144 transparent in BB and available in that single predecessor.
34145 (compute_expr_transp): New wrapper for compute_transp.
34146 (eliminate_partially_redundant_load): Pass expression's bitmap_index
34147 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
34148 (gcse_after_reload_main): If there are elements in the hash table,
34149 then compute transparency for all the elements in the hash table.
34150 * gcse-common.h: New file.
34151 * gcse-common.c: New file.
34153 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
34155 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
34157 (System Headers): Likewise.
34159 (Traditional macros): Likewise.
34160 (Invocation): Likewise.
34161 (Option Index): Likewise.
34162 * doc/cppopts.texi (-M): Likewise.
34163 (-finput-charset): Likewise.
34164 (--help): Likewise.
34165 * doc.invoke.texi (AVR Options): Likewise.
34166 (V850 Options): Likewise.
34168 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
34171 * ipa-devirt.c: Include demangle.h
34172 (odr_type_d): Add field rtti_broken.
34173 (odr_subtypes_equivalent_p): Do not require name to match.
34174 (compare_virtual_tables): Fix typo; if type already has ODR violation,
34175 bypass the tests; be ready for function referneces in vtables that are
34176 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
34177 (warn_odr): Give up for nameless types.
34178 (warn_types_mismatch): Report mismatch in mangled names;
34179 report mismatch in anonymous namespaces; look into component types to
34180 give useful error; report when mismatch is dragged in from other ODR
34182 (odr_types_equivalent_p): Match types for being polymorphic; avoid
34183 duplicated diagnostics.
34184 (add_type_duplicate): Reorder checks so more informative ones come
34185 first; fix typo; do not output "the extra base is defined here" when
34187 (BINFO_N_BASE_BINFOS): Relax sanity check.
34189 2015-03-22 Martin Liska <mliska@suse.cz>
34190 Jakub Jelinek <jakub@redhat.com>
34192 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
34193 masks that can potentially include a builtin.
34194 (ix86_add_new_builtins): Introduce fast filter for isa values
34195 that cannot trigger builtin inclusion.
34197 2015-03-22 Martin Liska <mliska@suse.cz>
34199 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
34200 (sem_item::update_hash_by_local_refs): Likewise.
34201 (sem_variable::get_hash): Empty line is fixed.
34202 (sem_item_optimizer::execute): Include adding of hash references.
34203 (sem_item_optimizer::update_hash_by_addr_refs): New function.
34204 (sem_item_optimizer::build_hash_based_classes): Use local hash.
34205 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
34206 (sem_item::update_hash_by_local_refs): Likewise.
34208 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
34211 * ipa-comdats.c (enqueue_references): Walk through thunks.
34212 (ipa_comdats): Likewise.
34213 (set_comdat_group_1): New function.
34215 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
34218 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
34221 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
34222 Gerald Pfeifer <gerald@pfeifer.com>
34224 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
34226 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
34227 Sandra Loosemore <sandra@codesourcery.com>
34229 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
34230 function parameter declaration.
34231 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
34232 Update arguments to nios2_adjust_call_address().
34233 (sibcall_internal): Rename from *sibcall.
34234 (sibcall_value_internal): Rename from *sibcall_value.
34235 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
34236 (nios2_large_got_address): Add target temp reg parameter.
34237 (nios2_got_address): Adjust call to nios2_large_got_address, add
34238 force_reg around it.
34239 (nios2_load_pic_address): Add target temp reg parameter, replace call
34240 to nios2_got_address with corresponding code.
34241 (nios2_legitimize_constant_address): Update call to
34242 nios2_load_pic_address.
34243 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
34244 to use temp reg for PIC loading purposes.
34245 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
34246 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
34247 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
34249 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
34251 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
34252 usage of "the @option{...}".
34253 (-Wopenmp-simd): Likewise.
34254 (-fsanitize-recover): Likewise.
34255 (-fsanitize-undefined-trap-on-error): Likewise.
34257 (tracer-dynamic-coverage-feedback): Likewise.
34258 (reorder-block-duplicate-feedback): Likewise.
34259 (loop-unroll-jam-size): Likewise.
34262 (-mabs=legacy): Likewise.
34263 (-mupper-regs-df): Likewise.
34264 (-mupper-regs-sf): Likewise.
34265 (-mpointers-to-nested-functions): Likewise.
34267 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
34269 * doc/extend.texi (Cilk Plus Builtins): Add markup.
34271 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
34273 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
34274 additional index entries and cross-references.
34275 (-fchkp-check-incomplete-type): Likewise.
34276 (-fchkp-first-field-has-own-bounds): Likewise.
34277 (-fchkp-narrow-to-innermost-array): Likewise.
34278 (-fchkp-use-fast-string-functions): Likewise.
34279 (-fchkp-use-nochk-string-functions): Likewise.
34280 (-fchkp-use-static-const-bounds): Likewise.
34281 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
34282 (-fchkp-instrument-marked-only): Likewise.
34283 (-fchkp-use-wrappers): Likewise.
34284 (-static-libmpx): Likewise.
34285 (-static-libmpxwrappers): Likewise.
34286 * doc/extend.texi (bnd_legacy): Likewise.
34287 (bnd_instrument): Likewise.
34288 (bnd_variable_size): Likewise.
34289 (Pointer Bounds Checker builtins): Likewise.
34291 2015-03-21 Tom de Vries <tom@codesourcery.com>
34293 PR tree-optimization/65458
34294 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
34295 * cgraph.h (cgraph_node): Add parallelized_function field.
34296 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
34297 (input_overwrite_node): Read parallelized_function field.
34298 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
34299 parallelized_function on cgraph_node for child_fn.
34300 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
34301 Remove include of gt-tree-parloops.h.
34302 (parallelized_functions): Remove static variable.
34303 (parallelized_function_p): Rewrite using parallelized_function field of
34305 (create_loop_fn): Remove adding to parallelized_functions.
34306 * Makefile.in (GTFILES): Remove tree-parloops.c
34308 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
34310 PR rtl-optimization/64366
34311 * lra.c (lra_update_insn_regno_info): Consider regs in
34312 CALL_INSN_FUNCTION_USAGE memory.
34314 2015-03-20 Richard Biener <rguenther@suse.de>
34316 PR middle-end/64715
34317 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
34318 for type comparison and gcc_checking_assert.
34319 (chrec_fold_plus_poly_poly): Likewise.
34320 (chrec_fold_multiply_poly_poly): Likewise.
34321 (chrec_convert_1): Likewise.
34322 * gimplify.c (gimplify_expr): Remove premature folding of
34323 &X + CST to &MEM[&X, CST].
34325 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
34327 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
34329 (ipa_inline): Recompute inline_failed codes.
34330 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
34331 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
34334 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
34336 PR rtl-optimization/60851
34337 * recog.c (constrain_operands): Accept a pseudo register before reload
34338 for LRA enabled targets.
34340 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
34343 * config/rs6000/predicates.md (easy_fp_constant): Remove special
34344 -ffast-math handling that kept non-0 constants live in the RTL
34345 until reload. Remove logic testing the number of instructions it
34346 took to create a constant in a GPR that was never used, due to a
34347 test for soft-float earlier.
34348 (memory_fp_constant): Delete, no longer used.
34350 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
34351 alternatives for loading non-0 constants into GPRs for hard
34352 floating point that is no longer needed due to changes in
34353 easy_fp_constant. Add support for loading 0.0 into GPRs.
34354 (mov<mode>_hardfloat32): Likewise.
34355 (mov<mode>_hardfloat64): Likewise.
34356 (mov<mode>_64bit_dm): Likewise.
34357 (movtd_64bit_nodm): Likewise.
34358 (pre-reload move FP constant define_split): Delete define_split,
34359 since it is no longer used.
34360 (extenddftf2_internal): Remove GHF constraints that are not valid
34363 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
34365 PR rtl-optimization/63491
34366 * lra-constraints.c (check_and_process_move): Use src instead of
34367 sreg. Remove some dead code.
34369 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
34372 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
34373 (sem_variable::merge): Likewise.
34375 2015-03-19 Martin Liska <mliska@suse.cz>
34378 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
34379 all fields of cgraph_thunk_info.
34381 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
34383 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
34384 clone instrumented thunks.
34386 2015-03-19 Richard Biener <rguenther@suse.de>
34389 2015-03-10 Richard Biener <rguenther@suse.de>
34391 PR middle-end/63155
34392 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
34393 * tree-ssa-coalesce.c: Include timevar.h.
34394 (attempt_coalesce): Handle graph being NULL.
34395 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
34396 Split out abnormal coalescing to ...
34397 (perform_abnormal_coalescing): ... this function.
34398 (coalesce_ssa_name): Perform abnormal coalescing without computing
34400 (verify_ssa_coalescing_worker): New function.
34401 (verify_ssa_coalescing): Likewise.
34403 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
34404 Jakub Jelinek <jakub@redhat.com>
34407 * tsan.c (instrument_gimple): Clear tail call flag on
34410 2015-03-19 Jakub Jelinek <jakub@redhat.com>
34413 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
34414 call in the return bb.
34415 (find_split_points): Add RETURN_BB argument, don't call
34417 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
34418 if true append TSAN_FUNC_EXIT internal call after the call to
34419 the split off function.
34420 (execute_split_functions): Call find_return_bb here.
34421 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
34422 Adjust find_split_points and split_function calls.
34424 2015-03-18 DJ Delorie <dj@redhat.com>
34426 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
34427 (iorqi3_virt): Likewise.
34429 2015-03-18 Tom de Vries <tom@codesourcery.com>
34431 * tree-parloops.c (parallelize_loops): Make static.
34432 * tree-parloops.h (parallelize_loops): Remove extern declaration.
34434 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
34436 PR middle-end/64491
34438 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
34440 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
34441 condition would be removed due to undefined behaviour.
34443 2015-03-18 Martin Liska <mliska@suse.cz>
34446 * cgraph.c (cgraph_node::get_create): Remove unnecessary
34447 xstrdup_for_dump wrapper.
34448 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
34450 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
34451 with xstrdup_for_dump.
34452 (sem_variable::equals): Likewise.
34453 (sem_item_optimizer::read_section): Use symtab_node::name instead of
34455 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
34456 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
34457 symtab_node::asm_name with xstrdup_for_dump.
34458 (congruence_class::dump): Use symtab_node::name instead of
34460 * ipa-icf.h (symtab_node::name): Remove.
34461 (symtab_node::asm_name): Likewise.
34463 2015-03-18 Jakub Jelinek <jakub@redhat.com>
34465 PR tree-optimization/65450
34466 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
34468 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
34469 it instead of duplicate_ssa_name_ptr_info.
34472 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
34474 2015-03-18 Richard Biener <rguenther@suse.de>
34476 * tree-data-ref.h (struct access_matrix): Remove.
34477 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
34478 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
34479 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
34480 (am_vector_index_for_loop): Likewise.
34481 (struct data_reference): Remove access_matrix member.
34482 (DR_ACCESS_MATRIX): Remove.
34483 (lambda_vector_new): Add comment.
34484 (lambda_matrix_new): Use XOBNEWVEC.
34486 2015-03-18 Richard Biener <rguenther@suse.de>
34488 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
34489 (pass_ch::execute): Cleanup the CFG only if we did sth.
34490 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
34492 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34494 * expmed.c (synth_mult): Use std::swap instead of manually
34495 swapping algorithms.
34497 2015-03-18 Jakub Jelinek <jakub@redhat.com>
34500 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
34502 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
34505 * config/avr/avr.opt (-nodevicelib): New option.
34506 * doc/invoke.texi (AVR Options): Document it.
34507 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
34508 libgcc.a, libc.a, libm.a.
34509 * config/avr/specs.h: Same.
34510 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
34511 which don't (directly) depend on the device. Print more help.
34512 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
34513 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
34514 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
34516 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
34517 for specs file name.
34518 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
34519 * config/avr/avr-mcus.def: Adjust initializers and comments.
34521 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
34523 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
34524 DECL_ONE_ONLY to check if decl is one only.
34525 * ipa-split.c (consider_split): Limit splitt of one only functions.
34527 2015-03-16 Jakub Jelinek <jakub@redhat.com>
34529 PR tree-optimization/65427
34530 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
34532 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
34534 2015-03-16 Marek Polacek <polacek@redhat.com>
34536 * cgraph.h (add_new_static_var): Remove declaration.
34537 * varpool.c (add_new_static_var): Remove function.
34539 2015-03-16 Jakub Jelinek <jakub@redhat.com>
34541 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
34542 instead of vec<tree> * with vec_alloc and release for args.
34545 PR middle-end/65431
34546 * omp-low.c (delete_omp_context): Only splay_tree_delete
34547 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
34548 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
34550 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
34553 * cfgexpand.c (align_base): New function.
34554 (alloc_stack_frame_space): Call it.
34555 (expand_stack_vars): Align prev_frame to be sure
34556 data->asan_vec elements aligned properly.
34558 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
34560 PR middle-end/65409
34561 * expr.c (store_field): Do not do a direct block copy if the source is
34562 a PARALLEL with BLKmode.
34564 2015-03-16 Tom de Vries <tom@codesourcery.com>
34566 PR middle-end/65414
34568 2015-03-12 Tom de Vries <tom@codesourcery.com>
34570 PR rtl-optimization/64895
34571 * lra-lives.c (check_pseudos_live_through_calls): Use
34572 actual_call_used_reg_set instead of call_used_reg_set, if available.
34574 2015-03-16 Alan Modra <amodra@gmail.com>
34577 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
34578 Modify Z->r bswapdi splitter to use dest in place of scratch.
34579 In r->Z and Z->r bswapdi splitter rename word_high, word_low
34580 to word1, word2 and rearrange logic to suit.
34581 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
34582 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
34583 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
34584 Add one '?' on r->r. Modify Z->r splitter to avoid need for
34587 2015-03-14 Jakub Jelinek <jakub@redhat.com>
34589 PR tree-optimization/65369
34590 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
34591 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
34592 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
34594 PR tree-optimization/65418
34595 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
34596 are casts in the first PLUS_EXPR operand, ensure tbias and
34597 *totallowp are in the inner type.
34599 PR rtl-optimization/65401
34600 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
34601 argument. If true, adjust_address_nv of x with big-endian
34602 correction for the mode widening to GET_MODE (y).
34603 (make_field_assignment): Don't do MEM mode widening here.
34604 Use MEM_P instead of GET_CODE == MEM.
34606 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
34608 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
34609 the external decls.
34611 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34614 * config/arm/arm.c (arm_gen_constant, AND case): Use
34615 ARM_SIGN_EXTEND when constructing AND mask.
34617 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
34619 * graph.c (print_graph_cfg): Make function names visible and append
34620 parenthesis to it. Also make groups of basic blocks belonging to the
34621 same function visible.
34623 2015-03-12 Richard Biener <rguenther@suse.de>
34625 PR middle-end/44563
34626 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
34627 to avoid quadratic behavior with inline expansion splitting blocks.
34628 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
34629 with the successor if the predecessor will be merged with it.
34630 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
34631 entry block with its successor.
34633 2015-03-13 Richard Biener <rguenther@suse.de>
34635 PR middle-end/44563
34636 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
34637 (cleanup_tree_cfg_1): Do not call it.
34638 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
34639 (fixup_noreturn_call): Mark the stmt as control altering.
34640 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
34642 (pass_data_fixup_cfg): Produce a dump file.
34643 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
34644 (need_noreturn_fixup): New global.
34645 (pass_dominator::execute): Fixup queued noreturn calls.
34646 (optimize_stmt): Queue calls that became noreturn for fixup.
34647 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
34648 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
34649 (el_to_fixup): New global.
34650 (eliminate_dom_walker::before_dom_childre): Queue calls that
34651 became noreturn for fixup.
34652 (eliminate): Fixup queued noreturn calls.
34653 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
34654 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
34655 (substitute_and_fold_dom_walker::before_dom_children): Queue
34656 alls that became noreturn for fixup.
34657 (substitute_and_fold): Fixup queued noreturn calls.
34659 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
34661 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
34662 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
34663 are building; for methods check ODR type of class they belong to if
34664 they may lead to a polymorphic call.
34665 (sem_function::compare_polymorphic_p): Be bit smarter about testing
34666 when function may lead to a polymorphic call.
34667 (sem_function::compare_type_list): Remove.
34668 (sem_variable::equals): Update use of compatible_types_p.
34669 (sem_variable::parse_tree_refs): Remove.
34670 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
34672 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
34674 (func_checker::compatible_polymorphic_types_p): Break out from ...
34675 (unc_checker::compatible_types_p): ... here.
34676 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
34678 (unc_checker::compatible_types_p): Update.
34679 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
34682 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34684 PR rtl-optimization/65235
34685 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
34686 When first element of vec_concat is const_int, calculate its size
34687 using second element.
34689 2015-03-12 Richard Biener <rguenther@suse.de>
34691 PR middle-end/65270
34692 * fold-const.c (operand_equal_p): Fix ordering of resetting
34693 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
34695 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
34697 * config/s390/s390.c (s390_reorg): Move code to output nops after label
34699 (s390_asm_output_function_label): Likewise.
34700 * config/s390/s390.c (s390_asm_output_function_label):
34701 Fix function label alignment with -mhtopatch.
34702 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
34703 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
34704 ("nop_2_byte"): New define_insn.
34705 ("nop_4_byte"): Likewise.
34706 ("nop_6_byte"): Likewise.
34707 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
34708 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
34710 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
34713 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
34716 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
34719 * toplev.c (process_options): Restrict Pointer Bounds Checker
34720 usage with Address Sanitizer.
34722 2015-03-12 Richard Biener <rguenther@suse.de>
34724 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
34726 * omp-low.c (expand_omp_taskreg): Split block before removing
34728 (expand_omp_target): Likewise.
34729 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
34730 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
34731 stmt to split_block.
34733 2015-03-12 Tom de Vries <tom@codesourcery.com>
34735 PR rtl-optimization/64895
34736 * lra-lives.c (check_pseudos_live_through_calls): Use
34737 actual_call_used_reg_set instead of call_used_reg_set, if available.
34739 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
34741 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
34742 (cgraph_node::remove): Likewise.
34743 (cgraph_node::get_untransformed_body): Likewise.
34744 * varpool.c (varpool_node::remove): Likewise.
34745 (varpool_node::get_constructor): Add sanity check.
34747 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
34749 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
34751 (-fabi-compat-version): Likewise.
34752 (-ffriend-injection): Likewise.
34753 (-Wdeclaration-after-statement): Likewise.
34754 (-fomit-frame-pointer): Likewise.
34755 (-ftree-coalesce-inlined-vars): Likewise.
34756 (-fvisibility=): Likewise.
34757 * doc/extend.texi (Typeof): Likewise.
34758 (Zero Length): Likewise.
34759 (Escaped Newlines): Likewise.
34760 (Compound Literals): Likewise.
34761 (Function Attributes): Likewise.
34762 (Label Attributes): Likewise.
34763 (Type Attributes): Likewise.
34764 (Function Names): Likewise.
34765 (Other Builtins): Likewise.
34766 (Function Specific Option Pragmas): Likewise.
34767 (C++ Interface): Likewise.
34769 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
34771 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
34773 2015-03-11 Marek Polacek <polacek@redhat.com>
34775 PR tree-optimization/65388
34776 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
34778 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
34781 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
34782 * configure: Regenerate.
34783 * config.in: Regenerate.
34784 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
34785 [-mn-flash]: Document it.
34786 [__AVR_ARCH__]: Document avrtiny.
34788 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
34789 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
34790 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
34792 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
34794 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
34796 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
34799 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
34800 allow reloads of PLUS in floating point/VSX registers.
34802 2015-03-11 Junmo Park <junmoz.park@samsung.com>
34804 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
34805 crypto_sha256_fast.
34806 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
34808 2015-03-11 Richard Biener <rguenther@suse.de>
34810 PR tree-optimization/65310
34811 * tree-sra.c (build_ref_for_offset): Also preserve larger
34814 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
34816 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
34818 2015-03-10 Jakub Jelinek <jakub@redhat.com>
34821 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
34823 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
34825 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
34827 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
34828 (sem_function::equals_wpa): ... here.
34830 2015-03-10 Marek Polacek <polacek@redhat.com>
34831 Jakub Jelinek <jakub@redhat.com>
34834 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
34835 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
34838 2015-03-10 Jakub Jelinek <jakub@redhat.com>
34841 * config/rs6000/t-linux: For powerpc64* target set
34842 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
34844 2015-03-10 Richard Biener <rguenther@suse.de>
34846 PR middle-end/44563
34847 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
34848 for redirect_all_calls.
34850 2015-03-10 Marek Polacek <polacek@redhat.com>
34852 * gdbinit.in (pcfun): Define and document.
34854 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
34856 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
34857 of libgomp-plugin.h.
34858 (find_target_compiler): Support a case when the path to gcc is
34859 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
34860 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
34861 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
34863 (main): Use GCC_INSTALL_NAME as target_driver_name.
34864 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
34866 (mkoffload.o): Remove obsolete include path and defines.
34867 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
34869 2015-03-10 Richard Biener <rguenther@suse.de>
34871 PR middle-end/63155
34872 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
34873 * tree-ssa-coalesce.c: Include timevar.h.
34874 (attempt_coalesce): Handle graph being NULL.
34875 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
34876 Split out abnormal coalescing to ...
34877 (perform_abnormal_coalescing): ... this function.
34878 (coalesce_ssa_name): Perform abnormal coalescing without computing
34880 (verify_ssa_coalescing_worker): New function.
34881 (verify_ssa_coalescing): Likewise.
34883 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
34886 * config.gcc (extra_options) [avr]: Remove.
34887 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
34888 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
34889 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
34891 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
34892 (-mmcu=): Add Var and MissingArgError properties.
34894 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
34895 * config/avr/t-multilib: Regenerate.
34896 * config/avr/specs.h: New file.
34897 * config/avr/driver-avr.c: New file.
34898 * config/avr/genopt.sh: Remove file.
34899 * config/avr/avr-tables.opt: Remove file.
34900 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
34901 * config/avr/avr-c.c: Same.
34902 * avr-arch.h: Same.
34903 (avr_current_device): Remove proto.
34904 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
34905 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
34906 (EXTRA_SPEC_FUNCTIONS): Define.
34907 (avr_devicespecs_file): New specs function proto.
34908 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
34909 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
34910 (avr_current_device): Remove definition and usage.
34911 (avr_set_core_architecture): New static function.
34912 (avr_option_override): Use it.
34913 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
34914 (mcu_name): New static array.
34915 (comparator, avr_archs_str, avr_mcus_str): New static functions.
34916 (avr_inform_devices, avr_inform_core_architectures): New functions.
34917 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
34918 (avrlibc.h) [WITH_AVRLIBC]: Include.
34919 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
34920 (print_mcu): Rewrite from scratch.
34921 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
34922 Forward to avr-specific specs defined in device-specs file.
34923 * config/avr/t-avr (driver-avr.o): New rule.
34924 (avr-devices.o): Depend on avr-arch.h.
34925 (avr-mcus): No more depend on avr-tables.opt.
34926 (avr-tables.opt): Remove rule.
34927 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
34929 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
34931 * c-family/c.opt (fchkp-use-wrappers): New.
34932 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
34933 (chkp_wrap_function): New.
34934 (chkp_build_instrumented_fndecl): Support wrapped
34936 * doc/invoke.texi (-fcheck-pointer-bounds): New.
34937 (-fchkp-check-incomplete-type): New.
34938 (-fchkp-first-field-has-own-bounds): New.
34939 (-fchkp-narrow-bounds): New.
34940 (-fchkp-narrow-to-innermost-array): New.
34941 (-fchkp-optimize): New.
34942 (-fchkp-use-fast-string-functions): New.
34943 (-fchkp-use-nochk-string-functions): New.
34944 (-fchkp-use-static-bounds): New.
34945 (-fchkp-use-static-const-bounds): New.
34946 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
34947 (-fchkp-check-read): New.
34948 (-fchkp-check-write): New.
34949 (-fchkp-store-bounds): New.
34950 (-fchkp-instrument-calls): New.
34951 (-fchkp-instrument-marked-only): New.
34952 (-fchkp-use-wrappers): New.
34953 (-static-libmpx): New.
34954 (-static-libmpxwrappers): New.
34956 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
34958 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
34959 (CHKP_SPEC): Add wrappers library.
34960 * c-family/c.opt (static-libmpxwrappers): New.
34962 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
34964 * config/i386/linux-common.h (LIBMPX_LIBS): New.
34965 (LIBMPX_SPEC): New.
34967 * gcc.c (CHKP_SPEC): New.
34968 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
34969 * c-family/c.opt (static-libmpx): New.
34971 2015-03-10 Richard Biener <rguenther@suse.de>
34973 PR middle-end/44563
34974 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
34976 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
34977 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
34978 (cgraph_add_edge_to_call_site_hash): Likewise.
34979 (cgraph_node::get_edge): Likewise.
34980 (cgraph_edge::set_call_stmt): Likewise.
34981 (cgraph_edge::remove_caller): Likewise.
34983 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
34985 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
34986 (callee_saved_gpr_regs_size): ... this.
34987 (callee_saved_regs_first_regno): Rename to ...
34988 (callee_saved_first_gpr_regno): ... this.
34989 (callee_saved_regs_last_regno) Rename to ...
34990 (callee_saved_last_gpr_regno): ... this.
34991 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
34993 (nds32_initial_elimination_offset): Likewise.
34994 (nds32_expand_prologue): Likewise.
34995 (nds32_expand_epilogue): Likewise.
34996 (nds32_expand_prologue_v3push): Likewise.
34997 (nds32_expand_epilogue_v3pop): Likewise.
34998 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
34999 Adjust renamed variables.
35000 (nds32_output_stack_pop): Likewise.
35002 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
35004 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
35007 2015-03-10 Jakub Jelinek <jakub@redhat.com>
35009 PR rtl-optimization/65321
35010 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
35012 * var-tracking.c (use_narrower_mode): Likewise.
35014 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
35016 PR tree-optimization/65355
35017 * varasm.c (notice_global_symbol): Do not produce RTL.
35018 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
35020 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
35021 check for section anchors.
35023 2015-03-10 Alan Modra <amodra@gmail.com>
35026 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
35027 to be single-arch by default. Set cpu_is_64bit for powerpc64
35028 given --with-cpu=native.
35029 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
35030 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
35032 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
35033 rs6000_isa_flags rather than TARGET_64BIT.
35035 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
35036 Kaz Kojima <kkojima@gcc.gnu.org>
35038 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
35040 2015-03-09 Jakub Jelinek <jakub@redhat.com>
35043 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
35044 on a TREE_BINFO, instead use BINFO_TYPE.
35046 2015-03-09 Richard Biener <rguenther@suse.de>
35048 PR middle-end/65270
35049 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
35050 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
35051 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
35052 of that. When comparing dereferences compare alignment.
35053 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
35055 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
35057 * ipa-inline-analysis.c (check_callers): Check
35058 node->can_remove_if_no_direct_calls_and_refs_p.
35059 (growth_likely_positive): Reorganize to call
35060 can_remove_if_no_direct_calls_p later.
35061 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
35062 will_be_removed_from_program_if_no_direct_calls_p): Add
35063 will_inline parameter.
35064 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
35065 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
35066 Handle inliner case correctly.
35068 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
35070 PR tree-optimization/63743
35071 * cfgexpand.c (reorder_operands): Also reorder if only second operand
35072 had its definition forwarded by TER.
35074 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
35077 * ipa-utils.h (types_odr_comparable): Add strict argument.
35078 * ipa-devirt.c: Fix whitespace;
35079 (odr_hasher): Remove.
35080 (odr_name_hasher, odr_vtable_hasher): New hashers.
35081 (can_be_name_hashed_p): New predicate.
35082 (hash_type_name): remove.
35083 (hash_odr_name): New.
35084 (odr_name_hasher::hash): new.
35085 (can_be_vtable_hashed_p): New.
35086 (hash_odr_vtable): New.
35087 (odr_vtable_hasher::hash): New.
35088 (types_same_for_odr): Add strict parameter.
35089 (types_odr_comparable): Likewise.
35090 (odr_name_hasher::equal): New.
35091 (odr_vtable_hasher::equal): New.
35092 (odr_name_hasher::remove): New.
35093 (odr_hash_type): Change to hash_table<odr_name_hasher>.
35094 (odr_vtable_hash_type): New.
35095 (odr_vtable_hash): New.
35096 (odr_subtypes_equivalent_p): Do strict comparsion.
35097 (add_type_duplicate): Merge type names; cleanup; avoid type
35099 (register_odr_type): Initialize vtable hash.
35100 (build_type_inheritance_graph): Likewise
35101 (get_odr_type): Reorg to use two hashes.
35102 (dump_possible_polymorphic_call_targets): Move sanity check after debug
35104 (ipa_devirt): Dump type_inheritance_graph.
35105 (types_same_for_odr): Add strict mode.
35107 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
35110 * cgraph.h (symtab_node): Add definition_alignment,
35111 can_increase_alignment_p and increase_alignment.
35112 * symtab.c (symtab_node::can_increase_alignment_p,
35113 increase_alignment_1, symtab_node::increase_alignment,
35114 symtab_node::definition_alignment): New.
35115 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
35116 can_increase_alignment_p.
35117 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
35118 * tree-vect-stmts.c (ensure_base_align): Likewise.
35119 * varasm.c (function_section_1): Use definition_alignment.
35120 (assemble_start_function): Likewise.
35121 (emit_local): likewise.
35122 (build_constant_desc): Likewsie.
35123 (output_constant_def_contents): Likewise.
35124 (place_block_symbol): Likewise.
35125 (output_object_block): Likewise.
35127 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
35130 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
35131 when outputting debug.
35133 2015-03-07 Marek Polacek <polacek@redhat.com>
35134 Martin Uecker <uecker@eecs.berkeley.edu>
35137 * doc/invoke.texi: Update description of -fsanitize=bounds.
35139 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
35141 * tree-ssa-phiopt.c (neg_replacement): Remove.
35142 (tree_ssa_phiopt_worker): Remove negate optimization.
35144 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
35147 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
35149 2015-03-06 Richard Biener <rguenther@suse.de>
35151 PR middle-end/64928
35152 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
35153 and liveout_obstack members.
35154 (calculate_live_on_exit): Remove.
35155 (calculate_live_ranges): Change declaration.
35156 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
35157 (new_tree_live_info): Adjust.
35158 (calculate_live_ranges): Delete livein when not wanted.
35159 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
35160 Deal with partly deleted live info.
35161 (loe_visit_block): Remove temporary bitmap by using
35162 bitmap_ior_and_compl_into.
35163 (live_worklist): Adjust accordingly.
35164 (calculate_live_on_exit): Make static.
35165 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
35166 we do not need livein.
35168 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
35170 * real.c (real_from_string): Fix typo in assertion.
35172 2015-03-06 Alex Velenko <alex.velenko@arm.com>
35174 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
35177 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
35179 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
35181 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
35184 * lra-assigns.c (find_hard_regno_for): Rename to
35185 find_hard_regno_for_1. Add a new parameter.
35186 (find_hard_regno_for): New function using find_hard_regno_for_1.
35188 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
35190 PR rtl-optimization/65067
35191 * expmed.c (store_bit_field, extract_bit_field): Reworked the
35192 strict volatile bitfield handling.
35194 2015-03-05 Martin Liska <mliska@suse.cz>
35197 * ipa-icf.c (sem_variable::equals): Compare variables types.
35199 2015-03-05 Richard Henderson <rth@redhat.com>
35202 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
35203 correctly check weak symbol binding.
35205 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
35207 PR middle-end/65315
35208 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
35211 2015-03-05 Martin Liska <mliska@suse.cz>
35213 * ipa-inline.c (inline_small_functions): Set default value to
35214 prevent warning during bootstrap.
35215 * tree.h: Add pragma guard that ignores false positives during
35218 2015-03-05 Richard Biener <rguenther@suse.de>
35220 PR tree-optimization/65310
35221 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
35222 Properly preserve alignment of the base of the access.
35224 2015-03-05 Richard Biener <rguenther@suse.de>
35227 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
35228 Compare dependence info.
35230 2015-03-05 Richard Biener <rguenther@suse.de>
35232 PR middle-end/65233
35233 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
35235 (walk_ssa_copies): Revert last chage. Instead do not walk
35236 SSA names registered for SSA update.
35238 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
35241 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
35242 vtable references for their containing type.
35243 (sem_function::equals_wpa): Compare TYPE_RESTRICT
35244 and type attributes.
35246 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
35248 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
35249 before negating it.
35250 * stor-layout.c (finalize_record_size): Revert latest change.
35252 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
35254 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
35256 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
35258 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
35259 for correct comdat handling.
35260 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
35262 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
35263 (used_from_object_file_p_worker): Remove.
35264 (cgraph_node::only_called_directly_or_alised): Add
35265 used_from_object_file_p.
35266 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
35267 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
35268 can_remove_if_no_direct_calls_and_refs_p.
35270 2015-03-04 Nick Clifton <nickc@redhat.com>
35272 * config/rl78/rl78.h (enum reg_class): Remove real registers from
35273 General register class.
35274 * config/rl78/rl78-real.md: Replace general register constraints
35275 with real+virtual register constraints.
35277 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
35279 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
35280 from checking for -mhtm option.
35282 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
35284 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
35285 (struct ipa_sra_check_caller_data): Add has_thunk field.
35286 (ipa_sra_check_caller): Check for thunk.
35287 (ipa_sra_preliminary_function_checks): Give up on function with
35289 (ipa_early_sra): Use call_for_symbol_and_aliases.
35291 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
35294 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
35295 called for __stack_chk_guard symbol.
35297 2015-03-03 DJ Delorie <dj@redhat.com>
35299 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
35301 (*addhi3_real): Likewise.
35302 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
35303 pattern to match incrementing memory.
35304 * config/rl78/predicates.md (rl78_1_2_operand): New.
35305 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
35306 it's the same and only mem.
35307 (rl78_alloc_physical_registers_op2): If there's effectively only
35308 one MEM, transcode it into HL.
35309 (rl78_far_p): Reject addresses that aren't legitimate.
35311 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
35313 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
35316 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
35318 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
35320 Implement call0 ABI for xtensa
35321 * config/xtensa/constraints.md ("a" constraint): Include stack
35322 pointer in case of call0 ABI.
35323 ("q" constraint): Make empty in case of call0 ABI.
35324 ("D" constraint): Include stack pointer in case of call0 ABI.
35325 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
35326 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
35328 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
35330 (xtensa_regno_to_class): Make it a local variable in the
35331 function xtensa_regno_to_class.
35332 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
35333 macro, function prototype and implementation.
35334 (reg_nonleaf_alloc_order): Make it a local variable in the
35335 function order_regs_for_local_alloc.
35336 (xtensa_conditional_register_usage): New function.
35337 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
35338 (xtensa_valid_move): Allow direct moves to stack pointer
35339 register in call0 ABI.
35340 (xtensa_setup_frame_addresses): Only spill register windows in
35342 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
35343 call0 ABI respectively.
35344 (xtensa_function_arg_1): Only mark a7 register for copying in
35346 (xtensa_call_save_reg): New function.
35347 (compute_frame_size): Add space for callee saved register
35348 storage to the frame size in call0 ABI.
35349 (xtensa_expand_prologue): Generate code to set up stack frame
35350 and save callee-saved registers in call0 ABI.
35351 (xtensa_expand_epilogue): New function.
35352 (xtensa_set_return_address): New function.
35353 (xtensa_return_addr): Calculate return address in call0 ABI.
35354 (xtensa_builtin_saveregs): Only mark a7 register for copying and
35355 emit copying code in windowed ABI.
35356 (order_regs_for_local_alloc): Add preferred register allocation
35357 order for non-leaf function in call0 ABI.
35358 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
35359 (xtensa_asm_trampoline_template): Add trampoline generation for
35361 (xtensa_trampoline_init): Add trampoline initialization for
35363 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
35365 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
35366 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
35367 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
35368 ABI call-used registers.
35369 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
35370 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
35372 (REG_CLASS_CONTENTS): Include all registers into the preferred
35373 reload registers set, adjust the set in the
35374 xtensa_conditional_register_usage.
35375 (xtensa_regno_to_class): Drop variable declaration.
35376 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
35378 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
35380 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
35381 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
35382 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
35383 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
35384 location in call0 ABI.
35385 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
35386 stack adjustment size when handling exception.
35387 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
35388 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
35390 ("return" pattern): Generate ret.n/ret in call0 ABI.
35391 ("epilogue" pattern): Expand epilogue.
35392 ("nonlocal_goto" pattern): Use default in call0 ABI.
35393 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
35394 emit eh_set_a0_* depending on ABI.
35395 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
35396 ("eh_set_a0_call0", "blockage"): New patterns.
35398 2015-03-03 Martin Liska <mliska@suse.cz>
35401 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
35403 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
35406 * config/rs6000/rs6000-tables.opt: Regenerate table.
35408 2015-03-03 Renlin Li <renlin.li@arm.com>
35410 * doc/md.texi (@item ^): Change ? into ^.
35412 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
35414 * doc/tm.texi: Regenerated.
35416 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
35418 * builtins.c (expand_builtin_return_addr): Add
35419 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
35420 surrounding #ifdef.
35421 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
35423 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
35425 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
35427 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
35430 2015-03-03 Martin Jambor <mjambor@suse.cz>
35431 Eric Botcazou <ebotcazou@adacore.com>
35433 * tree-sra.c (ipa_sra_check_caller_data): New type.
35434 (has_caller_p): Removed.
35435 (ipa_sra_check_caller): New function.
35436 (ipa_sra_preliminary_function_checks): Use it.
35438 2015-03-03 Martin Liska <mliska@suse.cz>
35440 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
35441 instead of if branch.
35443 2015-03-03 Martin Liska <mliska@suse.cz>
35446 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
35448 2015-03-23 Jeff Law <law@redhat.com>
35450 PR tree-optimization/65241
35451 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
35452 hash table if INSERT is true.
35454 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
35457 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
35459 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
35462 * config/avr/avr.c (context.h, tree-pass.h): Include them.
35463 (avr_pass_data_recompute_notes): New static variable.
35464 (avr_pass_recompute_notes): New class.
35465 (avr_register_passes): New static function.
35466 (avr_option_override): Call it.
35468 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
35470 Fix various problems with specs file generation.
35473 * config.gcc (extra_gcc_objs) [avr]: Remove.
35474 * config/avr/driver-avr.c: Remove file.
35475 * config/avr/t-avr (driver-avr.o): Remove rule.
35476 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
35477 INCLUDES to build. Depend on TM_H.
35478 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
35479 build warnings. Fix non-matching types and non-existing %-codes.
35481 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
35482 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
35483 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
35484 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
35485 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
35486 (LIBGCC_SPEC): Remove definitions.
35488 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
35490 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
35491 to create a register in testing mode.
35493 2015-03-03 Martin Liska <mliska@suse.cz>
35494 Jan Hubicka <hubicka@ucw.cz>
35497 * cgraph.c (cgraph_node::has_thunk_p): New function.
35498 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
35499 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
35500 (sem_function::merge): Assert is changed.
35502 2015-03-03 Martin Liska <mliska@suse.cz>
35503 Martin Jambor <mjambor@suse.cz>
35506 * ipa-icf.c (sem_item_optimizer::execute): Change function
35507 return value to boolean.
35508 (sem_item_optimizer::merge_classes): Likewise.
35509 (ipa_icf_driver): Return TODO_remove_functions in case there's
35510 a merge operation processed.
35511 * ipa-icf.h: Change function return value to boolean.
35513 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
35516 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
35517 processor type for 64-bit little endian PowerPC.
35519 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
35520 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
35521 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
35522 printing built-in mask so it does not pass NULL pointers.
35524 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
35527 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
35530 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
35531 !ISA_HAS_FP_CONDMOVE.
35533 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
35535 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
35538 2015-03-02 Ulrich Drepper <drepper@gmail.com>
35540 * doc/invoke.texi (Options for Code Generation Conventions):
35541 Fix URL of DSO paper.
35543 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
35546 * ipa-inline.c (check_callers): Looks for recursion.
35547 (inline_to_all_callers): Give up on uninlinable or recursive edges.
35548 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
35549 summary of inline clones.
35550 (do_estimate_growth_1): Fix recursion check.
35552 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
35555 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
35558 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
35559 Aldy Hernandez <aldyh@redhat.com>
35562 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
35563 when checking TYPE_BINFO.
35565 2015-03-02 Richard Biener <rguenther@suse.de>
35568 * ipa-icf-gimple.c: Include builtins.h.
35569 (func_checker::compare_memory_operand): Compare base alignment.
35571 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
35574 * config/i386/i386.c (ix86_pass_by_reference): Bounds are never
35575 passed by reference.
35577 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
35580 * tree-chkp.c (chkp_check_lower): Don't check against
35581 zero bounds for already instrumented functions.
35582 (chkp_check_upper): Likewise.
35583 (chkp_fini): Clean pass local data to avoid wrong reusage.
35585 2015-02-28 Martin Liska <mliska@suse.cz>
35586 Jan Hubicka <hubicka@ucw.cz>
35588 * ipa-icf.c (sem_variable::equals): Improve debug output;
35589 get variable constructor.
35590 (sem_variable::parse): Do not filter out too early; give up on
35591 volatile and register vars.
35592 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
35594 * ipa-icf.h (sem_variable::init): Do not set ctor.
35595 (sem_variable::ctor): Remove.
35597 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
35599 PR middle-end/65233
35600 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
35602 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
35604 * ipa-icf.c: Include stor-layout.h
35605 (sem_function::compare_cgraph_references): Rename to ...
35606 (sem_item::compare_cgraph_references): ... this one.
35607 (sem_variable::equals_wpa): New function
35608 (sem_variable::equals): Do not check stuff already verified by
35610 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
35611 * ipa-icf.h (sem_item): Add compare_cgraph_references.
35612 (sem_function): Remove compare_cgraph_references.
35613 (sem_variable): Turns equals_wpa into non-inline.
35615 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
35617 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
35618 (sem_item::add_expr): New function.
35619 (sem_function::hash_stmt): Handle operands of most statements.
35620 (sem_variable::get_hash): Hash the actual constructor.
35621 * ipa-icf.h (sem_item): Add add_expr.
35622 (sem_function): Update prototype of hash_stmt
35624 2015-02-28 Martin Liska <mliska@suse.cz>
35625 Jan Hubicka <hubicka@ucw.cz>
35628 * ipa-icf-gimple.c (func_checker::compare_function_decl):
35630 (func_checker::compare_variable_decl): Skip symtab vars.
35631 (func_checker::compare_cst_or_decl): Update.
35632 * ipa-icf.c (sem_function::parse): Do not consider aliases.
35633 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
35634 use correct symtab predicates.
35635 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
35636 (sem_variable::parse): Update comment.
35637 (sem_item_optimizer::build_graph): Consider ultimate aliases
35640 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
35642 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
35645 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
35647 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
35648 (sem_variable::merge) Likewise.
35650 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
35652 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
35653 target; also match flag_ipa_devirt.
35655 2015-03-01 Martin Liska <mliska@suse.cz>
35656 Jan Hubicka <hubicka@ucw.cz>
35658 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
35659 Validate variable alignment.
35660 * ipa-icf.c (sem_function::equals_private): Be more precise
35661 about non-common function attributes.
35662 (sem_variable::equals): Likewise.
35664 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
35667 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
35668 across COMDAT group boundary.
35670 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
35673 * ipa-icf.c (clear_decl_rtl): New function.
35674 (sem_function::merge): Clear RTL before forming alias.
35675 (sem_variable::merge): Clear RTL before forming alias.
35677 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
35680 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
35682 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
35684 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
35687 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
35689 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
35690 a typo in the description.
35692 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
35695 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
35696 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
35697 * lra-constraints.c: Include "params.h".
35698 (EBB_PROBABILITY_CUTOFF): Use
35699 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
35700 (lra_inheritance): Use '<' instead of '<=' for
35701 EBB_PROBABILITY_CUTOFF.
35702 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
35705 2015-02-27 Martin Liska <mliska@suse.cz>
35707 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
35708 vector length condition.
35710 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
35712 * doc/extend.texi (x86 transactional memory intrinsics):
35713 Reorganize discussion of _xbegin. Clarify that the return
35714 value is a bit mask. Expand example and move to end of section.
35716 2015-02-26 Jakub Jelinek <jakub@redhat.com>
35717 Aldy Hernandez <aldyh@redhat.com>
35719 PR rtl-optimization/65220
35720 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
35722 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
35725 * lra-remat.c (update_scratch_ops): New.
35726 (do_remat): Call it.
35727 * lra.c (lra_register_new_scratch_op): New. Take code from ...
35728 (remove_scratches): ... here.
35729 * lra-int.h (lra_register_new_scratch_op): New prototype.
35731 2015-02-27 Marek Polacek <polacek@redhat.com>
35734 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
35735 -Wformat-signedness anymore.
35737 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35739 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
35741 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
35743 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35745 * config/s390/s390.c (enum s390_builtin):
35746 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
35747 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
35748 (s390_init_builtins): Generate new builtin functions.
35749 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
35750 (s390_sfpc, s390_efpc): New pattern definitions.
35752 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35754 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
35755 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
35756 (s390_builtin_decls): New array.
35757 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
35758 (s390_builtin_decl): New function.
35759 (TARGET_BUILTIN_DECL): Define macro.
35761 2015-02-27 Richard Biener <rguenther@suse.de>
35763 PR middle-end/63175
35764 * builtins.c (get_object_alignment_2): Make sure to re-apply
35765 the ANDed mask after recursing to its operand gets us a new
35766 misalignment bit position.
35768 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
35769 Martin Liska <mliska@suse.cz>
35772 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
35773 Use address_matters_p.
35774 (redirect_all_callers, set_addressable): New functions.
35775 (sem_function::merge): Reorganize and fix merging issues.
35776 (sem_variable::merge): Likewise.
35777 (sem_variable::compare_sections): Remove.
35778 * common.opt (fmerge-all-constants, fmerge-constants): Remove
35780 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
35782 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
35784 (address_matters_1): New function.
35785 (symtab_node::address_matters_p): New function.
35786 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
35787 check for merged flag.
35788 * cgraph.h (address_matters_p): Declare.
35789 (symtab_node::address_taken_from_non_vtable_p): Remove.
35790 (symtab_node::address_can_be_compared_p): New method.
35791 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
35792 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
35794 (comdat_can_be_unshared_p_1) Use address_matters_p.
35795 (update_vtable_references): Fix formating.
35796 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
35797 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
35798 * cgraphclones.c: Preserve merged and icf_merged flags.
35800 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
35802 * doc/extend.texi (Function Attributes): Fix spelling and typos.
35803 (Label Attributes): Likewise.
35804 (Cilk Plus Builtins): Likewise.
35805 (ARC SIMD Built-in Functions): Likewise.
35806 (ARM C Language Extensions (ACLE)): Likewise.
35807 (PowerPC Built-in Functions): Likewise.
35808 (PowerPC Hardware Transactional Memory Built-in Functions):
35811 2015-02-26 Jakub Jelinek <jakub@redhat.com>
35813 PR tree-optimization/65216
35814 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
35815 new stmt and new SSA_NAME for lhs whenever the arguments have
35816 changed and weren't just swapped. Fix comment typo.
35818 PR tree-optimization/65215
35819 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
35820 for PDP endian targets.
35821 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
35822 Fix up formatting issues.
35823 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
35824 size is smaller than the original, adjust MEM_REF offset by the
35825 difference of sizes. Use is_gimple_mem_ref_addr instead of
35826 is_gimple_min_invariant test to avoid adding address temporaries.
35828 2015-02-26 Martin Liska <mliska@suse.cz>
35829 Jan Hubicka <hubicka@ucw.cz>
35832 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
35833 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
35834 (sem_item_optimizer::process_cong_reduction): Include division by
35835 sensitive references.
35836 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
35837 * ipa-ref.c (ipa_ref::address_matters_p): New function.
35838 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
35840 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
35843 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
35845 * config/avr/avr.c: Same.
35846 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
35847 Refuse any constant address not in 0..0xbf.
35848 * config/avr/avr.md (*mov<mode>, *movsf): Remove
35849 tiny_valid_direct_memory_access_range from insn conditions.
35850 (mov<mode>): Don't special-case expansion of avrtiny addresses.
35852 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
35855 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
35856 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
35857 * config/sh/predicates.md (const_logical_operand): New predicate.
35858 * config/sh/sh.md: Add new peephole2 patterns.
35860 2015-02-26 Marek Polacek <polacek@redhat.com>
35863 * ipa-inline.c (early_inliner): Recompute inline parameters.
35865 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35868 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
35869 instructions with TImode operands are included in the analysis.
35871 2015-02-26 Sebastian Pop <s.pop@samsung.com>
35873 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
35874 of an EDGE_FSM_THREAD.
35876 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
35878 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
35880 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
35883 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
35885 2015-02-26 Sebastian Pop <s.pop@samsung.com>
35887 PR tree-optimization/65048
35888 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
35889 (thread_through_all_blocks): Call valid_jump_thread_path.
35890 Remove invalid FSM jump-thread paths.
35892 2015-02-26 Jakub Jelinek <jakub@redhat.com>
35894 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
35895 (ipa_write_optimization_summaries): Likewise.
35896 * tree-streamer.h: Include data-streamer.h.
35897 (streamer_mode_table): Declare extern variable.
35898 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
35899 * lto-streamer-out.c (lto_output_init_mode_table,
35900 lto_write_mode_table): New functions.
35901 (produce_asm_for_decls): Call lto_write_mode_table when streaming
35903 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
35904 (lto_create_simple_input_block): Add mode_table argument to the
35905 lto_input_block constructors.
35906 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
35908 * data-streamer-in.c (string_for_index): Likewise.
35909 * ipa-inline-analysis.c (inline_read_section): Likewise.
35910 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
35911 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
35912 * lto-streamer-in.c (lto_read_body_or_constructor,
35913 lto_input_toplevel_asms): Likewise.
35914 (lto_input_mode_table): New function.
35915 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
35916 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
35917 Use bp_pack_machine_mode.
35918 * real.h (struct real_format): Add name field.
35919 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
35920 (class lto_input_block): Add mode_table member.
35921 (lto_input_block::lto_input_block): Add mode_table_ argument,
35922 initialize mode_table.
35923 (struct lto_file_decl_data): Add mode_table field.
35924 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
35925 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
35926 unpack_ts_decl_common_value_fields,
35927 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
35928 * tree-streamer.c (streamer_mode_table): New variable.
35929 * real.c (ieee_single_format, mips_single_format,
35930 motorola_single_format, spu_single_format, ieee_double_format,
35931 mips_double_format, motorola_double_format,
35932 ieee_extended_motorola_format, ieee_extended_intel_96_format,
35933 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
35934 ibm_extended_format, mips_extended_format, ieee_quad_format,
35935 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
35936 decimal_single_format, decimal_double_format, decimal_quad_format,
35937 ieee_half_format, arm_half_format, real_internal_format): Add name
35939 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
35941 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
35944 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
35945 reordering for selective scheduling.
35947 2015-02-26 Terry Guo <terry.guo@arm.com>
35949 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
35950 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
35951 (arm_arch_no_volatile_ce): Declare new global variable.
35952 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
35953 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
35954 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
35955 (TARGET_NO_VOLATILE_CE): New macro.
35956 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
35957 volatile memory access in IT block
35959 2015-02-25 Kai Tietz <ktietz@redhat.com>
35961 PR tree-optimization/61917
35962 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
35963 that reduc_def_stmt is null.
35965 2015-02-25 Martin Liska <mliska@suse.cz>
35967 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
35968 hard register variables.
35970 2015-02-25 Kai Tietz <ktietz@redhat.com>
35973 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
35974 (symtab::noninterposable_alias): Likewise.
35976 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
35979 * config/i386/i386.c (ix86_function_arg_regno_p): Support
35981 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
35983 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
35986 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
35987 as split condition; force split via '#' in output pattern.
35989 2015-02-25 Richard Biener <rguenther@suse.de>
35990 Kai Tietz <ktietz@redhat.com>
35992 PR tree-optimization/61917
35993 * tree-vect-loop.c (vectorizable_reduction): Allow
35994 vect_internal_def without reduction to exit graceful.
35996 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
35999 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
36000 only with NONDEBUG_INSN_P.
36002 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
36004 Use variadic macros with avr-log.c.
36006 * config/avr/avr-protos.h (avr_vdump): New prototype.
36007 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
36008 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
36009 * config/avr/avr-log.c: Adjust comments.
36010 (avr_vdump): New function.
36011 (avr_vadump): Pass caller as 2nd argument instead of format string.
36012 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
36013 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
36015 2015-02-25 Jakub Jelinek <jakub@redhat.com>
36018 * target.def (target_option_stream_in): New target hook.
36019 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
36020 targetm.target_option.post_stream_in if non-NULL.
36021 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
36022 * doc/tm.texi: Updated.
36023 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
36025 (TARGET_OPTION_POST_STREAM_IN): Redefine.
36027 2015-02-24 Jeff Law <law@redhat.com>
36030 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
36031 of operand 0 and operand 2.
36032 (zero_cost_loop_end, loop_end): Similarly.
36034 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
36036 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
36039 2015-02-24 DJ Delorie <dj@redhat.com>
36041 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
36042 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
36043 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
36044 instead of hardcoding SImode.
36046 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
36048 * omp-low.c (create_omp_child_function): Tag entrypoint
36049 functions with a special attribute.
36051 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
36054 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
36056 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
36058 PR rtl-optimization/65123
36059 * lra-remat.c (operand_to_remat): Check hard regs in insn
36062 2015-02-24 Nick Clifton <nickc@redhat.com>
36064 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
36067 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
36070 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
36071 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
36072 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
36073 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
36074 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
36075 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
36076 (BUILT_IN_GOACC_PARALLEL): Specify as
36077 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
36078 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
36079 * builtin-types.def
36080 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
36081 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
36082 Remove function types.
36083 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
36084 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
36085 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
36086 New function types.
36088 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
36090 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
36092 2015-02-24 Jakub Jelinek <jakub@redhat.com>
36094 PR tree-optimization/65170
36095 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
36096 if val[1] < 0, clear also val[2] and return 3.
36098 2015-02-24 Alan Modra <amodra@gmail.com>
36101 * config/rs6000/rs6000.c (get_memref_parts): Only return true
36102 when *base is a reg. Handle nested plus addresses. Simplify
36105 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
36107 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
36108 use natural alignment when optimizing for size.
36110 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
36113 * config/sh/sh.md (movsicc_true+3): Remove peephole.
36114 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
36115 * config/sh/sh.c (replace_n_hard_rtx): Remove.
36117 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
36120 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
36121 too big for a wide_int. Implement missing wrapping operation.
36123 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
36126 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
36127 instead of const_int 4294901760.
36129 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
36131 * config/avr/t-avr: Fix typo in comment.
36133 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
36135 * doc/rtl.texi (fma): Clarify documentation.
36137 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
36140 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
36141 over input_location.
36143 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
36145 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
36146 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
36147 restrict alignments to absolute_biggest_alignment.
36148 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
36150 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
36151 * doc/tm.texi: Regenerate.
36152 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
36154 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
36157 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
36159 2015-02-20 Richard Biener <rguenther@suse.de>
36161 PR tree-optimization/65136
36162 * tree-ssa-propagate.c: Include cfgloop.h.
36163 (replace_phi_args_in): Avoid replacing loop latch edge PHI
36164 arguments with constants.
36166 2015-02-20 Jakub Jelinek <jakub@redhat.com>
36167 Martin Liska <mliska@suse.cz>
36170 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
36171 don't try to create_thunk if stdarg_p. If
36172 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
36173 redirect_callers if possible.
36174 (sem_item_optimizer::execute): Call unregister_hooks here...
36175 (ipa_icf_driver): ... instead of here.
36177 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36179 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
36180 Mark operand 0 as earlyclobber in 2nd alternative.
36181 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
36182 Write negated shift amount into QI lowpart operand 0 and use it
36184 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
36186 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
36188 * cgraph.h (clone_function_name_1): Declare.
36189 * cgraphclones.c (clone_function_name_1): New function.
36190 (clone_function_name): Use it.
36191 * lto-partition.c: Include "stringpool.h".
36192 (must_not_rename, maybe_rewrite_identifier)
36193 (validize_symbol_for_target): New static functions.
36194 (privatize_symbol_name): Use must_not_rename.
36195 (promote_symbol): Call validize_symbol_for_target.
36196 (lto_promote_cross_file_statics): Likewise.
36197 (lto_promote_statics_nonwpa): Likewise.
36199 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
36202 * config/avr/avr.md (pushhi_insn): New insn.
36203 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
36205 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
36206 Jakub Jelinek <jakub@redhat.com>
36208 * tree-streamer.c (preload_common_nodes): Don't preload
36209 TI_VA_LIST* for offloading.
36210 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
36213 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
36215 * config/pa/pa.c (pa_emit_move_sequence): Always force
36216 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
36219 * config/pa/pa.c (pa_reloc_rw_mask): New function.
36220 (TARGET_ASM_RELOC_RW_MASK): Define.
36221 (pa_cannot_force_const_mem): Revert previous change.
36223 2015-02-19 Martin Jambor <mjmabor@suse.cz>
36224 Jan Hubicka <hubicka@ucw.cz>
36227 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
36228 across jump functions.
36230 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
36232 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
36234 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
36236 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
36238 2015-02-19 Richard Henderson <rth@redhat.com>
36240 PR middle-end/65074
36241 * varasm.c (default_binds_local_p_2): Don't test node->definition;
36242 test DECL_EXTERNAL independent of symtab_node.
36244 2015-02-19 Jakub Jelinek <jakub@redhat.com>
36247 * varpool.c (varpool_node::get_constructor): Return early
36248 if this->lto_file_data is NULL.
36250 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
36252 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
36253 (rank_for_schedule_debug): Update.
36254 (ready_sort): Make static. Move sorting logic to ...
36255 (ready_sort_debug, ready_sort_real): New static functions.
36256 (schedule_block): Sort both debug insns and real insns in preparation
36257 for ready list trimming. Improve debug output.
36258 * sched-int.h (ready_sort): Remove global declaration.
36260 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
36262 * ipa-icf.c (sem_function::equals_private): Adjust.
36263 (sem_function::bb_dict_test): Take a vec<int> * instead of
36265 * ipa-icf.h (bb_dict_test): Likewise.
36267 2015-02-18 Jakub Jelinek <jakub@redhat.com>
36269 PR gcov-profile/64634
36270 * tree-eh.c (frob_into_branch_around): Fix up typos
36271 in function comment.
36272 (lower_catch): Put eh_seq resulting from EH lowering of
36273 the cleanup sequence after the cleanup rather than before it.
36275 2015-02-18 Tom de Vries <tom@codesourcery.com>
36277 * common.opt (fstdarg-opt): New option.
36278 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
36279 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
36280 (@item -fstdarg-opt): New item.
36282 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
36285 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
36286 for common symbols.
36288 2015-02-18 Jakub Jelinek <jakub@redhat.com>
36290 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
36292 (ALL_HOST_OBJS): Add mkoffload.o.
36293 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
36295 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
36297 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
36298 (compare_virtual_tables): Be smarter about skipping typeinfos;
36299 do sane output on virtual table table mismatch.
36300 (warn_odr): Be ready for forward declarations of enums;
36301 output sane info on base mismatch and virtual table mismatch.
36302 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
36303 when only one type is polymorphic.
36304 (get_odr_type): Fix hashtable corruption.
36305 (dump_odr_type): Dump mangled names.
36307 2015-02-18 Richard Biener <rguenther@suse.de>
36309 PR tree-optimization/65063
36310 * tree-predcom.c (determine_unroll_factor): Return 1 if we
36311 have replaced looparound PHIs.
36313 2015-02-18 Martin Liska <mliska@suse.cz>
36315 * lto-streamer.c (lto_streamer_init): Encapsulate
36316 streamer_check_handled_ts_structures with checking macro.
36318 2015-02-18 Jakub Jelinek <jakub@redhat.com>
36321 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
36322 section if !implicit_section.
36323 (cgraph_node::create_version_clone_with_body): Likewise.
36324 * trans-mem.c (ipa_tm_create_version): Likewise.
36326 2015-02-18 Richard Biener <rguenther@suse.de>
36328 PR tree-optimization/62217
36329 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
36332 2015-02-18 Marek Polacek <polacek@redhat.com>
36335 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
36336 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
36337 is in range [-16K, -1]. Don't issue run-time error if
36338 (ptr > ptr + offset).
36340 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
36342 * doc/install.texi (nvptx-*-none): New section.
36343 * doc/invoke.texi (Nvidia PTX Options): Likewise.
36344 * config/nvptx/nvptx.opt: Update.
36346 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
36347 (access_check): New functions, copied from
36348 config/i386/intelmic-mkoffload.c.
36349 (main): For non-installed testing, look in all COMPILER_PATHs for
36352 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
36354 2015-02-18 Andrew Pinski <apinski@cavium.com>
36355 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
36357 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
36358 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
36360 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
36362 * ipa-visibility.c (function_and_variable_visibility): Only
36363 check locality if node is not already local.
36364 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
36365 call_for_symbol_and_aliases instead of
36366 call_for_symbol_thunks_and_aliases.
36367 (ipa_inline): Likewise.
36368 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
36369 first walk aliases.
36370 * ipa.c (symbol_table::remove_unreachable_nodes): Use
36371 call_for_symbol_and_aliases.
36372 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
36373 (ipa_propagate_frequency_1): Use it; use opt_for_fn
36374 (ipa_propagate_frequency): Update.
36375 (ipa_profile): Add opt_for_fn gueards.
36377 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
36379 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
36380 * doc/invoke.texi (SH options): Document it.
36381 * config/sh/sh.c (sh_insn_length_adjustment): Check
36382 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
36384 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
36386 * common.opt (fipa-cp-alignment): New.
36387 * ipa-cp.c (ipcp_store_alignment_results): Check
36388 flag_ipa_cp_alignment.
36389 * opts.c (default_options_table): Enable -fipa-cp-alignment for
36391 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
36392 * doc/invoke.texi: Document -fipa-cp-alignment.
36394 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
36397 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
36398 to nil. Adjust comments.
36400 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
36402 * ipa-visibility.c (function_and_variable_visibility): Only
36403 check locality if node is not already local.
36404 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
36405 call_for_symbol_and_aliases instead of
36406 call_for_symbol_thunks_and_aliases.
36407 (ipa_inline): Likewise.
36408 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
36409 first walk aliases.
36410 * ipa.c (symbol_table::remove_unreachable_nodes): Use
36411 call_for_symbol_and_aliases.
36412 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
36413 (ipa_propagate_frequency_1): Use it; use opt_for_fn
36414 (ipa_propagate_frequency): Update.
36415 (ipa_profile): Add opt_for_fn guards.
36417 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
36419 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
36420 skipping of "strange" tokens.
36422 2015-02-17 Jeff Law <law@redhat.com>
36424 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
36427 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
36429 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
36430 as forcing a HARD_DEP between instructions, thereby
36431 disallowing rewriting to break dependencies.
36433 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
36435 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
36436 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
36437 variables in boundary that have no inlitalizer encoded and are
36439 * varasm.c (default_binds_local_p_2): External definitions do not
36440 count as definitions here.
36442 2015-02-16 Jeff Law <law@redhat.com>
36444 PR tree-optimization/64823
36445 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
36447 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
36448 threading through blocks with PHIs, but no statements.
36449 (thread_through_normal_block): Distinguish between blocks where
36450 we did not process all the statements and blocks with no statements.
36452 2015-02-16 Jakub Jelinek <jakub@redhat.com>
36453 James Greenhalgh <james.greenhalgh@arm.com>
36456 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
36457 section if not linkonce. Fix up formatting.
36458 (cgraph_node::create_version_clone_with_body): Copy section.
36459 * trans-mem.c (ipa_tm_create_version): Likewise.
36461 2015-02-16 Richard Biener <rguenther@suse.de>
36463 PR tree-optimization/65077
36464 * tree-ssa-structalias.c (get_constraint_for_1): Handle
36465 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
36466 (find_func_aliases): Allow float values to carry pointers again.
36468 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
36470 * doc/install.texi (Specific): Reorder targets list to put
36471 aarch64 in alphabetical order. Add a link to aarch64*-*-*
36474 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
36475 David Edelsohn <dje.gcc@gmail.com>
36478 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
36479 mapping class to external variable or function reference.
36480 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
36483 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
36486 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
36487 ASM_WEAKEN_DECL if defined.
36489 2015-02-16 Richard Biener <rguenther@suse.de>
36492 * varasm.c (default_file_start): For LTO produced units
36493 emit <artificial> as file directive.
36495 2015-02-16 Richard Biener <rguenther@suse.de>
36497 PR tree-optimization/63593
36498 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
36499 stmts and releasing SSA names until...
36500 (execute_pred_commoning): ... after processing all chains.
36502 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
36505 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
36506 external functions.
36508 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
36510 * doc/bugreport.texi: Adjust section titles throughout the file
36511 to use "Title Case".
36512 * doc/extend.texi: Likewise.
36513 * doc/gcov.texi: Likewise.
36514 * doc/implement-c.texi: Likewise.
36515 * doc/implement-cxx.texi: Likewise.
36516 * doc/invoke.texi: Likewise.
36517 * doc/objc.texi: Likewise.
36518 * doc/standards.texi: Likewise.
36519 * doc/trouble.texi: Likewise.
36521 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
36523 * cgraph.h (symtab_node::has_aliases_p): Simplify.
36524 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
36525 * tree.c (lookup_binfo_at_offset): Make static.
36526 (get_binfo_at_offset): Do not shadow offset; add explanatory
36529 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
36531 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
36532 for all floading point loads and stores except those using a register
36534 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
36537 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
36539 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
36540 (do_estimate_growth_1): Record if any uninlinable edge was seen.
36541 (estimate_growth): Handle uninlinable edges correctly.
36542 (check_callers): New.
36543 (growth_likely_positive): Handle aliases correctly.
36545 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
36547 * ipa-chkp.c: Use iterate_direct_aliases.
36548 * symtab.c (resolution_used_from_other_file_p): Move inline.
36549 (symtab_node::create_reference): Fix formating.
36550 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
36551 (symtab_node::iterate_reference): Move inline.
36552 (symtab_node::iterate_referring): Move inline.
36553 (symtab_node::iterate_direct_aliases): Move inline.
36554 (symtab_node::used_from_object_file_p_worker): Inline into ...
36555 (symtab_node::used_from_object_file_p): ... this one; move inline.
36556 (symtab_node::call_for_symbol_and_aliases): Move inline;
36557 use iterate_direct_aliases.
36558 (symtab_node::call_for_symbol_and_aliases_1): New method.
36559 (cgraph_node::call_for_symbol_and_aliases): Move inline;
36560 use iterate_direct_aliases.
36561 (cgraph_node::call_for_symbol_and_aliases_1): New method.
36562 (varpool_node::call_for_node_and_aliases): Rename to ...
36563 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
36564 use iterate_direct_aliases.
36565 (varpool_node::call_for_symbol_and_aliases_1): New method.
36566 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
36567 (ipa_discover_readonly_nonaddressable_var): Update.
36568 * ipa-devirt.c: Fix formating.
36569 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
36571 (cgraph_node::call_for_symbol_and_aliases): Move inline.
36572 (cgraph_node::call_for_symbol_and_aliases_1): New function..
36573 * cgraph.h (used_from_object_file_p_worker): Remove.
36574 (resolution_used_from_other_file_p): Move inline.
36575 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
36576 (symtab_node::iterate_reference): Move inline.
36577 (symtab_node::iterate_referring): Move inline.
36578 (symtab_node::iterate_direct_aliases): Move inline.
36579 (symtab_node::used_from_object_file_p_worker): Inline into ...
36580 (symtab_node::used_from_object_file_p): Move inline.
36581 * tree-emutls.c (ipa_lower_emutls): Update.
36582 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
36583 (varpool_node::call_for_node_and_aliases): Remove.
36585 2015-02-14 Jakub Jelinek <jakub@redhat.com>
36587 PR tree-optimization/62209
36588 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
36589 op == range->exp, insert seq and gimplified code after labels
36590 instead of after the phi.
36592 2015-02-13 Jeff Law <law@redhat.com>
36595 Revert my change for tree-optimization/64823.
36597 2015-02-13 Jakub Jelinek <jakub@redhat.com>
36599 PR tree-optimization/65053
36600 * tree-ssa-phiopt.c (value_replacement): When moving assign before
36601 cond, either reset VR on lhs or set it to phi result VR.
36603 2015-02-13 Jeff Law <law@redhat.com>
36605 PR tree-optimization/64823
36606 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
36607 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
36608 threading through blocks with PHIs, but no statements.
36609 (thread_through_normal_block): Distinguish between blocks where
36610 we did not process all the statements and blocks with no statements.
36612 PR rtl-optimization/47477
36613 * match.pd (convert (plus/minus (convert @0) (convert @1): New
36614 simplifier to narrow arithmetic.
36616 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
36619 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
36620 polymorphic call info when type is not known to be preserved.
36622 2015-02-13 Maritn Jambor <mjambor@suse.cz>
36625 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
36626 (inline_call): Use it.
36628 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
36630 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
36631 GOMP_DEVICE_NVIDIA_PTX.
36633 2015-02-13 Jakub Jelinek <jakub@redhat.com>
36636 * stmt.c (emit_case_nodes): Use void_type_node instead of
36637 NULL_TREE as LABEL_DECL type.
36639 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
36641 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
36643 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
36644 symbolic references to data to be forced to constant memory on the
36647 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
36649 PR tree-optimization/65002
36650 * tree-cfg.c (pass_data_fixup_cfg): Don't update
36652 * tree-sra.c (some_callers_have_no_vuse_p): New.
36653 (ipa_early_sra): Reject functions whose callers
36654 assume function is read only.
36656 2015-02-13 Richard Biener <rguenther@suse.de>
36659 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
36660 for LTO produced CUs.
36662 2015-02-13 Bin Cheng <bin.cheng@arm.com>
36664 PR tree-optimization/64705
36665 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
36666 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
36667 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
36668 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
36669 expand_simple_operations.
36671 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
36672 Richard Henderson <rth@redhat.com>
36675 * cgraphunit.c (cgraph_node::finalize_function): Set definition
36676 before notice_global_symbol.
36677 (varpool_node::finalize_decl): Likewise.
36678 * varasm.c (default_binds_local_p_2): Rename from
36679 default_binds_local_p_1, add weak_dominate argument. Use direct
36680 returns instead of assigning to local variable. Unify varpool and
36681 cgraph paths via symtab_node. Reject undef weak variables before
36682 testing visibility. Reorder tests for simplicity.
36683 (default_binds_local_p): Use default_binds_local_p_2.
36684 (default_binds_local_p_1): Likewise.
36685 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
36687 (default_elf_asm_output_external): Emit visibility when specified.
36689 2015-02-13 Alan Modra <amodra@gmail.com>
36691 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
36692 code setting up r11 for out-of-line fp restore.
36694 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
36696 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
36697 (muser-mode): Likewise.
36699 2015-02-13 Alan Modra <amodra@gmail.com>
36701 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
36702 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
36704 2015-02-12 David Howells <dhowells@redhat.com>
36706 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
36708 * tree-ssa-uninit.c (dump_predicates): Likewise.
36709 * opts.c (print_filtered_help): Likewise.
36711 2015-02-12 Jakub Jelinek <jakub@redhat.com>
36713 * dwarf2out.c (output_die): Use "%s", name instead of name to
36714 avoid -Wformat-security warning.
36716 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
36717 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
36718 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
36719 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
36721 2015-02-12 Jason Merrill <jason@redhat.com>
36723 * common.opt (-flifetime-dse): New.
36725 2015-02-12 Jakub Jelinek <jakub@redhat.com>
36728 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
36730 PR tree-optimization/65014
36731 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
36732 use original second operand of arg0 or arg1 instead of
36733 that adjusted by STRIP_NOPS.
36735 2015-02-11 Jeff Law <law@redhat.com>
36738 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
36739 that needs to be queued, just queue it for a single cycle.
36741 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
36743 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
36744 bodies of thunks; comment on why.
36745 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
36746 symbols are extern.
36748 2015-02-11 Richard Henderson <rth@redhat.com>
36751 * tree-eh.c (mark_reachable_handlers): Mark source and destination
36752 regions of __builtin_eh_copy_values.
36754 2015-02-11 Jakub Jelinek <jakub@redhat.com>
36756 PR middle-end/65003
36757 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
36758 ultimate alias is MEM with SYMBOL_REF satisfying
36759 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
36760 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
36762 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
36764 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
36765 "diagnostic-core.h".
36766 (main): Initialize progname, and call diagnostic_initialize.
36768 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
36769 instead of __OPENMP_TARGET__.
36771 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
36772 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
36773 hard-coding PTX_ID.
36775 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
36777 * doc/sourcebuild.texi (pie_enabled): Document.
36779 2015-02-11 Martin Liska <mliska@suse.cz>
36782 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
36783 a return value for call to a function that is noreturn.
36785 2015-02-11 Richard Biener <rguenther@suse.de>
36788 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
36791 2015-02-11 Andrew Pinski <apinski@cavium.com>
36794 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
36795 Change the first argument type to size_type_node and add another
36797 (aarch64_simd_expand_builtin): Handle the new argument to
36798 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
36799 print an out when the first two arguments are not
36800 nonzero integer constants.
36801 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
36802 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
36804 2015-02-11 Jakub Jelinek <jakub@redhat.com>
36807 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
36808 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
36809 (ix86_set_current_function): Rewritten.
36810 (ix86_add_new_builtins): Temporarily clear current_target_pragma
36811 when creating builtin fndecls.
36813 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
36816 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
36818 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
36819 have no comdat group.
36820 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
36821 (lto_output_varpool_node): Always output alias info.
36822 (output_refs): Output refs of boundary aliases, too.
36823 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
36824 (output_symtab): Output call eges in thunks in boundary.
36825 (get_alias_symbol): Remove.
36826 (input_node, input_varpool_node): Do not special case weakrefs.
36827 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
36828 alias and thunks targets in the boundary; do not take removed symbols
36829 from their comdat groups.
36830 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
36831 (cgraph_node::global_info): Remove.
36832 (cgraph_node::rtl_info): Look through aliases and thunks.
36833 * cgrpah.h (global_info): Remove.
36834 (non_local_p): Remove.
36836 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
36837 Sandra Loosemore <sandra@codesourcery.com>
36839 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
36840 to inline asm. List dialects in proper order.
36842 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
36843 Sandra Loosemore <sandra@codesourcery.com>
36845 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
36847 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
36849 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
36850 modified) reference to Solaris.
36852 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
36854 * doc/extend.texi (Extended Asm): Fix typos.
36856 2015-02-10 Jakub Jelinek <jakub@redhat.com>
36859 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
36861 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
36864 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
36865 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
36866 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
36867 * config/sh/constraints.md (Ara, Add): New constraints.
36868 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
36870 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
36871 atomic_mem_operand_0. Don't use force_reg on the memory address.
36872 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
36873 Sra constraint. Convert to insn_and_split. Add workaround for
36875 (atomic_compare_and_swap<mode>_hard): Copy to
36876 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
36877 Use atomic_mem_operand_0 predicate.
36878 (atomic_compare_and_swap<mode>_soft_gusa,
36879 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
36880 AraAdd constraints.
36881 (atomic_compare_and_swap<mode>_soft_tcb,
36882 atomic_compare_and_swap<mode>_soft_imask,
36883 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
36884 atomic_mem_operand_0 predicate and SraSdd constraints.
36885 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
36887 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
36888 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
36889 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
36890 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
36891 force_reg on the memory address.
36892 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
36893 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
36894 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
36895 atomic_mem_operand_1 predicate and Sra constraint.
36896 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
36897 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
36898 Use atomic_mem_operand_1 predicate.
36899 (atomic_<fetchop_name><mode>_hard): Copy to
36900 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
36901 Use atomic_mem_operand_1 predicate.
36902 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
36903 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
36904 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
36905 insn_and_split. Use atomic_mem_operand_1 predicate.
36906 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
36907 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
36908 Use atomic_mem_operand_1 predicate.
36909 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
36910 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
36911 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
36912 in generated insn with original mem operand before emitting the insn.
36913 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
36914 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
36915 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
36916 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
36917 Use atomic_mem_operand_1 predicate and AraAdd constraints.
36918 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
36919 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
36920 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
36921 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
36922 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
36923 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
36924 atomic_not_fetch<mode>_soft_tcb,
36925 atomic_<fetchop_name>_fetch<mode>_soft_imask,
36926 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
36927 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
36928 Use atomic_mem_operand_1 predicate and SraSdd constraints.
36930 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
36932 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
36933 and 3 earlyclobber operands.
36935 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
36937 * common.opt (fstack-reuse): Mark as optimization.
36939 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
36942 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
36944 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
36946 PR tree-optimization/64326
36947 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
36949 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
36951 PR gcov-profile/61889
36952 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
36954 2015-02-10 Richard Biener <rguenther@suse.de>
36956 PR tree-optimization/64995
36957 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
36958 value we use is final.
36959 (visit_reference_op_store): Always valueize op.
36960 (visit_use): Properly valueize vuses.
36962 2015-02-10 Richard Biener <rguenther@suse.de>
36964 PR tree-optimization/64909
36965 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
36966 pass a scalar-stmt count estimate to the cost model.
36967 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
36969 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
36971 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
36972 enabled by default together with var-tracking.
36974 2015-02-10 Nick Clifton <nickc@redhat.com>
36976 * config/rl78/rl78.c: Remove DIV attribute code accidentally
36977 included in previous rl78 commit.
36979 2015-02-10 Richard Biener <rguenther@suse.de>
36981 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
36982 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
36983 return the bitpack.
36985 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
36987 PR gcov-profile/61889
36988 * config.in: regenerate.
36989 * configure.in: Likewise.
36990 * configure.ac: Check for ftw.h.
36991 * gcov-tool.c: Check for ftw.h before using nftw.
36993 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
36996 * ipa-visibility.c (update_visibility_by_resolution_info): Only
36997 assert when not in lto mode.
36999 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
37001 * ira-color.c (setup_left_conflict_sizes_p): Simplify
37002 initialization/assignment of conflict_size.
37004 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
37007 * ipa-cp.c (gather_caller_stats): Skip thunks.
37008 (propagate_constants_topo): Skip aliases.
37010 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
37013 * config/sh/sh.c (sh_option_override): Don't change
37014 -freorder-blocks-and-partition to -freorder-blocks even when
37015 unwinding is enabled.
37016 (sh_can_follow_jump): Return false if the followee jump is
37017 a crossing jump when -freorder-blocks-and-partition is specified.
37018 * config/sh/sh.md (*jump_compact_crossing): New insn.
37020 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
37021 Kaz Kojima <kkojima@gcc.gnu.org>
37024 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
37025 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
37026 (sh_can_redirect_branch): Rename to ...
37027 (sh_can_follow_jump): ... this. Constify argument types.
37028 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
37029 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
37030 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
37031 * doc/tm.texi: Regenerate.
37033 2015-02-09 Jakub Jelinek <jakub@redhat.com>
37036 * builtins.c (expand_builtin): Call targetm.expand_builtin
37037 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
37039 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
37042 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
37044 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
37047 * ipa-icf.c (set_local): New function.
37048 (sem_function::merge): Use it.
37050 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
37052 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
37053 (add_type_duplicate): Fix comparison of BINFOs.
37055 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
37057 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
37058 on getting VOID pointer.
37060 2015-02-09 Jakub Jelinek <jakub@redhat.com>
37063 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
37066 2015-02-09 Richard Biener <rguenther@suse.de>
37068 * genmatch.c (replace_id): Copy expr_type.
37070 2015-02-09 Richard Biener <rguenther@suse.de>
37072 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
37073 (streamer_write_tree_bitfields): Declare.
37074 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
37075 properly unpack padding.
37076 (unpack_value_fields): Inline ...
37077 (streamer_read_tree_bitfields): ... here.
37078 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
37079 and properly add padding bits.
37080 (streamer_pack_tree_bitfields): Fold into ...
37081 (streamer_write_tree_bitfields): ... this new function,
37082 exposing the bitpack object.
37083 * lto-streamer-out.c (lto_write_tree_1): Call
37084 streamer_write_tree_bitfields.
37086 2015-02-09 Richard Biener <rguenther@suse.de>
37088 PR tree-optimization/54000
37089 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
37090 (struct ivopts_data): Add loop_loc member.
37091 (tree_ssa_iv_optimize_loop): Dump loop location.
37092 (create_new_ivs): Likewise, also dump number of IVs generated.
37094 2015-02-09 Martin Liska <mliska@suse.cz>
37096 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
37097 just if not yet registered.
37098 (ipa_icf_generate_summary): Register callgraph hooks.
37100 2015-02-08 Andrew Pinski <apinski@cavium.com>
37102 * config/aarch64/aarch64.c (gty_dummy): Delete.
37104 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
37107 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
37108 (cgraph_node::local_p): Remove thunk related FIXME.
37110 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
37113 * i386.c (ix86_function_regparm): Look through aliases to see if callee
37114 is local and optimized.
37115 (ix86_function_sseregparm): Likewise; also use target's SSE math
37116 settings; error out instead of silently generating wrong code
37118 (init_cumulative_args): Look through aliases.
37120 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
37123 * ipa-split.c (execute_split_functions): Split if function has aliases.
37125 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
37128 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
37129 aliases before trying to expand it.
37130 (cgraph_node::expand_thunk): Fix formating.
37132 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
37134 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
37135 (Using Assembly Language with C): Expand introduction.
37136 (Basic Asm): Copy-edit. Add more information about uses of
37138 (Extended Asm): Copy-edit. Document new escape syntax and
37140 (Global Reg Vars): Copy-edit.
37141 (Local Reg Vars): Likewise.
37143 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
37147 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
37148 (DBX_CONTIN_CHAR): Define.
37150 2015-02-06 Sebastian Pop <s.pop@samsung.com>
37151 Brian Rzycki <b.rzycki@samsung.com>
37153 PR tree-optimization/64878
37154 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
37155 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
37156 Stop recursion at loop phi nodes after having visited a loop phi node.
37158 2015-02-06 Jakub Jelinek <jakub@redhat.com>
37160 * toplev.c (process_options): Change flag_ipa_ra before creating
37161 optimization_{default,current}_node.
37164 * cgraphunit.c (cgraph_node::expand_thunk): If
37165 restype is not is_gimple_reg_type nor the thunk_fndecl
37166 returns aggregate_value_p, set restmp to a temporary variable
37167 instead of resdecl.
37169 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
37171 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
37173 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
37176 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
37177 add a general secondary reload handler for SDmode, unless we have
37178 both read/write support for SDmode.
37180 2015-02-06 Jakub Jelinek <jakub@redhat.com>
37182 PR middle-end/64937
37183 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
37184 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
37185 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
37186 1 before, push it to abstract_vec.
37187 (dwarf2out_abstract_function): Adjust caller. Don't call
37188 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
37189 DECL_ABSTRACT_P flags for all abstract_vec elts.
37191 2015-02-06 Renlin Li <renlin.li@arm.com>
37193 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
37195 * tree-ssa.c (execute_update_addresses_taken): Likewise.
37197 2015-02-06 Jeff Law <law@redhat.com>
37200 * config/h8300/h8300.c (push): New argument "in_prologue".
37201 Pass "in_prologue" along to "F".
37202 (h8300_push_pop): Corresponding changes.
37203 (h8300_expand_prologue): Likewise.
37204 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
37206 2015-02-06 Jakub Jelinek <jakub@redhat.com>
37208 PR rtl-optimization/64957
37210 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
37211 IOR rather than for AND.
37213 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
37216 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
37217 of shift-add and (add + shift) operations. Rename local variable.
37219 2015-02-05 Jeff Law <law@redhat.com>
37222 * config/h8300/constraints.md (U): Correctly dectect
37223 "eightbit_data" memory addresses.
37224 * config/h8300/h8300.c (eightbit_constant_address_p): Also
37225 handle (const (plus (symbol_ref (x)))) where x is declared
37226 as an 8-bit data memory address.
37227 * config/h8300/h8300.md (call, call_value): Correctly detect
37228 "funcvec" functions.
37231 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
37232 24 to 28 bits for the H8/300.
37234 2015-02-06 Alan Modra <amodra@gmail.com>
37237 * config/rs6000/rs6000.c (chain_already_loaded): New function.
37238 (rs6000_call_aix): Use it.
37240 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
37242 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
37245 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
37247 * config/h8300/constraints.md ("U" constraint): Use strict
37248 variant of REG_OK_FOR_BASE_P after reload has started.
37250 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
37252 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
37253 define to zero if !TARGET_NEON.
37254 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
37256 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
37257 Trevor Saunders <tsaunders@mozilla.com>
37260 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
37262 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
37265 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
37266 when removing varpool nodes.
37268 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
37271 * varpool.c (varpool_node::remove): Fix order of variables.
37273 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
37276 * ipa-inline.c (inline_small_functions): Fix ordering issue between
37277 speculation resolution and key updates.
37279 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
37281 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
37282 about not letting any speculative edges unupdated.
37284 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
37287 * gcov-io.c (gcov_var): Export.
37289 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
37291 PR middle-end/64922
37292 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
37293 edges that become speculative.
37295 2015-02-04 Jakub Jelinek <jakub@redhat.com>
37297 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
37298 or DW_LANG_Fortran08.
37299 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
37301 (gen_compile_unit_die): Handle "GNU Fortran2003" and
37302 "GNU Fortran2008" language strings.
37303 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
37304 * langhooks.h (lang_GNU_Fortran): New prototype.
37305 * langhooks.c (lang_GNU_Fortran): New function.
37306 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
37309 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
37311 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
37312 (RTX_OK_FOR_OLO10_P): Likewise.
37314 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
37316 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
37318 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
37320 PR middle-end/64922
37321 * gimple.c: Include gimple-ssa.h.
37322 (maybe_remove_unused_call_args): New function.
37323 * gimple.h (maybe_remove_unused_call_args): Declare.
37324 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
37325 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
37326 * gimple-fold.c (gimple_fold_call): Likewise.
37328 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
37330 PR rtl-optimization/64905
37331 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
37332 pointer alignment if it isn't needed.
37334 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
37336 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
37337 cortex-a72.cortex-a53.
37338 * config/aarch64/aarch64-tune.md: Regenerate.
37339 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
37341 2015-02-04 Nick Clifton <nickc@redhat.com>
37343 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
37346 2015-02-04 Jakub Jelinek <jakub@redhat.com>
37348 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
37349 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
37350 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
37352 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
37353 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
37354 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
37355 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
37356 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
37357 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
37358 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
37359 * tree-core.h (enum built_in_function): In between
37360 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
37361 for builtins that use DEF_BUILTIN_CHKP macro.
37363 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
37366 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
37367 operands for tcc_comparison exprs. Fix typos.
37370 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
37371 of two XORs that have an intervening AND or IOR.
37374 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
37375 simplification of XOR of AND to not allocate new rtx before
37376 committing to a simplification.
37378 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37380 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
37381 manual swaps in all peepholes.
37383 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37385 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
37386 of manual swapping implementation.
37387 (aarch64_expand_vec_perm_const_1): Likewise.
37389 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
37391 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
37392 (generic_addrcost_table): Remove NAMED_PARAM.
37393 (cortexa57_addrcost_table): Likewise.
37394 (xgene1_addrcost_table): Likewise.
37395 (generic_regmove_table): Likewise.
37396 (cortexa53_regmove_table): Likewise.
37397 (xgene1_regmove_table): Likewise.
37398 (generic_vector_table): Likewise.
37399 (cortexa57_vector_table): Likewise.
37400 (xgene1_vector_table): Likewise.
37401 (generic_tunings): Likewise.
37402 (cortexa53_tunings): Likewise.
37403 (cortexa57_tunings): Likewise.
37404 (xgene1_tunings): Likewise.
37406 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
37408 * config/arm/arm-cores.def: Add cortex-a72 and
37409 cortex-a72.cortex-a53.
37410 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
37411 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
37412 * config/arm/arm-tune.md: Regenerate.
37413 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
37414 "cortex-a72.cortex-a53".
37415 * doc/invoke.texi (ARM Options/-mtune): Likewise.
37417 2015-02-04 Nick Clifton <nickc@redhat.com>
37420 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
37422 (nonimmediate_di_operand): Likewise.
37424 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
37425 prefixes of known F5 using MSP430 MCUs.
37427 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37429 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
37430 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
37431 instead of __builtin_sqrt.
37433 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
37435 * varasm.c (do_assemble_alias): Follow transparent alias
37437 (default_assemble_visibility): Follow transparent alias
37438 chain for decl name.
37440 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
37442 PR middle-end/62103
37443 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
37444 to compute size of referenced value in the constant case.
37446 2015-02-03 Jakub Jelinek <jakub@redhat.com>
37448 PR rtl-optimization/64756
37449 * cse.c (invalidate_dest): New function.
37450 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
37451 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
37452 invalidate and do not record it.
37454 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
37457 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
37458 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
37459 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
37460 atomic_nand<mode>_soft_tcb): New insns.
37461 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
37462 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
37463 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
37464 Split into atomic_not_fetchsi_hard if operands[0] is unused.
37465 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
37466 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
37467 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
37468 atomic_not<mode>_hard if operands[0] is unused.
37469 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
37470 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
37471 if operands[0] is unused.
37472 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
37473 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
37474 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
37475 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
37477 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
37478 into atomic_not<mode>_soft_tcb if operands[0] is unused.
37479 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
37480 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
37481 if operands[0] is unused.
37482 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
37483 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
37484 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
37485 atomic_nand_fetchsi_hard if operands[0] is unused.
37486 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
37487 atomic_nand<mode>_hard if operands[0] is unused.
37488 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
37489 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
37490 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
37491 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
37492 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
37493 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
37494 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
37495 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
37496 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
37497 atomic_not<mode>_hard if operands[0] is unused.
37498 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
37499 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
37501 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
37502 into atomic_not<mode>_soft_tcb if operands[0] is unused.
37503 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
37504 atomic_nand<mode>_hard if operands[0] is unused.
37505 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
37506 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
37508 2015-02-03 David Malcolm <dmalcolm@redhat.com>
37511 * Makefile.in (GCC_OBJS): Add gcc-main.o.
37512 * gcc-main.c: New file, containing "main" taken from gcc.c.
37513 * gcc.c (do_self_spec): Free decoded_options.
37514 (class driver): Move declaration to gcc.h.
37515 (main): Move declaration and implementation to new file
37517 (driver_get_configure_time_options): New function.
37518 * gcc.h (class driver): Move this declaration here, from
37520 (driver_get_configure_time_options): New declaration.
37522 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
37524 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
37525 cross-module inlining.
37526 * cgraph.h (cgraph_node): Add flag merged.
37527 * ipa-icf.c (sem_function::merge): Maintain it.
37529 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
37531 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
37532 instead of OBJECT_P.
37534 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
37537 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
37538 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
37539 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
37540 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
37542 2015-02-03 Jakub Jelinek <jakub@redhat.com>
37545 * combine.c (reg_n_sets_max): New variable.
37546 (can_change_dest_mode, reg_nonzero_bits_for_combine,
37547 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
37548 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
37549 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
37550 (rest_of_handle_combine): Initialize reg_n_sets_max.
37552 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
37554 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
37555 if some always_inline was inlined, apply changes before inlining
37558 2015-02-02 David Malcolm <dmalcolm@redhat.com>
37561 * config/arm/arm.c (arm_option_override): Set
37562 arm_selected_arch/cpu/tune to NULL on entry.
37564 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
37565 Andrew Pinski <pinskia@gcc.gnu.org>
37566 Jakub Jelinek <jakub@gcc.gnu.org>
37569 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
37570 integer typing for small model. Use IN_RANGE.
37572 2015-02-02 Richard Biener <rguenther@suse.de>
37574 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
37575 * tree-vrp.c (vrp_valueize_1): Likewise.
37577 2015-02-02 Alan Modra <amodra@gmail.com>
37579 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
37580 than mem for toc_restore.
37581 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
37582 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
37583 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
37585 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
37588 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
37589 explicit default options.
37591 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
37594 * ipa-utils.c (ipa_merge_profiles): Add release argument.
37595 * ipa-icf.c (sem_function::merge): Do not release body when merging.
37596 * ipa-utils.h (ipa_merge_profiles): Update prototype.
37598 2015-02-01 Jakub Jelinek <jakub@redhat.com>
37601 * cfgexpand.c (deep_ter_debug_map): New variable.
37602 (avoid_deep_ter_for_debug): New function.
37603 (expand_debug_expr): If TERed SSA_NAME is in
37604 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
37605 instead of trying to expand SSA_NAME's def stmt.
37606 (expand_debug_locations): When expanding debug bind
37607 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
37608 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
37610 (pass_expand::execute): Call avoid_deep_ter_for_debug on
37611 all debug bind stmts. Delete deep_ter_debug_map after
37612 expand_debug_location if non-NULL and clear it.
37614 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
37617 * config/sh/sync.md (atomic_fetch_notsi_hard,
37618 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
37619 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
37620 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
37621 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
37622 atomic_not_fetch<mode>_soft_imask): New insns.
37624 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
37626 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
37627 (rank_for_schedule_debug): Split from ...
37628 (rank_for_schedule): ... this.
37629 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
37630 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
37632 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
37634 * doc/md.texi (Machine Constraints): Alphabetize table by target.
37635 * doc/extend.texi (x86 Variable Attributes): Move section to
37636 correct alphabetization after renaming.
37637 (x86 Type Attributes): Likewise.
37638 (Target Builtins): Re-alphabetize menu.
37639 (x86 Built-in Functions): Move section to correct alphabetization
37641 (x86 transactional memory intrinsics): Likewise.
37642 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
37643 and x86 Windows Options in table and menu.
37644 (x86 Options): Move section to correct alphabetization after
37646 (x86 Windows Options): Likewise.
37648 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
37650 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
37651 preferred names of the architecture and its 32- and 64-bit
37653 * doc/invoke.texi: Likewise.
37654 * doc/md.texi: Likewise.
37656 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
37659 * config/i386/predicates.md (address_no_seg_operand): Reject
37660 non-CONST_INT_P operands in invalid mode.
37662 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
37664 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
37665 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
37666 * config/i386/predicates.md (address_no_seg_operand): Call
37667 address_operand with VOIDmode.
37668 (vsib_address_operand): Ditto.
37669 (address_mpx_no_base_operand): Ditto.
37670 (address_mpx_no_index_operand): Ditto.
37672 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
37675 * lra-constraints.c (original_subreg_reg_mode): New.
37676 (simplify_operand_subreg): Try to simplify subreg of const. Use
37677 original_subreg_reg_mode for it.
37678 (swap_operands): Update original_subreg_reg_mode.
37679 (curr_insn_transform): Set up original_subreg_reg_mode.
37681 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
37684 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
37686 (process_alt_operands): Use it.
37687 (curr_insn_transform): Check the optional reload pseudo class is
37690 2015-01-30 Joseph Myers <joseph@codesourcery.com>
37692 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
37693 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
37695 * toplev.h (init_asm_output): Update comment on use of
37696 UNKNOWN_LOCATION with fatal_error.
37697 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
37698 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
37699 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
37700 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
37701 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
37702 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
37703 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
37704 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
37705 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
37706 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
37707 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
37708 fatal_error changed to pass input_location as first argument.
37710 2015-01-30 Martin Liska <mliska@suse.cz>
37712 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
37713 in #pragma GCC diagnostic guards.
37715 2015-01-30 Richard Biener <rguenther@suse.de>
37717 PR tree-optimization/64829
37718 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
37719 not add a widening conversion pattern but hand off extra
37720 widenings to callers.
37721 (vect_recog_widen_mult_pattern): Handle extra widening produced
37722 by vect_handle_widen_op_by_const.
37723 (vect_recog_widen_shift_pattern): Likewise.
37724 (vect_pattern_recog_1): Remove excess vertical space in dumping.
37725 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
37726 (vect_init_vector_1): Likewise.
37727 (vect_get_vec_def_for_operand): Likewise.
37728 (vect_finish_stmt_generation): Likewise.
37729 (vectorizable_load): Likewise.
37730 (vect_analyze_stmt): Likewise.
37731 (vect_is_simple_use): Likewise.
37733 2015-01-29 Jeff Law <law@redhat.com>
37735 * combine.c (try_combine): Fix typo in comment.
37737 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
37740 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
37741 (rs6000_stack_info): Add assert.
37742 (rs6000_output_savres_externs): New function, split off from...
37743 (rs6000_output_function_prologue): ... here. Do not call it for
37746 2015-01-29 Jeff Law <law@redhat.com>
37749 * combine.c (try_combine): If I0 is a memory load and I3 a store
37750 to a related address, increase the "goodness" of doing a 4-insn
37751 combination with I0-I3.
37752 (make_field_assignment): Handle SUBREGs in the ior+and case.
37754 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
37756 PR tree-optimization/64746
37757 * tree-if-conv.c (mask_exists): New function.
37758 (predicate_mem_writes): Save created mask with given size for further
37760 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
37761 (ifcvt_repair_bool_pattern): Collect all statements that are root
37762 of bool pattern and use iterative algorithm to remove multiple uses
37763 of predicates, display number of required iterations.
37765 2015-01-29 Richard Biener <rguenther@suse.de>
37767 PR tree-optimization/64853
37768 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
37769 stmt will get simulated again.
37770 * tree-ssa-ccp.c (valueize_op_1): Likewise.
37772 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37774 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
37775 return_in_pc. Remove redundant assignments.
37776 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
37777 (arm_expand_epilogue): Don't compare boolean with true in if condition.
37779 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
37781 * config/i386/i386.c (ix86_mode_after): Make static.
37783 2015-01-29 Richard Biener <rguenther@suse.de>
37785 PR tree-optimization/64844
37786 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
37787 dump cost model analysis.
37788 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
37789 Do not register adjusted load/store costs here.
37791 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
37792 Uros Bizjak <ubizjak@gmail.com>
37794 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
37795 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
37796 using x86_use_pseudo_pic_reg.
37797 * config/i386/i386.c (ix86_conditional_register_usage): Remove
37798 support for fixed PIC register.
37799 (ix86_use_pseudo_pic_reg): Not static any more.
37801 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
37803 PR middle-end/64805
37804 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
37805 to avoid error in cgraph node verification.
37807 2015-01-29 Marek Polacek <polacek@redhat.com>
37809 * doc/standards.texi: Reflect that the default for C is gnu11.
37811 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
37814 * reorg.c (switch_text_sections_between_p): New function.
37815 (relax_delay_slots): Call it when testing if the jump insn
37816 is removable. Use targetm.can_follow_jump when testing if
37817 the conditional branch can follow an unconditional jump.
37819 2015-01-27 Caroline Tice <cmtice@google.com>
37821 Committing VTV Cywin/Ming patch for Patrick Wollgast
37822 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
37823 if -fvtable-verify=preinit/std is used.
37824 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
37825 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
37826 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
37827 if -fvtable-verify=preinit/std is used.
37828 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
37829 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
37830 if -fvtable-verify=preinit/std is used.
37831 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
37832 * config/i386/mingw32.h (LIB_SPEC): Likewise.
37833 * varasm.c (assemble_variable): Add code to properly set the comdat
37834 section and name for the .vtable_map_vars section in case the
37835 target is PE or COFF.
37837 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
37840 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
37841 make sane BB profile.
37842 (cgraph_node::expand_thunk): Make sane BB profile.
37843 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
37844 * cgraph.h (init_lowered_empty_function): Update prototype.
37845 * config/i386/i386.c (make_resolver_func): Update call.
37846 * predict.c (gate): Disable branch prediction pass if
37847 profile is already there.
37849 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
37851 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
37852 * opth-gen.awk: Likewise.
37853 * common.opt: Mark flag_fp_contract_mode as Optimization.
37855 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
37857 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
37858 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
37860 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
37863 * config/sh/predicates.md (atomic_arith_operand,
37864 atomic_logical_operand): Remove.
37865 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
37866 (atomic_arith_operand_0): New predicate.
37867 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
37868 Use atomic_arith_operand_0 for input values.
37869 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
37870 atomic_compare_and_swap<mode>_soft_gusa,
37871 atomic_compare_and_swap<mode>_soft_tcb,
37872 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
37873 arith_reg_operand instead of register_operand.
37874 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
37875 atomic_arith_operand_0 for newval input.
37876 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
37877 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
37878 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
37879 arith_reg_operand instead of register_operand.
37880 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
37881 fetchop_predicate_1, fetchop_constraint_1_llcs,
37882 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
37883 fetchop_constraint_1_imask): New code iterator attributes.
37884 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
37885 register_operand. Use fetchop_predicate_1.
37886 (atomic_fetch_<fetchop_name>si_hard,
37887 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
37888 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
37889 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
37890 and arith_reg_operand instead of register_operand. Use
37891 fetchop_predicate_1, fetchop_constraint_1_gusa.
37892 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
37893 and arith_reg_operand instead of register_operand. Use
37894 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
37896 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
37897 and arith_reg_operand instead of register_operand. Use
37898 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
37900 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
37901 register_operand. Use atomic_logical_operand_1.
37902 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
37903 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
37904 arith_reg_operand instead of register_operand.
37905 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
37906 Use arith_reg_dest and arith_reg_operand instead of register_operand.
37907 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
37908 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
37909 register_operand. Use fetchop_predicate_1.
37910 (atomic_<fetchop_name>_fetchsi_hard,
37911 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
37912 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
37913 fetchop_constraint_1_llcs.
37914 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
37915 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
37916 fetchop_constraint_1_gusa.
37917 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
37918 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
37919 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
37920 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
37921 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
37922 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
37923 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
37924 register_operand. Use atomic_logical_operand_1.
37925 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
37926 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
37927 arith_reg_operand instead of register_operand.
37928 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
37929 arith_reg_operand instead of register_operand. Use logical_operand
37930 and K08. Adjust asm sequence to allow R0 usage.
37931 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
37932 arith_reg_operand instead of register_operand. Use logical_operand
37935 2015-01-28 Jakub Jelinek <jakub@redhat.com>
37938 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
37939 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
37940 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
37941 only get_full_len HOST_WIDE_INTs from get_val () array rather than
37942 all bits in *val_wide.
37944 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
37946 * varpool.c (tls_model_names): Fix names.
37947 (varpool_node::dump): Dump tls- prefix for tls models.
37949 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
37950 Bernd Schmidt <bernds@codesourcery.com>
37951 Nathan Sidwell <nathan@codesourcery.com>
37953 * config/nvptx/mkoffload.c: New file.
37954 * config/nvptx/t-nvptx: Add build rules for it.
37955 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
37956 (extra_programs): Add mkoffload.
37957 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
37959 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
37961 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
37963 PR middle-end/64809
37964 * cfgexpand.c (reorder_operands): Skip debug gimples.
37966 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
37968 PR tree-optimization/64277
37969 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
37970 range info when possible to refine estimation.
37972 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
37974 PR tree-optimization/64718
37975 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
37976 be a 16bit unsigned integer when n->range is 16.
37977 (bswap_replace): Convert src to that type if necessary for all bswap
37978 sizes. Fix rotation right notation in nearby comment. Use bswap_type
37979 set in pass_optimize_bswap::execute ().
37981 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
37983 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
37984 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
37985 integer and floating point variants.
37986 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
37988 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
37990 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
37991 for all vector modes.
37993 2015-01-28 Jakub Jelinek <jakub@redhat.com>
37996 * doc/sourcebuild.texi (comdat_group): Document.
37998 2015-01-28 Terry Guo <terry.guo@arm.com>
38000 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
38002 2015-01-27 David Malcolm <dmalcolm@redhat.com>
38004 * toplev.c (print_version): Add param "show_global_state", and
38005 only print GGC and plugin information if it is true.
38006 (init_asm_output): Pass in "true" for the new param when calling
38008 (process_options): Likewise.
38009 (toplev::main): Likewise.
38010 * toplev.h (print_version): Add new param to decl.
38012 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
38016 * tree.c (lookup_binfo_at_offset): New function.
38017 (get_binfo_at_offset): Use it.
38019 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
38022 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
38023 on vtable being vtable.
38025 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
38027 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
38028 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
38029 -mhotpatch= option.
38030 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
38031 -mno-hotpatch options. Change syntax of -mhotpatch= option.
38032 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
38034 (s390_hotpatch_trampoline_halfwords_max): Renamed.
38035 (s390_hotpatch_hw_max): New name.
38036 (s390_hotpatch_trampoline_halfwords): Renamed.
38037 (s390_hotpatch_hw_before_label): New name.
38038 (get_hotpatch_attribute): Removed.
38039 (s390_hotpatch_hw_after_label): New name.
38040 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
38042 (s390_attribute_table): Ditto.
38043 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
38044 (s390_function_num_hotpatch_hw): New name.
38045 Remove special handling of inline functions and hotpatching.
38046 Return number of nops before and after the function label.
38047 (s390_can_inline_p): Removed.
38048 (s390_asm_output_function_label): Emit a configurable number of nops
38049 after the function label.
38050 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
38051 (TARGET_CAN_INLINE_P) Removed.
38052 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
38054 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38055 Jiong Wang <jiong.wang@arm.com>
38057 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
38059 (cb<optab><mode>1): Likewise.
38060 * config/aarch64/iterators.md (bcond): New define_code_attr.
38062 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
38064 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
38067 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
38069 * config/s390/s390.c (s390_register_move_cost): Increase costs for
38072 2015-01-27 Richard Biener <rguenther@suse.de>
38074 * tree-vrp.c (update_value_range): Intersect the range with
38075 old recorded SSA name range information.
38077 2015-01-27 Nick Clifton <nickc@redhat.com>
38079 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
38080 BC, DE and HL registers directly, not via AX.
38081 When decrementing the stack pointer by a large amount, transfer SP
38082 into AX and perform the subtraction there.
38083 (rl78_expand_epilogue): Perform the inverse of the above
38086 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
38088 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
38090 2015-01-27 Jakub Jelinek <jakub@redhat.com>
38091 Yury Gribov <y.gribov@samsung.com>
38094 * ubsan.c (ubsan_source_location): Refactor code.
38095 (ubsan_type_descriptor): Update type size. Refactor code.
38097 2015-01-27 Richard Biener <rguenther@suse.de>
38099 PR tree-optimization/56273
38100 PR tree-optimization/59124
38101 PR tree-optimization/64277
38102 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
38103 from the first VRP pass.
38105 2015-01-27 Jakub Jelinek <jakub@redhat.com>
38108 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
38109 handle the first argument in the same loop as all the other arguments.
38111 PR rtl-optimization/61058
38112 * jump.c (cleanup_barriers): Update basic block boundaries
38113 if BLOCK_FOR_INSN is non-NULL on PREV.
38115 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
38117 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
38118 bounds narrowing, already instrumented calls and calls to
38119 not instrumentable functions.
38121 2015-01-27 Jakub Jelinek <jakub@redhat.com>
38123 PR tree-optimization/64807
38124 * wide-int.cc (wi::divmod_internal): Clear
38125 b_dividend[dividend_blocks_needed].
38127 2015-01-26 DJ Delorie <dj@redhat.com>
38129 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
38130 volatile memory references.
38132 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
38135 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
38137 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
38138 shifts if it already fits into K08.
38140 2015-01-26 Jakub Jelinek <jakub@redhat.com>
38143 * ipa-inline.c (inline_small_functions): Print "unknown" even
38144 if edge->call_stmt is non-NULL, but has builtins or unknown
38147 PR middle-end/64421
38148 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
38149 with asterisk, skip the first character.
38151 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
38154 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
38157 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
38160 * config/i386/i386.md (*movdi_internal): Also check operand 0
38161 to determine TYPE_LEA operand.
38162 (*movsi_internal): Ditto.
38164 2015-01-26 Jakub Jelinek <jakub@redhat.com>
38166 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
38167 OPTION_MASK_QUAD_MEMORY_ATOMIC.
38169 2015-01-26 Renlin Li <renlin.li@arm.com>
38171 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
38173 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
38176 2015-01-26 Richard Biener <rguenther@suse.de>
38178 PR middle-end/64764
38179 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
38180 combining two BIT_AND_EXPR predicates.
38182 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
38185 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
38187 2015-01-26 Terry Guo <terry.guo@arm.com>
38189 * config/arm/arm.c (arm_file_start): Update the assignment of
38190 Tag_ABI_HardFP_use.
38192 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
38194 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
38196 config/arm/arm.md: Include the new Cortex-A57 model.
38197 (generic_sched): Don't use generic_sched when tuning for
38200 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
38201 Uros Bizjak <ubizjak@gmail.com>
38203 * config/i386/i386.c (get_builtin_code_for_version): Add
38204 support for BMI and BMI2 multiversion functions.
38206 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
38208 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
38209 (extract_bit_field): Likewise.
38210 (extract_low_bits): Likewise.
38211 (expand_mult): Likewise.
38212 (expand_mult_highpart_adjust): Likewise.
38214 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
38216 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
38217 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
38218 * config/i386/i386.c (processor_model): Add
38219 M_INTEL_COREI7_BROADWELL.
38220 (arch_names_table): Add "broadwell".
38222 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
38231 * config/sh/sh-protos.h
38232 (sh_extending_set_of_reg::can_use_as_unextended_reg,
38233 sh_extending_set_of_reg::use_as_unextended_reg,
38234 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
38235 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
38236 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
38237 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
38238 (sh_treg_insns): New class.
38239 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
38240 (scope_counter): New class.
38241 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
38242 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
38243 sh_extending_set_of_reg::can_use_as_unextended_reg,
38244 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
38245 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
38246 sh_split_treg_set_expr): New functions.
38247 (addsubcosts): Handle treg_set_expr.
38248 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
38249 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
38250 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
38251 (sh_insn_operands_modified_between_p): Make non-static.
38252 * config/sh/predicates.md (zero_extend_movu_operand): Allow
38253 simple_mem_operand in addition to displacement_mem_operand.
38254 (zero_extend_operand): Don't allow zero_extend_movu_operand.
38255 (treg_set_expr, treg_set_expr_not_const01,
38256 arith_reg_or_treg_set_expr): New predicates.
38257 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
38258 arith_or_int_operand instead of logical_operand. Convert to
38259 insn_and_split. Try to optimize constant operand in splitter.
38260 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
38261 (*tstqi_t_zero): Delete.
38262 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
38263 (tstsi_t_and_not): Delete.
38264 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
38265 Convert to insn_and_split.
38266 (unnamed split, tstsi_t_zero_extract_xor,
38267 tstsi_t_zero_extract_subreg_xor_little,
38268 tstsi_t_zero_extract_subreg_xor_big): Delete.
38269 (*tstsi_t_shift_mask): New insn_and_split.
38270 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
38271 to recombine with surrounding insns when splitting.
38272 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
38273 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
38274 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
38275 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
38276 (*cbranch_div0s: Delete.
38277 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
38278 Try to recombine with surrounding insns when splitting. Add operand
38280 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
38281 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
38282 *addc_r_r_msb, *addc_2r_msb): Delete.
38283 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
38285 (*addc_negreg_t): New insn_and_split.
38286 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
38287 Try to recombine with surrounding insns when splitting.
38288 Add operand order variants.
38289 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
38290 insn_and_split patterns.
38291 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
38292 surrounding insns when splitting.
38293 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
38294 (*rotcl): Likewise. Add zero_extract variant.
38295 (*ashrsi2_31): New insn_and_split.
38296 (*negc): Convert to insn_and_split. Use treg_set_expr.
38297 (*zero_extend<mode>si2_disp_mem): Update comment.
38298 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
38300 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
38301 with surrounding insns when splitting.
38302 (any_treg_expr_to_reg): New insn_and_split.
38303 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
38304 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
38305 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
38306 *zero_extract_2): New single bit zero extract patterns.
38307 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
38308 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
38309 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
38310 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
38312 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
38313 register_operand for set source.
38315 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
38317 * i386.opt (prefetch_sse): New targetsave.
38318 * i386.c (ix86_function_specific_save): Save prefetch_sse.
38319 (ix86_function_specific_restore): Restore prefetch_sse and initialize
38320 ix86_cost/ix86_tune_cost.
38322 2015-01-23 David Malcolm <dmalcolm@redhat.com>
38324 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
38325 Support the JIT by using 0 as the language type.
38327 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
38330 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
38331 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
38332 (mark_regno_live, process_bb_lives): Pass new parameter value to
38333 make_hard_regno_born.
38335 2015-01-23 Jakub Jelinek <jakub@redhat.com>
38337 PR rtl-optimization/63637
38338 PR rtl-optimization/60663
38339 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
38340 if elt->cost is MAX_COST for ASM_OPERANDS.
38341 (find_sets_in_insn): Fix up comment typo.
38342 (cse_insn): Don't set src_volatile for all non-volatile
38343 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
38344 or with "memory" clobber. Set elt->cost to MAX_COST
38345 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
38346 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
38348 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
38350 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
38353 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
38355 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
38356 libgcc/config/i386/elf-lib.h.
38358 2015-01-23 Jakub Jelinek <jakub@redhat.com>
38361 * gcc.c (print_configuration): Don't print a blank line at the end
38363 (run_attempt): ... but here unstead.
38365 PR middle-end/64734
38366 * omp-low.c (scan_sharing_clauses): Don't ignore
38367 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
38368 on target data/update constructs.
38370 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
38373 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
38374 (DEBUG_RELOAD): Removed define.
38375 (m32c_limit_reload_class): Enable traces with if DEBUG0.
38376 (m32c_function_arg): Added a type cast.
38377 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
38378 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
38379 * config/m32c/bitops.md (andqi3_16): Likewise.
38380 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
38381 (push_a01_l): Likewise.
38383 2015-01-23 David Malcolm <dmalcolm@redhat.com>
38386 * main.c (main): Construct toplev instances with init_signals=true.
38387 * toplev.c (general_init): Add param "init_signals", and use it to
38388 conditionalize the calls to signal and host_hooks.extra_signals.
38389 (toplev::toplev): Add param "init_signals".
38390 (toplev::main): When invoking general_init, pass m_init_signals
38391 to control whether signal-handlers are installed.
38392 * toplev.h (toplev::toplev): Add param "init_signals".
38393 (toplev::m_init_signals): New field.
38395 2015-01-23 David Malcolm <dmalcolm@redhat.com>
38398 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
38399 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
38400 latter may be affected by the former (e.g. on i686).
38402 2015-01-23 Martin Liska <mliska@suse.cz>
38404 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
38405 false positive during profiledbootstrap.
38407 2015-01-23 Tom de Vries <tom@codesourcery.com>
38410 * lto-opts.c (lto_write_options): Output non-explicit conservative
38412 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
38413 (append_compiler_options): Pass -fopenacc through.
38415 2015-01-23 Tom de Vries <tom@codesourcery.com>
38418 * lto-opts.c (lto_write_options): Output non-explicit conservative
38420 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
38421 (append_compiler_options): Pass -fopenmp through.
38423 2015-01-23 Jakub Jelinek <jakub@redhat.com>
38426 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
38429 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
38430 * diagnostic.def (DK_ICE_NOBT): New kind.
38431 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
38432 like DK_ICE, but never print backtrace.
38433 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
38434 (internal_error_no_backtrace): New function.
38435 * gcc.c (execute): Use internal_error_no_backtrace instead of
38438 2015-01-22 Jeff Law <law@redhat.com>
38441 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
38442 improve code density for small immediate to memory case.
38443 (insv): Better handle bitfield assignments when the field is
38444 being set to all ones.
38445 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
38448 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
38449 Jakub Jelinek <jakub@redhat.com>
38451 PR middle-end/64729
38452 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
38453 for !TARGET_LIBC_PROVIDES_SSP version and
38454 -fstack-protector-{all,strong,explicit} otherwise.
38455 * config/freebsd.h (LINK_SSP_SPEC): Handle
38456 -fstack-protector-{strong,explicit}.
38458 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
38459 H.J. Lu <hongjiu.lu@intel.com>
38462 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
38465 2015-01-22 Wei Mi <wmi@google.com>
38467 PR rtl-optimization/64557
38468 * dse.c (record_store): Call get_addr for mem_addr.
38469 (check_mem_read_rtx): Likewise.
38471 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
38473 * fold-const.c (const_binop): Add early return for non-tcc_binary.
38475 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
38477 * toplev.c (init_local_tick): Process the failure when read
38478 fails for random_seed.
38480 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
38481 'pretty_name' to avoid memory overflow.
38483 2015-01-22 Richard Biener <rguenther@suse.de>
38485 PR middle-end/64728
38486 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
38487 abnormal coalescing on undefined SSA names.
38489 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
38493 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
38495 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
38497 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
38499 PR middle-end/63325
38500 * fold-const.c (fold_checksum_tree): Don't include value of
38501 expr->decl_with_vis.symtab_node in the checksum.
38503 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
38505 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
38507 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
38510 * gcc.c (insert_comments): New function.
38511 (try_generate_repro): Call it.
38512 (append_text): Removed.
38514 2015-01-22 Richard Biener <rguenther@suse.de>
38516 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
38517 with IL incompatible options. Properly honor user optimize
38520 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
38522 PR rtl-optimization/64682
38523 * combine.c (distribute_notes): When moving a death note for
38524 a register that is set in the new I2, make sure to put it
38525 before that new I2.
38527 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
38529 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
38530 not TARGET_DEFAULT.
38532 2015-01-21 Jakub Jelinek <jakub@redhat.com>
38535 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
38536 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
38537 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
38540 * doc/invoke.texi (-fsanitize=vptr): Document.
38542 PR rtl-optimization/62078
38543 * dse.c: Include cfgcleanup.h.
38544 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
38545 anything call purge_all_dead_edges and cleanup_cfg at the end
38548 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
38550 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
38553 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
38555 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
38558 2015-01-21 David Sherwood <david.sherwood@arm.com>
38559 Tejas Belagod <Tejas.Belagod@arm.com>
38561 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
38562 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
38563 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
38566 2015-01-21 David Sherwood <david.sherwood@arm.com>
38567 Tejas Belagod <Tejas.Belagod@arm.com>
38569 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
38570 (aarch64_reverse_mask): New decls.
38571 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
38572 (insn_count): New mode_attr.
38573 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
38574 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
38575 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
38576 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
38577 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
38578 (aarch64_simd_st4): New patterns.
38579 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
38580 (aarch64_reverse_mask): New functions.
38582 2015-01-21 Alan Hayward <alan.hayward@arm.com>
38584 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
38586 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
38587 addressing modes for BE.
38588 (aarch64_print_operand): Add 'R' specifier.
38589 (aarch64_simd_disambiguate_copy): Delete.
38590 (aarch64_simd_emit_reg_reg_move): New function.
38591 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
38592 in define_splits for structural moves.
38593 (mov<mode>): Use less restrictive predicates.
38594 (*aarch64_mov<mode>): Simplify and only allow for LE.
38595 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
38597 2015-01-21 Alan Hayward <alan.hayward@arm.com>
38599 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
38601 2015-01-21 Richard Henderson <rth@redhat.com>
38604 * ccmp.c (used_in_cond_stmt_p): Remove.
38605 (expand_ccmp_expr): Don't use it.
38607 2015-01-21 Nick Clifton <nickc@redhat.com>
38609 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
38612 2015-01-21 Richard Biener <rguenther@suse.de>
38614 PR middle-end/64313
38615 * tree-core.h (builtin_info, builtin_info_type): Turn from
38616 an object with two arrays into an array of an object with
38617 decl and two flags, implicit_p and declared_p.
38618 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
38619 set_builtin_decl, set_builtin_decl_implicit_p,
38620 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
38621 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
38622 * builtins.c (builtin_info): Adjust.
38623 * gimplify.c (gimplify_addr_expr): References to builtins
38624 that have been declared by the user makes them eligible for
38625 use by the compiler. Call set_builtin_decl_implicit_p on them.
38627 2015-01-20 Jeff Law <law@redhat.com>
38630 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
38631 allow pc-relative addresses in operand predicates or constraints.
38633 2015-01-21 Bin Cheng <bin.cheng@arm.com>
38635 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
38636 neon on aarch32 processors for stringops.
38638 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
38641 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
38643 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
38646 * ipa-inline.c: Include lto-streamer.h
38647 (report_inline_failed_reason): Output source file differences and
38648 flags on optimization/target node mismatch.
38649 (can_inline_edge_p): Consider caller to be the outer inline function;
38650 be less restrictive about matching opimize and optimize_size attributes.
38651 (inline_account_function_p): Break out from ...
38652 (inline_small_functions): ... here.
38653 * ipa-inline-transform.c (clone_inlined_nodes): Use
38654 inline_account_function_p.
38655 (inline_call): Use optimize attribution; use inline_account_function_p.
38656 (inline_transform): Use opt_for_fn.
38657 * ipa-inline.h (inline_account_function_p): Declare.
38659 2015-01-20 Jakub Jelinek <jakub@redhat.com>
38662 * dwarf2out.c (decl_piece_node): Don't put bitsize into
38663 mode if bitsize <= 0.
38664 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
38665 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
38666 sizes and positions.
38668 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
38670 * config/nios2/nios2.c (nios2_asm_file_end): Implement
38671 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
38673 (TARGET_ASM_FILE_END): Define.
38675 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
38677 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
38678 (struct tune_params): Use the enum.
38679 * arm.c (arm_*_tune): Update.
38680 (arm_option_override): Update.
38682 2015-01-20 Richard Biener <rguenther@suse.de>
38685 * ipa-reference.c (add_static_var): Inline ...
38686 (analyze_function): ... here after splitting out from ...
38687 (is_proper_for_analysis): ... this.
38689 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
38692 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
38693 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
38694 replace the conditional with it's true branch.
38695 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
38696 (arm_lra_p): Remove.
38698 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
38700 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
38702 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
38704 * config/tilegx/mul-tables.c: Move symtab.h include after
38705 coretypes.h include.
38706 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
38707 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
38708 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
38709 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
38710 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
38712 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
38716 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
38718 PR rtl-optimization/64081
38719 * loop-iv.c (def_pred_latch_p): New function.
38720 (latch_dominating_def): Allow specific cases with non-single
38722 (iv_get_reaching_def): Likewise.
38723 (check_complex_exit_p): New function.
38724 (check_simple_exit): Use check_complex_exit_p to allow certain cases
38725 with exits not executing on any iteration.
38727 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
38730 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
38731 to set branch cost.
38733 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
38736 * i386.c (gate): Check flag_expensive_optimizations and
38738 (ix86_option_override_internal): Drop optimize_size condition
38739 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
38740 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
38741 MASK_PREFER_AVX128.
38742 (ix86_avx256_split_vector_move_misalign,
38743 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
38744 * sse.md (all uses of TARGET_PREFER_AVX128): Add
38745 optimize_insn_for_speed_p check.
38747 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
38749 * config/mips/mips.h (FP_ASM_SPEC): New define.
38750 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
38753 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
38756 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
38757 nullptr for insn when reaching the first insn.
38758 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
38759 (sh_insn_operands_modified_between_p): Add nullptr check.
38760 (sh_find_extending_set_of_reg): Fix log message. Don't accept
38761 sign extending mem load if the insn contains any UNSPEC or
38764 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
38766 * params.def (inline-unit-growth): Drop to 15%.
38767 * invoke.texi (inline-unit-growth): Document change.
38769 2015-01-19 Martin Liska <mliska@suse.cz>
38772 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
38773 function for second argument of OBJ_TYPE_REF.
38775 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
38778 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
38779 whether function is an alias.
38781 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
38783 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
38786 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
38788 PR rtl-optimization/64671
38789 * lra-remat.c (operand_to_remat): Don't consider jump and call
38792 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
38795 * config/rs6000/default64.h: Include rs6000-cpus.def.
38796 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
38797 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
38798 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
38800 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
38802 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
38803 pseudo-op to specify assembler dialect.
38805 2015-01-19 Martin Liska <mliska@suse.cz>
38808 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
38809 Handle safe potentially removed nodes during filtering.
38811 2015-01-19 Martin Liska <mliska@suse.cz>
38813 * doc/extend.texi (no_icf): Add new attribute description.
38814 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
38815 where the pass attempts to merge a function with no_icf attribute.
38817 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38820 * doc/md.texi (ARM Options): Document register constraints.
38822 2015-01-19 Jiong Wang <jiong.wang@arm.com>
38823 Andrew Pinski <apinski@cavium.com>
38826 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
38827 (ashl<mode>3): Don't expand if operands[2] is not constant.
38829 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38832 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
38833 Match xor-and-xor RTL pattern.
38835 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
38837 PR rtl-optimization/64081
38838 * loop-iv.c (def_pred_latch_p): New function.
38839 (latch_dominating_def): Allow specific cases with non-single
38841 (iv_get_reaching_def): Likewise.
38842 (check_complex_exit_p): New function.
38843 (check_simple_exit): Use check_complex_exit_p to allow certain cases
38844 with exits not executing on any iteration.
38846 2015-01-19 Jakub Jelinek <jakub@redhat.com>
38848 * common.opt (fgraphite): Fix a typo.
38850 2015-01-19 Felix Yang <felix.yang@huawei.com>
38852 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
38854 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
38855 uminp, smax_nanp, smin_nanp): New builtins.
38856 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
38857 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
38858 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
38859 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
38860 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
38861 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
38862 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
38863 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
38864 vpminnms_f32): Rewrite using builtin functions.
38866 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
38869 * omp-low.c (offload_symbol_decl): Remove variable.
38870 (get_offload_symbol_decl): Remove function.
38871 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
38872 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
38873 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
38874 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
38875 BUILT_IN_GOACC_UPDATE don't pass it at all.
38877 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
38879 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
38882 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
38884 * ipa-chkp.c (chkp_produce_thunks): Add early param
38885 to split thunks production into two passes. Keep
38886 'always_inline' function bodies after the first pass.
38887 (pass_data_ipa_chkp_early_produce_thunks): New.
38888 (pass_ipa_chkp_early_produce_thunks): New.
38889 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
38890 chkp_produce_thunks signature.
38891 (make_pass_ipa_chkp_early_produce_thunks): New.
38892 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
38893 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
38894 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
38896 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
38898 * cgraph.c (cgraph_node::dump): Dump profile flags.
38900 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
38903 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
38904 reg appear first in the parallel.
38906 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
38908 * ipa-reference.c (set_reference_optimization_summary,
38909 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
38911 (ignore_module_statics): New static var.
38912 (propagate_bits): If ipa-reference is disabled, do not look into local
38914 (analyze_function): Disable analysis when ipa_reference is disabled.
38915 (generate_summary): Do not dump when reference is disabled;
38916 collect vars accessed from functions with ipa-reference disabled.
38917 (get_read_write_all_from_node): When ipa-reference is disabled, use the
38919 (gate): Enable for LTO.
38920 (ignore_edge_p): New function.
38921 (propagate): Skip functions w/o ipa-reference analysis.
38922 * optc-save-gen.awk: Handle optimize_debug correctly.
38923 * opth-gen.awk: Likewise.
38924 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
38925 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
38926 fira-share-save-slots, fira-share-spill-slots,
38927 fmodulo-sched-allow-regmoves, fpartial-inlining,
38928 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
38929 ftracer, ftree-parallelize-loops, fassociative-math,
38930 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
38932 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
38933 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
38935 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
38938 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
38941 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
38943 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
38945 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
38947 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
38948 Remove duplicate option listings.
38950 2015-01-18 Felix Yang <felix.yang@huawei.com>
38952 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
38953 (autofdo_source_profile::get_callsite_total_count,
38954 function_instance::get_function_instance_by_decl,
38955 string_table::get_index, string_table::get_index_by_decl,
38956 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
38957 Fix comment typos. Reformatting and minor code rearrangement.
38959 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
38961 * config/rs6000/rs6000.md (probe_stack): Delete.
38962 (probe_stack_address): New.
38964 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
38966 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
38967 to test for 32-bit ABIs, not !TARGET_POWERPC64.
38969 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
38971 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
38972 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
38973 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
38975 (rs6000_libcall_value): Use the new function.
38977 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
38979 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
38981 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
38983 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
38984 implement a more precise life analysis for it during backward scan.
38986 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
38988 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
38990 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
38992 PR rtl-optimization/52773
38993 * calls.c (emit_library_call_value): When pushing arguments use
38994 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
38995 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
38996 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
38998 2015-01-17 Jeff Law <law@redhat.com>
39000 PR rtl-optimization/32790
39001 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
39002 not ZERO_EXTEND in SET_DESTs.
39004 2015-01-17 Alan Modra <amodra@gmail.com>
39006 * cprop.c (do_local_cprop): Revert last change.
39008 2015-01-16 DJ Delorie <dj@redhat.com>
39009 Nick Clifton <nickc@redhat.com>
39011 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
39012 (addhi3_real): Likewise. Fix [HL+0] syntax.
39013 (subqi3_real): Likewise.
39014 (subhi3_real): Likewise.
39015 (cbranchqi4_real): Likewise. Allow saddr,#imm.
39016 (cbranchhi4_real): Likewise.
39017 (cbranchhi4_real_inverted): Likewise.
39018 (cbranchsi4_real_lt): Likewise.
39019 (cbranchsi4_real_ge): Likewise.
39020 (cbranchsi4_real_ge): Likewise.
39021 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
39022 (sub<mode>3_virt): Likewise.
39023 (cbranchqi4_virt): Likewise.
39024 (cbranchhi4_virt): Likewise.
39025 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
39026 always use '[reg+imm]' even when imm is zero.
39027 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
39028 (rl78_general_operand): New.
39029 (rl78_nonimmediate_operand): New.
39030 (rl78_nonfar_operand): Use them.
39031 (rl78_nonfar_nonimm_operand): Likewise.
39032 (rl78_stack_based_mem): Fix.
39033 * config/rl78/constraints.md (Ibqi): New.
39038 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
39039 (iorqi3): Likewise.
39040 (xorqi3): Likewise.
39041 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
39043 * config/rl78/constrains (Qs8): New constraint.
39044 * config/rl78/rl78.c (rl78_flags_already_set): New function.
39045 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
39046 * config/rl78/rl78-real.md (update_Z): New attribute.
39047 Update patterns to set it.
39048 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
39049 shorter compare and branch sequence can be used.
39050 (cbranchhi4_real): Likewise.
39051 (cbranchhi4_real_inverted): Likewise.
39053 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
39054 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
39056 * config/rl78/rl78.c (rl78_get_name_encoding): New.
39057 (rl78_option_override): Allow -mes0 only if C.
39058 (characterize_address): Support subregs of symbol_refs.
39059 (rl78_addr_space_address_mode): Move. Add __near.
39060 (rl78_far_p): Likewise.
39061 (rl78_addr_space_pointer_mode): Likewise.
39062 (rl78_as_legitimate_address): Likewise.
39063 (rl78_addr_space_subset_p): Likewise.
39064 (rl78_addr_space_convert): Likewise.
39065 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
39066 symbols with -mes0.
39067 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
39069 (rl78_alloc_physical_registers_op1): Change logic to prefer
39070 symbol[BC] addressing.
39071 (frodata_section): New.
39072 (rl78_asm_init_sections): Initialize it.
39073 (rl78_select_section): Put __far readonly symbols in .frodata.
39074 (rl78_make_type_far): New.
39075 (rl78_insert_attributes): Force all readonly symbols to be
39077 (rl78_asm_out_integer): New.
39078 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
39079 * config/rl78/rl78.opt (-mes0): New.
39081 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
39082 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
39083 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
39084 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
39085 (rl78_saddr_p): New.
39086 (rl78_output_aligned_common): New.
39087 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
39088 (rl78_handle_saddr_attribute): New.
39089 (rl78_handle_naked_attribute): New.
39090 (rl78_attribute_table): Add saddr.
39091 (rl78_print_operand_1): Don't print '!' on saddr operands.
39092 (rl78_print_operand_1): Strip encodings.
39094 (rl78_strip_name_encoding): New.
39095 (rl78_attrlist_to_encoding): New.
39096 (rl78_encode_section_info): New.
39097 (rl78_asm_init_sections): New.
39098 (rl78_select_section): New.
39099 (rl78_output_labelref): New.
39100 (rl78_output_aligned_common): New.
39101 (rl78_asm_out_integer): New.
39102 (rl78_asm_ctor_dtor): New.
39103 (rl78_asm_constructor): New.
39104 (rl78_asm_destructor): New.
39106 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
39107 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
39108 (transcode_memory_rtx): Update.
39109 (rl78_expand_epilogue): Use A_REG instead of 0.
39111 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
39113 * config/arm/arm-protos.h (struct tune_params): New field
39114 sched_autopref_queue_depth.
39115 * config/arm/arm.c (sched-int.h): Include header.
39116 (arm_first_cycle_multipass_dfa_lookahead_guard,)
39117 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
39118 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
39119 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
39120 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
39121 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
39122 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
39123 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
39124 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
39125 * config/arm/t-arm (arm.o): Update.
39126 * haifa-sched.c (update_insn_after_change): Update.
39127 (rank_for_schedule): Use auto-prefetcher model, if requested.
39128 (autopref_multipass_init): New static function.
39129 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
39130 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
39131 variable for debug dumps.
39132 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
39133 (autopref_multipass_dfa_lookahead_guard): New global function that
39134 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
39135 (init_h_i_d): Update.
39136 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
39137 * sched-int.h (enum autopref_multipass_data_status): New const enum.
39138 (autopref_multipass_data_): Structure for auto-prefetcher data.
39139 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
39140 (struct _haifa_insn_data:autopref_multipass_data): New field.
39141 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
39142 (autopref_multipass_dfa_lookahead_guard): Declare.
39144 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
39146 * rtlanal.c (get_base_term): Handle SCRATCH.
39148 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
39150 * config/aarch64/aarch64.c
39151 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
39152 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
39154 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
39155 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
39157 2015-01-17 Alan Modra <amodra@gmail.com>
39159 * cprop.c (do_local_cprop): Disallow replacement of fixed
39162 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39165 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
39168 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
39170 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
39171 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
39173 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39175 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
39176 * config/arm/thumb1.md: ... Here.
39178 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
39180 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
39181 TImode for TARGET_32BIT.
39183 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
39185 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
39186 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
39188 (rs6000_abi_word_mode): New function.
39190 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
39192 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
39193 instead of UNITS_PER_WORD to describe the size of stack slots.
39195 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
39197 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
39198 as rs6000_promote_function_mode. Move comment to there.
39199 (rs6000_promote_function_mode): New function.
39201 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
39203 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
39204 -mpowerpc64 is active.
39206 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
39208 PR middle-end/64353
39209 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
39212 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
39214 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
39215 introduced in revision 219724.
39217 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39218 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
39221 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
39222 destination is not a GP reg.
39223 (*movdi_aarch64): Likewise.
39225 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
39228 * config/rs6000/default64.h: Revert ISA change.
39230 2015-01-16 Richard Biener <rguenther@suse.de>
39232 PR middle-end/64614
39233 * tree-ssa-uninit.c: Include tree-cfg.h.
39234 (MAX_SWITCH_CASES): New define.
39235 (convert_control_dep_chain_into_preds): Handle switch statements.
39236 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
39237 (normalize_one_pred_1): Do not split bit-manipulations.
39240 2015-01-16 Richard Biener <rguenther@suse.de>
39242 PR tree-optimization/64568
39243 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
39244 complex load rewriting for TARGET_MEM_REFs.
39246 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
39248 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
39250 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
39253 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
39255 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
39256 (aarch64_lra_p): Remove.
39258 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
39261 * ipa-chkp.h (chkp_instrumentable_p): New.
39262 * ipa-chkp.c: Include tree-inline.h.
39263 (chkp_instrumentable_p): New.
39264 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
39265 Fix processing of not instrumentable functions.
39266 (chkp_versioning): Use chkp_instrumentable_p. Warn about
39267 not instrumentable functions.
39268 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
39269 chkp_instrumentable_p.
39270 * tree-inline.h (copy_forbidden): New.
39271 * tree-inline.c (copy_forbidden): Not static anymore.
39273 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
39275 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
39278 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
39280 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
39281 type OP_OUT to OP_INOUT.
39283 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
39285 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
39286 (high x) y) to y if x and y have the same base.
39288 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
39290 * config/arm/cortex-a57.md: New.
39291 * config/aarch64/aarch64.md: Include it.
39292 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
39293 * config/aarch64/aarch64-tune.md: Regenerate.
39295 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
39298 * ccmp.c (expand_ccmp_next): New function.
39299 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
39300 and compare insn sequence.
39301 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
39302 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
39303 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
39304 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
39305 (*ccmp_ior): Changed to ccmp_ior<mode>.
39306 (cmp<mode>): New pattern.
39307 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
39309 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
39311 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
39313 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
39314 _mm256_bsrli_epi128): New.
39315 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
39317 2015-01-15 Jiong Wang <jiong.wang@arm.com>
39319 * expmed.c (store_bit_field_using_insv): Improve warning message.
39320 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
39322 2015-01-15 Jiong Wang <jiong.wang@arm.com>
39324 PR rtl-optimization/64011
39325 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
39326 there is partial overflow.
39328 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
39330 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
39332 (nds32_expand_epilogue_v3pop): Likewise.
39333 * config/nds32/nds32.md (sibcall): Define this for sibling call
39335 (sibcall_register): Likewise.
39336 (sibcall_immediate): Likewise.
39337 (sibcall_value): Likewise.
39338 (sibcall_value_register): Likewise.
39339 (sibcall_value_immediate): Likewise.
39340 (sibcall_epilogue): Likewise.
39341 (epilogue): Pass false to indicate this is not a sibcall epilogue.
39342 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
39343 (nds32_expand_epilogue_v3pop): Likewise.
39345 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
39347 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
39348 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
39349 (return_internal): New.
39350 (return): Define this named pattern.
39351 (simple_return): Define this named pattern.
39352 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
39353 pattern instead of unspec_volatile_func_return.
39354 (nds32_expand_epilogue_v3pop): Likewise.
39355 (nds32_can_use_return_insn): New function.
39357 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
39359 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
39360 * config/nds32/nds32.md (pop25return): New.
39361 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
39362 pop25return pattern.
39364 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
39366 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
39367 -mforbid-fp-as-gp, and -mex9 options.
39369 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
39371 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
39372 remove -mgp-direct option.
39374 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
39376 * doc/invoke.texi (--param early-inlining-insns): Update default value.
39377 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
39379 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
39381 * ipa-inline.c (inline_small_functions): Work around hints
39384 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
39387 * doc/invoke.texi (Option Summary): Document new Nios II
39389 (Nios II Options): Likewise.
39390 * config/nios2/nios2.opt: Add -mgpopt= option support.
39391 Modify existing -mgpopt and -mno-gpopt options to be aliases.
39392 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
39393 * config/nios2/nios2.c (nios2_option_override): Adjust
39394 -mgpopt defaulting.
39395 (nios2_in_small_data_p): Return true for explicit small data
39396 sections even with -G0.
39397 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
39400 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
39403 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
39405 (inline_call): Fix removal of aliases.
39407 2015-01-15 Jakub Jelinek <jakub@redhat.com>
39409 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
39410 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
39411 * opts.c (common_handle_option): Add -fsanitize=vptr.
39412 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
39413 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
39414 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
39415 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
39416 (ubsan_expand_vptr_ifn): New prototype.
39417 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
39418 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
39419 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
39420 expand_LOOP_VECTORIZED): Make argument nameless, remove
39422 (expand_UBSAN_VPTR): New function.
39423 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
39425 (UBSAN_VPTR): New internal function.
39426 * sanopt.c (tree_map_traits): Renamed to ...
39427 (sanopt_tree_map_traits): ... this.
39428 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
39429 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
39430 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
39431 (maybe_optimize_ubsan_vptr_ifn): New function.
39432 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
39433 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
39435 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
39436 internal calls like pure functions for aliasing, even when they
39437 have other side-effects that prevent making them ECF_PURE.
39438 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
39439 (ubsan_expand_vptr_ifn): New function.
39441 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
39443 PR rtl-optimization/64110
39444 * stmt.c (parse_output_constraint): Process '^' and '$'.
39445 (parse_input_constraint): Ditto.
39446 * lra-constraints.c (process_alt_operands): Process the new
39448 * ira-costs.c (record_reg_classes): Process the new constraint
39450 * genoutput.c (indep_constraints): Add '^' and '$'.
39451 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
39452 * doc/md.texi: Add description of the new constraints.
39454 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
39455 Bernd Schmidt <bernds@codesourcery.com>
39456 Cesar Philippidis <cesar@codesourcery.com>
39457 James Norris <jnorris@codesourcery.com>
39458 Tom de Vries <tom@codesourcery.com>
39459 Ilmir Usmanov <i.usmanov@samsung.com>
39460 Dmitry Bocharnikov <dmitry.b@samsung.com>
39461 Evgeny Gavrin <e.gavrin@samsung.com>
39462 Jakub Jelinek <jakub@redhat.com>
39464 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
39465 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
39466 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
39467 New function types.
39468 * builtins.c: Include "gomp-constants.h".
39469 (expand_builtin_acc_on_device): New function.
39470 (expand_builtin, is_inexpensive_builtin): Handle
39471 BUILT_IN_ACC_ON_DEVICE.
39472 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
39474 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
39476 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
39477 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
39478 i386/intelmic-offload.h.
39479 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
39480 to libgomp and its dependencies.
39481 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
39482 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
39483 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
39484 * config/ia64/hpux.h (LIB_SPEC): Likewise.
39485 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
39486 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
39487 * doc/generic.texi: Update for OpenACC changes.
39488 * doc/gimple.texi: Likewise.
39489 * doc/invoke.texi: Likewise.
39490 * doc/sourcebuild.texi: Likewise.
39491 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
39492 GF_OMP_FOR_KIND_OACC_LOOP.
39493 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
39494 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
39495 GF_OMP_TARGET_KIND_OACC_UPDATE,
39496 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
39498 * gimple.c: Update comments for OpenACC changes.
39499 * gimple.def: Likewise.
39500 * gimple.h: Likewise.
39501 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
39502 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
39503 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
39504 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
39505 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
39507 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
39508 * gimplify.c: Include "gomp-constants.h".
39509 Update comments for OpenACC changes.
39510 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
39511 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
39512 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
39513 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
39514 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
39515 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
39516 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
39517 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
39518 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
39520 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
39521 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
39522 OMP_CLAUSE_SET_MAP_KIND.
39523 (gimplify_oacc_cache): New function.
39524 (gimplify_omp_for): Handle OACC_LOOP.
39525 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
39527 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
39528 OACC_EXIT_DATA, OACC_UPDATE.
39529 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
39530 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
39531 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
39532 (gimplify_body): Consider flag_openacc next to flag_openmp.
39533 * lto-streamer-out.c: Include "gomp-constants.h".
39534 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
39535 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
39536 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
39537 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
39538 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
39539 (BUILT_IN_ACC_ON_DEVICE): New builtins.
39540 * omp-low.c: Include "gomp-constants.h".
39541 Update comments for OpenACC changes.
39542 (struct omp_context): Add reduction_map, gwv_below, gwv_this
39544 (extract_omp_for_data, use_pointer_for_field, install_var_field)
39545 (new_omp_context, delete_omp_context, scan_sharing_clauses)
39546 (create_omp_child_function, scan_omp_for, scan_omp_target)
39547 (check_omp_nesting_restrictions, lower_reduction_clauses)
39548 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
39549 Update for OpenACC changes.
39550 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
39551 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
39552 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
39553 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
39554 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
39555 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
39557 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
39558 Handle GF_OMP_FOR_KIND_OACC_LOOP.
39559 (expand_omp_target, lower_omp_target): Handle
39560 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
39561 GF_OMP_TARGET_KIND_OACC_UPDATE,
39562 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
39563 GF_OMP_TARGET_KIND_OACC_DATA.
39564 (pass_expand_omp::execute, execute_lower_omp)
39565 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
39567 (offload_symbol_decl): New variable.
39568 (oacc_get_reduction_array_id, oacc_max_threads)
39569 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
39570 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
39571 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
39572 (oacc_gimple_assign, oacc_initialize_reduction_data)
39573 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
39575 (is_targetreg_ctx): Remove function.
39576 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
39577 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
39578 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
39579 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
39580 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
39581 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
39582 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
39583 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
39584 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
39585 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
39586 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
39587 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
39588 * tree-core.h: Update comments for OpenACC changes.
39589 (enum omp_clause_map_kind): Remove.
39590 (struct tree_omp_clause): Change type of map_kind member from enum
39591 omp_clause_map_kind to unsigned char.
39592 * tree-inline.c: Update comments for OpenACC changes.
39593 * tree-nested.c: Likewise. Include "gomp-constants.h".
39594 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
39595 (convert_tramp_reference_stmt, convert_gimple_call): Update for
39596 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
39597 OMP_CLAUSE_SET_MAP_KIND.
39598 * tree-pretty-print.c: Include "gomp-constants.h".
39599 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
39600 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
39601 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
39602 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
39603 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
39604 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
39605 instead of OMP_CLAUSE_MAP_*.
39606 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
39607 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
39608 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
39609 * tree-streamer-in.c: Include "gomp-constants.h".
39610 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
39611 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
39612 * tree-streamer-out.c: Include "gomp-constants.h".
39613 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
39615 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
39616 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
39617 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
39618 * tree.c (omp_clause_num_ops): Update accordingly.
39619 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
39621 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
39622 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
39623 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
39624 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
39625 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
39626 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
39627 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
39628 (OMP_CLAUSE_SET_MAP_KIND): New macro.
39629 * varpool.c (varpool_node::get_create): Consider flag_openacc next
39631 * config/i386/intelmic-offload.h: New file.
39632 * config/nvptx/offload.h: Likewise.
39634 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
39636 * explow.h: Remove duplicate contents.
39637 * dojump.h: Likewise.
39639 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
39641 * arm.c (arm_xgene_tune): Add default initializer for instruction
39644 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
39648 * ipa.c (symbol_table::remove_unreachable_nodes):
39649 Do not put abstract origins into boundary.
39651 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
39653 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
39654 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
39656 2015-01-15 Steve Ellcey <sellcey@mips.com>
39658 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
39659 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
39660 builtins.def, and chkp-builtins.def.
39662 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
39664 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
39667 2015-01-15 Richard Biener <rguenther@suse.de>
39669 PR tree-optimization/61743
39670 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
39671 information on PHIs for some simple cases.
39673 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
39675 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
39677 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
39678 * config/arm/arm-cores.def (xgene1): New entry.
39679 * config/arm/arm-tables.opt: Regenerate.
39680 * config/arm/arm-tune.md: Regenerate.
39681 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
39683 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
39685 * tree-if-conv.c: Include hash-map.h.
39686 (aggressive_if_conv): New variable.
39687 (fold_build_cond_expr): Add simplification of non-zero condition.
39688 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
39689 destination block is not always executed.
39690 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
39691 than two predecessors if AGGRESSIVE_IF_CONV is true.
39692 (if_convertible_stmt_p): Fix commentary.
39693 (all_preds_critical_p): New function.
39694 (has_pred_critical_p): New function.
39695 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
39696 BB can have more than two predecessors and all incoming edges can be
39698 (predicate_bbs): Skip predication for loop exit block, use build2_loc
39699 to compute predicate for true edge.
39700 (find_phi_replacement_condition): Delete this function.
39701 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
39702 Allow interchange PHI arguments if EXTENDED is false.
39703 Change check that block containing reduction statement candidate
39704 is predecessor of phi-block since phi may have more than two arguments.
39705 (phi_args_hash_traits): New helper structure.
39706 (struct phi_args_hash_traits): New type.
39707 (phi_args_hash_traits::hash): New function.
39708 (phi_args_hash_traits::equal_keys): New function.
39709 (gen_phi_arg_condition): New function.
39710 (predicate_scalar_phi): Add handling of phi nodes with more than two
39711 arguments, delete COND and TRUE_BB arguments, insert body of
39712 find_phi_replacement_condition to predicate ordinary phi nodes.
39713 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
39714 delete call of find_phi_replacement_condition and invoke
39715 predicate_scalar_phi with two arguments.
39716 (insert_gimplified_predicates): Add assert that non-predicated block
39717 don't have statements to insert.
39718 (ifcvt_split_critical_edges): New function.
39719 (ifcvt_split_def_stmt): Likewise.
39720 (ifcvt_walk_pattern_tree): Likewise.
39721 (stmt_is_root_of_bool_pattern): Likewise.
39722 (ifcvt_repair_bool_pattern): Likewise.
39723 (ifcvt_local_dce): Likewise.
39724 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
39725 is copy of inner or outer loop force_vectorize field, invoke
39726 ifcvt_split_critical_edges, ifcvt_local_dce and
39727 ifcvt_repair_bool_pattern for aggressive if-conversion.
39729 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
39731 * config/aarch64/aarch64.md: Include xgene1.md.
39732 * config/aarch64/xgene1.md: New file.
39734 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
39736 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
39737 xgene1 (APM XGene-1) core definition.
39738 * config/aarch64/aarch64.c: Add cost tables for APM XGene-1
39739 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
39740 * doc/invoke.texi: Document -mcpu=xgene1.
39742 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
39744 * dojump.h: New header file.
39745 * explow.h: Likewise.
39746 * expr.h: Remove includes.
39747 Move expmed.c prototypes to expmed.h.
39748 Move dojump.c prototypes to dojump.h.
39749 Move alias.c prototypes to alias.h.
39750 Move explow.c prototypes to explow.h.
39751 Move calls.c prototypes to calls.h.
39752 Move emit-rtl.c prototypes to emit-rtl.h.
39753 Move varasm.c prototypes to varasm.h.
39754 Move stmt.c prototypes to stmt.h.
39755 (saved_pending_stack_adjust): Move to dojump.h.
39756 (adjust_address): Move to explow.h.
39757 (adjust_address_nv): Move to emit-rtl.h.
39758 (adjust_bitfield_address): Likewise.
39759 (adjust_bitfield_address_size): Likewise.
39760 (adjust_bitfield_address_nv): Likewise.
39761 (adjust_automodify_address_nv): Likewise.
39762 * explow.c (expr_size): Move to expr.c.
39763 (int_expr_size): Likewise.
39764 (tree_expr_size): Likewise.
39765 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39766 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
39767 * genemit.c (main): Generate includes statistics.h, real.h,
39768 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
39770 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
39771 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
39772 explow.h, emit-rtl.h, stmt.h.
39773 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
39774 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
39775 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
39776 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
39777 emit-rtl.h, varasm.h, stmt.h.
39778 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
39779 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
39780 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
39781 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
39782 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
39783 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
39784 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
39785 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
39786 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
39787 tm.h tree.h varasm.h vec.h wide-int.h.
39788 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
39789 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
39790 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
39791 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
39792 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
39793 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
39794 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
39795 * loop-iv.c: Likewise.
39796 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
39797 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
39798 statistics.h stmt.h tree.h varasm.h wide-int.h.
39799 * lra-constraints.c: Likewise.
39800 * lra-eliminations.c: Likewise.
39801 * lra-lives.c: Likewise.
39802 * lra-remat.c: Likewise.
39803 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
39804 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
39805 statistics.h stmt.h tree.h varasm.h wide-int.h.
39806 * hw-doloop.c: Likewise.
39807 * ira-color.c: Likewise.
39808 * ira-emit.c: Likewise.
39809 * loop-doloop.c: Likewise.
39810 * loop-invariant.c: Likewise.
39811 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
39812 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
39813 statistics.h stmt.h tree.h varasm.h wide-int.h.
39814 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
39815 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
39816 statistics.h stmt.h tree.h varasm.h wide-int.h.
39817 * combine-stack-adj.c: Likewise.
39820 * ifcvt.c: Likewise.
39821 * ira-costs.c: Likewise.
39822 * jump.c: Likewise.
39823 * lra-coalesce.c: Likewise.
39824 * lra-spills.c: Likewise.
39825 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
39826 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
39827 stmt.h varasm.h wide-int.h.
39828 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
39829 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
39831 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
39832 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
39833 statistics.h stmt.h varasm.h wide-int.h.
39834 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
39835 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
39836 varasm.h wide-int.h.
39837 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
39838 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
39839 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
39840 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
39841 statistics.h stmt.h.
39842 * config/tilepro/tilepro.c: Likewise.
39843 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
39844 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
39845 * config/pdp11/pdp11.c: Likewise.
39846 * config/xtensa/xtensa.c: Likewise.
39847 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
39848 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
39850 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39851 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
39852 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
39853 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39854 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
39855 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
39856 * rtl-chkp.c: Likewise.
39857 * tree-chkp-opt.c: Likewise.
39858 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
39859 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
39860 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
39861 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39862 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
39863 statistics.h stmt.h.
39864 * tree-vect-data-refs.c: Likewise.
39865 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
39866 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
39867 rtl.h statistics.h stmt.h varasm.h.
39868 * internal-fn.c: Likewise.
39869 * ipa-icf-gimple.c: Likewise.
39870 * lto-section-out.c: Likewise.
39871 * tree-data-ref.c: Likewise.
39872 * tree-nested.c: Likewise.
39873 * tree-outof-ssa.c: Likewise.
39874 * tree-predcom.c: Likewise.
39875 * tree-pretty-print.c: Likewise.
39876 * tree-scalar-evolution.c: Likewise.
39877 * tree-ssa-strlen.c: Likewise.
39878 * tree-vect-loop.c: Likewise.
39879 * tree-vect-patterns.c: Likewise.
39880 * tree-vect-slp.c: Likewise.
39881 * tree-vect-stmts.c: Likewise.
39882 * tsan.c: Likewise.
39883 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39884 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
39886 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
39887 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
39888 statistics.h stmt.h varasm.h.
39889 * loop-unroll.c: Likewise.
39890 * ubsan.c: Likewise.
39891 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
39892 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
39894 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39895 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
39896 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
39897 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
39898 statistics.h stmt.h.
39899 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
39900 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
39901 statistics.h stmt.h varasm.h.
39902 * gimple-match-head.c: Likewise.
39903 * lto-cgraph.c: Likewise.
39904 * lto-section-in.c: Likewise.
39905 * lto-streamer-in.c: Likewise.
39906 * lto-streamer-out.c: Likewise.
39907 * tree-affine.c: Likewise.
39908 * tree-cfg.c: Likewise.
39909 * tree-cfgcleanup.c: Likewise.
39910 * tree-if-conv.c: Likewise.
39911 * tree-into-ssa.c: Likewise.
39912 * tree-ssa-alias.c: Likewise.
39913 * tree-ssa-copyrename.c: Likewise.
39914 * tree-ssa-dse.c: Likewise.
39915 * tree-ssa-forwprop.c: Likewise.
39916 * tree-ssa-live.c: Likewise.
39917 * tree-ssa-math-opts.c: Likewise.
39918 * tree-ssa-pre.c: Likewise.
39919 * tree-ssa-sccvn.c: Likewise.
39920 * tree-tailcall.c: Likewise.
39921 * tree-vect-generic.c: Likewise.
39922 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39923 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
39924 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39925 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
39926 * varasm.c: Likewise.
39927 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39928 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
39930 * init-regs.c: Likewise.
39932 * omp-low.c: Likewise.
39933 * stack-ptr-mod.c: Likewise.
39934 * tree-ssa-reassoc.c: Likewise.
39935 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39936 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
39938 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39939 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
39940 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39941 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
39942 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39943 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
39944 * tree-ssa-phiopt.c: Likewise.
39945 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39946 fixed-value.h hashtab.h real.h statistics.h stmt.h.
39947 * config/fr30/fr30.c: Likewise.
39948 * config/frv/frv.c: Likewise.
39949 * expr.c: Likewise.
39950 * final.c: Likewise.
39951 * optabs.c: Likewise.
39952 * passes.c: Likewise.
39953 * simplify-rtx.c: Likewise.
39954 * stmt.c: Likewise.
39955 * toplev.c: Likewise.
39956 * var-tracking.c: Likewise.
39957 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39958 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
39959 * lower-subreg.c: Likewise.
39960 * postreload-gcse.c: Likewise.
39962 * reginfo.c: Likewise.
39963 * store-motion.c: Likewise.
39964 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39965 fixed-value.h hashtab.h real.h stmt.h varasm.h.
39966 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39967 fixed-value.h hashtab.h statistics.h stmt.h.
39968 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39969 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
39970 * except.c: Likewise.
39971 * explow.c: Likewise.
39972 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39973 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
39975 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39976 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
39977 * tree-ssa-structalias.c: Likewise.
39978 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39979 fixed-value.h insn-config.h real.h statistics.h.
39980 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39981 fixed-value.h insn-config.h real.h statistics.h stmt.h.
39982 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39983 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
39984 * cfgbuild.c: Likewise.
39985 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39986 fixed-value.h real.h rtl.h statistics.h stmt.h.
39987 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39988 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
39989 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39990 fixed-value.h real.h statistics.h stmt.h.
39991 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39992 fixed-value.h real.h statistics.h stmt.h varasm.h.
39993 * cprop.c: Likewise.
39994 * modulo-sched.c: Likewise.
39995 * postreload.c: Likewise.
39996 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
39997 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
39998 statistics.h stmt.h varasm.h.
39999 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
40000 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
40001 rtl.h statistics.h stmt.h varasm.h.
40002 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
40003 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
40005 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
40006 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
40008 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
40009 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
40011 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
40012 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
40013 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
40014 function.h real.h statistics.h stmt.h varasm.h.
40015 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
40016 insn-config.h real.h statistics.h stmt.h.
40017 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
40018 statistics.h stmt.h.
40019 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
40020 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
40021 statistics.h stmt.h varasm.h.
40022 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
40023 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
40024 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
40025 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
40026 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
40027 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
40028 statistics.h stmt.h varasm.h.
40029 * ipa-polymorphic-call.c: Likewise.
40030 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
40031 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
40032 statistics.h stmt.h.
40033 * config/c6x/c6x.c: Likewise.
40034 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
40035 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
40036 statistics.h stmt.h varasm.h.
40037 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
40038 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
40040 * ipa-split.c: Likewise.
40041 * tree-eh.c: Likewise.
40042 * tree-ssa-dce.c: Likewise.
40043 * tree-ssa-loop-niter.c: Likewise.
40044 * tree-vrp.c: Likewise.
40045 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
40046 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
40048 * config/nds32/nds32-fp-as-gp.c: Likewise.
40049 * config/nds32/nds32-intrinsic.c: Likewise.
40050 * config/nds32/nds32-isr.c: Likewise.
40051 * config/nds32/nds32-md-auxiliary.c: Likewise.
40052 * config/nds32/nds32-memory-manipulation.c: Likewise.
40053 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
40054 * config/nds32/nds32-predicates.c: Likewise.
40055 * config/nds32/nds32.c: Likewise.
40056 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
40057 fixed-value.h hashtab.h real.h statistics.h.
40058 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
40059 fixed-value.h hashtab.h real.h statistics.h stmt.h.
40060 * config/arm/arm.c: Likewise.
40061 * config/avr/avr.c: Likewise.
40062 * config/bfin/bfin.c: Likewise.
40063 * config/h8300/h8300.c: Likewise.
40064 * config/i386/i386.c: Likewise.
40065 * config/ia64/ia64.c: Likewise.
40066 * config/iq2000/iq2000.c: Likewise.
40067 * config/m32c/m32c.c: Likewise.
40068 * config/m32r/m32r.c: Likewise.
40069 * config/m68k/m68k.c: Likewise.
40070 * config/mcore/mcore.c: Likewise.
40071 * config/mep/mep.c: Likewise.
40072 * config/mips/mips.c: Likewise.
40073 * config/mn10300/mn10300.c: Likewise.
40074 * config/moxie/moxie.c: Likewise.
40075 * config/pa/pa.c: Likewise.
40076 * config/rl78/rl78.c: Likewise.
40077 * config/rx/rx.c: Likewise.
40078 * config/s390/s390.c: Likewise.
40079 * config/sh/sh.c: Likewise.
40080 * config/sparc/sparc.c: Likewise.
40081 * config/spu/spu.c: Likewise.
40082 * config/stormy16/stormy16.c: Likewise.
40083 * config/v850/v850.c: Likewise.
40084 * config/vax/vax.c: Likewise.
40085 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
40086 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
40087 * config/msp430/msp430.c: Likewise.
40088 * predict.c: Likewise.
40089 * value-prof.c: Likewise.
40090 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
40091 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
40092 * config/microblaze/microblaze.c: Likewise.
40093 * config/nios2/nios2.c: Likewise.
40094 * config/rs6000/rs6000.c: Likewise.
40095 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
40096 insn-config.h real.h rtl.h statistics.h stmt.h.
40097 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
40098 insn-config.h real.h statistics.h stmt.h.
40099 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
40100 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
40101 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
40102 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
40103 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
40104 fixed-value.h real.h statistics.h stmt.h.
40105 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
40106 fixed-value.h statistics.h stmt.h.
40107 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
40110 2015-01-15 Jakub Jelinek <jakub@redhat.com>
40112 * gengtype.c (create_user_defined_type): Workaround
40113 -Wmaybe-uninitialized false positives.
40114 * cse.c (fold_rtx): Likewise.
40115 * loop-invariant.c (gain_for_invariant): Likewise.
40117 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
40119 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
40120 set the memory attributes in all cases but clear MEM_EXPR if need be.
40122 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
40124 PR tree-optimization/64434
40125 * cfgexpand.c (reorder_operands): New function.
40126 (expand_gimple_basic_block): Insert call of reorder_operands if
40129 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
40131 * config/mips/micromips.md (*swp): Remove explicit parallel.
40132 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
40133 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
40134 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
40135 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
40136 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
40137 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
40138 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
40139 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
40140 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
40141 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
40142 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
40143 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
40144 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
40145 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
40146 (mips_wrdsp): Likewise.
40147 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
40149 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
40150 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
40151 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
40152 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
40153 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
40154 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
40155 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
40156 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
40157 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
40159 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
40161 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
40162 (mips_print_operand): Support 'y' to print exact log2 in decimal
40164 * config/mips/mips.h (ISA_HAS_LSA): New define.
40165 (ISA_HAS_DLSA): Likewise.
40166 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
40167 * config/mips/predicates.md (const_immlsa_operand): New predicate.
40169 2015-01-15 Martin Liska <mliska@suse.cz>
40172 * optc-save-gen.awk: Add support for array types.
40174 2015-01-15 Richard Biener <rguenther@suse.de>
40176 PR middle-end/64365
40177 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
40178 for MEM_REF access functions with the same base can never partially
40181 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
40183 * common.opt: New option -fstack-protector-explicit.
40184 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
40185 (stack_protect_decl_phase): Handle stack_protect attribute for
40186 explicit stack protection requests.
40187 (expand_used_vars): Similarly.
40188 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
40189 * doc/extend.texi: Add documentation for "stack_protect" attribute.
40190 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
40192 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
40195 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
40197 (sh_extending_set_of_reg): New struct.
40198 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
40199 sh_remove_reg_dead_or_unused_notes): New Declarations.
40200 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
40201 sh_find_extending_set_of_reg, sh_split_tst_subregs,
40202 sh_extending_set_of_reg::use_as_extended_reg): New functions.
40203 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
40204 convert to insn_and_split and use new function sh_split_tst_subregs.
40206 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
40208 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
40210 (Optimization Options): Move -fuse-ld documentation to...
40211 (Link Options): ...here.
40213 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
40215 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
40217 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
40218 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
40219 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
40220 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
40221 instead of ZR for the memory operand of LL/SC.
40222 (compare_and_swap_12, sync_add<mode>): Likewise.
40223 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
40224 (sync_new_<optab>_12, sync_nand_12): Likewise.
40225 (sync_old_nand_12, sync_new_nand_12): Likewise.
40226 (sync_sub<mode>, sync_old_add<mode>): Likewise.
40227 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
40228 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
40229 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
40230 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
40231 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
40232 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
40233 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
40234 * doc/md.texi (ZC): Update description.
40236 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
40238 * builtins.c (expand_builtin_atomic_exchange): Remove error when
40239 memory model is CONSUME.
40240 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
40241 expand_builtin_atomic_store): Change invalid memory model errors to
40243 (expand_builtin_atomic_clear): Change invalid model errors to warnings
40244 and issue warning for CONSUME.
40246 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
40248 * lto-cgraph: Update function comments for
40249 lto_symtab_encoder_encode_*.
40251 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
40253 * Makefile.in (site.exp): Do not set ENABLE_LTO.
40255 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
40257 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
40258 * lto-cgraph.c (select_what_to_stream): Remove argument, use
40259 lto_stream_offload_p instead.
40260 * lto-streamer.h (select_what_to_stream): Remove argument.
40261 * passes.c (ipa_write_summaries): Likewise.
40262 * tree-pass.h (ipa_write_summaries): Likewise.
40264 2015-01-14 Richard Biener <rguenther@suse.de>
40266 PR tree-optimization/59354
40267 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
40268 groups larger than the slp group size as having gaps.
40270 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
40272 PR middle-end/59448
40273 * builtins.c (get_memmodel): Promote consume to acquire always.
40275 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
40278 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
40281 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
40284 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
40286 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
40287 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
40288 AVX512VBMI, as it implies AVX512BW.
40290 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
40293 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
40294 (vec_unpacks_hi_v16sf): Ditto.
40296 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40298 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
40301 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40303 * doc/invoke.texi (mapcs): Mention deprecation.
40304 (mapcs-frame): Likewise.
40306 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
40309 * config/arm/arm.c (callee_saved_reg_p): Define.
40310 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
40311 register is callee saved instead of !call_used_regs[reg].
40312 (thumb1_compute_save_reg_mask): Likewise.
40314 2015-01-14 Hale Wang <hale.wang@arm.com>
40316 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
40319 2015-01-14 Richard Biener <rguenther@suse.de>
40322 * tree-inline.c (insert_debug_decl_map): Check destination
40323 function MAY_HAVE_DEBUG_STMTS.
40324 (insert_init_debug_bind): Likewise.
40325 (insert_init_stmt): Remove redundant check.
40326 (remap_gimple_stmt): Drop debug stmts if the destination
40327 function has var-tracking assignments disabled.
40329 2015-01-14 Martin Liska <mliska@suse.cz>
40331 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
40332 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
40334 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40337 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
40338 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
40340 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
40342 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
40343 level from an ARCH; do not inject the default.
40344 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
40345 MIPS_ISA_LEVEL_SPEC.
40346 (MIPS_ISA_NAN2008_SPEC): Update comment.
40347 (BASE_DRIVER_SELF_SPECS): Likewise.
40348 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
40349 MIPS_DEFAULT_ISA_LEVEL_SPEC.
40350 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
40351 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
40352 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
40354 2015-01-14 Richard Biener <rguenther@suse.de>
40356 PR tree-optimization/64493
40357 PR tree-optimization/64495
40358 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
40359 assign the proper vectorized PHI to the inner loop exit PHIs.
40361 2015-01-14 Joey Ye <joey.ye@arm.com>
40363 * config/arm/arm.c (arm_compute_save_reg_mask):
40364 Do not save lr in case of tail call.
40365 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
40367 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
40369 * tree-vrp.c (check_array_ref): Emit more warnings
40370 for warn_array_bounds >= 2.
40371 * common.opt: New option -Warray-bounds=.
40372 * doc/invoke.texi: Document -Warray-bounds=.
40374 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
40376 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
40377 (mforbid-fp-as-gp): Remove.
40379 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
40380 (nds32_symbol_load_store_p): Remove.
40381 (nds32_fp_as_gp_check_available): Clean up implementation.
40382 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
40384 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
40385 fp-as-gp and ex9 cases.
40387 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
40389 * tree-profile.c (init_ic_make_global_vars): Drop workaround
40390 for bintuils bug 14342.
40391 (init_ic_make_global_vars): Likewise.
40392 (gimple_init_edge_profiler): Likewise.
40393 (gimple_gen_ic_func_profiler): Likewise.
40395 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
40397 * ipa-inline.c (inline_small_functions): Swap the operands in
40400 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
40403 * ipa-inline-analysis.c (node_growth_cache): Remove.
40404 (initialize_growth_caches): Do not initialize it.
40405 (free_growth_caches): Do not free it.
40406 (do_estimate_growth): Rename to ...
40407 (estimate_growth): ... this one; drop growth cache code.
40408 (growth_likely_positive): Always go the heuristics way.
40409 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
40410 (reset_edge_caches): Do not reset node growth.
40411 (heap_edge_removal_hook): Do not maintain cache.
40412 (inline_small_functions): Likewise; strenghten sanity check.
40413 (ipa_inline): Do not maintain caches.
40414 * ipa-inline.h (node_growth_cache): Remove.
40415 (do_estimate_growth): Remove to ...
40416 (estimate_growth): this one; remove inline version.
40417 (reset_node_growth_cache): Remove.
40419 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
40422 * ipa-inline.c (inline_small_functions): Update callee keys after
40423 resolving speculation
40424 (inline_small_functions): Always check monotonicity of the queue.
40426 2015-01-13 Marek Polacek <polacek@redhat.com>
40428 PR middle-end/64391
40429 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
40431 2015-01-13 Jakub Jelinek <jakub@redhat.com>
40433 PR rtl-optimization/64286
40434 * ree.c (combine_reaching_defs): Move part of comment earlier,
40435 remove !SCALAR_INT_MODE_P check.
40436 (add_removable_extension): Don't add vector mode
40437 extensions if all uses of the source register aren't the same
40440 2015-01-13 Renlin Li <renlin.li@arm.com>
40442 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
40443 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
40445 2015-01-13 Martin Liska <mliska@suse.cz>
40447 * ipa-icf.c (sem_function::equals_private): Call new functions
40448 cl_target_option_print_diff and cl_optimization_print_diff.
40449 * optc-save-gen.awk (cl_target_option_print_diff): New function.
40450 (cl_optimization_print_diff): Likewise.
40451 * opth-gen.awk: Likewise.
40453 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
40455 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
40456 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
40457 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
40458 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
40459 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
40460 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
40462 2015-01-13 Andrew Pinski <apinski@cavium.com>
40464 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
40465 instead of src mode.
40467 2015-01-13 Richard Biener <rguenther@suse.de>
40470 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
40473 2015-01-13 Andrew Pinski <apinski@cavium.com>
40475 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
40477 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
40479 2015-01-13 Jakub Jelinek <jakub@redhat.com>
40481 PR middle-end/63974
40482 * cfgexpand.c (expand_computed_goto): Don't call
40483 convert_memory_address here.
40485 2015-01-13 Richard Biener <rguenther@suse.de>
40487 PR tree-optimization/64406
40488 * tree-loop-distibution.c (pass_loop_distribution::execute):
40489 Reset the SCEV hashtable if we distributed anything.
40491 2015-01-13 Richard Biener <rguenther@suse.de>
40493 PR tree-optimization/64404
40494 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
40495 SLP types for CSEd loads.
40497 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
40499 PR tree-optimization/64436
40500 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
40501 merge of two symbolic numbers for a bitwise OR to ...
40502 (perform_symbolic_merge): This. Also fix computation of the range and
40503 end of the symbolic number corresponding to the result of a bitwise OR.
40505 2015-01-13 Richard Biener <rguenther@suse.de>
40507 PR tree-optimization/64568
40508 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
40509 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
40511 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
40513 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
40514 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
40516 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
40518 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
40519 target-specific symbol_ref flag.
40520 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
40521 resides in rodata section.
40522 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
40523 (nds32_encode_section_info): New function.
40525 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
40527 * config/nds32/nds32.md (call): Use pseudo instruction bal which
40528 clobbers TA_REGNUM if large code model is specified.
40529 (call_register): Likewise.
40530 (call_immediate): Likewise.
40531 (call_value): Likewise.
40532 (call_value_register): Likewise.
40533 (call_value_immediate): Likewise.
40535 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
40537 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
40538 (TARGET_CMODEL_MEDIUM): New macro.
40539 (TARGET_CMODEL_LARGE): New macro.
40540 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
40541 code model setting in assembly code.
40543 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
40545 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
40546 Remove MASK_GP_DIRECT flag.
40547 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
40548 one of the multilib default options.
40549 * config/nds32/nds32.opt (mgp-direct): Remove.
40550 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
40551 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
40553 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
40555 * config/nds32/nds32.opt (mcmodel): Add new option.
40556 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
40557 to describe code model.
40559 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
40562 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
40564 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
40566 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
40567 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
40568 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
40569 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
40570 __builtin_sh_set_fpscr.
40572 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
40574 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
40575 after a funtion name just to indicate it is a function.
40576 ([-fsanitize-undefined-trap-on-error]): Likewise.
40577 ([-fdbg-cnt=]): Likewise.
40578 ([-mmemcpy]): Likewise.
40579 ([-mflush-func]): Likewise.
40580 ([-msynci]): Likewise.
40582 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
40584 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
40587 2015-01-12 Jakub Jelinek <jakub@redhat.com>
40589 PR tree-optimization/64563
40590 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
40591 instead of != VR_VARYING.
40594 * config/i386/i386.c (ix86_expand_prologue): Add
40595 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
40597 PR tree-optimization/64454
40598 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
40599 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
40600 for signed or [0, op1 - 1] for unsigned modulo.
40601 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
40602 even if op1 does not satisfy integer_pow2p.
40605 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
40607 2015-01-12 Jeff Law <law@redhat.com>
40610 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
40611 (trunchiqi2, truncsihi2): Similarly.
40613 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
40614 rather than calling F.
40616 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
40618 * tsan.c (instrument_expr): Use force_gimple_operand.
40619 Use may_be_nonaddressable_p instead of is_gimple_addressable.
40621 2015-01-12 Richard Biener <rguenther@suse.de>
40623 PR tree-optimization/64530
40624 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
40627 2015-01-12 Richard Biener <rguenther@suse.de>
40629 PR middle-end/64357
40630 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
40633 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40635 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
40636 Cortex-A17 tuning parameters.
40637 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
40639 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40641 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
40642 * config/arm/arm.c (arm_macro_fusion_p): New function.
40643 (arm_macro_fusion_pair_p): Likewise.
40644 (TARGET_SCHED_MACRO_FUSION_P): Define.
40645 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
40646 (ARM_FUSE_NOTHING): Likewise.
40647 (ARM_FUSE_MOVW_MOVT): Likewise.
40648 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
40649 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
40650 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
40651 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
40652 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
40653 arm_cortex_a5_tune): Specify fuseable_ops value.
40655 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
40658 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
40659 test for PIE with copy reloc.
40660 * configure: Regenerated.
40662 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40664 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
40666 (arm_tls_descseq_addr): Likewise.
40667 (arm_gen_movmemqi): Likewise.
40668 (arm_expand_epilogue_apcs_frame): Likewise.
40669 (arm_expand_epilogue): Likewise.
40670 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
40673 2015-01-12 Martin Liska <mliska@suse.cz>
40676 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
40677 volatility for correct operands.
40679 2015-01-12 Martin Liska <mliska@suse.cz>
40681 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
40682 indication that a function is not leaf.
40683 (sem_function::compare_polymorphic_p): Likewise.
40685 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
40687 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
40688 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
40689 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
40690 fold-const.h, tree-check.h.
40692 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
40696 * ipa-inline.c (compute_uninlined_call_time,
40697 compute_inlined_call_time): Use counts for extra precision when
40699 (big_speedup_p): Fix formating.
40700 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
40701 (relative_time_benefit): Remove.
40702 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
40703 merge guessed and read profile paths.
40704 (inline_small_functions): Count only !optimize_size functions into
40705 initial size; be more lax about sanity check when profile is used;
40706 be sure to update inlined function profile when profile is read.
40708 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
40711 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
40712 cost when edge becomes direct.
40713 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
40714 is resolved or when introducing new speculation.
40716 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
40720 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
40721 '||' to fix typo issue.
40723 * tree.h (target_opts_for_fn): Check NULL_TREE since it can
40724 accept and return NULL.
40726 2015-01-12 Martin Liska <mliska@suse.cz>
40728 * cgraph.c (cgraph_edge::remove_callee): Move function to header
40729 file for being inlined.
40730 (cgraph_set_edge_callee): Delete.
40731 (cgraph_edge::redirect_callee): Move function to header file
40733 (cgraph_edge::make_direct): Use new function.
40734 (cgraph_edge::dump_edge_flags): New function created from
40735 static dump_edge_flags function.
40736 (cgraph_node::dump): Use new function.
40737 (cgraph_edge::verify_count_and_frequency): New function created
40738 from verify_edge_count_and_frequency.
40739 (cgraph_edge::verify_corresponds_to_fndecl): New function created
40740 from verify_edge_corresponds_to_fndecl.
40741 (verify_edge_corresponds_to_fndecl): Delete.
40742 (cgraph_node::verify_node): Use new function.
40743 * cgraph.h (cgraph_edge::set_callee): New function.
40744 (cgraph_edge::dump_edge_flags): Likewise.
40745 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
40747 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
40749 * ipa-utils.c (estimate_function_body_sizes): Do not
40750 free node params when called late with early=true.
40752 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
40754 * doc/md.texi (Instruction Patterns): Rewrite text for
40756 (Example): Likewise.
40758 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
40760 * doc/invoke.texi (Option Summary): Break long lines.
40761 [(-fdiagnostics-color)]: Put long literal in @smallexample
40763 [(-fsanitize-recover)]: Likewise.
40764 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
40765 [(-ffast-math)]: Likewise.
40766 [(--param max-inline-insns-recursive)]: Likewise.
40767 [(--param max-inline-recursive-depth)]: Likewise.
40768 [(-mno-text-section-literals)]: Likewise.
40770 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
40772 * doc/install.texi: Update for libgomp being renamed from "GNU
40773 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
40775 * doc/sourcebuild.texi: Likewise.
40777 2015-01-10 Anthony Green <green@moxielogic.com>
40779 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
40780 mul.x availability for moxiebox configuration.
40782 2015-01-09 Anthony Green <green@moxielogic.com>
40784 * config/moxie/moxie.md: Tabify assembly output.
40786 2015-01-09 Anthony Green <green@moxielogic.com>
40788 * config/moxie/moxie.md (CC_REG): Correct register definition.
40790 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
40792 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
40793 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
40796 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
40798 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
40800 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
40801 Jakub Jelinek <jakub@redhat.com>
40803 PR middle-end/64412
40804 * lto-streamer.h (lto_stream_offload_p): New declaration.
40805 * lto-streamer.c (lto_stream_offload_p): New variable.
40806 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
40807 at the same time as section_name_prefix.
40808 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
40809 if lto_stream_offload_p.
40810 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
40811 stream TREE_TARGET_OPTION if lto_stream_offload_p.
40812 (write_ts_function_decl_tree_pointers): Don't
40813 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
40814 * tree-streamer-in.c (unpack_value_fields): Don't stream
40815 TREE_TARGET_OPTION in if ACCEL_COMPILER.
40816 (lto_input_ts_function_decl_tree_pointers): Don't stream
40817 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
40818 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
40819 instead of section_name_prefix string comparisons.
40821 2015-01-09 Jakub Jelinek <jakub@redhat.com>
40823 PR rtl-optimization/64536
40824 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
40827 2015-01-09 Michael Collison <michael.collison@linaro.org>
40829 PR tree-optimization/64322
40830 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
40831 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
40833 2015-01-09 Tom de Vries <tom@codesourcery.com>
40835 PR rtl-optimization/64539
40836 * regcprop.c (kill_clobbered_values): Factor out of ...
40837 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
40838 instead of note_stores with kill_clobbered_value.
40840 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
40842 * ginclude/unwind-arm-common.h: Revert previous commit.
40844 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
40846 * config.gcc (arm*-*-freebsd*): New configuration.
40847 * config/arm/freebsd.h: New file.
40848 * config.host: Add extra components for arm*-*-freebsd*.
40849 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
40850 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
40852 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
40854 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
40856 * config/rs6000/t-rtems: Add e6500 multilibs.
40858 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
40860 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
40863 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
40865 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
40866 MULTILIB_EXCEPTIONS.
40868 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
40870 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
40871 MULTILIB_EXCEPTIONS.
40873 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
40875 * config/arm/t-rtems-eabi: Rename to...
40876 * config/arm/t-rtems: ...this.
40877 * config/arm/rtems-eabi.h: Rename to...
40878 * config/arm/rtems.h: ...this.
40879 * config.gcc (arm*-*-rtems*): Reflect changes above.
40881 2015-01-09 Richard Biener <rguenther@suse.de>
40883 PR tree-optimization/64410
40884 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
40886 (execute_update_addresses_taken): Deal with that.
40887 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
40888 loads/stores for complex variables.
40890 2015-01-09 Martin Liska <mliska@suse.cz>
40892 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
40894 (func_checker::compare_memory_operand): New function.
40895 (func_checker::compare_operand): Split case to newly
40897 (func_checker::compare_cst_or_decl): New function.
40898 (func_checker::compare_gimple_call): Identify
40900 (func_checker::compare_gimple_assign): Likewise.
40901 * ipa-icf-gimple.h: New function.
40903 2015-01-09 Martin Liska <mliska@suse.cz>
40906 * sreal.c (sreal::dump): Change unsigned format to signed for
40908 (sreal::to_double): Replace exp2 with scalbln.
40910 2015-01-09 Martin Liska <mliska@suse.cz>
40912 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
40913 * ipa-icf.c (sem_function::equals_private): Add support for target and
40914 (sem_item_optimizer::merge_classes): Remove redundant function
40915 optimization flags comparison.
40916 * tree.h (target_opts_for_fn): New function.
40918 2015-01-09 Tom de Vries <tom@codesourcery.com>
40920 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
40922 2015-01-09 Kito Cheng <kito@0xlab.org>
40924 PR rtl-optimization/64348
40925 * lra-constraints.c (split_reg): Fix caller-save store/restore
40926 instruction generation.
40928 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
40930 PR gcov-profile/61790
40931 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
40932 long long. Fallback to int64_t if host doesn't have long long and
40933 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
40935 2015-01-08 Jakub Jelinek <jakub@redhat.com>
40937 PR tree-optimization/63989
40938 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
40939 from 1000 to 10000.
40940 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
40941 (get_stridx): If we don't have a record for certain SSA_NAME,
40942 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
40943 constant offset, call get_stridx_plus_constant.
40944 (get_stridx_plus_constant): New function.
40945 (zero_length_string): Don't use get_stridx here.
40948 PR middle-end/64388
40949 * dse.c (struct insn_info): Mention frame_read set also
40950 before reload for tail calls on some targets.
40951 (scan_insn): Revert 2014-12-22 change. Set frame_read
40952 also before reload for tail calls if
40953 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
40954 instead of add_non_frame_wild_read for non-const/memset
40955 tail calls after reload.
40957 2015-01-08 Jason Merrill <jason@redhat.com>
40959 * ubsan.c (do_ubsan_in_current_function): New.
40960 (pass_ubsan::gate): Use it.
40961 * ubsan.h: Declare it.
40962 * convert.c (convert_to_integer): Use it.
40964 2015-01-08 Jakub Jelinek <jakub@redhat.com>
40967 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
40968 compare_code when it is unconditionally overwritten afterwards.
40969 Use ix86_reverse_condition instead of reverse_condition. Don't
40970 change code if *reverse_condition* returned UNKNOWN and don't
40971 swap ct/cf and negate diff in that case.
40973 2015-01-08 Mike Stump <mikestump@comcast.net>
40975 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
40976 (pass_tsan_O0::gate): Likewise.
40977 * extend.texi (Function Attributes): Add no_sanitize_thread
40980 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
40982 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
40983 for registering builtins.
40984 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
40985 add -fopenmp to the argv_obstack used when invoking
40986 compile_for_target.
40988 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
40989 add "-m32" or "-m64" to argv_obstack.
40990 (generate_host_descr_file): Likewise, when invoking host_compiler.
40991 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
40994 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
40996 * config/sh/sh-mem.cc: Use constant as second operand when emitting
40999 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
41002 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
41003 constant load if constant operand fits into I08.
41005 2015-01-08 Jakub Jelinek <jakub@redhat.com>
41008 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
41009 and TREE_THIS_VOLATILE for MEM_REFs.
41010 (build5_stat): Fix up initialization of TREE_READONLY and
41011 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
41013 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
41016 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
41017 of r for the second alternative of the destination operand.
41019 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
41022 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
41024 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
41026 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
41028 ([-fivar-visibility], [-fvisibility]): Likewise.
41030 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
41032 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
41033 the file where @code, @command, etc is more appropriate.
41035 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
41037 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
41038 of -mrecip= documentation.
41040 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
41043 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
41044 correct reload handler if -m32 -mpowerpc64 is used.
41046 2015-01-06 Tom de Vries <tom@codesourcery.com>
41048 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
41050 2015-01-08 Christian Bruel <christian.bruel@st.com>
41053 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
41055 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
41057 PR tree-optimization/63259
41058 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
41059 if optab exists for 16bit byteswap.
41061 2015-01-06 Jakub Jelinek <jakub@redhat.com>
41063 * opts.c (common_handle_option): Add support for
41064 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
41065 * doc/invoke.texi: Document -fno-sanitize=all,
41066 -f{,no-}sanitize-recover=all. Document that
41067 -fsanitize=float-cast-overflow is not enabled
41068 by -fsanitize=undefined. Fix up documentation
41069 of -f{,no-}sanitize-recover.
41071 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
41073 * config.gcc: Add Visium support.
41074 * configure.ac: Likewise.
41075 * configure: Regenerate.
41076 * doc/extend.texi (interrupt attribute): Add Visium.
41077 * doc/invoke.texi: Document Visium options.
41078 * doc/install.texi: Document Visium target.
41079 * doc/md.texi: Document Visium constraints.
41080 * common/config/visium: New directory.
41081 * config/visium: Likewise.
41083 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
41085 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
41086 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
41088 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
41090 * combine.c (combine_validate_cost): Do not count the cost of a
41091 split I2 twice. Do not display it twice in the dump, either.
41093 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
41095 Revert parts of r219199.
41096 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
41098 ([-Wtraditional]): Restore markup on <limits.h>.
41100 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
41103 * doc/invoke.texi: Document -Wsuggest-override.
41105 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
41107 PR rtl-optimization/64287
41108 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
41109 (process_options): Disable flag_ipa_ra if profiling.
41111 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
41113 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
41115 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
41117 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
41118 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
41119 put under #if TARGET_LOOPS guard.
41121 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
41123 * config/i386/i386.c (output_387_binary_op): Use std::swap.
41125 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
41127 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
41128 * rtl.h (refers_to_regno_p): Add overload.
41130 * bt-load.c: Likewise.
41131 * combine.c: Likewise.
41132 * df-scan.c: Likewise.
41133 * sched-deps.c: Likewise.
41134 * config/s390/s390.c: Likewise.
41135 * config/m32r/m32r.c: Likewise.
41136 * config/rs6000/spe.md: Likewise.
41137 * config/rs6000/rs6000.c: Likewise.
41138 * config/pa/pa.c: Likewise.
41139 * config/stormy16/stormy16.c: Likewise.
41140 * config/cris/cris.c: Likewise.
41141 * config/arc/arc.md: Likewise.
41142 * config/arc/arc.c: Likewise.
41143 * config/sh/sh.md: Likewise.
41144 * config/sh/sh.c: Likewise.
41145 * config/frv/frv.c: Likewise.
41147 2015-01-05 Jakub Jelinek <jakub@redhat.com>
41150 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
41151 call as cleanup of the whole body.
41152 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
41153 * tsan.c (replace_func_exit): New function.
41154 (instrument_func_exit): Moved earlier.
41155 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
41156 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
41158 (tsan_pass): Don't call instrument_func_exit.
41159 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
41160 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
41164 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
41165 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
41166 it to libubsan handler instead of EXPR. Fold comparisons earlier,
41167 if the result is integer_zerop, return NULL_TREE.
41168 * convert.c (convert_to_integer): Pass expr as ARG.
41170 PR tree-optimization/64465
41171 * tree-inline.c (redirect_all_calls): During inlining
41172 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
41173 changed the stmt to a non-throwing call.
41175 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
41177 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
41178 etc markup throughout the file.
41180 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
41182 Enable experimental TSAN support for Ada.
41183 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
41185 2015-01-05 Jakub Jelinek <jakub@redhat.com>
41187 PR tree-optimization/64494
41188 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
41189 clear SSA_NAME_ANTI_RANGE_P flag.
41191 2015-01-05 Marek Polacek <polacek@redhat.com>
41193 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
41195 2015-01-05 Jakub Jelinek <jakub@redhat.com>
41197 Update copyright years.
41199 * gcc.c (process_command): Update copyright notice dates.
41200 * gcov-dump.c: Ditto.
41202 * doc/cpp.texi: Bump @copying's copyright year.
41203 * doc/cppinternals.texi: Ditto.
41204 * doc/gcc.texi: Ditto.
41205 * doc/gccint.texi: Ditto.
41206 * doc/gcov.texi: Ditto.
41207 * doc/install.texi: Ditto.
41208 * doc/invoke.texi: Ditto.
41210 * auto-profile.c, auto-profile.h: Fix up Copyright line.
41212 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
41214 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
41216 ([-fvtable-verify], [-fvtv-debug]): Likewise.
41217 ([-Wabi]): Likewise.
41218 ([-fmessage-length]): Likewise.
41219 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
41220 ([-Wno-discarded-qualifiers]): Likewise.
41221 ([-Wnodiscarded-array-qualifiers]): Likewise.
41222 ([-Wno-virtual-move-assign]): Likewise.
41223 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
41224 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
41225 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
41226 ([-fsanitize-undefined-trap-on-error]): Likewise.
41227 ([-floop-interchange]): Likewise.
41228 ([-ftree-coalesce-inlined-vars]): Likewise.
41229 ([-fvect-cost-model]): Likewise.
41230 ([-flto]): Likewise.
41231 ([--param]): Likewise.
41232 (Spec Files): Likewise.
41233 ([-mstrict-align]): Likewise.
41234 ([-mfix-cortex-a53-835769]): Likewise.
41235 ([-march], [-mtune]): Likewise.
41236 ([-mpic-register]): Likewise.
41237 ([-munaligned-access]): Likewise.
41238 ([-msp8]): Likewise.
41239 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
41240 (AVR Built-in Macros): Likewise.
41241 ([-mpreferred-stack-boundary]): Likewise.
41242 ([-mtune-crtl]): Likewise.
41243 ([-mashf]): Likewise.
41244 ([-mmcu=]): Likewise.
41245 ([-minrt]): Likewise.
41246 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
41247 ([-mupper-regs]): Likewise.
41248 ([-matomic-model]): Likewise.
41249 ([-mdiv]): Likewise.
41250 ([-mzdcbranch]): Likewise.
41251 ([-mdisable-callt]): Likewise.
41252 ([-msoft-float]): Likewise.
41253 ([-m8byte-align]): Likewise.
41254 ([-fstack-reuse]): Likewise.
41256 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
41258 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
41259 Fix markup, light copy-editing.
41260 ([-fauto-profile]): Rewrite to fix formatting and content
41263 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
41265 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
41266 Copy-edit description.
41267 ([-fisolate-erroneous-paths-attribute]): Likewise.
41268 * common.opt (fisolate-erroneous-paths-dereference):
41269 Copy-edit description.
41270 (fisolate-erroneous-paths-attribute): Likewise.
41272 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
41274 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
41277 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
41279 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
41280 ([-fvtv-debug]): Likewise.
41281 ([-Wc++-compat]): Likewise.
41282 ([-Wc++11-compat]): Likewise.
41283 ([-Wc++14-compat]): Likewise.
41284 ([-Wno-sized-deallocation]): Likewise.
41285 ([-femit-class-debug-always]): Likewise.
41286 ([-femit-struct-debug-detailed]): Likewise.
41287 ([-fno-keep-inline-dllexport]): Likewise.
41288 ([-fira-algorithm]): Likewise.
41289 ([-fira-region]): Likewise.
41290 ([-flra-remat]): Likewise.
41291 ([-fipa-ra]): Likewise.
41292 ([-fhoist-adjacent-loads]): Likewise.
41293 ([-fisolate-erroneous-paths-dereference]): Likewise.
41294 ([-fisolate-erroneous-paths-attribute]): Likewise.
41295 ([-ftree-switch-conversion]): Likewise.
41296 ([-ftree-tail-merge]): Likewise.
41297 ([-ftree-loop-if-convert]): Likewise.
41298 ([-ftree-loop-if-convert-stores]): Likewise.
41299 ([-ftree-loop-distribution]): Likewise.
41300 ([-ftree-loop-distribute-patterns]): Likewise.
41301 ([-flto-compression-level]): Likewise.
41302 ([-flto-report]): Likewise.
41303 ([-flto-report-wpa]): Likewise.
41304 ([-fuse-linker-plugin]): Likewise.
41305 ([-mfix-cortex-a53-835769]): Likewise.
41306 ([-mno-fix-cortex-a53-835769]): Likewise.
41307 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
41308 explicit listing; add a note to the discussion indicating they
41309 exist. Reorder table to group similar options. Add missing
41310 @opindex entries. Add @need commands throughout the table to
41311 allow it to be split across multiple pages.
41312 ([-m8bit-idiv]): Fix @opindex.
41313 ([-mavx256-split-unaligned-load]): Likewise.
41314 ([-mavx256-split-unaligned-store]): Likewise.
41315 ([-mstack-protector-guard]): Likewise.
41316 ([-mcpu=]): Likewise.
41317 ([-mcpu]): Likewise.
41318 ([-mpointer-size=]): Likewise.
41320 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
41322 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
41323 instead of `m' constraint. Likewise for unnamed movb comparison
41324 patterns using reg_before_reload_operand predicate.
41325 * config/pa/predicates.md (reg_before_reload_operand): Tighten
41326 predicate to reject register index and LO_SUM DLT memory forms
41329 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
41331 * doc/invoke.texi (Option Summary): Fix spelling of
41332 -fdevirtualize-at-ltrans.
41333 ([-fdevirtualize]): Fix markup.
41334 ([-fdevirtualize-speculatively]): Fix typo.
41335 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
41336 implementor-speaky.
41337 * common.opt (fdevirtualize-at-ltrans): Likewise.
41338 * ipa-devirt.c: Fix typos in comments throughout the file.
41339 (ipa_devirt): Fix typos in format strings for dump output.
41341 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
41343 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
41344 discussion of defaults, light copy-editing.
41346 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
41348 * tsan.c (instrument_expr): corrected previous checkin.
41350 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
41352 Instrument bit field and unaligned accesses for TSAN.
41353 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
41354 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
41355 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
41356 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
41357 unaligned memory regions.
41359 2015-01-01 Anthony Green <green@moxielogic.com>
41361 * config/moxie/predicates.md (moxie_general_movsrc_operand):
41362 Restrict move source register offsets to 16 bits.
41364 Copyright (C) 2015 Free Software Foundation, Inc.
41366 Copying and distribution of this file, with or without modification,
41367 are permitted in any medium without royalty provided the copyright
41368 notice and this notice are preserved.