1 2015-12-01 Richard Biener <rguenther@suse.de>
4 * ipa-split.c (split_function): Handle main part not returning.
6 2015-12-01 Ilya Enkovich <enkovich.gnu@gmail.com>
9 * tree-vect-stmts.c (vect_init_vector): Cast boolean
10 scalars to a proper value before building a vector.
12 2015-12-01 Richard Sandiford <richard.sandiford@arm.com>
14 * genattrtab.c (check_attr_test): Take an attr_desc instead of
15 an is_const flag. Put the file_location argument first.
16 Update recursive calls. Improve error messages.
17 (check_attr_value): Take a file location and use it instead
18 of attr->loc. Improve error messages. Update calls to
20 (check_defs): Update call to check_attr_value.
21 (make_canonical): Likewise.
24 (gen_insn_reserv): Update call to check_attr_test.
26 2015-12-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Fix typo.
30 2015-12-01 Richard Biener <rguenther@suse.de>
33 * match.pd: Merge (eq @0 @0) and (ge/le @0 @0) patterns.
35 2015-12-01 Jan Hubicka <hubicka@ucw.cz>
37 * ipa-devirt.c (type_with_linkage_p, type_in_anonymous_namespace_p,
38 odr_type_p): Move to ...
39 * ipa-utils.h (type_with_linkage_p, type_in_anonymous_namespace_p,
40 odr_type_p): here; miscro-optimize.
42 2015-12-01 Bin Cheng <bin.cheng@arm.com>
44 PR tree-optimization/68529
45 * tree-ssa-loop-niter.c (number_of_iterations_ne): Add new param.
46 Compute no-overflow information for control iv.
47 (number_of_iterations_lt, number_of_iterations_le): Add new param.
48 (number_of_iterations_cond): Pass new argument to above functions.
50 2015-11-30 Jan Hubicka <hubicka@ucw.cz>
52 * ipa-inline-transform.c (inline_call): Drop -fstrict-aliasing when
53 inlining -fno-strict-aliasing into -fstrict-aliasing body.
55 2015-11-30 Aditya Kumar <aditya.k7@samsung.com>
56 Sebastian Pop <s.pop@samsung.com>
58 PR tree-optimization/68565
59 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Early return on
60 codegen_error. Fail when rhs of division operations is integer_zerop.
61 (ternary_op_to_tree): Early return on codegen_error.
62 (unary_op_to_tree): Same.
63 (nary_op_to_tree): Same.
64 (gcc_expression_from_isl_expr_op): Same.
65 (gcc_expression_from_isl_expression): Same.
66 (graphite_create_new_loop): On codegen_error continue generating
68 (graphite_create_new_loop_guard): Same.
69 (build_iv_mapping): Same.
70 (graphite_create_new_guard): Same.
72 2015-11-30 Aditya Kumar <aditya.k7@samsung.com>
73 Sebastian Pop <s.pop@samsung.com>
75 * graphite-isl-ast-to-gimple.c: Fix dump messages.
76 * graphite-scop-detection.c: Same.
77 * graphite-sese-to-poly.c (isl_id_for_ssa_name): Do not call get_name.
79 2015-11-30 Cesar Philippidis <cesar@codesourcery.com>
81 * tree-nested.c (convert_nonlocal_omp_clauses): Add support for
82 OMP_CLAUSE_{NUM_GANGS,NUM_VECTORS,VECTOR_LENGTH,SEQ}.
83 (convert_local_omp_clauses): Likewise.
85 2015-11-30 Tom de Vries <tom@codesourcery.com>
87 PR tree-optimization/46032
88 * tree-ssa-structalias.c (find_func_aliases_for_call_arg): New function,
90 (find_func_aliases_for_call): ... here.
91 (find_func_aliases_for_builtin_call, find_func_clobbers): Handle
92 BUILT_IN_GOMP_PARALLEL.
93 (ipa_pta_execute): Same. Handle node->parallelized_function as a local
96 2015-11-30 Jakub Jelinek <jakub@redhat.com>
98 PR tree-optimization/68501
99 * target.def (builtin_reciprocal): Replace the 3 arguments with
100 a gcall * one, adjust description.
101 * targhooks.h (default_builtin_reciprocal): Replace the 3 arguments
103 * targhooks.c (default_builtin_reciprocal): Likewise.
104 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Use
105 targetm.builtin_reciprocal even on internal functions, adjust
106 the arguments and allow replacing an internal function with normal
108 * config/i386/i386.c (ix86_builtin_reciprocal): Replace the 3 arguments
109 with a gcall * one. Handle internal fns too.
110 * config/rs6000/rs6000.c (rs6000_builtin_reciprocal): Likewise.
111 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
112 * doc/tm.texi (builtin_reciprocal): Document.
114 2015-11-30 Richard Biener <rguenther@suse.de>
116 PR tree-optimization/68592
117 * tree-vect-loop.c (vect_analyze_loop_2): Reset SLP type also
118 on the pattern def sequence.
120 2015-11-30 Nathan Sidwell <nathan@acm.org>
122 * config/nvptx/nvptx.c (nvptx_name_replacement): Move earlier.
123 (write_one_arg): Reorder parms, add 'sep' param.
124 (nvptx_write_function_decl): Rename to ...
125 (write_fn_proto): ... here. Do name replacement. Emit linaer
126 comment marker. Deal with both decls and defns. Simplify argument
128 (write_function_decl_and_comment): Delete.
129 (write_func_decl_from_insn): Rename to ...
130 (write_fn_proto_from_insn): ... here. Don't do name replacement.
131 (nvptx_record_fndecl): Call write_fn_proto.
132 (nvptx_record_libfunc): Call write_fn_proto_from_insn.
133 (nvptx_declare_function_name): Adjust for write_fn_proto changes.
134 (nvotx_output_call_insn): Call write_fn_prot_from_insn.
136 2015-11-30 Kirill Yukhin <kirill.yukhin@intel.com>
138 * config/i386/i386.md (define_mode_iterator SWI1248_AVX512BW): New.
139 (define_insn "*k<logic><mode>"): Use new iterator.
141 2015-11-30 Eric Botcazou <ebotcazou@adacore.com>
144 * config/sparc/sparc.c (supersparc_adjust_cost): Fix thinko.
145 (sparc_adjust_cost): Add missing space.
147 2015-11-30 Richard Biener <rguenther@suse.de>
150 * dwarf2out.c (gen_type_die_with_usage): Keep variant types
153 2015-11-30 Venkataramanan Kumar <Venkataramanan.Kumar@amd.com>
155 * tree-if-conv.c (struct ifc_dr): Add new tree
156 base_predicate field.
157 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Hash
158 base ref, DR pairs and store base_predicate for write type DRs.
159 (ifcvt_memrefs_wont_trap): Guard checks with
160 -ftree-loop-if-convert-stores flag.
162 2015-11-29 Jan Hubicka <hubicka@ucw.cz>
164 * cgraph.c (cgraph_node::make_local): No name is unique during
166 * cgraph.h (can_be_discarded_p): Update comment; also common and
167 WEAK in named sections can be discarded; when doing incremental
168 link do not rely on resolution being the final one.
169 * varasm.c (default_binds_local_p_3, decl_binds_to_current_def_p):
170 When symbol can be discarded, do not rely on resolution info.
171 * symtab.c (symtab_node::nonzero_address): Take into account that
172 symbol can be discarded.
173 * ipa-visibility.c (update_visibility_by_resolution_info): Handle
174 definition correctly.
175 (function_and_variable_visibility): Do not set unique_name when
176 incrementally linking.
178 2015-11-29 Nathan Sidwell <nathan@acm.org>
180 * config/nvptx/nvptx.md (const_0_operand, global_mem_operand,
181 const_mem_operand, param_mem_operand, shared_mem_operand): Delete.
182 (ctrap<mode>): Use const0_operand.
184 2015-11-29 Jan Hubicka <hubicka@ucw.cz>
186 * ipa-devirt.c (add_type_duplicate): Remove redundant ODR violation
189 2015-11-29 David Edelsohn <dje.gcc@gmail.com>
192 * config/rs6000/rs6000.c (rs6000_adjust_cost): Correct
193 recog_memoized test for insn and check recog_memoized for dep_insn.
195 2015-11-28 Nathan Sidwell <nathan@acm.org>
197 * config/nvptx/nvptx.h (FIRST_PARM_OFFSET): Add void cast.
198 (FRAME_POINTER_CFA_OFFSET): Define.
199 (struct nvptx_args): Use 'tree' type.
200 (INIT_CUMULATIVE_ARGS): Remove unnecessary do...while.
202 2015-11-28 Tom de Vries <tom@codesourcery.com>
204 * lto-wrapper.c (run_gcc): Handle -flinker-output argument.
206 2015-11-27 Jonathan Wakely <jwakely@redhat.com>
208 * doc/invoke.texi (Option Summary): Use negative form of
209 -Waggressive-loop-optimizations, remove redundant -Wpedantic-ms-format,
210 sort alphabetically and re-justify.
212 2015-11-27 Vladimir Makarov <vmakarov@redhat.com>
214 PR rtl-optimization/68536
215 * lra.c (lra_emit_add): Add code for null base.
216 * lra-constraints.c (curr_insn_transform): Skip operators for
219 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
222 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
224 * ifcvt.c (insn_valid_noce_process_p): Reject insn if it satisfies
226 (noce_try_cmove_arith): Add checking asserts that orig_a and orig_b
227 are not modified by the final modified insns in the basic blocks.
229 2015-11-27 Nathan Sidwell <nathan@acm.org>
231 * config/nvptx/nvptx-protos.h (nvptx_addr_space_from_address):
233 * config/nvptx/nvptx.c (nvptx_addr_space_from_sym): New.
234 (nvptx_maybe_convert_symbolic_operand): Simplify.
235 (nvptx_addr_space_from_address): Delete.
236 (nvptx_print_operand): Adjust 'A' case.
238 2015-11-27 Richard Biener <rguenther@suse.de>
240 PR tree-optimization/68559
241 * tree-vect-data-refs.c (vect_analyze_group_access_1): Move
242 peeling for gap checks ...
243 * tree-vect-stmts.c (vectorizable_load): ... here and relax
245 * tree-vect-loop.c (vect_analyze_loop_2): Re-set
246 LOOP_VINFO_PEELING_FOR_GAPS before re-trying without SLP.
248 2015-11-27 Nathan Sidwell <nathan@acm.org>
250 * config/nvptx/nvptx-protos.h (nvptx_record_needed_decl): Don't
252 * config/nvptx/nvptx.c (write_func_decl_from_insn): Move earlier.
253 (nvptx_record_fndecl): Don't return value, remove force
254 argument. Require fndecl.
255 (nvptx_record_libfunc): New.
256 (nvptx_record_needed_decl): Deteermine how to record decl here.
257 (nvptx_maybe_record_fnsym): New.
258 (nvptx_expand_call): Don't record libfuncs here,
259 (nvptx_maybe_convert_symbolic_operand): Use
260 nvptx_maye_record_fnsym.
261 (nvptx_assemble_integer): Reimplement with single switch.
262 (nvptx_output_call_insn): Register libfuncs here.
263 (nvptx_file_end): Adjust nvptx_record_fndecl call.
264 * config/nvptx/nvptx.md (expand_movdi): Don't call
265 nvptx_record_needed_decl.
267 2015-11-27 Richard Biener <rguenther@suse.de>
269 PR tree-optimization/68553
270 * tree-vect-slp.c (vect_create_mask_and_perm): Skip VEC_PERM_EXPR
271 generation for 1:1 permutations.
272 (vect_transform_slp_perm_load): Detect 1:1 permutations.
274 2015-11-27 Bernd Schmidt <bschmidt@redhat.com>
276 * gimple.h (nonbarrier_call_p): Declare.
277 * gimple.c (nonbarrier_call_p): New function.
278 * tree-ssa-phiopt.c (nontrapping_dom_walker::before_dom_children):
279 Also increment call phase for ASMs with vdef and potential barrier
282 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
284 * ifcvt.c (insn_valid_noce_process_p): Reject insn if it satisfies
286 (noce_try_cmove_arith): Add checking asserts that orig_a and orig_b
287 are not modified by the final modified insns in the basic blocks.
289 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
291 PR rtl-optimization/68506
292 * ifcvt.c (noce_try_cmove_arith): Try emitting the else basic block
293 first if emit_a exists or then_bb modifies 'b'. Reindent if-else
296 2015-11-27 Martin Liska <mliska@suse.cz>
299 * vec.h (release_vec_vec): New function.
301 2015-11-27 Jakub Jelinek <jakub@redhat.com>
303 PR tree-optimization/68552
304 * optabs.c (expand_vec_perm_1): Move vec_shr handling from here...
305 (expand_vec_perm): ... here. Do it regardless of vec_perm_const_optab
308 2015-11-27 Martin Liska <mliska@suse.cz>
310 * tree-ssa-uninit.c: Fix whitespaces in the source file.
311 The change is just automatical.
313 2015-11-27 Martin Liska <mliska@suse.cz>
315 * tree-chkp.c (chkp_make_static_bounds): Release buffer
318 2015-11-27 Martin Liska <mliska@suse.cz>
320 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
321 Do not release memory for comp_alias_ddrs.
322 * tree-vect-loop.c (destroy_loop_vec_info): Release
323 the memory for all loop_vec_info.
325 2015-11-27 Martin Liska <mliska@suse.cz>
327 * ipa-devirt.c (ipa_devirt): Use auto_vec instead
328 of a local-scope vec.
329 (struct final_warning_record): Use auto_vec instead
332 2015-11-27 Richard Biener <rguenther@suse.de>
334 PR tree-optimization/68553
335 * tree-vect-slp.c (vect_get_mask_element): Remove.
336 (vect_transform_slp_perm_load): Implement in a simpler way.
338 2015-11-26 Alexandre Oliva <aoliva@redhat.com>
340 PR rtl-optimization/67753
341 PR rtl-optimization/64164
342 * function.c (assign_parm_setup_block): Right-shift
343 upward-padded big-endian args when bypassing the stack slot.
345 2015-11-26 Maciej W. Rozycki <macro@imgtec.com>
347 * doc/invoke.texi (Option Summary) <MIPS Options>: Reorder
348 `-mcompact-branches='.
349 (MIPS Options): Likewise.
351 2015-11-26 Jakub Jelinek <jakub@redhat.com>
353 * Makefile.in (build/genmatch.o): Depend on internal-fn.def.
355 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
357 * doc/install.texi (Prerequisites): Increase ISL requirement to
360 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
362 * config/aarch64/arm_neon.h
363 (vqrdmlah_laneq_s16, vqrdmlah_laneq_s32): New.
364 (vqrdmlahq_laneq_s16, vqrdmlahq_laneq_s32): New.
365 (vqrdmlsh_lane_s16, vqrdmlsh_lane_s32): New.
366 (vqrdmlshq_laneq_s16, vqrdmlshq_laneq_s32): New.
367 (vqrdmlah_lane_s16, vqrdmlah_lane_s32): New.
368 (vqrdmlahq_lane_s16, vqrdmlahq_lane_s32): New.
369 (vqrdmlahh_s16, vqrdmlahh_lane_s16, vqrdmlahh_laneq_s16): New.
370 (vqrdmlahs_s32, vqrdmlahs_lane_s32, vqrdmlahs_laneq_s32): New.
371 (vqrdmlsh_lane_s16, vqrdmlsh_lane_s32): New.
372 (vqrdmlshq_lane_s16, vqrdmlshq_lane_s32): New.
373 (vqrdmlshh_s16, vqrdmlshh_lane_s16, vqrdmlshh_laneq_s16): New.
374 (vqrdmlshs_s32, vqrdmlshs_lane_s32, vqrdmlshs_laneq_s32): New.
376 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
378 * config/aarch64/arm_neon.h (vqrdmlah_s16, vqrdmlah_s32): New.
379 (vqrdmlahq_s16, vqrdmlahq_s32): New.
380 (vqrdmlsh_s16, vqrdmlsh_s32): New.
381 (vqrdmlshq_s16, vqrdmlshq_s32): New.
383 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
385 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Add
388 2015-11-26 Pierre-Marie de Rodat <derodat@adacore.com>
391 * tree-nested.c (finalize_nesting_tree_1): Append a field to
392 hold the frame base address.
393 * dwarf2out.c (gen_subprogram_die): Generate for
394 DW_AT_static_link a location description that computes the value
397 2015-11-26 Tom de Vries <tom@codesourcery.com>
400 2015-11-25 Tom de Vries <tom@codesourcery.com>
402 * cfgloop.c (find_single_latch): New function, factored out of ...
403 (flow_loops_find): ... here.
404 (verify_loop_structure): Improve verification of loop->latch.
405 * cfgloop.h (find_single_latch): Declare.
406 * omp-low.c (expand_omp_for_generic): Initialize latch of orig_loop.
408 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
410 * config/aarch64/aarch64-simd-builtins.def:
411 Add missing changes from r230962.
413 2015-11-26 Nathan Sidwell <nathan@acm.org>
415 * config/nvptx/nvptx.c (write_func_decl_from_insn): Replace callee
416 arg with name. Don't deal with split regs. Tweak formatting.
417 (nvptx_expand_call): Adjust write_func_decl_from_insn call.
418 (nvptx_output_call_insn): Don't deal with split regs here.
420 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
422 * config/aarch64/aarch64-simd-builtins.def
423 (sqrdmlah, sqrdmlsh): New.
424 (sqrdmlah_lane, sqrdmlsh_lane): New.
425 (sqrdmlah_laneq, sqrdmlsh_laneq): New.
427 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
429 * config/aarch64/aarch64-simd.md
430 (aarch64_sqmovun<mode>): Fix some white-space.
431 (aarch64_<sur>qmovun<mode>): Likewise.
432 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h<mode>): New.
433 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): New.
434 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): New.
435 * config/aarch64/iterators.md (UNSPEC_SQRDMLAH): New.
436 (UNSPEC_SQRDMLSH): New.
440 2015-11-26 Richard Biener <rguenther@suse.de>
442 PR tree-optimization/66721
443 * tree-vect-loop.c (vect_analyze_loop_2): Compute scalar
444 iteration cost earlier. Re-do analysis without SLP when
445 vectorization using SLP fails and without has a chance to succeed.
447 2015-11-26 Richard Biener <rguenther@suse.de>
449 * genmatch.c (dt_simplify::gen_1): For generic wrap all
450 multi-result-use captures in a SAVE_EXPR.
452 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
454 * config/aarch64/aarch64.h (AARCH64_ISA_RDMA): New.
455 (TARGET_SIMD_RDMA): New.
457 2015-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
459 * combine.c (subst): Do not return clobber of zero in widening mult
460 case. Just return x unchanged if it is a no-op substitution.
462 2015-11-26 Vladimir Makarov <vmakarov@redhat.com>
465 * config/i386/i386.h (enum reg_class): Add
466 bounds registers to ALL_REGS.
468 2015-11-26 Jakub Jelinek <jakub@redhat.com>
470 PR tree-optimization/68128
471 * tree.h (OMP_CLAUSE_SHARED_READONLY): Define.
472 * gimplify.c: Include gimple-walk.h.
473 (enum gimplify_omp_var_data): Add GOVD_WRITTEN.
474 (omp_notice_variable): Set flags to n->value if n already
475 exists in target region, but we need to jump to do_outer.
476 (omp_shared_to_firstprivate_optimizable_decl_p,
477 omp_mark_stores, omp_find_stores_op, omp_find_stores_stmt): New
479 (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_SHARED_READONLY
480 on OMP_CLAUSE_SHARED if it is a scalar non-addressable that is
481 not modified in the body. Call omp_mark_stores for outer
482 contexts on OMP_CLAUSE_SHARED clauses if they could be written
483 in the body or on OMP_CLAUSE_LASTPRIVATE.
484 (gimplify_adjust_omp_clauses): Add body argument, call
485 omp_find_stores_{stmt,op} on the body through walk_gimple_seq.
486 Set OMP_CLAUSE_SHARED_READONLY
487 on OMP_CLAUSE_SHARED if it is a scalar non-addressable that is
488 not modified in the body. Call omp_mark_stores for outer
489 contexts on OMP_CLAUSE_SHARED clauses if they could be written
490 in the body or on OMP_CLAUSE_LASTPRIVATE or on OMP_CLAUSE_LINEAR
491 without OMP_CLAUSE_LINEAR_NO_COPYOUT or on OMP_CLAUSE_REDUCTION.
492 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task,
493 gimplify_omp_for, gimplify_omp_workshare, gimplify_omp_target_update,
494 gimplify_expr): Adjust gimplify_adjust_omp_clauses callers.
495 * tree-nested.c (convert_nonlocal_omp_clauses,
496 convert_local_omp_clauses): Clear OMP_CLAUSE_SHARED_READONLY on
497 non-local vars or local vars referenced from nested routines.
498 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_SHARED_READONLY
499 attempt to optimize it into OMP_CLAUSE_FIRSTPRIVATE. Even for
500 TREE_READONLY, don't call use_pointer_for_field with non-NULL
501 second argument until we are sure we are keeping OMP_CLAUSE_SHARED.
503 2015-11-26 Paolo Bonzini <bonzini@gnu.org>
505 * doc/implement-c.texi (Integers Implementation): Make GCC's promises
506 about signed left shift stronger and clarify the cases when they're
509 2015-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
510 Bernd Schmidt <bschmidt@redhat.com>
512 PR rtl-optimization/67226
513 * calls.c (store_one_arg): Take into account
514 crtl->args.pretend_args_size when checking for overlap between
515 arg->value and argblock + arg->locate.offset during sibcall
518 2015-11-26 Wilco Dijkstra <wdijkstr@arm.com>
520 * config/aarch64/aarch64.md (cbranch<mode>4): Use
521 aarch64_fp_compare_operand.
522 (store_pairsf): Use aarch64_reg_or_fp_zero.
523 (store_pairdf): Likewise.
524 (cstore<mode>4): Use aarch64_fp_compare_operand.
525 (cmov<mode>6): Likewise.
526 * config/aarch64/aarch64-ldpstp.md: Use aarch64_reg_or_fp_zero.
528 2015-11-25 Aditya Kumar <aditya.k7@samsung.com>
529 Sebastian Pop <s.pop@samsung.com>
531 PR tree-optimization/68453
532 * graphite-isl-ast-to-gimple.c (translate_isl_ast_for_loop): Do
533 not redirect edges already pointing to their destination.
534 (translate_isl_ast_node_for): Split edges after loops to create
535 basic blocks for close phi nodes. Save merge points at the end of
537 (translate_isl_ast_node_if): Save merge points at the end of the
539 (add_close_phis_to_outer_loops): New.
540 (add_close_phis_to_merge_points): New.
541 (copy_loop_close_phi_args): Call add_close_phis_to_merge_points.
542 (copy_bb_and_scalar_dependences): Do not split basic blocks on
543 loop close phi locations.
545 2015-11-25 Jan Hubicka <jh@suse.cz>
547 * ipa-visibility.c (cgraph_externally_visible_p,
548 varpool_node::externally_visible_p): When doing incremental linking,
549 hidden symbols may be still used later.
550 (update_visibility_by_resolution_info): Do not drop weak during
552 (function_and_variable_visibility): Fix formating.
553 * flag-types.h (lto_linker_output): Declare.
554 * common.opt 9flag_incremental_link): New flag.
556 2015-11-25 Michael Meissner <meissner@linux.vnet.ibm.com>
558 * config/rs6000/constraints.md (wb constraint): New constraint for
559 ISA 3.0 d-form scalar addressing.
561 * config/rs6000/rs6000.c (mode_supports_vmx_dform): Add support
562 for ISA 3.0 D-form addressing to load SFmode/DFmode scalars into
563 Altivec registers. Add wb constraint for Altivec registers with
564 D-form addressing. If we have ISA 3.0 d-form support, undo
565 secondary reload support for using FPR registers if we want to do
567 (rs6000_debug_reg_global): Likewise.
568 (rs6000_setup_reg_addr_masks): Likewise.
569 (rs6000_init_hard_regno_mode_ok): Likewise.
570 (rs6000_secondary_reload): Likewise.
571 (rs6000_preferred_reload_class): Likewise.
572 (rs6000_secondary_reload_class): Likewise.
574 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wb
577 * config/rs6000/rs6000.md (f32_lr2 mode attribute): Add support
578 for ISA 3.0 SFmode/DFmode d-form addressing to Altivec registers.
585 (extendsfdf2_fpr): Likewise.
586 (mov<mode>_hardfloat): Likewise.
587 (mov<mode>_hardfloat32): Likewise.
588 (mov<mode>_hardfloat64): Likewise.
590 * doc/md.texi (RS/6000 constraints): Document wb constraint.
591 Fixup we constraint documentation.
593 2015-11-25 Tom de Vries <tom@codesourcery.com>
595 * omp-low.c (pass_expand_omp_ssa::clone): New function.
596 * passes.def: Add pass_oacc_kernels pass group.
597 * tree-ssa-loop-ch.c (pass_ch::clone): New function.
599 2015-11-25 Tom de Vries <tom@codesourcery.com>
601 * tree-pass.h (make_pass_oacc_kernels, make_pass_oacc_kernels2):
603 * tree-ssa-loop.c (gate_oacc_kernels): New static function.
604 (pass_data_oacc_kernels, pass_data_oacc_kernels2): New pass_data.
605 (class pass_oacc_kernels, class pass_oacc_kernels2): New pass.
606 (make_pass_oacc_kernels, make_pass_oacc_kernels2): New function.
608 2015-11-25 Jan Hubicka <hubicka@ucw.cz>
610 * timevar.def (TV_IPA_LTO_DECOMPRESS, TV_IPA_LTO_COMPRESS,
611 TV_IPA_LTO_OUTPUT): New.
612 * lto-compress.c: Include timevar.h
613 (lto_end_compression, lto_end_uncompression): Add timers.
614 * langhooks.c: Include timevar.h
615 (lhd_append_data): Add timer.
617 2015-11-25 Jan Hubicka <hubicka@ucw.cz>
619 * varasm.c (default_elf_asm_output_limited_string,
620 default_elf_asm_output_ascii): Replace fprintf by putc.
622 2015-11-25 Vladimir Makarov <vmakarov@redhat.com>
624 PR rtl-optimization/67954
625 * lra-constraints.c (curr_insn_transform): Add check on scratch
626 pseudo when change class to NO_REGS. Add an assert.
628 2015-11-25 Nathan Sidwell <nathan@acm.org>
630 * config/nvptx/nvptx.md (load_arg_reg<mode>): Arg number
632 * config/nvptx/nvptx.c (write_one_arg): Use 'i' directly as arg
634 (nvptx_write_function_decl): Number args from 0.
635 (nvptx_declare_function_name): Likewise.
636 (nvptx_function_incoming_arg): Likewise.
637 (nvptx_output_call_insn): Correct formatting.
639 2015-11-25 David Sherwood <david.sherwood@arm.com>
641 * optabs.def: Add new optabs fmax_optab/fmin_optab.
642 * internal-fn.def: Add new fmax/fmin internal functions.
643 * doc/md.texi: Add fmin and fmax patterns.
645 2015-11-25 Jason Merrill <jason@redhat.com>
648 * tree.c (integer_zerop, integer_onep, integer_each_onep)
649 (integer_all_onesp, integer_minus_onep, integer_pow2p)
650 (integer_nonzerop, integer_truep, tree_log2, tree_floor_log2)
651 (real_zerop, real_onep, real_minus_onep): Remove STRIP_NOPS.
653 2015-11-25 Richard Biener <rguenther@suse.de>
656 * fold-const.c (fold_binary_loc): Do not call negate_expr_p
657 on stripped operands.
659 2015-11-25 Nathan Sidwell <nathan@acm.org>
661 * config/nvptx/nvptx.c (walk_args_for_params): Delete.
662 (nvptx_declare_function_name): Move assignments next to register
663 declarations, and process params here.
665 2015-11-25 David Edelsohn <dje.gcc@gmail.com>
667 * config/rs6000/rs6000.c (rs6000_declare_alias): Rename and globalize
668 both the symbol and the "dot" symbol for function descriptors. Fix
669 inversion for rename of symbols with dollar sign.
671 2015-11-25 Tom de Vries <tom@codesourcery.com>
673 * cfgloop.c (find_single_latch): New function, factored out of ...
674 (flow_loops_find): ... here.
675 (verify_loop_structure): Improve verification of loop->latch.
676 * cfgloop.h (find_single_latch): Declare.
677 * omp-low.c (expand_omp_for_generic): Initialize latch of orig_loop.
679 2015-11-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
681 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Move up.
682 (STARTFILE_VTV_SPEC, ENDFILE_VTV_SPEC): Define.
683 (STARTFILE_SPEC): Use %(startfile_vtv).
684 (ENDFILE_SPEC): Use %(endfile_vtv).
685 (SUBTARGET_EXTRA_SPECS): Handle STARTFILE_VTV_SPEC,
688 * gcc.c (LINK_COMMAND_SPEC): Move VTABLE_VERIFICATION_SPEC after %{L*}.
690 2015-11-25 Bernd Schmidt <bschmidt@redhat.com>
692 * ifcvt.c (noce_mem_write_may_trap_or_fault_p,
693 noce_can_store_speculate): Delete.
694 (noce_process_if_block): Don't try to handle single MEM stores.
695 * rtl.h (memory_must_be_modified_in_insn_p): Don't declare.
696 * alias.c (memory_must_be_modified_in_insn_p): Delete.
698 2015-11-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
700 PR rtl-optimization/68435
701 * ifcvt.c (noce_try_cmove_arith): Skip final insn when checking
702 for conflicts between a, b and the set destinations.
704 2015-11-25 Richard Biener <rguenther@suse.de>
706 PR tree-optimization/68517
707 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses):
708 Properly handle zero-sized types.
710 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
712 * ipa-inline-analysis.c: Include gimplify.h
713 (set_cond_stmt_execution_predicate,
714 set_switch_stmt_execution_predicate): Be sure to not leak locations
717 2015-11-25 Jakub Jelinek <jakub@redhat.com>
720 * tree-ssa-math-opts.c (uaddsub_overflow_check_p,
721 match_uaddsub_overflow): New functions.
722 (pass_optimize_widening_mul::execute): Call match_uaddsub_overflow.
724 2015-11-25 Richard Biener <rguenther@suse.de>
726 PR tree-optimization/68492
727 * tree-vect-slp.c (vect_build_slp_tree): Consistently build up
728 op from scalars after operand swapping.
730 2015-11-25 Richard Biener <rguenther@suse.de>
732 PR tree-optimization/68502
733 * tree-vect-data-refs.c (vect_analyze_group_access_1): Restore
734 check that the step is a multiple of the type size.
736 2015-11-24 Michael Collison <michael.collison@linaro.org>
738 * config/aarch64/aarch64-simd.md (widen_ssum, widen_usum)
739 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>_internal): New patterns
740 * config/aarch64/iterators.md (Vhalf, VDBLW): New mode attributes.
742 2015-11-24 Steve Ellcey <sellcey@imgtec.com>
744 * frame-header-opt.c (gate): Check for optimize > 0.
745 (has_inlined_assembly): New function.
746 (needs_frame_header_p): Remove is_leaf_function check,
747 add argument type check.
748 (callees_functions_use_frame_header): Add is_leaf_function
749 and has_inlined_assembly calls..
750 (set_callers_may_not_allocate_frame): New function.
751 (frame_header_opt): Add is_leaf_function call, add
752 set_callers_may_not_allocate_frame call.
753 * config/mips/mips.c (mips_compute_frame_info): Add check
754 to see if callee saved regs can be put in frame header.
755 (mips_expand_prologue): Add check to see if step1 is zero,
756 fix cfa restores when using frame header to store regs.
757 (mips_can_use_return_insn): Check to see if registers are
758 stored in frame header.
759 * config/mips/mips.h (machine_function): Add
760 callers_may_not_allocate_frame and
761 use_frame_header_for_callee_saved_regs fields.
763 2015-11-24 Segher Boessenkool <segher@kernel.crashing.org>
765 PR rtl-optimization/68520
766 * shrink-wrap.c (try_shrink_wrapping): Don't push a block to VEC if
767 its bit was already set in BB_WITH.
769 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
771 * alias.c (get_alias_set): Before checking TYPE_ALIAS_SET_KNOWN_P
772 double check that type is main variant.
773 * tree.c (build_variant_type_copy): Clear TYPE_ALIAS_SET when producing
775 (verify_type_variant): Verify that variants have no
776 TYPE_ALIAS_SET_KNOWN_P set
777 * tree-streamer-out.c (pack_ts_type_common_value_fields): Reorder
778 streaming so constant fields come first; stream TYPE_ALIAS_SET==0
779 only for main variants; stream TYPE_ALIAS_SET as a bit.
780 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Update
783 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
785 * tree.c (make_vector_type): Properly compute canonical type of the
787 (verify_type): Verify that TYPE_CANONICAL of TYPE_MAIN_VARIANT is
790 2015-11-24 Nathan Sidwell <nathan@acm.org>
792 * config/nvptx/nvptx.c (maybe_split_mode): Return new mode or
793 VOIDmode, don't alter incoming mode.
794 (nvptx_split_reg_p): Delete.
795 (write_one_arg, walk_args_for_param, nvptx_declare_function_name,
796 write_func_decl_from_insn, nvptx_output_call_insn): Adjust
797 maybe_split_mode calls.
798 (nvptx_print_operand): Use maybe_split_mode.
800 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
802 * lto-streamer-in.c (lto_read_body_or_constructor): Set TYPE_CANONICAL
803 only for types where LTO sets them.
804 * tree.c (build_array_type_1): Do ont set TYPE_CANONICAL for LTO.
805 (make_vector_type): Likewise.
806 (gimple_canonical_types_compatible_p): Use canonical_type_used_p.
807 * tree.h (canonical_type_used_p): New inline.
808 * alias.c (get_alias_set): Handle structural equality for all
809 types that pass canonical_type_used_p.
810 (record_component_aliases): Look through all types with
811 record_component_aliases for possible pointers; sanity check that
812 the alias sets match.
814 2015-11-24 Michael Meissner <meissner@linux.vnet.ibm.com>
816 * config/rs6000/rs6000.md (lround<mode>di2): Remove constraints.
818 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
820 * tree.c (free_node): New function.
821 (type_hash_canon): Use it.
822 * tree.h (free_node): Declare.
824 2015-11-24 David Edelsohn <dje.gcc@gmail.com>
825 Michael Meissner <meissner@linux.vnet.ibm.com>
827 * config/rs6000/rs6000.md (UNSPEC_XSRDPI): New unspec.
828 (Fv2): New mode attribute to be used when ISA 2.07 instructions
829 are used on SF values, and ISA 2.06 instructions on DF values.
830 (add<mode>3_fpr): Use <Fv2> instead of <Fv>.
831 (sub<mode>3_fpr): Use <Fv2> instead of <Fv>.
832 (mul<mode>3_fpr): Use <Fv2> instead of <Fv>.
833 (div<mode>3_fpr): Use <Fv2> instead of <Fv>.
834 (sqrt<mode>2): Use <Fv2> instead of <Fv>.
835 (fre<Fs>): Use <Fv2> instead of <Fv>.
836 (rsqrt<mode>2): Use <Fv2> instead of <Fv>.
837 (cmp<mode>_fpr): Use <Fv2> instead of <Fv>.
838 (xsrdpi<mode>): Add support for the lround function.
839 (lround<mode>di2): Likewise.
840 (fma<mode>4_fpr): Use <Fv2> instead of <Fv>.
841 (fms<mode>4_fpr): Use <Fv2> instead of <Fv>.
842 (nfma<mode>4_fpr): Use <Fv2> instead of <Fv>.
843 (nfms<mode>4_fpr): Use <Fv2> instead of <Fv>.
845 2015-11-24 Aditya Kumar <aditya.k7@samsung.com>
846 Sebastian Pop <s.pop@samsung.com>
848 PR tree-optimization/67984
849 * graphite-isl-ast-to-gimple.c (is_constant): New.
850 (get_rename): Call is_constant.
851 (get_new_name): Same.
853 2015-11-24 Aditya Kumar <aditya.k7@samsung.com>
854 Sebastian Pop <s.pop@samsung.com>
856 * graphite-dependences.c: Only include graphite.h.
857 * graphite-isl-ast-to-gimple.c: Same.
858 * graphite-optimize-isl.c: Same.
859 * graphite-poly.c: Same.
860 * graphite-scop-detection.c: Same.
861 * graphite-sese-to-poly.c: Same.
863 * graphite-isl-ast-to-gimple.h: Move to graphite.h.
864 * graphite-poly.h: Same.
865 * graphite-scop-detection.h: Same.
868 2015-11-24 Pierre-Marie de Rodat <derodat@adacore.com>
870 * dwarf2out.c (gen_decl_die): Generate DW_TAG_imported_* instead of
871 DW_TAG_namespace for IMPORTED_DECL declarations. Call
872 dwarf2out_imported_module_or_decl_1 for all DWARF versions as this
873 function already takes care of checking what it can emit.
875 2015-11-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
877 * doc/invoke.texi (-fpic): Add the AArch64 limit.
878 (-fPIC): Add AArch64.
880 2015-11-24 Tom de Vries <tom@codesourcery.com>
882 * tree-ssa-loop-im.c (tree_ssa_lim): Make static.
883 (pass_lim::execute): Allow to run outside pass_tree_loop.
885 2015-11-24 Wilco Dijkstra <wdijkstr@arm.com>
887 * config/aarch64/aarch64.md (add<mode>3):
888 Block early expansion into 2 add instructions.
889 (add<mode>3_pluslong): New pattern to combine complex
890 immediates into 2 additions.
892 2015-11-24 Segher Boessenkool <segher@kernel.crashing.org>
897 * config/rs6000/predicates.md (and_operand): Check that the operand
898 is a const_int before calling rs6000_is_valid_and_mask.
900 2015-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
902 * config/aarch64/aarch64.md (*condjump): Rename to...
903 (condjump): ... This.
904 (*compare_condjump<mode>): New define_insn_and_split.
905 (*compare_cstore<mode>_insn): Likewise.
906 (*cstore<mode>_insn): Rename to...
907 (cstore<mode>_insn): ... This.
908 * config/aarch64/iterators.md (CMP): Handle ne code.
909 * config/aarch64/predicates.md (aarch64_imm24): New predicate.
911 2015-11-24 Mikhail Maltsev <maltsevm@gmail.com>
914 * config/i386/i386.c (output_387_binary_op): Fix assertion for
917 2015-11-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
919 * tree-ssa-uncprop.c (struct val_ssa_equiv_hash_traits): Remove.
920 (val_ssa_equiv_hash_traits::remove): Likewise.
921 (pass_uncprop::execute): Adjust.
923 2015-11-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
925 * hash-map-traits.h (simple_hashmap_traits ::remove): call
926 destructors on values that are being removed.
927 * mem-stats.h (hash_map): Pass type of values to
928 simple_hashmap_traits.
929 * tree-sra.c (sra_deinitialize): Remove work around for hash
930 maps not destructing values.
931 * genmatch.c (sinfo_hashmap_traits): Adjust.
932 * tree-ssa-uncprop.c (val_ssa_equiv_hash_traits): Likewise.
934 2015-11-24 Richard Biener <rguenther@suse.de>
935 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
938 * cfgloop.c (get_loop_body_in_bfs_order): Restructure loop to avoid
941 2015-11-24 Jakub Jelinek <jakub@redhat.com>
944 * tree-vect-generic.c (lower_vec_perm): If VEC_PERM_EXPR
945 is valid vec_shr pattern, don't lower it even if can_vec_perm_p
947 * optabs.c (shift_amt_for_vec_perm_mask): Return NULL_RTX
948 whenever first is nelt or above. Don't mask expected with
951 2015-11-24 Ilya Enkovich <enkovich.gnu@gmail.com>
954 * gimple-fold.c: Include ipa-chkp.h.
955 (gimple_fold_builtin_memory_op): Don't fold call if we
956 are going to instrument it and it may copy pointers.
958 2015-11-24 Bernd Schmidt <bschmidt@redhat.com>
959 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
961 PR rtl-optimization/68194
962 PR rtl-optimization/68328
963 PR rtl-optimization/68185
964 * ree.c (combine_reaching_defs): Reject copy_needed case if
965 copies_list is not empty.
967 2015-11-24 Richard Biener <rguenther@suse.de>
970 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Properly
973 2015-11-24 Segher Boessenkool <segher@kernel.crashing.org>
975 PR rtl-optimization/68381
976 * combine.c (is_parallel_of_n_reg_sets): Return false if the pattern
979 2015-11-23 Nick Clifton <nickc@redhat.com>
980 Jeff Law <law@redhat.com>
982 * ree.c (add_removable_extension): Avoid mis-optimizing cases where
983 the source/dest of the target extension require a different number of
985 (combine_set_extension): Remove #if 0 code.
987 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
988 Sebastian Pop <s.pop@samsung.com>
990 PR tree-optimization/68314
991 * graphite-optimize-isl.c (optimize_isl): Do not call isl_union_map_is_equal.
992 * graphite-poly.c (new_scop): Remove original_schedule.
994 * graphite-poly.h (struct scop): Same.
995 * graphite-sese-to-poly.c (build_pbb_minimal_scattering_polyhedrons): Remove.
996 (build_pbb_scattering_polyhedrons): Add back.
997 (build_scop_minimal_scattering): Remove.
998 (build_scop_scattering): Add back.
999 (build_scop_original_schedule): Remove.
1000 (build_poly_scop): Revert to only call build_scop_scattering.
1002 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
1003 Sebastian Pop <s.pop@samsung.com>
1005 PR tree-optimization/68493
1006 * graphite-isl-ast-to-gimple.c (translate_pending_phi_nodes): Add
1007 missing early return when codegen_error is set.
1009 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
1010 Sebastian Pop <s.pop@samsung.com>
1012 PR tree-optimization/68279
1013 * graphite-poly.c (new_scop): Remove poly_scop_p.
1014 * graphite-poly.h (struct scop): Same.
1015 (build_poly_scop): Declare.
1016 * graphite-sese-to-poly.c: Do not include graphite-sese-to-poly.h.
1017 (cleanup_loop_iter_dom): New.
1018 (build_loop_iteration_domains): Early return when scev analysis fails.
1019 (create_pw_aff_from_tree): Same.
1020 (add_condition_to_pbb): Same.
1021 (add_conditions_to_domain): Same.
1022 (add_conditions_to_constraints): Same.
1023 (build_scop_iteration_domain): Same.
1024 (build_poly_scop): Same. Do not initialize poly_scop_p.
1025 * graphite-sese-to-poly.h: Remove.
1026 * graphite.c: Do not include graphite-sese-to-poly.h.
1027 (graphite_transform_loops): Stop before code generation when
1028 build_poly_scop fails.
1029 * sese.c (scalar_evolution_in_region): Add fixme note about scev
1032 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
1033 Sebastian Pop <s.pop@samsung.com>
1035 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
1036 Remove call to update_ssa.
1037 * sese.c (sese_insert_phis_for_liveouts): Same.
1039 2015-11-23 Marek Polacek <polacek@redhat.com>
1041 PR tree-optimization/68455
1042 * tree-vrp.c (extract_range_from_binary_expr_1): Don't call
1043 extract_range_from_multiplicative_op_1 on symbolic ranges.
1045 2015-11-23 Richard Henderson <rth@redhat.com>
1047 * optabs.def (uaddv4_optab, usubv4_optab): New.
1048 * internal-fn.c (expand_addsub_overflow): Use them.
1049 * doc/md.texi (Standard Names): Add uaddv<m>4, usubv<m>4.
1051 * config/i386/i386.c (ix86_cc_mode): Extend add overflow check
1052 to reversed operands.
1053 * config/i386/i386.md (uaddv<SWI>4, usubv<SWI>4): New.
1054 (*add<SWI>3_cconly_overflow_1): Rename *add<SWI>3_cconly_overflow.
1055 (*add<SWI>3_cc_overflow_1): Rename *add<SWI>3_cc_overflow.
1056 (*addsi3_zext_cc_overflow_1): Rename *add3_zext_cc_overflow.
1057 (*add<SWI>3_cconly_overflow_2): New.
1058 (*add<SWI>3_cc_overflow_2): New.
1059 (*addsi3_zext_cc_overflow_2): New.
1061 2015-11-23 Richard Biener <rguenther@suse.de>
1063 PR tree-optimization/68465
1064 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children):
1065 Also record equalities from multiple predecessor blocks if
1066 only one non-backedge exists.
1068 2015-11-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1071 * config/aarch64/aarch64.c (aarch64_madd_needs_nop): Reject arguments
1072 that are not INSN_P.
1074 2015-11-23 Bilyan Borisov <bilyan.borisov@arm.com>
1076 * config/aarch64/aarch64-builtins.c
1077 (aarch64_gimple_fold_builtin): Fold FMULX.
1079 2015-11-23 David Edelsohn <dje.gcc@gmail.com>
1081 * system.h: Don't poison calloc and strdup if USES_ISL is defined.
1082 * graphite-dependences.c: Define USES_ISL. Include ISL header files
1083 after GCC header files and before graphite header files.
1084 * graphite-dependences.c: Same.
1085 * graphite-isl-ast-to-gimple.c: Same.
1086 * graphite-optimize-isl.c: Same.
1087 * graphite-poly.c: Same.
1088 * graphite-scop-detection.c: Same.
1089 * graphite-sese-to-poly.c: Same.
1092 2015-11-23 Richard Biener <rguenth@gcc.gnu.org>
1093 Jiong Wang <jiong.wang@arm.com>
1095 PR tree-optimization/68317
1096 PR tree-optimization/68326
1097 * tree-vrp.c (adjust_range_with_scev): Call drop_tree_overflow if the
1098 final min and max are not infinity.
1100 2015-11-23 Ilya Enkovich <enkovich.gnu@gmail.com>
1101 Richard Biener <rguenther@suse.de>
1103 PR tree-optimization/68327
1104 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
1105 compute vectype for non-relevant mask producers.
1106 * tree-vect-stmts.c (vectorizable_comparison): Check stmt
1109 2015-11-23 Tom de Vries <tom@codesourcery.com>
1111 PR tree-optimization/68460
1112 * tree-parloops.c (gather_scalar_reductions): Also call
1113 free_stmt_vec_info_vec if simple_loop_info == NULL.
1115 2015-11-23 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
1117 * opts.c (finish_options): Allow -fsanitize-recover=address for
1118 userspace sanitization.
1119 * asan.c (asan_expand_check_ifn): Redefine recover_p.
1120 * doc/invoke.texi (fsanitize-recover): Update documentation.
1122 2015-11-23 Tom de Vries <tom@codesourcery.com>
1124 * omp-low.c (build_receiver_ref): Mark by_ref mem_ref as non-trapping.
1126 2015-11-23 Richard Biener <rguenther@suse.de>
1128 PR tree-optimization/68445
1129 * tree-vect-slp.c (vect_create_mask_and_perm): Properly use
1130 two different strides.
1132 2015-11-23 Robin Dapp <rdapp@linux.vnet.ibm.com>
1134 * config/s390/s390.h: Add new symref flags, _NOTALIGN2 etc.
1135 * config/s390/s390.c (s390_check_symref_alignment): Use new
1136 symref flags, early abort on wrong alignment
1137 (s390_secondary_reload): Use new symref flags.
1138 (s390_encode_section_info): Likewise.
1139 * config/s390/predicates.md: Likewise.
1141 2015-11-23 Kugan Vivekanandarajah <kuganv@linaro.org>
1144 * config/arm/arm.c (arm_function_ok_for_sibcall): Get function type
1145 for indirect function call.
1147 2015-11-22 Bilyan Borisov <bilyan.borisov@arm.com>
1149 * config/aarch64/aarch64-simd.md
1150 (*aarch64_mulx_elt_<vswap_width_name><mode>, VDQSF): New.
1151 (*aarch64_mulx_elt<mode>, VDQF): Likewise.
1152 (*aarch64_mulx_elt_to_64v2df): Likewise.
1153 (*aarch64_vgetfmulx<mode>, VDQF_DF): Likewise.
1154 * config/aarch64/arm_neon.h (vmulx_lane_f32): New.
1155 (vmulx_lane_f64): Likewise.
1156 (vmulxq_lane_f32): Refactored & moved.
1157 (vmulxq_lane_f64): Likewise.
1158 (vmulx_laneq_f32): New.
1159 (vmulx_laneq_f64): Likewise.
1160 (vmulxq_laneq_f32): Likewise.
1161 (vmulxq_laneq_f64): Likewise.
1162 (vmulxs_lane_f32): Likewise.
1163 (vmulxs_laneq_f32): Likewise.
1164 (vmulxd_lane_f64): Likewise.
1165 (vmulxd_laneq_f64): Likewise.
1167 2015-11-21 Jan Hubicka <hubicka@ucw.cz>
1169 * tree.c (build_pointer_type_for_mode,build_reference_type_for_mode):
1170 In LTO we do not compute TYPE_CANONICAL of pointers.
1171 (gimple_canonical_types_compatible_p): Improve coments; sanity check
1172 that pointers do not have canonical type that would make us believe
1174 * alias.c (get_alias_set): Do structural type equality on pointers;
1175 enable pointer path for LTO; also glob pointer to vector with pointer
1176 to vector element; glob pointers and references for LTO; do more strict
1177 sanity checking about build_pointer_type returning the canonical type
1178 which is also the main variant.
1179 (record_component_aliases): When component type is pointer and we
1180 do LTO; record void_type_node alias set.
1182 2015-11-21 Nathan Sidwell <nathan@acm.org>
1184 * config/nvptx/nvptx.md (clz<mode>2): Use operand 1 for type.
1186 * config/nvptx/nvptx.c (write_function_decl_and_comment): Print
1188 (write_func_decl_from_insn): Likewise.
1189 (init_output_initializer, nvptx_assemble_undefined_decl): Likewise.
1190 (nvptx_file_end): Likewise.
1191 (nvptx_function_end): Undent output.
1192 (nvptx_expand_call): Fix formatting.
1193 (nvptx_output_call_insn): Indent output.
1194 * config/nvptx/nvptx.h (ASM_OUTPUT_ALIGNED_DECL_COMMON,
1195 ASM__OUTPUT_ALIGNED_DECL_LOCAL): Print leading blank line.
1197 2015-11-21 Jakub Jelinek <jakub@redhat.com>
1200 * tree-inline.c (copy_debug_stmt): If
1201 gimple_debug_source_bind_get_value is DECL_ORIGIN of a PARM_DECL
1202 in decl_debug_args, don't call remap_gimple_op_r on it.
1204 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
1206 * ipa-icf.c (sem_item::add_type): Do not look for TYPE_CANONICAL;
1207 do not check AGGREGATE_TYPE_P when adding TYPE_MODE;
1208 Check that all record types are complete.
1209 * ipa-icf-gimple.c (func_checker::compatible_types_p): Do not
1210 compare alias sets for types w/o alias sets.
1212 2015-11-20 Eric Botcazou <ebotcazou@adacore.com>
1214 * config/sparc/sparc.md (umulxhi_vis): Move around.
1215 (*umulxhi_sp64): Likewise.
1216 (umulxhi_v8plus): Likewise.
1217 (xmulx_vis): Likewise.
1218 (*xmulx_sp64): Likewise.
1219 (xmulx_v8plus): Likewise.
1220 (xmulxhi_vis): Likewise.
1221 (*xmulxhi_sp64): Likewise.
1222 (xmulxhi_v8plus): Likewise.
1224 2015-11-20 David Malcolm <dmalcolm@redhat.com>
1227 * diagnostic-show-locus.c (colorizer::set_fixit_hint): New.
1228 (class layout): Update comment
1229 (layout::print_any_fixits): New method.
1230 (layout::move_to_column): New method.
1231 (diagnostic_show_locus): Add call to layout.print_any_fixits.
1233 2015-11-20 Jakub Jelinek <jakub@redhat.com>
1236 * omp-low.c (lower_rec_input_clauses): If C/C++ array reduction
1237 has non-zero bias, subtract it in integer type instead of
1238 pointer plus of negated bias.
1241 * omp-low.c (expand_simd_clones): Call node->get_body () before
1242 allocating stuff in GC.
1244 2015-11-20 Jim Wilson <jim.wilson@linaro.org>
1246 * tree-vect-data-refs.c (compare_tree): Call STRIP_NOPS.
1248 2015-11-20 Evandro Menezes <e.menezes@samsung.com>
1250 * config/aarch64/aarch64.md (predicated): Copy attribute from
1252 * config/arm/arm.md (predicated): Added description.
1254 2015-11-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1256 * config/arm/arm.c (arm_option_override): Require TARGET_32BIT
1257 for unaligned_access.
1258 * config/arm/arm.md (unaligned_loadsi): Remove redundant TARGET_32BIT
1259 from matching condition.
1260 (unaligned_loadhis): Likewise.
1261 (unaligned_loadhiu): Likewise.
1262 (unaligned_storesi): Likewise.
1263 (unaligned_storehi): Likewise.
1265 2015-11-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1268 * config/arm/arm.md (unaligned_loaddi): Delete.
1269 (unaligned_storedi): Likewise.
1270 * config/arm/arm.c (gen_movmem_ldrd_strd): Don't generate
1271 unaligned DImode memory ops. Instead perform two back-to-back
1272 unaligned SImode ops.
1274 2015-11-20 Nathan Sidwell <nathan@codesourcery.com>
1275 James Norris <jnorris@codesourcery.com>
1277 * config/nvptx/nvptx.c (nvptx_use_anchors_for_symbol_p): New.
1278 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Override.
1280 2015-11-20 Alan Hayward <alan.hayward@arm.com>
1282 PR tree-optimization/68413
1283 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Cache
1285 (vectorizable_reduction): Use cached base
1287 2015-11-20 Tom de Vries <tom@codesourcery.com>
1289 * tree-parloops.c (build_new_reduction): Fix trailing whitespace in
1291 (try_create_reduction_list): Same. Fix typo in dump-file string.
1293 2015-11-20 Eric Botcazou <ebotcazou@adacore.com>
1295 * doc/md.texi (Standard Names): Move entry for addptr3 around,
1296 add entries for addv4, subv4, mulv4, umulv4 and negv3, fixes
1297 glitch in entries for cbranch4 and jump.
1299 2015-11-20 Tom de Vries <tom@codesourcery.com>
1301 PR tree-optimization/68373
1302 * tree-scalar-evolution.c (final_value_replacement_loop): Factor out
1304 (scev_const_prop): ... here.
1305 * tree-scalar-evolution.h (final_value_replacement_loop): Declare.
1306 * tree-parloops.c (try_create_reduction_list): Call
1307 final_value_replacement_loop.
1309 2015-11-20 Bin Cheng <bin.cheng@arm.com>
1311 PR tree-optimization/52272
1312 * tree-ssa-loop-ivopts.c (struct iv_common_cand): New struct.
1313 (struct iv_common_cand_hasher): New struct.
1314 (iv_common_cand_hasher::hash): New function.
1315 (iv_common_cand_hasher::equal): New function.
1316 (struct ivopts_data): New fields, iv_common_cand_tab and
1318 (tree_ssa_iv_optimize_init): Initialize above fields.
1319 (record_common_cand, common_cand_cmp): New functions.
1320 (add_iv_candidate_derived_from_uses): New function.
1321 (add_iv_candidate_for_use): Record iv_common_cands derived from
1322 iv use in hash table, instead of adding candidates directly.
1323 (add_iv_candidate_for_uses): Call add_iv_candidate_derived_from_uses.
1324 (record_important_candidates): Add important candidates to iv uses'
1325 related_cands. Always keep related_cands for future use.
1326 (try_add_cand_for): Use iv uses' related_cands.
1327 (free_loop_data, tree_ssa_iv_optimize_finalize): Release new fields
1328 in struct ivopts_data, iv_common_cand_tab and iv_common_cands.
1330 2015-11-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1332 * config/s390/s390.md ("bswaphi2"): New pattern.
1334 2015-11-20 Dominik Vogt <vogt@linux.vnet.ibm.com>
1336 * config/s390/s390.md (GPR1_REGNUM): New constant.
1337 ("*trunc<BFP:mode><DFP_ALL:mode>2")
1338 ("*trunc<DFP_ALL:mode><BFP:mode>2")
1339 ("trunc<BFP:mode><DFP_ALL:mode>2")
1340 ("trunc<DFP_ALL:mode><BFP:mode>2")
1341 ("*extend<BFP:mode><DFP_ALL:mode>2")
1342 ("*extend<DFP_ALL:mode><BFP:mode>2")
1343 ("extend<BFP:mode><DFP_ALL:mode>2")
1344 ("extend<DFP_ALL:mode><BFP:mode>2"): Clobber r1.
1346 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
1347 Sebastian Pop <s.pop@samsung.com>
1349 PR tree-optimization/68428
1350 * graphite-scop-detection.c (harmful_stmt_in_region): Do not iterate
1351 over basic blocks outside the scop.
1353 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
1354 Sebastian Pop <s.pop@samsung.com>
1356 PR tree-optimization/68341
1357 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Remove
1358 gcc_unreachable and safely fail codegen.
1359 (copy_loop_close_phi_args): Do not insert merge phis in a basic
1360 block with loop phi nodes.
1361 (edge_for_new_close_phis): New.
1362 (copy_bb_and_scalar_dependences): Call edge_for_new_close_phis.
1364 2015-11-19 Nathan Sidwell <nathan@acm.org>
1366 * config/nvptx/nvptx.h (SUPPORTS_WEAK): Define.
1367 * config/nvptx/nvptx.c (nvptx_write_function_decl): Support DECL_WEAK.
1368 (nvptx_declare_objec_name): Likewise.
1370 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
1372 * graphite-isl-ast-to-gimple.c (get_true_edge_from_guard_bb): Move...
1373 (get_false_edge_from_guard_bb): Move...
1374 * sese.c (get_false_edge_from_guard_bb)
1375 (get_true_edge_from_guard_bb): ... here.
1377 2015-11-19 David Edelsohn <dje.gcc@gmail.com>
1380 2015-11-18 Alan Modra <amodra@gmail.com>
1382 * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
1383 type-limits warning.
1386 2015-11-19 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1388 * tree.h (desired_pro_or_demotion_p): New function.
1389 * tree-vrp.c (simplify_cond_using_ranges): Call it.
1391 2015-11-19 Michael Matz <matz@suse.de>
1393 * fwprop.c (update_uses): Use flag_checking instead of
1394 gcc_checking_assert.
1396 2015-11-19 David Malcolm <dmalcolm@redhat.com>
1398 * doc/gty.texi (Support for inheritance): Fix missing
1399 parentheses in example.
1401 2015-11-19 Marek Polacek <polacek@redhat.com>
1403 PR tree-optimization/68431
1404 * tree-vrp.c (extract_range_from_binary_expr_1): Fix condition.
1406 2015-11-19 Nathan Sidwell <nathan@acm.org>
1408 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>_1,
1409 atomic_exchange<mode>): Input values can be immediates.
1411 2015-11-19 Eric Botcazou <ebotcazou@adacore.com>
1414 * configure.ac (PLUGIN_LD_SUFFIX): Do not touch the value specified
1416 * configure: Regenerate.
1418 2015-11-19 Eric Botcazou <ebotcazou@adacore.com>
1421 * config/sparc/sp-elf.h (CTORS_SECTION_ASM_OP): Undefine.
1422 (DTORS_SECTION_ASM_OP): Likewise.
1424 2015-11-19 Jakub Jelinek <jakub@redhat.com>
1426 PR rtl-optimization/68376
1427 * ifcvt.c (noce_try_abs): Disable one_cmpl optimization if
1428 encountering x <= 0 ? ~x : x or x > 0 ? ~x : x.
1430 2015-11-19 Richard Biener <rguenther@suse.de>
1433 * tree-ssa.c (delete_tree_ssa): Revert removal of call to
1434 redirect_edge_var_map_destroy.
1436 2015-11-19 Jakub Jelinek <jakub@redhat.com>
1439 * config/i386/i386.md (simple_return): Disable if
1440 ix86_static_chain_on_stack is true.
1442 2015-11-19 Richard Sandiford <richard.sandiford@arm.com>
1445 * internal-fn.c (expand_direct_optab_fn): Handle SUBREG_PROMOTED_VAR_P
1448 2015-11-18 Jeff Law <law@redhat.com>
1450 PR tree-optimization/68198
1451 * tree-ssa-threadupdate.c (valid_jump_thread_path): Distinguish
1452 between threading a multi-way branch and a thread path that contains
1453 a multi-way branch. Disallow the case where a path contains a
1454 multi-way branch and does not thread a multi-way branch.
1455 (thread_through_all_blocks): Update comment.
1457 2015-11-18 Joseph Myers <joseph@codesourcery.com>
1460 * ginclude/stdatomic.h (atomic_thread_fence, atomic_signal_fence)
1461 (atomic_flag_test_and_set, atomic_flag_test_and_set_explicit)
1462 (atomic_flag_clear, atomic_flag_clear_explicit): Declare as
1463 functions before defining as macros.
1465 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
1467 * config/nvptx/nvptx.c (nvptx_process_pars): Fix whitespace.
1468 (nvptx_record_offload_symbol): Remove code compensating for lack
1469 of default dimension handling.
1470 (nvptx_goacc_validate_dims): Remove incorrect ARG_UNUSED markers.
1472 2015-11-18 Aditya Kumar <aditya.k7@samsung.com>
1474 * graphite-isl-ast-to-gimple.c (copy_loop_phi_args): Change the return
1475 type to bool for early exit.
1476 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Early return
1478 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
1479 (add_phi_arg_for_new_expr): Enable codegen for if-block where one
1480 predecessor dominates the other.
1481 (translate_isl_ast_to_gimple::copy_cond_phi_args): Fix. When the
1482 element is not found it returns -1.
1483 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Bail
1484 out early when codegen fails.
1485 (graphite_regenerate_ast_isl): Remove codegen region when pending
1486 phis could not be generated.
1488 2015-11-18 Aditya Kumar <aditya.k7@samsung.com>
1490 * graphite-isl-ast-to-gimple.c (struct ast_build_info): Remove
1492 (class translate_isl_ast_to_gimple): Indentation.
1493 (translate_pending_phi_nodes): Comment.
1494 (add_parameters_to_ivs_params): Moved from sese.c inside class
1495 translate_isl_ast_to_gimple.
1496 (get_max_schedule_dimensions): Same.
1497 (generate_isl_context): Same.
1498 (extend_schedule): Same.
1499 (generate_isl_schedule): Same.
1500 (set_options): Same.
1501 (scop_to_isl_ast): Same.
1502 (is_valid_rename): Same.
1504 (get_rename_from_scev): Same.
1505 (get_def_bb_for_const): Same.
1506 (get_new_name): Same.
1507 (collect_all_ssa_names): Same.
1508 (copy_loop_phi_args): Same.
1509 (copy_loop_phi_nodes): Same.
1510 (copy_loop_close_phi_args): Same.
1511 (copy_loop_close_phi_nodes): Same.
1512 (copy_cond_phi_args): Same.
1513 (copy_cond_phi_nodes): Same.
1514 (graphite_copy_stmts_from_block): Same.
1515 (copy_bb_and_scalar_dependences): Same.
1516 (add_phi_arg_for_new_expr): Same.
1517 (rename_uses): Same.
1519 (set_rename_for_each_def): Same.
1520 (gsi_insert_earliest): Same.
1521 (rename_all_uses): Same.
1522 (codegen_error_p): Same.
1523 (print_isl_ast_node): Same.
1524 (translate_isl_ast_for_loop): Call function codegen_error_p.
1525 (translate_isl_ast_to_gimple::translate_isl_ast): Same.
1526 (translate_isl_ast_node_user): Make nb_loops const and release
1528 (get_true_edge_from_guard_bb): Move all free-functions early.
1529 (get_false_edge_from_guard_bb): Same.
1530 (bb_contains_loop_close_phi_nodes): Same.
1531 (bb_contains_loop_phi_nodes): Same.
1532 (is_loop_closed_ssa_use): Same.
1533 (number_of_phi_nodes): Same.
1534 (phi_uses_name): Same.
1535 (later_of_the_two): Same.
1536 (substitute_ssa_name):
1539 (get_loop_init_value): Same.
1540 (find_init_value): Same.
1541 (find_init_value_close_phi): Same.
1542 (ast_build_before_for): Same.
1543 (graphite_regenerate_ast_isl): Formatting changes.
1544 * graphite-scop-detection.c (build_cross_bb_scalars_use): Same.
1545 * sese.c (get_rename): Move to graphite-isl-ast-to-gimple.c
1547 (gsi_insert_earliest): Same.
1548 (collect_all_ssa_names): Same.
1549 (rename_all_uses): Same.
1550 (rename_uses): Same.
1551 (get_def_bb_for_const): Same.
1552 (copy_loop_phi_nodes): Same.
1553 (copy_loop_close_phi_args): Same.
1554 (copy_loop_close_phi_nodes): Same.
1555 (copy_cond_phi_args): Same.
1556 (copy_cond_phi_nodes): Same.
1557 (set_rename_for_each_def): Same.
1558 (graphite_copy_stmts_from_block): Same.
1559 (copy_bb_and_scalar_dependences): Same.
1560 (if_region_set_false_region): Same.
1561 (scev_analyzable_p): Same.
1562 * sese.h: Delete extern functions moved to graphite-isl-ast-to-gimple.c.
1564 2015-11-18 Andreas Tobler <andreast@gcc.gnu.org>
1566 * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Bring in the
1567 commit from r125920 for FreeBSD.
1569 2015-11-18 Jason Merrill <jason@redhat.com>
1571 * ggc-page.c (ggc_globals): Change finalizers and vec_finalizers
1573 (add_finalizer): Split out from ggc_internal_alloc.
1574 (ggc_handle_finalizers): Run finalizers for the current depth.
1575 (init_ggc, ggc_pch_read): Reserve space for finalizers.
1577 2015-11-18 Sandra Loosemore <sandra@codesourcery.com>
1580 * config/nios2/nios2.c (cdx_and_immed): Remove duplicate tests
1583 2015-11-18 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
1585 * config/avr/avr-mcus.def: Add new avr4 devices atmega48pb and
1586 atmega88pb. Add new avr5 devices ata5791, ata8210, ata8510, atmega168pb
1588 * doc/avr-mmcu.texi: Regenerate.
1590 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
1592 * config/nvptx/nvptx.c (bb_pair_t, bb_pair_vec_t): New types.
1593 (pseudo_node_t, struct bracket, bracket_vec_t): New types.
1594 (struct bb_sese): New struct.
1595 (bb_sese::~bb_sese, bb_sese::append, bb_sese::remove): New.
1596 (BB_GET_SESE, BB_SET_SESE): Define.
1597 (nvptx_sese_number, nvptx_sese_pseudo, nvptx_sese_color): New.
1598 (nvptx_find_sese): New.
1599 (nvptx_neuter_pars): Find SESE regions when optimizing.
1601 2015-11-18 Alan Modra <amodra@gmail.com>
1603 * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
1604 type-limits warning.
1606 2015-11-18 Richard Sandiford <richard.sandiford@arm.com>
1609 * hash-set.h (hash_set::traverse): Expand Key typedef.
1611 2015-11-18 Martin Liska <mliska@suse.cz>
1613 * config/arm/arm.c (arm_valid_target_attribute_p): Finalize
1616 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
1618 * config/nvptx/nvptx.c (global_lock_var): New.
1619 (nvptx_global_lock_addr): New.
1620 (nvptx_lockless_update): Recomment and adjust for clarity.
1621 (nvptx_lockfull_update): New.
1622 (nvptx_reduction_update): New.
1623 (nvptx_goacc_reduction_fini): Call it.
1625 2015-11-18 Bernd Schmidt <bschmidt@redhat.com>
1627 * regrename.h (struct du_head): Add target_data_1 and target_data_2
1629 * regrename.c (create_new_chain): Clear entire struct after allocating.
1631 * config/i386/i386.opt (mmitigate-rop): New option.
1632 * doc/invoke.texi (mmitigate-rop): Document.
1633 * config/i386/i386.c: Include "regrename.h".
1634 (ix86_rop_should_change_byte_p, reg_encoded_number,
1635 ix86_get_modrm_for_rop, set_rop_modrm_reg_bits, ix86_mitigate_rop): New
1637 (ix86_reorg): Call ix86_mitigate_rop if -fmitigate-rop.
1638 * config/i386/i386.md (attr "modrm_class"): New.
1639 (cmp<mode>_ccno_1, mov<mode>_xor, movstrict<mode>_xor,
1640 x86_mov<mode>cc_0_m1. x86_mov<mode>cc_0_m1_se)
1641 (x86_mov<mode>cc_0_m1_neg): Override modrm_class attribute.
1643 2015-11-18 Ilya Enkovich <enkovich.gnu@gmail.com>
1646 * config/i386/i386.c (ix86_expand_mask_vec_cmp): Add missing break.
1648 2015-11-18 Jakub Jelinek <jakub@redhat.com>
1650 PR tree-optimization/68157
1651 * tree-ssa-reassoc.c (attempt_builtin_powi): Set uid of
1652 pow_stmt or mul_stmt from stmt's uid.
1653 (reassociate_bb): Set uid of mul_stmt from stmt's uid.
1655 2015-11-18 Martin Liska <mliska@suse.cz>
1657 * haifa-sched.c (haifa_finish_h_i_d): Release reg_set_list.
1659 2015-11-18 Martin Liska <mliska@suse.cz>
1661 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
1662 Fix GNU coding style.
1663 (find_def_preds): Use auto_vec.
1664 (destroy_predicate_vecs): Change signature of the function.
1665 (prune_uninit_phi_opnds_in_unrealizable_paths): Use the
1667 (simplify_preds_4): Use destroy_predicate_vecs instread of
1668 just releasing preds vector.
1669 (normalize_preds): Likewise.
1670 (is_use_properly_guarded): Use new signature of
1671 destroy_predicate_vecs.
1672 (find_uninit_use): Likewise.
1674 2015-11-18 Richard Biener <rguenther@suse.de>
1676 PR tree-optimization/67790
1677 * tree-vect-loop.c (vect_is_simple_reduction_1): Remove
1678 IL rewrite for MINUS_EXPR reductions, rename back to ...
1679 (vect_is_simple_reduction): ... this, removing the wrapper.
1680 (vect_force_simple_reduction): Adjust.
1681 (vectorizable_reduction): Adjust reduc_index for MINUS_EXPR
1682 reductions and make use if reduc_index in all places. For
1683 the final reduction of MINUS_EXPR use PLUS_EXPR.
1685 2015-11-18 Alan Modra <amodra@gmail.com>
1687 * configure.ac (POWERPC64_TOC_POINTER_ALIGNMENT): Pass -z norelro
1689 * configure: Regenerate.
1691 2015-11-17 Tom de Vries <tom@codesourcery.com>
1693 * tree-ssa-loop.c (pass_tree_loop_init::execute): Improve comments.
1695 2015-11-17 Tom de Vries <tom@codesourcery.com>
1697 * tree-scalar-evolution.c (scev_const_prop): Dump details if replacing
1698 uses of ssa_name with constant.
1700 2015-11-17 Tom de Vries <tom@codesourcery.com>
1702 * tree-ssa-ccp.c (do_ssa_ccp): Clear LOOP_CLOSED_SSA in loops state if
1705 2015-11-17 Tom de Vries <tom@codesourcery.com>
1707 * cfgloop.h (struct loop): Add in_oacc_kernels_region field.
1708 * omp-low.c (mark_loops_in_oacc_kernels_region): New function.
1709 (expand_omp_target): Call mark_loops_in_oacc_kernels_region.
1711 2015-11-17 Bernd Schmidt <bschmidt@redhat.com>
1713 * regrename.c (regrename_find_superclass): New function, code moved
1715 (rename_chains): ... here. Call it.
1716 * regrename.h (regrename_find_superclass): Declare.
1718 * regrename.c (record_out_operands): Terminate earlyclobbered
1722 * regrename.c (record_operand_use): Keep track of failed operands
1723 and stop appending if we see any.
1724 * regrename.h (struct operand_rr_info): Add a failed field and shrink
1727 2015-11-17 Sandra Loosemore <sandra@codesourcery.com>
1730 * doc/extend.texi (Common Function Attributes) [visibility]:
1731 Add cross-references to matching variable and type attributes.
1732 (Common Variable Attributes) [visibility]: Add missing entry.
1734 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1736 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function): Remove
1737 entries that map directly to optabs.
1739 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1741 * config/i386/i386.c (ix86_builtin_vectorized_function): Remove
1742 entries that map directly to optabs.
1744 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1746 * internal-fn.h (direct_internal_fn_info): Add vectorizable flag.
1747 * internal-fn.c (direct_internal_fn_array): Update accordingly.
1748 * tree-vectorizer.h (vectorizable_function): Delete.
1749 * tree-vect-stmts.c: Include internal-fn.h.
1750 (vectorizable_internal_function): New function.
1751 (vectorizable_function): Inline into...
1752 (vectorizable_call): ...here. Explicitly reject calls that read
1753 from or write to memory. Try using an internal function before
1754 falling back on the old vectorizable_function behavior.
1756 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1758 * target.def (builtin_vectorized_function): Take a combined_fn (in
1759 the form of an unsigned int) rather than a function decl.
1760 (builtin_md_vectorized_function): New.
1761 * targhooks.h (default_builtin_vectorized_function): Replace the
1762 fndecl argument with an unsigned int.
1763 (default_builtin_md_vectorized_function): Declare.
1764 * targhooks.c (default_builtin_vectorized_function): Replace the
1765 fndecl argument with an unsigned int.
1766 (default_builtin_md_vectorized_function): New function.
1767 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION):
1769 * doc/tm.texi: Regenerate.
1770 * tree-vect-stmts.c (vectorizable_function): Update call to
1771 builtin_vectorized_function, also passing internal functions.
1772 Call builtin_md_vectorized_function for target-specific builtins.
1773 * config/aarch64/aarch64-protos.h
1774 (aarch64_builtin_vectorized_function): Replace fndecl argument
1775 with an unsigned int.
1776 * config/aarch64/aarch64-builtins.c: Include case-cfn-macros.h.
1777 (aarch64_builtin_vectorized_function): Update after above changes.
1779 * config/arm/arm-protos.h (arm_builtin_vectorized_function): Replace
1780 fndecl argument with an unsigned int.
1781 * config/arm/arm-builtins.c: Include case-cfn-macros.h
1782 (arm_builtin_vectorized_function): Update after above changes.
1784 * config/i386/i386.c: Include case-cfn-macros.h
1785 (ix86_veclib_handler): Take a combined_fn rather than a
1787 (ix86_veclibabi_svml, ix86_veclibabi_acml): Likewise. Use
1788 mathfn_built_in rather than calling builtin_decl_implicit directly.
1789 (ix86_builtin_vectorized_function) Update after above changes.
1791 * config/rs6000/rs6000.c: Include case-cfn-macros.h
1792 (rs6000_builtin_vectorized_libmass): Replace fndecl argument
1793 with a combined_fn. Use CASE_CFN_*. Use mathfn_built_in rather
1794 than calling builtin_decl_implicit directly.
1795 (rs6000_builtin_vectorized_function): Update after above changes.
1796 Use CASE_CFN_*. Move BUILT_IN_MD to...
1797 (rs6000_builtin_md_vectorized_function): ...this new function.
1798 (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION): Define.
1800 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1802 * tree-vect-patterns.c: Include internal-fn.h.
1803 (vect_recog_pow_pattern): Use IFN_SQRT instead of BUILT_IN_SQRT*.
1805 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1807 * tree.h (BUILTIN_EXP10_P, BUILTIN_EXPONENT_P, BUILTIN_SQRT_P)
1808 (BUILTIN_CBRT_P, BUILTIN_ROOT_P): Delete.
1810 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1812 * builtins.c (expand_errno_check, expand_builtin_mathfn)
1813 (expand_builtin_mathfn_2): Delete.
1814 (expand_builtin): Remove handling of functions with
1815 internal function equivalents.
1816 * internal-fn.def (SET_EDOM): New internal function.
1817 * internal-fn.h (set_edom_supported_p): Declare.
1818 * internal-fn.c (expand_SET_EDOM): New function.
1819 (set_edom_supported_p): Likewise.
1820 * tree-call-cdce.c: Include builtins.h and internal-fn.h.
1821 Rewrite comment at head of file.
1822 (is_call_dce_candidate): Rename to...
1823 (can_test_argument_range): ...this. Don't check gimple_call_lhs
1824 or gimple_call_builtin_p here.
1825 (edom_only_function): New function.
1826 (shrink_wrap_one_built_in_call_with_conds): New function, split out
1828 (shrink_wrap_one_built_in_call): ...here.
1829 (can_use_internal_fn, use_internal_fn): New functions.
1830 (shrink_wrap_conditional_dead_built_in_calls): Call use_internal_fn
1831 for calls that have an lhs.
1832 (pass_call_cdce::gate): Remove optimize_function_for_speed_p check.
1833 (pass_call_cdce::execute): Skip blocks that are optimized for size.
1834 Check gimple_call_builtin_p here. Use can_use_internal_fn for
1836 * opts.c (default_options_table): Enable -ftree-builtin-call-cdce
1839 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1841 * builtins.h (called_as_built_in): Declare.
1842 * builtins.c (called_as_built_in): Make external.
1843 * internal-fn.h (expand_internal_call): Define a variant that
1844 specifies the internal function explicitly.
1845 * internal-fn.c (expand_load_lanes_optab_fn)
1846 (expand_store_lanes_optab_fn, expand_ANNOTATE, expand_GOMP_SIMD_LANE)
1847 (expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE)
1848 (expand_GOMP_SIMD_ORDERED_START, expand_GOMP_SIMD_ORDERED_END)
1849 (expand_UBSAN_NULL, expand_UBSAN_BOUNDS, expand_UBSAN_VPTR)
1850 (expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK, expand_TSAN_FUNC_EXIT)
1851 (expand_UBSAN_CHECK_ADD, expand_UBSAN_CHECK_SUB)
1852 (expand_UBSAN_CHECK_MUL, expand_ADD_OVERFLOW, expand_SUB_OVERFLOW)
1853 (expand_MUL_OVERFLOW, expand_LOOP_VECTORIZED)
1854 (expand_mask_load_optab_fn, expand_mask_store_optab_fn)
1855 (expand_ABNORMAL_DISPATCHER, expand_BUILTIN_EXPECT, expand_VA_ARG)
1856 (expand_UNIQUE, expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS)
1857 (expand_GOACC_LOOP, expand_GOACC_REDUCTION, expand_direct_optab_fn)
1858 (expand_unary_optab_fn, expand_binary_optab_fn): Add an internal_fn
1860 (internal_fn_expanders): Update prototype.
1861 (expand_internal_call): Define a variant that specifies the
1862 internal function explicitly. Use it to implement the previous
1864 * cfgexpand.c (expand_call_stmt): Try to expand calls to built-in
1865 functions as calls to internal functions.
1867 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1869 * Makefile.in (MOSTLYCLEANFILES): Add cfn-operators.pd.
1870 (generated_files): Likewise.
1871 (s-cfn-operators, cfn-operators.pd): New rules.
1872 (s-match): Depend on cfn-operators.pd.
1873 * gencfn-macros.c: Expand comment to describe -o behavior.
1874 (print_define_operator_list): New function.
1875 (main): Accept -o. Call print_define_operator_list.
1876 * genmatch.c (main): Add the current directory to the include path.
1877 * match.pd (DEFINE_MATH_FN): Delete. Include cfn-operators.pd
1880 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1882 * doc/match-and-simplify.texi: Document the "null" identifier.
1883 * genmatch.c (id_base::NULL_ID): New kind.
1884 (null_id): New variable.
1885 (get_operator): Add a parameter that says whether null identifiers
1887 (contains_id): New function.
1888 (lower_for): Skip substitutions that would have a null_id in
1889 either the match or the result.
1890 (parser::parse_for): Allow the null identifier to be used.
1891 (parser::parse_operator_list): Likewise.
1892 (main): Initialize null_id.
1894 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1896 * match.pd: Use HYPOT and COS rather than hypot and cos.
1897 Use CASE_CFN_* macros. Guard log/exp folds with
1898 SCALAR_FLOAT_TYPE_P.
1899 * genmatch.c (internal_fn): New enum.
1900 (fn_id::fn): Change to an unsigned int.
1901 (fn_id::fn_id): Accept internal_fn too.
1902 (add_builtin): Rename to...
1903 (add_function): ...this and turn into a template.
1904 (get_operator): Only try one variation if the original name fails.
1905 Only add _EXPR if the original name was all lower case.
1906 Try converting internal and built-in function names to their
1908 (expr::gen_transform): Use maybe_build_call_expr_loc for generic.
1909 (dt_simplify::gen_1): Likewise.
1910 (dt_node::gen_kids_1): Use gimple_call_combined_fn for gimple
1911 and get_call_combined_fn for generic.
1912 (dt_simplify::gen): Use combined_fn as the type of fn_ids.
1913 (decision_tree::gen): Likewise.
1914 (main): Use lower case in the strings for {VIEW_,}CONVERT[012].
1915 Use add_function rather than add_builtin. Register internal
1917 * generic-match-head.c: Include case-cfn-macros.h.
1918 * gimple-fold.c (replace_stmt_with_simplification): Use
1919 gimple_call_combined_fn to test whether we can keep an
1921 * gimple-match.h (code_helper): Replace built_in_function
1923 * gimple-match-head.c: Include fold-const-call.h, internal-fn.h
1924 and case-fn-macros.h.
1925 (gimple_resimplify1): Use fold_const_call.
1926 (gimple_resimplify2, gimple_resimplify3): Likewise.
1927 (build_call_internal, build_call): New functions.
1928 (maybe_push_res_to_seq): Use them.
1929 (gimple_simplify): Use fold_const_call. Set *rcode to a combined_fn
1930 rather than a built-in function.
1931 * tree.h (build_call_expr_internal_loc): Declare.
1932 (maybe_build_call_expr_loc): Likewise.
1933 * tree.c (build_call_expr_internal_loc_array): New function.
1934 (maybe_build_call_expr_loc): Likewise.
1936 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1938 * builtins.h (mathfn_built_in): Add a variant that takes
1940 * builtins.c: Include case-cfn-macros.h.
1941 (CASE_MATHFN): Use CASE_CFN_*.
1942 (CASE_MATHFN_REENT): Use CFN_ codes.
1943 (mathfn_built_in_2, mathfn_built_in_1): Replace built_in_function
1944 argument with a combined_fn.
1945 (mathfn_built_in): Add a variant that takes a combined_fn.
1946 (expand_builtin_int_roundingfn_2): Update callers accordingly.
1947 (fold_builtin_sincos, fold_builtin_classify): Likewise.
1949 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1951 * tree-vect-patterns.c: Include case-cfn-macros.h.
1952 (vect_recog_pow_pattern): Use combined_fn instead of built-in codes.
1954 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1956 * tree-ssa-math-opts.c: Include case-cfn-macros.h.
1957 (execute_cse_sincos_1): Use combined_fn instead of built-in codes.
1958 (pass_cse_sincos::execute): Likewise.
1960 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1962 * tree-ssa-reassoc.c: Include case-cfn-macros.h.
1963 (stmt_is_power_of_op): Use combined_fn instead of built-in codes.
1964 (decrement_power, acceptable_pow_call): Likewise.
1965 (attempt_builtin_copysign): Likewise.
1967 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1969 * tree-vrp.c: Include case-cfn-macros.h.
1970 (extract_range_basic): Switch on combined_fn rather than handling
1971 built-in functions and internal functions separately.
1973 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
1975 * fold-const.h (negate_mathfn_p): Take a combined_fn rather
1976 than a built_in_function.
1977 (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
1979 (integer_valued_real_call_p): Likewise.
1980 * fold-const.c: Include case-cfn-macros.h
1981 (negate_mathfn_p): Take a combined_fn rather than a built_in_function.
1982 (negate_expr_p): Update accordingly.
1983 (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
1985 (integer_valued_real_call_p): Likewise.
1986 (tree_invalid_nonnegative_warnv_p): Update accordingly.
1987 (integer_valued_real_p): Likewise.
1988 * gimple-fold.c (gimple_call_nonnegative_warnv_p): Update call
1989 to tree_call_nonnegative_warnv_p.
1990 (gimple_call_integer_valued_real_p): Likewise
1991 integer_valued_real_call_p.
1992 * gimple-ssa-backprop.c: Include case-cfn-macros.h.
1993 (backprop::process_builtin_call_use): Extend to combined_fn.
1994 (strip_sign_op_1): Likewise.
1995 (backprop::process_use): Don't check for built-in calls here.
1996 (backprop::execute): Likewise.
1997 (backprop::optimize_builtin_call): Update call to negate_mathfn_p.
1999 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2001 * fold-const-call.h (fold_const_call): Replace built_in_function
2002 arguments with combined_fn arguments.
2003 * fold-const-call.c: Include case-cfn-macros.h.
2004 (fold_const_call_ss, fold_const_call_cs, fold_const_call_sc)
2005 (fold_const_call_cc, fold_const_call_sss, fold_const_call_ccc)
2006 (fold_const_call_ssss, fold_const_call_1, fold_const_call): Replace
2007 built_in_function arguments with combined_fn arguments.
2008 * builtins.c (fold_builtin_sincos, fold_builtin_1, fold_builtin_2)
2009 (fold_builtin_3): Update calls to fold_const_call.
2011 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2013 * Makefile.in (HASH_TABLE_H): Add GGC_H.
2014 (MOSTLYCLEANFILES, generated_files): Add case-fn-macros.h.
2015 (s-case-cfn-macros, case-cfn-macros.h, build/gencfn-macros.o)
2016 (build/gencfn-macros$(build_exeext): New rules.
2017 (genprogerr): Add cfn-macros.
2018 * hash-set.h (hash_set): Use the traits value_type as the key.
2019 * gencfn-macros.c: New file.
2021 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2023 * internal-fn.def (DEF_INTERNAL_INT_FN): New macro.
2024 (CLRSB, CLZ, CTZ, FFS, PARITY, POPCOUNT): New functions.
2025 * builtins.c (associated_internal_fn): Handle them.
2027 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2029 * builtins.h (associated_internal_fn): Declare.
2030 (replacement_internal_fn): Likewise.
2031 * builtins.c: Include internal-fn.h
2032 (associated_internal_fn, replacement_internal_fn): New functions.
2033 * internal-fn.def (DEF_INTERNAL_FLT_FN): New macro.
2034 (ACOS, ASIN, ATAN, COS, EXP, EXP10, EXP2, EXPM1, LOG, LOG10, LOG1P)
2035 (LOG2, LOGB, SIGNIFICAND, SIN, SQRT, TAN, CEIL, FLOOR, NEARBYINT)
2036 (RINT, ROUND, TRUNC, ATAN2, COPYSIGN, FMOD, POW, REMAINDER, SCALB)
2037 (LDEXP): New functions.
2038 * internal-fn.c: Include recog.h.
2039 (unary_direct, binary_direct): New macros.
2040 (expand_direct_optab_fn): New function.
2041 (expand_unary_optab_fn): New macro.
2042 (expand_binary_optab_fn): Likewise.
2043 (direct_unary_optab_supported_p): Likewise.
2044 (direct_binary_optab_supported_p): Likewise.
2046 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2048 * coretypes.h (tree_pair): New type.
2049 * internal-fn.def (DEF_INTERNAL_OPTAB_FN): New macro. Use it
2050 for MASK_LOAD, LOAD_LANES, MASK_STORE and STORE_LANES.
2051 * internal-fn.h (direct_internal_fn_info): New structure.
2052 (direct_internal_fn_array): Declare.
2053 (direct_internal_fn_p, direct_internal_fn): New functions.
2054 (direct_internal_fn_types, direct_internal_fn_supported_p): Declare.
2055 * internal-fn.c (not_direct, mask_load_direct, load_lanes_direct)
2056 (mask_store_direct, store_lanes_direct): New macros.
2057 (direct_internal_fn_array) New array.
2058 (get_multi_vector_move): Return the optab handler without asserting
2059 that it is available.
2060 (expand_LOAD_LANES): Rename to...
2061 (expand_load_lanes_optab_fn): ...this and add an optab argument.
2062 (expand_STORE_LANES): Rename to...
2063 (expand_store_lanes_optab_fn): ...this and add an optab argument.
2064 (expand_MASK_LOAD): Rename to...
2065 (expand_mask_load_optab_fn): ...this and add an optab argument.
2066 (expand_MASK_STORE): Rename to...
2067 (expand_mask_store_optab_fn): ...this and add an optab argument.
2068 (direct_internal_fn_types, direct_optab_supported_p)
2069 (multi_vector_optab_supported_p, direct_internal_fn_supported_p)
2070 (direct_internal_fn_supported_p): New functions.
2071 (direct_mask_load_optab_supported_p): New macro.
2072 (direct_load_lanes_optab_supported_p): Likewise.
2073 (direct_mask_store_optab_supported_p): Likewise.
2074 (direct_store_lanes_optab_supported_p): Likewise.
2076 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2078 * tree-core.h (internal_fn): Move immediately after the definition
2079 of built_in_function.
2080 (combined_fn): New enum.
2081 * tree.h (as_combined_fn, builtin_fn_p, as_builtin_fn)
2082 (internal_fn_p, as_internal_fn): New functions.
2083 (get_call_combined_fn, combined_fn_name): Declare.
2084 * tree.c (get_call_combined_fn): New function.
2085 (combined_fn_name): Likewise.
2086 * gimple.h (gimple_call_combined_fn): Declare.
2087 * gimple.c (gimple_call_combined_fn): New function.
2089 2015-11-17 Martin Sebor <msebor@redhat.com>
2092 * cp/init.c (build_new_1): Check for expression constness
2095 2015-11-17 Sandra Loosemore <sandra@codesourcery.com>
2098 * doc/invoke.texi (Option Summary): Add -mms-bitfields to x86
2100 (x86 Options): Add -mms-bitfields and -mno-ms-bitfields. Move
2101 discussion of the Microsoft structure layout details here from
2102 its former home in extend.texi.
2103 * doc/extend.texi (x86 Variable Attributes): Replace detailed
2104 discussion with pointer to its new location. Add cross-reference
2105 to corresponding type attributes.
2106 (x86 Type Attributes): Add cross-references to command-line options
2107 and variable attributes.
2109 2015-11-17 Ilya Enkovich <enkovich.gnu@gmail.com>
2112 * targhooks.c (default_get_mask_mode): Filter out
2113 scalar modes returned by mode_for_vector.
2115 2015-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2118 * config/arm/arm.c (arm_block_set_unaligned_vect): Keep track of
2119 offset from dstbase and use it appropriately in
2120 adjust_automodify_address.
2121 (arm_block_set_aligned_vect): Likewise.
2123 2015-11-17 Eric Botcazou <ebotcazou@adacore.com>
2125 * config/visium/t-visium (MULTILIB_OPTIONS): Add muser-mode.
2126 (MULTILIB_DIRNAMES): Adjust accordingly.
2128 2015-11-17 James Greenhalgh <james.greenhalgh@arm.com>
2130 * config/aarch64/aarch64-cores.def (cortex-a35): New.
2131 * config/aarch64/aarch64.c (cortexa35_tunings): New.
2132 * config/aarch64/aarch64-tune.md: Regenerate.
2133 * doc/invoke.texi (-mcpu): Add Cortex-A35
2135 2015-11-17 Uros Bizjak <ubizjak@gmail.com>
2138 * config/i386/i386.h (BIGGEST_ALIGNMENT): Always define
2140 * config/i386/sse.md (*mov<mode>_internal): Always enable
2141 AVX and SSE unaligned moves for IAMCU.
2143 2015-11-17 Venkataramanan Kumar <Venkataramanan.Kumar@amd.com>
2145 * tree-if-conv.c: Include varasm.h
2146 (ref_DR_map): Define.
2147 (baseref_DR_map): Like wise
2148 (struct ifc_dr): Add new tree predicate field.
2149 (hash_memrefs_baserefs_and_store_DRs_read_written_info): New function.
2150 (memrefs_read_or_written_unconditionally): Remove.
2151 (write_memrefs_written_at_least_once): Remove.
2152 (ifcvt_memrefs_wont_trap): Use hash maps to query
2153 unconditional read/written information.
2154 (if_convertible_loop_p_1): Initialize hash maps and predicates
2155 before hashing data references and delete hashmaps at the end.
2157 2015-11-16 Thomas Preud'homme <thomas.preudhomme@arm.com>
2160 * doc/invoke.texi (Optimize Options): Move @end table to the right
2163 2015-11-16 Sandra Loosemore <sandra@codesourcery.com>
2166 * doc/extend.texi (__builtin_assume_aligned): Fix formatting of
2169 2015-11-16 Michael Meissner <meissner@linux.vnet.ibm.com>
2171 * config/rs6000/vsx.md (VSX_L): Do not include IBM extended double
2172 128-bit types, just types that fit in a single vector.
2173 * config/rs6000/rs6000.md (FMOVE128_GPR): Likewise.
2175 2015-11-16 David Wohlferd <dw@LimeGreenSocks.com>
2177 * doc/md.texi ('#' and '*' constraint modifiers): Do not include these
2178 in the user documentation.
2179 (define_peephole2, define_split): Similarly.
2181 2015-11-16 Andris Pavenis <andris.pavenis@iki.fi>
2183 * lto-streamer-out.c (write_global_references): Adjust integer type.
2184 (lto_output_decl_state_refs): Likewise.
2186 2015-11-16 James Greenhalgh <james.greenhalgh@arm.com>
2188 * config/arm/arm-cores.def (cortex-a35): New.
2189 * config/arm/arm.c (arm_cortex_a35_tune): New.
2190 * config/arm/arm-tables.opt: Regenerate.
2191 * config/arm/arm-tune.md: Regenerate.
2192 * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-a35.
2193 * config/arm/t-aprofile: Likewise.
2194 * doc/invoke.texi (-mcpu): Likewise.
2196 2015-11-16 Jim Wilson <jim.wilson@linaro.org>
2198 * config/arm/t-aprofile (MULTILIB_MATCHES): Add lines for exynos-m1
2199 and qdf24xx and xgene1 to match -march=armv8-a.
2201 2015-11-16 Segher Boessenkool <segher@kernel.crashing.org>
2203 PR rtl-optimization/68330
2204 * simplify-rtx.c (simplify_unary_operation_1): Simplify SIGN_EXTEND
2205 of LSHIFTRT by a non-zero constant integer.
2207 2015-11-16 Richard Biener <rguenther@suse.de>
2209 PR tree-optimization/68306
2210 * tree-vect-data-refs.c (vect_verify_datarefs_alignment): Fix
2211 bogus copying from verify_data_ref_alignment and use continue
2214 2015-11-16 Oleg Endo <olegendo@gcc.gnu.org>
2215 Kaz Kojima <kkojima@gcc.gnu.org>
2218 * config/sh/sh.md (addsi3_scr): Handle reg overlap of operands[0] and
2220 (*addsi3): Add another insn_and_split variant for reload.
2222 2015-11-16 Richard Biener <rguenther@suse.de>
2225 * cfgexpand.c (pass_expand::execute): Destroy the edge
2226 redirection var map before setting RTL CFG hooks.
2228 2015-11-16 Alan Lawrence <alan.lawrence@arm.com>
2230 * config/i386/sse.md (reduc_splus_v8df): Rename to...
2231 (reduc_plus_scal_v8df): ...here; reduce to temp and extract scalar.
2233 (reduc_splus_v4df): Rename to...
2234 (reduc_plus_scal_v4df): ...here; reduce to temp and extract scalar.
2236 (reduc_splus_v2df): Rename to...
2237 (reduc_plus_scal_v2df): ...here; reduce to temp and extract scalar.
2239 (reduc_splus_v16sf): Rename to...
2240 (reduc_plus_scal_v16sf): ...here; reduce to temp and extract scalar.
2242 (reduc_splus_v8sf): Rename to...
2243 (reduc_plus_scal_v8sf): ...here; reduce to temp and extract scalar.
2245 (reduc_splus_v4sf): Rename to...
2246 (reduc_plus_scal_v4sf): ...here; reduce to temp and extract scalar.
2248 (reduc_<code>_<mode>, all 3 variants): Rename each to...
2249 (reduc_<code>_scal_<mode>): ...here; reduce to temp and extract scalar.
2251 (reduc_umin_v8hf): Rename to...
2252 (reduc_umin_scal_v8hf): ...here; reduce to temp and extract scalar.
2254 2015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
2256 * omp-low.c (pass_omp_simd_clone::gate): If target allows - call
2257 without additional conditions.
2258 * doc/extend.texi (@item simd): New.
2260 2015-11-16 Tom de Vries <tom@codesourcery.com>
2262 * passes.c (first_pass_instance): Remove variable.
2263 (execute_todo): Remove setting of first_pass_instance.
2264 * tree-pass.h (first_pass_instance): Remove declaration.
2266 2015-11-16 Tom de Vries <tom@codesourcery.com>
2268 * passes.def: Add arg to pass_ccp pass instantiation.
2269 * tree-ssa-ccp.c (ccp_finalize): Add param nonzero_p. Use nonzero_p
2270 instead of first_pass_instance.
2271 (do_ssa_ccp): Add and handle param nonzero_p.
2272 (pass_ccp::pass_ccp): Initialize nonzero_p.
2273 (pass_ccp::set_pass_param): New member function. Set nonzero_p.
2274 (pass_ccp::execute): Call do_ssa_ccp with extra arg.
2275 (pass_ccp::nonzero_p): New private member.
2277 2015-11-16 Tom de Vries <tom@codesourcery.com>
2279 * passes.def: Add arg to pass_object_sizes pass instantiation.
2280 * tree-object-size.c (pass_object_sizes::pass_object_sizes): Initialize
2282 (pass_object_sizes::set_pass_param): New member function. Set
2284 (pass_object_sizes::insert_min_max_p): New private member.
2285 (pass_object_sizes::execute): Use insert_min_max_p instead of
2286 first_pass_instance.
2288 2015-11-16 Tom de Vries <tom@codesourcery.com>
2290 * passes.def: Add arg to pass_dominator pass instantiation.
2291 * tree-pass.h (first_pass_instance): Remove pass_dominator-related bit
2293 * tree-ssa-dom.c (pass_dominator::pass_dominator): Initialize
2294 may_peel_loop_headers_p.
2295 (pass_dominator::set_pass_param): New member function. Set
2296 may_peel_loop_headers_p.
2297 (pass_dominator::may_peel_loop_headers_p): New private member.
2298 (pass_dominator::execute): Use may_peel_loop_headers_p instead of
2299 first_pass_instance.
2301 2015-11-16 Tom de Vries <tom@codesourcery.com>
2303 * passes.def: Add arg to pass_reassoc pass instantiation.
2304 * tree-ssa-reassoc.c (reassoc_insert_powi_p): New static variable.
2305 (acceptable_pow_call, reassociate_bb): Use reassoc_insert_powi_p instead
2306 of first_pass_instance.
2307 (execute_reassoc): Add and handle insert_powi_p parameter.
2308 (pass_reassoc::insert_powi_p): New private member.
2309 (pass_reassoc::pass_reassoc): Initialize insert_powi_p.
2310 (pass_reassoc::set_pass_param): New member function. Set insert_powi_p.
2311 (pass_reassoc::execute): Call execute_reassoc with extra arg.
2313 2015-11-16 Tom de Vries <tom@codesourcery.com>
2315 * gdbhooks.py (class PassNames): Handle extra arg NEXT_PASS argument.
2316 * gen-pass-instances.awk (handle_line): Same.
2317 * pass_manager.h (class pass_manager): Define and undefine
2319 * passes.c (opt_pass::set_pass_param): New function.
2320 (pass_manager::pass_manager): Define and undefine NEXT_PASS_WITH_ARG.
2321 * passes.def: Add extra arg to NEXT_PASS (pass_vrp).
2322 * tree-pass.h (gimple_opt::set_pass_param): Declare.
2323 * tree-vrp.c (vrp_finalize, execute_vrp): Add and handle
2324 warn_array_bounds_p parameter.
2325 (pass_vrp::pass_vrp): Initialize warn_array_bounds_p.
2326 (pass_vrp::set_pass_param): New function.
2327 (pass_vrp::execute): Add warn_array_bounds_p arg to execute_vrp call.
2328 (pass_vrp::warn_array_bounds_p): New private member.
2330 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
2332 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Adjust.
2333 (output_probe_stack_range): Rotate the loop and simplify.
2335 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
2337 * config/rs6000/rs6000.c (rs6000_emit_probe_stack_rang): Adjust.
2338 (output_probe_stack_range): Rotate the loop and simplify.
2340 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
2342 * config/i386/i386.c (ix86_adjust_stack_and_probe): Adjust and use
2343 an lea instruction when possible.
2344 (output_adjust_stack_and_probe): Rotate the loop and simplify.
2345 (ix86_emit_probe_stack_range): Adjust.
2346 (output_probe_stack_range): Rotate the loop and simplify.
2348 2015-11-16 Christian Bruel <christian.bruel@st.com>
2350 * config/arm/arm_neon.h: Remove #ifndef check on __ARM_NEON.
2351 Replace #ifdef __ARM_FEATURE_CRYPTO, __ARM_FEATURE_FMA, __ARM_FP
2352 with appropriate pragma GCC target.
2354 2015-11-16 Christian Bruel <christian.bruel@st.com>
2357 * config/arm/arm-c.c (arm_cpu_builtins): Conditionally set and reset
2358 __ARM_FEATURE_FMA and __ARM_NEON_FP, __ARM_FP.
2360 2015-11-16 James Greenhalgh <james.greenhalgh@arm.com>
2362 * config/aarch64/aarch64.c (cortexa57_branch_costs): New.
2363 (cortexa57_tunings): Use it.
2365 2015-11-16 Christian Bruel <christian.bruel@st.com>
2368 * config/arm/arm-c.c (arm_cpu_builtins): Set or reset
2369 __ARM_FEATURE_CRYPTO, __VFP_FP__, __ARM_NEON__
2370 (arm_pragma_target_parse): Change check for arm_cpu_builtins.
2372 * config/arm/arm.c (arm_can_inline_p): Check FPUs.
2373 (arm_valid_target_attribute_rec): Handle -mfpu attribute target.
2374 * doc/invoke.texi (-mfpu=): Mention attribute and pragma.
2375 * doc/extend.texi (-mfpu=): Describe attribute.
2377 2015-11-16 Christian Bruel <christian.bruel@st.com>
2380 * config/arm/arm-protos.h (arm_init_neon_builtins): Declare.
2381 * config/arm/arm.c (arm_valid_target_attribute_tree): Call
2382 arm_init_neon_builtins.
2383 * config/arm/arm-builtins.c (arm_init_neon_builtins): Split into...
2384 (arm_init_neon_builtins_internal)
2385 (arm_init_crypto_builtins_internal):
2386 Test and set neon_set_p, neon_crypto_set_p.
2387 (neon_set_p, neon_crypto_set_p): New static booleans.
2389 2015-11-16 Christian Bruel <christian.bruel@st.com>
2392 * config/arm/arm.c (arm_fpu_desc): Remove.
2393 (all_fpus): Make global.
2394 (arm_option_override): Use FPU TARGET accessors.
2395 (arm_declare_function_name): Likewise.
2396 * config/arm/arm.h (TARGET_VFP, TARGET_VFPD32, TARGET_VFP5)
2397 (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE, TARGET_NEON_FP16)
2398 (TARGET_FP16, TARGET_FMA, TARGET_FPU_ARMV8, TARGET_CRYPTO)
2399 (TARGET_NEON): Likewise.
2400 (all_fpus): Declare extern.
2401 (TARGET_FPU_NAME, TARGET_FPU_MODEL, TARGET_FPU_REV)
2402 (TARGET_FPU_REGS, TARGET_FPU_FEATURES): Define all_fpus accessors.
2404 2015-11-15 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2407 * sdbout.c: Include emit-rtl.h and function.h.
2409 2015-11-15 Gerald Pfeifer <gerald@pfeifer.com>
2411 * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Change to i586.
2412 Remove support for FreeBSD 5 and earlier.
2414 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2416 * configure: Regenerate.
2417 * configure.ac: Always define ENABLE_OFFLOADING.
2418 * cgraph.c (cgraph_node::create): Adjust.
2419 * gcc.c (process_command): Likewise.
2420 * omp-low.c (create_omp_child_function): Likewise.
2421 (expand_omp_target): Likewise.
2422 * varpool.c (varpool_node::get_create): Likewise.
2424 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2426 * defaults.h (EH_RETURN_HANDLER_RTX): New default definition.
2427 * df-scan.c (df_get_exit_block_use_set): Adjust.
2428 * except.c (expand_eh_return): Likewise.
2430 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2432 * config/i386/i386.h (TARGET_PECOFF): Remove define.
2433 * defaults.h (TARGET_PECOFF): New default definition.
2434 * varasm.c (handle_vtv_comdat_section): Adjust.
2436 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2438 * defaults.h: New definition of SDB_DEBUGGING_INFO.
2439 * doc/tm.texi: Regenerate.
2440 * doc/tm.texi.in: Adjust.
2441 * final.c (rest_of_clean_state): Remove check if
2442 SDB_DEBUGGING_INFO is defined.
2443 * function.c (number_blocks): Likewise.
2444 * output.h: Likewise.
2445 * sdbout.c: Likewise.
2446 * toplev.c (process_options): Likewise.
2448 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2450 * gsyms.h (enum sdb_type): Remove code for EXTENDED_SDB_BASIC_TYPES.
2451 (enum sdb_masks): Likewise.
2452 * sdbout.c (plain_type_1): Likewise.
2453 * system.h: Poison EXTENDED_SDB_BASIC_TYPES macro.
2455 2015-11-14 Jakub Jelinek <jakub@redhat.com>
2457 * omp-low.c (lower_omp_ordered): Add argument to GOMP_SMD_ORDERED_*
2458 internal calls - 0 if ordered simd and 1 for ordered threads simd.
2459 * tree-vectorizer.c (adjust_simduid_builtins): If GOMP_SIMD_ORDERED_*
2460 argument is 1, replace it with GOMP_ordered_* call instead of removing
2463 2015-11-13 Rich Felker <dalias@libc.org>
2465 * config/sh/sh.md (symGOT_load): Suppress __stack_chk_guard
2466 address loading hack for FDPIC targets.
2468 2015-11-13 Ajit Agarwal <ajitkum@xilinx.com>
2469 Jeff Law <law@redhat.com>
2471 * Makefile.in (OBJS): Add gimple-ssa-split-paths.o
2472 * common.opt (-fsplit-paths): New flag controlling path splitting.
2473 * doc/invoke.texi (fsplit-paths): Document.
2474 * opts.c (default_options_table): Add -fsplit-paths to -O2.
2475 * passes.def: Add split_paths pass.
2476 * timevar.def (TV_SPLIT_PATHS): New timevar.
2477 * tracer.c: Include "tracer.h"
2478 (ignore_bb_p): No longer static.
2479 (transform_duplicate): New function, broken out of tail_duplicate.
2480 (tail_duplicate): Use transform_duplicate.
2481 * tracer.h (ignore_bb_p): Declare
2482 (transform_duplicate): Likewise.
2483 * tree-pass.h (make_pass_split_paths): Declare.
2484 * gimple-ssa-split-paths.c: New file.
2486 2015-11-13 Kai Tietz <ktietz70@googlemail.com>
2487 Marek Polacek <polacek@redhat.com>
2488 Jason Merrill <jason@redhat.com>
2490 * convert.c (maybe_fold_build1_loc): New.
2491 (maybe_fold_build2_loc): New.
2492 (convert_to_pointer_1): Split out from convert_to_pointer.
2493 (convert_to_pointer_nofold): New.
2494 (convert_to_real_1): Split out from convert_to_real.
2495 (convert_to_real_nofold): New.
2496 (convert_to_integer_1): Split out from convert_to_integer.
2497 (convert_to_integer_nofold): New.
2498 (convert_to_complex_1): Split out from convert_to_complex.
2499 (convert_to_complex_nofold): New.
2500 * convert.h: Declare new functions.
2501 * tree-complex.c (create_one_component_var): Break up line to
2502 avoid sequence point issues.
2504 2015-11-13 Jason Merrill <jason@redhat.com>
2506 * fold-const.c (fold_convert_const): Fold changing cv-quals on
2509 * hash-map.h (hash_map::empty): New.
2511 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
2513 * omp-low.c (scan_sharing_clauses): Accept INDEPENDENT, AUTO & SEQ.
2514 (oacc_loop_fixed_partitions): Correct return type to bool.
2515 (oacc_loop_auto_partitions): New.
2516 (oacc_loop_partition): Take mask argument, call
2517 oacc_loop_auto_partitions.
2518 (execute_oacc_device_lower): Provide mask to oacc_loop_partition.
2520 2015-11-13 Michael Meissner <meissner@linux.vnet.ibm.com>
2522 * config/rs6000/constraints.md (we constraint): New constraint for
2523 64-bit power9 vector support.
2524 (wL constraint): New constraint for the element in a vector that
2525 can be addressed by the MFVSRLD instruction.
2527 * config/rs6000/rs6000-protos.h (convert_float128_to_int): Add
2529 (convert_int_to_float128): Likewise.
2530 (rs6000_generate_compare): Add support for ISA 3.0 (power9)
2531 hardware support for IEEE 128-bit floating point.
2532 (rs6000_expand_float128_convert): Likewise.
2533 (convert_float128_to_int): Likewise.
2534 (convert_int_to_float128): Likewise.
2536 * config/rs6000/rs6000.md (UNSPEC_ROUND_TO_ODD): New unspecs for
2537 ISA 3.0 hardware IEEE 128-bit floating point.
2538 (UNSPEC_IEEE128_MOVE): Likewise.
2539 (UNSPEC_IEEE128_CONVERT): Likewise.
2540 (FMA_F): Add support for IEEE 128-bit floating point hardware support.
2541 (Ff): Add support for DImode.
2543 (any_fix code iterator): New and updated iterators for IEEE
2544 128-bit floating point hardware support.
2545 (any_float code iterator): Likewise.
2546 (s code attribute): Likewise.
2547 (su code attribute): Likewise.
2548 (az code attribute): Likewise.
2549 (uns code attribute): Likewise.
2550 (neg<mode>2, FLOAT128 iterator): Add support for IEEE 128-bit
2551 floating point hardware support.
2552 (abs<mode>2, FLOAT128 iterator): Likewise.
2553 (add<mode>3, IEEE128 iterator): New insns for IEEE 128-bit
2554 floating point hardware.
2555 (sub<mode>3, IEEE128 iterator): Likewise.
2556 (mul<mode>3, IEEE128 iterator): Likewise.
2557 (div<mode>3, IEEE128 iterator): Likewise.
2558 (copysign<mode>3, IEEE128 iterator): Likewise.
2559 (sqrt<mode>2, IEEE128 iterator): Likewise.
2560 (neg<mode>2, IEEE128 iterator): Likewise.
2561 (abs<mode>2, IEEE128 iterator): Likewise.
2562 (nabs<mode>2, IEEE128 iterator): Likewise.
2563 (fma<mode>4_hw, IEEE128 iterator): Likewise.
2564 (fms<mode>4_hw, IEEE128 iterator): Likewise.
2565 (nfma<mode>4_hw, IEEE128 iterator): Likewise.
2566 (nfms<mode>4_hw, IEEE128 iterator): Likewise.
2567 (extend<SFDF:mode><IEEE128:mode>2_hw): Likewise.
2568 (trunc<mode>df2_hw, IEEE128 iterator): Likewise.
2569 (trunc<mode>sf2_hw, IEEE128 iterator): Likewise.
2570 (fix_fixuns code attribute): Likewise.
2571 (float_floatuns code attribute): Likewise.
2572 (fix<uns>_<mode>si2_hw): Likewise.
2573 (fix<uns>_<mode>di2_hw): Likewise.
2574 (float<uns>_<mode>si2_hw): Likewise.
2575 (float<uns>_<mode>di2_hw): Likewise.
2576 (xscvqp<su>wz_<mode>): Likewise.
2577 (xscvqp<su>dz_<mode>): Likewise.
2578 (xscv<su>dqp_<mode): Likewise.
2579 (ieee128_mfvsrd): Likewise.
2580 (ieee128_mfvsrwz): Likewise.
2581 (ieee128_mtvsrw): Likewise.
2582 (ieee128_mtvsrd): Likewise.
2583 (trunc<mode>df2_odd): Likewise.
2584 (cmp<mode>_h): Likewise.
2585 (128-bit GPR splitters): Don't split a 128-bit move that is a
2586 direct move between GPR and vector registers using ISA 3.0 direct
2588 (maddld4): Add support for the ISA 3.0 integer multiply-add
2591 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add ISA 3.0
2593 (rs6000_init_hard_regno_mode_ok): If ISA 3.0 and 64-bit, enable we
2594 constraint. Disable the VSX<->GPR direct move helpers if we have
2595 the MFVSRLD and MTVSRDD instructions.
2596 (rs6000_secondary_reload_simple_move): Add support for doing
2597 vector direct moves directly without additional scratch registers
2598 if we have ISA 3.0 instructions.
2599 (rs6000_secondary_reload_direct_move): Update comments.
2600 (rs6000_output_move_128bit): Add support for ISA 3.0 vector
2603 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for ISA 3.0
2604 direct move instructions.
2605 (vsx_movti_64bit): Likewise.
2606 (vsx_extract_<mode>): Likewise.
2608 * config/rs6000/rs6000.h (VECTOR_ELEMENT_MFVSRLD_64BIT): New
2609 macros for ISA 3.0 direct move instructions.
2610 (TARGET_DIRECT_MOVE_128): Likewise.
2611 (TARGET_MADDLD): Add support for the ISA 3.0 integer multiply-add
2614 * doc/md.texi (RS/6000 constraints): Document we, wF, wG, wL
2615 constraints. Update wa documentation to say not to use %x<n> on
2616 instructions that only take Altivec registers.
2618 2015-11-13 David Malcolm <dmalcolm@redhat.com>
2620 * Makefile.in (OBJS): Add gcc-rich-location.o.
2621 * diagnostic.c (diagnostic_append_note): Pass line_table to
2623 (emit_diagnostic): Likewise.
2625 (inform_n): Likewise.
2626 (warning): Likewise.
2627 (warning_at): Likewise.
2628 (warning_n): Likewise.
2629 (pedwarn): Likewise.
2630 (permerror): Likewise.
2632 (error_n): Likewise.
2633 (error_at): Likewise.
2635 (fatal_error): Likewise.
2636 (internal_error): Likewise.
2637 (internal_error_no_backtrace): Likewise.
2638 (source_range::debug): Likewise.
2639 * gcc-rich-location.c: New file.
2640 * gcc-rich-location.h: New file.
2641 * genmatch.c (fatal_at): Pass line_table to rich_location ctor.
2642 (warning_at): Likewise.
2643 * gimple.h (gimple_set_block): Use set_block function.
2644 * input.c (dump_line_table_statistics): Dump stats on how many
2645 ranges were optimized vs how many needed ad-hoc table.
2646 (write_digit_row): Add "map" param; use its range_bits
2647 to calculate the per-character offset.
2648 (dump_location_info): Print the range and column bits for each
2649 ordinary map. Use the range bits to calculate the per-character
2650 offset. Pass the map as a new param to the various calls to
2651 write_digit_row. Eliminate uses of
2652 ORDINARY_MAP_NUMBER_OF_COLUMN_BITS.
2653 * print-tree.c (print_node): Print any source range information.
2654 * rtl-error.c (diagnostic_for_asm): Likewise.
2655 * toplev.c (general_init): Initialize line_table's
2657 * tree-cfg.c (move_block_to_fn): Likewise.
2658 (move_block_to_fn): Likewise.
2659 * tree-inline.c (copy_phis_for_bb): Likewise.
2660 * tree.c (tree_set_block): Likewise.
2661 (get_pure_location): New function.
2662 (set_source_range): New functions.
2663 (set_block): New function.
2664 (set_source_range): New functions.
2665 * tree.h (CAN_HAVE_RANGE_P): New.
2666 (EXPR_LOCATION_RANGE): New.
2667 (EXPR_HAS_RANGE): New.
2668 (get_expr_source_range): New inline function.
2669 (DECL_LOCATION_RANGE): New.
2670 (set_source_range): New decls.
2671 (get_decl_source_range): New inline function.
2673 2015-11-13 Alan Lawrence <alan.lawrence@arm.com>
2675 PR tree-optimization/67682
2676 * tree-vect-slp.c (vect_split_slp_store_group): New.
2677 (vect_analyze_slp_instance): During basic block SLP, recurse on
2678 subgroups if vect_build_slp_tree fails after 1st vector.
2680 2015-11-13 Christian Bruel <christian.bruel@st.com>
2683 * config/arm/arm.c (arm_option_override): Move NEON check...
2684 (arm_option_check_internal): here
2685 (arm_file_start): Move .fpu print...
2686 (arm_declare_function_name): here
2687 (arm_option_print): Dump current fpu name.
2688 * config/arm/arm.opt (arm_fpu_index): Mark Save.
2690 2015-11-13 Segher Boessenkool <segher@kernel.crashing.org>
2691 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2693 * combine.c (subst): Don't substitute or simplify when
2694 handling register-wise widening multiply.
2695 (force_to_mode): Likewise.
2697 2015-11-13 Richard Sandiford <richard.sandiford@arm.com>
2699 PR tree-optimization/68264
2700 * tree-call-cdce.c (gen_one_condition): Update commentary.
2701 (gen_conditions_for_pow_int_base): Invert the sense of the tests
2702 passed to gen_one_condition.
2703 (gen_conditions_for_domain): Likewise. Use unordered comparisons.
2704 (shrink_wrap_one_built_in_call): Invert the sense of the tests,
2705 using EDGE_FALSE_VALUE for edges to the call block and
2706 EDGE_TRUE_VALUE for the others.
2708 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
2710 * config/nvptx/nvptx.c (nvptx_generate_vector_shuffle): Deal with
2713 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
2715 * gimplify.c (oacc_default_clause): Use inform for enclosing scope.
2717 2015-11-13 Tom de Vries <tom@codesourcery.com>
2719 * gen-pass-instances.awk (handle_line): Rename prefix_len var to
2722 2015-11-13 Tom de Vries <tom@codesourcery.com>
2724 * gen-pass-instances.awk (handle_line): Add args_str variable.
2726 2015-11-13 Martin Liska <mliska@suse.cz>
2728 * graphite-poly.c (free_scop): Release scop->drs vector.
2729 * graphite-scop-detection.c (scop_detection::harmful_stmt_in_region):
2731 (try_generate_gimple_bb): Use vNULL as a default initialization
2734 2015-11-13 Martin Liska <mliska@suse.cz>
2737 * ipa-icf.c (sem_item_optimizer::traverse_congruence_split):
2738 Replace array initialization (using a variable post-increment)
2739 that possible triggers multiple unsequenced modifications
2740 with a pair of pushes to a vector.
2742 2015-11-13 Richard Biener <rguenther@suse.de>
2744 PR tree-optimization/68306
2745 * tree-vect-data-refs.c (verify_data_ref_alignment): Move
2746 loop related checks ...
2747 (vect_verify_datarefs_alignment): ... here.
2748 (vect_slp_analyze_and_verify_node_alignment): Compute and
2749 verify alignment of the single DR that it matters.
2750 * tree-vect-stmts.c (vectorizable_store): Add an assert.
2751 (vectorizable_load): Add a comment.
2752 * tree-vect-slp.c (vect_analyze_slp_cost_1): Fix DR used
2753 for determining load cost.
2755 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
2757 * tree-vect-loop.c (vect_determine_vectorization_factor): Check
2758 mix of boolean and integer vectors in a single statement.
2759 * tree-vect-slp.c (vect_mask_constant_operand_p): New.
2760 (vect_get_constant_vectors): Use vect_mask_constant_operand_p to
2761 determine constant type.
2762 * tree-vect-stmts.c (vectorizable_comparison): Provide vectype
2763 for loop invariants.
2765 2015-11-13 Alan Hayward <alan.hayward@arm.com>
2767 PR tree-optimization/66558
2768 * tree-vect-loop.c (is_integer_induction):Add.
2769 (vectorizable_reduction): Add integer induction checks.
2771 2015-11-13 Christophe Lyon <christophe.lyon@linaro.org>
2773 Revert [ARM] Remove neon-testgen.ml and generated tests.
2775 2015-11-12 Christophe Lyon <christophe.lyon@linaro.org>
2777 [ARM] Remove neon-testgen.ml and generated tests.
2779 * config/arm/neon-testgen.ml: Remove.
2781 2015-11-13 Richard Biener <rguenther@suse.de>
2783 * tree-vect-loop.c (vect_analyze_loop_2): Add fatal parameter.
2784 Signal fatal failure if early checks fail.
2785 (vect_analyze_loop): If vect_analyze_loop_2 fails fatally
2786 do not bother testing further vector sizes.
2788 2015-11-13 Uros Bizjak <ubizjak@gmail.com>
2790 * config/i386/predicates.md (misaligned_operand): Return true if
2791 operand is aligned to less than its natural alignmnet.
2793 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
2795 * doc/md.texi (vec_cmp@var{m}@var{n}): New item.
2796 (vec_cmpu@var{m}@var{n}): New item.
2797 (vcond@var{m}@var{n}): Specify comparison is signed.
2798 (vcondu@var{m}@var{n}): New item.
2799 (vcond_mask_@var{m}@var{n}): New item.
2800 (maskload@var{m}@var{n}): New item.
2801 (maskstore@var{m}@var{n}): New item.
2803 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
2805 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
2806 types of stored value and storage are compatible.
2808 2015-11-13 Andris Pavenis <andris.pavenis@iki.fi>
2810 * gcc.c (POST_LINK_SPEC): Define if not already defined.
2811 (LINK_COMMAND_SPEC): Use post_link.
2812 (post_link_spec): New, initialize to POST_LINK_SPEC.
2813 (post_link): Initialize new static spec.
2814 * doc/tm.texi.in (POST_LINK_SPEC): Document.
2815 * doc/tm.texi: Regenerated.
2817 2015-11-13 David Malcolm <dmalcolm@redhat.com>
2820 * Makefile.in (GCC_OBJS): Add spellcheck.o.
2821 (OBJS): Add spellcheck-tree.o.
2822 * gcc.c: Include "spellcheck.h".
2823 (suggest_option): New function.
2824 (driver::handle_unrecognized_options): Call suggest_option to
2825 provide a hint about misspelled options.
2826 * spellcheck.c: Update file comment.
2827 (levenshtein_distance): Convert 4-param implementation from static
2828 to extern scope. Remove note about unit tests from leading
2829 comment for const char * implementation. Move tree
2830 implementation to...
2831 * spellcheck-tree.c: New file.
2832 * spellcheck.h (levenshtein_distance): Add 4-param decl.
2834 2015-11-13 David Malcolm <dmalcolm@redhat.com>
2836 * Makefile.in (OBJS): Add spellcheck.o.
2837 * spellcheck.c: New file.
2838 * spellcheck.h: New file.
2840 2015-11-13 James Bowman <james.bowman@ftdichip.com>
2842 * config/ft32/ft32.md (*sne): New insn pattern.
2844 2015-11-12 Brad Lucier <lucier@math.purdue.edu>
2846 * cprop.c (is_too_expensive): Remove.
2848 (one_cprop_pass): Call gcse_or_cprop_is_too_expensive, not
2850 * gcse.h (gcse_or_cprop_is_too_expensive): Declare.
2851 * gcse.c (is_too_expensive): Rename to ...
2852 (gcse_or_cprop_is_too_expensive): ... this.
2853 Expand warning to add required size of max-gcse-memory.
2854 (one_pre_gcse_pass): Use it.
2855 (one_code_hoisting_pass): Use it.
2856 * params.def (max-gcse-memory): Increase from 50MB to 128MB.
2858 2015-11-12 James Norris <jnorris@codesourcery.com>
2859 Joseph Myers <joseph@codesourcery.com>
2861 * gimple-pretty-print.c (dump_gimple_omp_target): Handle
2862 GF_OMP_TARGET_KIND_OACC_DECLARE.
2863 * gimple.h (enum gf_mask): Add GF_OMP_TARGET_KIND_OACC_DECLARE.
2864 (is_gomple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
2865 * gimplify.c (oacc_declare_returns): New.
2866 (gimplify_bind_expr): Prepend 'exit' stmt to cleanup.
2867 (device_resident_p): New function.
2868 (oacc_default_clause): Handle device_resident clause.
2869 (gimplify_oacc_declare_1, gimplify_oacc_declare): New functions.
2870 (gimplify_expr): Handle OACC_DECLARE.
2871 * omp-builtins.def (BUILT_IN_GOACC_DECLARE): New builtin.
2872 * omp-low.c (expand_omp_target): Handle
2873 GF_OMP_TARGET_KIND_OACC_DECLARE and BUILTIN_GOACC_DECLARE.
2874 (build_omp_regions_1): Handlde GF_OMP_TARGET_KIND_OACC_DECLARE.
2875 (lower_omp_target): Handle GF_OMP_TARGET_KIND_OACC_DECLARE,
2876 GOMP_MAP_DEVICE_RESIDENT and GOMP_MAP_LINK.
2877 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
2878 * tree-pretty-print.c (dump_omp_clause): Handle GOMP_MAP_LINK and
2879 GOMP_MAP_DEVICE_RESIDENT.
2881 2015-11-12 Christophe Lyon <christophe.lyon@linaro.org>
2883 [ARM] Remove neon-testgen.ml and generated tests.
2885 * config/arm/neon-testgen.ml: Remove.
2887 2015-11-12 Jim Wilson <jim.wilson@linaro.org>
2889 * config/aarch64/aarch64-cores.def (qdf24xx): New.
2890 * config/aarch64/aarch64-tune.md: Regenerated.
2891 * config/arm/arm-cores.def (qdf24xx): New.
2892 * config/arm/arm-tables.opt, config/arm/arm-tune.md: Regenerated.
2893 * config/arm/bpabi.h (BE8_LINK_SPEC): Add qdf24xx support.
2894 * doc/invoke.texi (AArch64 Options/-mtune): Add "qdf24xx".
2895 (ARM Options/-mtune): Likewise.
2897 2015-11-12 Martin Liska <mliska@suse.cz>
2899 * config/i386/i386.c (ix86_valid_target_attribute_p):
2900 Finalize options at the of the function.
2901 * gcc.c (driver_get_configure_time_options): Call newly
2902 introduced init_opts_obstack.
2903 * lto-wrapper.c (main): Likewise.
2904 * opts.c (init_opts_obstack): New function.
2905 (init_options_struct): Call newly introduced init_opts_obstack.
2906 * opts.h (init_options_struct): Declare.
2908 2015-11-12 Martin Liska <mliska@suse.cz>
2911 * ipa-icf.c (void sem_item::set_hash): New function.
2912 (sem_function::get_hash): Use renamed m_hash member variable.
2913 (sem_item::update_hash_by_addr_refs): Utilize get_hash.
2914 (sem_item::update_hash_by_local_refs): Likewise.
2915 (sem_variable::get_hash): Use renamed m_hash member variable.
2916 (sem_item_optimizer::update_hash_by_addr_refs): Utilize get_hash.
2917 (sem_item_optimizer::build_hash_based_classes): Utilize set_hash.
2918 (sem_item_optimizer::build_graph): As the hash value of an item
2919 is lazy initialized, force the calculation.
2920 * ipa-icf.h (set_hash): Declare new function and rename hash member
2923 2015-11-12 Richard Biener <rguenther@suse.de>
2925 * tree-vectorizer.h (vect_slp_analyze_data_ref_dependences):
2926 Rename to vect_slp_analyze_instance_dependence.
2927 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
2928 Remove WAR special-case.
2929 (vect_slp_analyze_node_dependences): Instead add more specific
2930 code here, not relying on other instances being vectorized.
2931 (vect_slp_analyze_instance_dependence): Adjust accordingly.
2932 * tree-vect-slp.c (vect_build_slp_tree_1): Remove excessive
2933 vertical space in dump files.
2934 (vect_print_slp_tree): Likewise.
2935 (vect_analyze_slp_instance): Dump a header for the final SLP tree.
2936 (vect_slp_analyze_bb_1): Delay computing relevant stmts and
2937 not vectorized stmts until after dependence analysis removed
2938 instances. Merge alignment and dependence checks.
2939 * tree-vectorizer.c (pass_slp_vectorize::execute): Clear visited
2942 2015-11-12 Evandro Menezes <e.menezes@samsung.com>
2944 * config/aarch64/aarch64-protos.h (tune_params): Add new members
2945 "max_case_values" and "cache_line_size".
2946 * config/aarch64/aarch64.c (aarch64_case_values_threshold): New
2948 (aarch64_override_options_internal): Tune heuristics based on new
2949 members in "tune_params".
2950 (TARGET_CASE_VALUES_THRESHOLD): Define macro.
2952 2015-11-12 Richard Biener <rguenther@suse.de>
2954 PR tree-optimization/68306
2955 * tree-vect-data-refs.c (verify_data_ref_alignment): Remove
2956 relevant and vectorizable checks here.
2957 (vect_verify_datarefs_alignment): Add relevant check here.
2959 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
2961 * gimplify.c (oacc_default_clause): New.
2962 (omp_notice_variable): Call it.
2964 2015-11-12 Ilya Enkovich <enkovich.gnu@gmail.com>
2966 PR tree-optimization/68305
2967 * tree-vect-slp.c (vect_get_constant_vectors): Support
2968 COND_EXPR with SSA_NAME as a condition.
2970 2015-11-12 Eric Botcazou <ebotcazou@adacore.com>
2972 * config/visium/visium-protos.h (notice_update_cc): Delete.
2973 (print_operand): Likewise.
2974 (print_operand_address): Likewise.
2976 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
2978 * config/alpha/alpha.h (FUNCTION_VALUE, LIBCALL_VALUE,
2979 FUNCTION_VALUE_REGNO_P): Remove.
2980 * config/alpha/alpha-protos.h (function_value): Remove.
2981 * config/alpha/alpha.c (function_value): Rename to...
2982 (alpha_function_value_1): ... this. Make static.
2983 (alpha_function_value, alpha_libcall_value,
2984 alpha_function_value_regno_p): New functions.
2985 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
2986 TARGET_FUNCTION_VALUE_REGNO_P): Define.
2988 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
2990 * config/alpha/alpha.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
2991 * config/alpha/alpha.c (alpha_memory_latency): Make static.
2992 (alpha_register_move_cost, alpha_memory_move_cost): New functions.
2993 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
2995 2015-11-12 Eric Botcazou <ebotcazou@adacore.com>
2998 * config/i386/i386.c (ix86_adjust_stack_and_probe): Remove obsolete
2999 assertion on the CFA register.
3001 2015-11-12 Ilya Enkovich <enkovich.gnu@gmail.com>
3003 * expr.c (do_store_flag): Expand vector comparison as
3004 VEC_COND_EXPR if vector comparison is not supported by target.
3006 2015-11-12 Renlin Li <renlin.li@arm.com>
3008 * config/arm/arm.md (addsi3_compare_op2): Make the order of
3009 assembly pattern consistent with constraint order.
3011 2015-11-12 Tom de Vries <tom@codesourcery.com>
3013 * gen-pass-instances.awk (handle_line): Simplify match regexp.
3015 2015-11-12 Tom de Vries <tom@codesourcery.com>
3017 * gen-pass-instances.awk (handle_line): Simplify init of
3020 2015-11-12 Tom de Vries <tom@codesourcery.com>
3022 * gen-pass-instances.awk (handle_line): Rename var where to
3025 2015-11-12 Claudiu Zissulescu <claziss@synopsys.com>
3027 * config/arc/arc.c (gen_compare_reg): Swap operands also when we
3028 do not expand to rtl.
3030 2015-11-12 Richard Biener <rguenther@suse.de>
3032 PR tree-optimization/58497
3033 * tree-vect-generic.c: Include gimplify.h.
3034 (tree_vec_extract): Lookup constant/constructor DEFs.
3035 (do_cond): Unshare cond.
3037 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
3039 * config/i386/i386.c (ix86_legitimate_combined_insn): Reject
3040 combined insn if the alignment of vector mode memory operand
3041 is less than ssememalign.
3043 2015-11-12 Tom de Vries <tom@codesourcery.com>
3045 * gen-pass-instances.awk (handle_line): Print parentheses and
3046 pass_name explicitly.
3048 2015-11-12 Tom de Vries <tom@codesourcery.com>
3050 * gen-pass-instances.awk (handle_line): Add pass_num, prefix
3053 2015-11-12 Tom de Vries <tom@codesourcery.com>
3055 * gen-pass-instances.awk (handle_line): Add comments.
3057 2015-11-12 Tom de Vries <tom@codesourcery.com>
3059 * gen-pass-instances.awk (handle_line): Rename len_of_end to
3062 2015-11-12 Tom de Vries <tom@codesourcery.com>
3064 * gen-pass-instances.awk (handle_line): Add len_of_call variable.
3066 2015-11-12 Tom de Vries <tom@codesourcery.com>
3068 * gen-pass-instances.awk (handle_line): Restructure using early-out.
3070 2015-11-12 Tom de Vries <tom@codesourcery.com>
3072 * gen-pass-instances.awk (handle_line): Unify semicolon use.
3074 2015-11-12 Tom de Vries <tom@codesourcery.com>
3076 * gen-pass-instances.awk (handle_line): Remove unused var line_length.
3078 2015-11-12 Tom de Vries <tom@codesourcery.com>
3080 * gen-pass-instances.awk: Add emacs indent setting.
3082 2015-11-12 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3084 * fold-const.c (fold_binary_loc) : Move Convert A/B/C to A/(B*C)
3086 Move Convert A/(B/C) to (A/B)*C to match.pd.
3087 Move Convert C1/(X*C2) into (C1/C2)/X to match.pd.
3088 Move Optimize (X & (-A)) / A where A is a power of 2, to
3089 X >> log2(A) to match.pd.
3091 * match.pd (rdiv (rdiv:s @0 @1) @2): New simplifier.
3092 (rdiv @0 (rdiv:s @1 @2)): New simplifier.
3093 (div (convert? (bit_and @0 INTEGER_CST@1)) INTEGER_CST@2):
3095 (rdiv REAL_CST@0 (mult @1 REAL_CST@2)): New simplifier.
3097 2015-11-12 Charles Baylis <charles.baylis@linaro.org>
3099 * config/arm/neon.md: (neon_vld2_lane<mode>): Remove unused max
3101 (neon_vst2_lane<mode>): Likewise.
3102 (neon_vld3_lane<mode>): Likewise.
3103 (neon_vst3_lane<mode>): Likewise.
3104 (neon_vld4_lane<mode>): Likewise.
3105 (neon_vst4_lane<mode>): Likewise.
3107 2015-11-11 Aditya Kumar <aditya.k7@samsung.com>
3108 Sebastian Pop <s.pop@samsung.com>
3110 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
3111 New member codegen_error
3112 (translate_isl_ast_for_loop): Remove call to single_succ_edge and
3114 (translate_isl_ast_node_user): Early return in case of error.
3115 (translate_isl_ast_to_gimple::translate_isl_ast): Same.
3116 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): New.
3117 (add_parameters_to_ivs_params): Remove macro.
3118 (graphite_regenerate_ast_isl): Add if_region pointer to region.
3119 * graphite-poly.c (new_poly_dr): Remove macro.
3121 (new_gimple_poly_bb): Same.
3122 (free_gimple_poly_bb): Same.
3123 (print_scop_params): Same.
3124 * graphite-poly.h (struct poly_dr): Same.
3125 (struct poly_bb): Add new_bb.
3126 (gbb_from_bb): Remove dead code.
3127 (pbb_from_bb): Same.
3128 * graphite-scop-detection.c (parameter_index_in_region_1): Same.
3129 (parameter_index_in_region): Same.
3130 (find_scop_parameters): Same.
3131 (build_cross_bb_scalars_def): New.
3132 (build_cross_bb_scalars_use): New.
3133 (graphite_find_cross_bb_scalar_vars): New
3134 (try_generate_gimple_bb): Reads and Writes.
3135 (build_alias_set): Move.
3136 (gather_bbs::before_dom_children): Gather bbs visited.
3137 (build_scops): call build_alias_set.
3138 * graphite-sese-to-poly.c (phi_arg_in_outermost_loop): Delete.
3139 (remove_simple_copy_phi): Delete.
3140 (remove_invariant_phi): Delete.
3141 (simple_copy_phi_p): Delete.
3142 (reduction_phi_p): Delete.
3143 (isl_id_for_dr): Remove unused param.
3144 (parameter_index_in_region_1): Remove macro usage.
3145 (set_scop_parameter_dim): Same.
3146 (add_param_constraints): Same.
3147 (add_conditions_to_constraints): Same
3148 (build_scop_iteration_domain): Same.
3149 (pdr_add_alias_set): Comment.
3150 (add_scalar_version_numbers): New.
3151 (build_poly_dr): ISL id.
3152 (build_scop_drs): Move.
3153 (build_poly_sr_1): Same.
3154 (insert_stmts): Remove.
3155 (build_poly_sr): New.
3156 (new_pbb_from_pbb): Delete.
3157 (insert_out_of_ssa_copy_on_edge): Delete.
3158 (create_zero_dim_array): Delete.
3159 (scalar_close_phi_node_p): Delete.
3160 (propagate_expr_outside_region): Delete.
3161 (rewrite_close_phi_out_of_ssa): Delete.
3162 (rewrite_phi_out_of_ssa): Delete.
3163 (rewrite_degenerate_phi): Delete.
3164 (rewrite_reductions_out_of_ssa): Delete.
3165 (rewrite_cross_bb_scalar_dependence): Delete.
3166 (handle_scalar_deps_crossing_scop_limits):
3167 (rewrite_cross_bb_scalar_deps): Delete.
3168 (build_poly_scop): Remove calls to out-of-ssa functions.
3169 * graphite.c (graphite_transform_loops): Early return in case of
3171 * sese.c (debug_rename_map_1): Delete.
3172 (debug_rename_map): Delete.
3173 (sese_record_loop): Remove macro.
3174 (build_sese_loop_nests): Same.
3175 (new_sese_info): Same.
3176 (free_sese_info): Same.
3177 (sese_insert_phis_for_liveouts):
3178 (is_loop_closed_ssa_use): New.
3179 (number_of_phi_nodes): New.
3180 (bb_contains_loop_close_phi_nodes): New.
3181 (bb_contains_loop_phi_nodes): New.
3182 (phi_uses_name): New.
3184 (get_rename): Add old_bb and loop_phi for more precise matching of
3186 (set_rename): Pass region.
3187 (later_of_the_two): New.
3188 (gsi_insert_earliest): New.
3189 (collect_all_ssa_names): New.
3190 (substitute_ssa_name): New.
3191 (rename_all_uses): New.
3192 (get_rename_from_scev): New.
3193 (rename_uses): Pass old_bb for more precise matching of exprs.
3194 (get_def_bb_for_const): New.
3195 (get_new_name): New.
3198 (copy_loop_phi_args): New.
3199 (copy_loop_phi_nodes): New.
3200 (get_loop_init_value): New.
3201 (find_init_value): New.
3202 (find_init_value_close_phi): New.
3203 (copy_loop_close_phi_args): New.
3204 (copy_loop_close_phi_nodes): New.
3205 (add_phi_arg_for_new_expr): New.
3206 (copy_cond_phi_args): New.
3207 (copy_cond_phi_nodes): New.
3208 (copy_phi_nodes): New.
3209 (should_copy_to_new_region): New.
3210 (set_rename_for_each_def): New.
3211 (graphite_copy_stmts_from_block): Early return in case of error.
3212 (copy_bb_and_scalar_dependences): Same.
3213 * sese.h (vec_find): New.
3214 (SESE_PARAMS): Delete.
3215 (SESE_LOOPS): Delete.
3216 (SESE_LOOP_NEST): Delete.
3217 (sese_contains_loop): Remove macro usage.
3218 (sese_nb_params): Same.
3219 (struct gimple_poly_bb): Added read_scalar_refs, write_scalar_refs.
3221 2015-11-11 Abderrazek Zaafrani <a.zaafrani@samsung.com>
3223 * graphite-sese-to-poly.c (build_scop_original_schedule): Call
3224 isl_union_map_add_map on every pbb->schedule.
3226 2015-11-11 Tom de Vries <tom@codesourcery.com>
3228 * tree-parloops.c (create_parallel_loop): Return void.
3230 2015-11-11 Tom de Vries <tom@codesourcery.com>
3232 * tree-parloops.c (transform_to_exit_first_loop_alt): Insert new exit
3233 block only when needed.
3235 2015-11-11 Uros Bizjak <ubizjak@gmail.com>
3237 * config/alpha/alpha-protos.h (print_operand): Remove.
3238 (print_operand_address): Remove.
3239 * config/alpha/alpha.h (PRINT_OPERAND): Remove.
3240 (PRINT_OPERAND_ADDRESS): Remove.
3241 (PRINT_OPERAND_PUNCT_VALID_P): Remove.
3242 * config/alpha/alpha.c (TARGET_PRINT_OPERAND): New hook define.
3243 (TARGET_PRINT_OPERAND_ADDRESS): New hook define.
3244 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): New hook define.
3245 (print_operand_address): Rename to...
3246 (alpha_print_operand_address): ...this and make static.
3247 (print_operand): Rename to...
3248 (alpha_print_operand): ...this and make static.
3249 (alpha_print_operand_punct_valid_p): New static function.
3251 2015-11-11 Richard Biener <rguenther@suse.de>
3253 * tree-vectorizer.h (vect_slp_analyze_and_verify_instance_alignment):
3255 (vect_analyze_data_refs_alignment): Make loop vect specific.
3256 (vect_verify_datarefs_alignment): Likewise.
3257 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependences):
3258 Add missing continue.
3259 (vect_compute_data_ref_alignment): Export.
3260 (vect_compute_data_refs_alignment): Merge into...
3261 (vect_analyze_data_refs_alignment): ... this.
3262 (verify_data_ref_alignment): Split out from ...
3263 (vect_verify_datarefs_alignment): ... here.
3264 (vect_slp_analyze_and_verify_node_alignment): New function.
3265 (vect_slp_analyze_and_verify_instance_alignment): Likewise.
3266 * tree-vect-slp.c (vect_supported_load_permutation_p): Remove
3267 misplaced checks on alignment.
3268 (vect_slp_analyze_bb_1): Add fatal output parameter. Do
3269 alignment analysis after SLP discovery and do it per instance.
3270 (vect_slp_bb): When vect_slp_analyze_bb_1 fatally failed do not
3271 bother to re-try using different vector sizes.
3273 2015-11-11 Nathan Sidwell <nathan@codesourcery.com>
3274 Cesar Philippidis <cesar@codesourcery.com>
3276 * gimplify.c (enum omp_region_type): Add ORT_ACC,
3277 ORT_ACC_DATA, ORT_ACC_PARALLEL, ORT_ACC_KERNELS. Adjust ORT_NONE.
3278 (gimple_add_tmp_var): Add ORT_ACC checks.
3279 (gimplify_var_or_parm_decl): Likewise.
3280 (omp_firstprivatize_variable): Likewise. Use ORT_TARGET_DATA as a mask.
3281 (omp_add_variable): Look in outer contexts for openacc and allow
3282 reductions with other sharing. Add ORT_ACC and ORT_TARGET_DATA checks.
3283 (omp_notice_variable, omp_is_private, omp_check_private): Add
3285 (gimplify_scan_omp_clauses: Treat ORT_ACC as ORT_WORKSHARE.
3286 Permit private openacc reductions.
3287 (gimplify_oacc_cache): Specify ORT_ACC.
3288 (gimplify_omp_workshare): Adjust OpenACC region types.
3289 (gimplify_omp_target_update): Likewise.
3290 * omp-low.c (scan_sharing_clauses): Remove Openacc firstprivate sorry.
3291 (lower-rec_input_clauses): Don't handle openacc firstprivate
3293 (lower_omp_target): Emit initializers for openacc firstprivate vars.
3295 2015-11-11 Eric Botcazou <ebotcazou@adacore.com>
3298 * ira.c (ira_setup_eliminable_regset): Do not necessarily create the
3299 frame pointer for stack checking if non-call exceptions aren't used.
3300 * config/i386/i386.c (ix86_finalize_stack_realign_flags): Likewise.
3302 2015-11-11 Segher Boessenkool <segher@kernel.crashing.org>
3304 * simplify-rtx.c (simplify_truncation): Simplify TRUNCATE of AND of
3307 2015-11-11 Martin Liska <mliska@suse.cz>
3308 Richard Biener <rguenther@suse.de>
3310 PR rtl-optimization/68287
3311 * lra-lives.c (lra_create_live_ranges_1): Reserve the right
3314 2015-11-11 Simon Dardis <simon.dardis@imgtec.com>
3316 * config/mips/mips.c (mips_breakable_sequence_p): New function.
3317 (mips_break_sequence): New function.
3318 (mips_reorg_process_insns): Use them. Use compact branches in selected
3321 2015-11-11 Alan Lawrence <alan.lawrence@arm.com>
3323 * fold-const.c (get_array_ctor_element_at_index): Fix whitespace, typo.
3325 2015-11-11 Jiong Wang <jiong.wang@arm.com>
3326 Jim Wilson <wilson@gcc.gnu.org>
3329 * config/arm/arm.md (neon_vector_mem_operand): Return FALSE if strict
3330 be true and eliminable registers mentioned.
3332 2015-11-11 Claudiu Zissulescu <claziss@synopsys.com>
3334 * common/config/arc/arc-common.c (arc_handle_option): Handle ARCv2
3336 * config/arc/arc-opts.h: Add ARCv2 CPUs.
3337 * config/arc/arc-protos.h (arc_secondary_reload_conv): Prototype.
3338 * config/arc/arc.c (arc_secondary_reload): Handle subreg (reg)
3339 situation, and store instructions with large offsets.
3340 (arc_secondary_reload_conv): New function.
3341 (arc_init): Add ARCv2 options.
3342 (arc_conditional_register_usage): Select the proper register usage
3343 for ARCv2 processors.
3344 (arc_handle_interrupt_attribute): ILINK2 is only valid for ARCv1
3346 (arc_compute_function_type): Likewise.
3347 (arc_print_operand): Handle new ARCv2 punctuation characters.
3348 (arc_return_in_memory): ARCv2 ABI returns in registers up to 16 bytes.
3349 (workaround_arc_anomaly, arc_asm_insn_p, arc_loop_hazard): New
3351 (arc_reorg, arc_hazard): Use it.
3352 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __HS__ and __EM__.
3353 (ASM_SPEC): Add ARCv2 options.
3354 (TARGET_NORM): ARC HS has norm instructions by default.
3355 (TARGET_OPTFPE): Use optimized floating point emulation for ARC HS.
3356 (TARGET_AT_DBR_CONDEXEC): Only for ARC600 family.
3357 (TARGET_EM, TARGET_HS, TARGET_V2, TARGET_MPYW, TARGET_MULTI): Define.
3358 (SIGNED_INT16, TARGET_MPY, TARGET_ARC700_MPY, TARGET_ANY_MPY):
3360 (TARGET_ARC600_FAMILY, TARGET_ARCOMPACT_FAMILY): Likewise.
3361 (TARGET_LP_WR_INTERLOCK): Likewise.
3363 (commutative_binary_mult_comparison_result_used, movsicc_insn)
3364 (mulsi3, mulsi3_600_lib, mulsidi3, mulsidi3_700, mulsi3_highpart)
3365 (umulsi3_highpart_i, umulsi3_highpart_int, umulsi3_highpart)
3366 (umulsidi3, umulsidi3_700, cstoresi4, simple_return, p_return_i):
3368 (mulhisi3, mulhisi3_imm, mulhisi3_reg, umulhisi3, umulhisi3_imm)
3369 (umulhisi3_reg, umulhisi3_reg, mulsi3_v2, nopv, bswapsi2)
3370 (prefetch, divsi3, udivsi3 modsi3, umodsi3, arcset, arcsetltu)
3371 (arcsetgeu, arcsethi, arcsetls, reload_*_load, reload_*_store)
3372 (extzvsi): New pattern.
3373 * config/arc/arc.opt: New ARCv2 options.
3374 * config/arc/arcEM.md: New file.
3375 * config/arc/arcHS.md: Likewise.
3376 * config/arc/constraints.md (C3p): New constraint, accepts 1 and 2
3378 (Cm2): A signed 9-bit integer constant constraint.
3379 (C62): An unsigned 6-bit integer constant constraint.
3380 (C16): A signed 16-bit integer constant constraint.
3381 * config/arc/predicates.md (mult_operator): Add ARCv2 processort.
3382 (short_const_int_operand): New predicate.
3383 * config/arc/t-arc-newlib: Add ARCv2 multilib options.
3384 * doc/invoke.texi: Add documentation for -mcpu=<archs/arcem>
3385 -mcode-density and -mdiv-rem.
3387 2015-11-11 Julia Koval <julia.koval@intel.com>
3389 * config/i386/i386.c (m_SKYLAKE_AVX512): Fix typo.
3391 2015-11-11 Julia Koval <julia.koval@intel.com>
3393 * config/i386/i386.c: Handle "skylake" and "skylake-avx512".
3395 2015-11-11 Martin Liska <mliska@suse.cz>
3397 * gimple-ssa-strength-reduction.c (create_phi_basis):
3399 * passes.c (release_dump_file_name): New function.
3400 (pass_init_dump_file): Used from this function.
3401 (pass_fini_dump_file): Likewise.
3402 * tree-sra.c (convert_callers_for_node): Use xstrdup_for_dump.
3403 * var-tracking.c (vt_initialize): Use pool_allocator.
3405 2015-11-11 Richard Biener <rguenth@gcc.gnu.org>
3406 Jiong Wang <jiong.wang@arm.com>
3408 PR tree-optimization/68234
3409 * tree-vrp.c (vrp_visit_phi_node): Extend SCEV check to those loop PHI
3410 node which estimiated to be VR_VARYING initially.
3412 2015-11-11 Robert Suchanek <robert.suchanek@imgtec.com>
3414 * regname.c (scan_rtx_reg): Check the matching number of consecutive
3415 registers when tying chains.
3416 (build_def_use): Move terminated_this_insn earlier in the function.
3418 2015-11-10 Mike Frysinger <vapier@gentoo.org>
3420 * configure.ac: Use = with test and not ==.
3421 * configure: Regenerated.
3423 2015-11-11 David Edelsohn <dje.gcc@gmail.com>
3425 * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Add cpu and
3426 machine asserts. Update defines for 64 bit.
3428 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
3431 * config/arm/neon.md (neon_vld1_lane<mode>): Remove error for invalid
3433 (neon_vst1_lane<mode>): Likewise.
3434 (neon_vld2_lane<mode>): Likewise.
3435 (neon_vst2_lane<mode>): Likewise.
3436 (neon_vld3_lane<mode>): Likewise.
3437 (neon_vst3_lane<mode>): Likewise.
3438 (neon_vld4_lane<mode>): Likewise.
3439 (neon_vst4_lane<mode>): Likewise.
3441 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
3444 * config/arm/arm-builtins.c: (arm_load1_qualifiers) Use
3445 qualifier_struct_load_store_lane_index.
3446 (arm_storestruct_lane_qualifiers) Likewise.
3447 * config/arm/neon.md: (neon_vld1_lane<mode>) Reverse lane numbers for
3449 (neon_vst1_lane<mode>) Likewise.
3450 (neon_vld2_lane<mode>) Likewise.
3451 (neon_vst2_lane<mode>) Likewise.
3452 (neon_vld3_lane<mode>) Likewise.
3453 (neon_vst3_lane<mode>) Likewise.
3454 (neon_vld4_lane<mode>) Likewise.
3455 (neon_vst4_lane<mode>) Likewise.
3457 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
3460 * config/arm/arm-builtins.c (enum arm_type_qualifiers): New enumerator
3461 qualifier_struct_load_store_lane_index.
3462 (builtin_arg): New enumerator NEON_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
3463 (arm_expand_neon_args): New parameter. Remove ellipsis. Handle NEON
3464 argument qualifiers.
3465 (arm_expand_neon_builtin): Handle new NEON argument qualifier.
3466 * config/arm/arm.h (NEON_ENDIAN_LANE_N): New macro.
3468 2015-11-10 Nathan Sidwell <nathan@codesourcery.com>
3470 * config/nvptx/nvptx.opt (moptimize): New flag.
3471 * config/nvptx/nvptx.c (nvptx_option_override): Set nvptx_optimize
3473 (nvptx_optimize_inner): New.
3474 (nvptx_process_pars): Call it when optimizing.
3475 * doc/invoke.texi (Nvidia PTX Options): Document -moptimize.
3477 2015-11-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3479 * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
3480 Remove redundant code.
3482 2015-11-10 Jeff Law <law@redhat.com>
3484 * config/ft32/ft32.c (ft32_print_operand): Supply mode to
3485 call to output_address.
3486 * config/moxie/moxie.c (moxie_print_operand_address): Similarly.
3487 Add unnamed machine_mode argument.
3489 2015-11-10 Michael Meissner <meissner@linux.vnet.ibm.com>
3491 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add power9 to hosts that
3494 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
3496 * config/i386/i386.md (*movabs<mode>_1): Add explicit
3497 size directives for -masm=intel.
3498 (*movabs<mode>_2): Ditto.
3500 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
3502 * config/i386/i386.c (ix86_print_operand): Remove dead code that
3503 tried to avoid (%rip) for call operands.
3505 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
3507 * config/i386/i386.c (ix86_print_operand_address_as): Add no_rip
3508 argument. Do not use RIP relative addressing when no_rip is set.
3509 (ix86_print_operand): Update call to ix86_print_operand_address_as.
3510 (ix86_print_operand_address): Ditto.
3511 * config/i386/i386.md (*movabs<mode>_1): Use %P modifier for
3512 absolute movabs operand 0. Add square braces for -masm=intel.
3513 (*movabs<mode>_2): Ditto for operand 1.
3515 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3517 * config/arm/arm.c (arm_new_rtx_costs, FIX case): Handle
3518 combine_vcvtf2i pattern.
3520 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3522 * config/arm/arm.c (neon_valid_immediate): Remove integer
3523 CONST_DOUBLE handling. It should never occur.
3525 2015-11-10 Matthew Wahab <matthew.wahab@arm.com>
3527 * config/aarch64/atomics.md (unspecv): Move to iterators.md.
3528 (ATOMIC_LDOP): Likewise.
3529 (atomic_ldop): Likewise.
3530 * config/aarch64/iterators.md (unspecv): Moved from atomics.md.
3531 (ATOMIC_LDOP): Likewise.
3532 (atomic_ldop): Likewise.
3534 2015-11-10 Martin Liska <mliska@suse.cz>
3536 * alloc-pool.h (allocate_raw): New function.
3537 (operator new (size_t, object_allocator<T> &a)): Use the
3538 function instead of object_allocator::allocate).
3540 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
3542 * config/i386/sse.md (HALFMASKMODE): New attribute.
3543 (DOUBLEMASKMODE): New attribute.
3544 (vec_pack_trunc_qi): New.
3545 (vec_pack_trunc_<mode>): New.
3546 (vec_unpacks_lo_hi): New.
3547 (vec_unpacks_lo_si): New.
3548 (vec_unpacks_lo_di): New.
3549 (vec_unpacks_hi_hi): New.
3550 (vec_unpacks_hi_<mode>): New.
3552 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
3554 * optabs.c (expand_binop_directly): Allow scalar mode for
3555 vec_pack_trunc_optab.
3556 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
3557 boolean vector producers from pattern sequence when computing VF.
3558 * tree-vect-patterns.c (vect_vect_recog_func_ptrs) Add
3559 vect_recog_mask_conversion_pattern.
3560 (search_type_for_mask): Choose the smallest
3561 type if different size types are mixed.
3562 (build_mask_conversion): New.
3563 (vect_recog_mask_conversion_pattern): New.
3564 (vect_pattern_recog_1): Allow scalar mode for boolean vectype.
3565 * tree-vect-stmts.c (vectorizable_mask_load_store): Support masked
3567 (vectorizable_conversion): Support boolean vectors.
3568 (free_stmt_vec_info): Allow patterns for statements with no lhs.
3569 * tree-vectorizer.h (NUM_PATTERNS): Increase to 14.
3571 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
3573 * config/i386/i386-protos.h (ix86_expand_sse_movcc): New.
3574 * config/i386/i386.c (ix86_expand_sse_movcc): Make public.
3575 Cast mask to FP mode if required.
3576 * config/i386/sse.md (vcond_mask_<mode><avx512fmaskmodelower>): New.
3577 (vcond_mask_<mode><avx512fmaskmodelower>): New.
3578 (vcond_mask_<mode><sseintvecmodelower>): New.
3579 (vcond_mask_<mode><sseintvecmodelower>): New.
3580 (vcond_mask_v2div2di): New.
3581 (vcond_mask_<mode><sseintvecmodelower>): New.
3582 (vcond_mask_<mode><sseintvecmodelower>): New.
3584 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
3586 * optabs-query.h (get_vcond_mask_icode): New.
3587 * optabs-tree.c (expand_vec_cond_expr_p): Use
3588 get_vcond_mask_icode for VEC_COND_EXPR with mask.
3589 * optabs.c (expand_vec_cond_mask_expr): New.
3590 (expand_vec_cond_expr): Use get_vcond_mask_icode when possible.
3591 * optabs.def (vcond_mask_optab): New.
3592 * tree-vect-patterns.c (vect_recog_bool_pattern): Don't
3593 generate redundant comparison for COND_EXPR.
3594 * tree-vect-stmts.c (vect_is_simple_cond): Allow SSA_NAME
3596 (vectorizable_condition): Likewise.
3597 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow
3598 cond_exp with no embedded comparison.
3599 (vect_build_slp_tree_1): Likewise.
3601 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
3603 * config/i386/sse.md (maskload<mode>): Rename to ...
3604 (maskload<mode><sseintvecmodelower>): ... this.
3605 (maskstore<mode>): Rename to ...
3606 (maskstore<mode><sseintvecmodelower>): ... this.
3607 (maskload<mode><avx512fmaskmodelower>): New.
3608 (maskstore<mode><avx512fmaskmodelower>): New.
3610 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
3612 * internal-fn.c (expand_MASK_LOAD): Adjust to maskload optab changes.
3613 (expand_MASK_STORE): Adjust to maskstore optab changes.
3614 * optabs-query.c (can_vec_mask_load_store_p): Add MASK_MODE arg.
3615 Adjust to maskload, maskstore optab changes.
3616 * optabs-query.h (can_vec_mask_load_store_p): Add MASK_MODE arg.
3617 * optabs.def (maskload_optab): Transform into convert optab.
3618 (maskstore_optab): Likewise.
3619 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Adjust to
3620 can_vec_mask_load_store_p signature change.
3621 (predicate_mem_writes): Use boolean mask.
3622 * tree-vect-stmts.c (vectorizable_mask_load_store): Adjust to
3623 can_vec_mask_load_store_p signature change. Allow invariant masks.
3624 (vectorizable_operation): Ignore type precision for boolean vectors.
3626 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
3628 * expr.c (do_store_flag): Use expand_vec_cmp_expr for mask results.
3629 (const_vector_mask_from_tree): New.
3630 (const_vector_from_tree): Use const_vector_mask_from_tree
3631 for boolean vectors.
3632 * optabs-query.h (get_vec_cmp_icode): New.
3633 * optabs-tree.c (expand_vec_cmp_expr_p): New.
3634 * optabs-tree.h (expand_vec_cmp_expr_p): New.
3635 * optabs.c (vector_compare_rtx): Add OPNO arg.
3636 (expand_vec_cond_expr): Adjust to vector_compare_rtx change.
3637 (expand_vec_cmp_expr): New.
3638 * optabs.def (vec_cmp_optab): New.
3639 (vec_cmpu_optab): New.
3640 * optabs.h (expand_vec_cmp_expr): New.
3641 * tree-vect-generic.c (expand_vector_comparison): Add vector
3642 comparison optabs check.
3643 * tree-vect-loop.c (vect_determine_vectorization_factor): Ignore mask
3644 operations for VF. Add mask type computation.
3645 * tree-vect-stmts.c (get_mask_type_for_scalar_type): New.
3646 (vectorizable_comparison): New.
3647 (vect_analyze_stmt): Add vectorizable_comparison.
3648 (vect_transform_stmt): Likewise.
3649 (vect_init_vector): Support boolean vector invariants.
3650 (vect_get_vec_def_for_operand): Add VECTYPE arg.
3651 (vectorizable_condition): Directly provide vectype for invariants
3653 * tree-vectorizer.h (get_mask_type_for_scalar_type): New.
3654 (enum vect_var_kind): Add vect_mask_var.
3655 (enum stmt_vec_info_type): Add comparison_vec_info_type.
3656 (vectorizable_comparison): New.
3657 (vect_get_vec_def_for_operand): Add VECTYPE arg.
3658 * tree-vect-data-refs.c (vect_get_new_vect_var): Support vect_mask_var.
3659 (vect_create_destination_var): Likewise.
3660 * tree-vect-patterns.c (check_bool_pattern): Check fails
3661 if we can vectorize comparison directly.
3662 (search_type_for_mask): New.
3663 (vect_recog_bool_pattern): Support cases when bool pattern check fails.
3664 * tree-vect-slp.c (vect_build_slp_tree_1): Allow
3665 comparison statements.
3666 (vect_get_constant_vectors): Support boolean vector constants.
3667 * config/i386/i386-protos.h (ix86_expand_mask_vec_cmp): New.
3668 (ix86_expand_int_vec_cmp): New.
3669 (ix86_expand_fp_vec_cmp): New.
3670 * config/i386/i386.c (ix86_expand_sse_cmp): Allow NULL for
3671 op_true and op_false.
3672 (ix86_int_cmp_code_to_pcmp_immediate): New.
3673 (ix86_fp_cmp_code_to_pcmp_immediate): New.
3674 (ix86_cmp_code_to_pcmp_immediate): New.
3675 (ix86_expand_mask_vec_cmp): New.
3676 (ix86_expand_fp_vec_cmp): New.
3677 (ix86_expand_int_sse_cmp): New.
3678 (ix86_expand_int_vcond): Use ix86_expand_int_sse_cmp.
3679 (ix86_expand_int_vec_cmp): New.
3680 (ix86_get_mask_mode): New.
3681 (TARGET_VECTORIZE_GET_MASK_MODE): New.
3682 * config/i386/sse.md (avx512fmaskmodelower): New.
3683 (vec_cmp<mode><avx512fmaskmodelower>): New.
3684 (vec_cmp<mode><sseintvecmodelower>): New.
3685 (vec_cmpv2div2di): New.
3686 (vec_cmpu<mode><avx512fmaskmodelower>): New.
3687 (vec_cmpu<mode><sseintvecmodelower>): New.
3688 (vec_cmpuv2div2di): New.
3690 2015-11-10 Richard Biener <rguenther@suse.de>
3692 PR tree-optimization/68240
3693 * tree-ssa-sccvn.c (cond_stmts_equal_p): Handle commutative compares
3695 (visit_phi): For PHIs with just a single executable edge
3696 take its value directly.
3697 (expressions_equal_p): Handle VN_TOP properly.
3699 2015-11-10 Richard Biener <rguenther@suse.de>
3701 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
3702 Handle memory using/clobbering stmts without a STMT_VINFO_DATA_REF
3705 2015-11-10 Richard Biener <rguenther@suse.de>
3707 PR tree-optimization/56118
3708 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Make equal
3709 cost favor vectorized version.
3711 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3713 * config/aarch64/aarch64.md (<neg_not_op><mode>cc): New define_expand.
3714 * config/aarch64/iterators.md (NEG_NOT): New code iterator.
3715 (neg_not_op): New code attribute.
3717 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3719 * ifcvt.c (noce_try_inverse_constants): New function.
3720 (noce_process_if_block): Call it.
3721 * optabs.h (emit_conditional_neg_or_complement): Declare prototype.
3722 * optabs.def (negcc_optab, notcc_optab): Declare.
3723 * optabs.c (emit_conditional_neg_or_complement): New function.
3724 * doc/tm.texi (Standard Names): Document negcc, notcc names.
3726 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3728 PR rtl-optimization/68236
3729 * haifa-sched.c (autopref_multipass_dfa_lookahead_guard): Return 0
3730 if insn_queue doesn't exist.
3731 (haifa_sched_finish): Reset insn_queue to NULL.
3733 2015-11-10 Robert Suchanek <robert.suchanek@imgtec.com>
3735 * regrename.c (create_new_chain): Initialize renamed and tied_chain.
3736 (build_def_use): Initialize terminated_this_insn.
3737 (find_best_rename_reg): Pick and check register from the tied chain.
3738 (regrename_do_replace): Mark head as renamed.
3739 (struct du_head *terminated_this_insn). New static variable.
3740 (scan_rtx_reg): Tie chains in move insns. Set terminated_this_insn.
3741 * regrename.h (struct du_head): Add tied_chain, renamed members.
3743 2015-11-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3746 * config/aarch64/aarch64.c (aarch64_use_constant_blocks_p):
3749 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
3752 * config/sparc/sparc.c (sparc_function_value_1): In 32-bit mode, do
3753 not promote the mode for aggregate types.
3755 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
3757 * omp-low.h (replace_oacc_fn_attrib, build_oacc_routine_dims): Declare.
3758 * omp-low.c (build_oacc_routine_dims): New.
3760 2015-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
3762 * config/rs6000/constraints.md (wF constraint): New constraints
3763 for power9/toc fusion.
3764 (wG constraint): Likewise.
3766 * config/rs6000/predicates.md (u6bit_cint_operand): New
3767 predicate, recognize 0..63.
3768 (upper16_cint_operand): New predicate for power9 and toc fusion.
3769 (fpr_reg_operand): Likewise.
3770 (toc_fusion_or_p9_reg_operand): Likewise.
3771 (toc_fusion_mem_raw): Likewise.
3772 (toc_fusion_mem_wrapped): Likewise.
3773 (fusion_gpr_addis): If power9 fusion, allow fusion for a larger
3775 (fusion_gpr_mem_combo): Delete, use fusion_addis_mem_combo_load
3777 (fusion_addis_mem_combo_load): Add support for power9 fusion of
3778 floating point loads, floating point stores, and gpr stores.
3779 (fusion_addis_mem_combo_store): Likewise.
3780 (fusion_offsettable_mem_operand): Likewise.
3782 * config/rs6000/rs6000-protos.h (emit_fusion_addis): Add declarations.
3783 (emit_fusion_load_store): Likewise.
3784 (fusion_p9_p): Likewise.
3785 (expand_fusion_p9_load): Likewise.
3786 (expand_fusion_p9_store): Likewise.
3787 (emit_fusion_p9_load): Likewise.
3788 (emit_fusion_p9_store): Likewise.
3789 (fusion_wrap_memory_address): Likewise.
3791 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add new
3792 elements for power9 fusion.
3793 (rs6000_debug_print_mode): Rework debug information to print more
3794 information about fusion.
3795 (rs6000_init_hard_regno_mode_ok): Setup for power9 fusion support.
3796 (rs6000_legitimate_address_p): Recognize toc fusion as a valid
3797 offsettable memory address.
3798 (rs6000_rtx_costs): Update costs for new ISA 3.0 instructions.
3799 (emit_fusion_gpr_load): Move most of the code from
3800 emit_fusion_gpr_load into emit_fusion-addis that handles both
3801 power8 and power9 fusion.
3802 (emit_fusion_addis): Likewise.
3803 (emit_fusion_load_store): Likewise.
3804 (fusion_wrap_memory_address): Add support for TOC fusion.
3805 (fusion_split_address): Likewise.
3806 (fusion_p9_p): Add support for power9 fusion.
3807 (expand_fusion_p9_load): Likewise.
3808 (expand_fusion_p9_store): Likewise.
3809 (emit_fusion_p9_load): Likewise.
3810 (emit_fusion_p9_store): Likewise.
3812 * config/rs6000/rs6000.h (TARGET_EXTSWSLI): Macros for support for
3813 new instructions in ISA 3.0.
3814 (TARGET_CTZ): Likewise.
3815 (TARGET_TOC_FUSION_INT): Macros for power9 fusion support.
3816 (TARGET_TOC_FUSION_FP): Likewise.
3818 * config/rs6000/rs6000.md (UNSPEC_FUSION_P9): New power9/toc
3820 (UNSPEC_FUSION_ADDIS): Likewise.
3821 (QHSI mode iterator): New iterator for power9 fusion.
3822 (GPR_FUSION): Likewise.
3823 (FPR_FUSION): Likewise.
3824 (mod<mode>3): Add support for ISA 3.0 modulus instructions.
3825 (umod<mode>3): Likewise.
3826 (divmod peephole): Likewise.
3827 (udivmod peephole): Likewise.
3828 (ctz<mode>2): Add support for ISA 3.0 count trailing zeros scalar
3830 (ctz<mode>2_h): Likewise.
3831 (ashdi3_extswsli): Add support for ISA 3.0 EXTSWSLI instruction.
3832 (ashdi3_extswsli_dot): Likewise.
3833 (ashdi3_extswsli_dot2): Likewise.
3834 (power9 fusion splitter): New power9/toc fusion support.
3835 (toc_fusionload_<mode>): Likewise.
3836 (toc_fusionload_di): Likewise.
3837 (fusion_gpr_load_<mode>): Update predicate function.
3838 (power9 fusion peephole2s): New power9/toc fusion support.
3839 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
3840 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_store): Likewise.
3841 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
3842 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
3843 (fusion_p9_<mode>_constant): Likewise.
3845 2015-11-09 Steve Ellcey <sellcey@imgtec.com>
3847 * optabs.c (prepare_libcall_arg): New function.
3848 (expand_fixed_convert): Add call to prepare_libcall_arg.
3850 2015-11-09 Nikolai Bozhenov <n.bozhenov@samsung.com>
3852 * sched-int.h (dump_rgn_dependencies_dot): Declare
3853 * sched-rgn.c (dump_rgn_dependencies_dot): New function
3854 * print-rtl.h (print_insn): Add prototype
3856 * haifa-sched.c (setup_sched_dump): Don't redirect output to stderr.
3857 * common.opt (-fsched-verbose): Set default value to 1.
3858 * invoke.texi (-fsched-verbose): Update the option's description.
3860 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
3862 * config/visium/visium.h (PRINT_OPERAND): Delete.
3863 (PRINT_OPERAND_PUNCT_VALID_P): Likewise.
3864 (PRINT_OPERAND_ADDRESS): Likewise.
3865 * config/visium/visium.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define
3867 (visium_print_operand_punct_valid_p): ...this. New function.
3868 (TARGET_PRINT_OPERAND): Define to...
3869 (print_operand): Rename to...
3870 (visium_print_operand): ...this.
3871 (TARGET_PRINT_OPERAND_ADDRESS): Define to...
3872 (visium_output_address): Rename to...
3873 (visium_print_operand_address): ...this.
3874 (print_operand_address): Delete.
3876 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
3879 * tree.h (reverse_storage_order_for_component_p) <COMPONENT_REF>:
3880 Check that the type of the first operand is an aggregate type.
3882 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
3884 * omp-low.c: Fix some OpenACC comment typos.
3885 (lower_reduction_clauses): Remove BUILT_IN_GOACC_GET_THREAD_NUM call.
3886 * omp-builtins.def (BUILT_IN_GOACC_GET_THREAD_NUM,
3887 BUILT_IN_GOACC_GET_NUM_THREADS): Delete.
3889 2015-11-09 Uros Bizjak <ubizjak@gmail.com>
3891 * config/i386/i386.md (*strmovqi_1): Fix insn enable condition.
3893 2015-11-09 Jeff Law <law@redhat.com>
3895 * tree-ssanames.c (verify_ssaname_freelists): Simplify check for
3896 being in gimple/ssa form. Remove redundant check for SSA_NAME.
3899 2015-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
3900 Peter Bergner <bergner@vnet.ibm.com>
3902 * config/rs6000/rs6000.opt (-mpower9-fusion): Add new switches for
3904 (-mpower9-vector): Likewise.
3905 (-mpower9-dform): Likewise.
3906 (-mpower9-minmax): Likewise.
3907 (-mtoc-fusion): Likewise.
3908 (-mmodulo): Likewise.
3909 (-mfloat128-hardware): Likewise.
3911 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add option
3912 mask for ISA 3.0 (power9).
3913 (POWERPC_MASKS): Add new ISA 3.0 switches.
3914 (power9 cpu): Add power9 cpu.
3916 * config/rs6000/rs6000.h (ASM_CPU_POWER9_SPEC): Add support for power9.
3917 (ASM_CPU_SPEC): Likewise.
3918 (EXTRA_SPECS): Likewise.
3920 * config/rs6000/rs6000-opts.h (enum processor_type): Add
3923 * config/rs6000/rs6000.c (power9_cost): Initial cost setup for power9.
3924 (rs6000_debug_reg_global): Add support for power9 fusion.
3925 (rs6000_setup_reg_addr_masks): Cache mode size.
3926 (rs6000_option_override_internal): Until real power9 tuning is
3927 added, use -mtune=power8 for -mcpu=power9.
3928 (rs6000_setup_reg_addr_masks): Do not allow pre-increment,
3929 pre-decrement, or pre-modify on SFmode/DFmode if we allow the use
3930 of Altivec registers.
3931 (rs6000_option_override_internal): Add support for ISA 3.0 switches.
3932 (rs6000_loop_align): Add support for power9 cpu.
3933 (rs6000_file_start): Likewise.
3934 (rs6000_adjust_cost): Likewise.
3935 (rs6000_issue_rate): Likewise.
3936 (insn_must_be_first_in_group): Likewise.
3937 (insn_must_be_last_in_group): Likewise.
3938 (force_new_group): Likewise.
3939 (rs6000_register_move_cost): Likewise.
3940 (rs6000_opt_masks): Likewise.
3942 * config/rs6000/rs6000.md (cpu attribute): Add power9.
3943 * config/rs6000/rs6000-tables.opt: Regenerate.
3945 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
3946 _ARCH_PWR9 if power9 support is available.
3948 * config/rs6000/aix61.h (ASM_CPU_SPEC): Add power9.
3949 * config/rs6000/aix53.h (ASM_CPU_SPEC): Likewise.
3951 * configure.ac: Determine if the assembler supports the ISA 3.0
3953 * config.in (HAVE_AS_POWER9): Likewise.
3954 * configure: Regenerate.
3956 * doc/invoke.texi (RS/6000 and PowerPC Options): Document ISA 3.0
3959 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3961 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate):
3962 Remove integer CONST_DOUBLE handling. It should never occur.
3964 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3967 * config/aarch64/aarch64.h (TARGET_SUPPORTS_WIDE_INT): Define to 1.
3968 * config/aarch64/aarch64.c (aarch64_print_operand, CONST_DOUBLE):
3969 Delete VOIDmode case. Assert that mode is not VOIDmode.
3970 * config/aarch64/predicates.md (const0_operand): Remove const_double
3973 2015-11-09 Martin Liska <mliska@suse.cz>
3975 * ipa-inline-analysis.c (estimate_function_body_sizes): Call
3976 body_info release function.
3977 * ipa-prop.c (ipa_release_body_info): New function.
3978 (ipa_analyze_node): Call the function.
3979 (ipa_node_params::~ipa_node_params): Release known_csts.
3980 * ipa-prop.h (ipa_release_body_info): Declare.
3982 2015-11-09 Martin Liska <mliska@suse.cz>
3984 * gcc.c (record_temp_file): Release name string.
3985 * ifcvt.c (noce_convert_multiple_sets): Use auto_vec instead of vec.
3986 * lra-lives.c (free_live_range_list): Utilize
3987 lra_live_range_pool for allocation and deallocation.
3988 (create_live_range): Likewise.
3989 (copy_live_range): Likewise.
3990 (lra_merge_live_ranges): Likewise.
3991 (remove_some_program_points_and_update_live_ranges): Likewise.
3992 (lra_create_live_ranges_1): Release point_freq_vec that can
3993 be not freed from previous iteration of the function.
3994 * tree-eh.c (lower_try_finally_switch): Use auto_vec instead of vec.
3995 * tree-sra.c (sra_deinitialize): Release all vectors in
3997 * tree-ssa-dom.c (free_dom_edge_info): Make the function extern.
3998 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
3999 Release edge_info for a removed edge.
4000 (thread_through_all_blocks): Free region vector.
4001 * tree-ssa.h (free_dom_edge_info): Declare function extern.
4003 2015-11-09 Ilya Enkovich <enkovich.gnu@gmail.com>
4005 * optabs.c (expand_vec_cond_expr): Always get sign from type.
4006 * tree.c (wide_int_to_tree): Support negative values for boolean.
4007 (build_nonstandard_boolean_type): Use signed type for booleans.
4009 2015-11-09 Richard Biener <rguenther@suse.de>
4011 PR tree-optimization/68248
4012 * tree-vect-generic.c (expand_vector_operations_1): Handle scalar rhs2.
4014 2015-11-09 Richard Biener <rguenther@suse.de>
4016 PR tree-optimization/56118
4017 * tree-vectorizer.h (vect_find_last_scalar_stmt_in_slp): Declare.
4018 * tree-vect-slp.c (vect_find_last_scalar_stmt_in_slp): Export.
4019 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): New
4021 (vect_slp_analyze_data_ref_dependences): Instead of computing
4022 all dependences of the region DRs just analyze the code motions
4023 SLP vectorization will perform. Remove SLP instances that
4024 cannot have their store/load motions applied.
4025 (vect_analyze_data_refs): Allow DRs without a vectype
4026 in BB vectorization.
4028 2015-11-09 Julian Brown <julian@codesourcery.com>
4030 * final.c (output_asm_insn): Pass VOIDmode to output_address.
4031 (output_address): Add MODE argument. Pass to print_operand_address
4033 * targhooks.c (default_print_operand_address): Add MODE argument.
4034 * targhooks.h (default_print_operand_address): Update prototype.
4035 * output.h (output_address): Update prototype.
4036 * target.def (print_operand_address): Add MODE argument.
4037 * config/vax/vax.c (print_operand_address): Pass VOIDmode to
4039 (print_operand): Pass access mode to output_address.
4040 * config/mcore/mcore.c (mcore_print_operand_address): Add MODE
4042 (mcore_print_operand): Update calls to mcore_print_operand_address.
4043 * config/fr30/fr30.c (fr30_print_operand): Pass VOIDmode to
4045 * config/lm32/lm32.c (lm32_print_operand): Pass mode in calls to
4047 * config/tilegx/tilegx.c (output_memory_reference_mode): Remove
4049 (tilegx_print_operand): Don't set above global. Update calls to
4051 (tilegx_print_operand_address): Add MODE argument. Use instead of
4052 output_memory_reference_mode global.
4053 * config/frv/frv.c (frv_print_operand_address): Add MODE argument.
4054 (frv_print_operand): Pass mode to frv_print_operand_address calls.
4055 * config/mn10300/mn10300.c (mn10300_print_operand): Pass mode to
4057 * config/cris/cris.c (cris_print_operand_address): Add MODE argument.
4058 (cris_print_operand): Pass mode to output_address calls.
4059 * config/spu/spu.c (print_operand): Pass mode to output_address calls.
4060 * config/aarch64/aarch64.h (aarch64_print_operand)
4061 (aarch64_print_operand_address): Remove prototypes.
4062 * config/aarch64/aarch64.c (aarch64_memory_reference_mode): Delete
4064 (aarch64_print_operand): Make static. Update calls to output_address.
4065 (aarch64_print_operand_address): Add MODE argument. Use instead of
4066 aarch64_memory_reference_mode global.
4067 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define target
4069 * config/aarch64/aarch64.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
4070 Delete macro definitions.
4071 * config/pa/pa.c (pa_print_operand): Pass mode in output_address calls.
4072 * config/xtensa/xtensa.c (print_operand): Pass mode in
4073 output_address calls.
4074 * config/h8300/h8300.c (h8300_print_operand_address): Add MODE
4076 (h83000_print_operand): Update calls to h8300_print_operand_address
4078 * config/ia64/ia64.c (ia64_print_operand_address): Add MODE argument.
4079 * config/tilepro/tilepro.c (output_memory_reference_mode): Delete
4081 (tilepro_print_operand): Pass mode to output_address.
4082 (tilepro_print_operand_address): Add MODE argument. Use instead of
4083 output_memory_reference_mode.
4084 * config/nvptx/nvptx.c (output_decl_chunk, nvptx_assemble_integer)
4085 (nvptx_output_call_insn, nvptx_print_address_operand): Pass VOIDmode
4086 to output_address calls.
4087 (nvptx_print_operand_address): Add MODE argument.
4088 * config/alpha/alpha.c (print_operand): Pass mode argument in
4089 output_address calls.
4090 * config/m68k/m68k.c (print_operand): Pass mode argument in
4091 output_address call.
4092 * config/avr/avr.c (avr_print_operand_address): Add MODE argument.
4093 (avr_print_operand): Update calls to avr_print_operand_address.
4094 * config/sparc/sparc.c (sparc_print_operand_address): Add MODE
4095 argument. Update calls to output_address.
4096 (sparc_print_operand): Pass mode to output_address.
4097 * config/iq2000/iq2000.c (iq2000_print_operand_address): Add MODE
4099 (iq2000_print_operand): Pass mode in output_address calls.
4100 * config/stormy16/stormy16.c (xstormy16_print_operand_address): Add
4102 (xstormy16_print_operand): Pass mode to
4103 xstormy16_print_operand_address calls.
4104 * config/mips/mips.c (mips_print_operand): Update calls to
4106 (mips_print_operand_address): Add MODE argument.
4107 * config/epiphany/epiphany.c (epiphany_print_operand): Update calls
4109 (epiphany_print_operand_address): Add MODE argument. Add FIXME note.
4110 * config/pdp11/pdp11.c (pdp11_asm_print_operand): Update call to
4112 * config/rx/rx.c (rx_print_operand_address): Add MODE argument.
4113 (rx_print_operand): Update calls to output_address,
4114 rx_print_operand_address.
4115 * config/nds32/nds32.c (nds32_print_operand): Update calls to
4117 (nds32_print_operand_address): Add MODE argument.
4118 * config/rs6000/rs6000.c (print_operand): Pass mem mode to
4119 output_address calls.
4120 * config/c6x/c6x.c (print_address_offset): Pass mem mode to
4121 output_address call.
4122 (c6x_print_address_operand): Update calls to output_address.
4123 (c6x_print_operand_address): Pass mode to above.
4124 * config/v850/v850.c (v850_print_operand_address): Add MODE argument.
4125 (v850_print_operand): Pass mode to v850_print_operand_address,
4127 * config/mmix/mmix.c (mmix_print_operand_address): Add MODE argument.
4128 (mmix_print_operand): Pass mode in output_address calls.
4129 * config/sh/sh.c (sh_print_operand_address): Add MODE argument.
4130 (sh_print_operand): Pass mem mode to output_address,
4131 sh_print_operand_address.
4132 * config/cr16/cr16.c (cr16_print_operand_address): Add MODE argument.
4133 (cr16_print_operand): Pass mode to output_address,
4134 cr16_print_operand_address.
4135 * config/bfin/bfin.c (print_address_operand): Pass VOIDmode to
4137 * config/microblaze/microblaze.c (print_operand): Pass mode to
4139 * config/nios2/nios2.c (nios2_print_operand): Pass VOIDmode to
4141 (nios2_print_operand_address): Add MODE argument. Update call to
4142 nios2_print_operand_address.
4143 * config/s390/s390.c (print_operand): Pass mode to output_address.
4144 * config/m32c/m32c.c (m32c_print_operand_address): Add MODE argument.
4145 * config/arc/arc.c (arc_print_operand): Pass VOIDmode to
4147 * config/arm/arm.c (arm_print_operand_address): Add MODE argument.
4148 Use instead of output_memory_reference_mode.
4149 (output_memory_reference_mode): Delete global.
4150 (arm_print_operand): Pass mem mode to output_address.
4151 * config/m32r/m32r.c (m32r_print_operand_address): Add MODE argument.
4152 (m32r_print_operand): Pass mode to output_address.
4153 * config/msp430/msp430.c (msp430_print_operand_addr): Add MODE
4155 (msp430_print_operand): Pass mode to msp430_print_operand_addr.
4156 * config/i386/i386.c (ix86_print_operand): Pass mode to
4157 output_address calls.
4158 (ix86_print_operand_address): Add MODE argument.
4160 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
4163 * tree-core.h (REF_REVERSE_STORAGE_ORDER): Move around.
4164 * tree.h (REF_REVERSE_STORAGE_ORDER): Change to default_def_flag.
4165 * tree-streamer-in.c (unpack_ts_base_value_fields): Adjust.
4166 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
4168 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4170 PR rtl-optimization/67749
4171 * ifcvt.c (noce_try_cmove_arith): Do not emit move in IF-ELSE
4172 case before emitting the two blocks. Instead modify the register
4173 in the corresponding final insn of the basic block.
4175 2015-11-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4177 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Allow for differences in
4180 Define HAVE_INITFINI_ARRAY_SUPPORT as 0/1.
4182 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define to
4183 HAVE_INITFINI_ARRAY_SUPPORT.
4184 * config/initfini-array.h: Check HAVE_INITFINI_ARRAY_SUPPORT value.
4186 * configure.ac (gcc_cv_as_sparc_nobits): Remove.
4187 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section):
4188 Don't check HAVE_AS_SPARC_NOBITS.
4189 Heed SECTION_NOTYPE.
4191 * configure: Regenerate.
4192 * config.in: Regenerate.
4194 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
4197 * fold-const.c (fold_truth_andor_1): Initialize new variables to 0.
4199 2015-11-09 Richard Henderson <rth@redhat.com>
4201 * config/i386/i386-c.c (ix86_target_macros): Define __SEG_FS,
4202 __SEG_GS, __SEG_TLS.
4203 (ix86_register_pragmas): Register address spaces __seg_fs,
4204 __seg_gs, __seg_tls.
4205 * config/i386/i386-protos.h (enum ix86_address_seg): Remove.
4206 (ADDR_SPACE_SEG_FS, ADDR_SPACE_SEG_GS, ADDR_SPACE_SEG_TLS): New.
4207 (struct ix86_address): Use addr_space_t instead of ix86_address_seg.
4208 * config/i386/i386.c (ix86_decompose_address): Likewise.
4209 (ix86_legitimate_address_p): Likewise.
4210 (memory_address_length): Likewise. Check mem address space too.
4211 (ix86_print_operand): Use ix86_print_operand_address_as.
4212 (ix86_print_operand_address_as): Rename from
4213 ix86_print_operand_address, add new addr_space_t parameter.
4214 Validate that either the parameter or the ix86_address segment
4215 is default address space. Handle ADDR_SPACE_SEG_TLS.
4216 (ix86_print_operand_address): New.
4217 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): New.
4218 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): New.
4219 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): New.
4220 (ix86_addr_space_zero_address_valid): New.
4221 (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
4222 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): Use addr_space_t constants.
4223 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Likewise.
4224 * config/i386/predicates.md (address_no_seg_operand): Likewise.
4225 (vsib_address_operand): Likewise.
4226 (address_mpx_no_base_operand): Likewise.
4227 (address_mpx_no_index_operand): Likewise.
4228 * doc/extend.texi (x86 Named Address Spaces): New section.
4230 * config/i386/i386.c (ix86_check_no_addr_space): New.
4231 (decide_alg): Add have_as parameter.
4232 (alg_usable_p): Likewise; disable rep algorithms if set.
4233 (ix86_expand_set_or_movmem): Notice if either MEM has a
4234 non-default address space.
4235 (ix86_expand_strlen): Likewise.
4236 * config/i386/i386.md (strmov, strset): Likewise.
4237 (*strmovdi_rex_1): Use ix86_check_no_addr_space.
4238 (*strmovsi_1, *strmovqi_1, *rep_movdi_rex64, *rep_movsi, *rep_movqi,
4239 *strsetdi_rex_1, *strsetsi_1, *strsethi_1, *strsetqi_1,
4240 *rep_stosdi_rex64, *rep_stossi, *rep_stosqi, *cmpstrnqi_nz_1,
4241 *cmpstrnqi_1, *strlenqi_1): Likewise.
4243 * config/i386/i386.md (*movabs<mode>_1): Print the full memory rtx.
4244 (*movabs<mode>_2): Likewise.
4246 * dwarf2out.c (modified_type_die): Pass the address space number
4247 through TARGET_ADDR_SPACE_DEBUG to produce the dwarf address class.
4248 * target.def (TARGET_ADDR_SPACE_DEBUG): New.
4249 * targhooks.c (default_addr_space_debug): New.
4250 * targhooks.h (default_addr_space_debug): Declare.
4251 * doc/tm.texi.in (TARGET_ADDR_SPACE_DEBUG): Mark it.
4252 * doc/tm.texi: Rebuild.
4254 * gimple.c (check_loadstore): Return false when 0 is a valid address.
4255 * fold-const.c (const_unop) [ADDR_SPACE_CONVERT_EXPR]: Do not fold
4256 null when 0 is valid in the source address space.
4257 * target.def (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
4258 * targhooks.c (default_addr_space_zero_address_valid): New.
4259 * targhooks.h (default_addr_space_zero_address_valid): Declare.
4260 * doc/tm.texi.in (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): Mark it.
4261 * doc/tm.texi: Rebuild.
4263 * cselib.c (add_mem_for_addr): Compare address spaces when
4265 (cselib_lookup_mem): Likewise.
4266 * fold-const.c (operand_equal_p): Check address spaces of
4267 pointer types before checking integer constants.
4270 * tree-ssa-address.c (create_mem_ref_raw): Use a pointer of
4271 the correct type for the base.
4273 2015-11-09 Jeff Law <law@redhat.com>
4275 * tree-into-ssa.c (names_to_release): No longer static.
4276 * tree-into-ssa.h (names_to_release): Declare.
4277 * tree-ssanames.c (verify_ssaname_freelists): New debug function.
4278 (release_free_names_and_compact_live_names): New function extracted
4279 from pass_release_ssa_names::execute.
4280 (pass_release_ssa_names::execute): Use it.
4282 2015-11-09 Alan Modra <amodra@gmail.com>
4284 * gensupport.c (add_mnemonic_string): Make len param a size_t.
4285 (gen_mnemonic_setattr): Make "size" var a size_t. Use
4286 obstack_blank_fast to shrink obstack. Cast obstack_next_free
4289 2015-11-09 Segher Boessenkool <segher@kernel.crashing.org>
4291 PR rtl-optimization/68182
4292 * bb-reorder.c (reorder_basic_blocks_simple): Treat a conditional
4293 branch with only one successor just like unconditional branches.
4295 2015-11-08 Jeff Law <law@redhat.com>
4297 * tree-ssa-threadupdate.c (register_jump_thraed): Assert that a
4298 non-FSM path has no edges marked with EDGE_DFS_BACK.
4299 (ssa_redirect_edges): No longer call mark_loop_for_removal.
4300 (thread_single_edge, def_split_header_continue_p): Remove.
4301 (bb_ends_with_multiway_branch): Likewise.
4302 (thread_through_loop_header): Remove cases of threading from
4303 latch through the header. Simplify knowing we won't thread
4305 (thread_through_all_blocks): Simplify knowing that only the FSM
4306 threader needs to handle backedges.
4308 2015-11-08 Eric Botcazou <ebotcazou@adacore.com>
4310 * doc/extend.texi (type attributes): Document scalar_storage_order.
4311 (Structure-Packing Pragmas): Rename into...
4312 (Structure-Layout Pragmas): ...this. Document scalar_storage_order.
4313 * doc/invoke.texi (C Dialect Options): Document -fsso-struct
4314 (Warnings): Document -Wno-scalar-storage-order.
4315 * flag-types.h (enum scalar_storage_order_kind): New enumeration.
4316 * calls.c (store_unaligned_arguments_into_pseudos): Adjust calls to
4317 extract_bit_field and store_bit_field.
4318 (initialize_argument_information): Adjust call to store_expr.
4319 (load_register_parameters): Adjust call to extract_bit_field.
4320 * expmed.c (check_reverse_storage_order_support): New function.
4321 (check_reverse_float_storage_order_support): Likewise.
4322 (flip_storage_order): Likewise.
4323 (store_bit_field_1): Add REVERSE parameter. Flip the storage order
4324 of the value if it is true. Pass REVERSE to recursive call after
4325 adjusting the target offset.
4326 Do not use extraction or movstrict instruction if REVERSE is true.
4327 Pass REVERSE to store_fixed_bit_field.
4328 (store_bit_field): Add REVERSE parameter and pass to it to above.
4329 (store_fixed_bit_field): Add REVERSE parameter and pass to it to
4330 store_split_bit_field and store_fixed_bit_field_1.
4331 (store_fixed_bit_field_1): Add REVERSE parameter. Flip the storage
4332 order of the value if it is true and adjust the target offset.
4333 (store_split_bit_field): Add REVERSE parameter and pass it to
4334 store_fixed_bit_field. Adjust the target offset if it is true.
4335 (extract_bit_field_1): Add REVERSE parameter. Flip the storage order
4336 of the value if it is true. Pass REVERSE to recursive call after
4337 adjusting the target offset.
4338 Do not use extraction or subreg instruction if REVERSE is true.
4339 Pass REVERSE to extract_fixed_bit_field.
4340 (extract_bit_field): Add REVERSE parameter and pass to it to above.
4341 (extract_fixed_bit_field): Add REVERSE parameter and pass to it to
4342 extract_split_bit_field and extract_fixed_bit_field_1.
4343 (extract_fixed_bit_field_1): Add REVERSE parameter. Flip the storage
4344 order of the value if it is true and adjust the target offset.
4345 (extract_split_bit_field): Add REVERSE parameter and pass it to
4346 extract_fixed_bit_field. Adjust the target offset if it is true.
4347 * expmed.h (flip_storage_order): Declare.
4348 (store_bit_field): Adjust prototype.
4349 (extract_bit_field): Likewise.
4350 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
4351 (emit_group_store): Adjust call to store_bit_field.
4352 (copy_blkmode_from_reg): Likewise.
4353 (copy_blkmode_to_reg): Likewise.
4354 (write_complex_part): Likewise.
4355 (read_complex_part): Likewise.
4356 (optimize_bitfield_assignment_op): Add REVERSE parameter. Assert
4357 that it isn't true if the target is a register.
4358 <PLUS_EXPR>: If it is, do not optimize unless bitsize is equal to 1,
4359 and flip the storage order of the value.
4360 <BIT_IOR_EXPR>: Flip the storage order of the value.
4361 (get_bit_range): Adjust call to get_inner_reference.
4362 (expand_assignment): Adjust calls to get_inner_reference, store_expr,
4363 optimize_bitfield_assignment_op and store_field. Handle MEM_EXPRs
4364 with reverse storage order.
4365 (store_expr_with_bounds): Add REVERSE parameter and pass it to
4366 recursive calls and call to store_bit_field. Force the value into a
4367 register if it is true and then flip the storage order of the value.
4368 (store_expr): Add REVERSE parameter and pass it to above.
4369 (categorize_ctor_elements_1): Adjust call to
4370 initializer_constant_valid_p.
4371 (store_constructor_field): Add REVERSE parameter and pass it to
4372 recursive calls and call to store_field.
4373 (store_constructor): Add REVERSE parameter and pass it to calls to
4374 store_constructor_field and store_expr. Set it to true for an
4375 aggregate type with TYPE_REVERSE_STORAGE_ORDER.
4376 (store_field): Add REVERSE parameter and pass it to recursive calls
4377 and calls to store_expr and store_bit_field. Temporarily flip the
4378 storage order of the value with record type and integral mode and
4379 adjust the shift if it is true.
4380 (get_inner_reference): Add PREVERSEP parameter and set it to true
4381 upon encoutering a reference with reverse storage order.
4382 (expand_expr_addr_expr_1): Adjust call to get_inner_reference.
4383 (expand_constructor): Adjust call to store_constructor.
4384 (expand_expr_real_2) <CASE_CONVERT>: Pass TYPE_REVERSE_STORAGE_ORDER
4385 of the union type to store_expr in the MEM case and assert that it
4386 isn't set in the REG case. Adjust call to store_field.
4387 (expand_expr_real_1) <MEM_REF>: Handle reverse storage order.
4388 <normal_inner_ref>: Add REVERSEP variable and adjust calls to
4389 get_inner_reference and extract_bit_field. Temporarily flip the
4390 storage order of the value with record type and integral mode and
4391 adjust the shift if it is true. Flip the storage order of the value
4392 at the end if it is true.
4393 <VIEW_CONVERT_EXPR>: Add REVERSEP variable and adjust call to
4394 get_inner_reference. Do not fetch an inner reference if it is true.
4395 * expr.h (store_expr_with_bounds): Ajust prototype.
4396 (store_expr): Likewise.
4397 * fold-const.c (make_bit_field_ref): Add REVERSEP parameter and set
4398 REF_REVERSE_STORAGE_ORDER on the reference according to it.
4399 (optimize_bit_field_compare): Deal with reverse storage order.
4400 Adjust calls to get_inner_reference and make_bit_field_ref.
4401 (decode_field_reference): Add PREVERSEP parameter and adjust call to
4402 get_inner_reference.
4403 (fold_truth_andor_1): Deal with reverse storage order. Adjust calls
4404 to decode_field_reference and make_bit_field_ref.
4405 (fold_unary_loc) <CASE_CONVERT>: Adjust call to get_inner_reference.
4406 <VIEW_CONVERT_EXPR>: Propagate the REF_REVERSE_STORAGE_ORDER flag.
4407 (fold_comparison): Adjust call to get_inner_reference.
4408 (split_address_to_core_and_offset): Adjust call to
4409 get_inner_reference.
4410 * gimple-expr.c (useless_type_conversion_p): Return false for array
4411 types with different TYPE_REVERSE_STORAGE_ORDER flag.
4412 * gimplify.c (gimplify_expr) <MEM_REF>: Propagate the
4413 REF_REVERSE_STORAGE_ORDER flag.
4414 * lto-streamer-out.c (hash_tree): Deal with TYPE_REVERSE_STORAGE_ORDER.
4415 * output.h (assemble_real): Adjust prototype.
4416 * print-tree.c (print_node): Convey TYPE_REVERSE_STORAGE_ORDER.
4417 * stor-layout.c (finish_record_layout): Propagate the
4418 TYPE_REVERSE_STORAGE_ORDER flag to the variants.
4419 * tree-core.h (TYPE_REVERSE_STORAGE_ORDER): Document.
4420 (TYPE_SATURATING): Adjust.
4421 (REF_REVERSE_STORAGE_ORDER): Document.
4422 * tree-dfa.c (get_ref_base_and_extent): Add PREVERSE parameter and
4423 set it to true upon encoutering a reference with reverse storage order.
4424 * tree-dfa.h (get_ref_base_and_extent): Adjust prototype.
4425 * tree-inline.c (remap_gimple_op_r): Propagate the
4426 REF_REVERSE_STORAGE_ORDER flag.
4427 (copy_tree_body_r): Likewise.
4428 * tree-outof-ssa.c (insert_value_copy_on_edge): Adjust call to
4430 * tree-streamer-in.c (unpack_ts_base_value_fields): Deal with
4431 TYPE_REVERSE_STORAGE_ORDER and REF_REVERSE_STORAGE_ORDER.
4432 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
4433 * tree.c (stabilize_reference) <BIT_FIELD_REF>: Propagate the
4434 REF_REVERSE_STORAGE_ORDER flag.
4435 (verify_type_variant): Deal with TYPE_REVERSE_STORAGE_ORDER.
4436 (gimple_canonical_types_compatible_p): Likewise.
4437 * tree.h (TYPE_REVERSE_STORAGE_ORDER): New flag.
4438 (TYPE_SATURATING): Adjust.
4439 (REF_REVERSE_STORAGE_ORDER): New flag.
4440 (reverse_storage_order_for_component_p): New inline predicate.
4441 (storage_order_barrier_p): Likewise.
4442 (get_inner_reference): Adjust prototype.
4443 * varasm.c: Include expmed.h.
4444 (assemble_variable_contents): Adjust call to output_constant.
4445 (assemble_real): Add REVERSE parameter. Flip the storage
4446 order of the value if REVERSE is true.
4447 (compare_constant) <CONSTRUCTOR>: Compare TYPE_REVERSE_STORAGE_ORDER.
4448 (assemble_constant_contents): Adjust call to output_constant.
4449 (output_constant_pool_2): Adjust call to assemble_real.
4450 (initializer_constant_valid_p_1) <CONSTRUCTOR>: Deal with
4451 TYPE_REVERSE_STORAGE_ORDER.
4452 (initializer_constant_valid_p): Add REVERSE parameter.
4453 (output_constant): Add REVERSE parameter.
4454 <INTEGER_TYPE>: Flip the storage order of the value if REVERSE is true.
4455 <REAL_TYPE>: Adjust call to assemble_real.
4456 <COMPLEX_TYPE>: Pass it to recursive calls.
4457 <ARRAY_TYPE>: Likewise. Adjust call to output_constructor.
4458 <RECORD_TYPE>: Likewise. Adjust call to output_constructor.
4459 (struct oc_local_state): Add REVERSE field.
4460 (output_constructor_array_range): Adjust calls to output_constant.
4461 (output_constructor_regular_field): Likewise.
4462 (output_constructor_bitfield): Adjust call to output_constructor.
4463 Flip the storage order of the value if REVERSE is true.
4464 (output_constructor): Add REVERSE parameter. Set it to true for an
4465 aggregate type with TYPE_REVERSE_STORAGE_ORDER. Adjust call to
4466 output_constructor_bitfield.
4467 * varasm.h (initializer_constant_valid_p): Default REVERSE to false.
4468 * asan.c (instrument_derefs): Adjust call to get_inner_reference.
4469 * builtins.c (get_object_alignment_2): Likewise.
4470 * cfgexpand.c (expand_debug_expr): Adjust call to get_inner_reference
4471 and get_ref_base_and_extent.
4472 * dbxout.c (dbxout_expand_expr): Likewise.
4473 * dwarf2out.c (add_var_loc_to_decl): Likewise.
4474 (loc_list_for_address_of_addr_expr_of_indirect_ref): Likewise.
4475 (loc_list_from_tree): Likewise.
4476 (fortran_common): Likewise.
4477 * gimple-fold.c (gimple_fold_builtin_memory_op): Adjust calls to
4478 get_ref_base_and_extent.
4479 (get_base_constructor): Likewise.
4480 (fold_const_aggregate_ref_1): Likewise.
4481 * gimple-laddress.c (pass_laddress::execute): Adjust call to
4482 get_inner_reference.
4483 * gimple-ssa-strength-reduction.c (slsr_process_ref): Adjust call to
4484 get_inner_reference and bail out on reverse storage order.
4485 * ifcvt.c (noce_emit_move_insn): Adjust calls to store_bit_field.
4486 * ipa-cp.c (ipa_get_jf_ancestor_result): Adjust call to
4487 build_ref_for_offset.
4488 * ipa-polymorphic-call.c (set_by_invariant): Adjust call to
4489 get_ref_base_and_extent.
4490 (ipa_polymorphic_call_context): Likewise.
4491 (extr_type_from_vtbl_ptr_store): Likewise.
4492 (check_stmt_for_type_change): Likewise.
4493 (get_dynamic_type): Likewise.
4494 * ipa-prop.c (ipa_load_from_parm_agg_1): Adjust call to
4495 get_ref_base_and_extent.
4496 (compute_complex_assign_jump_func): Likewise.
4497 (get_ancestor_addr_info): Likewise.
4498 (compute_known_type_jump_func): Likewise.
4499 (determine_known_aggregate_parts): Likewise.
4500 (ipa_get_adjustment_candidate): Likewise.
4501 (ipa_modify_call_arguments): Set REF_REVERSE_STORAGE_ORDER on MEM_REF.
4502 * ipa-prop.h (ipa_parm_adjustment): Add REVERSE field.
4503 (build_ref_for_offset): Adjust prototype.
4504 * simplify-rtx.c (delegitimize_mem_from_attrs): Adjust call to
4505 get_inner_reference.
4506 * tree-affine.c (tree_to_aff_combination): Adjust call to
4507 get_inner_reference.
4508 (get_inner_reference_aff): Likewise.
4509 * tree-data-ref.c (split_constant_offset_1): Likewise.
4510 (dr_analyze_innermost): Likewise. Bail out if reverse storage order.
4511 * tree-scalar-evolution.c (interpret_rhs_expr): Adjust call to
4512 get_inner_reference.
4513 * tree-sra.c (struct access): Add REVERSE and move WRITE around.
4514 (dump_access): Print new fields.
4515 (create_access): Adjust call to get_ref_base_and_extent and set the
4516 REVERSE flag according to the result.
4517 (completely_scalarize_record): Set the REVERSE flag.
4518 (scalarize_elem): Add REVERSE parameter.
4519 (build_access_from_expr_1): Preserve storage order barriers.
4520 (build_accesses_from_assign): Likewise.
4521 (build_ref_for_offset): Add REVERSE parameter and set the
4522 REF_REVERSE_STORAGE_ORDER flag accordingly.
4523 (build_ref_for_model): Adjust call to build_ref_for_offset and clear
4524 the REF_REVERSE_STORAGE_ORDER flag if there are components.
4525 (analyze_access_subtree): Likewise.
4526 (create_artificial_child_access): Set the REVERSE flag.
4527 (get_access_for_expr): Adjust call to get_ref_base_and_extent.
4528 (turn_representatives_into_adjustments): Propagate REVERSE flag.
4529 (ipa_sra_check_caller): Adjust call to get_inner_reference.
4530 * tree-ssa-alias.c (ao_ref_base): Adjust call to
4531 get_ref_base_and_extent.
4532 (aliasing_component_refs_p): Likewise.
4533 (stmt_kills_ref_p_1): Likewise.
4534 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
4535 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p) <MEM_REF>: New.
4536 Return true if reverse storage order.
4537 <BIT_FIELD_REF>: Likewise.
4538 <COMPONENT_REF>: Likewise.
4539 <ARRAY_REF>: Likewise.
4540 <ARRAY_RANGE_REF>: Likewise.
4541 (split_address_cost): Likewise. Bail out if reverse storage order.
4542 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Adjust call to
4543 get_inner_reference. Bail out if reverse storage order.
4544 (bswap_replace): Adjust call to get_inner_reference.
4545 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <MEM_REF>: Set
4546 the REF_REVERSE_STORAGE_ORDER flag.
4547 <BIT_FIELD_REF>: Likewise.
4548 * tree-ssa-sccvn.c (vn_reference_eq): Return false on storage order
4550 (copy_reference_ops_from_ref) <MEM_REF>: Set REVERSE field according
4551 to the REF_REVERSE_STORAGE_ORDER flag.
4552 <BIT_FIELD_REF>: Likewise.
4553 <VIEW_CONVERT_EXPR>: Set it for storage order barriers.
4554 (contains_storage_order_barrier_p): New predicate.
4555 (vn_reference_lookup_3): Adjust calls to get_ref_base_and_extent.
4556 Punt on storage order barriers if necessary.
4557 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add REVERSE.
4558 * tree-ssa-structalias.c (get_constraint_for_component_ref): Adjust
4559 call to get_ref_base_and_extent.
4560 (do_structure_copy): Likewise.
4561 * tree-vect-data-refs.c (vect_check_gather): Adjust call to
4562 get_inner_reference.
4563 (vect_analyze_data_refs): Likewise. Bail out if reverse storage order.
4564 * tsan.c (instrument_expr): Adjust call to get_inner_reference.
4565 * ubsan.c (instrument_bool_enum_load): Likewise.
4566 (instrument_object_size): Likewise.
4567 * var-tracking.c (track_expr_p): Adjust call to
4568 get_ref_base_and_extent.
4569 * config/mips/mips.c (r10k_safe_mem_expr_p): Adjust call to
4570 get_inner_reference.
4571 * config/s390/s390.c (s390_expand_atomic): Adjust call to
4573 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust call to
4575 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
4577 2015-11-07 Eric Botcazou <ebotcazou@adacore.com>
4579 * config/sparc/sparc.opt (mfix-at697f): Add final period.
4581 2015-11-07 Segher Boessenkool <segher@kernel.crashing.org>
4583 PR rtl-optimization/67864
4584 * common/config/i386/i386-common.c (ix86_option_optimization_table)
4585 <OPT_freorder_blocks_algorithm_>: Use REORDER_BLOCKS_ALGORITHM_STC
4588 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
4590 * trans-mem.c (is_tm_pure_call): Use gimple_call_flags for
4593 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
4595 * builtins.def: #undef DEF_BUILTIN and DEF_BUILTIN_CHKP
4596 * builtins.c, genmatch.c, tree-core.h: Don't undef them here.
4598 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
4600 * internal-fn.def: #undef DEF_INTERNAL_FN at the end.
4601 * internal-fn.c: Don't undef it here.
4602 * tree-core.h: Likewise.
4604 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
4606 * builtins.c (fold_builtin_nan): Delete.
4607 (fold_builtin_memcmp): Remove case where both arguments are constant.
4608 (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
4609 (fold_builtin_strspn, fold_builtin_strcspn): Likewise.
4610 (fold_builtin_1): Remove BUILT_IN_NAN* handling.
4611 * fold-const-call.c: Include fold-const.h.
4612 (host_size_t_cst_p): New function.
4613 (build_cmp_result, fold_const_builtin_nan): Likewise.
4614 (fold_const_call_1): New function, split out from...
4615 (fold_const_call): ...here (for all three interfaces). Handle
4616 constant nan, nans, strlen, strcmp, strncmp, strspn and strcspn.
4618 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
4620 * builtins.c (fold_builtin_bitop, fold_builtin_bswap): Delete.
4621 (fold_builtin_1): Don't call them.
4622 * fold-const-call.c: Include tm.h.
4623 (fold_const_call_ss): New variant for integer-to-integer folds.
4624 (fold_const_call): Call it.
4626 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
4628 * builtins.c (fold_builtin_classify): Move constant cases to...
4629 * fold-const-call.c (fold_const_call_ss): ...here.
4631 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
4633 * builtins.h (c_getstr): Move to...
4634 * fold-const.h (c_getstr): ...here.
4635 * builtins.c (c_getstr): Move to...
4636 * fold-const.c (c_getstr): ...here.
4638 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
4640 * builtins.def (BUILTIN_RINT, BUILTIN_RINTF, BUILTIN_RINTL): Use
4641 ATTR_MATHFN_FPROUNDING rather than ATTR_MATHFN_FPROUNDING_ERRNO.
4643 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
4645 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Try to update
4646 the dominance info; free it if we can't.
4647 (pass_call_cdce::execute): Don't free the dominance info here.
4649 2015-11-06 Jeff Law <law@redhat.com>
4651 * tree-ssa-threadedge.c (dummy_simplify): Remove.
4652 (thread_around_empty_blocks): Remove backedge_seen_p argument.
4653 If we thread to a backedge, then return false. Update recursive
4654 call to eliminate backedge_seen_p argument.
4655 (thread_through_normal_block): Remove backedge_seen_p argument.
4656 Remove backedge_seen_p argument from calls to
4657 thread_around_empty_blocks. Remove checks on backedge_seen_p.
4658 If we thread to a backedge, then return 0.
4659 (thread_across_edge): Remove bookkeeping for backedge_seen. Don't
4660 pass it to thread_through_normal_block or thread_through_empty_blocks.
4661 For joiner handling, if we see a backedge, do not try normal
4664 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
4666 * graphite-optimize-isl.c (optimize_isl): Call isl_union_map_is_equal.
4667 * graphite-poly.c (new_scop): Initialize original_schedule.
4668 (free_scop): Free original_schedule.
4669 * graphite-poly.h (struct scop): Add field original_schedule.
4670 * graphite-sese-to-poly.c (build_scop_original_schedule): New.
4671 (build_poly_scop): Call build_scop_original_schedule.
4673 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
4675 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
4676 (build_pbb_minimal_scattering_polyhedrons): New.
4677 (build_scop_scattering): Remove.
4678 (build_scop_minimal_scattering): New.
4679 (build_scop_scattering): Call build_pbb_minimal_scattering_polyhedrons.
4680 (build_poly_scop): Call build_scop_minimal_scattering.
4682 2015-11-06 Jeff Law <law@redhat.com>
4684 * cfg-flags.def (IGNORE): New edge flag.
4685 * tree-vrp.c (identify_jump_threads): Mark and clear edges
4686 scheduled for removal with EDGE_IGNORE around call into
4687 jump threader. Do no thread across edges with EDGE_IGNORE,
4688 but do allow threading across those with EDGE_DFS_BACK.
4690 2015-11-06 David Wohlferd <dw@LimeGreenSocks.com>
4692 * doc/md.texi (multi-alternative constraints): Don't document
4693 alternatives inherently tied to reload for the user documentation.
4695 2015-11-06 Michael Collison <michael.collison@linaro.org>
4696 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4699 2015-08-01 Michael Collison <michael.collison@linaro.org
4700 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4702 * config/arm/arm.md (*arm_smin_cmp): New pattern.
4703 (*arm_umin_cmp): Likewise.
4705 2015-11-06 Jakub Jelinek <jakub@redhat.com>
4707 * gimplify.c (gimplify_omp_ordered): Fix up diagnostics wording.
4708 * omp-low.c (check_omp_nesting_restrictions): Update for the
4709 various new OpenMP 4.5 nesting restrictions, clarified
4710 nesting glossary, closely nested region relationship clarified
4711 to mean explicit or implicit parallel regions (target/teams),
4712 use %</%> or %qs where appropriate.
4714 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
4715 Sebastian Pop <s.pop@samsung.com>
4717 * graphite-scop-detection.c (loop_is_valid_scop): Call
4718 optimize_loop_nest_for_speed_p.
4720 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
4721 Sebastian Pop <s.pop@samsung.com>
4723 * graphite-optimize-isl.c (optimize_isl): Call
4724 isl_options_set_schedule_maximize_band_depth.
4726 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
4727 Sebastian Pop <s.pop@samsung.com>
4729 * graphite-scop-detection.c (scop_detection::merge_sese): Entry
4730 and exit edges should not be a part of irreducible loop.
4731 (scop_detection::can_represent_loop_1): Loops should not be
4733 (scop_detection::harmful_stmt_in_region): All the basic block
4734 should belong to reducible loops.
4736 2015-11-06 Christophe Lyon <christophe.lyon@linaro.org>
4738 * config/aarch64/aarch64-simd-builtins.def: Update builtins
4739 tables: add tbl3v16qi, qtbl[34]*, tbx4v16qi, qtbx[34]*.
4740 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): Rename to...
4741 (aarch64_tbl3<mode>) ... this, which supports v16qi too.
4742 (aarch64_tbx4v8qi): Rename to...
4743 aarch64_tbx4<mode>): ... this.
4744 (aarch64_qtbl3<mode>): New pattern.
4745 (aarch64_qtbx3<mode>): New pattern.
4746 (aarch64_qtbl4<mode>): New pattern.
4747 (aarch64_qtbx4<mode>): New pattern.
4748 * config/aarch64/arm_neon.h (vqtbl2_s8, vqtbl2_u8, vqtbl2_p8)
4749 (vqtbl2q_s8, vqtbl2q_u8, vqtbl2q_p8, vqtbl3_s8, vqtbl3_u8)
4750 (vqtbl3_p8, vqtbl3q_s8, vqtbl3q_u8, vqtbl3q_p8, vqtbl4_s8)
4751 (vqtbl4_u8, vqtbl4_p8, vqtbl4q_s8, vqtbl4q_u8, vqtbl4q_p8)
4752 (vqtbx2_s8, vqtbx2_u8, vqtbx2_p8, vqtbx2q_s8, vqtbx2q_u8)
4753 (vqtbx2q_p8, vqtbx3_s8, vqtbx3_u8, vqtbx3_p8, vqtbx3q_s8)
4754 (vqtbx3q_u8, vqtbx3q_p8, vqtbx4_s8, vqtbx4_u8, vqtbx4_p8)
4755 (vqtbx4q_s8, vqtbx4q_u8, vqtbx4q_p8): Rewrite using builtin
4758 2015-11-06 Mike Stump <mikestump@comcast.net>
4761 * dwarf2out.c (get_full_len): Return a value based upon the actual
4762 precision needed for the value.
4763 (add_const_value_attribute): Use a maximal wide-int for
4764 CONST_WIDE_INTs, not VOIDmode.
4765 (output_die): Don't ever output NULL with printf.
4767 * rtl.h (get_precision of rtx_mode_t): Ensure we never process
4768 BLKmode nor VOIDmode values.
4770 2015-11-06 David Malcolm <dmalcolm@redhat.com>
4772 * diagnostic-color.c (color_dict): Eliminate "caret"; add "range1"
4774 (parse_gcc_colors): Update comment to describe default GCC_COLORS.
4775 * diagnostic-core.h (warning_at_rich_loc): New declaration.
4776 (error_at_rich_loc): New declaration.
4777 (permerror_at_rich_loc): New declaration.
4778 (inform_at_rich_loc): New declaration.
4779 * diagnostic-show-locus.c (adjust_line): Delete.
4780 (struct point_state): New struct.
4781 (class colorizer): New class.
4782 (class layout_point): New class.
4783 (class layout_range): New class.
4784 (struct line_bounds): New.
4785 (class layout): New class.
4786 (colorizer::colorizer): New ctor.
4787 (colorizer::~colorizer): New dtor.
4788 (layout::layout): New ctor.
4789 (layout::print_source_line): New method.
4790 (layout::print_annotation_line): New method.
4791 (layout::get_state_at_point): New method.
4792 (layout::get_x_bound_for_row): New method.
4793 (diagnostic_show_locus): Reimplement in terms of class layout.
4794 (diagnostic_print_caret_line): Delete.
4795 * diagnostic.c (diagnostic_initialize): Replace
4796 MAX_LOCATIONS_PER_MESSAGE with rich_location::MAX_RANGES.
4797 (diagnostic_set_info_translated): Convert param from location_t
4798 to rich_location *. Eliminate calls to set_location on the
4799 message in favor of storing the rich_location ptr there.
4800 (diagnostic_set_info): Convert param from location_t to
4802 (diagnostic_build_prefix): Break out array into...
4803 (diagnostic_kind_color): New variable.
4804 (diagnostic_get_color_for_kind): New function.
4805 (diagnostic_report_diagnostic): Colorize the option_text
4806 using the color for the severity.
4807 (diagnostic_append_note): Update for change in signature of
4808 diagnostic_set_info.
4809 (diagnostic_append_note_at_rich_loc): New function.
4810 (emit_diagnostic): Update for change in signature of
4811 diagnostic_set_info.
4813 (inform_at_rich_loc): New function.
4814 (inform_n): Update for change in signature of diagnostic_set_info.
4815 (warning): Likewise.
4816 (warning_at): Likewise.
4817 (warning_at_rich_loc): New function.
4818 (warning_n): Update for change in signature of diagnostic_set_info.
4819 (pedwarn): Likewise.
4820 (permerror): Likewise.
4821 (permerror_at_rich_loc): New function.
4822 (error): Update for change in signature of diagnostic_set_info.
4823 (error_n): Likewise.
4824 (error_at): Likewise.
4825 (error_at_rich_loc): New function.
4826 (sorry): Update for change in signature of diagnostic_set_info.
4827 (fatal_error): Likewise.
4828 (internal_error): Likewise.
4829 (internal_error_no_backtrace): Likewise.
4830 (source_range::debug): New function.
4831 * diagnostic.h (struct diagnostic_info): Eliminate field
4832 "override_column". Add field "richloc".
4833 (struct diagnostic_context): Add field "colorize_source_p".
4834 (diagnostic_override_column): Delete.
4835 (diagnostic_set_info): Convert param from location_t to
4837 (diagnostic_set_info_translated): Likewise.
4838 (diagnostic_append_note_at_rich_loc): New function.
4839 (diagnostic_num_locations): New function.
4840 (diagnostic_expand_location): Get the location from the
4842 (diagnostic_print_caret_line): Delete.
4843 (diagnostic_get_color_for_kind): New declaration.
4844 * genmatch.c (linemap_client_expand_location_to_spelling_point): New.
4845 (error_cb): Update for change in signature of "error" callback.
4846 (fatal_at): Likewise.
4847 (warning_at): Likewise.
4848 * input.c (linemap_client_expand_location_to_spelling_point): New.
4849 * pretty-print.c (text_info::set_range): New method.
4850 (text_info::get_location): New method.
4851 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): Eliminate this macro.
4852 (struct text_info): Eliminate "locations" array in favor of
4853 "m_richloc", a rich_location *.
4854 (textinfo::set_location): Add a "caret_p" param, and reimplement
4855 in terms of a call to set_range.
4856 (textinfo::get_location): Eliminate inline implementation in favor of
4857 an out-of-line reimplementation.
4858 (textinfo::set_range): New method.
4859 * rtl-error.c (diagnostic_for_asm): Update for change in signature
4860 of diagnostic_set_info.
4861 * tree-diagnostic.c (default_tree_printer): Update for new
4862 "caret_p" param for textinfo::set_location.
4863 * tree-pretty-print.c (percent_K_format): Likewise.
4865 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4868 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4869 * config/aarch64/aarch64.c
4870 (aarch64_can_use_per_function_literal_pools_p): New.
4871 (aarch64_use_blocks_for_constant_p): Adjust declaration
4872 and use aarch64_can_use_function_literal_pools_p.
4873 (aarch64_select_rtx_section): Update.
4875 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4877 * config/arm/arm-ldmstm.ml: Rewrite to generate unified asm templates.
4878 * config/arm/arm.c (arm_asm_trampoline_template): Make unified asm safe.
4879 (arm_output_multireg_pop): Likewise.
4880 (output_move_double): Likewise.
4881 (output_move_quad): Likewise.
4882 (output_return_instruction): Likewise.
4883 (arm_print_operand): Remove support for %( and %. print modifiers.
4884 (arm_output_shift): Make unified asm.
4885 (arm_declare_function_name): Likewise.
4886 * config/arm/arm.h (TARGET_UNIFIED_ASM): Delete.
4887 (ASM_APP_OFF): Adjust.
4888 (ASM_OUTPUT_REG_PUSH): Undo special casing for TARGET_ARM.
4889 (ASM_OUTPUT_REG_POP): Likewise.
4890 * config/arm/arm.md: Adjust uses of %., %(, %)
4891 * config/arm/sync.md: Likewise.
4892 * config/arm/thumb2.md: Likewise.
4893 * config/arm/ldmstm.md: Regenerate.
4894 * config/arm/arm.opt (masm-unified-syntax): Do not special case Thumb.
4895 * doc/invoke.texi (masm-unified-syntax): Update documentation.
4897 2015-11-06 David Malcolm <dmalcolm@redhat.com>
4899 * input.c (dump_line_table_statistics): Dump stats on adhoc table.
4901 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
4903 * tree-core.h (size_type_kind): Remove OEP_CONSTANT_ADDRESS_OF and
4904 add OEP_MATCH_SIDE_EFFECTS.
4905 * fold-const.c (operand_equal_p): Update documentation; handle
4906 OEP_MATCH_SIDE_EFFECTS.
4907 * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Use
4908 OEP_MATCH_SIDE_EFFECTS.
4910 2015-11-06 Benedikt Huber <benedikt.huber@theobroma-systems.com>
4911 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
4913 * config/aarch64/aarch64-builtins.c: Builtins for rsqrt and rsqrtf.
4914 * config/aarch64/aarch64-protos.h: Declare.
4915 * config/aarch64/aarch64-simd.md: Matching expressions for frsqrte and
4917 * config/aarch64/aarch64-tuning-flags.def: Added recip_sqrt.
4918 * config/aarch64/aarch64.c: New functions. Emit rsqrt estimation
4919 code when applicable.
4920 * config/aarch64/aarch64.md: Added enum entries.
4921 * config/aarch64/aarch64.opt: Added option -mlow-precision-recip-sqrt.
4923 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
4927 * ipa-polymorphic-call.c
4928 (ipa_polymorphic_call_context::restrict_to_inner_type): Fix ordering
4929 issue when offset is out of range.
4930 (contains_type_p): Fix out of range check, clear dynamic flag.
4932 2015-11-06 Arnout Vandecappelle <arnout@mind.be>
4934 * config.gcc (e6500): Fix cpu_is_64bit typo.
4936 2015-11-06 Alan Lawrence <alan.lawrence@arm.com>
4938 * tree-sra.c (completely_scalarize): Properly handle negative array
4939 indices using offset_int.
4941 2015-11-06 Richard Biener <rguenther@suse.de>
4943 * alloc-pool.h (object_allocator::allocate): Default-initialize
4946 2015-11-06 Richard Biener <rguenther@suse.de>
4948 * tree-ssa-sccvn.c (class sccvn_dom_walker): Add destructor.
4949 * lra.c (init_reg_info): Truncate copy_vec instead of
4950 re-allocating a new one and leaking the old.
4951 * ipa-inline-analysis.c (estimate_function_body_sizes): Free
4953 * sched-deps.c (sched_deps_finish): Free the dn/dl pools.
4954 * postreload-gcse.c (free_mem): Free modify_mem_list and
4955 canon_modify_mem_list.
4957 2015-11-06 Ilya Enkovich <enkovich.gnu@gmail.com>
4959 PR tree-optimization/68145
4960 * tree-vect-stmts.c (vectorizable_operation): Fix
4961 determination for booleans.
4963 2015-11-06 Tom de Vries <tom@codesourcery.com>
4965 * tree-cfg.c (gimple_split_block_before_cond_jump): Split before
4966 cond_jump, instead of split after last nondebug insn before cond_jump.
4967 * tree-parloops.c (transform_to_exit_first_loop_alt): Verify ssa before
4970 2015-11-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4973 * config/arm/aarch-common.c (aarch_accumulator_forwarding): Strip
4974 subregs from accumulator and make sure it's a register.
4976 2015-11-06 Simon Dardis <simon.dardis@imgtec.com>
4978 * config/mips/loongson.md (vec_loongson_extract_lo_<mode>): New, extract
4980 (reduc_uplus_<mode>): Remove.
4981 (reduc_plus_scal_<mode>): Rename from reduc_splus_<mode>, Use vec
4982 loongson_extract_lo_<mode>.
4983 (reduc_smax_scal_<mode>, reduc_smin_scal_<mode>): Rename from
4984 reduc_smax_<mode>, reduc_smax_<mode>, use vec
4985 loongson_extract_lo_<mode>.
4986 (reduc_umax_scal_<mode>, reduc_umin_scal_<mode>): Rename.
4988 2015-11-06 Richard Biener <rguenther@suse.de>
4990 * tree-vectorizer.h (struct _bb_vec_info): Add region_begin/end
4992 (vect_stmt_in_region_p): Declare.
4993 * tree-vect-slp.c (new_bb_vec_info): Work on a region.
4994 (destroy_bb_vec_info): Likewise.
4995 (vect_bb_slp_scalar_cost): Use vect_stmt_in_region_p.
4996 (vect_get_and_check_slp_defs): Likewise.
4997 (vect_slp_analyze_bb_1): Refactor to make it work on sub-BBs.
4998 (vect_slp_bb): Likewise.
4999 * tree-vect-patterns.c (vect_same_loop_or_bb_p): Implement
5000 in terms of vect_stmt_in_region_p.
5001 (vect_pattern_recog): Iterate over the BB region.
5002 * tree-vect-stmts.c (vect_is_simple_use): Use vect_stmt_in_region_p.
5003 * tree-vectorizer.c (vect_stmt_in_region_p): New function.
5004 (pass_slp_vectorize::execute): Initialize all stmt UIDs to -1.
5005 * config/i386/i386.c: Include gimple-iterator.h.
5006 * config/aarch64/aarch64.c: Likewise.
5008 2015-11-06 Alexandre Oliva <aoliva@redhat.com>
5010 PR rtl-optimization/67753
5011 PR rtl-optimization/64164
5012 * function.c (assign_parm_setup_block): Avoid allocating a
5013 stack slot if we don't have an ABI-reserved one. Emit the
5014 copy to target_reg in the conversion seq if the copy from
5015 entry_parm is in it too. Don't use the conversion seq to copy
5016 a PARALLEL to a REG or a CONCAT.
5018 2015-11-06 Richard Biener <rguenther@suse.de>
5020 * tree-hash-traits.h (tree_operand_hash): Provide equal, not
5023 2015-11-05 Cesar Philippidis <cesar@codesourcery.com>
5024 Thomas Schwinge <thomas@codesourcery.com>
5025 James Norris <jnorris@codesourcery.com>
5028 * gimplify.c (gimplify_scan_omp_clauses): Add support for
5029 OMP_CLAUSE_TILE. Update handling of OMP_CLAUSE_INDEPENDENT.
5030 (gimplify_adjust_omp_clauses): Likewise.
5031 * omp-low.c (scan_sharing_clauses): Add support for OMP_CLAUSE_TILE.
5032 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_TILE.
5033 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_TILE.
5034 * tree.c (omp_clause_num_ops): Add an entry for OMP_CLAUSE_TILE.
5035 (omp_clause_code_name): Likewise.
5036 (walk_tree_1): Handle OMP_CLAUSE_TILE.
5037 * tree.h (OMP_TILE_LIST): New macro.
5039 2015-11-05 Martin Sebor <msebor@redhat.com>
5042 * doc/invoke.texi (-Wplacement-new): Document new option.
5044 2015-11-05 Alan Lawrence <alan.lawrence@arm.com>
5046 PR tree-optimization/65963
5047 * tree-scalar-evolution.c (interpret_rhs_expr): Try to handle
5048 LSHIFT_EXPRs as equivalent unsigned MULT_EXPRs.
5050 2015-11-05 James Greenhalgh <james.greenhalgh@arm.com>
5052 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): New.
5053 (noce_convert_multiple_sets): Likewise.
5054 (noce_process_if_block): Call them.
5056 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
5058 * gimple-fold.c: Include omp-low.h.
5059 (fold_internal_goacc_dim): New.
5060 (gimple_fold_call): Call it.
5062 2015-11-05 Jakub Jelinek <jakub@redhat.com>
5063 Ilya Verbin <ilya.verbin@intel.com>
5066 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR): Remove.
5067 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): New.
5068 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
5069 SIMD_CLONE_ARG_TYPE_LINEAR_REF_VARIABLE_STEP,
5070 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP and
5071 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP.
5072 (struct cgraph_simd_clone_arg): Adjust comment.
5073 * omp-builtins.def (BUILT_IN_GOMP_TARGET): Rename GOMP_target_41
5074 to GOMP_target_ext. Add num_teams and thread_limit arguments.
5075 (BUILT_IN_GOMP_TARGET_DATA): Rename GOMP_target_data_41
5076 to GOMP_target_data_ext.
5077 (BUILT_IN_GOMP_TARGET_UPDATE): Rename GOMP_target_update_41
5078 to GOMP_target_update_ext.
5079 (BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_START,
5080 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_START,
5081 BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_NEXT,
5082 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_NEXT,
5083 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_START,
5084 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_START,
5085 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_NEXT,
5086 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_NEXT,
5087 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_DYNAMIC,
5088 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_GUIDED): New built-ins.
5089 * tree-core.h (enum omp_clause_schedule_kind): Add
5090 OMP_CLAUSE_SCHEDULE_MASK, OMP_CLAUSE_SCHEDULE_MONOTONIC,
5091 OMP_CLAUSE_SCHEDULE_NONMONOTONIC and change
5092 OMP_CLAUSE_SCHEDULE_LAST value.
5093 * tree.def (OMP_SIMD, CILK_SIMD, CILK_FOR, OMP_DISTRIBUTE,
5094 OMP_TASKLOOP, OACC_LOOP): Add OMP_FOR_ORIG_DECLS argument.
5095 * tree.h (OMP_FOR_ORIG_DECLS): Use OMP_LOOP_CHECK instead of
5096 OMP_FOR_CHECK. Remove comment.
5097 * tree-pretty-print.c (dump_omp_clause): Handle
5098 GOMP_MAP_FIRSTPRIVATE_REFERENCE and GOMP_MAP_ALWAYS_POINTER.
5099 Simplify. Print schedule clause modifiers.
5100 * tree-vect-stmts.c (vectorizable_simd_clone_call): Add
5101 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_VARIABLE_STEP
5103 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_ALWAYS_TO.
5104 (omp_default_clause): Tweak for
5105 private/firstprivate/is_device_ptr variables on target
5106 construct and use_device_ptr on target data.
5107 (omp_check_private): Likewise.
5108 (omp_notice_variable): For references check whether what it refers
5109 to has mappable type, rather than the reference itself.
5110 (omp_is_private): Diagnose linear iteration variables on non-simd
5112 (omp_no_lastprivate): Return true only for Fortran.
5113 (gimplify_scan_omp_clauses): Or in GOVD_MAP_ALWAYS_TO for
5114 GOMP_MAP_ALWAYS_TO or GOMP_MAP_ALWAYS_TOFROM kinds.
5115 Add support for GOMP_MAP_FIRSTPRIVATE_REFERENCE and
5116 GOMP_MAP_ALWAYS_POINTER, remove old handling of structure element
5117 based array sections. Use GOMP_MAP_ALWAYS_P. Fix up handling of
5118 lastprivate and linear when combined with distribute. Gimplify
5119 variable low-bound for array reduction. Look through
5120 POINTER_PLUS_EXPR when looking for ADDR_EXPR for array section
5122 (gimplify_adjust_omp_clauses_1): For implicit references to
5123 variables with reference type and when not ref to scalar or
5124 ref to pointer, map what they refer to using tofrom and
5125 use GOMP_MAP_FIRSTPRIVATE_REFERENCE for the reference.
5126 (gimplify_adjust_omp_clauses): Remove GOMP_MAP_ALWAYS_POINTER
5127 from target exit data. Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE.
5128 Drop OMP_CLAUSE_MAP_PRIVATE support. Use GOMP_MAP_ALWAYS_P.
5129 Diagnose the same var on both firstprivate and lastprivate on
5130 distribute construct.
5131 (gimplify_omp_for): Fix up handling of predetermined
5132 lastprivate or linear iter vars when combined with distribute.
5133 (find_omp_teams, computable_teams_clause, optimize_target_teams): New
5135 (gimplify_omp_workshare): Call optimize_target_teams.
5136 * omp-low.c (struct omp_region): Add sched_modifiers field.
5137 (struct omp_for_data): Likewise.
5138 (omp_any_child_fn_dumped): New variable.
5139 (extract_omp_for_data): Fill in sched_modifiers, and mask out
5140 OMP_CLAUSE_SCHEDULE_KIND bits outside of OMP_CLAUSE_SCHEDULE_MASK
5142 (determine_parallel_type): Use only OMP_CLAUSE_SCHEDULE_MASK
5143 bits of OMP_CLAUSE_SCHED_KIND.
5144 (scan_sharing_clauses): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE,
5145 drop OMP_CLAUSE_MAP_PRIVATE support. Look through POINTER_PLUS_EXPR
5146 for array section reductions.
5147 (add_taskreg_looptemp_clauses): Add one extra _looptemp_ clause even
5148 for distribute parallel for, if there are lastprivate clauses on the
5150 (lower_rec_input_clauses): Handle non-zero low-bound on array
5152 (lower_reduction_clauses): Likewise.
5153 (lower_send_clauses): Look through POINTER_PLUS_EXPR
5154 for array section reductions.
5155 (expand_parallel_call): Use nonmonotonic entrypoints for
5156 nonmonotonic: dynamic/guided.
5157 (expand_omp_taskreg): Call assign_assembler_name_if_neeeded on
5158 child_fn if current_function_decl has assembler name set, but child_fn
5159 does not. Dump the header and IL of the child function when not in SSA
5161 (expand_omp_target): Likewise. Pass num_teams and thread_limit
5162 arguments to BUILT_IN_GOMP_TARGET.
5163 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
5164 Initialize the extra _looptemp_ clause to fd->loop.n2.
5165 (expand_omp_for): Use nonmonotonic entrypoints for
5166 nonmonotonic: dynamic/guided. Initialize region->sched_modifiers.
5167 (expand_omp): Clear omp_any_child_fn_dumped. Dump function header
5168 again if we have dumped any child functions.
5169 (lower_omp_for_lastprivate): Determine the right count variable
5170 for distribute simd, or distribute parallel for{, simd}.
5171 (lower_omp_target): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE
5172 and GOMP_MAP_ALWAYS_POINTER. Drop OMP_CLAUSE_MAP_PRIVATE
5174 (simd_clone_clauses_extract): Handle variable step
5175 for references and arguments passed by reference.
5176 (simd_clone_mangle): Mangle ref/uval/val variable steps.
5177 (simd_clone_adjust_argument_types): Handle
5178 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP like
5179 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
5180 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP like
5181 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
5182 (simd_clone_linear_addend): New function.
5183 (simd_clone_adjust): Handle variable step like similarly
5184 to constant step, use simd_clone_linear_addend to determine
5185 the actual step at runtime.
5187 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
5189 * target.def (goacc.dim_limit): New hook.
5190 * targhooks.h (default_goacc_dim_limit): Declare.
5191 * doc/tm.texi.in (TARGET_GOACC_DIM_LIMIT): Add.
5192 * doc/tm.texi: Rebuilt.
5193 * omp-low.h (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): Declare.
5194 * omp-low.c (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): New.
5195 (default_goacc_dim_limit): New.
5196 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
5197 (nvptx_goacc_dim_limit) New.
5198 (TARGET_GOACC_DIM_LIMIT): Override.
5199 * tree-vrp.c: Include omp-low.h, target.h.
5200 (extract_range_basic): Add handling for IFN_GOACC_DIM_SIZE &
5203 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
5205 * tree-vect-generic.c (do_compare): Use -1 for true
5206 result instead of 1.
5208 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5210 * config/aarch64/aarch64.c
5211 (aarch64_can_use_per_function_literal_pools_p): New.
5212 (aarch64_use_blocks_for_constant_p): Adjust declaration
5213 and use aarch64_can_use_function_literal_pools_p.
5214 (aarch64_select_rtx_section): Update.
5216 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
5218 * targhooks.c (default_get_mask_mode): Use BLKmode in
5219 case target doesn't support required vector mode.
5220 * stor-layout.c (layout_type); Check for BLKmode.
5222 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
5223 Sebastian Pop <s.pop@samsung.com>
5225 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
5226 Remove use of parameter_rename_map.
5228 (copy_internal_parameters): Remove.
5229 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
5230 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
5231 (free_sese_info): Do not free parameter_rename_map.
5232 (set_rename): Do not use parameter_rename_map.
5233 (rename_uses): Update call to set_rename.
5234 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
5235 * sese.h (parameter_rename_map_t): Remove.
5236 (struct sese_info_t): Remove field parameter_rename_map.
5238 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
5239 Sebastian Pop <s.pop@samsung.com>
5241 * graphite-isl-ast-to-gimple.c: Include tree-cfg.h.
5242 (translate_isl_ast_node_user): Add more dumps: call print_loops_bb.
5243 * graphite-scop-detection.c (dot_all_scops_1): Moved out of
5244 anonymous namespace.
5245 * graphite-sese-to-poly.c (ssa_name_version_typesize): Remove.
5246 (isl_id_for_pbb): Use a buffer of size 10.
5247 (isl_id_for_ssa_name): Same.
5248 * sese.c (set_rename): Add more dumps.
5250 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
5252 * omp-low.c (struct omp_context): Remove reduction_map field.
5253 (lookup_oacc_reduction, maybe_lookup_oacc_reduction): Delete.
5254 (new_omp_context, delete_omp_context, scan_omp_target): Remove
5255 reduction_map handling.
5256 (lower_omp_target): Remove obsolete openacc reduction handling.
5258 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
5260 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add checking.
5262 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
5263 Cesar Philippidis <cesar@codesourcery.com>
5265 * config/nvptx/nvptx.c: Include gimple headers.
5266 (worker_red_size, worker_red_align, worker_red_name,
5267 worker_red_sym): New.
5268 (nvptx_option_override): Initialize worker reduction buffer.
5269 (nvptx_file_end): Write out worker reduction buffer var.
5270 (nvptx_expand_shuffle, nvptx_expand_worker_addr,
5271 nvptx_expand_cmp_swap): New builtin expanders.
5272 (enum nvptx_builtins): New.
5273 (nvptx_builtin_decls): New.
5274 (nvptx_builtin_decl, nvptx_init_builtins, nvptx_expand_builtin): New
5275 (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
5276 (nvptx_get_worker_red_addr, nvptx_generate_vector_shuffle,
5277 nvptx_lockless_update): New helpers.
5278 (nvptx_goacc_reduction_setup, nvptx_goacc_reduction_init,
5279 nvptx_goacc_reduction_fini, nvptx_goacc_reduction_teaddown): New.
5280 (nvptx_goacc_reduction): New.
5281 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN,
5282 TARGET_BUILTIN_DECL): Override.
5283 (TARGET_GOACC_REDUCTION): Override.
5285 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
5286 Cesar Philippidis <cesar@codesourcery.com>
5288 * internal-fn.def (GOACC_REDUCTION): New.
5289 * internal-fn.h (enum ifn_goacc_reduction_kind): New.
5290 * internal-fn.c (expand_GOACC_REDUCTION): New.
5291 * target.def (goacc.reduction): New OpenACC hook.
5292 * targhooks.h (default_goacc_reduction): Declare.
5293 * doc/tm.texi.in: Add TARGET_GOACC_REDUCTION.
5294 * doc/tm.texi: Rebuilt.
5295 * omp-low.c (oacc_get_reduction_array_id, oacc_max_threads,
5296 scan_sharing_clauses): Remove oacc reduction handling here.
5297 (lower_rec_input_clauses): Don't handle OpenACC reductions here.
5298 (oacc_lower_reduction_var_helper): Delete.
5299 (lower_oacc_reductions): New.
5300 (lower_reduction_clauses): Don't handle OpenACC reductions here.
5301 (lower_oacc_head_tail): Call lower_oacc_reductions.
5302 (oacc_gimple_assign, oacc_init_reduction_array,
5303 oacc_initialize_reduction_data, oacc_finalize_reduction_data,
5304 oacc_process_reduction_data): Delete.
5305 (lower_omp_target): Remove old OpenACC reduction handling. Insert
5306 dummy OpenACC gang reduction for reductions at outer level.
5307 (oacc_loop_xform_head_tail): Transform IFN_GOACC_REDUCTION.
5308 (default_goacc_reduction): New.
5309 (execute_oacc_device_lower): Handle IFN_GOACC_REDUCTION.
5311 2015-11-04 Martin Liska <mliska@suse.cz>
5313 * cgraphunit.c (cgraph_node::expand_thunk): Call
5314 allocate_struct_function before init_function_start.
5315 (cgraph_node::expand): Use push_cfun and pop_cfun.
5316 * config/i386/i386.c (ix86_code_end): Call
5317 allocate_struct_function before init_function_start.
5318 * config/rs6000/rs6000.c (rs6000_code_end): Likewise.
5319 * function.c (init_function_start): Move preamble to all
5321 * passes.c (do_per_function_toporder): Use push_cfun and pop_cfun.
5322 (execute_one_pass): Handle newly added TODO_discard_function.
5323 (execute_pass_list_1): Terminate if cfun equals to NULL.
5324 (execute_pass_list): Do not push and pop cfun, expect that
5326 * tree-pass.h (TODO_discard_function): Define.
5328 2015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
5330 * cfganal.c (inverted_post_order_compute): Remove conditional
5331 compilation, use flag_checking.
5332 * config.in: Regenerate.
5333 * configure: Regenerate.
5334 * configure.ac: Remove ENABLE_CHECKING.
5335 * genconditions.c: Do not #undef ENABLE_CHECKING.
5336 * sese.h (bb_in_region): Comment out broken check.
5337 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa_1): Remove
5338 conditional compilation, use flag_checking.
5340 2015-11-04 Tom de Vries <tom@codesourcery.com>
5342 PR tree-optimization/67742
5343 * tree-ssa-structalias.c (struct fieldoff): Add restrict_pointed_type
5345 (push_fields_onto_fieldstack): Handle restrict_pointed_type field.
5346 (create_variable_info_for_1): Add and handle handle_param parameter.
5347 Add restrict handling.
5348 (create_variable_info_for): Call create_variable_info_for_1 with extra
5350 (make_param_constraints): Drop restrict_name parameter. Ignore
5351 vi->only_restrict_pointers.
5352 (intra_create_variable_infos): Call create_variable_info_for_1 with
5353 extra arg. Remove restrict handling. Call make_param_constraints with
5356 2015-11-04 Tom de Vries <tom@codesourcery.com>
5358 * tree-ssa-structalias.c (create_variable_info_for_1): Use decl_type
5361 2015-11-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5363 * config/arm/coff.h: Remove.
5365 2015-11-03 Eric Botcazou <ebotcazou@adacore.com>
5367 * gimple-expr.c (useless_type_conversion_p): Reinstate type canonical
5368 check for aggregate types and beef up comment for mode check.
5370 2015-11-03 Richard Biener <rguenther@suse.de>
5372 * tree-vect-data-refs.c (vect_analyze_data_refs): Do not collect
5373 data references here.
5374 * tree-vect-loop.c: Include cgraph.h.
5375 (vect_analyze_loop_2): Collect data references here.
5376 * tree-vect-slp.c (find_bb_location): Inline ...
5377 (vect_slp_bb): ... here. Renamed from vect_slp_analyze_bb.
5378 Factor in vect_slp_transform_bb.
5379 (vect_slp_transform_bb): Removed.
5380 (vect_slp_analyze_bb_1): Collect data references here.
5381 * tree-vectorizer.c (pass_slp_vectorize::execute): Call
5383 * tree-vectorizer.h (vect_slp_bb): Declare.
5384 (vect_slp_analyze_bb): Remove.
5385 (vect_slp_transform_bb): Remove.
5386 (find_bb_location): Remove.
5387 (vect_analyze_data_refs): Remove stmt count reference parameter.
5389 2015-11-03 Evgeny Stupachenko <evstupac@gmail.com>
5391 * multiple_target.c (create_dispatcher_calls): Add target check
5393 (create_target_clone): Change assembler name for versioned declarations.
5395 2015-11-03 Thomas Schwinge <thomas@codesourcery.com>
5396 Chung-Lin Tang <cltang@codesourcery.com>
5398 * builtins.def (DEF_GOMP_BUILTIN): Enable for flag_openacc.
5399 * omp-low.c (check_omp_nesting_restrictions): Allow
5400 GIMPLE_OMP_ATOMIC_LOAD, GIMPLE_OMP_ATOMIC_STORE inside OpenACC
5403 2015-11-03 Bilyan Borisov <bilyan.borisov@arm.com>
5405 * config/aarch64/aarch64-simd-builtins.def (fmulx): New.
5406 * config/aarch64/aarch64-simd.md (aarch64_fmulx<mode>): New.
5407 * config/aarch64/arm_neon.h (vmulx_f32): Rewrite to call fmulx
5409 (vmulxq_f32): Likewise.
5411 (vmulxq_f64): Rewrite to call fmulx builtin.
5412 (vmulxs_f32): Likewise.
5413 (vmulxd_f64): Likewise.
5414 (vmulx_lane_f32): Remove.
5415 * config/aarch64/iterators.md (UNSPEC): Add fmulx.
5417 2015-11-03 Alan Lawrence <alan.lawrence@arm.com>
5419 * config/aarch64/aarch64.md (*movhf_aarch64): Use
5420 aarch64_reg_or_fp_zero for second operand.
5422 2015-11-03 Alexandre Oliva <aoliva@redhat.com>
5424 * gimple-expr.c: Include hash-set.h and rtl.h.
5425 (mark_addressable_queue): New var.
5426 (mark_addressable): Factor actual marking into...
5427 (mark_addressable_1): ... this. Queue it up during expand.
5428 (mark_addressable_2): New.
5429 (flush_mark_addressable_queue): New.
5430 * gimple-expr.h (flush_mark_addressable_queue): Declare.
5431 * cfgexpand.c: Include gimple-expr.h.
5432 (pass_expand::execute): Flush mark_addressable queue.
5434 2015-11-02 Alexandre Oliva <aoliva@redhat.com>
5436 * tree-ssa-ifcombine.c (tree_ssa_ifcombine_bb_1): Factor out
5437 bb_no_side_effects_p tests...
5438 (tree_ssa_ifcombine_bb): ... here.
5440 PR tree-optimization/68083
5441 * tree-ssa-ifcombine.c: Include tree-ssa.h.
5442 (bb_no_side_effects_p): Test for undefined uses too.
5443 * tree-ssa.c (gimple_uses_undefined_value_p): New.
5444 * tree-ssa.h (gimple_uses_undefined_value_p): Declare.
5446 2015-11-02 Jeff Law <law@redhat.com>
5448 * tree-ssa-threadupdate.c (valid_jump_thread_path): Also detect
5449 cases where the loop latch edge is in the middle of an FSM path.
5451 2015-11-03 Tom de Vries <tom@codesourcery.com>
5453 * tree-ssa-structalias.c (make_restrict_var_constraints): Rename to ...
5454 (make_param_constraints): ... this. Add and handle restrict_name
5455 parameter. Handle is_full_var case.
5456 (intra_create_variable_infos): Use make_param_constraints.
5458 2015-11-03 Tom de Vries <tom@codesourcery.com>
5460 * tree-ssa-structalias.c (make_restrict_var_constraints): Replace
5461 make_copy_constraint call with make_constraint_from call.
5463 2015-11-02 Andreas Tobler <andreast@gcc.gnu.org>
5465 * config/rs6000/freebsd64.h (ASM_SPEC32): Adust spec to handle
5468 2015-11-02 Richard Sandiford <richard.sandiford@arm.com>
5470 * builtins.h (fold_fma): Move to fold-const-call.h.
5471 * builtins.c: Include fold-const-call.h.
5472 (mathfn_built_in_2): New function, split out from...
5473 (mathfn_built_in_1): ...here.
5474 (do_real_to_int_conversion, fold_const_builtin_pow)
5475 (fold_const_builtin_logb, fold_const_builtin_significand)
5476 (fold_const_builtin_load_exponent, do_mpfr_arg1, do_mpfr_arg2)
5477 (do_mpfr_arg3, do_mpfr_sincos, do_mpfr_bessel_n, do_mpc_arg1): Delete.
5478 (fold_builtin_sincos): Use fold_const_call to handle constants.
5479 (fold_builtin_1, fold_builtin_2, fold_builtin_3): Add explicit
5480 checks for ERROR_MARK. Use fold_const_call to handle constant
5481 folds for math functions.
5482 (fold_fma): Move to fold-const-call.c.
5483 * fold-const.c: Include fold-const-call.h.
5484 * Makefile.in (OBJS): Add fold-const-call.o.
5485 (PLUGIN_HEADERS): Add fold-const-call.h.
5486 * realmpfr.h (real_from_mpfr): Allow the format to be specified
5488 * realmpfr.c (real_from_mpfr): Likewise.
5489 * fold-const-call.h, fold-const-call.c: New files.
5491 2015-11-02 Julian Brown <julian@codesourcery.com>
5493 * config/arm/neon-testgen.ml (emit_epilogue): Remove extraneous
5494 brackets and semicolon.
5496 2015-11-02 Alan Lawrence <alan.lawrence@arm.com>
5499 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
5501 PR tree-optimization/65963
5502 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
5503 LSHIFT_EXPRs as equivalent MULT_EXPRs.
5505 2015-11-02 Thomas Schwinge <thomas@codesourcery.com>
5508 * fold-const.c: Include "md5.h".
5510 2015-11-01 Jeff Law <law@redhat.com>
5512 * vmsdbgout.c: Revert unused header file reduction patch.
5514 * config/mcore/mcore.c: Include regs.h.
5516 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
5518 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Rewrite.
5520 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
5522 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Use the
5523 same condition for testing whether RS6000_PIC_OFFSET_TABLE_REGNUM is
5524 live as for using it elsewhere, for TARGET_MINIMAL_TOC.
5526 2015-10-31 Markus Trippelsdorf <markus@trippelsdorf.de>
5528 * ggc-common.c: Restore needed header for checking=release.
5530 2015-10-31 Tom de Vries <tom@codesourcery.com>
5532 * fold-const.c (fold_unary_loc): Tune POINTER_PLUS_EXPR folding.
5534 2015-10-31 Tom de Vries <tom@codesourcery.com>
5536 * tree-ssa-structalias.c (intra_create_variable_infos): Don't expect
5537 existing varinfo for arguments.
5539 2015-10-31 Tom de Vries <tom@codesourcery.com>
5541 * tree-ssa-structalias.c (ipa_pta_execute): Add extra arg to call to
5542 create_function_info_for. Dump constraints generated during
5543 create_function_info_for. Move intra_create_variable_infos call and
5544 function-return-values-escape bit to ...
5545 (create_function_info_for): ... here, and merge
5546 intra_create_variable_infos call with argument loop. Add and handle
5547 nonlocal_p parameter.
5549 2015-10-31 Tom de Vries <tom@codesourcery.com>
5551 * tree-ssa-structalias.c (create_function_info_for): Make sure prev_vi
5552 updating is alap, and seperated from preceding code. Make sure
5553 insert_vi_for_tree is seperated from surrounding code.
5555 2015-10-31 Tom de Vries <tom@codesourcery.com>
5557 * tree-ssa-structalias.c (ipa_pta_execute): Use make_copy_constraint.
5559 2015-10-30 Jeff Law <law@redhat.com>
5560 Nathan Sidwell <nathan@acm.org>
5562 * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Avoid warning on unused
5564 (MOVE_MAX): Set to 8.
5566 2015-10-30 Cesar Philippidis <cesar@codesourcery.com>
5568 * cgraph.c: Include context.h for offloading.
5569 * varpool.c: Include context.h and omp-low.h.
5571 2015-10-30 Anatoly Sokolov <aesok@post.ru>
5573 * rtl.h (contains_symbol_ref_p): Declare.
5574 (SYMBOL_REF_P): Define.
5575 * rtlanal.c (contains_symbol_ref_p: New function.
5576 * lra-constraints.c (contains_symbol_ref_p): Remove.
5577 * var-tracking.c (contains_symbol_ref): Remove.
5578 (track_expr_p): Use contains_symbol_ref_p instead of
5579 contains_symbol_ref.
5581 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
5583 * gimple-fold.c (fold_array_ctor_reference): Move searching code to:
5584 * fold-const.c (get_array_ctor_element_at_index): New.
5585 (fold): Remove binary-search through CONSTRUCTOR, call previous.
5587 * fold-const.h (get_array_ctor_element_at_index): New.
5589 2015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
5591 * Makefile.in (OBJS): Add multiple_target.o.
5592 * attrib.c (make_attribute): Moved from config/i386/i386.c
5593 * config/i386/i386.c (make_attribute): Deleted.
5594 * multiple_target.c (create_dispatcher_calls): New.
5595 (get_attr_len): Ditto.
5596 (get_attr_str): Ditto.
5597 (separate_attrs): Ditto.
5598 (is_valid_asm_symbol): Ditto.
5599 (create_new_asm_name): Ditto.
5600 (create_target_clone): Ditto.
5601 (expand_target_clones): Ditto.
5602 (ipa_target_clone): Ditto.
5603 (ipa_dispatcher_calls): Ditto.
5604 * passes.def (pass_target_clone): Two new ipa passes.
5605 * tree-pass.h (make_pass_target_clone): Ditto.
5606 * doc/extend.texi (target_clones): New attribute description.
5608 2015-10-30 Vladimir Makarov <vmakarov@redhat.com>
5610 PR rtl-optimization/68106
5611 * lra-remat.c (input_regno_present_p): Process hard regs
5612 explicitly present in machine description insns.
5613 (call_used_input_regno_present_p): Ditto.
5614 (calculate_gen_cands): Ditto.
5617 2015-10-30 Jim Wilson <jim.wilson@linaro.org>
5619 * config/arm/neon-testgen.ml: Fix comment typo.
5621 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5623 * rtlanal.c (reg_set_p): Expand function comment.
5625 2015-10-30 Andrew MacLeod <amacleod@redhat.com>
5627 * alias.c: Remove unused headers.
5629 * attribs.c: Likewise.
5630 * auto-inc-dec.c: Likewise.
5631 * auto-profile.c: Likewise.
5632 * bb-reorder.c: Likewise.
5633 * bitmap.c: Likewise.
5634 * bt-load.c: Likewise.
5635 * builtins.c: Likewise.
5636 * caller-save.c: Likewise.
5637 * calls.c: Likewise.
5640 * cfganal.c: Likewise.
5641 * cfgbuild.c: Likewise.
5642 * cfgcleanup.c: Likewise.
5643 * cfgexpand.c: Likewise.
5644 * cfghooks.c: Likewise.
5645 * cfgloop.c: Likewise.
5646 * cfgloopanal.c: Likewise.
5647 * cfgloopmanip.c: Likewise.
5648 * cfgrtl.c: Likewise.
5649 * cgraph.c: Likewise.
5650 * cgraphbuild.c: Likewise.
5651 * cgraphclones.c: Likewise.
5652 * cgraphunit.c: Likewise.
5653 * cilk-common.c: Likewise.
5654 * combine-stack-adj.c: Likewise.
5655 * combine.c: Likewise.
5656 * compare-elim.c: Likewise.
5657 * convert.c: Likewise.
5658 * coverage.c: Likewise.
5659 * cppbuiltin.c: Likewise.
5660 * cprop.c: Likewise.
5662 * cselib.c: Likewise.
5663 * data-streamer-in.c: Likewise.
5664 * data-streamer-out.c: Likewise.
5665 * data-streamer.c: Likewise.
5666 * dbxout.c: Likewise.
5669 * debug.c: Likewise.
5670 * df-core.c: Likewise.
5671 * df-problems.c: Likewise.
5672 * df-scan.c: Likewise.
5674 * dojump.c: Likewise.
5675 * dominance.c: Likewise.
5676 * domwalk.c: Likewise.
5677 * double-int.c: Likewise.
5679 * dumpfile.c: Likewise.
5680 * dwarf2asm.c: Likewise.
5681 * dwarf2cfi.c: Likewise.
5682 * dwarf2out.c: Likewise.
5683 * emit-rtl.c: Likewise.
5684 * except.c: Likewise.
5685 * explow.c: Likewise.
5686 * expmed.c: Likewise.
5688 * final.c: Likewise.
5689 * fixed-value.c: Likewise.
5690 * fold-const.c: Likewise.
5691 * function.c: Likewise.
5692 * fwprop.c: Likewise.
5694 * generic-match-head.c: Likewise.
5695 * ggc-common.c: Likewise.
5696 * gimple-builder.c: Likewise.
5697 * gimple-expr.c: Likewise.
5698 * gimple-fold.c: Likewise.
5699 * gimple-iterator.c: Likewise.
5700 * gimple-low.c: Likewise.
5701 * gimple-match-head.c: Likewise.
5702 * gimple-pretty-print.c: Likewise.
5703 * gimple-ssa-isolate-paths.c: Likewise.
5704 * gimple-ssa-strength-reduction.c: Likewise.
5705 * gimple-streamer-in.c: Likewise.
5706 * gimple-streamer-out.c: Likewise.
5707 * gimple-walk.c: Likewise.
5708 * gimple.c: Likewise.
5709 * gimplify-me.c: Likewise.
5710 * gimplify.c: Likewise.
5711 * godump.c: Likewise.
5712 * graph.c: Likewise.
5713 * graphds.c: Likewise.
5714 * haifa-sched.c: Likewise.
5715 * hw-doloop.c: Likewise.
5716 * ifcvt.c: Likewise.
5717 * init-regs.c: Likewise.
5718 * internal-fn.c: Likewise.
5719 * ipa-chkp.c: Likewise.
5720 * ipa-comdats.c: Likewise.
5721 * ipa-cp.c: Likewise.
5722 * ipa-devirt.c: Likewise.
5723 * ipa-icf-gimple.c: Likewise.
5724 * ipa-icf.c: Likewise.
5725 * ipa-inline-analysis.c: Likewise.
5726 * ipa-inline-transform.c: Likewise.
5727 * ipa-inline.c: Likewise.
5728 * ipa-polymorphic-call.c: Likewise.
5729 * ipa-profile.c: Likewise.
5730 * ipa-prop.c: Likewise.
5731 * ipa-pure-const.c: Likewise.
5732 * ipa-ref.c: Likewise.
5733 * ipa-reference.c: Likewise.
5734 * ipa-split.c: Likewise.
5735 * ipa-utils.c: Likewise.
5736 * ipa-visibility.c: Likewise.
5738 * ira-build.c: Likewise.
5739 * ira-color.c: Likewise.
5740 * ira-conflicts.c: Likewise.
5741 * ira-costs.c: Likewise.
5742 * ira-emit.c: Likewise.
5743 * ira-lives.c: Likewise.
5746 * langhooks.c: Likewise.
5748 * lists.c: Likewise.
5749 * loop-doloop.c: Likewise.
5750 * loop-init.c: Likewise.
5751 * loop-invariant.c: Likewise.
5752 * loop-iv.c: Likewise.
5753 * loop-unroll.c: Likewise.
5754 * lower-subreg.c: Likewise.
5755 * lra-assigns.c: Likewise.
5756 * lra-coalesce.c: Likewise.
5757 * lra-constraints.c: Likewise.
5758 * lra-eliminations.c: Likewise.
5759 * lra-lives.c: Likewise.
5760 * lra-remat.c: Likewise.
5761 * lra-spills.c: Likewise.
5763 * lto-cgraph.c: Likewise.
5764 * lto-compress.c: Likewise.
5765 * lto-opts.c: Likewise.
5766 * lto-section-in.c: Likewise.
5767 * lto-section-out.c: Likewise.
5768 * lto-streamer-in.c: Likewise.
5769 * lto-streamer-out.c: Likewise.
5770 * lto-streamer.c: Likewise.
5772 * mode-switching.c: Likewise.
5773 * modulo-sched.c: Likewise.
5774 * optabs.c: Likewise.
5775 * opts-global.c: Likewise.
5776 * passes.c: Likewise.
5777 * plugin.c: Likewise.
5778 * postreload-gcse.c: Likewise.
5779 * postreload.c: Likewise.
5780 * predict.c: Likewise.
5781 * print-tree.c: Likewise.
5782 * profile.c: Likewise.
5784 * realmpfr.c: Likewise.
5785 * recog.c: Likewise.
5787 * reg-stack.c: Likewise.
5788 * regcprop.c: Likewise.
5789 * reginfo.c: Likewise.
5790 * regrename.c: Likewise.
5791 * regstat.c: Likewise.
5792 * reload.c: Likewise.
5793 * reload1.c: Likewise.
5794 * reorg.c: Likewise.
5795 * resource.c: Likewise.
5796 * rtl-chkp.c: Likewise.
5797 * rtl-error.c: Likewise.
5798 * rtlanal.c: Likewise.
5799 * rtlhooks.c: Likewise.
5800 * sanopt.c: Likewise.
5801 * sched-deps.c: Likewise.
5802 * sched-ebb.c: Likewise.
5803 * sched-rgn.c: Likewise.
5804 * sdbout.c: Likewise.
5805 * sel-sched-dump.c: Likewise.
5806 * sel-sched-ir.c: Likewise.
5807 * sel-sched.c: Likewise.
5809 * shrink-wrap.c: Likewise.
5810 * simplify-rtx.c: Likewise.
5811 * stack-ptr-mod.c: Likewise.
5812 * statistics.c: Likewise.
5814 * stor-layout.c: Likewise.
5815 * store-motion.c: Likewise.
5816 * stringpool.c: Likewise.
5817 * symtab.c: Likewise.
5818 * target-globals.c: Likewise.
5819 * targhooks.c: Likewise.
5820 * toplev.c: Likewise.
5821 * tracer.c: Likewise.
5822 * trans-mem.c: Likewise.
5823 * tree-affine.c: Likewise.
5824 * tree-call-cdce.c: Likewise.
5825 * tree-cfg.c: Likewise.
5826 * tree-cfgcleanup.c: Likewise.
5827 * tree-chkp-opt.c: Likewise.
5828 * tree-chkp.c: Likewise.
5829 * tree-chrec.c: Likewise.
5830 * tree-complex.c: Likewise.
5831 * tree-data-ref.c: Likewise.
5832 * tree-dfa.c: Likewise.
5833 * tree-diagnostic.c: Likewise.
5834 * tree-dump.c: Likewise.
5835 * tree-eh.c: Likewise.
5836 * tree-emutls.c: Likewise.
5837 * tree-if-conv.c: Likewise.
5838 * tree-inline.c: Likewise.
5839 * tree-into-ssa.c: Likewise.
5840 * tree-iterator.c: Likewise.
5841 * tree-loop-distribution.c: Likewise.
5842 * tree-nested.c: Likewise.
5843 * tree-nrv.c: Likewise.
5844 * tree-object-size.c: Likewise.
5845 * tree-outof-ssa.c: Likewise.
5846 * tree-parloops.c: Likewise.
5847 * tree-phinodes.c: Likewise.
5848 * tree-predcom.c: Likewise.
5849 * tree-pretty-print.c: Likewise.
5850 * tree-profile.c: Likewise.
5851 * tree-scalar-evolution.c: Likewise.
5852 * tree-sra.c: Likewise.
5853 * tree-ssa-address.c: Likewise.
5854 * tree-ssa-alias.c: Likewise.
5855 * tree-ssa-ccp.c: Likewise.
5856 * tree-ssa-coalesce.c: Likewise.
5857 * tree-ssa-copy.c: Likewise.
5858 * tree-ssa-dce.c: Likewise.
5859 * tree-ssa-dse.c: Likewise.
5860 * tree-ssa-forwprop.c: Likewise.
5861 * tree-ssa-ifcombine.c: Likewise.
5862 * tree-ssa-live.c: Likewise.
5863 * tree-ssa-loop-ch.c: Likewise.
5864 * tree-ssa-loop-im.c: Likewise.
5865 * tree-ssa-loop-ivcanon.c: Likewise.
5866 * tree-ssa-loop-ivopts.c: Likewise.
5867 * tree-ssa-loop-manip.c: Likewise.
5868 * tree-ssa-loop-niter.c: Likewise.
5869 * tree-ssa-loop-prefetch.c: Likewise.
5870 * tree-ssa-loop-unswitch.c: Likewise.
5871 * tree-ssa-loop.c: Likewise.
5872 * tree-ssa-math-opts.c: Likewise.
5873 * tree-ssa-operands.c: Likewise.
5874 * tree-ssa-phiopt.c: Likewise.
5875 * tree-ssa-phiprop.c: Likewise.
5876 * tree-ssa-pre.c: Likewise.
5877 * tree-ssa-propagate.c: Likewise.
5878 * tree-ssa-reassoc.c: Likewise.
5879 * tree-ssa-scopedtables.c: Likewise.
5880 * tree-ssa-sink.c: Likewise.
5881 * tree-ssa-strlen.c: Likewise.
5882 * tree-ssa-structalias.c: Likewise.
5883 * tree-ssa-tail-merge.c: Likewise.
5884 * tree-ssa-ter.c: Likewise.
5885 * tree-ssa-threadupdate.c: Likewise.
5886 * tree-ssa-uncprop.c: Likewise.
5887 * tree-ssa-uninit.c: Likewise.
5888 * tree-ssa.c: Likewise.
5889 * tree-ssanames.c: Likewise.
5890 * tree-stdarg.c: Likewise.
5891 * tree-streamer-in.c: Likewise.
5892 * tree-streamer-out.c: Likewise.
5893 * tree-streamer.c: Likewise.
5894 * tree-switch-conversion.c: Likewise.
5895 * tree-tailcall.c: Likewise.
5896 * tree-vect-data-refs.c: Likewise.
5897 * tree-vect-generic.c: Likewise.
5898 * tree-vect-loop-manip.c: Likewise.
5899 * tree-vect-loop.c: Likewise.
5900 * tree-vect-patterns.c: Likewise.
5901 * tree-vect-slp.c: Likewise.
5902 * tree-vect-stmts.c: Likewise.
5903 * tree-vectorizer.c: Likewise.
5904 * tree-vrp.c: Likewise.
5907 * ubsan.c: Likewise.
5908 * value-prof.c: Likewise.
5909 * var-tracking.c: Likewise.
5910 * varasm.c: Likewise.
5911 * varpool.c: Likewise.
5912 * vmsdbgout.c: Likewise.
5913 * vtable-verify.c: Likewise.
5915 * wide-int-print.cc: Likewise.
5916 * wide-int.cc: Likewise.
5917 * xcoffout.c: Likewise.
5919 2015-10-30 James Greenhalgh <james.greenhalgh@arm.com>
5921 * doc/invoke.texi (fdump-rtl-@var{pass}): Clarify relationship
5922 between pass numbering and execution order.
5924 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5926 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Use reg_set_p to
5927 check for dependencies.
5929 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
5931 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Don't free
5934 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
5936 * real.h (format_helper): New.
5937 (real_convert, exact_real_truncate, real_from_string3, real_to_target)
5938 (real_from_target, real_nan, real_2expN, real_value_truncate)
5939 (significand_size, real_from_string2, exact_real_inverse)
5940 (exact_real_inverse, real_powi, real_trunc, real_floor, real_ceil)
5941 (real_round, real_isinteger, real_from_integer): Replace
5942 machine_mode arguments with format_helper arguments.
5943 * real.c (exact_real_inverse, real_from_string2, real_from_string3)
5944 (real_from_integer, real_nan, real_2expN, real_convert)
5945 (real_value_truncate, exact_real_truncate, real_to_target)
5946 (real_from_target, significand_size, real_powi, real_trunc)
5947 (real_floor, real_ceil, real_round, real_isinteger): Replace
5948 machine_mode arguments with format_helper arguments.
5949 (real_to_target_fmt, real_from_target_fmt): Delete.
5950 * dfp.h (decimal_real_convert): Replace mode argument with real_format.
5951 * dfp.c (decimal_to_binary, decimal_real_convert): Replace mode
5952 argument with real_format.
5953 * builtins.c (do_real_to_int_conversion): Update type of fn argument.
5955 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
5957 * fixed-value.c (check_real_for_fixed_mode, fixed_from_string)
5958 (fixed_to_decimal, fixed_convert_from_real)
5959 (real_convert_from_fixed): Fix mode arguments to real_2expN.
5961 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
5963 * real.h (REAL_MODE_FORMAT): Abort if the mode isn't a
5964 SCALAR_FLOAT_MODE_P.
5966 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
5968 * tree-sra.c (scalarizable_type_p): Comment variable-length arrays.
5969 (completely_scalarize): Comment zero-length arrays.
5970 (get_access_replacement): Correct comment re. precondition.
5972 2015-10-30 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
5974 * config/i386/i386.c (get_builtin_code_for_version): Set priority
5975 for PROCESSOR_ZNVER1.
5976 (enum processor_model): Add M_AMDFAM17H_znver1.
5977 (struct arch_names_table): Likewise.
5978 * doc/extend.texi: ADD znver1.
5980 2015-10-30 Richard Biener <rguenther@suse.de>
5982 * gimple-fold.c (fold_gimple_assign): Do not dispatch to
5983 fold () on single RHSs. Allow CONSTRUCTORS with trailing
5984 zeros to be folded to VECTOR_CSTs.
5985 * tree.c (build_vector_from_ctor): Handle VECTOR_CST elements.
5986 * fold-const.c (fold): Use build_vector_from_ctor.
5988 2015-10-30 Evandro Menezes <e.menezes@samsung.com>
5990 * config/aarch64/aarch64.md (*movhf_aarch64): Change the type of
5991 "mov %0.h[0], %1.h[0] to "neon_move".
5992 (*movtf_aarch64): Change the type of "fmov %s0, wzr" to "f_mcr".
5993 (*cmov<mode>_insn): Change the types of "mov %<w>0, {-1,1}" to
5995 (*cmovsi_insn_uxtw): Likewise.
5997 2015-10-30 Tom de Vries <tom@codesourcery.com>
5999 * tree-ssa-structalias.c (ipa_pta_execute): Declare variable from as
6000 unsigned, and initialize, and use initial value instead of hardcoded
6001 constant. Add generic constraints dumping section. Don't dump global
6002 initializers constraints dumping section if empty. Don't update
6003 variable from if unused.
6005 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
6007 * config/alpha/alpha.c (alpha_function_arg): Use gcc_checking_assert,
6008 flag_checking and/or CHECKING_P to eliminate conditional compilation
6010 * config/arm/arm.c (arm_unwind_emit_sequence): Likewise.
6011 * config/bfin/bfin.c (hwloop_optimize): Likewise.
6012 * config/i386/i386.c (ix86_print_operand_address): Likewise.
6013 (output_387_binary_op): Likewise.
6014 * config/ia64/ia64.c (ia64_sched_init, bundling): Likewise.
6015 * config/m68k/m68k.c (m68k_sched_md_init_global): Likewise.
6016 * config/rs6000/rs6000.c (htm_expand_builtin, rs6000_emit_prologue):
6018 * config/rs6000/rs6000.h: Likewise.
6019 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
6021 2015-10-29 Kaz Kojima <kkojima@gcc.gnu.org>
6023 * config/sh/sh.opt (mfdpic): Add missing period.
6025 2015-08-29 Anatoly Sokolov <aesok@post.ru>
6027 * config/mcore/mcore.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
6028 BASE_REGISTER_RTX_P, INDEX_REGISTER_RTX_P,
6029 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
6030 * config/mcore/mcore.c (mcore_reg_ok_for_base_p,
6031 mcore_base_register_rtx_p, mcore_legitimate_index_p,
6032 mcore_legitimate_address_p): New functions.
6033 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
6035 2015-10-29 Jeff Law <law@redhat.com>
6037 * tree-ssa-scopedtables.h (const_and_copies): Remove invalidate
6039 * tree-ssa-scopedtables.h (const_and_copies::invalidate): Remove.
6040 * tree-ssa-threadedge.c
6041 (record_temporary_equivalences_from_stmts_at_dest): Remove
6042 backedge_seen argument and associated code which invalidated
6043 equivalences based on the value of that argument.
6044 (thread_through_normal_block): Corresponding changes.
6046 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
6048 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Move this
6049 function earlier in the file.
6050 (first_reg_to_save): Use rs6000_reg_live_or_pic_offset_p instead of
6051 df_regs_ever_live_p.
6053 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
6055 * lra-constraints.c (process_address_1): Handle (mem:BLK (scratch))
6058 2015-10-29 Richard Henderson <rth@redhat.com>
6062 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
6063 sse check to the exact conditions of PR 67609.
6065 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
6067 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Split libfunc
6068 setup into 3 functions: init_float128_ibm, init_float128_ieee, and
6069 rs6000_init_libfuncs. If -mfloat128, add IFmode functions for all
6070 of the traditional names that TFmode uses for handling IEEE
6071 extended double. If -mfloat128, add KFmode functions for all of
6072 the emulation functions. If -mabi=ieeelongdouble and -mfloat128,
6073 make TFmode use the same emulation functions as KFmode.
6074 (init_float128_ibm): Likewise.
6075 (init_float128_ieee): Likewise.
6076 (rs6000_generate_compare): For IEEE 128-bit floating point
6077 comparisons, call the unordered comparison function instead of the
6078 ordered comparison function.
6079 (rs6000_expand_float128_convert): Deal with operands that are
6080 memory operands. Restructure the code to use a switch statement on
6081 the mode. Add support for TFmode defaulting to either IBM extended
6082 double or IEEE 128-bit floating point. If the underlying types are
6083 the same, use a move instead of a conversion function.
6084 (TARGET_C_MODE_FOR_SUFFIX): Define 'q' and 'Q' as the suffix to
6085 use for IEEE 128-bit floating point constants with -mfloat128.
6086 (rs6000_c_mode_for_suffix): Likewise.
6087 (TARGET_INVALID_BINARY_OP): Do not allow inter-mixing of IEEE
6088 128-bit floating point with IBM extended double floating point.
6089 (rs6000_invalid_binary_op): Likewise.
6090 (rs6000_gen_le_vsx_permute): On little endian systems generate a
6091 ROTATE insn instead of VEC_SELECT for IEEE 128-bit floating point
6092 types that can go in vector registers.
6093 (chain_contains_only_swaps): Properly swap IEEE 128-bit floating
6094 point types that can go in vector registers on little endian
6096 (mark_swaps_for_removal): Likewise.
6097 (rs6000_analyze_swaps): Likewise.
6098 (rs6000_mangle_type): Use U10__float128 for IEEE 128-bit floating point.
6100 * config/rs6000/rs6000.md (FLOAT128_SFDFTF): Delete iterator,
6101 rework IEEE 128-bit floating point insns to deal with TFmode being
6102 either IBM extended double or IEEE 128-bit floating point.
6104 (IBM128): Update iterator to add condition that the mode is IBM
6106 (IEEE128): New iterator for IEEE 128-bit floating point.
6107 (TFIFKF): Rename TFIFKF iterator to FLOAT128.
6108 (FLOAT128): Likewise.
6109 (signbit<mode>2): FLOAT128_IBM_P condition test moved into IBM128
6111 (neg<mode>2): Replace TFIFKF iterator with FLOAT128. Add support
6112 for TFmode being IEEE 128-bit floating point. Use IEEE128 iterator
6113 instead of hard coding TFmode or KFmode.
6114 (negtf2_internal): Likewise.
6115 (neg<mode>2_internal): Likewise.
6116 (abs<mode>2): Likewise.
6117 (abstf2_internal): Likewise.
6118 (abs<mode>2_internal): Likewise.
6119 (ieee_128bit_neg<mode>2): Likewise.
6120 (ieee_128bit_neg<mode>2_internal): Likewise.
6121 (ieee_128bit_abs<mode>2): Likewise.
6122 (ieee_128bit_abs<mode>2_internal): Likewise.
6123 (ieee_128bit_nabs<mode>2): Likewise.
6124 (ieee_128bit_nabs<mode>2_internal): Likewise.
6125 (extendiftf2): Add explicit conversions between 128-bit floating
6126 point types. Drop the old conversions that had become unwieldy.
6127 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
6128 (extendifkf2): Likewise.
6129 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
6130 (extendtfkf2): Likewise.
6131 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
6132 (trunciftf2): Likewise.
6133 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
6134 (truncifkf2): Likewise.
6135 (float<SDI:mode><IFKF:mode>2): Likewise.
6136 (trunckftf2): Likewise.
6137 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
6138 (trunctfif2): Likewise.
6139 (FP iterator): Allow TFmode to be IEEE 128-bit floating point.
6140 (extenddftf2): Rework 128-bit floating point conversions to
6141 properly handle -mabi=ieeelongdouble. Merge IFmode, TFmode, and
6142 KFmode expanders into one function.
6143 (extenddf<mode>2): Likewise.
6144 (extenddftf2_fprs): Likewise.
6145 (extenddf<mode>2_fprs): Likewise.
6146 (extenddftf2_vsx): Likewise.
6147 (extenddf<mode>2_vsx): Likewise.
6148 (extendsftf2): Likewise.
6149 (extendsf<mode>2): Likewise.
6150 (trunctfdf2): Likewise.
6151 (trunc<mode>df2): Likewise.
6152 (trunctfdf2_internal1): Likewise.
6153 (trunc<mode>df2_internal1): Likewise.
6154 (trunctfdf2_internal2): Likewise.
6155 (trunc<mode>df2_internal2): Likewise.
6156 (trunctfsf2): Likewise.
6157 (trunc<mode>sf2): Likewise.
6158 (trunctfsf2_fprs): Likewise.
6159 (trunc<mode>sf2_fprs): Likewise.
6160 (floatsit2f): Likewise.
6161 (floatsi<mode>2): Likewise.
6162 (fix_trunc_helper): Likewise.
6163 (fix_trunc_helper<mode>): Likewise.
6164 (fix_trunctfsi2): Likewise.
6165 (fix_trunc<mode>si2): Likewise.
6166 (fix_trunctfsi2_fprs): Likewise.
6167 (fix_trunc<mode>si2_fprs): Likewise.
6168 (fix_trunctfsi2_internal): Likewise.
6169 (fix_trunc<mode>si2_internal): Likewise.
6170 (fix_trunctfdi2): Likewise.
6171 (fix_trunc<mode>di2): Likewise.
6172 (fixuns_trunctf<mode>2): Likewise.
6173 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
6174 (floatditf2): Likewise.
6175 (floatdi<mode>2): Likewise.
6176 (floatuns<mode>tf2): Likewise.
6177 (floatuns<SDI:mode><IEEE128:mode>): Likewise.
6178 (cmptf_internal1): Use a mode iterator to add support for both
6179 types (IFmode, TFmode) that support IBM extended double.
6180 (cmp<mode>_internal1): Likewise.
6181 (cmptf_internal2): Likewise.
6182 (cmp<mode>_internal2): Likewise.
6184 * doc/extend.texi (Floating Types): Document __ibm128 and
6185 __float128 on PowerPC.
6187 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
6188 -mfloat128 and -mno-float128.
6190 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
6192 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Add IEEE 128-bit
6193 floating point modes that can go in vector registers.
6194 (MODES_TIEABLE_P): Move tests for vector modes before tests for
6195 scalar floating point, so that IEEE 128-bit floating point that
6196 can go in vector registers bind with vectors and not FP.
6197 (struct rs6000_args): Add libcall field.
6199 * config/rs6000/rs6000.opt (-mfloat128-*): Delete -mfloat128-none
6200 and -mfloat128-software switches. Replace them with a binary
6202 (-mfloat128): Likewise.
6204 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
6205 128-bit floating point types in GPRs, even if the appropriate
6206 option enabling the type was not used.
6207 (rs6000_debug_reg_global): Remove -mfloat128-{software,none}
6209 (rs6000_setup_reg_addr_masks): Do not allow pre-increment and
6210 pre-decrement on IEEE 128-bit floating point values.
6211 (rs6000_init_hard_regno_mode_ok): Change test for whether TFmode
6212 is IEEE 128-bit floating point.
6213 (rs6000_init_hard_regno_mode_ok): Add reload handlers for IEEE
6214 128-bit floating point types that can go in vector registers.
6215 (rs6000_option_override_internal): Change -mfloat128-none and
6216 -mfloat128-software to -mfloat128, and move code to be near other
6217 VSX option handling.
6218 (rs6000_option_override_internal): Disable -mfloat128 if we don't
6219 have the Altivec ABI.
6220 (rs6000_init_builtins): Don't make TFmode use either IFmode or
6221 KFmode floating point nodes. Instead, have three separate nodes.
6222 (rs6000_scalar_mode_supported_p): Add support for IFmode to allow
6223 eventually moving the long double default to IEEE 128-bit floating
6225 (rs6000_opt_masks): Add -mfloat128.
6226 (struct rs6000_opt_var): Fix typo in comment.
6227 (init_cumulative_args): Initialize libcall field in
6229 (rs6000_function_arg): Treat library functions as if they had
6230 prototypes to prevent IEEE 128-bit support functions from passing
6231 arguments in both GPRs and vector registers.
6232 (rs6000_arg_partial_bytes): Likewise.
6234 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add -mfloat128 as
6235 an option that can be turned on via -mcpu=<xxx>.
6237 * config/rs6000/rs6000-opts.h (enum float128_type_t): Delete, no
6240 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
6241 __FLOAT128__ if -mfloat128. Define __LONG_DOUBLE_IEEE128__ if long
6242 double is IEEE 128-bit. Define __LONG_DOUBLE_IBM128__ if long
6243 double is IBM extended double.
6245 * config/rs6000/predicates.md (reg_or_indexed_operand): Allow
6248 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
6250 * genautomata.c: Use CHECKING_P instead of ENABLE_CHECKING.
6251 * genconditions.c: Define CHECKING_P in the generated code.
6252 * genextract.c: Use flag_checking in insn_extract.
6253 * gengtype.c (main): Remove conditional compilation.
6254 * gengtype.h: Likewise.
6256 2015-10-29 Jeff Law <law@redhat.com>
6258 PR tree-optimization/67892
6259 * tree-ssa-threadedge.c (simplify_controL_stmt_condition): Fix typo
6261 (thread_through_normal_block): If we have seen a backedge, then
6262 do nothing. No longer call find_jump_threads_backwards here.
6263 (thread_across_edge): Use find_jump_threads_backwards to find
6264 jump threads if the old style threader was not successful.
6265 * tree-ssa-threadbackward.c (get_gimple_control_stmt): Use
6266 gsi_last_nondebug_bb. Return NULL if the block does not end
6267 with a control statement.
6268 (find_jump_threads_backwards): Setup code moved here from
6269 tree-ssa-threadedge.c::thread_through_normal_block. Accept
6270 single edge argument instead of name & block.
6271 * tree-ssa-threadbackward.h (find_jump_threads_backwards): Update
6274 2015-10-29 Tom de Vries <tom@codesourcery.com>
6276 * fold-const.c (fold_unary_loc): Remove folding inhibition for restrict
6279 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
6281 * omp-low.c (lower_omp_target): Remove unreachable code & merge
6284 2015-10-29 Marc Glisse <marc.glisse@inria.fr>
6286 * match.pd (X-(X/Y)*Y): Properly handle conversions and commutativity.
6288 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
6290 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
6291 guard_bb0 and use guard_bb throughout.
6293 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
6295 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
6298 2015-10-29 Richard Biener <rguenther@suse.de>
6301 * fold-const.c (extract_muldiv_1): Avoid introducing undefined
6304 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
6306 * alias.c: Reorder #include statements and remove duplicates.
6308 * attribs.c: Likewise.
6309 * auto-inc-dec.c: Likewise.
6310 * auto-profile.c: Likewise.
6311 * bb-reorder.c: Likewise.
6312 * bt-load.c: Likewise.
6313 * builtins.c: Likewise.
6314 * caller-save.c: Likewise.
6315 * calls.c: Likewise.
6318 * cfganal.c: Likewise.
6319 * cfgbuild.c: Likewise.
6320 * cfgcleanup.c: Likewise.
6321 * cfgexpand.c: Likewise.
6322 * cfghooks.c: Likewise.
6323 * cfgloop.c: Likewise.
6324 * cfgloopanal.c: Likewise.
6325 * cfgloopmanip.c: Likewise.
6326 * cfgrtl.c: Likewise.
6327 * cgraph.c: Likewise.
6328 * cgraphbuild.c: Likewise.
6329 * cgraphclones.c: Likewise.
6330 * cgraphunit.c: Likewise.
6331 * cilk-common.c: Likewise.
6332 * combine-stack-adj.c: Likewise.
6333 * combine.c: Likewise.
6334 * compare-elim.c: Likewise.
6335 * convert.c: Likewise.
6336 * coverage.c: Likewise.
6337 * cppbuiltin.c: Likewise.
6338 * cprop.c: Likewise.
6340 * cselib.c: Likewise.
6341 * data-streamer-in.c: Likewise.
6342 * data-streamer-out.c: Likewise.
6343 * data-streamer.c: Likewise.
6344 * dbxout.c: Likewise.
6347 * debug.c: Likewise.
6348 * df-core.c: Likewise.
6349 * df-problems.c: Likewise.
6350 * df-scan.c: Likewise.
6352 * dojump.c: Likewise.
6353 * dominance.c: Likewise.
6354 * double-int.c: Likewise.
6356 * dumpfile.c: Likewise.
6357 * dwarf2asm.c: Likewise.
6358 * dwarf2cfi.c: Likewise.
6359 * dwarf2out.c: Likewise.
6360 * emit-rtl.c: Likewise.
6361 * except.c: Likewise.
6362 * explow.c: Likewise.
6363 * expmed.c: Likewise.
6365 * final.c: Likewise.
6366 * fixed-value.c: Likewise.
6367 * fold-const.c: Likewise.
6368 * function.c: Likewise.
6369 * fwprop.c: Likewise.
6371 * generic-match-head.c: Likewise.
6372 * ggc-common.c: Likewise.
6373 * gimple-builder.c: Likewise.
6374 * gimple-expr.c: Likewise.
6375 * gimple-fold.c: Likewise.
6376 * gimple-iterator.c: Likewise.
6377 * gimple-low.c: Likewise.
6378 * gimple-match-head.c: Likewise.
6379 * gimple-pretty-print.c: Likewise.
6380 * gimple-ssa-isolate-paths.c: Likewise.
6381 * gimple-ssa-strength-reduction.c: Likewise.
6382 * gimple-streamer-in.c: Likewise.
6383 * gimple-streamer-out.c: Likewise.
6384 * gimple-walk.c: Likewise.
6385 * gimple.c: Likewise.
6386 * gimplify-me.c: Likewise.
6387 * gimplify.c: Likewise.
6388 * godump.c: Likewise.
6389 * graph.c: Likewise.
6390 * graphite-poly.c: Likewise.
6391 * haifa-sched.c: Likewise.
6392 * hw-doloop.c: Likewise.
6393 * ifcvt.c: Likewise.
6394 * incpath.c: Likewise.
6395 * init-regs.c: Likewise.
6396 * internal-fn.c: Likewise.
6397 * ipa-chkp.c: Likewise.
6398 * ipa-comdats.c: Likewise.
6399 * ipa-cp.c: Likewise.
6400 * ipa-devirt.c: Likewise.
6401 * ipa-icf-gimple.c: Likewise.
6402 * ipa-icf.c: Likewise.
6403 * ipa-inline-analysis.c: Likewise.
6404 * ipa-inline-transform.c: Likewise.
6405 * ipa-inline.c: Likewise.
6406 * ipa-polymorphic-call.c: Likewise.
6407 * ipa-profile.c: Likewise.
6408 * ipa-prop.c: Likewise.
6409 * ipa-pure-const.c: Likewise.
6410 * ipa-ref.c: Likewise.
6411 * ipa-reference.c: Likewise.
6412 * ipa-split.c: Likewise.
6413 * ipa-utils.c: Likewise.
6414 * ipa-visibility.c: Likewise.
6416 * ira-build.c: Likewise.
6417 * ira-color.c: Likewise.
6418 * ira-conflicts.c: Likewise.
6419 * ira-costs.c: Likewise.
6420 * ira-emit.c: Likewise.
6421 * ira-lives.c: Likewise.
6424 * langhooks.c: Likewise.
6426 * lists.c: Likewise.
6427 * loop-doloop.c: Likewise.
6428 * loop-init.c: Likewise.
6429 * loop-invariant.c: Likewise.
6430 * loop-iv.c: Likewise.
6431 * loop-unroll.c: Likewise.
6432 * lower-subreg.c: Likewise.
6433 * lra-assigns.c: Likewise.
6434 * lra-coalesce.c: Likewise.
6435 * lra-constraints.c: Likewise.
6436 * lra-eliminations.c: Likewise.
6437 * lra-lives.c: Likewise.
6438 * lra-remat.c: Likewise.
6439 * lra-spills.c: Likewise.
6441 * lto-cgraph.c: Likewise.
6442 * lto-compress.c: Likewise.
6443 * lto-opts.c: Likewise.
6444 * lto-section-in.c: Likewise.
6445 * lto-section-out.c: Likewise.
6446 * lto-streamer-in.c: Likewise.
6447 * lto-streamer-out.c: Likewise.
6448 * lto-streamer.c: Likewise.
6449 * mode-switching.c: Likewise.
6450 * modulo-sched.c: Likewise.
6451 * omp-low.c: Likewise.
6452 * optabs.c: Likewise.
6453 * opts-global.c: Likewise.
6454 * passes.c: Likewise.
6455 * plugin.c: Likewise.
6456 * postreload-gcse.c: Likewise.
6457 * postreload.c: Likewise.
6458 * predict.c: Likewise.
6459 * print-tree.c: Likewise.
6460 * profile.c: Likewise.
6462 * realmpfr.c: Likewise.
6463 * recog.c: Likewise.
6465 * reg-stack.c: Likewise.
6466 * regcprop.c: Likewise.
6467 * reginfo.c: Likewise.
6468 * regrename.c: Likewise.
6469 * regstat.c: Likewise.
6470 * reload.c: Likewise.
6471 * reload1.c: Likewise.
6472 * reorg.c: Likewise.
6473 * resource.c: Likewise.
6474 * rtl-chkp.c: Likewise.
6475 * rtl-error.c: Likewise.
6476 * rtlanal.c: Likewise.
6477 * rtlhooks.c: Likewise.
6478 * sanopt.c: Likewise.
6479 * sched-deps.c: Likewise.
6480 * sched-ebb.c: Likewise.
6481 * sched-rgn.c: Likewise.
6483 * shrink-wrap.c: Likewise.
6484 * simplify-rtx.c: Likewise.
6485 * stack-ptr-mod.c: Likewise.
6486 * statistics.c: Likewise.
6488 * stor-layout.c: Likewise.
6489 * store-motion.c: Likewise.
6490 * stringpool.c: Likewise.
6491 * symtab.c: Likewise.
6492 * target-globals.c: Likewise.
6493 * targhooks.c: Likewise.
6494 * toplev.c: Likewise.
6495 * tracer.c: Likewise.
6496 * trans-mem.c: Likewise.
6497 * tree-affine.c: Likewise.
6498 * tree-call-cdce.c: Likewise.
6499 * tree-cfg.c: Likewise.
6500 * tree-cfgcleanup.c: Likewise.
6501 * tree-chkp-opt.c: Likewise.
6502 * tree-chkp.c: Likewise.
6503 * tree-chrec.c: Likewise.
6504 * tree-complex.c: Likewise.
6505 * tree-data-ref.c: Likewise.
6506 * tree-dfa.c: Likewise.
6507 * tree-diagnostic.c: Likewise.
6508 * tree-dump.c: Likewise.
6509 * tree-eh.c: Likewise.
6510 * tree-emutls.c: Likewise.
6511 * tree-if-conv.c: Likewise.
6512 * tree-inline.c: Likewise.
6513 * tree-into-ssa.c: Likewise.
6514 * tree-iterator.c: Likewise.
6515 * tree-loop-distribution.c: Likewise.
6516 * tree-nested.c: Likewise.
6517 * tree-nrv.c: Likewise.
6518 * tree-object-size.c: Likewise.
6519 * tree-outof-ssa.c: Likewise.
6520 * tree-parloops.c: Likewise.
6521 * tree-phinodes.c: Likewise.
6522 * tree-predcom.c: Likewise.
6523 * tree-pretty-print.c: Likewise.
6524 * tree-profile.c: Likewise.
6525 * tree-scalar-evolution.c: Likewise.
6526 * tree-sra.c: Likewise.
6527 * tree-ssa-address.c: Likewise.
6528 * tree-ssa-alias.c: Likewise.
6529 * tree-ssa-ccp.c: Likewise.
6530 * tree-ssa-coalesce.c: Likewise.
6531 * tree-ssa-copy.c: Likewise.
6532 * tree-ssa-dce.c: Likewise.
6533 * tree-ssa-dom.c: Likewise.
6534 * tree-ssa-dse.c: Likewise.
6535 * tree-ssa-forwprop.c: Likewise.
6536 * tree-ssa-ifcombine.c: Likewise.
6537 * tree-ssa-live.c: Likewise.
6538 * tree-ssa-loop-ch.c: Likewise.
6539 * tree-ssa-loop-im.c: Likewise.
6540 * tree-ssa-loop-ivcanon.c: Likewise.
6541 * tree-ssa-loop-ivopts.c: Likewise.
6542 * tree-ssa-loop-manip.c: Likewise.
6543 * tree-ssa-loop-niter.c: Likewise.
6544 * tree-ssa-loop-prefetch.c: Likewise.
6545 * tree-ssa-loop-unswitch.c: Likewise.
6546 * tree-ssa-loop.c: Likewise.
6547 * tree-ssa-math-opts.c: Likewise.
6548 * tree-ssa-operands.c: Likewise.
6549 * tree-ssa-phiopt.c: Likewise.
6550 * tree-ssa-phiprop.c: Likewise.
6551 * tree-ssa-pre.c: Likewise.
6552 * tree-ssa-propagate.c: Likewise.
6553 * tree-ssa-reassoc.c: Likewise.
6554 * tree-ssa-sccvn.c: Likewise.
6555 * tree-ssa-scopedtables.c: Likewise.
6556 * tree-ssa-sink.c: Likewise.
6557 * tree-ssa-strlen.c: Likewise.
6558 * tree-ssa-structalias.c: Likewise.
6559 * tree-ssa-tail-merge.c: Likewise.
6560 * tree-ssa-ter.c: Likewise.
6561 * tree-ssa-threadedge.c: Likewise.
6562 * tree-ssa-threadupdate.c: Likewise.
6563 * tree-ssa-uncprop.c: Likewise.
6564 * tree-ssa-uninit.c: Likewise.
6565 * tree-ssa.c: Likewise.
6566 * tree-ssanames.c: Likewise.
6567 * tree-stdarg.c: Likewise.
6568 * tree-streamer-in.c: Likewise.
6569 * tree-streamer-out.c: Likewise.
6570 * tree-streamer.c: Likewise.
6571 * tree-switch-conversion.c: Likewise.
6572 * tree-tailcall.c: Likewise.
6573 * tree-vect-data-refs.c: Likewise.
6574 * tree-vect-generic.c: Likewise.
6575 * tree-vect-loop-manip.c: Likewise.
6576 * tree-vect-loop.c: Likewise.
6577 * tree-vect-patterns.c: Likewise.
6578 * tree-vect-slp.c: Likewise.
6579 * tree-vect-stmts.c: Likewise.
6580 * tree-vectorizer.c: Likewise.
6581 * tree-vrp.c: Likewise.
6584 * ubsan.c: Likewise.
6585 * value-prof.c: Likewise.
6586 * var-tracking.c: Likewise.
6587 * varasm.c: Likewise.
6588 * varpool.c: Likewise.
6589 * vtable-verify.c: Likewise.
6591 * wide-int-print.cc: Likewise.
6592 * wide-int.cc: Likewise.
6593 * xcoffout.c: Likewise.
6595 2015-10-29 H.J. Lu <hongjiu.lu@intel.com>
6597 * Makefile.in (NO_PIE_CFLAGS): New.
6598 (NO_PIE_FLAG): Likewise.
6599 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
6600 (NO_PIE_FLAG_FOR_BUILD): Likewise.
6601 (BUILD_NO_PIE_CFLAGS): Likewise.
6602 (BUILD_NO_PIE_FLAG): Likewise.
6603 (COMPILER): Replace @NO_PIE_CFLAGS@ with $(NO_PIE_CFLAGS).
6604 (LINKER): Replace @NO_PIE_FLAG@ with $(NO_PIE_FLAG).
6605 (BUILD_CFLAGS): Replace @NO_PIE_CFLAGS@ with
6606 $(BUILD_NO_PIE_CFLAGS).
6607 (BUILD_CXXFLAGS): Likewise.
6608 (BUILD_LDFLAGS ): Replace @NO_PIE_FLAG@ with
6609 $(BUILD_NO_PIE_FLAG).
6610 * configure.ac (BUILD_NO_PIE_CFLAGS): New. AC_SUBST.
6611 (BUILD_NO_PIE_FLAG): Likewise.
6612 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
6613 (NO_PIE_FLAG_FOR_BUILD): Likewise.
6614 * configure: Regenerated.
6616 2015-10-29 Richard Biener <rguenther@suse.de>
6619 * fold-const.c (fold_cond_expr_with_comparison): Do not fold
6620 unsigned conditonal negation to ABS_EXPR.
6622 2015-10-29 Richard Biener <rguenther@suse.de>
6624 * gimple-match-head.c (gimple_simplify): Remove premature checking
6625 of builtin_decl_implicit of function calls we simplify.
6627 2015-10-29 Bin Cheng <bin.cheng@arm.com>
6629 * tree-ssa-loop-ivopts.c (split_address_cost): Check depends_on.
6630 (get_computation_cost_at): Ditto.
6631 (determine_use_iv_cost_address): Pass NULL for arguments depends_on
6634 2015-10-28 Tom de Vries <tom@codesourcery.com>
6636 * tree-ssa-structalias.c (intra_create_variable_infos): Remove
6639 2015-10-28 Jason Merrill <jason@redhat.com>
6641 * Makefile.in (TAGS): Include libcpp and libiberty.
6643 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
6645 * omp-low.c (MASK_GANG, MASK_WORKER, MASK_VECTOR): Delete.
6646 (extract_omp_for_data): Remove OpenACC special handling of
6649 * config/nvptx/nvptx.c (nvptx_print_operand): Remove 'd' case.
6650 (struct parallel): Update comment.
6651 (nvptx_reorg): Likewise.
6652 (nvptx_neuter): Cleanup whitespace.
6654 2015-10-28 Richard Henderson <rth@redhat.com>
6656 * tree-eh.c (mark_reachable_handlers): Fix typo in assert.
6658 2015-10-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
6661 * config/avr/predicates.md (low_io_address_operand): Don't
6662 consider MODE when computing upper bound.
6663 (io_address_operand): Likewise.
6665 2015-10-28 Jan Hubicka <hubicka@ucw.cz>
6667 * fold-const.c (operand_equal_p): Do not verify that types are
6668 compatible for MEM_REFs.
6670 2015-10-28 Richard Biener <rguenther@suse.de>
6672 * gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs
6673 in simplifying VEC_COND_EXPR conditions.
6675 2015-10-28 Tom de Vries <tom@codesourcery.com>
6677 * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate
6678 into vi_next of a full_var.
6680 2015-10-28 Tom de Vries <tom@codesourcery.com>
6682 * tree-ssa-structalias.c (new_var_info, make_heapvar)
6683 (make_constraint_from_restrict, make_constraint_from_global_restrict)
6684 (create_function_info_for, create_variable_info_for_1)
6685 (create_variable_info_for): Add and handle add_id parameter.
6686 (get_call_vi, new_scalar_tmp_constraint_exp, handle_rhs_call)
6687 (init_base_vars): Add extra argument to calls to new_var_info.
6688 (get_vi_for_tree): Add extra argument to call to
6689 create_variable_info_for.
6690 (process_constraint, do_deref, process_all_all_constraints): Add extra
6691 argument to calls to new_scalar_tmp_constraint_exp.
6692 (handle_lhs_call, find_func_aliases_for_builtin_call): Add extra
6693 argument to calls to make_heapvar.
6694 (make_restrict_var_constraints): Add extra argument to call to
6695 make_constraint_from_global_restrict.
6696 (intra_create_variable_infos): Add extra argument to call to
6697 create_variable_info_for_1.
6698 (ipa_pta_execute): Add extra argument to call to
6699 create_function_info_for.
6701 2015-10-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6703 * config/aarch64/aarch64.md (call, call_value, sibcall): Handle noplt.
6704 (sibcall_value): Likewise.
6706 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
6708 * config/nvptx/nvptx.h (struct machine_function): Add
6710 * config/nvptx/nvptx-protos.h (nvptx_expand_oacc_fork,
6711 nvptx_expand_oacc_join): Declare.
6712 * config/nvptx/nvptx.md (UNSPEC_NTID, UNSPEC_TID): Delete.
6713 (UNSPEC_DIM_SIZE, UNSPEC_SHARED_DATA, UNSPEC_BIT_CONV,
6714 UNSPEC_SHUFFLE, UNSPEC_BR_UNIFIED): New.
6715 (UNSPECV_BARSYNC, UNSPECV_DIM_POS, UNSPECV_FORK, UNSPECV_FORKED,
6716 UNSPECV_JOINING, UNSPECV_JOIN): New.
6717 (BITS, BITD): New mode iterators.
6718 (br_true_uni, br_false_uni): New.
6719 (*oacc_ntid_insn, oacc_ntid, *oacc_tid_insn, oacc_tid): Delete.
6720 (oacc_dim_size, oacc_dim_pos): New.
6721 (nvptx_fork, nvptx_forked, nvptx_joining, nvptx_join): New.
6722 (oacc_fork, oacc_join): New.
6723 (nvptx_shuffle<mode>, unpack<mode>si2, packsi<mode>2): New.
6724 (worker_load<mode>, worker_store<mode>): New.
6725 (nvptx_barsync): New.
6726 * config/nvptx/nvptx.c: Include gimple.h & dumpfile.h.
6727 (SHUFFLE_UP, SHUFFLE_DOWN, SHUFFLE_BFLY, SHUFFLE_IDX): Define.
6728 (worker_bcast_hwm, worker_bcast_align, worker_bcast_name,
6729 worker_bcast_sym): New.
6730 (nvptx_option_override): Initialize worker broadcast buffer.
6731 (nvptx_emit_forking, nvptx_emit_joining): New.
6732 (nvptx_init_axis_predicate): New.
6733 (nvptx_declare_function_name): Init axis predicates.
6734 (nvptx_expand_call): Add fork/join markers around routine call.
6735 (nvptx_expand_oacc_fork, nvptx_expand_oacc_join): New.
6736 (nvptx_gen_unpack, nvptx_gen_pack, nvptx_gen_shuffle): New.
6737 (nvptx_gen_vcast): New.
6738 (struct wcast_data_t): New.
6739 (enum propagate_mask): New.
6740 (nvptx_gen_wcast): New.
6741 (nvptx_print_operand): Add 'S' case.
6742 (struct parallel): New.
6743 (parallel::parallel, parallel::~parallel): New.
6744 (bb_insn_map_t, insn_bb_t, insn_bb_vec_t): New typedefs.
6745 (nvptx_split_blocks, nvptx_discover_pre, nvptx_dump_pars,
6746 nvptx_find_par, nvptx_discover_pars): New.
6747 (nvptx_propagate): New.
6748 (vprop_gen, nvptx_vpropagate): New.
6749 (wprop_gen, nvptx_wpropagate): New.
6751 (nvptx_single, nvptx_skip_par): New.
6752 (nvptx_process_pars, nvptx_neuter_pars): New.
6753 (ntptx_reorg): Split blocks, generate parallel structure, apply
6755 (nvptx_cannot_copy_insn_p): New.
6756 (nvptx_file_end): Emit worker broadcast decl.
6757 (nvptx_goacc_fork_join): New.
6758 (TARGET_CANNOT_COPY_INSN_P): Override.
6759 (TARGET_GOACC_FORK_JOIN): Override.
6761 2015-10-28 Richard Biener <rguenther@suse.de>
6763 * fold-const.c (negate_expr_p): Adjust the division case to
6764 properly avoid introducing undefined overflow.
6765 (fold_negate_expr): Likewise.
6767 2015-10-28 Richard Biener <rguenther@suse.de>
6769 PR tree-optimization/65962
6770 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
6771 Avoid creating loop carried dependences also for outer loops
6772 of the loop a use to replace is in.
6774 2015-10-28 Richard Biener <rguenther@suse.de>
6776 * common.opt (fchecking): New flag controlling flag_checking.
6777 * passes.c (verify_curr_properties): Drop DEBUG_FUNCTION.
6778 * timevar.c (timer::print): Adjust output.
6779 * doc/invoke.texi (fchecking): Document.
6781 2015-10-28 Richard Biener <rguenther@suse.de>
6784 * fold-const.c (negate_expr_p): We cannot negate plus or minus
6785 if overflow is not wrapping. Likewise multiplication unless
6786 one operand is constant and not power of two.
6787 (fold_negate_expr): Adjust accordingly.
6789 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
6791 * omp-low.c (struct omp_context): Remove gwv_below, gwv_this
6793 (is_oacc_parallel, is_oacc_kernels): New.
6794 (enclosing_target_ctx): May return NULL.
6795 (ctx_in_oacc_kernels_region): New.
6796 (check_oacc_kernel_gwv): New.
6797 (oacc_loop_or_target_p): Delete.
6798 (scan_omp_for): Don't calculate gwv mask. Check parallel clause
6799 operands. Strip reductions fro kernels.
6800 (scan_omp_target): Don't calculate gwv mask.
6801 (lower_oacc_head_mark, lower_oacc_loop_marker,
6802 lower_oacc_head_tail): New.
6803 (struct oacc_collapse): New.
6804 (expand_oacc_collapse_init, expand_oacc_collapse_vars): New.
6805 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
6806 Remove OpenACC handling.
6807 (expand_oacc_for): New.
6808 (expand_omp_for): Call expand_oacc_for.
6809 (lower_omp_for): Call lower_oacc_head_tail.
6811 2015-10-27 Mikhail Maltsev <maltsevm@gmail.com>
6813 * attribs.c (check_attribute_tables): New function, broken out from...
6814 (init_attributes): Use it.
6815 * cfgcleanup.c (try_optimize_cfg): Use flag_checking, CHECKING_P
6816 gcc_checking_assert and checking_* functions to eliminate
6817 ENABLE_CHECKING conditionals.
6818 * cfgexpand.c (expand_goto, expand_debug_expr): Likewise.
6819 (pass_expand::execute): Likewise.
6820 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
6821 * cgraphunit.c (mark_functions_to_output): Likewise.
6822 (cgraph_node::expand_thunk): Likewise.
6823 (symbol_table::compile): Likewise.
6824 * ddg.c (add_cross_iteration_register_deps): Likewise.
6825 (create_ddg_all_sccs): Likewise.
6826 * df-core.c (df_finish_pass, df_analyze): Likewise.
6827 * diagnostic-core.h: Likewise.
6828 * diagnostic.c (diagnostic_report_diagnostic): Likewise.
6829 * dominance.c (calculate_dominance_info): Likewise.
6830 * dwarf2out.c (add_AT_die_ref): Likewise.
6831 (const_ok_for_output_1, mem_loc_descriptor): Likewise.
6832 (loc_list_from_tree, gen_lexical_block_die): Likewise.
6833 gen_type_die_with_usage, gen_type_die): Likewise.
6834 (dwarf2out_decl): Likewise.
6835 * emit-rtl.c (verify_rtx_sharing, reorder_insns_nobb): Likewise.
6836 * except.c (duplicate_eh_regions): Likewise.
6837 * fwprop.c (register_active_defs, update_df_init): Likewise.
6838 (fwprop_init, fwprop_done): Likewise.
6839 (update_uses): Likewise.
6840 * ggc-page.c (ggc_grow): Likewise.
6841 * gimplify.c (gimplify_body): Likewise.
6842 (gimplify_hasher::equal): Likewise.
6843 * graphite-isl-ast-to-gimple.c (graphite_verify): Likewise.
6844 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form):
6846 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Likewise.
6847 (rewrite_cross_bb_scalar_deps_out_of_ssa): Likwise.
6848 * hash-table.h (::find_empty_slot_for_expand): Likewise.
6849 * ifcvt.c (if_convert): Likewise.
6850 * ipa-cp.c (ipcp_propagate_stage): Likewise.
6851 * ipa-devirt.c (type_in_anonymous_namespace_p): Likewise.
6852 (odr_type_p, odr_types_equivalent_p): Likewise.
6853 (add_type_duplicate, get_odr_type): Likewise.
6854 * ipa-icf.c (sem_item_optimizer::execute): Likewise.
6855 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
6856 (sem_item_optimizer::verify_classes): Likewise.
6857 (sem_item_optimizer::traverse_congruence_split): Likewise.
6858 (sem_item_optimizer::checking_verify_classes): New.
6859 * ipa-icf.h (sem_item_optimizer::checking_verify_classes): Add new
6861 * cfgrtl.c (commit_edge_insertions): Likewise.
6862 (fixup_reorder_chain, cfg_layout_finalize): Likewise.
6863 (rtl_flow_call_edges_add): Likewise.
6864 * cgraph.c (symbol_table::create_edge): Likewise.
6865 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
6866 * cgraph.h (symtab_node): Likewise.
6867 (symtab_node::checking_verify_symtab_nodes): Define.
6868 (cgraph_node::checking_verify_cgraph_nodes): Define.
6869 * cfghooks.h (checking_verify_flow_info): Define.
6870 * cfgloop.h (checking_verify_loop_structure): Define.
6871 * dominance.h (checking_verify_dominators): Define.
6872 * et-forest.c: Fix comment.
6873 * ipa-inline-analysis.c (compute_inline_parameters): Use flag_checking,
6874 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
6875 ENABLE_CHECKING conditionals.
6876 * ipa-inline-transform.c (save_inline_function_body): Likewise.
6877 * ipa-inline.c (inline_small_functions): Likewise.
6878 (early_inliner): Likewise.
6879 * ipa-inline.h (estimate_edge_growth): Likewise.
6880 * ipa-visibility.c (function_and_variable_visibility): Likewise.
6881 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
6882 (ipa_single_use): Likewise.
6883 * ira-int.h: Likewise.
6884 * ira.c (ira): Likewise.
6885 * loop-doloop.c (doloop_optimize_loops): Likewise.
6886 * loop-init.c (loop_optimizer_init, fix_loop_structure): Likewise.
6887 * loop-invariant.c (move_loop_invariants): Likewise.
6888 * lra-assigns.c (lra_assign): Likewise.
6889 * lra-constraints.c (lra_constraints): Likewise.
6890 * lra-eliminations.c (lra_eliminate): Likewise.
6891 * lra-int.h (struct lra_reg): Likewise.
6892 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
6893 (lra_create_live_ranges_1): Likewise.
6894 * lra-remat.c (create_remat_bb_data): Likewise.
6895 * lra.c (lra_update_insn_recog_data, restore_scratches): Likewise.
6897 (check_rtl): Always define. Remove incorrect guard around
6898 extract_constrain_insn call.
6899 * lto-cgraph.c (input_cgraph_1: Use flag_checking,
6900 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
6901 ENABLE_CHECKING conditionals.
6902 * lto-streamer-out.c (DFS::DFS): Likewise.
6903 (lto_output): Likewise.
6904 * lto-streamer.c (lto_streamer_init): Likewise.
6905 * omp-low.c (scan_omp_target, expand_omp_taskreg): Likewise.
6906 expand_omp_target, execute_expand_omp): Likewise.
6907 (lower_omp_target): Likewise.
6908 * passes.c (execute_function_todo): Likewise.
6909 (execute_todo, execute_one_pass): Likewise.
6910 (verify_curr_properties): Always define.
6911 * predict.c (tree_estimate_probability: Use flag_checking,
6912 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
6913 ENABLE_CHECKING conditionals.
6914 (propagate_freq): Likewise.
6915 * pretty-print.c (pp_format): Likewise.
6916 * real.c (real_to_decimal_for_mode): Likewise.
6917 * recog.c (split_all_insns): Likewise.
6918 * regcprop.c (kill_value_one_regno): Likewise.
6919 (copy_value): Likewise.
6920 (validate_value_data): Define unconditionally.
6921 * reload.c: Fix comment.
6922 * timevar.c: Include options.h
6923 * tree-ssa.h (checking_verify_ssa): Define.
6924 * tree-ssa-loop-manip.h (checking_verify_loop_closed_ssa): Define.
6925 * sched-deps.c (CHECK): Remove unused macro.
6926 (add_or_update_dep_1, sd_add_dep: Use flag_checking, CHECKING_P
6927 gcc_checking_assert and checking_* functions to eliminate
6928 ENABLE_CHECKING conditionals.
6929 * sel-sched-ir.c (free_regset_pool, tidy_control_flow): Likewise.
6930 * sel-sched.c (struct moveop_static_params): Likewise.
6931 (find_best_reg_for_expr, move_cond_jump): Likewise.
6932 (move_op_orig_expr_not_found): Likewise.
6933 (code_motion_process_successors, move_op): Likewise.
6934 * ssa-iterators.h (first_readonly_imm_use): Likewise.
6935 (next_readonly_imm_use): Likewise.
6936 * store-motion.c (compute_store_table): Likewise.
6937 * symbol-summary.h (function_summary::function_summary): Likewise.
6938 * target.h (cumulative_args_t): Likewise.
6939 (get_cumulative_args, pack_cumulative_args): Likewise.
6940 * timevar.c: (timer::print): Likewise.
6941 * trans-mem.c (ipa_tm_execute): Likewise.
6942 * tree-cfg.c (move_stmt_op): Likewise.
6943 (move_sese_region_to_fn): Likewise.
6944 (gimple_flow_call_edges_add): Likewise.
6945 * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
6947 * tree-eh.c (remove_unreachable_handlers): Likewise.
6948 * tree-if-conv.c (pass_if_conversion::execute): Likewise.
6949 * tree-inline.c (expand_call_inline, optimize_inline_calls): Likewise.
6950 * tree-into-ssa.c (update_ssa): Likewise.
6951 * tree-loop-distribution.c (pass_loop_distribution::execute): Likewise.
6952 * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees): Likewise.
6953 * tree-parloops.c (pass_parallelize_loops::execute): Likewise.
6954 * tree-predcom.c (suitable_component_p): Likewise.
6955 * tree-profile.c (gimple_gen_const_delta_profiler): Likewise.
6956 * tree-ssa-alias.c (refs_may_alias_p_1): Likewise.
6957 * tree-ssa-live.c (verify_live_on_entry): Likewise.
6958 * tree-ssa-live.h (register_ssa_partition): Likewise.
6959 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Likewise.
6960 * tree-ssa-loop-manip.c (add_exit_phi): Likewise.
6961 (tree_transform_and_unroll_loop): Likewise.
6962 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
6963 * tree-ssa-operands.c (get_expr_operands): Likewise.
6964 * tree-ssa-propagate.c (replace_exp_1): Likewise.
6965 * tree-ssa-structalias.c (rewrite_constraints): Likewise.
6966 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
6967 * tree-ssa-threadupdate.c (duplicate_thread_path): Likewise.
6968 * tree-ssanames.c (release_ssa_name_fn): Likewise.
6969 * tree-stdarg.c (expand_ifn_va_arg): Likewise.
6970 * tree-vect-loop-manip.c
6971 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
6972 (slpeel_checking_verify_cfg_after_peeling): Likewise.
6973 (vect_do_peeling_for_loop_bound): Likewise.
6974 (vect_do_peeling_for_alignment): Likewise.
6975 * tree-vrp.c (supports_overflow_infinity): Likewise.
6976 (set_value_range): Likewise.
6977 * tree.c (free_lang_data_in_cgraph): Likewise.
6978 * value-prof.c (gimple_remove_histogram_value): Likewise.
6979 (free_hist): Likewise.
6980 * var-tracking.c (canonicalize_values_star): Likewise.
6981 (compute_bb_dataflow, vt_find_locations, vt_emit_notes): Likewise.
6983 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
6985 * internal-fn.def (IFN_GOACC_DIM_SIZE, IFN_GOACC_DIM_POS,
6986 IFN_GOACC_LOOP): New.
6987 * internal-fn.h (enum ifn_unique_kind): Add IFN_UNIQUE_OACC_FORK,
6988 IFN_UNIQUE_OACC_JOIN, IFN_UNIQUE_OACC_HEAD_MARK,
6989 IFN_UNIQUE_OACC_TAIL_MARK.
6990 (enum ifn_goacc_loop_kind): New.
6991 * internal-fn.c (expand_UNIQUE): Add IFN_UNIQUE_OACC_FORK,
6992 IFN_UNIQUE_OACC_JOIN cases.
6993 (expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS): New.
6994 (expand_GOACC_LOOP): New.
6995 * target-insns.def (oacc_dim_pos, oacc_dim_size): New.
6996 * omp-low.c: Include gimple-pretty-print.h.
6997 (struct oacc_loop): New.
6998 (enum oacc_loop_flags): New.
6999 (oacc_thread_numbers): New.
7000 (oacc_xform_loop): New.
7001 (new_oacc_loop_raw, new_oacc_loop_outer, new_oacc_loop,
7002 new_oacc_loop_routine, finish_oacc_loop, free_oacc_loop): New,
7003 (dump_oacc_loop_part, dump_oacc_loop, debug_oacc_loop): New,
7004 (oacc_loop_discover_walk, oacc_loop_sibling_nrevers,
7005 oacc_loop_discovery): New.
7006 (oacc_loop_xform_head_tail, oacc_loop_xform_loop,
7007 oacc_loop_process): New.
7008 (oacc_loop_fixed_partitions, oacc_loop_partition): New.
7009 (execute_oacc_device_lower): Discover & process loops. Process
7011 * target.def (goacc.fork_join): Change sense of hook, clarify
7013 * doc/tm.texi: Regenerated.
7015 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
7017 * target-insns.def (oacc_fork, oacc_join): Define.
7018 * target.def (goacc.validate_dims): Adjust doc to avoid warning.
7019 (goacc.fork_join): New GOACC hook.
7020 * targhooks.h (default_goacc_fork_join): Declare.
7021 * omp-low.c (default_goacc_forkjoin): New.
7022 * doc/tm.texi.in (TARGET_GOACC_FORK_JOIN): Add.
7023 * doc/tm.texi: Regenerate.
7025 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
7027 * omp-low.c (oacc_init_rediction_array): New.
7028 (oacc_initialize_reduction_data): Initialize array.
7030 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
7032 * omp-low.c (pass_oacc_device_lower::execute): Ignore errors.
7034 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
7036 * internal-fn.c (expand_UNIQUE): New.
7037 * internal-fn.h (enum ifn_unique_kind): New.
7038 * internal-fn.def (IFN_UNIQUE): New.
7039 * target-insns.def (unique): Define.
7040 * gimple.h (gimple_call_internal_unique_p): New.
7041 * gimple.c (gimple_call_same_target_p): Check internal fn
7043 * tracer.c (ignore_bb_p): Check for IFN_UNIQUE call.
7044 * tree-ssa-threadedge.c
7045 (record_temporary_equivalences_from_stmts): Likewise.
7046 * tree-cfg.c (gmple_call_initialize_ctrl_altering): Likewise.
7048 2015-10-27 Richard Henderson <rth@redhat.com>
7051 * config/i386/i386.c (ix86_cannot_change_mode_class): Disallow
7052 narrowing subregs on SSE and MMX registers.
7053 * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Clarify when subregs that
7054 appear to be sub-words of multi-register pseudos must be rejected.
7055 * doc/tm.texi: Regenerate.
7057 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7060 * config/aarch64/aarch64.md (*movsi_aarch64): Check that
7061 operands[0] is a reg before taking its REGNO in split condition.
7062 (*movdi_aarch64): Likewise.
7064 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7066 * config/aarch64/aarch64.c (aarch64_output_simd_mov_immediate):
7067 Handle floating point inner modes properly.
7069 2015-10-27 Alan Hayward <alan.hayward@arm.com>
7072 (vectorizable_live_operation): Change iterator.
7074 2015-10-27 Abderrazek Zaafrani <a.zaafrani@samsung.com>
7075 Aditya Kumar <aditya.k7@samsung.com>
7077 * graphite-optimize-isl.c (get_schedule_for_node_st): New callback
7078 function to schedule based on isl_schedule_node.
7079 (get_schedule_map_st): New schedule optimizer based on
7081 (scop_get_domains): New. Return the isl_union_set containing the
7082 domains of all the pbbs.
7083 (optimize_isl): Call the new function get_schedule_map_st for isl-0.15
7085 2015-10-27 H.J. Lu <hongjiu.lu@intel.com>
7088 * calls.c (prepare_call_address): Don't handle -fno-plt here.
7089 * config/i386/i386.c (ix86_expand_call): Generate indirect call
7090 via GOT for -fno-plt. Support indirect call via GOT for x32.
7091 * config/i386/predicates.md (sibcall_memory_operand): Allow
7094 2015-10-27 Richard Biener <rguenther@suse.de>
7096 PR tree-optimization/68104
7097 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
7098 strided access check ...
7099 (vect_compute_data_refs_alignment): ... here.
7101 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
7102 Joseph Myers <joseph@codesourcery.com>
7103 Mark Shinwell <shinwell@codesourcery.com>
7104 Andrew Stubbs <ams@codesourcery.com>
7105 Rich Felker <dalias@libc.org>
7107 * config.gcc: Handle --enable-fdpic.
7108 * config/sh/constraints.md (Ccl): New constraint.
7109 * config/sh/linux.h (SUBTARGET_LINK_EMUL_SUFFIX): Handle -mfdpic.
7110 * config/sh/sh-c.c (sh_cpu_cpp_builtins): Add __FDPIC__ and
7112 * config/sh/sh-mem.cc (expand_block_move): Support FDPIC for calls to
7114 * config/sh/sh-protos.h (function_symbol_result): New struct.
7115 (function_symbol): Return function_symbol_result.
7116 (sh_get_fdpic_reg_initial_val, sh_load_function_descriptor): New
7118 * config/sh/sh.c (TARGET_ASM_INTEGER, sh_assemble_integer): Implement
7120 (TARGET_CANNOT_FORCE_CONST_MEM, sh_cannot_force_const_mem_p): Likewise.
7121 (sh_option_override): Force -fPIC if FDPIC is in effect.
7122 (sh_asm_output_addr_const_extra): Add UNSPEC_GOTFUNCDESC and
7123 UNSPEC_GOTOFFFUNCDESC cases.
7124 (prepare_move_operands): Use FDPIC initial GOT register for
7125 TLS-related GOT access; inhibit cross-section address offset constants
7127 (sh_assemble_integer): New function.
7128 (sh_cannot_copy_insn_p): Inhibit copying insns that are FDPIC
7129 PC-relative call sites.
7130 (expand_ashiftrt): Adapt invocation of function_symbol.
7131 (sh_expand_prologue): Inhibit PC-relative GOT address load for FDPIC.
7132 (nonpic_symbol_mentioned_p): Add cases for UNSPEC_GOTFUNCDESC and
7133 UNSPEC_GOTOFFFUNCDESC.
7134 (legitimize_pic_address): Resolve function symbols to function
7135 descriptors for FDPIC. Do not use GOT-relative addressing for local
7136 data that may be read-only on FDPIC.
7137 (sh_emit_storesi, sh_emit_storehi): New functions.
7138 (sh_trampoline_init): Generate FDPIC trampolines.
7139 (sh_function_ok_for_sibcall): Add TARGET_FDPIC check.
7140 (sh_expand_sym_label2reg): Don't assume sibcalls are local.
7141 (sh_output_mi_thunk): Generate FDPIC call.
7142 (function_symbol): Return function_symbol_result. For SFUNC_STATIC on
7143 FDPIC, generate call site labels to use PC-relative addressing rather
7144 than GOT-relative addressing.
7145 (sh_conditional_register_usage): Make PIC register fixed and call used
7146 when FDPIC is in effect.
7147 (sh_legitimate_constant_p): Impose FDPIC constant constraints.
7148 (sh_cannot_force_const_mem_p, sh_load_function_descriptor,
7149 sh_get_fdpic_reg_initial_val): New functions.
7150 * config/sh/sh.h (SUBTARGET_ASM_SPEC, SUBTARGET_LINK_EMUL_SUFFIX):
7152 (FDPIC_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
7153 PIC_OFFSET_TABLE_REG_CALL_CLOBBERED,
7154 SH_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macros.
7155 (DRIVER_SELF_SPECS): Add SUBTARGET_DRIVER_SELF_SPECS and
7157 (TRAMPOLINE_SIZE): Select trampoline size for FDPIC.
7158 (ASM_PREFERRED_EH_DATA_FORMAT): Add EH format constraints for FDPIC.
7159 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Handle FDPIC case.
7160 * config/sh/sh.md (UNSPEC_GOTFUNCDESC, UNSPEC_GOTOFFFUNCDESC): New
7162 (calli_fdpic, call_valuei_fdpic, sibcalli_fdpic, sibcalli_pcrel_fdpic,
7163 sibcall_pcrel_fdpic, sibcall_valuei_fdpic, sibcall_valuei_pcrel_fdpic,
7164 sibcall_value_pcrel_fdpic, sym2GOTFUNCDESC, symGOTFUNCDESC2reg,
7165 sym2GOTOFFFUNCDESC, symGOTOFFFUNCDESC2reg): New patterns.
7166 (udivsi3_i1, udivsi3_i4, udivsi3_i4_single, udivsi3,
7167 *divsi_inv_call_combine, divsi3_i4, divsi3_i4_single, divsi3, ashlsi3,
7168 ashlsi3_d_call, ashrsi3_n, lshrsi3, lshrsi3_d_call, calli, call_valuei,
7169 call, call_value, sibcalli, sibcalli_pcrel, sibcall_pcrel, sibcall,
7170 sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
7171 sibcall_value, GOTaddr2picreg, symGOT_load, symGOTOFF2reg,
7172 block_move_real, block_lump_real, block_move_real_i4,
7173 block_lump_real_i4): Add support for FDPIC calls.
7174 (mulsi3, ic_invalidate_line, initialize_trampoline, call_pop,
7175 call_value_pop): Adjust for new function_symbol signature.
7176 * config/sh/sh.opt (-mfdpic): New option.
7177 * doc/install.texi (Options specification): Document --enable-fdpic.
7178 * doc/invoke.texi (SH Options): Document -mfdpic.
7181 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
7183 PR tree-optimization/65963
7184 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
7185 LSHIFT_EXPRs as equivalent MULT_EXPRs.
7187 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7190 * config/arm/arm.c (vfp3_const_double_for_bits): Rewrite.
7191 * config/arm/constraints.md (Dp): Update callsite.
7192 * config/arm/predicates.md (const_double_vcvt_power_of_two): Likewise.
7194 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
7196 * builtins.c (fold_builtin_load_exponent): Rename to...
7197 (fold_const_builtin_load_exponent): ...this and only handle
7199 (fold_builtin_2): Update accordingly.
7200 * match.pd: Add rules previously handled by fold_builtin_load_exponent.
7202 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
7204 * builtins.c (fold_builtin_logb): Rename to...
7205 (fold_const_builtin_logb): ...this and remove STRIP_NOPS call.
7206 (fold_builtin_significand): Rename to...
7207 (fold_const_builtin_significand): ...this and remove STRIP_NOPS call.
7208 (fold_builtin_1): Update accordingly.
7210 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
7212 * builtins.c (fold_builtin_fmin_fmax): Delete.
7213 (fold_builtin_2): Handle constant fmin and fmax arguments here.
7214 * match.pd: Add rules previously handled by fold_builtin_fmin_fmax.
7216 2015-10-27 Evandro Menezes <e.menezes@samsung.com>
7218 * config/aarch64/aarch64-protos.h (cpu_addrcost_table): Split member
7219 for register extension into sign and zero register extension.
7220 * config/aarch64/aarch64.c (generic_addrcost_table): Infer values
7221 for sign and zero register extension.
7222 (cortexa57_addrcost_table): Likewise.
7223 (xgene1_addrcost_table): Likewise.
7225 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
7227 * fold-const.c (fold_minmax): Delete.
7228 (fold_binary_loc): Don't call it.
7229 * match.pd: Add rules previously handled by fold_minmax.
7231 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
7233 * builtins.c (fold_builtin_fma): Remove constant handling.
7234 (fold_builtin_3): Handle constant fma arguments here.
7236 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
7238 * builtins.c (fold_builtin_fabs): Remove constant handling.
7239 (fold_builtin_abs): Likewise.
7241 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
7243 * builtins.c (fold_builtin_copysign): Delete.
7244 (fold_builtin_2): Handle constant copysign arguments here.
7245 * match.pd: Add rules previously handled by fold_builtin_copysign.
7247 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
7249 * builtins.c (fold_builtin_signbit): Delete.
7250 (fold_builtin_2): Handle constant signbit arguments here.
7251 * match.pd: Add rules previously handled by fold_builtin_signbit.
7253 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
7255 * match.pd: Handle sqrt(x) cmp 0 specially.
7257 2015-10-27 Ilya Enkovich <enkovich.gnu@gmail.com>
7259 * tree-vect-generic.c (expand_vector_operations_1): Check
7260 optab type before using it.
7262 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7264 * config/aarch64/aarch64-protos.h
7265 (struct tune_params): Add autoprefetcher_model field.
7266 * config/aarch64/aarch64.c: Include params.h
7267 (generic_tunings): Specify autoprefetcher_model value.
7268 (cortexa53_tunings): Likewise.
7269 (cortexa57_tunings): Likewise.
7270 (cortexa72_tunings): Likewise.
7271 (thunderx_tunings): Likewise.
7272 (xgene1_tunings): Likewise.
7273 (aarch64_first_cycle_multipass_dfa_lookahead_guard): New function.
7274 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
7275 (aarch64_override_options_internal): Set
7276 PARAM_SCHED_AUTOPREF_QUEUE_DEPTH param.
7278 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
7280 * builtins.c (fold_builtin_exponent): Delete.
7281 (fold_builtin_2): Handle constant expN arguments here.
7282 * match.pd: Fold expN(logN(x)) -> x.
7284 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
7286 * builtins.c (fold_builtin_powi): Delete.
7287 (fold_builtin_2): Handle constant powi arguments here.
7288 * match.pd: Add rules previously handled by fold_builtin_powi.
7290 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
7292 * builtins.c (fold_builtin_pow): Delete in favor of...
7293 (fold_const_builtin_pow): ...this new function. Only handle constant
7295 (fold_builtin_2): Update accordingly.
7296 * match.pd: Add rules previously handled by fold_builtin_pow.
7298 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
7300 * builtins.c (fold_builtin_hypot): Delete.
7301 (fold_builtin_2): Handle constant hypot arguments here.
7302 * match.pd: Fold hypot(x, 0) and hypot(0, x) to x. Canonicalize
7303 hypot(x, x) to fabs(x)*sqrt(2).
7305 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
7307 * gimple-match-head.c (maybe_push_res_to_seq): Use create_tmp_reg
7308 instead of make_ssa_name if not yet in SSA form.
7310 2015-10-27 Richard Biener <rguenther@suse.de>
7312 * cfg.c (free_edge): Add function argument and use it instead of cfun.
7313 (clear_edges): Likewise.
7314 * cfg.h (clear_edges): Adjust prototype.
7315 * cfgexpand.c (pass_expand::execute): Adjust.
7316 * cfgloop.c (release_recorded_exits): Add function argument and use
7318 * cfgloop.h (release_recorded_exits): Adjust prototype.
7319 (loops_state_satisfies_p): Add overload with function argument.
7320 (loops_state_set): Likewise.
7321 (loops_state_clear): Likewise.
7322 (struct loop_iterator): Add function argument to constructor
7323 and iterator and use it instead of cfun.
7324 (FOR_EACH_LOOP_FN): New macro.
7325 (loop_optimizer_finalize): Add overload with function argument.
7326 * loop-init.c (loop_optimizer_init): Adjust.
7327 (fix_loop_structure): Likewise.
7328 (loop_optimizer_finaliz): Add function argument and use it
7330 * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
7331 * tree-cfg.h (delete_tree_cfg_annotations): Adjust prototype.
7332 * cgraph.c (release_function_body): Do not push/pop cfun.
7333 * final.c (rest_of_clean_state): Adjust.
7334 * graphite.c (graphite_finalize): Likewise.
7335 * tree-ssa-copy.c (fini_copy_prop): Likewise.
7336 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
7337 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
7338 (tree_unroll_loops_completely): Likewise.
7339 (pass_complete_unrolli::execute): Likewise.
7340 * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates):
7341 Add function argument and use it instead of cfun.
7342 * tree-ssa-loop-niter.h (free_numbers_of_iterations_estimates):
7344 * tree-ssa-loop.c (tree_ssa_loop_done): Adjust.
7345 * tree-ssa.c (delete_tree_ssa): Add function argument and use it
7347 * tree-ssa.h (delete_tree_ssa): Adjust prototype.
7348 * tree-ssanames.c (fini_ssanames): Add function argument and use it
7350 * tree-ssanames.c (fini_ssanames): Adjust prototype.
7351 * tree-vrp.c (execute_vrp): Adjust.
7352 * value-prof.c (free_histograms): Add function argument and use it
7354 * value-prof.h (free_histograms): Adjust prototype.
7356 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
7358 * tree.h (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES)
7359 (OACC_KERNELS_BODY, OACC_KERNELS_CLAUSES, OACC_KERNELS_COMBINED)
7360 (OACC_PARALLEL_COMBINED): Don't define macros. Adjust all users.
7362 2015-10-27 Tom de Vries <tom@codesourcery.com>
7364 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add and use var
7367 2015-10-27 Bin Cheng <bin.cheng@arm.com>
7369 * loop-invariant.c (struct def): New field can_prop_to_addr_uses.
7370 (inv_can_prop_to_addr_use): New function.
7371 (record_use): Call can_prop_to_addr_uses, set the new field.
7372 (get_inv_cost): Count cost if inv can't be propagated into its
7375 2015-10-26 Doug Evans <dje@google.com>
7377 * config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
7379 2015-10-26 Eric Botcazou <ebotcazou@adacore.com>
7381 * match.pd (fold_widened_comparison): Apply simplifications to all
7384 2015-10-26 Simon Dardis <simon.dardis@imgtec.com>
7386 * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook.
7387 * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document.
7388 * doc/tm.texi: Regenerated.
7389 * reorg.c (dbr_schedule): Use new hook.
7390 * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New.
7392 2015-10-26 Jeff Law <law@redhat.com>
7394 PR tree-optimization/68013
7395 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
7396 Make sure the first block in the path is in VISITED_BBs.
7398 2015-10-26 Richard Biener <rguenther@suse.de>
7399 Dominik Vogt <vogt@linux.vnet.ibm.com>
7402 * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
7403 Properly prune ref->ref for accesses outside of ref.
7405 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
7407 * gimple-fold.c (replace_stmt_with_simplification): Don't allow
7408 new statements to be inserted if inplace. Allow calls to have
7411 2015-10-26 Richard Biener <rguenther@suse.de>
7413 * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
7414 (do_valueize): New function.
7415 (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
7417 * tree-ssa-threadedge.c: Remove builtins.h include, include
7419 (fold_assignment_stmt): Remove.
7420 (threadedge_valueize): New function.
7421 (record_temporary_equivalences_from_stmts): Use
7422 gimple_fold_stmt_to_constant_1, note additional cleanup
7425 2015-10-26 Richard Biener <rguenther@suse.de>
7427 * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
7428 ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
7430 2015-10-26 Alan Hayward <alan.hayward@arm.com>
7432 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
7433 VEC_COND_EXPR types.
7435 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7437 * auto-inc-dec.c (insert_move_insn_before): Delete.
7438 (attempt_change): Remember to cost the simple move in the
7439 FORM_PRE_ADD and FORM_POST_ADD cases.
7441 2015-10-26 Kaz Kojima <kkojima@gcc.gnu.org>
7444 * config/sh/sh.c (sh_vector_mode_supported_p): Use
7445 TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
7447 2015-10-26 Tom de Vries <tom@codesourcery.com>
7449 * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
7451 (intra_create_variable_infos): ... here.
7453 2015-10-26 Tom de Vries <tom@codesourcery.com>
7455 * tree-ssa-structalias.c (intra_create_variable_infos): Add
7456 restrict_pointer_p and recursive_restrict_p variables.
7458 2015-10-26 Tom de Vries <tom@codesourcery.com>
7460 * tree-ssa-structalias.c (intra_create_variable_infos): Inline
7461 get_vi_for_tree call.
7463 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7466 * optabs.c (expand_atomic_compare_and_swap): Handle case when
7467 ptarget_oval or ptarget_bool are const0_rtx.
7469 2015-10-26 Christian Bruel <christian.bruel@st.com>
7471 * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
7472 * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
7473 * cp/method.c (implicitly_declare_fn): Likewise.
7474 * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
7475 * java/class.c (add_method_1): Likewise.
7477 2015-10-26 Richard Biener <rguenther@suse.de>
7479 * alloc-pool.h (base_pool_allocator): Use placement new.
7480 (base_pool_allocator::remove): Likewise. Compute size outside of
7483 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
7485 * builtins.c (do_real_to_int_conversion): New function.
7486 (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
7487 (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
7489 * match.pd: Add rules previously handled by fold_fixed_mathfn
7490 and fold_builtin_int_roundingfn.
7492 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
7494 * match.pd: Use macros to define built-in operator lists.
7496 2015-10-20 Richard Sandiford <richard.sandiford@arm.com>
7497 Richard Biener <rguenther@suse.de>
7499 * genmatch.c (dt_simplify::gen): Skip captures that are
7501 (parser::parse_expr): Allow captures in results too.
7502 * builtins.c (fold_builtin_cexp): Delete.
7503 (fold_builtin_1): Handle constant cexp arguments here.
7504 * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
7506 2015-10-26 Mikhail Maltsev <maltsevm@gmail.com>
7508 * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
7509 conditional compilation.
7510 (base_pool_allocator::remove): Use flag_checking.
7512 2015-10-25 John David Anglin <danglin@gcc.gnu.org>
7514 * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
7517 * dojump.c (do_compare_and_jump): Canonicalize both function and
7520 2015-10-25 Uros Bizjak <ubizjak@gmail.com>
7523 * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
7526 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
7529 * ipa-polymorphic-call.c
7530 (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
7531 instance offset with offset of outer type.
7533 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
7535 * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
7537 2015-10-23 Caroline Tice <cmtice@google.com>
7539 (from Richard Biener
7540 * tree.c (int_cst_hasher::hash): Replace XOR with more efficient
7541 call to iterative_hash_host_wide_int.
7543 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
7545 * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
7548 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
7550 * tree-vect-generic.c (expand_vector_operations_1): Check
7551 optab exists before use it.
7553 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
7555 * tree-vect-generic.c (expand_vector_condition): Avoid
7556 uninitialized variable warning.
7558 2015-10-23 Jeff Law <law@redhat.com>
7560 * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
7562 (execute_todo): Call it here.
7563 * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
7565 (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
7567 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
7568 Szabolcs Nagy <szabolcs.nagy@arm.com>
7570 * config.gcc (enable_secureplt): Add *-linux*-musl*.
7572 2015-10-23 Jeff Law <law@redhat.com>
7574 PR tree-optimization/67830
7575 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
7576 Explicitly verify the mask has no bits outside the type of
7577 the innermost operands.
7579 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
7580 Szabolcs Nagy <szabolcs.nagy@arm.com>
7582 * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
7583 (MUSL_DYNAMIC_LINKER64): Define.
7584 (GNU_USER_DYNAMIC_LINKER32): Update.
7585 (GNU_USER_DYNAMIC_LINKER64): Update.
7586 (CHOOSE_DYNAMIC_LINKER): Update.
7588 * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
7589 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
7590 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
7591 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
7592 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
7593 (CHOOSE_DYNAMIC_LINKER): Update.
7594 (INCLUDE_DEFAULTS): Redefine.
7596 * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
7598 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
7600 * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
7601 comparing addresses.
7603 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
7605 * fold-const.c (operand_equal_p): Handle matching of vector
7608 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
7610 * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
7612 2015-10-23 Steve Ellcey <sellcey@imgtec.com>
7613 Andrew Pinski <apinski@cavium.com>
7615 PR rtl-optimization/67736
7616 * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
7619 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
7622 * tree.c (build_truth_vector_type): Support BLK mode
7623 returned for boolean vector.
7625 2015-10-23 Alan Hayward <alan.hayward@arm.com>
7627 PR tree-optimization/65947
7629 (vect_is_simple_reduction_1): Find condition reductions.
7630 (vect_model_reduction_cost): Add condition reduction costs.
7631 (get_initial_def_for_reduction): Add condition reduction initial var.
7632 (vect_create_epilog_for_reduction): Add condition reduction epilog.
7633 (vectorizable_reduction): Condition reduction support.
7634 * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
7635 * doc/sourcebuild.texi (Vector-specific attributes): Document
7638 2015-10-23 Richard Biener <rguenther@suse.de>
7640 * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
7643 2015-10-23 Richard Biener <rguenther@suse.de>
7644 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7646 * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
7647 into (A ^ B) - B to match.pd
7648 Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
7650 * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
7652 (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
7654 (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
7656 (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
7658 (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
7659 INTEGER_CST@1)): New simplifier.
7661 2015-10-23 Richard Sandiford <richard.sandiford@arm.com>
7663 * builtins.c (integer_valued_real_p): Move to fold-const.c.
7664 (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
7665 (fold_builtin_ceil, fold_builtin_round): Delete.
7666 (fold_builtin_1): Handle constant trunc, floor, ceil and round
7668 * convert.c (convert_to_real): Remove narrowing of rounding
7670 * fold-const.h (integer_valued_real_unary_p)
7671 (integer_valued_real_binary_p, integer_valued_real_call_p)
7672 (integer_valued_real_single_p, integer_valued_real_p): Declare.
7673 * fold-const.c (tree_single_nonnegative_warnv_p): Move
7674 name_registered_for_update_p check to SSA_NAME case statement.
7675 Don't call tree_simple_nonnegative_warnv_p for SSA names.
7676 (integer_valued_real_unary_p, integer_valued_real_binary_p)
7677 (integer_valued_real_call_p, integer_valued_real_single_p)
7678 (integer_valued_real_invalid_p): New functions.
7679 (integer_valued_real_p): Move from fold-const.c and rework
7680 to call the functions above. Handle SSA names.
7681 * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
7682 * gimple-fold.c (gimple_assign_integer_valued_real_p)
7683 (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
7684 (gimple_stmt_integer_valued_real_p): New functions.
7685 * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
7686 Fold f(x)->x for the same f if x is known to be integer-valued.
7687 Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
7688 the result. Canonicalize floor(x) as trunc(x) if x is
7691 2015-10-23 Tom de Vries <tom@codesourcery.com>
7693 * tree-ssa-structalias.c (intra_create_variable_infos): Use
7694 make_constraint_from.
7696 2015-10-23 Tom de Vries <tom@codesourcery.com>
7698 * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
7699 setting of is_full_var in case of a single field.
7701 2015-10-22 Martin Sebor <msebor@redhat.com>
7704 * config/i386/i386.opt: Add missing periods to the ends of sentences.
7705 * config/msp430/msp430.opt: Same.
7707 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
7709 * doc/extend.exp (Global Register Variables): Rewrite.
7711 2015-10-22 Jeff Law <law@redhat.com>
7713 * genattrtab.c (main): If we do not have any annul-true or annul-false
7714 slots, then write out a dummy eligible_for_annul_true or
7715 eligible_for_annul_false as needed.
7717 2015-10-22 Nick Clifton <nickc@redhat.com>
7719 * config/msp430/msp430.opt: Add -msilicon-errata and
7720 -msilicon-errata-warn.
7721 * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
7723 * doc/invoke.texi: Document new options.
7725 2015-10-22 Richard Biener <rguenther@suse.de>
7727 PR tree-optimization/58497
7728 * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
7729 (expand_vector_operations_1): Use it. Lower operations on
7730 all uniform vectors to scalar operations if the HW supports it.
7732 2015-10-22 Richard Biener <rguenther@suse.de>
7734 PR tree-optimization/19049
7735 PR tree-optimization/65962
7736 * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
7737 to strided accesses if single-element interleaving doesn't work.
7739 2015-10-22 Richard Biener <rguenther@suse.de>
7743 * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
7744 (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
7745 (expand_unop): Likewise.
7747 2015-10-22 Richard Biener <rguenther@suse.de>
7749 * fold-const.c (fold_addr_of_array_ref_difference): Properly
7750 convert operands before folding a MINUS_EXPR.
7751 (fold_binary_loc): Move simplification of MINUS_EXPR on
7752 converted POINTER_PLUS_EXPRs ...
7753 * match.pd: ... here.
7755 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
7757 * builtins.c (fold_builtin_tan): Delete.
7758 (fold_builtin_1): Handle constant tan arguments here.
7759 * match.pd: Simplify (tan (atan x)) to x.
7761 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
7763 * builtins.c (fold_builtin_cproj): Delete.
7764 (fold_builtin_1): Handle constant arguments here.
7765 (build_complex_cproj): Move and rename to...
7766 * tree.c: (build_complex_inf): ...this.
7767 * tree.h (build_complex_inf): Declare.
7768 * match.pd: Fold cproj(x)->x if x has no infinity.
7769 Use build_complex_inf for existing cproj rules.
7771 2015-10-22 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7774 * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
7775 already have a comparison result.
7777 2015-10-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7780 * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
7781 (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
7782 (aarch64_classify_address): Likewise.
7783 (aarch64_secondary_reload): Likewise.
7784 (aarch64_override_options_after_change_1): Adjust.
7785 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
7786 Use aarch64_nopcrelative_literal_loads.
7787 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
7788 * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
7791 2015-10-21 Martin Sebor <msebor@redhat.com>
7794 * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
7795 (print_filtered_help): Reference aliased option's name and encourage
7796 readers to use it in preference to the alias if the former is not
7797 documented. Mention when using an option is diagnosed.
7798 * gcc.c (display_help): End each sentence with a period.
7800 * common.opt: End each sentence that describes an option with
7802 * config/aarch64/aarch64.opt: Same.
7803 * config/alpha/alpha.opt: Same.
7804 * config/arc/arc.opt: Same.
7805 * config/arm/arm.opt: Same.
7806 * config/avr/avr.opt: Same.
7807 * config/bfin/bfin.opt: Same.
7808 * config/c6x/c6x.opt: Same.
7809 * config/cr16/cr16.opt: Same.
7810 * config/cris/cris.opt: Same.
7811 * config/cris/linux.opt: Same.
7812 * config/darwin.opt: Same.
7813 * config/epiphany/epiphany.opt: Same.
7814 * config/fr30/fr30.opt: Same.
7815 * config/frv/frv.opt: Same.
7816 * config/ft32/ft32.opt: Same.
7817 * config/g.opt: Same.
7818 * config/h8300/h8300.opt: Same.
7819 * config/i386/cygming.opt: Same.
7820 * config/i386/djgpp.opt: Same.
7821 * config/i386/i386.opt: Same.
7822 * config/i386/interix.opt: Same.
7823 * config/i386/mingw-w64.opt: Same.
7824 * config/i386/mingw.opt: Same.
7825 * config/ia64/ia64.opt: Same.
7826 * config/ia64/ilp32.opt: Same.
7827 * config/iq2000/iq2000.opt: Same.
7828 * config/linux.opt: Same.
7829 * config/lm32/lm32.opt: Same.
7830 * config/lynx.opt: Same.
7831 * config/m32c/m32c.opt: Same.
7832 * config/m32r/m32r.opt: Same.
7833 * config/m68k/ieee.opt: Same.
7834 * config/m68k/m68k.opt: Same.
7835 * config/mcore/mcore.opt: Same.
7836 * config/mep/mep.opt: Same.
7837 * config/microblaze/microblaze.opt: Same.
7838 * config/mips/mips.opt: Same.
7839 * config/mmix/mmix.opt: Same.
7840 * config/mn10300/mn10300.opt: Same.
7841 * config/moxie/moxie.opt: Same.
7842 * config/msp430/msp430.opt: Same.
7843 * config/nios2/elf.opt: Same.
7844 * config/nios2/nios2.opt: Same.
7845 * config/nvptx/nvptx.opt: Same.
7846 * config/pa/pa-hpux.opt: Same.
7847 * config/pa/pa-hpux1010.opt: Same.
7848 * config/pa/pa-hpux1111.opt: Same.
7849 * config/pa/pa-hpux1131.opt: Same.
7850 * config/pa/pa.opt: Same.
7851 * config/pa/pa64-hpux.opt: Same.
7852 * config/pdp11/pdp11.opt: Same.
7853 * config/rl78/rl78.opt: Same.
7854 * config/rs6000/476.opt: Same.
7855 * config/rs6000/aix64.opt: Same.
7856 * config/rs6000/darwin.opt: Same.
7857 * config/rs6000/linux64.opt: Same.
7858 * config/rs6000/rs6000.opt: Same.
7859 * config/rs6000/sysv4.opt: Same.
7860 * config/s390/s390.opt: Same.
7861 * config/s390/tpf.opt: Same.
7862 * config/sh/sh.opt: Same.
7863 * config/sol2.opt: Same.
7864 * config/sparc/long-double-switch.opt: Same.
7865 * config/sparc/sparc.opt: Same.
7866 * config/spu/spu.opt: Same.
7867 * config/stormy16/stormy16.opt: Same.
7868 * config/tilegx/tilegx.opt: Same.
7869 * config/tilepro/tilepro.opt: Same.
7870 * config/v850/v850.opt: Same.
7871 * config/vax/vax.opt: Same.
7872 * config/visium/visium.opt: Same.
7873 * config/vms/vms.opt: Same.
7874 * config/vxworks.opt: Same.
7875 * config/xtensa/xtensa.opt: Same.
7877 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
7878 Sebastian Pop <s.pop@samsung.com>
7880 * graphite-scop-detection.c (parameter_index_in_region): Update call to
7881 invariant_in_sese_p_rec.
7882 * graphite-sese-to-poly.c (extract_affine): Same.
7883 * sese.c (invariant_in_sese_p_rec): Pass in an extra
7884 parameter has_vdefs.
7885 (scalar_evolution_in_region): Return chrec_dont_know when the scalar
7886 variable depends on virtual definitions in the current region.
7887 * sese.h (invariant_in_sese_p_rec): Update declaration.
7889 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
7890 Sebastian Pop <s.pop@samsung.com>
7892 * graphite-scop-detection.c (build_scops): Do not handle scops
7893 with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
7894 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
7896 2015-10-21 Mikhail Maltsev <maltsevm@gmail.com>
7898 * config.in: Regenerate.
7899 * configure: Regenerate.
7900 * configure.ac (CHECKING_P): Define.
7901 * system.h: Use CHECKING_P.
7903 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
7906 * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
7907 is negative we don't know the type.
7908 (check_stmt_for_type_change): Skip constructors of non-polymorphic
7909 types as those won't help devirutalization.
7911 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
7913 * fold-const.c (operand_equal_p): Add code matching empty constructors.
7915 2015-10-21 Eric Botcazou <ebotcazou@adacore.com>
7917 * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
7919 (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
7920 Add comments on sign of the result.
7921 * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
7922 Recurse on operand #1 instead of operand #0.
7923 <CEIL_MOD_EXPR>: Do not recurse.
7924 <ROUND_MOD_EXPR>: Likewise.
7926 2015-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7928 * cfgrtl.c (pass_free_cfg::execute): Adjust.
7929 * final.c (dbr_sequence_length): Always define.
7930 (shorten_branches): Adjust.
7931 * genattr-common.c (main): Always define DELAY_SLOTS.
7932 * genattr.c (main): Unconditionally declare functions and define
7933 macros related to delay slots.
7934 * genattrtab.c (write_eligible_delay): Adjust.
7935 (main): Always write out delay slot functions.
7936 * opts.c (default_options_table): Adjust.
7937 * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
7938 (redirect_with_delay_list_safe_p): Likewise.
7939 (fill_simple_delay_slots): Likewise.
7940 (fill_slots_from_thread): Likewise.
7941 (make_return_insns): Likewise.
7942 (dbr_schedule): Likewise.
7943 (rest_of_handle_delay_slots): Likewise.
7944 (pass_delay_slots::gate): Likewise.
7945 * toplev.c (process_options): Likewise.
7947 2015-10-21 Richard Henderson <rth@redhat.com>
7949 * targhooks.c (default_addr_space_pointer_mode): Remove check
7950 for generic address space.
7951 (default_addr_space_address_mode): Likewise.
7952 (default_addr_space_valid_pointer_mode): Likewise.
7953 (default_addr_space_legitimate_address_p): Likewise.
7954 (default_addr_space_legitimize_address): Likewise.
7955 * target.def (addr_space.pointer_mode): Update documentation
7956 of default behavior.
7957 (addr_space.address_mode): Likewise.
7960 * expr.c (expand_expr_real_2): Use convert_modes on disjoint
7963 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
7965 * builtins.c (fold_builtin_cabs): Delete.
7966 (fold_builtin_1): Update accordingly. Handle constant arguments here.
7967 * match.pd: Add rules previously handled by fold_builtin_cabs.
7969 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
7971 * fold-const.h (fold_strip_sign_ops): Delete.
7972 * fold-const.c (fold_strip_sign_ops): Likewise.
7973 (fold_unary_loc, fold_binary_loc): Remove calls to it.
7974 * builtins.c (fold_builtin_cos, fold_builtin_cosh)
7975 (fold_builtin_ccos): Delete.
7976 (fold_builtin_pow): Don't call fold_strip_sign_ops.
7977 (fold_builtin_hypot, fold_builtin_copysign): Likewise.
7978 Remove fndecl argument.
7979 (fold_builtin_1): Update calls accordingly. Handle constant
7980 cos, cosh, ccos and ccosh here.
7982 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
7984 * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
7985 * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
7986 * common.opt (fssa-backprop): New option.
7987 * fold-const.h (negate_mathfn_p): Declare.
7988 * fold-const.c (negate_mathfn_p): Make public.
7989 * timevar.def (TV_TREE_BACKPROP): New.
7990 * tree-pass.h (make_pass_backprop): Declare.
7991 * passes.def (pass_backprop): Add.
7992 * gimple-ssa-backprop.c: New file.
7994 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
7995 Sebastian Pop <s.pop@samsung.com>
7997 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
7998 Do not call create_empty_if_region_on_edge when cond_expr is true.
7999 (translate_isl_ast_node_for): Check whether a guard has been generated.
8001 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
8003 * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
8004 (operator=): Removed.
8005 (dr_info): Make alias_set number the last argument with default
8006 value of invalid_alias_set.
8007 * graphite-sese-to-poly.c (build_scop_drs): Update constructor
8009 (rewrite_reductions_out_of_ssa): Iterate only through the
8010 basic blocks which are inside region.
8011 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
8012 * sese.h (struct sese_l): Removed assignment operator.
8013 (split_region_for_bb): Removed dead code.
8015 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
8017 * graphite-poly.h (struct dr_info): Removed conversion constructor.
8018 (struct scop): Renamed scop::region to scop::scop_info
8019 (scop_set_region): Same.
8020 (SCOP_REGION): Removed
8021 (SCOP_CONTEXT): Removed.
8022 (POLY_SCOP_P): Removed.
8023 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
8024 Rename scop->region to scop->scop_info.
8025 (add_parameters_to_ivs_params): Same.
8026 (graphite_regenerate_ast_isl): Same.
8027 * graphite-poly.c (new_scop): Same.
8029 (print_scop_params): Same.
8030 * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
8031 (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
8032 (dot_all_scops_1): Rename scop->region to scop->scop_info.
8033 (scop_detection::nb_pbbs_in_loops): Same.
8034 (find_scop_parameters): Same.
8035 (try_generate_gimple_bb): Same.
8036 (gather_bbs::before_dom_children): Same.
8037 (gather_bbs::after_dom_children): Same.
8038 (build_scops): Same.
8039 * graphite-sese-to-poly.c (build_scop_scattering): Same.
8040 (extract_affine_chrec): Same.
8041 (extract_affine): Same.
8042 (set_scop_parameter_dim): Same.
8043 (build_loop_iteration_domains): Same.
8044 (create_pw_aff_from_tree): Same.
8045 (add_param_constraints): Same.
8046 (build_scop_iteration_domain): Same.
8047 (build_scop_drs): Same.
8048 (analyze_drs_in_stmts): Same.
8049 (insert_out_of_ssa_copy_on_edge): Same.
8050 (rewrite_close_phi_out_of_ssa):Same.
8051 (rewrite_reductions_out_of_ssa):Same.
8052 (handle_scalar_deps_crossing_scop_limits):Same.
8053 (rewrite_cross_bb_scalar_deps):Same.
8054 (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
8055 (build_poly_scop):Same.
8056 (build_alias_set): Use pointer to dr_info.
8057 * graphite.c (print_graphite_scop_statistics):
8058 (graphite_transform_loops):
8059 * sese.h (struct sese_l): Remove conversion constructor.
8061 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
8064 * tree.c (verify_type): Verify that TYPE_MODE match
8065 between TYPE_CANONICAL and type.
8066 * expr.c (store_expr_with_bounds): Revert my previous change.
8067 * expmed.c (store_bit_field_1): Revert prevoius change.
8068 * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
8069 to match for all types.
8071 2015-10-21 Nathan Sidwell <nathan@codesourcery.com>
8073 * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
8076 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
8078 * doc/tm.texi: Regenerated.
8079 * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
8080 * stor-layout.c (layout_type): Use mode to get vector mask size.
8081 * target.def (get_mask_mode): New.
8082 * targhooks.c (default_get_mask_mode): New.
8083 * targhooks.h (default_get_mask_mode): New.
8084 * tree-vect-stmts.c (get_same_sized_vectype): Add special case
8086 * tree.c (MAX_BOOL_CACHED_PREC): New.
8087 (nonstandard_boolean_type_cache): New.
8088 (build_nonstandard_boolean_type): New.
8089 (make_vector_type): Vector mask has no canonical type.
8090 (build_truth_vector_type): New.
8091 (build_same_sized_truth_vector_type): New.
8092 (truth_type_for): Support vector masks.
8093 * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
8094 (build_truth_vector_type): New.
8095 (build_same_sized_truth_vector_type): New.
8096 (build_nonstandard_boolean_type): New.
8097 * tree-cfg.c (verify_gimple_comparison) Require boolean
8098 vector type for vector comparison.
8099 (verify_gimple_assign_ternary): Likewise.
8100 * optabs.c (expand_vec_cond_expr): Accept boolean vector as
8102 * tree-vect-stmts.c (vectorizable_condition): Use boolean
8103 vector type for vector comparison.
8104 * tree-vect-generic.c (elem_op_func): Add new operand to hold
8106 (do_unop): Adjust to modified function type.
8107 (do_binop): Likewise.
8108 (do_plus_minus): Likewise.
8109 (do_negate); Likewise.
8110 (expand_vector_piecewise): Likewise.
8111 (do_cond): Likewise.
8112 (do_compare): Use comparison instead of condition.
8113 (expand_vector_divmod): Use boolean vector type for comparison.
8114 (expand_vector_operations_1): Skip scalar mask operations.
8116 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
8118 * omp-low.c (simd_clone_create): Set in_other_partition
8121 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
8123 * doc/extend.exp (Local Register Variables): Rewrite.
8125 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
8127 * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
8128 and x*x in cases where the operands are sign ops. Extend these
8129 rules to handle copysign as a sign op (including for cos, cosh
8130 and pow, which already treated negate and abs as sign ops).
8132 2015-10-21 Uros Bizjak <ubizjak@gmail.com>
8135 * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
8136 for 64-bit MS_ABI targets also when default incoming stack boundary
8139 2015-10-21 Richard Biener <rguenther@suse.de>
8141 * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
8142 cond stmts, enhanced and split out from ...
8143 (vn_phi_eq): ... here.
8145 2015-10-21 Richard Biener <rguenther@suse.de>
8148 * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
8149 (tree_ssa_name_nonnegative_warnv_p): Fold into ...
8150 (tree_single_nonnegative_warnv_p): ... here. For SSA names
8151 make sure they are not registered for update.
8153 2015-10-21 Richard Biener <rguenther@suse.de>
8155 PR tree-optimization/68026
8156 * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
8157 unsigned VARYING values.
8159 2015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
8161 * asan.c (asan_emit_stack_protection): Don't pass local stack to
8162 asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
8163 NULL and use local stack than.
8164 (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
8165 in addition to __asan_init.
8166 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
8167 (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
8168 * asan.h (asan_intercepted_p): Handle new string builtins.
8169 * ubsan.c (ubsan_use_new_style_p): New function.
8170 (ubsan_instrument_float_cast): If location is unknown, assign
8171 input_location to loc. Propagate loc to ubsan_create_data if
8172 ubsan_use_new_style_p returned true.
8174 2015-10-21 Jeff Law <law@redhat.com>
8176 * Makefile.in (OBJS): Remove sched-vis.c
8177 * sched-vis.c: Removed. Code moved into...
8178 * print-rtl.c: Here. Include cfg.h, pretty-print.h and print-rtl.h.
8179 * rtl.h: Remove prototypes for functions now living in print-rtl.c
8180 * print-rtl.h Add prototypes for new functions in print-rtl.c.
8181 * auto-inc-dec.c: Include print-rtl.h
8182 * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
8183 * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
8185 * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
8188 2015-10-21 Richard Biener <rguenther@suse.de>
8189 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
8191 * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
8193 * doc/implement-c.texi (Integers Implementation): Make GCC's promises
8194 about signed left shift stronger and clarify the cases when they're
8196 Move (a * (1 << b)) is (a << b) to match.pd.
8197 Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
8198 Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
8199 Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
8201 * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
8203 (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
8204 (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
8205 (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
8207 (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
8209 (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
8211 2015-10-21 Gregor Richards <gregor.richards@uwaterloo.ca>
8212 Szabolcs Nagy <szabolcs.nagy@arm.com>
8213 Alan Modra <amodra@gmail.com>
8215 * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
8216 * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
8217 (LINK_SPEC): Add %(link_secure_plt).
8218 (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
8219 * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
8221 2015-10-20 Gregor Richards <gregor.richards@uwaterloo.ca>
8222 Szabolcs Nagy <szabolcs.nagy@arm.com>
8224 * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
8225 (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
8227 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8229 * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
8231 (fusion_load_store): Use it.
8232 * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
8233 ldp and stp in VD modes.
8234 * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
8235 (store_pair<mode>, VD): Likewise.
8237 2015-10-20 Vladimir Makarov <vmakarov@redhat.com>
8239 PR rtl-optimization/67609
8240 * lra-splill.c (lra_final_code_change): Don't remove all
8243 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8245 * simplify-rtx.c (simplify_binary_operation): If either operand was
8246 a constant pool reference use them if all other simplifications failed.
8248 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8250 * config/aarch64/aarch64.md
8251 (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
8252 * config/aarch64/aarch64-simd.md
8253 (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
8254 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
8255 (aarch64_fpconst_pow_of_2): New function.
8256 (aarch64_vec_fpconst_pow_of_2): Likewise.
8257 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
8259 (aarch64_vec_fpconst_pow_of_2): Likewise.
8260 * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
8261 (aarch64_fp_vec_pow2): Likewise.
8263 2015-10-20 Uros Bizjak <ubizjak@gmail.com>
8265 * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
8266 (ALPHA_ARG_SIZE): Ditto. Remove unused NAMED argument.
8267 * config/alpha/alpha.c (alpha_function_arg_advance): Update
8268 ALPHA_ARG_SIZE usage.
8269 (alpha_arg_partial_bytes): Ditto.
8271 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
8274 * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
8275 error_mark_node decls.
8277 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
8281 * common/config/i386/i386-common.c (ix86_handle_option): Remove
8282 OPT_miamcu handling.
8283 * config/i386/i386.c (PTA_NO_80387): New macro.
8284 (processor_alias_table): Add PTA_NO_80387 to lakemont.
8285 (ix86_option_override_internal): Update MASK_80387 from
8286 PTA_NO_80387. Don't warn x87/MMX/SSE/AVX for -miamcu. Warn
8287 SSE math only if 80387 is supported. Don't change
8289 (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
8291 * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
8292 if TARGET_80387 is true and TARGET_IAMCU is false.
8293 (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
8294 is true and TARGET_IAMCU_P is false.
8296 2015-10-20 Richard Biener <rguenther@suse.de>
8298 PR tree-optimization/68017
8299 * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
8301 2015-10-20 Martin Liska <mliska@suse.cz>
8303 * cgraphclones.c (cgraph_node::create_virtual_clone):
8304 Verify cgraph_node.local.versionable instead of calling
8305 tree_versionable_function_p.
8306 * ipa-cp.c (determine_versionability): Save the information
8307 to ipa_node_params summary.
8308 (ipcp_versionable_function_p): Use it.
8309 (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
8310 (ipcp_generate_summary): Do not compute cgraph_node
8312 * ipa-inline-analysis.c (inline_generate_summary): Compute
8313 versionability for all cgraph nodes.
8314 * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
8315 ipa_node_params::versionability.
8316 * ipa-prop.h (struct ipa_node_params): Declare it.
8318 2015-10-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8321 * varasm.c (assemble_variable): Move special vtv handling to..
8322 (handle_vtv_comdat_sections): .. here. New function.
8323 (output_object_block): Handle vtv sections.
8325 2015-10-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
8328 * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
8330 2015-10-20 Arkadiusz Drabczyk <arkadiusz@drabczyk.org>
8332 * doc/extend.texi: Update documentation WRT inline functions.
8334 2015-10-20 Alan Modra <amodra@gmail.com>
8337 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
8338 * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
8339 (TARGET_CAN_SPLIT_STACK_64BIT): Define.
8341 2015-10-19 Pierre-Marie de Rodat <derodat@adacore.com>
8343 PR rtl-optimization/66790
8344 * df.h (DF_MIR): New macro.
8345 (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
8346 (DF_MIR_INFO_BB): New macro.
8347 (DF_MIR_IN, DF_MIR_OUT): New macros.
8348 (struct df_mir_bb_info): New.
8349 (df_mir): New macro.
8350 (df_mir_add_problem, df_mir_simulate_one_insn): New forward
8352 (df_mir_get_bb_info): New.
8353 * df-problems.c (struct df_mir_problem_data): New.
8354 (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
8355 df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
8356 df_mir_confluence_0, df_mir_confluence_n,
8357 df_mir_transfer_function, df_mir_free, df_mir_top_dump,
8358 df_mir_bottom_dump, df_mir_verify_solution_start,
8359 df_mir_verify_solution_end): New.
8361 (df_mir_add_problem, df_mir_simulate_one_insn): New.
8362 * timevar.def (TV_DF_MIR): New.
8363 * ree.c: Include bitmap.h
8364 (add_removable_extension): Add an INIT_REGS parameter. Use it
8365 to skip zero-extensions that may get an uninitialized register.
8366 (find_removable_extensions): Compute must-initialized registers
8367 using the MIR dataflow problem. Update the call to
8368 add_removable_extension.
8369 (find_and_remove_re): Call df_mir_add_problem.
8371 2015-10-19 Segher Boessenkool <segher@kernel.crashing.org>
8373 * common/config/mn10300/mn10300-common.c
8374 (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
8375 Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
8377 2015-10-19 David Wohlferd <dw@LimeGreenSocks.com>
8379 * doc/extend.texi (Explicit Register Variables): Simplify and
8380 avoid unnecessary and confusion abbreviations. Update cross
8382 doc/implement-c.tex: Update cross reference.
8384 2015-10-19 Jeff Law <law@redhat.com>
8386 * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
8387 that create irreducible loops unless the path elimiantes a multiway
8390 2015-10-19 Richard Biener <rguenther@suse.de>
8392 PR tree-optimization/67975
8393 * tree-cfg.h (extract_true_false_controlled_edges): Declare.
8394 * tree-cfg.c (extract_true_false_controlled_edges): Split out
8395 core worker from ...
8396 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
8397 * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
8398 instead of block number for PHIs with two or one args.
8399 (vn_phi_eq): Compare edge predicates of PHIs that are in different
8402 2015-10-19 Richard Biener <rguenther@suse.de>
8404 * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
8405 (gimple_stmt_nonnegative_warnv_p): Use it.
8406 * match.pd (CPROJ): New operator list.
8407 (cproj (complex ...)): Move simplifications from ...
8408 * builtins.c (fold_builtin_cproj): ... here.
8410 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
8412 * config/i386/i386.c (ix86_expand_vector_move): Use
8413 GET_MODE_BITSIZE for IA MCU psABI to get vector natural
8416 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
8418 * doc/invoke.texi: Replace @optindex with @opindex.
8420 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
8423 * config/i386/i386.c (ix86_valid_target_attribute_tree): If
8424 arch= is set, clear all bits in x_ix86_isa_flags, except for
8425 ISA_64BIT, ABI_64, ABI_X32, and CODE16.
8427 2015-10-19 Joost VandeVondele <vondele@gnu.gcc.org>
8430 * common.opt (fkeep-static-functions): New option.
8431 * doc/invoke.texi: Document it.
8432 * cgraphunit.c (cgraph_node::finalize_function): Use it.
8434 2015-10-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8436 * sched-int.h (struct autopref_multipass_data_): Remove offset
8437 field. Add min_offset, max_offset, multi_mem_insn_p fields.
8438 * haifa-sched.c (analyze_set_insn_for_autopref): New function.
8439 (autopref_multipass_init): Use it. Handle PARALLEL sets.
8440 (autopref_rank_data): New function.
8441 (autopref_rank_for_schedule): Use it.
8442 (autopref_multipass_dfa_lookahead_guard_1): Likewise.
8444 2015-10-18 Mikhail Maltsev <maltsevm@gmail.com>
8447 * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
8449 2015-10-18 Iain Sandoe <iain@codesourcery.com>
8451 * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
8452 (HAVE_LD_SYSROOT): New. (SYSROOT_SPEC): New.
8453 (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
8454 (STANDARD_STARTFILE_PREFIX_1): New.
8455 (STANDARD_STARTFILE_PREFIX_2): New.
8457 2015-10-18 Iain Sandoe <iain@codesourcery.com>
8459 * config/darwin-driver.c (darwin_default_min_version): Refactor code.
8460 (darwin_driver_init): Note a version-min when provided on the c/l.
8461 * config/darwin.h (%darwin_minversion): Remove.
8462 * config/i386/darwin.h: Likewise.
8463 * config/rs6000/darwin.h: Likewise.
8464 * config/darwin.opt (mmacosx-version-min=): Use the configured default,
8465 rather than an arbitrary constant.
8467 2015-10-18 Iain Sandoe <iain@codesourcery.com>
8469 * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
8470 PPC, detect conflicts between -arch and multilib settings. Detect
8471 and warn about conflicts between multiple -arch definitions.
8473 2015-10-18 Iain Sandoe <iain@codesourcery.com>
8475 * config/darwin-driver.c: Adjust includes to add diagnostic-core.
8477 2015-10-16 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8479 * lra-constraints.c (add_next_usage_insn): Change argument type
8480 from rtx to rtx_insn *.
8482 2015-10-16 H.J. Lu <hongjiu.lu@intel.com>
8484 * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
8487 2015-10-16 Andrew MacLeod <amacleod@redhat.com>
8489 * config/tilepro/gen-mul-tables.cc: Adjust include files.
8490 * config/tilegx/mul-tables.c: Regenerate.
8491 * config/tilepro/mul-tables.c: Regenerate.
8493 * config/tilegx/tilegx-c.c: Adjust include files.
8494 * config/tilegx/tilegx.c: Likewise.
8495 * config/tilepro/tilepro-c.c: Likewise.
8496 * config/tilepro/tilepro.c: Likewise.
8497 * config/aarch64/aarch64-builtins.c: Likewise.
8498 * config/aarch64/aarch64.c: Likewise.
8499 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
8500 * config/alpha/alpha.c: Likewise.
8501 * config/arc/arc.c: Likewise.
8502 * config/arm/aarch-common.c: Likewise.
8503 * config/arm/arm-builtins.c: Likewise.
8504 * config/arm/arm-c.c: Likewise.
8505 * config/arm/arm.c: Likewise.
8506 * config/avr/avr-c.c: Likewise.
8507 * config/avr/avr-devices.c: Likewise.
8508 * config/avr/avr-log.c: Likewise.
8509 * config/avr/avr.c: Likewise.
8510 * config/bfin/bfin.c: Likewise.
8511 * config/c6x/c6x.c: Likewise.
8512 * config/cr16/cr16.c: Likewise.
8513 * config/cris/cris.c: Likewise.
8514 * config/darwin-c.c: Likewise.
8515 * config/darwin-driver.c: Likewise.
8516 * config/darwin.c: Likewise.
8517 * config/default-c.c: Likewise.
8518 * config/epiphany/epiphany.c: Likewise.
8519 * config/epiphany/mode-switch-use.c: Likewise.
8520 * config/epiphany/resolve-sw-modes.c: Likewise.
8521 * config/fr30/fr30.c: Likewise.
8522 * config/frv/frv.c: Likewise.
8523 * config/ft32/ft32.c: Likewise.
8524 * config/glibc-c.c: Likewise.
8525 * config/h8300/h8300.c: Likewise.
8526 * config/i386/host-cygwin.c: Likewise.
8527 * config/i386/host-mingw32.c: Likewise.
8528 * config/i386/i386-c.c: Likewise.
8529 * config/i386/i386.c: Likewise.
8530 * config/i386/msformat-c.c: Likewise.
8531 * config/i386/winnt-cxx.c: Likewise.
8532 * config/i386/winnt-stubs.c: Likewise.
8533 * config/i386/winnt.c: Likewise.
8534 * config/ia64/ia64-c.c: Likewise.
8535 * config/ia64/ia64.c: Likewise.
8536 * config/iq2000/iq2000.c: Likewise.
8537 * config/lm32/lm32.c: Likewise.
8538 * config/m32c/m32c-pragma.c: Likewise.
8539 * config/m32c/m32c.c: Likewise.
8540 * config/m32r/m32r.c: Likewise.
8541 * config/mcore/mcore.c: Likewise.
8542 * config/mep/mep-pragma.c: Likewise.
8543 * config/mep/mep.c: Likewise.
8544 * config/microblaze/microblaze-c.c: Likewise.
8545 * config/microblaze/microblaze.c: Likewise.
8546 * config/mips/mips-tables.opt
8547 * config/mips/mips.c: Likewise.
8548 * config/mmix/mmix.c: Likewise.
8549 * config/mn10300/mn10300.c: Likewise.
8550 * config/moxie/moxie.c: Likewise.
8551 * config/msp430/msp430-c.c: Likewise.
8552 * config/msp430/msp430.c: Likewise.
8553 * config/nds32/nds32-cost.c: Likewise.
8554 * config/nds32/nds32-fp-as-gp.c: Likewise.
8555 * config/nds32/nds32-intrinsic.c: Likewise.
8556 * config/nds32/nds32-isr.c: Likewise.
8557 * config/nds32/nds32-md-auxiliary.c: Likewise.
8558 * config/nds32/nds32-memory-manipulation.c: Likewise.
8559 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
8560 * config/nds32/nds32-predicates.c: Likewise.
8561 * config/nds32/nds32.c: Likewise.
8562 * config/nios2/nios2.c: Likewise.
8563 * config/nvptx/mkoffload.c: Likewise.
8564 * config/nvptx/nvptx.c: Likewise.
8565 * config/pa/pa.c: Likewise.
8566 * config/pdp11/pdp11.c: Likewise.
8567 * config/rl78/rl78-c.c: Likewise.
8568 * config/rl78/rl78.c: Likewise.
8569 * config/rs6000/host-darwin.c: Likewise.
8570 * config/rs6000/rs6000-c.c: Likewise.
8571 * config/rs6000/rs6000-linux.c: Likewise.
8572 * config/rs6000/rs6000.c: Likewise.
8573 * config/rx/rx.c: Likewise.
8574 * config/s390/s390-c.c: Likewise.
8575 * config/s390/s390.c: Likewise.
8576 * config/sh/sh-c.c: Likewise.
8577 * config/sh/sh-mem.cc: Likewise.
8578 * config/sh/sh.c: Likewise.
8579 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
8580 * config/sh/sh_treg_combine.cc: Likewise.
8581 * config/sol2-c.c: Likewise.
8582 * config/sol2-cxx.c: Likewise.
8583 * config/sol2-stubs.c: Likewise.
8584 * config/sol2.c: Likewise.
8585 * config/sparc/sparc-c.c: Likewise.
8586 * config/sparc/sparc.c: Likewise.
8587 * config/spu/spu-c.c: Likewise.
8588 * config/spu/spu.c: Likewise.
8589 * config/stormy16/stormy16.c: Likewise.
8590 * config/v850/v850-c.c: Likewise.
8591 * config/v850/v850.c: Likewise.
8592 * config/vax/vax.c: Likewise.
8593 * config/visium/visium.c: Likewise.
8594 * config/vms/vms-c.c: Likewise.
8595 * config/vms/vms.c: Likewise.
8596 * config/vxworks.c: Likewise.
8597 * config/winnt-c.c: Likewise.
8598 * config/xtensa/xtensa.c: Likewise.
8600 2015-10-16 Christian Bruel <christian.bruel@st.com>
8603 * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
8604 (FUNCTION_BOUNDARY_P): New macro:
8605 * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
8607 * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
8608 * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
8609 * target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
8610 * function.c (allocate_struct_function): Call
8611 relayout_function hook.
8612 * passes.c (rest_of_decl_compilation): Likewise.
8614 2015-10-16 Christian Bruel <christian.bruel@st.com>
8617 * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
8618 * config/arm/arm.c (arm_option_override_internal): Call
8619 arm_override_options_after_change_1.
8620 (arm_override_options_after_change): New function.
8621 (arm_override_options_after_change_1): Likewise.
8622 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
8624 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
8627 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
8630 2015-10-16 Eric Botcazou <ebotcazou@adacore.com>
8632 * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
8633 argument is an ADDR_EXPR.
8635 2015-10-16 Richard Biener <rguenther@suse.de>
8637 * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
8638 and get rid of force_gimple_operand_gsi.
8639 (gimple_fold_builtin_memory_chk): Likewise.
8640 (gimple_fold_builtin_stxcpy_chk): Likewise.
8641 (rewrite_to_defined_overflow): Likewise.
8642 (gimple_convert_to_ptrofftype): New function.
8643 * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
8645 2015-10-16 Richard Biener <rguenther@suse.de>
8647 * tree-nested.h (build_addr): Adjust prototype.
8648 * tree-nested.c (build_addr): Remove context argument and use
8650 (get_static_chain): Adjust calls to build_addr.
8651 (convert_nl_goto_reference): Likewise.
8652 (convert_tramp_reference_op): Likewise.
8653 (finalize_nesting_tree_1): Likewise.
8654 * value-prof.c (gimple_ic): Likewise.
8655 * gimple-low.c (lower_builtin_setjmp): Likewise.
8656 * tree-parloops.c (take_address_of): Likewise.
8657 (create_call_for_reduction_1): Likewise.
8658 * tree-profile.c (gimple_gen_interval_profiler): Likewise.
8659 (gimple_gen_ic_func_profiler): Likewise.
8661 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
8663 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
8666 2015-10-16 Michael Collison <michael.collison@linaro.org>
8667 Andrew Pinski <andrew.pinski@caviumnetworks.com>
8669 * match.pd ((x < y) && (x < z) -> x < min (y,z),
8670 (x > y) and (x > z) -> x > max (y,z))
8672 2015-10-15 Gregor Richards <gregor.richards@uwaterloo.ca>
8673 Szabolcs Nagy <szabolcs.nagy@arm.com>
8675 * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
8676 (DYNAMIC_LINKER): Renamed to ...
8677 (GLIBC_DYNAMIC_LINKER): This.
8678 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
8680 2015-10-15 Marek Polacek <polacek@redhat.com>
8682 * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
8683 gimple_call_builtin instead of is_gimple_call.
8685 2015-10-15 Richard Biener <rguenther@suse.de>
8687 * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
8689 2015-10-15 Richard Biener <rguenther@suse.de>
8691 * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
8692 * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
8693 * tree-vect-loop.c (get_initial_def_for_induction): Drop
8694 use of force_gimple_operand in favor of gimple_build.
8695 Use vect_get_new_ssa_name.
8696 * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
8697 (vectorizable_mask_load_store): Likewise.
8698 (vectorizable_call): Likewise.
8699 (vectorizable_store): Likewise.
8700 (vectorizable_load): Likewise.
8701 (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
8703 2015-10-15 Richard Sandiford <richard.sandiford@arm.com>
8705 PR tree-optimization/67945
8706 * tree-pass.h (PROP_gimple_opt_math): New property flag.
8707 * generic-match-head.c (canonicalize_math_p): New function.
8708 * gimple-match-head.c: Include tree-pass.h.
8709 (canonicalize_math_p): New function.
8710 * match.pd: Group math built-in rules into simplifications
8711 and canonicalizations. Guard the latter with canonicalize_math_p.
8712 * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
8713 PROP_gimple_opt_math property.
8715 2015-10-15 Marek Polacek <polacek@redhat.com>
8717 PR tree-optimization/67953
8718 * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
8720 2015-10-15 Jiong Wang <jiong.wang@arm.com>
8722 * config.gcc: Recognize "." in architecture base name for AArch64.
8724 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
8726 * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
8728 * config/mips/mips.c (mips_setup_incoming_varargs): Use
8729 ROUND_DOWN to calculate off.
8730 (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
8731 (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
8734 2015-10-14 Eric Botcazou <ebotcazou@adacore.com>
8736 * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
8738 2015-10-14 Peter Bergner <bergner@vnet.ibm.com>
8739 Torvald Riegel <triegel@redhat.com>
8742 * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
8743 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
8744 trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
8745 (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
8746 *trechkpt, *treclaim, *tsr, *ttest): ...to this. Add memory barrier.
8747 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
8748 trechkpt, treclaim, tsr, ttest): New define_expands.
8749 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
8750 __TM_FENCE__ for htm.
8751 * doc/extend.texi: Update documentation for htm builtins.
8753 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
8756 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
8757 REG_CFA_EXPRESSION to aligned SSE stores.
8759 2015-10-14 Jeff Law <law@redhat.com>
8761 * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
8762 num_threaded_edges for successful FSM threads too.
8764 2015-10-14 Richard Biener <rguenther@suse.de>
8766 * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
8767 (vect_is_simple_use_1): Likewise. Make overload of vect_is_simple_use.
8768 (vect_get_vec_def_for_operand): Remove unused parameter.
8769 * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
8770 (vect_create_epilog_for_reduction): Likewise.
8771 (vectorizable_reduction): Likewise.
8772 (vectorizable_live_operation): Likewise.
8773 * tree-vect-patterns.c (type_conversion_p): Likewise.
8774 (vect_recog_vector_vector_shift_pattern): Likewise.
8775 (check_bool_pattern): Likewise.
8776 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
8777 (vect_analyze_slp_cost_1): Likewise.
8778 * tree-vect-stmts.c (process_use): Likewise.
8779 (vect_get_vec_def_for_operand): Do not handle reductions.
8780 (vect_get_vec_defs): Adjust.
8781 (vectorizable_mask_load_store): Likewise.
8782 (vectorizable_call): Likewise.
8783 (vectorizable_simd_clone_call): Likewise.
8784 (vect_get_loop_based_defs): Likewise.
8785 (vectorizable_conversion): Likewise.
8786 (vectorizable_assignment): Likewise.
8787 (vectorizable_shift): Likewise.
8788 (vectorizable_operation): Likewise.
8789 (vectorizable_store): Likewise.
8790 (vectorizable_load): Likewise.
8791 (vect_is_simple_cond): Likewise.
8792 (vectorizable_condition): Likewise.
8793 (vect_is_simple_use): Remove unused parameters.
8794 (vect_is_simple_use_1): Adjust and rename.
8796 2015-10-14 Richard Biener <rguenther@suse.de>
8798 PR tree-optimization/67915
8799 * match.pd: Handle comparisons of addresses of STRING_CSTs.
8800 * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
8801 * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
8802 stmt folding in favor of GIMPLE one.
8804 2015-10-14 Marek Polacek <polacek@redhat.com>
8806 PR tree-optimization/67815
8807 * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
8808 (reassociate_bb): Call it.
8810 2015-10-14 Richard Biener <rguenther@suse.de>
8812 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
8813 Reset info at start.
8814 (vect_analyze_group_access_1): Add debug print.
8815 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
8816 (vect_compute_single_scalar_iteration_cost): ... to this.
8817 (vect_analyze_loop_2): Adjust.
8818 * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
8819 * tree-vectorizer.h: ... here.
8820 (add_stmt_info_to_vec): Remove.
8821 * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
8823 2015-10-14 Dominik Vogt <vogt@linux.vnet.ibm.com>
8825 * targhooks.c (default_target_option_pragma_parse): Do not warn if
8826 called on behalf of "#pragma GCC pop_options".
8828 2015-10-14 Tom de Vries <tom@codesourcery.com>
8830 * cfganal.c (verify_no_unreachable_blocks): New function.
8831 (inverted_post_order_compute) [ENABLE_CHECKING]: Call
8832 verify_no_unreachable_blocks.
8833 cfganal.h (verify_no_unreachable_blocks): Declare.
8835 2015-10-13 Mikhail Maltsev <maltsevm@gmail.com>
8837 * common.opt: Add flag_checking.
8838 * system.h (CHECKING_P): Define.
8840 2015-10-13 Jakub Jelinek <jakub@redhat.com>
8841 Aldy Hernandez <aldyh@redhat.com>
8842 Ilya Verbin <ilya.verbin@intel.com>
8844 * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
8845 BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
8846 BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
8847 BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
8848 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
8849 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
8850 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
8851 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
8852 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
8853 BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
8854 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
8855 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
8856 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
8857 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
8858 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
8859 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
8860 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
8861 (struct cgraph_simd_clone_arg): Adjust comment.
8862 * coretypes.h (struct gomp_ordered): New forward decl.
8863 * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
8864 set critical clauses to it.
8865 (gimple_build_omp_ordered): Return gomp_ordered * instead of
8866 gimple *. Add CLAUSES argument, set ordered clauses to it.
8867 (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
8869 * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
8870 GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
8871 * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP. Add another bit
8872 to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
8873 GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP. Adjust
8874 GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
8875 Add another bit to GF_OMP_TARGET_KIND_MASK mask. Add
8876 GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
8878 GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
8879 (gomp_critical): Add clauses field.
8880 (gomp_ordered): New struct.
8881 (is_a_helper <gomp_ordered *>::test): New inline.
8882 (gimple_build_omp_critical): Add CLAUSES argument.
8883 (gimple_build_omp_ordered): Likewise. Return gomp_ordered *
8884 instead of gimple *.
8885 (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
8886 gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
8887 gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
8888 gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
8890 * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
8891 (dump_gimple_omp_target): Handle enter data and exit data.
8892 (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
8893 (dump_gimple_omp_critical): Print clauses.
8894 (dump_gimple_omp_ordered): New function.
8895 (dump_gimple_omp_task): Handle taskloop.
8896 (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
8898 * gimple-walk.c (walk_gimple_op): Walk clauses on
8899 GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
8900 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
8901 (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
8902 (struct gimplify_omp_ctx): Add loop_iter_var,
8903 target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
8904 and target_firstprivatize_array_bases fields.
8905 (delete_omp_context): Release loop_iter_var.
8906 (gimplify_bind_expr): Handle ORT_NONE.
8907 (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
8908 ORT_COMBINED_TARGET.
8909 (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
8910 OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
8911 (omp_firstprivatize_variable): Handle ORT_NONE. Adjust check for
8912 ORT_TARGET for the addition of ORT_COMBINED_TARGET. Handle
8913 ctx->target_map_scalars_firstprivate.
8914 (omp_add_variable): Handle ORT_NONE. Allow map clause together with
8915 data sharing clauses. For data sharing clause with VLA decl
8916 on omp target/target data don't add firstprivate for the pointer.
8917 Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
8918 (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
8919 the addition of ORT_COMBINED_TARGET.
8920 (omp_notice_variable): Handle ORT_NONE. Adjust check for ORT_TARGET
8921 for the addition of ORT_COMBINED_TARGET. Handle implicit mapping of
8922 pointers as zero length array sections and
8923 ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
8925 (omp_check_private): Handle omp_member_access_dummy_var vars.
8926 (find_decl_expr): New function.
8927 (gimplify_scan_omp_clauses): Add CODE argument. For OMP_CLAUSE_IF
8928 complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
8929 Handle OMP_CLAUSE_GANG separately. Handle
8930 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
8931 clauses. Diagnose linear clause on combined
8932 distribute {, parallel for} simd construct, unless it is the loop
8933 iterator. Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
8934 Handle map clauses with COMPONENT_REF. Initialize
8935 ctx->target_map_scalars_firstprivate,
8936 ctx->target_firstprivatize_array_bases and
8937 ctx->target_map_pointers_as_0len_arrays. Add firstprivate for
8938 linear clause even to target region if combined. Remove
8939 map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
8940 OMP_TARGET_{,ENTER_,EXIT_}DATA. For GOMP_MAP_FIRSTPRIVATE_POINTER
8941 map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
8942 Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}. Handle
8943 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
8944 For linear clause on worksharing loop combined with parallel add
8945 shared clause on the parallel. Handle OMP_CLAUSE_REDUCTION
8946 with MEM_REF OMP_CLAUSE_DECL. Set DECL_NAME on
8947 omp_member_access_dummy_var vars. Add lastprivate clause to outer
8949 (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
8950 If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
8951 GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
8953 (gimplify_adjust_omp_clauses): Add CODE argument. Handle removal
8954 of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
8955 in target body. Handle removal of struct mapping if struct is not
8956 seen in target body. Remove GOMP_MAP_STRUCT map clause on
8957 OMP_TARGET_EXIT_DATA. Adjust check for ORT_TARGET for the
8958 addition of ORT_COMBINED_TARGET. Use GOMP_MAP_FIRSTPRIVATE_POINTER
8959 instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
8960 for VLAs. Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
8961 clause appear together. Handle
8962 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}. Don't remove map
8963 clause if it has map-type-modifier always. Handle
8964 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
8966 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
8967 Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
8969 (gimplify_omp_for): Likewise. Handle OMP_TASKLOOP. Initialize
8970 loop_iter_var. Use OMP_FOR_ORIG_DECLS. Fix handling of lastprivate
8971 iterators in doacross loops.
8972 (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
8973 gimplify_adjust_omp_clauses callers. Use ORT_COMBINED_TARGET
8974 for OMP_TARGET_COMBINED. Adjust check for ORT_TARGET
8975 for the addition of ORT_COMBINED_TARGET.
8976 (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
8977 gimplify_adjust_omp_clauses callers. Handle OMP_TARGET_ENTER_DATA
8978 and OMP_TARGET_EXIT_DATA.
8979 (gimplify_omp_ordered): New function.
8980 (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
8981 OMP_TARGET_EXIT_DATA. Use gimplify_omp_ordered for OMP_ORDERED.
8982 Gimplify clauses on OMP_CRITICAL.
8983 * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
8984 expand_GOMP_SIMD_ORDERED_END): New functions.
8985 * internal-fn.def (GOMP_SIMD_ORDERED_START,
8986 GOMP_SIMD_ORDERED_END): New internal functions.
8987 * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
8988 BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
8989 BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
8990 BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
8991 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
8992 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
8993 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
8994 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
8995 BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
8996 BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
8997 BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
8998 BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
8999 (BUILT_IN_GOMP_TASK): Add INT argument to the end.
9000 (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
9002 (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
9003 GOMP_target_data_41, adjust type.
9004 (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
9005 GOMP_target_update_41, adjust type.
9006 * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
9008 (struct omp_for_data): Add ordered and simd_schedule fields.
9009 (omp_member_access_dummy_var, unshare_and_remap_1,
9010 unshare_and_remap, is_taskloop_ctx): New functions.
9011 (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
9012 (extract_omp_for_data): Handle taskloops and doacross loops
9013 and simd schedule modifier.
9014 (omp_adjust_chunk_size): New function.
9015 (get_ws_args_for): Use it.
9016 (lookup_sfield): Change first argument to splay_tree_key,
9017 add overload with first argument tree.
9018 (maybe_lookup_field): Likewise.
9019 (use_pointer_for_field): Handle omp_member_access_dummy_var.
9020 (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
9021 task_shared_vars, clear TREE_ADDRESSABLE on the copy.
9022 (build_outer_var_ref): Add LASTPRIVATE argument, handle
9023 taskloops and omp_member_access_dummy_var vars.
9024 (build_sender_ref): Change first argument to splay_tree_key,
9025 add overload with first argument tree.
9026 (install_var_field): For mask & 8 use &DECL_UID as key instead
9028 (fixup_child_record_type): Const qualify *.omp_data_i.
9029 (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
9030 C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
9031 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
9032 OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
9033 on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
9034 (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
9035 (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
9037 (add_taskreg_looptemp_clauses): New function.
9038 (scan_omp_parallel): Use it.
9039 (scan_omp_task): Likewise.
9040 (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
9041 For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
9042 (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
9043 and GF_OMP_TARGET_KIND_EXIT_DATA. Formatting fixes. Allow the
9044 sandwiched taskloop constructs. Type check
9045 OMP_CLAUSE_DEPEND_{KIND,SOURCE}. Allow ordered simd inside of simd
9046 region. Diagnose depend(source) or depend(sink:...) on
9047 target constructs or task/taskloop.
9048 (handle_simd_reference): Use get_name.
9049 (lower_rec_input_clauses): Likewise. Ignore all
9050 OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
9051 Allow _LOOPTEMP_ clause on GOMP_TASK. Unshare new_var
9052 before passing it to omp_clause_{default,copy}_ctor. Handle
9053 OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL. Set
9054 lastprivate_firstprivate flag for linear that needs copyin and
9055 copyout. Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
9056 (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
9057 on taskloop lookup decl in outer context. Pass true to
9058 build_outer_var_ref lastprivate argument. Handle
9059 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
9060 outside of outer taskloop for.
9061 (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
9063 (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
9064 GOMP_TASK. Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE. Handle
9065 omp_member_access_dummy_var vars. Handle OMP_CLAUSE_REDUCTION
9066 with MEM_REF OMP_CLAUSE_DECL. Use new lookup_sfield overload.
9067 (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
9068 abstract origin. Handle omp_member_access_dummy_var vars.
9069 (expand_parallel_call): Use expand_omp_build_assign.
9070 (expand_task_call): Handle taskloop construct expansion. Add
9071 REGION argument. Use GOMP_TASK_* defines instead of hardcoded
9072 integers. Add priority argument to GOMP_task* calls. Or in
9073 GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
9075 (expand_omp_build_assign): Add prototype. Add AFTER
9076 argument, if true emit statements after *GSI_P and continue linking.
9077 (expand_omp_taskreg): Adjust expand_task_call caller.
9078 (expand_omp_for_init_counts): Rename zero_iter_bb argument to
9079 zero_iter1_bb and first_zero_iter to first_zero_iter1, add
9080 zero_iter2_bb and first_zero_iter2 arguments, handle computation
9081 of counts even for ordered loops.
9082 (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
9083 (expand_omp_ordered_source, expand_omp_ordered_sink,
9084 expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
9086 (expand_omp_for_generic): Use omp_adjust_chunk_size. Handle linear
9087 clauses on worksharing loop. Handle DOACROSS loop expansion.
9088 (expand_omp_for_static_nochunk): Handle linear clauses on
9089 worksharing loop. Adjust expand_omp_for_init_counts
9091 (expand_omp_for_static_chunk): Likewise. Use omp_adjust_chunk_size.
9092 (expand_omp_simd): Handle addressable fd->loop.v. Adjust
9093 expand_omp_for_init_counts callers.
9094 (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
9096 (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
9097 Handle doacross loops.
9098 (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
9099 GF_OMP_TARGET_KIND_EXIT_DATA. Pass flags and depend arguments to
9100 GOMP_target_{41,update_41,enter_exit_data} libcalls.
9101 (expand_omp): Don't expand ordered depend constructs here, record
9102 ord_stmt instead for later expand_omp_for_generic.
9103 (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
9104 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
9105 clause as stand-alone directive.
9106 (lower_omp_ordered_clauses): New function.
9107 (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
9108 don't lower anything.
9109 (lower_omp_for_lastprivate): Use last _looptemp_ clause
9110 on taskloop for comparison.
9111 (lower_omp_for): Handle taskloop constructs. Adjust OMP_CLAUSE_DECL
9112 and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
9113 expansion for linear adjustments.
9114 (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
9115 (lower_depend_clauses): Assert not seeing sink/source depend kinds.
9116 Set TREE_ADDRESSABLE on array. Change first argument from gimple *
9117 to tree * pointing to the stmt's clauses.
9118 (lower_omp_taskreg): Adjust lower_depend_clauses caller.
9119 (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
9120 and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
9121 GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
9122 map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
9123 clauses. Always use short kind and 8-bit align shift.
9124 (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
9125 (struct lower_omp_regimplify_operands_data): New type.
9126 (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
9128 (lower_omp_1): Use lower_omp_regimplify_operands instead of
9129 gimple_regimplify_operands.
9130 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
9131 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
9132 clause as stand-alone directive.
9133 (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
9134 (simd_clone_mangle): Mangle the various linear kinds
9136 (simd_clone_adjust_argument_types): Handle
9137 SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
9138 (simd_clone_init_simd_arrays): Don't do anything for uval.
9139 (simd_clone_adjust): Handle
9140 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
9141 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
9142 Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
9143 * omp-low.h (omp_member_access_dummy_var): New prototype.
9144 * passes.def (pass_simduid_cleanup): Schedule another copy of the
9145 pass after all optimizations.
9146 * tree.c (omp_clause_code_name): Add entries for
9147 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
9148 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
9149 (omp_clause_num_ops): Likewise. Bump number of OMP_CLAUSE_REDUCTION
9150 arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
9151 (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
9152 OMP_CLAUSE_REDUCTION 5 arguments. Handle
9153 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
9154 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
9156 * tree-core.h (enum omp_clause_linear_kind): New.
9157 (struct tree_omp_clause): Change type of map_kind
9158 from unsigned char to unsigned int. Add subcode.if_modifier
9159 and subcode.linear_kind fields.
9160 (enum omp_clause_code): Add
9161 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
9162 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
9163 (OMP_CLAUSE_REDUCTION): Document
9164 OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
9165 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
9166 * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
9167 (OMP_CRITICAL): Move before OMP_SINGLE. Add OMP_CRITICAL_CLAUSES
9169 (OMP_ORDERED): Move before OMP_SINGLE. Add OMP_ORDERED_CLAUSES
9171 (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
9173 * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
9174 (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
9176 (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
9177 (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
9178 (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
9179 (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
9180 OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
9181 OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
9182 OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
9183 OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
9184 OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
9185 OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
9186 OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
9187 OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
9188 OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
9189 * tree-inline.c (remap_gimple_stmt): Handle clauses on
9190 GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL. For
9191 IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
9192 * tree-nested.c (convert_nonlocal_omp_clauses): Handle
9193 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
9194 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
9195 clauses. Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
9196 (convert_local_omp_clauses): Likewise.
9197 * tree-pretty-print.c (dump_omp_clause): Handle
9198 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
9199 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
9200 clauses. Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
9201 OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
9202 OMP_CLAUSE_DEPEND_{SOURCE,SINK}. Use "delete" for
9203 GOMP_MAP_FORCE_DEALLOC. Handle
9204 GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
9205 (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
9206 and clauses on OMP_ORDERED and OMP_CRITICAL.
9207 * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
9208 Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
9209 (vectorize_loops): Adjust comments.
9210 (pass_simduid_cleanup::execute): Likewise.
9211 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
9212 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
9213 * wide-int.h (wi::gcd): New.
9215 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
9217 * config/i386/i386.c (classify_argument): Use CEIL where applicable.
9218 (ix86_function_arg_advance): Ditto.
9219 (ix86_function_arg): Ditto.
9220 (ix86_gimplify_va_arg): Ditto.
9221 (ix86_class_max_nregs): Ditto.
9222 (inline_memory_move_cost): Ditto.
9223 (ix86_set_reg_reg_cost): Ditto.
9224 * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
9226 2015-10-13 Alexandre Oliva <aoliva@redhat.com>
9229 * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
9231 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
9233 * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
9234 ROUND_UP macro and UNITS_PER_WORD * 2.
9235 * config/sparc/sparc.c (sparc_compute_frame_size):
9236 Use ROUND_UP and ROUND_DOWN macros where applicable.
9237 (function_arg_record_value, function_arg_record_value_1)
9238 (function_arg_record_value_1): Ditto.
9239 (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
9240 alignment to double-word.
9241 (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
9242 (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
9245 2015-10-13 Nikolai Bozhenov <n.bozhenov@samsung.com>
9247 * rtl.h (print_insn): Fix prototype.
9249 2015-10-13 Tom de Vries <tom@codesourcery.com>
9251 * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
9252 -1. Add assert that returned entry matches phi argument.
9253 (parallelize_loops): Move calls to init_stmt_vec_info_vec and
9254 free_stmt_vec_info_vec ...
9255 (gather_scalar_reductions): ... here. Initialize gimple_uids of phis
9258 2014-10-13 Yuri Rumyantsev <ysrumyan@gmail.com>
9260 PR tree-optimization/67909, 67947
9261 * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
9262 really skip the inner loop.
9264 2015-10-13 Jeff Law <law@redhat.com>
9266 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
9267 Allow single block jump threading paths.
9269 2015-10-13 Tom de Vries <tom@codesourcery.com>
9271 PR tree-optimization/67476
9272 * doc/invoke.texi (@item parloops-schedule): New item.
9273 * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
9274 * tree-parloops.c: Include params-enum.h.
9275 (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
9277 2015-10-13 Tom de Vries <tom@codesourcery.com>
9279 * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
9280 * params-enum.h: New file.
9281 * opts.c (handle_param): Handle case that param arg is a string.
9282 * params-list.h: Handle DEFPARAMENUM5 in params.def.
9283 * params.c (find_param): New function, factored out of ...
9284 (set_param_value): ... here.
9285 (param_string_value_p): New function.
9286 * params.h (struct param_info): Add value_names field.
9287 (find_param, param_string_value_p): Declare.
9289 2015-10-13 Tom de Vries <tom@codesourcery.com>
9291 PR tree-optimization/67476
9292 * omp-low.c (expand_omp_for_generic): Handle original loop tree.
9294 2015-10-13 Richard Biener <rguenther@suse.de>
9296 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
9297 the data dependence vector.
9298 (vect_peeling_hash_insert): Get the peeling hash table as argument.
9299 (vect_peeling_hash_get_lowest_cost): Likewise.
9300 (vect_enhance_data_refs_alignment): Adjust.
9301 (struct _vect_peel_info, struct _vect_peel_extended_info,
9302 struct peel_info_hasher): Move from ...
9303 * tree-vectorizer.h: ... here.
9304 (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
9305 (LOOP_VINFO_PEELING_HTAB): Likewise.
9306 (struct _loop_vec_info): Remove min_profitable_iters and
9307 peeling_htab members.
9308 * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
9310 (destroy_loop_vec_info): Adjust.
9311 (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
9312 (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
9313 to estimate alias versioning cost.
9314 * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
9316 2015-10-13 Richard Sandiford <richard.sandiford@arm.com>
9318 * real.h (real_isinteger): Declare.
9319 * real.c (real_isinteger): New function.
9320 * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
9321 if y is an even integer.
9323 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
9326 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
9327 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
9328 counts when these are more informative.
9330 2015-10-12 Jeff Law <law@redhat.com>
9332 * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
9333 (fsm_find_control_stmt_paths): Change name of first argument to
9334 more accurately relfect what it really is. Handle simplification
9335 of GIMPLE_COND after finding a thread path for NAME.
9336 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
9337 nontrivial conditions to be handled by FSM threader.
9338 (thread_through_normal_block): Extract the name to looup via
9339 FSM threader from COND_EXPR.
9341 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
9342 restriction that traced SSA_NAME is a user variable.
9344 2015-10-12 Tom de Vries <tom@codesourcery.com>
9346 PR tree-optimization/67476
9347 * omp-low.c (expand_omp_for_generic): Add missing phis.
9349 2015-10-12 Tom de Vries <tom@codesourcery.com>
9351 PR tree-optimization/67476
9352 * omp-low.c (expand_omp_for_generic): Handle simple latch.
9354 2015-10-12 Christophe Lyon <christophe.lyon@linaro.org>
9356 * config/aarch64/aarch64-simd-builtins.def: Update builtins
9357 tables: add tbl3 and tbx4.
9358 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
9359 (aarch64_tbx4v8qi): New.
9360 * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
9361 (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
9362 Rewrite using builtin functions.
9363 * config/aarch64/iterators.md (UNSPEC_TBX): New.
9365 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
9367 * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
9369 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
9370 Use ROUND_UP and ROUND_DOWN macros where applicable.
9371 (rs6000_darwin64_record_arg_flush): Ditto.
9372 (rs6000_function_arg): Use ROUND_UP to calculate align_words.
9373 (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
9376 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
9378 * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
9379 (AARCH64_ROUND_DOWN): Ditto.
9380 * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
9382 2015-10-12 Richard Biener <rguenther@suse.de>
9385 * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
9386 code that analyzes IVs on each stmt but in a cheaper way avoiding
9389 2015-10-12 Nick Clifton <nickc@redhat.com>
9391 * config/msp430/msp430.c (msp430_mcu_names): Rename to
9392 msp430_mcu_data, add fields for ISA and hardware multiply
9393 support. Import latest data from the devices.csv file.
9394 (msp430_override_option): Use the data from the new array.
9395 (msp430_use_f5_series_hwmult): Likewise.
9396 (use_32bit_hwmult): Likewise.
9397 (msp430_no_hwmult): Likewise.
9398 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
9400 * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
9401 not recognised then no hardware multiply support is assumed and
9402 that only the MSP430 ISA is allowed.
9404 2015-10-12 Richard Biener <rguenther@suse.de>
9406 * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
9408 (vect_analyze_loop_2): ... here.
9410 2015-10-11 Jason Merrill <jason@redhat.com>
9413 * expr.c (store_field): Call store_constructor directly when
9414 storing a CONSTRUCTOR into a target smaller than its type.
9415 Guard against unsafe bitwise copy.
9417 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
9419 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
9420 counts when these are more informative.
9422 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
9424 * tree-profile.c (tree_profiling): Do not clear
9425 pure/const when not instrumenting.
9426 (pass tree_profile): Add dump of symtab.
9428 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
9430 * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
9432 (fold_addr_of_array_ref_difference): Likewise.
9434 2015-10-11 Jeff Law <law@redhat.com>
9436 * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
9437 tree-ssa-threadbackward.c.
9438 (fsm_find_control_statement_thread_paths): Likewise.
9439 (thread_through_normal_block): Break out FSM bits and move them
9440 into a new function in tree-ssa-threadbackward.c. Call new function
9442 Minimize header file usage.
9443 * tree-ssa-threadbackward.h: New file.
9444 * tree-ssa-threadbackward.c: Likewise.
9445 * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
9447 2015-10-11 Uros Bizjak <ubizjak@gmail.com>
9449 * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
9451 2015-10-11 Segher Boessenkool <segher@kernel.crashing.org>
9453 PR rtl-optimization/67864
9454 * bb-reorder (reorder_basic_blocks_simple): Prefer existing
9455 fallthrough edges for conditional jumps. Don't sort candidate
9456 edges if not optimizing for speed.
9458 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9460 * defaults.h (REVERSE_CONDITION): New default definition.
9461 * jump.c (reversed_comparison_code_parts): Adjust.
9463 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9465 * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
9466 check HARD_FRAME_POINTER_IS_ARG_POINTER.
9468 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9470 * defaults.h (FRAME_ADDR_RTX): New default definition.
9471 * builtins.c (expand_builtin_return_addr): Adjust.
9473 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9475 * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
9476 * builtins.c (expand_builtin_return_addr): Adjust.
9478 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9480 * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
9481 * builtins.c (expand_builtin_return_addr): Adjust.
9482 * doc/tm.texi: Likewise.
9483 * doc/tm.texi.in: Likewise.
9484 * except.c (expand_builtin_unwind_init): Likewise.
9486 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9488 * builtins.c (expand_builtin_return_addr): Adjust.
9489 * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
9491 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
9493 * tree.c (type_with_interoperable_signedness): New.
9494 (gimple_canonical_types_compatible_p): Use it.
9495 * tree.h (type_with_interoperable_signedness): Declare
9497 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
9499 * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
9500 and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
9501 when OEP_ADDRESS_OF is se.
9503 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
9504 Sebastian Pop <s.pop@samsung.com>
9506 * graphite-dependences.c (scop_get_dependences): Add dump of the
9507 data dependence graph.
9508 * graphite-poly.c (print_isl_union_map): New.
9509 (debug_isl_union_map): New.
9510 * graphite-poly.h (print_isl_union_map): Declare.
9511 (debug_isl_union_map): Declare.
9513 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
9514 Sebastian Pop <s.pop@samsung.com>
9516 * graphite-poly.c (print_iteration_domain): Remove verbosity.
9517 Remove OpenScop formatting.
9518 (print_iteration_domains): Same.
9519 (debug_iteration_domain): Same.
9520 (debug_iteration_domains): Same.
9523 (dump_gbb_cases): Same.
9524 (dump_gbb_conditions): Same.
9527 (print_pbb_body): Same.
9529 (print_scop_params): Same.
9530 (print_scop_context): Same.
9532 (debug_pbb_domain): Same.
9534 (debug_scop_context): Same.
9536 (debug_scop_params): Same.
9537 * graphite-poly.h: Same.
9538 * graphite.c (graphite_transform_loops): Same.
9540 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9542 * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
9543 call that isn't needed.
9545 2015-10-09 Jeff Law <law@redhat.com>
9547 * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
9548 rather than moving each name to the freelist individually.
9550 2015-10-09 Steve Ellcey <sellcey@imgtec.com>
9552 * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
9553 * frame-header-opt.c: New file.
9554 * config/mips/mips-proto.h (mips_register_frame_header_opt):
9556 * config/mips/mips.c (mips_compute_frame_info): Check
9557 optimize_call_stack flag.
9558 (mips_option_override): Register new frame_header_opt pass.
9559 (mips_frame_info, mips_int_mask, mips_shadow_set,
9560 machine_function): Move these types to...
9561 * config/mips/mips.h: here.
9562 (machine_function): Add does_not_use_frame_header and
9563 optimize_call_stack fields.
9564 * config/mips/t-mips (frame-header-opt.o): Add new make rule.
9565 * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
9567 * config/mips/mips.opt (mframe-header-opt): Add new option.
9569 2015-10-09 Uros Bizjak <ubizjak@gmail.com>
9571 * config/i386/i386.c
9572 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
9573 ROUND_DOWN where applicable.
9575 2015-10-09 Jeff Law <law@redhat.com>
9577 * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
9580 2015-10-09 Renlin Li <renlin.li@arm.com>
9582 * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
9583 operands[0] and operands[2].
9584 (neon_vtrn<mode>_insn): Likewise.
9585 (neon_vzip<mode>_insn): Likewise.
9587 2015-10-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
9589 * match.pd: ((X inner_op C0) outer_op C1) New pattern.
9590 ((X & C2) << C1): Expand to...
9591 (X {&,^,|} C2 << C1): ...This.
9592 ((X & C2) >> C1): Expand to...
9593 (X {&,^,|} C2 >> C1): ...This.
9595 2015-10-09 Alexander Fomin <alexander.fomin@intel.com>
9598 * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
9599 Adjust embedded rounding/SAE specifier position.
9600 (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
9601 (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
9602 (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
9603 (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
9604 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
9606 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
9608 2015-10-09 Martin Jambor <mjambor@suse.cz>
9610 tree-optimization/67794
9611 * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
9612 between types of state,ents but accept original definitions as a
9614 (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
9615 iterate over definitions.
9617 2015-10-09 James Norris <jnorris@codesourcery.com>
9619 * config/rs6000/rs6000.c (rs6000_offload_options): New.
9620 (TARGET_OFFLOAD_OPTIONS): New.
9622 2015-10-09 Alexandre Oliva <aoliva@redhat.com>
9625 * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
9628 * function.c (expand_function_end): Move return value
9629 promotion past the handling of PARALLELs and CONCATs.
9631 PR rtl-optimization/67828
9632 * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
9633 (tree_may_unswitch_on): Don't unswitch on expressions
9634 involving undefined values.
9636 2015-10-09 Richard Biener <rguenther@suse.de>
9638 * genmatch.c (print_operand): Fix formatting.
9639 (dt_node::append_simplify): Warn for multiple simplifiers
9640 that match the same pattern.
9641 * match.pd (log (exp @0)): Remove duplicates.
9643 2015-10-09 Richard Biener <rguenth@suse.de>
9646 * gimple-fold.c (optabs-query.h): Include
9647 (gimple_fold_builtin_memory_op): Allow unaligned stores
9648 when movmisalign_optabs are available.
9650 2015-10-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9653 * config/arm/arm.md (movmisalign<mode>): New.
9654 * config/arm/iterators.md (HSI): New.
9656 2015-10-09 Richard Biener <rguenther@suse.de>
9658 PR tree-optimization/67891
9659 * gimple-match.h (gimple_simplified_result_is_gimple_val):
9661 (gimple_resimplify1): Declare.
9662 (gimple_resimplify2): Likewise.
9663 (gimple_resimplify3): Likewise.
9664 * gimple-match-head.c (gimple_resimplify1): Export.
9665 (gimple_resimplify2): Likewise.
9666 (gimple_resimplify3): Likewise.
9667 (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
9668 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
9669 * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
9670 to avoid creating stmts without VN info.
9672 2015-10-08 Jan Hubicka <hubicka@ucw.cz>
9674 * ipa-icf.c (sem_item::compare_symbol_references): Fix use
9677 2015-10-08 Jeff Law <law@redhat.com>
9679 * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
9680 and release_ssa_name in two places.
9681 (gimple_stringop_fixed_value): Similarly.
9683 * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
9686 * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
9687 unlink_stmt_vdef and release_ssa_name_fn.
9689 * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
9692 2015-10-08 H.J. Lu <hongjiu.lu@intel.com>
9694 * config/i386/i386.c (ix86_compute_frame_layout): Round up the
9695 SSE register save area to 16 bytes only if the incoming stack
9696 boundary is no less than 16 bytes.
9698 2015-10-08 Jeff Law <law@redhat.com>
9700 * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
9701 release_ssa_name. Fix typo in comment.
9703 2015-10-08 Nathan Sidwell <nathan@acm.org>
9705 * config/nvptx/nvptx.h (struct machine_function): Add comment.
9706 * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
9707 may return pointer as well as in memory.
9708 (nvptx_output_return): Likewise.
9710 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
9712 * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
9713 (fold_builtin_1): Update accordingly. Handle constant arguments here.
9714 * match.pd: Add rules previously handled by fold_builtin_sqrt
9715 and fold_builtin_cbrt.
9717 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
9719 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
9720 * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
9721 * fold-const.h (tree_unary_nonnegative_warnv_p)
9722 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
9723 (tree_expr_nonnegative_warnv_p): Add depth parameters.
9724 * fold-const.c: Include gimple-fold.h and params.h.
9725 (tree_ssa_name_nonnegative_warnv_p): New function.
9726 (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
9727 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
9728 (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
9729 Add a depth parameter and increment it for recursive calls to
9730 tree_expr_nonnegative_warnv_p. Use tree_ssa_name_nonnegative_warnv_p
9731 to handle SSA names.
9732 * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
9733 (gimple_stmt_nonnegative_warnv_p): Declare.
9734 * tree-vrp.c (remove_range_assertions): Remove assert that condition
9735 cannot be proven false.
9736 (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
9737 (gimple_stmt_nonnegative_warnv_p): Move to...
9738 * gimple-fold.c: ...here. Add depth parameters and pass them
9739 down to the tree routines. Accept statements that aren't
9740 assignments or calls but just return false for them.
9741 (gimple_val_nonnegative_real_p): Delete.
9742 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
9743 tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
9744 Check HONOR_NANs first.
9746 2015-10-08 Martin Jambor <mjambor@suse.cz>
9748 * ipa-cp.c (meet_with_1): Make the argument of abs signed. Remove
9751 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
9753 * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
9754 in the tail of outer-loop.
9756 2015-10-08 David Edelsohn <dje.gcc@gmail.com>
9758 * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
9761 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
9763 * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
9764 "cfghooks.h", add prototypes for introduced new functions.
9765 (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
9766 checks on ability of loop unswitching to tree_unswitch_single_loop;
9767 invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
9768 on innermost loop check.
9769 (tree_unswitch_single_loop): Add all required checks on ability of
9770 loop unswitching under zero recursive level guard.
9771 (tree_unswitch_outer_loop): New function.
9772 (find_loop_guard): Likewise.
9773 (empty_bb_without_guard_p): Likewise.
9774 (used_outside_loop_p): Likewise.
9775 (get_vop_from_header): Likewise.
9776 (hoist_guard): Likewise.
9777 (check_exit_phi): Likewise.
9779 2015-10-08 Marek Polacek <polacek@redhat.com>
9781 * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
9784 2015-10-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9787 * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
9788 create_tmp_var_raw instead of create_tmp_var.
9790 2015-10-07 Jan Hubicka <hubicka@ucw.cz>
9792 * expr.c (store_expr_with_bounds): Handle aggregate moves from
9794 * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
9795 to define gimple type system; compare aggregates only by size.
9797 2015-10-07 Jeff Law <law@redhat.com>
9799 * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
9800 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
9801 here instead. Tighten test to avoid setting LOOPS_NEED_FIXUP
9804 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
9805 Sebastian Pop <s.pop@samsung.com>
9807 * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
9808 * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
9809 (generate_isl_schedule): Same.
9810 * graphite-optimize-isl.c (scop_get_domains): Same.
9811 (apply_schedule_map_to_scop): Same.
9812 * graphite-poly.c (print_iteration_domains): Same.
9813 (remove_gbbs_in_scop): Same.
9817 * graphite-poly.h (struct scop): Rename bbs to pbbs.
9819 * graphite-scop-detection.c (compare_bb_depths): Remove.
9820 (graphite_sort_dominated_info): Remove.
9821 (try_generate_gimple_bb): Move out of scop_detection.
9822 (all_non_dominated_preds_marked_p): Remove.
9823 (build_scop_bbs_1): Remove.
9824 (build_scop_bbs): Remove.
9825 (nb_pbbs_in_loops): Do not use SCOP_BBS.
9826 (find_scop_parameters): Same.
9827 (sese_dom_walker): Rename gather_bbs.
9828 (before_dom_children): Call try_generate_gimple_bb and collect gbb
9830 (build_scops): Call gather_bbs.
9831 * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
9832 (add_conditions_to_constraints): Same.
9833 (build_scop_iteration_domain): Same.
9834 (build_scop_drs): Same.
9835 (new_pbb_from_pbb): Same.
9836 * sese.c (new_sese_info): Create bbs.
9837 * sese.h (struct sese_info_t): Add bbs.
9839 2015-10-07 David Edelsohn <dje.gcc@gmail.com>
9841 * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
9842 encoding in 64-bit mode.
9844 2015-10-07 Uros Bizjak <ubizjak@gmail.com>
9847 * config/i386/i386.c (ix86_option_override_internal): Always use
9848 8-byte minimum stack boundary in 64-bit mode.
9849 (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
9850 (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
9851 Add a REG_CFA_EXPRESSION note if needed.
9852 (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
9853 (ix86_handle_force_align_arg_pointer_attribute): New.
9854 (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
9855 (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
9856 with ix86_handle_force_align_arg_pointer_attribute.
9857 * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
9859 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
9860 Sebastian Pop <s.pop@samsung.com>
9862 * graphite-scop-detection.c (parameter_index_in_region): Remove
9863 use of SESE_ADD_PARAMS.
9864 (find_scop_parameters): Same.
9865 * sese.c (new_sese_info): Same.
9866 * sese.h (struct sese_info_t): Remove add_params.
9867 (SESE_ADD_PARAMS): Remove.
9869 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
9870 Sebastian Pop <s.pop@samsung.com>
9872 * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
9875 (copy_internal_parameters): Same.
9876 (translate_isl_ast_to_gimple): Use an sese_l.
9877 (build_iv_mapping): Same.
9878 * graphite-poly.c (new_sese): Rename new_sese_info.
9879 (free_sese): Rename free_sese_info.
9880 * graphite-poly.h (struct scop): Use an sese_info_p.
9881 (scop_set_region): Same.
9882 * graphite-scop-detection.c (struct sese_l): Moved...
9883 (get_entry_bb): Moved...
9884 (get_exit_bb): Moved...
9885 (parameter_index_in_region_1): Use an sese_info_p.
9886 (parameter_index_in_region): Same.
9887 (scan_tree_for_params): Same.
9888 (find_params_in_bb): Same.
9889 (sese_dom_walker): Use an sese_l.
9890 * graphite-sese-to-poly.c (remove_invariant_phi): Same.
9891 (reduction_phi_p): Same.
9892 (parameter_index_in_region_1): Use an sese_info_p.
9893 (propagate_expr_outside_region): Use an sese_l.
9894 * graphite.c: Replace uses of SCOP_REGION.
9895 * sese.c (sese_record_loop): Use an sese_info_p.
9896 (build_sese_loop_nests): Same.
9897 (sese_build_liveouts_use): Same.
9898 (sese_build_liveouts_bb): Same.
9899 (sese_build_liveouts_bb): Same.
9900 (sese_bad_liveouts_use): Same.
9901 (sese_reset_debug_liveouts_bb): Same.
9902 (sese_build_liveouts): Same.
9903 (new_sese): Renamed new_sese_info.
9904 (free_sese): Renamed free_sese_info.
9905 (set_rename): Use an sese_info_p.
9906 (graphite_copy_stmts_from_block): Same.
9907 (copy_bb_and_scalar_dependences): Same.
9908 (outermost_loop_in_sese_1): Use an sese_l.
9909 (outermost_loop_in_sese): Same.
9910 (if_region_set_false_region): Use an sese_info_p.
9911 (move_sese_in_condition): Same.
9912 (scalar_evolution_in_region): Use an sese_l.
9913 * sese.h (struct sese_l): ... here.
9914 (SESE_ENTRY): Remove.
9915 (SESE_ENTRY_BB): Remove.
9916 (SESE_EXIT): Remove.
9917 (SESE_EXIT_BB): Remove.
9918 (sese_contains_loop): Use an sese_info_p.
9919 (sese_nb_params): Same.
9920 (bb_in_sese_p): Use an sese_l.
9921 (stmt_in_sese_p): Same.
9922 (defined_in_sese_p): Same.
9923 (loop_in_sese_p): Same.
9924 (sese_loop_depth): Same.
9925 (struct ifsese_s): Use an sese_info_p.
9926 (gbb_loop_at_index): Use an sese_l.
9927 (nb_common_loops): Same.
9928 (scev_analyzable_p): Same.
9930 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
9932 * config/i386/i386.c (ix86_conditional_register_usage): Use
9933 CALL_USED_REGISTERS_MASK.
9934 * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
9936 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
9939 * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
9940 * configure: Regenerated.
9942 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
9945 * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
9946 (ix86_set_current_function): This.
9947 (TARGET_EXPAND_TO_RTL_HOOK): Removed.
9949 2015-10-07 Richard Biener <rguenther@suse.de>
9951 * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
9952 (vinfo_for_stmt): Adjust.
9953 (set_vinfo_for_stmt): Likewise.
9954 * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
9955 * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
9956 * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
9958 (vect_analyze_loop_1): Remove.
9959 (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
9960 inner loop when vectorizing an outer loop by splitting out from ...
9961 (vect_analyze_loop_form): ... here.
9963 2015-10-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9966 * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
9967 Use create_tmp_var_raw instead of create_tmp_var.
9969 2015-10-07 Richard Sandiford <richard.sandiford@arm.com>
9971 * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
9972 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
9973 * real.c (CACHED_FRACTION): New helper macro.
9974 (dconst_third_ptr): Use it.
9975 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
9976 * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
9978 (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
9980 2015-10-06 Jeff Law <law@redhat.com>
9982 PR tree-optimization/67816
9983 * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
9984 from remove_jump_threads_starting_at. Accept an edge rather than
9986 * tree-ssa-threadupdate.c (removed_edges): New hash table.
9987 (remove_jump_threads_including): Note edges that get removed from
9988 the CFG for later pruning of jump threading paths including them.
9989 (thread_through_all_blocks): Remove paths which include edges that
9991 * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
9992 on each outgoing edges when optimizing away a control statement.
9994 2015-10-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9996 * reorg.c (emit_delay_sequence): Store list of delay slot insns
9997 in a vector instead of rtx_insn_list.
9998 (add_to_delay_list): Likewise.
9999 (delete_from_delay_slot): Likewise.
10000 (optimize_skip): Likewise.
10001 (redirect_with_delay_list_safe_p): Likewise.
10002 (check_annul_list_true_false): Likewise.
10003 (steal_delay_list_from_target): Likewise.
10004 (steal_delay_list_from_fallthrough): Likewise.
10005 (redundant_insn): Likewise.
10006 (fill_simple_delay_slots): Likewise.
10007 (fill_slots_from_thread): Likewise.
10008 (fill_eager_delay_slots): Likewise.
10009 (relax_delay_slots): Likewise.
10011 2015-10-06 Sandra Loosemore <sandra@codesourcery.com>
10013 * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
10014 For -mgpopt=local, also exclude unintialized common symbols.
10015 * doc/invoke.texi (Nios II Options): Document the change.
10017 2015-10-07 Kugan Vivekanandarajah <kuganv@linaro.org>
10019 * config/aarch64/iterators.md (vwcore): Add missing cases for
10022 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
10023 Sebastian Pop <s.pop@samsung.com>
10025 * graphite-poly.c (new_scop): Initialize drs.
10026 * graphite-poly.h (struct dr_info): New.
10027 (struct scop): Add drs.
10028 * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
10029 (pdr_add_memory_accesses): Same.
10030 (build_poly_dr): Same.
10031 (build_alias_set): Same.
10032 (build_scop_drs): Same.
10033 (build_pbb_drs): Remove.
10034 * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
10035 * tree-data-ref.h (data_reference): Remove alias_set.
10037 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
10038 Sebastian Pop <s.pop@samsung.com>
10040 * graphite-poly.c (free_data_refs_aux): Remove.
10041 (free_gimple_poly_bb): Do not call free_data_refs_aux.
10042 * graphite-poly.h (struct base_alias_pair): Remove.
10043 * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
10044 base_alias_pair and dr->aux.
10045 (build_alias_set): Same.
10046 * tree-data-ref.c (create_data_ref): Initialize alias_set.
10047 * tree-data-ref.h (data_reference): Add alias_set.
10049 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
10050 Sebastian Pop <s.pop@samsung.com>
10052 * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
10053 Do not set PDR_BASE_OBJECT_SET.
10054 * graphite-poly.h (poly_dr): Same.
10055 (PDR_BASE_OBJECT_SET): Remove.
10056 (new_poly_dr): Update decl.
10057 * graphite-sese-to-poly.c (build_poly_dr): Update call to
10059 (write_alias_graph_to_ascii_dimacs): Remove.
10060 (write_alias_graph_to_ascii_dot): Remove.
10061 (write_alias_graph_to_ascii_ecc): Remove.
10062 (dr_same_base_object_p): Remove.
10063 (build_alias_set_optimal_p): Rename build_alias_set. Remove dead
10065 (build_base_obj_set_for_drs): Remove.
10066 (dump_alias_graphs): Remove.
10067 (build_scop_drs): Remove dead code.
10069 2015-10-05 Michael Meissner <meissner@linux.vnet.ibm.com>
10070 Peter Bergner <bergner@vnet.ibm.com>
10073 * config/rs6000/rs6000.md (extenddftf2): In the expander, only
10074 allow registers, but provide insns for the combiner to create for
10075 loads from memory. Separate VSX code from non-VSX code. For
10076 non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
10077 externaldftf2_internal to externaldftf2_fprs. Reorder constraints
10078 so that registers come before memory operations. Drop support from
10079 converting DFmode to TFmode, if the DFmode value is in a GPR
10081 (extenddftf2_fprs): Likewise.
10082 (extenddftf2_internal): Likewise.
10083 (extenddftf2_vsx): Likewise.
10084 (extendsftf2): In the expander, only allow registers, but provide
10085 insns for the combiner to create for stores and loads.
10087 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10089 * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
10090 from the decl parameter.
10092 2015-10-06 Nathan Sidwell <nathan@codesourcery.com>
10095 * gimple-fold.c (gimple_fold_builtin): Add break after
10096 BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
10098 2015-10-06 H.J. Lu <hongjiu.lu@intel.com>
10100 * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
10101 to scop->isl_context.
10103 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
10105 * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
10106 (output_probe_stack_range): Rotate the loop and simplify.
10107 (thumb1_expand_prologue): Tweak sorry message.
10108 * config/arm/arm.md (probe_stack): Use bare string.
10110 2015-10-06 Nick Clifton <nickc@redhat.com>
10112 * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
10114 2015-10-06 Nick Clifton <nickc@redhat.com>
10116 * config/msp430/msp430.c (ATTR_NOINIT): New constant.
10117 (ATTR_PERSIST): New constant.
10118 (msp430_data_attr): New function - verifies an attribute that only
10119 applies to variables.
10120 (msp430_attributes): Add noinit and persistent attributes.
10121 (noinit_section): New variable.
10122 (presis_section): New variable.
10123 (TARGET_ASM_INIT_SECTIONS): Define.
10124 (msp430_init_sections): New function - initialises the noinit and
10125 persist section variables.
10126 (msp430_select_section): Add support for noinit and persist
10128 (msp430_section_type_flags): Likewise.
10129 * doc/extend.texi: Document the reent, critical, wakeup, noinit
10130 and persistent attributes.
10132 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
10133 Sebastian Pop <s.pop@samsung.com>
10135 * graphite-dependences.c (scop_get_transformed_schedule): Remove.
10136 (no_violations): Remove.
10137 (subtract_commutative_associative_deps): Remove.
10138 (compute_deps): Do not call subtract_commutative_associative_deps.
10139 (transform_is_safe): Remove.
10140 (graphite_legal_transform): Remove.
10141 * graphite-poly.h (graphite_legal_transform): Remove.
10143 2015-10-05 Aditya Kumar <hiraditya@msn.com>
10145 * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
10146 which are in this region are passed so gcc_assert and remove redundant
10148 * sese.c (sese_build_liveouts): Pass only those bbs which are not
10150 (sese_bad_liveouts_use): Only BBs which are not in region are passed so
10151 gcc_assert on that and remove unnecessary computation.
10152 (sese_build_liveouts_use): Same.
10154 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
10156 * graphite-dependences.c (scop_get_reads): Renamed scop->context
10157 to scop->param_context.
10158 (scop_get_must_writes): Same.
10159 (scop_get_may_writes): Same.
10160 (scop_get_original_schedule): Same.
10161 (scop_get_transformed_schedule): Same.
10162 (subtract_commutative_associative_deps): Same.
10163 * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
10164 (generate_isl_context): Same.
10165 (generate_isl_schedule): Same.
10166 (scop_to_isl_ast): Same.
10167 (graphite_regenerate_ast_isl): Same.
10168 * graphite-optimize-isl.c (scop_get_domains): Same.
10169 (optimize_isl): Renamed scop->context to scop->param_context.
10170 * graphite-poly.c (new_poly_bb): Change the type of argument to
10172 (new_scop): Renamed scop->context to scop->param_context.
10174 (print_scop_context): Same.
10175 * graphite-poly.h (new_poly_dr): Change the type of argument from
10176 void* to data_reference_p.
10177 (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
10178 (new_poly_bb): Change the type of argument from void* to
10180 (pbb_set_black_box): Same.
10181 (struct scop): Rename context to param_context, ctx to isl_context.
10182 * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
10183 Move declarations closer to assignment.
10184 (find_params_in_bb): Same.
10185 (find_scop_parameters): Same.
10186 * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
10187 Global to be used for statement IDs.
10188 (isl_id_for_pbb): Use ssa_name_version_typesize.
10189 (simple_copy_phi_p): Move declarations closer to assignment.
10190 (build_pbb_scattering_polyhedrons): Same.
10191 (build_scop_scattering): Same.
10192 (isl_id_for_ssa_name): Same.
10193 (extract_affine_name): Same.
10194 (extract_affine_int): Same.
10195 (extract_affine): Same.
10196 (set_scop_parameter_dim): Use renamed member.
10197 (build_loop_iteration_domains): Same.
10198 (add_param_constraints): Same.
10199 (build_scop_iteration_domain): Same.
10200 (pdr_add_data_dimensions): Same.
10201 (build_poly_dr): Same.
10202 (build_scop_drs): Move declarations closer to assignment.
10203 (analyze_drs_in_stmts): Same.
10204 (insert_out_of_ssa_copy): Same.
10205 (insert_out_of_ssa_copy_on_edge): Same.
10206 (propagate_expr_outside_region): Same.
10207 (rewrite_phi_out_of_ssa): Same.
10208 (rewrite_degenerate_phi): Same.
10209 (rewrite_reductions_out_of_ssa): Same.
10210 (rewrite_cross_bb_scalar_dependence): Same.
10211 (handle_scalar_deps_crossing_scop_limits): Same.
10212 (rewrite_cross_bb_scalar_deps): Same.
10213 * graphite.c (graphite_transform_loops): Use renamed member.
10215 2015-10-06 Uros Bizjak <ubizjak@gmail.com>
10218 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
10219 create_tmp_var_raw instead of create_tmp_var.
10221 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10224 * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
10225 Use create_tmp_var_raw instead of create_tmp_var.
10227 2015-10-06 Alexander Fomin <alexander.fomin@intel.com>
10230 * config/i386/sse.md (define_split vec_select/V8FI): Restrict
10231 split for upper-bank registers when target does not support
10233 (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
10234 split when target does not support AVX512VL.
10236 2015-10-06 David Edelsohn <dje.gcc@gmail.com>
10239 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
10240 Adjust to use create_tmp_var_raw instead of create_tmp_var.
10242 2015-10-06 Nick Clifton <nickc@redhat.com>
10244 * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
10247 2015-10-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
10249 * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
10250 (case ${target}): Add znver1.
10251 * config/i386/cpuid.h(bit_CLZERO): Define.
10252 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
10253 -march=native recognize znver1 processors.
10254 * config/i386/i386-c.c (ix86_target_macros_internal): Add
10255 znver1, clzero def_and_undef.
10256 * config/i386/i386.c (struct processor_costs znver1_cost): New.
10257 (m_znver1): New definition.
10258 (m_AMD_MULTIPLE): Includes m_znver1.
10259 (processor_target_table): Add znver1 entry.
10260 (ix86_target_string) : Add clzero entry.
10261 (static const char *const cpu_names): Add znver1 entry.
10262 (ix86_option_override_internal): Add znver1 instruction sets.
10263 (PTA_CLZERO) : New definition.
10264 (ix86_option_override_internal): Handle new clzerooption.
10265 (ix86_issue_rate): Add znver1.
10266 (ix86_adjust_cost): Add znver1.
10267 (ia32_multipass_dfa_lookahead): Add znver1.
10268 (has_dispatch): Add znver1.
10269 * config/i386/i386.h (TARGET_znver1): New definition.
10270 (TARGET_CLZERO): Define.
10271 (TARGET_CLZERO_P): Define.
10272 (struct ix86_size_cost): Add TARGET_ZNVER1.
10273 (enum processor_type): Add PROCESSOR_znver1.
10274 * config/i386/i386.md (define_attr "cpu"): Add znver1.
10275 (set_attr znver1_decode): New definitions for znver1.
10276 * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
10278 * config/i386/mmx.md (set_attr znver1_decode): New definitions
10280 * config/i386/sse.md (set_attr znver1_decode): Likewise.
10281 * config/i386/x86-tune.def: Add znver1 tunings.
10282 * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
10283 * doc/invoke.texi: Add details about znver1
10285 2015-10-06 Richard Biener <rguenther@suse.de>
10287 PR tree-optimization/67859
10288 * tree-ssa-pre.c (create_expression_by_pieces): Properly
10289 discard not inserted stmts.
10291 2015-10-06 Jonathan Wakely <jwakely@redhat.com>
10293 * doc/extend.texi (Template Instantiation): Reorder options and
10294 de-emphasize -frepo.
10295 * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
10296 example instead of -frepo.
10298 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
10301 * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
10302 use create_tmp_var_raw rather than create_tmp_var.
10304 2015-10-06 Richard Biener <rguenther@suse.de>
10306 * tree-vectorizer.h (vec_info): New base class for...
10307 (_loop_vec_info): ... this and ...
10308 (_bb_vec_info): ... this.
10309 (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
10310 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
10311 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
10312 vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
10313 vect_destroy_datarefs): Adjust interface to take a vec_info *
10314 rather than both a loop_vec_info and a bb_vec_info argument.
10315 * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
10316 vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
10317 vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
10318 vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
10320 * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
10321 (destroy_loop_vec_info, vect_analyze_loop_2,
10322 vect_is_simple_reduction_1, get_initial_def_for_induction,
10323 vect_create_epilog_for_reduction, vectorizable_reduction,
10324 vectorizable_live_operation, vect_transform_loop): Adjust.
10325 * tree-vect-patterns.c (type_conversion_p,
10326 vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
10327 vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
10328 vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
10329 check_bool_pattern, vect_recog_bool_pattern,
10330 vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
10331 * tree-vect-slp.c (vect_get_and_check_slp_defs,
10332 vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
10333 vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
10334 vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
10335 (new_bb_vec_info): Initialize base classs.
10336 * tree-vect-stmts.c (record_stmt_cost, process_use,
10337 vect_get_vec_def_for_operand, vect_finish_stmt_generation,
10338 vectorizable_mask_load_store, vectorizable_call,
10339 vectorizable_simd_clone_call, vectorizable_conversion,
10340 vectorizable_assignment, vectorizable_shift,
10341 vectorizable_operation, vectorizable_store,
10342 vectorizable_load, vect_is_simple_cond, vectorizable_condition,
10343 new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
10344 * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
10346 2015-10-05 Kaz Kojima <kkojima@gcc.gnu.org>
10349 * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
10350 create_tmp_var_raw rather than create_tmp_var.
10352 2015-10-05 Marek Polacek <polacek@redhat.com>
10354 * tree-ssa-loop-im.c
10355 (move_computations_dom_walker::before_dom_children): Don't set
10356 SSA_NAME_ANTI_RANGE_P.
10357 * tree-ssa-phiopt.c (value_replacement): Likewise.
10359 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
10360 Sebastian Pop <s.pop@samsung.com>
10362 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
10364 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
10365 Sebastian Pop <s.pop@samsung.com>
10367 * graphite-poly.c (new_gimple_poly_bb): ... here.
10368 (free_data_refs_aux): ... here.
10369 (free_gimple_poly_bb): ... here.
10370 (remove_gbbs_in_scop): ... here.
10371 (new_scop): Call new_sese.
10372 (free_scop): Call remove_gbbs_in_scop and free_sese.
10373 * graphite-poly.h (base_alias_pair): ... here.
10374 (new_gimple_poly_bb): Declare.
10375 (free_gimple_poly_bb): Declare.
10376 * graphite-scop-detection.c (parameter_index_in_region_1):
10377 (parameter_index_in_region): ... here.
10378 (scan_tree_for_params): ... here.
10379 (find_params_in_bb): ... here.
10380 (find_scop_parameters): ... here.
10381 (build_scops): Call find_scop_parameters.
10382 * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
10383 (free_scops): Move...
10384 (single_pred_cond_non_loop_exit): Move...
10385 (sese_dom_walker::before_dom_children): Move...
10386 (sese_dom_walker::after_dom_children): Move...
10387 (build_poly_scop): Move...
10388 * graphite-sese-to-poly.h (base_alias_pair): Move...
10389 * graphite.c (free_scops): ... here.
10391 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
10392 Sebastian Pop <s.pop@samsung.com>
10394 * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
10395 (trivially_empty_bb_p): Move...
10396 (same_close_phi_node): Move...
10397 (new_gimple_poly_bb): Move...
10398 (compare_bb_depths): Move...
10399 (graphite_sort_dominated_info): Move...
10400 (remove_duplicate_close_phi): Move...
10401 (make_close_phi_nodes_unique): Move...
10402 (canonicalize_loop_closed_ssa): Move...
10403 (canonicalize_loop_closed_ssa_form): Move...
10404 (loop_ivs_can_be_represented): Move...
10405 (single_pred_cond_non_loop_exit): Move...
10406 (graphite_can_represent_init): Move...
10407 (graphite_can_represent_scev): Move...
10408 (stmt_has_simple_data_refs_p): Move...
10409 (stmt_has_side_effects): Move...
10410 (graphite_can_represent_stmt): Move...
10411 (scop_detection): ... here.
10412 (sese_dom_walker): ... and here.
10413 (build_scops): Call all moved functions.
10414 * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
10415 (all_non_dominated_preds_marked_p): Move...
10416 (build_scop_bbs_1): Move...
10417 (build_scop_bbs): Move...
10418 (set_scop_parameter_dim): Move...
10419 (nb_pbbs_in_loops): Move...
10420 (build_poly_scop): Do not call all the moved functions.
10422 2015-10-05 Martin Jambor <mjambor@suse.cz>
10423 Jan Hubicka <hubicka@ucw.cz>
10425 * ipa-cp.c (ipcp_alignment_lattice): New type.
10426 (ipcp_param_lattices): Use the above to represent alignment.
10427 (ipcp_alignment_lattice::print): New function.
10428 (print_all_lattices): Use it to print alignment information.
10429 (ipcp_alignment_lattice::top_p): New function.
10430 (ipcp_alignment_lattice::bottom_p): Likewise.
10431 (ipcp_alignment_lattice::set_to_bottom): Likewise.
10432 (ipcp_alignment_lattice::meet_with_1): Likewise.
10433 (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
10434 (set_all_contains_variable): Use set_to_bottom of alignment lattice.
10435 (initialize_node_lattices): Likewise.
10436 (propagate_alignment_accross_jump_function): Work with the new class
10437 for alignment lattices.
10438 (propagate_constants_accross_call): Pass only the alignment lattice to
10439 propagate_alignment_accross_jump_function.
10440 (ipcp_store_alignment_results): Work with the new class for alignment
10443 2015-10-05 Marek Polacek <polacek@redhat.com>
10445 PR tree-optimization/67821
10446 * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
10448 2015-10-05 Thomas Schwinge <thomas@codesourcery.com>
10451 * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
10453 (mkoffload_cleanup): ... this. Adjust all users.
10454 (maybe_unlink): Look at save_temps and verbose flags instead of
10456 (main): Parse "-save-temps" flag.
10457 (generate_target_descr_file, generate_target_offloadend_file)
10458 (generate_host_descr_file, prepare_target_image): Pass it on.
10459 * config/nvptx/mkoffload.c (tool_cleanup): Implement.
10460 (mkoffload_cleanup): New function.
10461 (maybe_unlink): Look at save_temps and verbose flags instead of
10463 (main): Instead of calling utils_cleanup, register atexit handler
10464 for mkoffload_cleanup.
10465 (main): Parse "-save-temps" flag.
10466 (compile_native, main): Pass it on.
10467 * lto-wrapper.c (compile_offload_image): Likewise.
10469 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10471 * gimple.h (gimple_op_ptr): Require a non const gimple *.
10472 (gimple_assign_lhs_ptr): Likewise.
10473 (gimple_assign_rhs1_ptr): Likewise.
10474 (gimple_assign_rhs2_ptr): Likewise.
10475 (gimple_assign_rhs3_ptr): Likewise.
10476 (gimple_call_lhs_ptr): Likewise.
10477 (gimple_call_fn_ptr): Likewise.
10478 (gimple_call_chain_ptr): Likewise.
10479 (gimple_call_arg_ptr): Likewise.
10480 (gimple_cond_lhs_ptr): Likewise.
10481 (gimple_cond_rhs_ptr): Likewise.
10482 (gimple_switch_index_ptr): Likewise.
10483 (gimple_return_retval_ptr): Likewise.
10485 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10487 * gimple.h (gimple_asm_input_op_ptr): Remove.
10488 (gimple_asm_output_op_ptr): Likewise.
10490 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10492 * gimple.h (gimple_location_ptr): Remove.
10493 * tree-vrp.c (check_all_array_refs): Adjust.
10495 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10497 * tree-ssa-operands.c (build_uses): store tree * instead of
10499 (finalize_ssa_uses): Adjust.
10500 (append_use): Likewise.
10501 (verify_ssa_operands): Likewise.
10503 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
10505 * real.h (build_real_truncate): Declare.
10506 * tree.c (build_real_truncate): New function.
10507 (strip_float_extensions): Use it.
10508 * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
10509 (fold_builtin_hypot, fold_builtin_pow): Likewise.
10510 * match.pd: Likewise.
10512 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
10513 Jiong Wang <jiong.wang@arm.com>
10515 * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
10517 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
10519 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
10520 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
10521 (aarch64_print_operand, aarch64_float_const_representable_p)
10522 (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
10523 instead of REAL_VALUE_FROM_CONST_DOUBLE.
10524 * config/arc/arc.c (arc_print_operand): Likewise.
10525 * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
10526 (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
10527 (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
10529 * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
10530 (consttable_16): Likewise.
10531 * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
10532 * config/avr/avr.c (avr_print_operand): Likewise.
10533 * config/bfin/bfin.md: Likewise (in a define_split).
10534 * config/c6x/c6x.md: Likewise (in a define_split).
10535 * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
10536 (cr16_print_operand): Likewise.
10537 * config/cris/cris.c (cris_print_operand): Likewise.
10538 * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
10539 * config/fr30/fr30.c (fr30_print_operand): Likewise.
10540 (fr30_const_double_is_zero): Likewise.
10541 * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
10542 * config/frv/frv.md: Likewise (in a define_split).
10543 * config/frv/predicates.md (int_2word_operand): Likewise.
10544 * config/h8300/h8300.c (h8300_print_operand): Likewise.
10545 * config/i386/i386.c (standard_80387_constant_p): Likewise.
10546 (ix86_print_operand, ix86_split_to_parts): Likewise.
10547 * config/i386/i386.md: Likewise (in a define_split).
10548 * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
10549 * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
10550 * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
10551 * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
10552 (print_operand): Likewise.
10553 * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
10554 * config/mep/mep.md: Likewise (in define_split).
10555 * config/microblaze/microblaze.c (microblaze_const_double_ok)
10556 (print_operand): Likewise.
10557 * config/mips/mips.md (consttable_float): Likewise.
10558 * config/mmix/mmix.c (mmix_intval): Likewise.
10559 * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
10560 * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
10561 * config/pa/pa.c (pa_singlemove_string): Likewise.
10562 * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
10563 (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
10564 * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
10565 (output_toc): Likewise.
10566 * config/rs6000/rs6000.md: Likewise (in define_splits).
10567 * config/rx/rx.c (rx_print_operand): Likewise.
10568 * config/s390/s390.c (s390_output_pool_entry): Likewise.
10569 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
10570 * config/sh/sh.md (consttable_sf, consttable_df): Likewise
10571 (and also in define_splits).
10572 * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
10573 (fp_high_losum_p): Likewise.
10574 * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
10575 (*movsf_high): Likewise.
10576 * config/spu/spu.c (const_double_to_hwint): Likewise.
10577 * config/v850/v850.c (const_double_split): Likewise.
10578 * config/vax/vax.c (vax_float_literal): Likewise.
10579 * config/visium/visium.c (visium_expand_copysign): Likewise.
10580 * config/visium/visium.md: Likewise (in define_split).
10581 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
10582 * config/xtensa/xtensa.c (print_operand): Likewise.
10583 (xtensa_output_literal): Likewise.
10584 * cprop.c (implicit_set_cond_p): Likewise.
10585 * dwarf2out.c (insert_float): Likewise.
10586 * expmed.c (expand_mult, make_tree): Likewise.
10587 * expr.c (compress_float_constant): Likewise.
10588 * rtlanal.c (split_double): Likewise.
10589 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
10590 (simplify_const_unary_operation, simplify_binary_operation_1)
10591 (simplify_const_binary_operation): Likewise.
10592 (simplify_const_relational_operation): Likewise.
10593 * varasm.c (output_constant_pool_2): Likewise.
10595 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
10597 * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
10598 instead of CONST_DOUBLE_FROM_REAL_VALUE.
10599 (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
10600 * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
10601 instead of CONST_DOUBLE_FROM_REAL_VALUE.
10602 * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
10603 * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
10604 (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
10605 (ix86_emit_swsqrtsf): Likewise.
10606 * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
10607 * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
10608 (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
10609 * config/pa/pa.c (pa_expand_builtin): Likewise.
10610 * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
10611 (rs6000_scale_v2df): Likewise.
10612 * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
10613 * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
10614 (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
10615 * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
10616 (vec_ctul): Likewise.
10617 * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
10618 * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
10619 * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
10620 * cse.c (fold_rtx): Likewise.
10621 * emit-rtl.c (immed_double_const): Likewise (in comments).
10622 (init_emit_once): Likewise.
10623 * expr.c (compress_float_constant, expand_expr_real_1)
10624 (const_vector_from_tree): Likewise.
10625 * optabs.c (expand_float, expand_fix): Likewise.
10626 * reg-stack.c (reg_to_stack): Likewise.
10627 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
10628 (simplify_const_unary_operation, simplify_binary_operation_1)
10629 (simplify_const_binary_operation, simplify_relational_operation)
10630 (simplify_immed_subreg): Likewise.
10632 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
10634 * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
10635 * doc/tm.texi: Regenerate.
10636 * real.h (REAL_ARITHMETIC): Delete.
10637 * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
10638 (ix86_expand_round_sse4): Use real_arithmetic instead of
10640 * config/i386/sse.md (round<mode>2): Likewise.
10641 * rtl.h (rtx_to_tree_code): Likewise (in comment).
10642 * explow.c (rtx_to_tree_code): Likewise (in comment).
10643 * match.pd: Likewise.
10644 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
10645 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
10646 (expand_pow_as_sqrts): Likewise.
10647 * tree-pretty-print.c (dump_generic_node): Remove code that
10648 was conditional on REAL_ARITHMETIC being undefined.
10650 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
10652 * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
10653 * doc/tm.texi: Regenerate.
10654 * real.h (real_less): Declare.
10655 (REAL_VALUES_LESS): Delete.
10656 * real.c (real_less): New function.
10657 (real_compare): Use it.
10658 * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
10659 of REAL_VALUES_LESS.
10660 * config/microblaze/microblaze.c (microblaze_const_double_ok):
10662 * fold-const.c (fold_convert_const_int_from_real): Likewise.
10663 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
10664 (simplify_const_relational_operation): Likewise.
10665 * tree-call-cdce.c (check_pow): Likewise.
10666 (gen_conditions_for_pow_cst_base): Likewise.
10668 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
10670 * real.h (REAL_VALUES_IDENTICAL): Delete.
10671 * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
10672 instead of REAL_VALUES_IDENTICAL.
10673 * fold-const.c (operand_equal_p): Likewise.
10674 * ipa-icf.c (sem_variable::equals): Likewise.
10675 * tree-complex.c (some_nonzerop): Likewise.
10676 (expand_complex_multiplication): Likewise.
10677 * tree.c (simple_cst_equal): Likewise.
10678 * varasm.c (compare_constant): Likewise.
10680 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
10682 * real.h (real_equal): Declare.
10683 (REAL_VALUES_EQUAL): Delete.
10684 * real.c (real_equal): New function.
10685 (real_compare): Use it.
10686 * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
10687 * doc/tm.texi: Regenerate.
10688 * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
10689 real_equal instead of REAL_VALUES_EQUAL.
10690 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
10691 * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
10692 (fp_const_from_val): Likewise.
10693 * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
10694 * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
10695 (floating_exact_log2): Likewise.
10696 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
10697 * config/vax/vax.c (vax_float_literal): Likewise.
10698 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
10699 * cprop.c (implicit_set_cond_p): Likewise.
10700 * expmed.c (expand_mult): Likewise.
10701 * fold-const.c (const_binop): Likewise.
10702 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
10703 (simplify_const_binary_operation): Likewise.
10704 (simplify_const_relational_operation): Likewise.
10705 * tree-call-cdce.c (check_pow): Likewise.
10706 (gen_conditions_for_pow_cst_base): Likewise.
10707 * tree-inline.c (estimate_num_insns): Likewise.
10708 * tree-ssa-dom.c (record_equality): Likewise.
10709 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
10710 (gimple_expand_builtin_pow): Likewise.
10711 (pass_optimize_widening_mul::execute): Likewise.
10712 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
10713 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
10714 * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
10716 2015-10-05 Richard Biener <rguenther@suse.de>
10719 * ipa-inline-analysis.c (estimate_function_body_sizes): Only
10720 consider loop header PHI defs as IVs.
10722 2015-10-05 Richard Biener <rguenther@suse.de>
10724 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
10726 (create_expression_by_pieces): ... here and build GIMPLE
10727 calls directly. Use gimple_build API and avoid force_gimple_operand.
10728 (insert_into_preds_of_block): Simplify.
10729 (do_regular_insertion): Add comment.
10731 2015-10-04 Jason Merrill <jason@redhat.com>
10733 * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
10735 2015-10-04 Uros Bizjak <ubizjak@gmail.com>
10737 * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
10738 check for general register.
10739 (ix86_emit_save_regs): Ditto.
10740 (ix86_emit_save_regs_using_mov): Ditto.
10741 (ix86_emit_restore_regs_using_pop): Ditto.
10742 (ix86_emit_restore_regs_using_mov): Ditto.
10744 2015-10-03 Marek Polacek <polacek@redhat.com>
10746 * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
10747 (insn-dfatab.o): Likewise.
10749 2015-10-03 Max Filippov <jcmvbkbc@gmail.com>
10751 * config.gcc (xtensa*-*-uclinux*): New configuration.
10752 * config/xtensa/uclinux.h: New file.
10753 * config/xtensa/uclinux.opt: New file.
10755 2015-10-03 Jonathan Wakely <jwakely@redhat.com>
10757 * doc/cpp.texi (Standard Predefined Macros): Document value of
10758 __cplusplus for C++14.
10760 2015-10-02 Bernd Schmidt <bernds@codesourcery.com>
10762 * gcc.c (process_command): Use spec_machine rather than
10763 spec_host_machine to build tooldir_prefix2.
10765 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
10766 Bernd Schmidt <bernds@codesourcery.com>
10768 * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
10769 (Token, Stmt): Remove structs.
10770 (decls, vars, fns): Remove variables.
10771 (alloc_comment, append_stmt, is_keyword): Remove macros.
10772 (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
10773 (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
10774 (parse_init, parse_file): Remove functions.
10775 (read_file): Accept a pointer to a length and store into it.
10776 (process): Don't try to parse the input file, just write it out as
10777 a string, but looking for maps. Also write out the length.
10778 (main): Don't use "-S" to compile PTX code.
10780 2015-10-02 Jeff Law <law@redhat.com>
10782 * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
10785 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
10788 * config/nvptx/mkoffload.c (main): Scan the argument vector for
10789 -fopenmp, and skip generating an offloading image if specified.
10791 2015-10-02 Uros Bizjak <ubizjak@gmail.com>
10793 * system.h (ROUND_UP): New macro definition.
10794 (ROUND_DOWN): Ditto.
10795 * ggc-page.c (ROUND_UP): Remove local macro definition.
10796 (PAGE_ALIGN): Implement using ROUND_UP macro.
10798 * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
10799 * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
10801 (ix86_compute_frame_layout): Ditto.
10802 (ix86_expand_prologue): Ditto.
10803 (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
10804 to round down values.
10805 (expand_set_or_movmem_via_rep): Ditto.
10807 2015-10-02 Marek Polacek <polacek@redhat.com>
10809 * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
10811 2015-10-02 Aditya Kumar <aditya.k7@samsung.com>
10813 * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
10814 (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
10815 * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
10816 (free_gimple_bb): Renamed free_gimple_poly_bb.
10817 (try_generate_gimple_bb): Hoist loop invariant code.
10818 (analyze_drs_in_stmts): Same.
10819 (build_scop_drs): Call renamed functions.
10820 (new_pbb_from_pbb): Same.
10821 (scop_ivs_can_be_represented): Delete as functionality now moved to
10822 graphite-scop-detection.c
10823 (build_poly_scop): Remove call to scop_ivs_can_be_represented.
10825 2015-10-02 Aditya Kumar <hiraditya@msn.com>
10827 * graphite-scop-detection.c (stmt_has_side_effects): New function
10828 outlined from stmt_simple_for_scop_p.
10829 (graphite_can_represent_stmt): Same.
10830 (stmt_simple_for_scop_p): Moved code out of this function for better
10833 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
10835 * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
10837 (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
10839 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10841 * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
10843 2015-10-02 Vladimir Makarov <vmakarov@redhat.com>
10845 PR rtl-optimization/67756
10846 * lra-constraints.c (match_reload): Add a new parameter. Use it
10847 for creating a pseudo with the same value.
10848 (curr_insn_transform): Pass a new argument to match_reload.
10850 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
10852 * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
10853 (expand_vec_perm_even_odd_1): Handle V64QImode.
10854 (ix86_expand_vec_perm_const_1): Try expansion with
10855 expand_vec_perm_even_odd_trunc as well.
10856 * config/i386/sse.md (VI124_AVX512F): Rename to ...
10857 (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
10859 (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
10860 (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
10861 to V32HI and V16SI.
10862 (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
10863 (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
10864 (define_expand "vec_unpacks_lo_<mode>"): Ditto.
10865 (define_expand "vec_unpacks_hi_<mode>"): Ditto.
10866 (define_expand "vec_unpacku_lo_<mode>"): Ditto.
10867 (define_expand "vec_unpacku_hi_<mode>"): Ditto.
10869 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
10871 * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
10872 -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
10874 2015-10-02 Jason Merrill <jason@redhat.com>
10877 * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
10878 (diagnose_tm_1_op): Also diagnose volatile accesses in
10879 transaction_safe function.
10881 2015-10-02 Jonathan Wakely <jwakely@redhat.com>
10883 * system.h (malloc.h): Don't include obsolete header.
10885 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10887 * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
10888 (TLS_SECTION_ASM_FLAG): Delete.
10890 2015-10-02 Marek Polacek <polacek@redhat.com>
10893 * doc/invoke.texi: Document -Wduplicated-cond.
10894 * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
10895 (insn-dfatab.o): Likewise.
10896 * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
10899 2015-10-02 Oleg Endo <olegendo@gcc.gnu.org>
10901 * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
10904 2015-10-02 Renlin Li <renlin.li@arm.com>
10906 * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
10908 2015-10-02 Renlin Li <renlin.li@arm.com>
10911 * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
10913 2015-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10915 PR rtl-optimization/67786
10916 PR rtl-optimization/67787
10917 * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
10918 it modifies a reg used in the condition calculation.
10920 2015-10-02 James Greenhalgh <james.greenhalgh@arm.com>
10922 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
10923 alternatives for reads from memory and moves from general-purpose
10925 (*aarch64_combinez_be<mode>): Likewise.
10927 2015-10-02 Kai Tietz <ktietz70@googlemail.com>
10930 * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
10931 selectany within this function without need to keep attribute.
10932 (i386_pe_encode_section_info): Remove selectany-code.
10934 2015-10-02 Richard Biener <rguenther@suse.de>
10936 * tree-ssa-sccvn.c (has_VN_INFO): New function.
10937 (free_scc_vn): Use it.
10938 (visit_use): Remove dead code and refactor to use gassign
10939 and use less indentation.
10941 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10945 * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
10946 (rs6000_cannot_copy_insn_p): New function.
10947 * config/rs6000/rs6000.md (cannot_copy): New attribute.
10948 (load_toc_v4_PIC_1_normal): Set cannot_copy.
10949 (load_toc_v4_PIC_1_476): Ditto.
10951 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
10953 * graphite-scop-detection.c (struct sese_l): New conversion constructor
10954 so that this type can be pushed into a vec.
10955 (class scop_builder): use sese_l to collect scops.
10956 (get_scops): New getter function.
10957 (remove_intersecting_scops): Use sese_l instead of scops_p.
10958 (intersects): Same.
10961 (remove_subscops): Same.
10962 (build_scops): Add scops to vec<scops_p> once all the scops have been
10965 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
10967 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
10968 Renamed type from gimple_bb_p to gimple_poly_bb_p.
10969 (translate_isl_ast_node_user): Same.
10970 * graphite-poly.c (new_poly_bb): Same.
10971 * graphite-poly.h (gbb_from_bb): Same.
10973 * graphite-sese-to-poly.c (new_gimple_bb):
10974 gimple_bb_p -> gimple_poly_bb_p
10975 (build_scop_scattering): Same.
10976 (find_params_in_bb): Same.
10977 (add_conditions_to_domain): Same.
10978 (sese_dom_walker::before_dom_children): Same.
10979 (analyze_drs_in_stmts): Same.
10980 (new_pbb_from_pbb): Same.
10981 (free_data_refs_aux): New pointer to type base_alias_pair.
10982 * graphite-sese-to-poly.h: Same.
10983 * sese.c (if_region_set_false_region): Fixed Indentation.
10984 (move_sese_in_condition): Same.
10986 2015-10-01 Sebastian Pop <s.pop@samsung.com>
10987 Aditya Kumar <aditya.k7@samsung.com>
10989 PR tree-optimization/66980
10990 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
10991 when data reference analysis has failed.
10993 2015-10-01 Sebastian Pop <s.pop@samsung.com>
10994 Aditya Kumar <aditya.k7@samsung.com>
10996 PR tree-optimization/67754
10997 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
10998 scev analysis on the same loop nest as analyze_drs_in_stmts.
10999 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
11001 (try_generate_gimple_bb): Call outermost_loop_in_sese.
11002 (analyze_drs_in_stmts): Same.
11003 * sese.c (outermost_loop_in_sese): ...here.
11005 2015-10-01 Sebastian Pop <s.pop@samsung.com>
11006 Aditya Kumar <aditya.k7@samsung.com>
11008 PR tree-optimization/67754
11009 * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
11010 recursion on the inner loops.
11012 2015-10-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11014 * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
11015 function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
11016 tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
11017 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
11018 tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
11020 2015-10-01 Marek Polacek <polacek@redhat.com>
11023 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
11024 create_tmp_var_raw rather than create_tmp_var.
11026 2015-10-01 Marek Polacek <polacek@redhat.com>
11028 PR tree-optimization/67769
11029 * tree-ssa-phiopt.c (conditional_replacement): Call
11030 reset_flow_sensitive_info_in_bb.
11031 (minmax_replacement): Likewise.
11032 (abs_replacement): Likewise.
11034 2015-10-01 Nathan Sidwell <nathan@codesourcery.com>
11036 * builtins.c: Don't include gomp-constants.h.
11037 (fold_builtin_1): Don't fold acc_on_device here.
11038 * gimple-fold.c: Include gomp-constants.h.
11039 (gimple_fold_builtin_acc_on_device): New.
11040 (gimple_fold_builtin): Call it.
11042 2015-10-01 H.J. Lu <hongjiu.lu@intel.com>
11044 * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
11045 (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
11047 2015-10-01 James Greenhalgh <james.greenhalgh@arm.com>
11049 * config/arm/aarch-common-protos.h
11050 (aarch_accumulator_forwarding): New.
11051 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
11052 * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
11053 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
11054 * config/arm/cortex-a53.md: Rewrite.
11056 2015-10-01 Richard Biener <rguenther@suse.de>
11058 * gimple-match.h (mprts_hook): Declare.
11059 * gimple-match.head.c (mprts_hook): Define.
11060 (maybe_push_res_to_seq): Use new hook.
11061 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
11062 * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
11063 (vn_ssa_aux::has_constants): Remove.
11064 * tree-ssa-sccvn.c: Include gimple-match.h.
11065 (VN_INFO_GET): Assert we don't re-use SSA names.
11066 (vn_get_expr_for): Remove.
11067 (expr_has_constants): Likewise.
11068 (stmt_has_constants): Likewise.
11069 (simplify_binary_expression): Likewise.
11070 (simplify_unary_expression): Likewise.
11071 (vn_lookup_simplify_result): New hook.
11072 (visit_copy): Adjust.
11073 (visit_reference_op_call): Likewise.
11074 (visit_phi): Likewise.
11075 (visit_use): Likewise.
11076 (process_scc): Likewise.
11077 (init_scc_vn): Likewise.
11078 (visit_reference_op_load): Likewise. Use match-and-simplify and
11079 a gimple seq for inserted expressions.
11080 (try_to_simplify): Remove GENERIC stmt combining code.
11081 (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
11082 * tree-ssa-pre.c (eliminate_insert): Adjust.
11083 (eliminate_dom_walker::before_dom_children): Likewise.
11085 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
11087 * doc/invoke.texi (Optimization Options): Add
11088 -freorder-blocks-algorithm=.
11089 (Optimize Options) <-O>: Add -freorder-blocks.
11090 <-O2>: Remove -freorder-blocks. Add -freorder-blocks-algorithm=stc.
11091 <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
11092 <-freorder-blocks>: Also enabled at levels -O and -Os.
11093 <-freorder-blocks-algorithm=>: Document new option.
11095 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
11097 * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
11098 with flag_reorder_blocks_algorithm.
11099 * common.opt (freorder-blocks-algorithm=): New flag.
11100 (reorder_blocks_algorithm): New enum.
11101 * flag-types.h (reorder_blocks_algorithm): New enum.
11102 * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
11103 and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
11105 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
11107 * bb-reorder.c: Add intro comment.
11108 (reorder_basic_blocks_software_trace_cache): Print a header to
11110 (edge_order): New function.
11111 (reorder_basic_blocks_simple): New function.
11112 (reorder_basic_blocks): Choose between the STC and the simple
11113 algorithms (always choose the former).
11115 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
11117 * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
11118 function, factored out from ...
11119 (reorder_basic_blocks): ... here.
11121 2015-10-01 Tom de Vries <tom@codesourcery.com>
11123 * tree-cfg.c (dump_function_to_file): Dump function attributes using
11124 __attribute__(()) string. Move dumping of function attributes to before
11127 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
11130 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
11131 * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
11132 based on gold linker version.
11133 * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
11134 HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
11135 * configure, config.in: Regenerate.
11137 2015-10-01 Alan Modra <amodra@gmail.com>
11139 * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
11140 r2_setup_needed when TARGET_SINGLE_PIC_BASE.
11141 (rs6000_output_mi_thunk): Likewise.
11143 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
11145 * config/nvptx/mkoffload.c (process): Change offload data format.
11147 2015-09-30 Jeff Law <law@redhat.com>
11149 * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
11150 with constant conditions.
11151 * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
11152 (remove_ctrl_stmt_and_useless_edges): No longer static.
11153 * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
11154 (remove_ctrl_stmt_and_useless_edges): Likewise.
11156 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
11157 Cesar Philippidis <cesar@codesourcery.com>
11159 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
11160 (TARGET_GOACC_VALIDATE_DIMS): Override.
11161 * target.def (TARGET_GOACC): New target hook prefix.
11162 (validate_dims): New hook.
11163 * targhooks.h (default_goacc_validate_dims): New.
11164 * omp-low.c (oacc_validate_dims): New.
11165 (execute_oacc_device_lower): New.
11166 (default_goacc_validate_dims): New.
11167 (pass_data_oacc_device_lower): New.
11168 (pass_oacc_device_lower): New pass.
11169 (make_pass_oacc_device_lower): New.
11170 * tree-pass.h (make_pass_oacc_device_lower): Declare.
11171 * passes.def (pass_oacc_device_lower): Add it.
11172 * doc/tm.texi: Rebuilt.
11173 * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
11174 * doc/invoke.texi (oaccdevlow): Document tree dump flag.
11176 2015-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
11178 PR rtl-optimization/67037
11179 * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
11181 2015-09-30 Bernd Schmidt <bernds@redhat.com>
11183 * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
11184 * passes.c: Include tree-ssanames.h.
11185 (execute_function_todo): Flush the pending free SSA_NAMEs after
11186 eliminating unreachable basic blocks.
11187 * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
11188 (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
11189 (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
11190 (flush_ssanames_freelist): New function.
11191 (release_ssaname_fn): Put released names on the queue.
11192 (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
11193 * tree-ssanames.h (flush_ssanames_freelist): Declare.
11195 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
11197 * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
11198 (generate_target_descr_file, generate_target_offloadend_file)
11199 (generate_host_descr_file, prepare_target_image): Pass it on.
11200 * config/nvptx/mkoffload.c (main): Parse "-v" flag.
11201 (compile_native, main): Pass it on.
11202 * lto-wrapper.c (compile_offload_image): Likewise.
11204 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
11205 Ilya Verbin <ilya.verbin@intel.com>
11206 Andrey Turetskiy <andrey.turetskiy@intel.com>
11208 * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
11209 (prepare_target_image, main): Refactor argv building to use
11212 2015-09-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11214 * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
11215 * config/spu/spu.c (spu_expand_atomic_op): New function.
11216 * config/spu/spu.md (AINT): New mode iterator.
11217 (ATOMIC): New code iterator.
11218 (atomic_name, atomic_pred): New code predicates.
11219 ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
11220 ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
11221 (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
11222 "atomic_<atomic_name>_fetch<mode>"): Likewise.
11224 2015-09-30 Ilya Enkovich <enkovich.gnu@gmail.com>
11226 * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
11228 (scalar_chain::convert_reg): Likewise.
11230 2015-09-30 Richard Biener <rguenther@suse.de>
11232 * builtins.c: Add comment that no new simplifications should
11235 2015-09-30 Marek Polacek <polacek@redhat.com>
11237 PR tree-optimization/67690
11238 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
11239 reset_flow_sensitive_info_in_bb.
11240 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
11241 * tree-ssanames.c: Include "gimple-iterator.h".
11242 (reset_flow_sensitive_info_in_bb): New function.
11243 * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
11245 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
11247 * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
11248 variable, replacing it with...
11249 (offload_abi): ... this new variable. Adjust all users.
11250 * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
11252 2015-09-30 Matthias Klose <doko@ubuntu.com>
11254 * configure.ac: Remove extraneous ;;.
11255 * configure: Regenerate.
11257 2015-09-29 James Bowman <james.bowman@ftdichip.com>
11259 * config/ft32/predicates.md (ft32_imm_operand): New predicate.
11260 * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
11261 predicate, disallow register for operand 2.
11263 2015-09-29 Aditya Kumar <aditya.k7@samsung.com>
11265 * graphite-dependences.c (scop_get_dependences): Moved in down
11266 in order to be visible to its caller.
11267 * graphite-poly.h: Removed compute_deps, and extend_schedule.
11269 2015-09-29 Sebastian Pop <s.pop@samsung.com>
11270 Aditya Kumar <aditya.k7@samsung.com>
11272 PR tree-optimization/67754
11273 * graphite-optimize-isl.c (optimize_isl): Call
11274 isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
11276 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
11278 * builtins.c (expand_builtin_acc_on_device): Delete.
11279 (expand_builtin): Don't call it.
11280 (fold_builtin_1): Fold acc_on_device.
11282 2015-09-29 H.J. Lu <hongjiu.lu@intel.com>
11284 * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
11285 (ix86_nsaved_sseregs): Likewise.
11287 2015-09-29 Jeff Law <law@redhat.com>
11289 * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
11290 computation of unused value.
11292 * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
11293 * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
11294 inline macro expansion.
11296 * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
11298 * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
11299 (gen_shl_sext): Likewise.
11300 * config/sh/sh.md (divsi3): Likewise.
11301 (imm->ext_dest_operand splitter): Likewise.
11303 2015-09-29 Sebastian Pop <s.pop@samsung.com>
11304 Aditya Kumar <aditya.k7@samsung.com>
11306 * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
11307 (nb_data_writes_in_bb): Remove.
11308 (split_pbb): Remove.
11309 (split_reduction_stmt): Remove.
11310 (is_reduction_operation_p): Remove.
11311 (phi_contains_arg): Remove.
11312 (follow_ssa_with_commutative_ops): Remove.
11313 (detect_commutative_reduction_arg): Remove.
11314 (detect_commutative_reduction_assign): Remove.
11315 (follow_inital_value_to_phi): Remove.
11316 (edge_initial_value_for_loop_phi): Remove.
11317 (initial_value_for_loop_phi): Remove.
11318 (used_outside_reduction): Remove.
11319 (detect_commutative_reduction): Remove.
11320 (translate_scalar_reduction_to_array_for_stmt): Remove.
11321 (remove_phi): Remove.
11322 (dr_indices_valid_in_loop): Remove.
11323 (close_phi_written_to_memory): Remove.
11324 (translate_scalar_reduction_to_array): Remove.
11325 (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
11326 (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
11327 (rewrite_commutative_reductions_out_of_ssa): Remove.
11328 (build_poly_scop): Remove call to
11329 rewrite_commutative_reductions_out_of_ssa.
11331 2015-09-29 Evandro Menezes <e.menezes@samsung.com>
11333 * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
11334 Add new insn types for vector load and store pairs.
11335 * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
11336 types "neon_ldp{,_q}".
11337 * config/arm/cortex-a57.md (neon_load_c): Add insn types
11339 (neon_store_complex): Add insn types "neon_stp{,_q}".
11340 * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
11341 "neon_{ldp,stp}_q".
11343 2015-09-29 Jeff Law <law@redhat.com>
11345 * config/rx/constraints.md (Int08): Fix undefined left shift
11347 (Sint08, Sint16, Sint24): Likewise.
11348 * config/rx/rx.c (rx_get_stack_layout): Likewise.
11350 * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
11353 * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
11354 left shift behaviour.
11355 * config/msp430/constraints.md ('L' constraint): Similarly.
11356 ('Ys' constraint): Similarly.
11358 2015-09-29 Richard Biener <rguenther@suse.de>
11360 PR tree-optimization/67170
11361 * tree-ssa-alias.h (get_continuation_for_phi): Adjust
11362 the translate function pointer parameter to get the
11363 bool whether to disambiguate only by reference.
11364 (walk_non_aliased_vuses): Likewise.
11365 * tree-ssa-alias.c (maybe_skip_until): Adjust.
11366 (get_continuation_for_phi_1): Likewise.
11367 (get_continuation_for_phi): Likewise.
11368 (walk_non_aliased_vuses): Likewise.
11369 * tree-ssa-sccvn.c (const_parms): New bitmap.
11370 (vn_reference_lookup_3): Adjust for interface change.
11371 Disambiguate parameters pointing to readonly memory.
11372 (free_scc_vn): Free const_parms.
11373 (run_scc_vn): Initialize const_parms from a fn spec attribute.
11375 2015-09-29 Richard Biener <rguenther@suse.de>
11377 PR tree-optimization/67741
11378 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
11379 builtin calls with correct signature.
11381 2015-09-29 Ilya Enkovich <enkovich.gnu@gmail.com>
11384 * config/i386/i386.c: Include dbgcnt.h.
11385 (has_non_address_hard_reg): New.
11386 (convertible_comparison_p): New.
11387 (scalar_to_vector_candidate_p): New.
11388 (remove_non_convertible_regs): New.
11389 (scalar_chain): New.
11390 (scalar_chain::scalar_chain): New.
11391 (scalar_chain::~scalar_chain): New.
11392 (scalar_chain::add_to_queue): New.
11393 (scalar_chain::mark_dual_mode_def): New.
11394 (scalar_chain::analyze_register_chain): New.
11395 (scalar_chain::add_insn): New.
11396 (scalar_chain::build): New.
11397 (scalar_chain::compute_convert_gain): New.
11398 (scalar_chain::replace_with_subreg): New.
11399 (scalar_chain::replace_with_subreg_in_insn): New.
11400 (scalar_chain::emit_conversion_insns): New.
11401 (scalar_chain::make_vector_copies): New.
11402 (scalar_chain::convert_reg): New.
11403 (scalar_chain::convert_op): New.
11404 (scalar_chain::convert_insn): New.
11405 (scalar_chain::convert): New.
11406 (convert_scalars_to_vector): New.
11407 (pass_data_stv): New.
11409 (make_pass_stv): New.
11410 (ix86_option_override): Created and register stv pass.
11411 (flag_opts): Add -mstv.
11412 (ix86_option_override_internal): Likewise.
11413 * config/i386/i386.md (SWIM1248x): New.
11414 (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
11415 (and<mode>3): Use SWIM1248x iterator instead of SWIM.
11416 (*anddi3_doubleword): New.
11417 (*zext<mode>_doubleword): New.
11418 (*zextsi_doubleword): New.
11419 (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
11420 (*<code>di3_doubleword): New.
11421 * config/i386/i386.opt (mstv): New.
11422 * dbgcnt.def (stv_conversion): New.
11424 2015-09-29 Tom de Vries <tom@codesourcery.com>
11426 * tree-cfg.c (dump_function_to_file): Dump function attributes.
11428 2015-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
11431 * config/sh/sh.c (sh_override_options_after_change): New.
11432 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
11433 (sh_option_override): Move align_loops, align_jumps and
11434 align_functions handling into sh_override_options_after_change.
11436 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
11438 * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
11439 (nvptx_record_offload_symbol): Record function execution geometry.
11440 * config/nvptx/mkoffload.c (process): Include launch geometry in
11442 * omp-low.c (oacc_launch_pack): New.
11443 (replace_oacc_fn_attrib): New.
11444 (set_oacc_fn_attrib): New.
11445 (get_oacc_fn_attrib): New.
11446 (expand_omp_target): Create keyed varargs for GOACC_parallel call
11448 * omp-low.h (get_oacc_fn_attrib): Declare.
11449 * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
11450 (DEF_FUNCTION_TYPE_VAR_11): Delete.
11451 * tree.h (OMP_CLAUSE_EXPR): New.
11452 * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
11454 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
11455 Sebastian Pop <s.pop@samsung.com>
11457 * sese.c (invariant_in_sese_p_rec): Remove unused variable.
11459 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
11460 Sebastian Pop <s.pop@samsung.com>
11462 * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
11463 * graphite-scop-detection.c (struct sese_l): New type.
11464 (get_entry_bb): API for getting entry bb of SESE.
11465 (get_exit_bb): API for getting exit bb of SESE.
11466 (class debug_printer): New type. Simple printer in debug mode.
11467 (trivially_empty_bb_p): New. Return true when BB is empty or
11468 contains only debug instructions.
11469 (graphite_can_represent_expr): Call scalar_evoution_in_region
11470 instead of analyze_scalar_evolution. Pass in scop instead of only
11472 (stmt_has_simple_data_refs_p): Pass in scop instead of only the
11474 (stmt_simple_for_scop_p): Same.
11475 (harmful_stmt_in_bb): Same.
11476 (graphite_can_represent_loop): Deleted.
11477 (struct scopdet_info): Deleted.
11478 (scopdet_basic_block_info): Deleted.
11479 (build_scops_1): Deleted.
11480 (bb_in_sd_region): Deleted.
11481 (find_single_entry_edge): Deleted.
11482 (find_single_exit_edge): Deleted.
11483 (create_single_entry_edge): Deleted.
11484 (sd_region_without_exit): Deleted.
11485 (create_single_exit_edge): Deleted.
11486 (unmark_exit_edges): Deleted.
11487 (mark_exit_edges): Deleted.
11488 (create_sese_edges): Deleted.
11489 (build_graphite_scops): Deleted.
11490 (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
11491 (build_scops): Use the new scop_builder to build scops.
11492 (dot_all_scops_1): Use the new pretty printer. Print loop father
11494 (loop_body_is_valid_scop): New. Return true if loop body is a
11496 (class scop_builder): New. Builds SCoPs for polyhedral
11498 (scop_builder): New constructor.
11499 (static sese_l invalid_sese): sese_l with invalid edges.
11500 (get_sese): Get an sese (from a loop) if possible, invalid_sese
11502 (get_nearest_dom_with_single_entry): Get nearest dominator of a
11503 basic_block with single entry. Return NULL if we get to the
11504 beginning of a function.
11505 (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
11506 a basic_block with single exit. Return NULL if we get to the
11507 beginning of a function.
11508 (print_sese): Pretty-print SESE.
11509 (merge_sese): Merge two SESEs if possible and return the new SESE.
11510 (build_scop_depth): Start building the SCoP within a loop nest.
11511 (build_scop_breadth): Start building the SCoP at a single loop
11512 depth. Merge adjacent SESEs if valid.
11513 (can_represent_loop_1): Returns true if Graphite can represent
11514 loop inside SCoP. Helper for can_represent_loop.
11515 (can_represent_loop): Returns true if Graphite can represent LOOP
11516 and all its nested loops in SCoP.
11517 (loop_is_valid_scop): Returns true if LOOP and all its nests
11518 constitute a valid SCoP.
11519 (region_has_one_loop): Returns true of a region has only one loop.
11520 (add_scop): Add SCoP to the list of valid scops. Removes an
11521 already existing scop if it intersects with or subsumed by this one.
11522 (harmful_stmt_in_region): Returns true if SCoP has any statment
11523 which cannot be represented by Graphite.
11524 (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
11525 (remove_subscops): Remove any SCoP from the list of already found
11526 SCoPs, if subsumed by S1.
11527 (intersects): Return true if region bounded by SCoPs S1 and S2
11529 (remove_intersecting_scops): Remove any SCoP which intersects with S1.
11530 * graphite.c (print_graphite_scop_statistics):
11531 (print_graphite_statistics): Print SCoP info while debugging.
11532 (graphite_initialize): Early exit in case number of loops in a
11533 function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
11534 basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
11535 (graphite_finalize):
11536 * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
11537 * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
11538 (recompute_all_dominators): Recalculate POST_DOMINATORS.
11539 * tree-cfg.c (print_loops): Print the function name while printing
11542 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
11543 Sebastian Pop <s.pop@samsung.com>
11545 PR tree-optimization/67700
11546 * graphite-sese-to-poly.c (parameter_index_in_region): Call
11547 invariant_in_sese_p_rec.
11548 (extract_affine): Same.
11549 (rewrite_cross_bb_scalar_deps): Call update_ssa.
11550 * sese.c (invariant_in_sese_p_rec): Export. Handle vdefs and vuses.
11551 * sese.h (invariant_in_sese_p_rec): Declare.
11553 2015-09-28 David Wohlferd <dw@LimeGreenSocks.com>
11555 * doc/extend.texi (Asm Labels): Break out text for data vs functions.
11557 2015-09-28 Jiong Wang <jiong.wang@arm.com>
11560 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11561 Jiong Wang <jiong.wang@arm.com>
11563 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
11564 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
11565 (REG_CLASS_NAMES): Likewise.
11566 (REG_CLASS_CONTENTS): Likewise.
11567 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
11568 (aarch64_register_move_cost): Likewise.
11569 (aarch64_load_symref_appropriately): Invoke the new added pattern if
11571 * config/aarch64/constraints.md (Uc0): New constraint.
11573 2015-09-28 Daniel Hellstrom <daniel@gaisler.com>
11575 * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
11577 2015-09-28 David Edelsohn <dje.gcc@gmail.com>
11579 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
11580 SECTION_EXCLUDE in XO mapping class.
11582 2015-09-28 Oleg Endo <olegendo@gcc.gnu.org>
11585 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
11586 and handle ne and eq codes.
11587 * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
11588 (sh_recog_treg_set_expr): Early accept negt_reg_operand. Eearly reject
11589 CONST_INT_P. Use reverse_condition.
11590 (sh_split_treg_set_expr): Likewise.
11592 2015-09-28 James Greenhalgh <james.greenhalgh@arm.com>
11594 * config/arm/types.md (type): Add rotate_imm.
11595 * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
11596 ROR immediate case.
11597 (*rorsi3_insn_uxtw): Likewise.
11598 * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
11599 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
11600 * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
11602 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11604 PR rtl-optimization/67481
11605 * ifcvt.c (contains_ccmode_rtx_p): New function.
11606 (insn_valid_noce_process_p): Use it.
11608 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11610 PR rtl-optimization/67456
11611 PR rtl-optimization/67464
11612 PR rtl-optimization/67465
11613 * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
11614 move in the mode of x. Handle combination of complex and simple
11615 block pairs as well as the case when one is empty.
11617 2015-09-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11619 * doc/gimple.texi: Update references to gimple_statement_base.
11620 * gdbhooks.py: Likewise.
11621 * gimple.h: Likewise.
11623 2015-09-28 Daniel Cederman <cederman@gaisler.com>
11625 * config/sparc/driver-sparc.c: map LEON to leon3
11627 2015-09-28 Daniel Cederman <cederman@gaisler.com>
11629 * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
11630 and make it inverse to change default
11631 * config/sparc/sync.md: Only use supervisor ASI for CASA when in
11633 * doc/invoke.texi: Document change of default
11635 2015-09-28 Daniel Cederman <cederman@gaisler.com>
11637 * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
11638 true on %f0 for a target without FPU.
11639 * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
11641 (untyped_return): Do not load %f0 for a target without FPU.
11643 2015-09-28 Andrew Pinski <apinski@cavium.com>
11645 * config/aarch64/aarch64.md (prefetch):
11646 Change the predicate of operand 0 to register_operand.
11648 2015-09-27 Uros Bizjak <ubizjak@gmail.com>
11650 * config/i386/predicates.md (register_sse4nonimm_operand): New
11652 * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
11653 (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
11654 Use register_sse4nonimm_operand as operand 0 predicate.
11655 (*vec_extractv8hi_sse2): Remove insn pattern.
11656 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
11657 *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
11659 2015-09-27 Oleg Endo <olegendo@gcc.gnu.org>
11660 Kaz Kojima <kkojima@gcc.gnu.org>
11663 * config/sh/sh-protos.h (sh_lra_p): Declare.
11664 * config/sh/sh.c (sh_lra_p): Make non-static.
11665 * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
11666 arith_reg_operand for operands[1]. Remove TARGET_SHMEDIA case.
11667 Expand into addsi3_scr if operands[2] if needed.
11668 (*addsi3_compact): Rename to *addsi3_compact_lra. Use
11669 arith_reg_operand for operands[1]. Allow it only when LRA is enabled.
11670 (addsi3_scr, *addsi3): New insn_and_split patterns.
11672 2015-09-27 Alexandre Oliva <aoliva@redhat.com>
11674 PR rtl-optimization/64164
11675 PR tree-optimization/67312
11676 PR middle-end/67340
11677 PR middle-end/67490
11679 * cfgexpand.c (parm_in_stack_slot_p): Remove.
11680 (ssa_default_def_partition): Remove.
11681 (get_rtl_for_parm_ssa_default_def): Remove.
11682 (set_rtl): Check that RTL assignments match expectations.
11683 Loop on SUBREGs, CONCATs and PARALLELs subexprs. Set only the
11684 default def location for params and results. Record SSA names
11685 or types in REG and MEM attrs, respectively.
11686 (set_parm_rtl): New.
11687 (expand_one_ssa_partition): Drop logic that assigned MEMs with
11688 unassigned addresses.
11689 (adjust_one_expanded_partition_var): Don't accept NULL RTL on
11690 deferred stack alloc vars.
11691 (expand_used_vars): Skip partitions holding parm default defs.
11692 Move adjust_one_expanded_partition_var loop...
11693 (pass_expand::execute): ... here. Drop redundant assert.
11694 Adjust comments before the final loop over all ssa names.
11695 Require assigned rtl of parms and results to match exactly.
11696 Reset its attributes to match them, not any other variables in
11697 the same partition.
11698 (expand_debug_expr): Use entry value for PARM's default defs
11699 only iff they have zero nondebug uses.
11700 * cfgexpand.h (parm_in_stack_slot_p): Remove.
11701 (get_rtl_for_parm_ssa_default_def): Remove.
11702 (set_parm_rtl): Declare.
11703 * doc/invoke.texi: Improve wording.
11704 * explow.c (promote_decl_mode): Fix promote_function_mode for
11705 result decls not by reference.
11706 (promote_ssa_mode): Disregard BLKmode from promote_decl, and
11707 bypass TYPE_MODE to get the actual vector mode.
11708 * function.c: Include tree-dfa.h. Revert 2015-08-14's and
11709 2015-08-19's changes as follows. Drop include of
11710 basic-block.h and df.h.
11711 (rtl_for_parm): Remove.
11712 (maybe_reset_rtl_for_parm): Remove.
11713 (parm_in_unassigned_mem_p): Remove.
11714 (use_register_for_decl): Add logic for RESULT_DECLs matching
11715 assign_parms' behavior.
11716 (split_complex_args): Revert.
11717 (assign_parms_augmented_arg_list): Revert. Add comment
11718 referencing the logic above.
11719 (assign_parm_adjust_stack_rtl): Revert.
11720 (assign_parm_setup_block): Revert. Use set_parm_rtl instead
11721 of SET_DECL_RTL. Set up a REG if the parm demands so.
11722 (assign_parm_setup_reg): Revert. Consolidated SET_DECL_RTL
11723 calls into a single set_parm_rtl. Set up a temporary RTL
11724 temporarily for expand_assignment.
11725 (assign_parm_setup_stack): Revert. Use set_parm_rtl.
11726 (assign_parms_unsplit_complex): Revert. Use set_parm_rtl.
11727 (assign_bounds): Revert.
11728 (assign_parms): Revert. Use set_parm_rtl.
11729 (allocate_struct_function): Relayout result and parms of
11730 non-abstruct functions.
11731 (expand_function_start): Revert. Use set_parm_rtl. If the
11732 result is not a hard reg, create a pseudo from the promoted
11733 mode of the default def. Promote static chain mode.
11734 * tree-outof-ssa.c (remove_ssa_form): Drop unused
11735 partition_has_default_def. Set up
11736 partitions_for_parm_default_defs.
11737 (finish_out_of_ssa): Remove partition_has_default_def.
11738 Release partitions_for_parm_default_defs.
11739 * tree-outof-ssa.h (struct ssaexpand): Remove
11740 partition_has_default_def. Add
11741 partitions_for_parm_default_defs.
11742 * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
11744 (build_ssa_conflict_graph): Fix conflict-detection of default
11745 defs of even unused default defs of params and results.
11746 (for_all_parms): New.
11747 (create_default_def): New.
11748 (register_default_def): New.
11749 (coalesce_with_default): New.
11750 (create_outofssa_var_map): Create default defs for all parms
11751 and results, and register their partitions. Add GIMPLE_RETURN
11752 operands as coalesce candidates with results. Add default
11753 defs of each parm or result as coalesce candidates with its
11754 other defs. Mark each result def, and each default def of
11755 parms, as used_in_copy.
11756 (gimple_can_coalesce_p): Call it. Call use_register_for_decl
11757 with the ssa names, even anonymous ones. Drop
11758 parm_in_stack_slot_p calls. Require same signedness and
11760 (coalesce_ssa_name): Add coalesce candidates for all defs of
11761 each parm and result, even unused ones.
11762 (parm_default_def_partition_arg): New type.
11763 (set_parm_default_def_partition): New.
11764 (get_parm_default_def_partitions): New.
11765 * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
11766 * tree-ssa-live.c (partition_view_init): Regard unused defs of
11767 parms and results as used.
11768 (verify_live_on_entry): Don't error out just because they're
11771 2015-09-26 David Edelsohn <dje.gcc@gmail.com>
11773 * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
11774 (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
11775 (output_fde): Don't output length for debug_frame on AIX.
11776 (output_call_frame_info): Don't output length for debug_frame on AIX.
11777 (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
11778 HAVE_XCOFF_DWARF_EXTRAS.
11779 (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
11780 HAVE_XCOFF_DWARF_EXTRAS.
11781 (output_compilation_unit_header): Don't output length on AIX.
11782 (output_pubnames): Don't output length on AIX.
11783 (output_aranges): Delete argument. Compute length locally. Don't
11784 output length on AIX.
11785 (output_line_info): Don't output length on AIX.
11786 (dwarf2out_finish): Don't compute aranges_length.
11787 * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
11788 (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
11789 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
11790 symbol decoration for AIX.
11791 (rs6000_xcoff_debug_unwind_info): New.
11792 (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
11794 (rs6000_xcoff_declare_function_name): Emit different
11795 .function pseudo-op when DWARF2_DEBUG. Don't call
11796 xcoffout_declare_function for DWARF2_DEBUG.
11797 * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
11799 * config/rs6000/aix71.h: New.
11800 * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
11802 * configure: Regenerate.
11803 * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
11806 2015-09-26 Jeff Law <law@redhat.com>
11808 * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
11810 * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
11813 * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
11816 * config/mips/mips.c (mips_compute_frame_info): Fix left shift
11817 undefined behaviour.
11819 * config/cris/cris.md (asrandb): Fix left shift undefined
11821 (asrandw): Likewise.
11823 2015-09-25 Vladimir Makarov <vmakarov@redhat.com>
11826 * lra-constarints.c (match_reload): Check presence of the input pseudo
11827 in the output operand.
11829 2015-09-25 Tobias Burnus <burnus@net-b.de>
11831 * doc/invoke.texi (-fsanitize): Minor wording tweak.
11833 2015-09-25 Tobias Burnus <burnus@net-b.de>
11835 * doc/invoke.texi (-fsanitize): Update URLs.
11837 2015-09-25 Teresa Johnson <tejohnson@google.com>
11839 * opts.c (finish_options): Unset -freorder-blocks-and-partition
11840 if not using profile.
11842 2015-09-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
11844 PR pretty-print/67567
11845 * pretty-print.c (pp_string): Add gcc_checking_assert.
11846 * pretty-print.h (output_buffer_append_r): Likewise.
11848 2015-09-25 Oleg Endo <olegendo@gcc.gnu.org>
11851 * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
11852 addr2 individually. Don't emit logical or insn if one is known to
11853 be aligned approriately.
11854 (sh_expand_cmpnstr): Likewise.
11856 2015-09-25 Richard Sandiford <richard.sandiford@arm.com>
11858 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
11859 __builtin_aarch64_fp[sc]r arguments into a register.
11861 2015-09-25 H.J. Lu <hongjiu.lu@intel.com>
11863 * config.gcc (x86_archs): Replace lakemount with lakemont.
11864 (with_cpu): Likewise.
11865 (with_arch): Likewise.
11866 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
11867 PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT. Replace
11868 __tune_lakemount__ with __tune_lakemont__.
11869 * config/i386/i386.c (lakemount_cost): Renamed to ...
11870 (lakemont_cost): This.
11871 (m_LAKEMOUNT): Renamed to ...
11872 (m_LAKEMONT): This.
11873 (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
11874 (processor_target_table): Replace "lakemount" with "lakemont".
11875 (processor_alias_table): Likewise.
11876 (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
11877 PROCESSOR_LAKEMONT.
11878 (ix86_adjust_cost): Likewise.
11879 (ia32_multipass_dfa_lookahead): Likewise.
11880 * config/i386/i386.h (processor_type): Likewise.
11881 * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
11882 * doc/invoke.texi: Replace lakemount with lakemont. Replace
11883 Lakemount with Lakemont.
11885 2015-09-24 H.J. Lu <hongjiu.lu@intel.com>
11887 * config.gcc (x86_archs): Replace iamcu with lakemount.
11888 (with_cpu): Likewise.
11889 (with_arch): Likewise.
11890 * doc/invoke.texi: Likewise.
11891 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
11892 PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT. Replace
11893 __tune_iamcu__ with __tune_lakemount__.
11894 * config/i386/i386.c (iamcu_cost): Renamed to ...
11895 (lakemount_cost): This.
11896 (m_IAMCU): Renamed to ...
11897 (m_LAKEMOUNT): This.
11898 (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
11899 (processor_target_table): Replace "iamcu" with "lakemount".
11900 (processor_alias_table): Likewise.
11901 (ix86_issue_rate): Replace PROCESSOR_IAMCU with
11902 PROCESSOR_LAKEMOUNT.
11903 (ix86_adjust_cost): Likewise.
11904 (ia32_multipass_dfa_lookahead): Likewise.
11905 * config/i386/i386.h (processor_type): Likewise.
11906 * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
11908 2015-09-24 John David Anglin <danglin@gcc.gnu.org>
11910 * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
11911 * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
11913 * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
11914 (pa_expand_compare_and_swap_loop): New.
11915 (pa_maybe_emit_compare_and_swap_exchange_loop): New.
11916 * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
11917 atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
11918 (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
11919 (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
11922 2015-09-24 Michael Collison <michael.collison@linaro.org>
11925 * read-md.c (read_name): Allow mode iterators inside angle
11926 brackets in rtl expressions.
11928 2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
11931 * ira-color.c (update_allocno_cost): Add parameter.
11932 (update_costs_from_allocno): Decrease conflict cost. Pass the new
11935 2015-09-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
11938 * opts-common.c (prune_options): Discard all -fdiagnostics-color
11939 but the last one, which is moved to the front to be processed
11941 * opts.c (enable_warning_as_error): Reject options that do not
11944 2015-09-24 Jiong Wang <jiong.wang@arm.com>
11946 * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
11948 2015-09-24 Jiong Wang <jiong.wang@arm.com>
11950 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
11951 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
11952 (aarch64_cannot_force_const_mem): Likewise.
11953 (aarch64_classify_address): Likewise.
11954 (aarch64_classify_symbolic_expression): Likewise.
11955 (aarch64_print_operand): Likewise.
11956 (aarch64_classify_symbol): Likewise.
11957 (aarch64_mov_operand_p): Likewise.
11958 * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
11959 (aarch64_mov_operand): Likewise.
11961 2015-09-24 Segher Boessenkool <segher@kernel.crashing.org>
11963 * config/rs6000/rs6000.c (debug_stack_info): Invert the test
11964 for info->spe_gp_size.
11966 2015-09-24 Richard Biener <rguenther@suse.de>
11969 * lto-cgraph.c (compute_ltrans_boundary): Do not stream
11972 2015-09-24 Thomas Schwinge <thomas@codesourcery.com>
11974 * tree-object-size.c (plus_stmt_object_size)
11975 (cond_expr_object_size): Change the formal parameters from gimple
11977 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
11978 * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
11979 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
11981 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11983 * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
11984 Check for ld -type pie on Solaris 11.x and 12.
11985 * configure: Regenerate.
11986 * config.in: Regenerate.
11988 * gcc.c (LD_PIE_SPEC): Allow redefinition.
11990 * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
11991 (STARTFILE_SPEC): Use it.
11992 (ENDFILE_CRTEND_SPEC): Define.
11993 (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
11994 (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
11995 ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
11996 [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
11997 (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
11998 * config/i386/sol2.h (ENDFILE_SPEC): Remove.
11999 (ENDFILE_ARCH_SPEC): Define.
12000 * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
12002 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12004 * configure.ac (gcc_cv_solaris_crts): New test.
12005 * configure. Regenerate.
12006 * config.in: Regenerate.
12007 * config/sol2.h (STARTFILE_SPEC): Simplify, provide
12008 HAVE_SOLARIS_CRTS variant.
12010 2015-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12012 * tree-inline.h (count_insns_seq): Delete prototype.
12013 (estimate_num_insns_seq): Define prototype.
12014 * tree-inline.c (count_insns_seq): Delete.
12015 (estimate_num_insns_seq): Remove static qualifier.
12016 * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
12017 with estimate_num_insns_seq.
12019 2015-09-24 Richard Biener <rguenther@suse.de>
12021 * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
12023 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
12024 and base for MEM_REF and TARGET_MEM_REF. Handle BIT_FIELD_REF
12026 (ao_ref_init_from_vn_reference): Record clique and base in the
12028 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
12030 2015-09-24 Richard Biener <rguenther@suse.de>
12032 PR tree-optimization/48885
12033 * tree-ssa-structalias.c (visit_loadstore): Handle default defs
12034 as not including any restrict tags from other pointers.
12036 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
12038 * gcc.c (handle_foffload_option): Don't lose the trailing NUL
12039 character when appending to offload_targets.
12041 * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
12042 offload targets by commas, not colons.
12043 * config.in: Regenerate.
12044 * configure: Likewise.
12045 * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
12046 instead of setting up the default offload targets here...
12047 (process_command): ..., do it here.
12049 * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
12050 targets are separated by commas.
12051 * config.h.in: Regenerate.
12053 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
12054 Nathan Sidwell <nathan@codesourcery.com>
12056 * omp-low.h (omp_reduction_init_op): Declare.
12057 * omp-low.c (omp_reduction_init_op): New, broken out of ...
12058 (omp_reduction_init): ... here. Call it.
12059 * tree-parloops.c (initialize_reductions): Use
12060 omp_reduction_init_op.
12062 2015-09-23 Richard Biener <rguenther@suse.de>
12064 PR middle-end/67662
12065 * fold-const.c (fold_binary_loc): Do not reassociate two vars with
12066 undefined overflow unless they will cancel out.
12068 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
12070 * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
12073 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
12076 * opts.h (write_langs): Declare.
12077 * opts-global.c (write_langs): Make it extern.
12079 2015-09-23 Oleg Endo <olegendo@gcc.gnu.org>
12082 * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
12083 overlapping regs when matching the pattern.
12085 2015-09-23 James Greenhalgh <james.greenhalgh@arm.com>
12087 * config/aarch64/aarch64-simd.md
12088 (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
12089 (aarch64_float_truncate_hi_v4sf_le): New.
12090 (aarch64_float_truncate_hi_v4sf_be): Likewise.
12092 2015-09-23 Richard Biener <rguenther@suse.de>
12094 * tree-ssa-structalias.c (intra_create_variable_infos): Build
12095 representatives for all restrict qualified pointer destinations.
12097 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
12099 * config/i386/i386.md (define_code_attr mshift): New.
12100 (define_mode_iterator SWI1248_AVX512BW): Rename ...
12101 (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
12103 (define_insn "*k<logic><mode>"): Use new iterator name.
12104 (define_insn "*<mshift><mode>3"): New.
12106 2015-09-23 Mikhail Maltsev <maltsevm@gmail.com>
12108 PR middle-end/67649
12109 * memory-block.h (memory_block_pool::allocate): Use valgrind API to
12110 mark the block as accessible.
12112 2015-09-22 Segher Boessenkool <segher@kernel.crashing.org>
12114 * function.c (thread_prologue_and_epilogue_insns): Delete
12115 orig_entry_edge argument to try_shrink_wrapping.
12116 * shrink-wrap.c (can_get_prologue): New function.
12117 (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
12118 (try_shrink_wrapping): Delete orig_entry_edge argument. Use
12119 can_get_prologue where needed. Remove code that finds a single
12120 edge for the prologue. Remove code that tests if any reg clobbered
12121 by the prologue is live on the prologue edge. Remove code that finds
12122 the new prologue edge after duplicating blocks. Make a new prologue
12124 * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
12126 2015-09-22 Jeff Law <law@redhat.com>
12128 * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
12131 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
12133 * doc/invoke.texi (-Wmultiple-inheritance, -Wvirtual-inheritance,
12134 -Wtemplates, -Wnamespaces): Document.
12136 2015-09-22 Tom de Vries <tom@codesourcery.com>
12138 PR tree-optimization/67671
12139 * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
12140 pointer references as restrict.
12142 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
12144 * config/nios2/nios2.c (nios2_legitimize_address): When handling
12145 'reg + reloc' cases, allow first operand to be non-REG, and use
12146 force_reg() to enforce address pattern.
12148 2015-09-22 Alexander Fomin <alexander.fomin@intel.com>
12151 * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
12152 (define_mode_iterator VI12_AVX_AVX512F): New.
12153 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
12154 all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
12155 (define_insn "*<code><mode>3"): ... Into new pattern using
12156 VI12_AVX_AVX512F iterators without masking.
12158 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
12160 * config.gcc: Support "skylake-avx512".
12161 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
12162 PROCESSOR_SKYLAKE_AVX512.
12163 * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
12164 (processor_target_table): Add "skylake-avx512".
12165 (PTA_SKYLAKE_AVX512): Define.
12166 (ix86_option_override_internal): Add "skylake_avx512".
12167 (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
12168 F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
12169 * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
12170 (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
12171 * doc/invoke.texi (skylake-avx512): New.
12173 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
12175 * config/i386/i386.md (define_insn "kunpckhi"): Fix
12176 operand in pattern.
12177 (define_insn "kunpcksi"): Ditto.
12178 (define_insn "kunpckdi"): Ditto.
12180 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
12182 * config/i386/i386.md (define_split not/xor SWI1248x): Use
12183 iterator instead of fixed modes.
12185 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
12187 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
12188 Adjust declaration.
12189 * config/aarch64/aarch64.c (aarch64_emit_bic): New.
12190 (aarch64_gen_atomic_ldop): Adjust comment. Add parameter
12191 out_result. Update to support update-fetch operations.
12192 * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
12193 Adjust for change to aarch64_gen_atomic_ldop.
12194 (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
12195 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
12196 (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
12197 (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
12198 (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
12200 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
12202 * config/aarch64/aarch64-protos.h
12203 (aarch64_atomic_ldop_supported_p): Declare.
12204 * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
12205 (enum aarch64_atomic_load_op_code): New.
12206 (aarch64_emit_atomic_load_op): New.
12207 (aarch64_gen_atomic_ldop): Update to support load-operate
12209 * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
12211 (aarch64_atomic_<atomic_optab><mode>): New.
12212 (aarch64_atomic_<atomic_optab><mode>_lse): New.
12213 (atomic_fetch_<atomic_optab><mode>): Change to an expander.
12214 (aarch64_atomic_fetch_<atomic_optab><mode>): New.
12215 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
12217 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
12219 * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
12220 (UNSPECV_ATOMIC_LDOP_OR): New.
12221 (UNSPECV_ATOMIC_LDOP_BIC): New.
12222 (UNSPECV_ATOMIC_LDOP_XOR): New.
12223 (UNSPECV_ATOMIC_LDOP_PLUS): New.
12224 (ATOMIC_LDOP): New.
12225 (atomic_ldop): New.
12226 (aarch64_atomic_load<atomic_ldop><mode>): New.
12228 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
12230 * config/aarch64/aarch64.md
12231 (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
12234 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
12236 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
12238 * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
12239 (aarch64_gen_atomic_ldop): New.
12240 (aarch64_split_atomic_op): Fix whitespace and add a comment.
12241 * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
12242 (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
12243 (atomic_exchange<mode>): Replace with an expander.
12244 (aarch64_atomic_exchange<mode>): New.
12245 (aarch64_atomic_exchange<mode>_lse): New.
12246 (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
12247 (aarch64_atomic_swp<mode>): New.
12249 2015-09-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
12251 * tree-inline.c (expand_call_inline): Use inform for extra note.
12252 Do not give a note with UNKNOWN_LOCATION.
12253 Replace input_location with gimple_location (stmt).
12254 Use true/false instead of TRUE/FALSE.
12256 2015-09-22 Tom de Vries <tom@codesourcery.com>
12258 PR tree-optimization/67666
12259 * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
12260 with single field non-conservative.
12262 2015-09-21 David S. Miller <davem@davemloft.net>
12266 2015-09-11 David S. Miller <davem@davemloft.net>
12268 * config/sparc/constraints.md: Make "U" constraint a real register
12270 * config/sparc/sparc.c (TARGET_LRA_P): Define.
12271 (D_MODES, DF_MODES): Add missing cast.
12272 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
12273 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
12274 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
12276 * config/sparc/sparc.h (PROMOTE_MODE): Define.
12277 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
12278 provide these insn when flag_pic.
12280 2015-09-17 David S. Miller <davem@davemloft.net>
12282 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
12284 * config/sparc/sparc.c (sparc_secondary_memory_needed): New
12286 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
12287 (HARD_REGNO_CALLER_SAVE_MODE): Define.
12288 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
12289 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
12290 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
12291 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
12292 provide when flag_pic.
12294 2015-09-21 Jeff Law <law@redhat.com>
12296 * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
12299 2015-09-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12301 * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
12303 2015-09-21 Richard Biener <rguenther@suse.de>
12305 * passes.c (rest_of_decl_compilation): Do not call
12306 dwarf2out_early_global_decl for aliases.
12308 2015-09-21 Richard Biener <rguenther@suse.de>
12311 * dwarf2out.c (add_location_or_const_value_attribute): Remove
12312 attribute parameter. Early exit if either DW_AT_const_value
12313 or DW_AT_location are present already.
12314 (gen_variable_die): Adjust caller.
12315 (dwarf2out_late_global_decl): Likewise.
12317 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
12320 * config/sh/sh.c (sh_remove_overlapping_post_inc,
12321 sh_peephole_emit_move_insn): Add new functions.
12322 * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
12323 sh_peephole_emit_move_insn): Declere them.
12324 * config/sh/sh.md: Use them in various peephole2 patterns.
12326 2015-09-21 Richard Biener <rguenther@suse.de>
12328 PR middle-end/67651
12329 * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
12330 address with -fno-delete-null-pointer-checks.
12332 2015-09-21 Alan Lawrence <alan.lawrence@arm.com>
12334 * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
12335 (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
12336 (reduc_uplus_v16qi): Remove.
12338 * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
12339 (reduc_<VEC_reduc_name>_v2df): Remove.
12340 (reduc_<VEC_reduc_name>_v4sf): Remove.
12341 (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
12343 * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
12344 gen_ function by removing * prefix.
12345 (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
12347 2015-09-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
12349 PR middle-end/60832
12350 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
12351 Print i_bound without converting it to a tree.
12353 2015-09-21 Bilyan Borisov <bilyan.borisov@arm.com>
12355 * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
12356 operands[4] operands[5] swap with std::swap, removed tmp variable.
12357 (arm_evpc_neon_vzip): Replaced in0/in1 and
12358 out0/out1 swaps with std::swap, removed x variable.
12359 (arm_evpc_neon_vtrn): Replaced in0/int1 and
12360 out0/out1 swaos with std::swap, removed x variable.
12361 (arm_expand_vec_perm_const_1): Replaced
12362 d->op0/d->op1 swap with std::swap, removed x variable.
12363 (arm_evpc_neon_vuzp): Replaced in0/in1 and
12364 out0/out1 swaps with std::swap, removed x variable.
12366 2015-09-21 Jonathan Yong <10walls@gmail.com>
12368 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
12369 sysroot/usr/lib/32api for additional win32 libraries,
12370 fixes failing Cygwin bootstrapping.
12372 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
12374 * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
12376 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
12379 * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
12380 (*mov_t_msb_neg): Rewrite negc pattern.
12382 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
12384 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
12385 immediate generation code.
12387 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
12389 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
12390 redundant immediate generation code.
12392 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
12394 * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
12395 (AARCH64_NUM_BITMASKS): Remove.
12396 (aarch64_bitmasks_cmp): Remove.
12397 (aarch64_build_bitmask_table): Remove.
12399 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
12401 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
12402 slow immediate matching loops with a faster algorithm.
12404 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
12406 * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
12409 2015-09-20 Jeff Law <law@redhat.com>
12411 PR tree-optimization/47679
12412 * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
12413 * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
12414 * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
12415 (thread_through_normal_block): Use record_temporary_equivalences.
12417 2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
12419 * coretypes.h (gimple): Change typedef to be a forward declaration.
12420 * gimple.h (gimple_statement_base): rename to gimple.
12421 * (all functions and types using gimple): Adjust.
12422 * *.[ch]: Likewise.
12424 2015-09-19 Andrew Dixie <andrewd@gentrack.com>
12425 David Edelsohn <dje.gcc@gmail.com>
12427 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
12428 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
12429 (EH_FRAME_THROUGH_COLLECT2): Define.
12430 (EH_TABLES_CAN_BE_READ_ONLY): Define.
12431 (ASM_OUTPUT_DWARF_PCREL): Define.
12432 (ASM_OUTPUT_DWARF_DATAREL): Define.
12434 2015-09-19 John David Anglin <danglin@gcc.gnu.org>
12436 * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
12439 2015-09-18 Jeff Law <law@redhat.com>
12441 PR tree-optimization/47679
12442 * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped. Move
12444 (dom_opt_dom_walker): New private member holding the avail_exprs_stack
12445 object. Update constructor.
12446 (pass_dominator::execute): Corresponding chagnes to declaration
12447 and initialization of avail_exprs_stack. Update constructor call
12448 for dom_opt_dom_walker object.
12449 (lookup_avail_expr, record_cond): Accept additional argument. Pass
12450 it down to children as needed.
12451 (record_equivalences_from_incoming_edge): Likewise.
12452 (eliminate_redundant_computations): Likewise.
12453 (record_equivalences_from_stmt): Likewise.
12454 (simplify_stmt_for_jump_threading): Likewise.
12455 (record_temporary_equivalences): Likewise.
12456 (optimize_stmt): Likewise.
12457 (dom_opt_dom_walker::thread_across_edge): Update access to
12458 avail_exprs_stack object and pass it to children as needed.
12459 (dom_opt_dom_walker::before_dom_children): Similarly.
12460 (dom_opt_dom_walker::after_dom_children): Similarly.
12461 * tree-ssa-threadedge.c (pfn_simplify): New typedef.
12462 (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
12463 Add avail_expr_stack argument. Pass it to children as needed.
12464 (dummy_simplify): Likewise.
12465 (simplify_control_stmt_condition): Likewise.
12466 (thread_around_empty_blocks): Likewise.
12467 (thread_through_normal_block): Likewise.
12468 (thread_across_edge): Likewise.
12469 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
12470 * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
12472 PR tree-optimization/47679
12473 * tree-ssa-dom.c (const_and_copies): No longer file scoped. Move
12475 (dom_opt_dom_walker): New private member holding the const_and_copies
12476 object. Update constructor.
12477 (pass_dominator::execute): Corresponding changes to declaration
12478 and initialization of const_and_copies. Update constructor call
12479 for the dom_opt_dom_walker object.
12480 (record_temporary_equivalences): Accept const_and_copies argument
12481 pass it down to children as needed.
12482 (record_equality): Likewise.
12483 (record_equivalences_from_incoming_edge): Likewise.
12484 (cprop_into_successor_phis, optimize_stmt): Likewise.
12485 (eliminate_redundant_computations): Likewise.
12486 (dom_opt_dom_walker::thread_across_edge): Update access to
12487 const_and_copies object and pass it to children as needed.
12488 (dom_opt_dom_walker::before_dom_children): Similarly.
12489 (dom_opt_dom_walker::after_dom_children): Similarly.
12491 PR tree-optimization/47679
12492 * tree-ssa-dom.c (avail_exprs): No longer file scoped. Bury
12493 it into the avail_exprs_stack class.
12494 (pass_dominator::execute): Corresponding changes to declaration
12495 and initialization of avail_exprs. Pass avail_exprs to
12496 dump_dominator_optimization_stats.
12497 (record_cond): Extract avail_exprs from avail_exprs_stack.
12498 (lookup_avail_expr): Similarly.
12499 (htab_staticstics): Remove unnecessary prototype. Move to earlier
12501 (dump_dominator_optimization_stats): Make static and prototype.
12502 Add argument for the hash table to dump.
12503 (debug_dominator_optimization_stats): Remove.
12504 * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
12506 (debug_dominator_optimization_stats): Similarly.
12507 * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
12508 "void" in prototype for pop_to_marker method. Add accessor method
12509 for the underlying avail_exprs table.
12511 * tree-ssa-threadedge.c: Remove trailing whitespace.
12513 2014-09-18 John David Anglin <danglin@gcc.gnu.org>
12515 * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
12517 (pa_ldil_cint_p): Likewise.
12518 * config/pa/pa.c (pa_cint_ok_for_move): likewise.
12519 (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
12521 * config/pa/pa.md: Likewise.
12523 2015-09-18 David Malcolm <dmalcolm@redhat.com>
12525 * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
12526 * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
12527 (diagnostic_show_locus): Likewise.
12528 (diagnostic_print_caret_line): Likewise.
12529 * diagnostic-show-locus.c: New file.
12531 2015-09-18 David Edelsohn <dje.gcc@gmail.com>
12533 * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
12534 "back" parameter. Declare label in #if block.
12536 2015-09-18 Uros Bizjak <ubizjak@gmail.com>
12538 PR middle-end/67619
12539 * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
12540 the address to a register.
12542 2015-09-18 Jeff Law <law@redhat.com>
12544 PR tree-optimization/47679
12545 * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
12546 * tree-ssa-dom.c: Remove unnecessary header includes.
12547 (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
12548 (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
12549 (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
12550 (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
12551 (pass_phi_only_cprop::execute): Likewise.
12552 (make_pass_phi_only_cprop): Likewise.
12553 * tree-ssa-phionlycprop.c: New file with moved code. Eliminate
12554 uses of file scoped statics by passing the required objects
12555 as parameters wherever needed.
12557 2015-09-18 Andrew Dixie <andrewd@gentrack.com>
12558 David Edelsohn <dje.gcc@gmail.com>
12560 * defaults.h (EH_FRAME_SECTION_NAME): Depend on
12561 EH_FRAME_THROUGH_COLLECT2.
12562 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
12564 * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
12565 even if EH_FRAME_SECTION_NAME is undefined. Restrict special
12566 collect2 labels to EH_FRAME_THROUGH_COLLECT2.
12567 * except.c (switch_to_exception_section): Use a read-only section
12568 even if EH_FRAME_SECTION_NAME is undefined.
12569 * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
12570 * collect2.c (write_c_file_stat): Provide dbase on AIX.
12571 (scan_prog_file): Don't export __dso_handle nor
12572 __gcc_unwind_dbase.
12573 * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
12574 (EH_TABLES_CAN_BE_READ_ONLY): Define.
12575 (ASM_OUTPUT_DWARF_PCREL): Define.
12576 (ASM_OUTPUT_DWARF_DATAREL): Define.
12577 (EH_FRAME_THROUGH_COLLECT2): Define.
12578 (EH_FRAME_IN_DATA_SECTION): Delete.
12579 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
12580 * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
12582 (rs6000_asm_output_dwarf_datarel): Declare.
12583 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
12584 (rs6000_aix_asm_output_dwarf_datarel): New.
12585 (rs6000_xcoff_asm_init_sections): Don't set exception_section.
12586 * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
12587 (EH_FRAME_THROUGH_COLLECT2): Define.
12588 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
12589 (EH_FRAME_THROUGH_COLLECT2): Define.
12590 (EH_TABLES_CAN_BE_READ_ONLY): Define.
12591 * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
12592 (EH_FRAME_THROUGH_COLLECT2): New.
12593 (ASM_OUTPUT_DWARF_DATAREL): New.
12594 * doc/tm.texi: Regenerate.
12596 2015-09-18 Richard Biener <rguenther@suse.de>
12598 * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
12599 we're in early phase.
12600 (schedule_generic_params_dies_gen): Likewise.
12601 (gen_remaining_tmpl_value_param_die_attribute): Do only as much
12602 work as possible, retaining unhandled cases.
12603 (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
12604 clear out generic_type_instances at the end.
12605 (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
12606 (dwarf2out_early_finish): ... here. Do most of
12607 gen_remaining_tmpl_value_param_die_attribute here.
12609 2015-09-18 Alan Lawrence <alan.lawrence@arm.com>
12611 PR tree-optimization/67283
12612 * tree-sra.c (type_consists_of_records_p): Rename to...
12613 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
12614 (completely_scalarize_record): Rename to...
12615 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
12616 (scalarize_elem): New.
12617 (analyze_all_variable_accesses): Follow renamings.
12619 2015-09-18 Richard Biener <rguenther@suse.de>
12621 * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
12624 2015-09-18 Richard Biener <rguenther@suse.de>
12626 PR tree-optimization/66142
12627 * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
12628 treat MEM[&x] and x the same.
12629 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
12630 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
12631 when we simplified sth.
12632 (vn_reference_maybe_forwprop_address): Likewise.
12633 (valueize_refs_1): When we simplified through
12634 vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
12635 set valueized_anything to true.
12636 (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
12637 one ref kills the other instead of just a offset-based test.
12638 * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
12639 for the operand_equal_p test to compare bases and also compare
12642 2015-09-17 Christian Bruel <christian.bruel@st.com>
12644 * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
12646 2015-09-17 Richard Henderson <rth@redhat.com>
12649 * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
12650 pointers that encode the alignment of the object.
12652 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
12654 PR rtl-optimization/66790
12655 * df-problems.c (LIVE): Amend documentation.
12657 2015-09-17 Richard Sandiford <richard.sandiford@arm.com>
12659 * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
12661 (GTFILES): Replace optabs.c with optabs-libfunc.c.
12662 * genopinit.c (main): Add an include guard to insn-opinit.h.
12663 Protect the rtx_code parts with NUM_RTX_CODE.
12664 * optabs.h: Split parts out to...
12665 * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
12666 * optabs.c: Split parts out to...
12667 * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
12668 * cilk-common.c: Include optabs-query.h rather than optabs.h.
12669 * fold-const.c: Likewise.
12670 * target-globals.c: Likewise.
12671 * tree-if-conv.c: Likewise.
12672 * tree-ssa-forwprop.c: Likewise.
12673 * tree-ssa-loop-prefetch.c: Likewise.
12674 * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
12675 Remove unncessary include files.
12676 * tree-ssa-phiopt.c: Likewise.
12677 * tree-ssa-reassoc.c: Likewise.
12678 * tree-switch-conversion.c: Likewise.
12679 * tree-vect-data-refs.c: Likewise.
12680 * tree-vect-generic.c: Likewise.
12681 * tree-vect-loop.c: Likewise.
12682 * tree-vect-patterns.c: Likewise.
12683 * tree-vect-slp.c: Likewise.
12684 * tree-vect-stmts.c: Likewise.
12685 * tree-vrp.c: Likewise.
12686 * toplev.c: Include optabs-query.h and optabs-libfuncs.h
12687 rather than optabs.h.
12688 * expr.c: Include optabs-tree.h.
12689 * function.c: Likewise.
12691 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
12693 PR middle-end/65958
12694 * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
12695 * config/arm/arm-protos.h (output_probe_stack_range): Declare.
12696 * config/arm/arm.c: Include common/common-target.h.
12697 (use_return_insn): Return 0 if the static chain register was saved
12698 above a non-APCS frame.
12699 (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
12700 (struct scratch_reg): New.
12701 (get_scratch_register_on_entry): New function.
12702 (release_scratch_register_on_entry): Likewise.
12703 (arm_emit_probe_stack_range): Likewise.
12704 (output_probe_stack_range): Likewise.
12705 (arm_expand_prologue): Factor out code dealing with the IP register
12706 for nested function and adjust it for stack checking.
12707 Invoke arm_emit_probe_stack_range if static builtin stack checking
12709 (thumb1_expand_prologue): Sorry out if static builtin stack checking
12711 (arm_expand_epilogue): Add the saved static chain register, if any, to
12712 the amount of pre-pushed registers to pop.
12713 (arm_frame_pointer_required): Return true if static stack checking is
12714 enabled and we want to catch the exception with the EABI unwinder.
12715 * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
12716 (UNSPEC_PROBE_STACK_RANGE): Likewise.
12717 * config/arm/arm.md (probe_stack): New insn.
12718 (probe_stack_range): Likewise.
12720 2015-09-17 Richard Biener <rguenther@suse.de>
12722 * genmatch.c (parser::parse_expr): Improve error message
12723 for mis-placed flags.
12725 2015-09-17 Richard Biener <rguenther@suse.de>
12727 * passes.c (rest_of_decl_compilation): Always call early_global_decl
12728 debug hook when we created a varpool node.
12729 * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
12730 dwarf2out_early_global_decl, when not just add location or
12731 value attributes to existing DIEs.
12733 2015-09-17 James Greenhalgh <james.greenhalgh@arm.com>
12735 * config/aarch64/aarch64.md (copysigndf3): New.
12736 (copysignsf3): Likewise.
12738 2015-09-17 David S. Miller <davem@davemloft.net>
12740 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
12741 * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
12742 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
12743 (HARD_REGNO_CALLER_SAVE_MODE): Define.
12744 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
12745 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
12746 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
12747 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
12748 provide when flag_pic.
12750 2015-09-17 Kaz Kojima <kkojima@gcc.gnu.org>
12752 * config/sh/sh.c (label_ref_list_d_pool): Adjust to
12753 object_allocator change.
12755 2015-09-17 Bin Cheng <bin.cheng@arm.com>
12757 PR tree-optimization/66388
12758 * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
12759 (dump_iv): Dump no_overflow information.
12760 (alloc_iv): Initialize new field for struct iv.
12761 (mark_bivs): Count number of no_overflow bivs.
12762 (find_deriving_biv_for_expr, record_biv_for_address_use): New
12764 (idx_find_step): Call new functions above.
12765 (add_candidate_1, add_candidate): New paramter.
12766 (add_iv_candidate_for_biv): Add sizetype cand for BIV.
12767 (get_computation_aff): Simplify convertion of cand for BIV.
12768 (get_computation_cost_at): Step cand's base if necessary.
12770 2015-09-17 Bin Cheng <bin.cheng@arm.com>
12772 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
12774 (tree_simplify_using_condition): Ditto.
12775 (simplify_using_initial_conditions): Ditto.
12776 (loop_exits_before_overflow): Pass new argument to function
12777 simplify_using_initial_conditions. Remove case for type conversions
12779 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
12781 * tree-scalar-evolution.c (simple_iv): Simplify type conversions
12782 in iv base using loop initial conditions.
12784 2015-09-16 Jeff Law <law@redhat.com>
12786 PR tree-optimization/47679
12787 * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
12788 (free_all_edge_infos): Use it.
12789 (allocate_edge_info): Free preexisting edge info data.
12790 (pass_dominator::execute): Set up initial edge info structures.
12791 (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
12792 thread_across_edge.
12793 * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
12794 If non-null, then push/pop markers appropriately.
12795 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
12796 * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
12797 thread-across_edge.
12799 2015-09-16 James Bowman <james.bowman@ftdichip.com>
12801 * config/ft32/ft32.c: Fix the memory address space predicate.
12803 2015-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
12806 * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
12807 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
12809 2015-09-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
12811 * toplev.h (check_global_declaration): Remove declaration.
12812 * toplev.c (check_global_declaration): Move to ...
12813 * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
12814 (analyze_functions): Update call.
12816 2015-09-16 David S. Miller <davem@davemloft.net>
12818 * lra-constraints.c (simplify_operand_subreg): Do not assume that
12819 lowpart of a SUBREG has offset zero.
12821 2015-09-16 Jeff Law <law@redhat.com>
12823 PR tree-optimization/47679
12824 * tree-ssa-dom.c (enum expr_kind): Moved from here to
12825 tree-ssa-scopedtables.h.
12826 (struct hashable_expr, class expr_hash_elt): Likewise.
12827 (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
12828 Move associated methods into tree-ssa-scopedtables.c.
12829 (avail_expr_hash, initialize_expr_from_cond): Similarly.
12830 (hashable_expr_equal_p, add_expr_commutative): Likewise.
12831 (add_hashable_expr): Likewise.
12832 (record_cond): Delete element directly.
12833 * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
12834 private copy ctor and assignment operator methods.
12835 (expr_elt_hasher): Inline trivial methods.
12836 (initialize_expr_from_cond): Prototype.
12837 * tree-ssa-scopedtables.c: Add necessary includes, functions and
12838 methods that were previously in tree-ssa-dom.c. Improve various
12841 2015-09-16 Paolo Carlini <paolo.carlini@oracle.com>
12843 * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
12845 2015-09-16 Segher Boessenkool <segher@kernel.crashing.org>
12848 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
12851 2015-09-16 Richard Biener <rguenther@suse.de>
12853 PR middle-end/67253
12854 * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
12855 location of possibly shared trees.
12857 2015-09-16 Richard Biener <rguenther@suse.de>
12859 PR middle-end/67271
12860 * fold-const.c (native_encode_expr): Bail out on bogus offsets.
12862 2015-09-16 Eric Botcazou <ebotcazou@adacore.com>
12864 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
12865 offset and size computations instead of HOST_WIDE_INT.
12867 2015-09-16 Richard Biener <rguenther@suse.de>
12869 PR middle-end/67442
12870 * fold-const.c (extract_muldiv_1): Properly extend multiplication
12871 result before builting a tree via wide_int_to_tree.
12873 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
12875 * Makefile.in: Add memory-block.cc
12876 (pool_allocator::initialize): Use fixed block size.
12877 (pool_allocator::release): Use memory_block_pool.
12878 (pool_allocator::allocate): Likewise.
12879 * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
12881 * cfg.c (initialize_original_copy_tables): Likewise.
12882 * cselib.c (elt_list_pool, elt_loc_list_pool,
12883 cselib_val_pool): Likewise.
12884 * df-problems.c (df_chain_alloc): Likewise.
12885 * df-scan.c (df_scan_alloc): Likewise.
12886 * dse.c (cse_store_info_pool, rtx_store_info_pool,
12887 read_info_type_pool, insn_info_type_pool, bb_info_pool,
12888 group_info_pool, deferred_change_pool): Likewise.
12889 * et-forest.c (et_nodes, et_occurrences): Likewise.
12890 * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
12891 ipcp_agg_lattice_pool): Likewise.
12892 * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
12893 * ipa-profile.c (histogram_pool): Likewise.
12894 * ipa-prop.c (ipa_refdesc_pool): Likewise.
12895 * ira-build.c (live_range_pool, allocno_pool, object_pool,
12896 initiate_cost_vectors, pref_pool, copy_pool): Likewise.
12897 * ira-color.c (update_cost_record_pool): Likewise.
12898 * lra-lives.c (lra_live_range_pool): Likewise.
12899 * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
12900 * memory-block.cc: New file.
12901 * memory-block.h: New file.
12902 * regcprop.c (queued_debug_insn_change_pool): Use common block size.
12903 * sched-deps.c (sched_deps_init): Likewise.
12904 * sel-sched-ir.c (sched_lists_pool): Likewise.
12905 * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
12906 * tree-sra.c (access_pool): Likewise.
12907 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
12908 * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
12909 * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
12910 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
12911 * tree-ssa-strlen.c (strinfo_pool): Likewise.
12912 * tree-ssa-structalias.c (variable_info_pool): Likewise.
12913 * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
12914 location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
12916 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
12918 * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
12920 (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
12923 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
12925 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
12926 to pass TLS call argument, according to current ABI.
12927 * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
12928 callx0 for TLS call, according to current ABI.
12930 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
12932 * tree-eh.c (lower_try_finally_dup_block): Clear location information
12933 on stack restore statements.
12934 (decide_copy_try_finally): Do not consider a stack restore statement as
12935 coming from sources.
12937 2015-09-15 Uros Bizjak <ubizjak@gmail.com>
12939 * config/alpha/alpha.c (alpha_expand_block_clear): Use
12940 HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
12942 2015-09-15 Jeff Law <law@redhat.com>
12944 PR tree-optimization/47679
12945 * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
12946 methods and private members.
12947 (avail_exprs_stack): Similarly. Change type of global
12948 from a pair of expr_hash_elt_t to the new class.
12949 (expr_elt_hasher::hash): Corresponding changes.
12950 (expr_elt_hasher::equal): Similarly.
12951 (avail_expr_hash): Similarly.
12952 (pass_dominator::execute): Similarly.
12953 (dom_opt_dom_walker::thread_across_edge): Similarly.
12954 (record_cond): Similarly.
12955 (dom_opt_dom_walker::before_dom_children): Similarly.
12956 (dom_opt_dom_walker::after_dom_children): Similarly.
12957 (lookup_avail_expr): Likewise.
12958 (initialize_hash_element): Now a expr_hash_elt constructor.
12959 (initialize_hash_element_from_expr): Similarly.
12960 (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
12961 (free_expr_hash_elt): Call dtor for the element.
12962 (remove_local_expressions_from_table): Now the "pop_to_marker"
12963 method in the available_exprs_stack class.
12964 (avail_expr_stack::record_expr): Method factored out.
12965 (print_expr_hash_elt): Now a method in the expr_hash_elt class.
12967 (hashable_expr_equal_p): Fix formatting.
12969 2015-09-15 David Malcolm <dmalcolm@redhat.com>
12971 * input.h (location_get_source_line): Drop "expanded_location"
12972 param in favor of a file and line number.
12973 * input.c (location_get_source_line): Likewise.
12974 (dump_location_info): Update for change in signature of
12975 location_get_source_line.
12976 * diagnostic.c (diagnostic_print_caret_line): Likewise.
12978 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
12980 * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
12981 Bump to 4KB for SJLJ exceptions.
12982 (STACK_CHECK_PROTECT): Likewise. Bump to 8KB for SJLJ exceptions.
12983 * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
12984 * doc/tm.texi: Regenerate.
12986 2015-09-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12988 * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
12989 of -1 when shifting. Change type of val to unsigned HOST_WIDE_INT.
12992 2015-09-15 Richard Biener <rguenther@suse.de>
12994 PR tree-optimization/67470
12995 * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
12996 structure for PHI hoisting by inserting a forwarder block
12999 2015-09-15 Christian Bruel <christian.bruel@st.com>
13001 * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
13002 (arm_option_print): New function.
13004 2015-09-15 Christian Bruel <christian.bruel@st.com>
13007 * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
13008 * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
13009 Remove flags parameter.
13010 * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
13011 (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
13012 (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
13013 (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
13014 (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
13015 (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
13016 (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
13017 * config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
13019 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
13021 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
13023 * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
13024 AARCH64_VALID_SIMD_DREG_MODE.
13026 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
13028 * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
13029 aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
13030 (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
13031 (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
13032 aarch64_ld4_lane<mode>): Combine together, making...
13033 (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
13034 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
13035 aarch64_st4_lane<mode>): Combine together, making...
13036 (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
13037 * config/aarch64/iterators.md (nregs): Add comment.
13039 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
13041 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
13042 Change operand mode from <V_TWO_ELEM> to BLK.
13043 (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
13044 (aarch64_vec_store_lanesoi_lane<mode): Likewise
13045 (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
13046 (aarch64_ld2_lane<mode>): Likewise.
13047 (aarch64_st2_lane<VQ:mode>): Likewise.
13048 * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
13050 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
13052 * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
13053 Change operand mode from <V_FOUR_ELEM> to BLK.
13054 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
13055 (aarch64_vec_store_lanesxi_lane<mode): Likewise.
13056 (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
13057 (aarch64_ld4_lane<mode>): Likewise.
13058 (aarch64_st4_lane<mode>): Likewise.
13059 * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
13061 2015-09-15 Richard Biener <rguenther@suse.de>
13063 PR middle-end/67563
13064 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
13065 transfer EH info from old to new stmt.
13066 (replace_call_with_value): Likewise.
13067 (replace_call_with_call_and_fold): Likewise.
13068 (gimple_fold_builtin_memory_op): Likewise.
13069 (gimple_fold_builtin_memset): Likewise.
13070 (gimple_fold_builtin_stpcpy): Likewise.
13071 (gimple_fold_call): Likewise.
13073 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
13075 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
13077 * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
13078 (aarch64_simd_intEI_type_node): Likewise.
13079 (aarch64_simd_builtin_std_type): Remove EImode case.
13080 (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
13081 * config/aarch64/aarch64-modes.def: Remove EImode.
13083 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
13085 * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
13086 Change operand mode from <V_THREE_ELEM> to BLK.
13087 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
13088 (aarch64_vec_store_lanesci_lane<mode>): Likewise.
13089 (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
13090 (aarch64_ld3_lane<mode>): Likewise.
13091 (aarch64_st3_lane<mode>): Likewise.
13092 * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
13094 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
13096 * config/aarch64/aarch64-simd.md
13097 (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
13098 Change all TImode operands to BLKmode.
13099 (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
13100 Change all EImode operands to BLKmode.
13101 (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
13102 Change all OImode operands to BLKmode.
13104 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
13105 and call set_mem_size.
13106 (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
13108 * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
13110 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
13112 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
13114 (aarch64_vec_store_lanesoi_lane<mode>): ...this.
13116 (vec_store_lanesci_lane<mode>): Rename to...
13117 (aarch64_vec_store_lanesci_lane<mode>): ...this.
13119 (vec_store_lanesxi_lane<mode>): Rename to...
13120 (aarch64_vec_store_lanesxi_lane<mode>): ...this.
13122 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
13123 aarch64_st4_lane<mode>): Follow renaming.
13125 2015-09-15 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13127 * config/s390/s390.c (s390_const_operand_ok): Add missing
13130 2015-09-15 Richard Biener <rguenther@suse.de>
13133 * lto-streamer.h (lto_location_cache::current_sysp): Properly
13135 * lto-streamer-out.c (clear_line_info): Likewise.
13137 2015-09-15 Richard Biener <rguenther@suse.de>
13139 * doc/match-and-simplify.texi: Fix wording.
13141 2015-09-15 Bin Cheng <bin.cheng@arm.com>
13143 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
13144 unnecessary type conversion in op1.
13146 2015-09-14 Segher Boessenkool <segher@kernel.crashing.org>
13148 * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
13149 (dup_block_and_redirect): Delete function.
13150 (can_dup_for_shrink_wrapping): New function.
13151 (fix_fake_fallthrough_edge): New function.
13152 (try_shrink_wrapping): Rewrite function.
13153 (convert_to_simple_return): Call fix_fake_fallthrough_edge.
13155 2015-09-14 Rich Felker <dalias@libc.org>
13157 * configure.ac: Change target pattern for sh TLS support
13158 test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
13159 * configure: Regenerate.
13161 2015-09-14 Jeff Law <law@redhat.com>
13163 PR tree-optimization/47679
13164 * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
13165 type rather than void *.
13167 2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
13170 * diagnostic.c (diagnostic_initialize): Do not set
13171 some_warnings_are_errors.
13172 (diagnostic_finish): Use DK_WERROR count instead.
13173 (diagnostic_report_diagnostic): Do not set
13174 some_warnings_are_errors.
13175 * diagnostic.h (struct diagnostic_context): Remove
13176 some_warnings_are_errors.
13178 2015-09-14 Richard Sandiford <richard.sandiford@arm.com>
13180 * config/sparc/predicates.md (const_all_ones_operand): Use
13181 CONSTM1_RTX to simplify definition.
13183 2015-09-14 Oleg Endo <olegendo@gcc.gnu.org>
13186 * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
13189 2015-09-14 Chung-Lin Tang <cltang@codesourcery.com>
13191 * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
13192 OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
13193 OPT_fshow_column to handled saved option cases.
13194 (append_compiler_options): Do not skip the above added options.
13196 2015-09-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13199 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
13200 nopcrelative_literal_loads.
13201 (aarch64_classify_address): Likewise.
13202 (aarch64_constant_pool_reload_icode): Define.
13203 (aarch64_secondary_reload): Handle secondary reloads for
13205 (aarch64_override_options): Handle nopcrelative_literal_loads.
13206 (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
13207 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
13209 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
13210 * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
13211 * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
13213 * doc/invoke.texi (mpc-relative-literal-loads): Document.
13215 2015-09-14 John David Anglin <danglin@gcc.gnu.org>
13217 PR middle-end/67401
13218 * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
13219 sync_compare_and_swap_optab libcall to target_oval.
13221 2015-09-14 Marek Polacek <polacek@redhat.com>
13223 * rtlanal.c (split_double): Cast to unsigned when shifting a negative
13225 * sched-int.h (UNKNOWN_DEP_COST): Likewise.
13227 2015-09-11 Mark Wielaard <mjw@redhat.com>
13230 * toplev.c (check_global_declaration): Check and use
13231 warn_unused_const_variable.
13232 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
13233 (-Wunused-variable): Remove non-constant. For C implies
13234 -Wunused-const-variable.
13235 (-Wunused-const-variable): New.
13237 2015-09-14 Richard Biener <rguenther@suse.de>
13239 * doc/match-and-simplify.texi: Update for changed syntax
13240 of inner ifs and the new switch expression.
13242 2015-09-14 Yuri Rumyantsev <ysrumyan@gmail.com>
13244 * config/i386/haswell.md: New file describing Haswell pipeline.
13245 * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
13246 haswell-like processors.
13247 (ix86_reassociation_width): Increase reassociation width for 64-bit
13248 Haswell processor family.
13249 * config/i386/i386.md: Introduce haswell cpu and include new md file.
13251 2015-09-14 Richard Biener <rguenther@suse.de>
13253 * doc/match-and-simplify.texi: Fixup some formatting issues
13254 and document the 's' flag.
13256 2015-09-13 Olivier Hainque <hainque@adacore.com>
13257 Eric Botcazou <ebotcazou@adacore.com>
13259 * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
13260 gr6 as possible values, defaulting to gr5. Set target_cpu_default2.
13261 * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
13262 (TARGET_CPU_gr5): Likewise.
13263 (TARGET_CPU_gr6): Likewise.
13264 (MULTILIB_DEFAULTS): Likewise.
13265 * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
13266 for mcpu=gr5 and mcpu=gr6.
13267 (MULTILIB_DIRNAMES): Adjust accordingly.
13269 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13271 * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
13272 (mem_ref_p): Likewise.
13273 (outermost_indep_loop): Adjust.
13274 (mem_ref_in_stmt): Likewise.
13275 (determine_max_movement): Likewise.
13276 (mem_ref_alloc): Likewise.
13277 (record_mem_ref_loc): Likewise.
13278 (set_ref_stored_in_loop): Likewise.
13279 (mark_ref_stored): Likewise.
13280 (gather_mem_refs_stmt): Likewise.
13281 (mem_refs_may_alias_p): Likewise.
13282 (for_all_locs_in_loop): Likewise.
13283 (struct rewrite_mem_ref_loc): Likewise.
13284 (rewrite_mem_refs): Likewise.
13285 (struct first_mem_ref_loc_1): Likewise.
13286 (first_mem_ref_loc): Likewise.
13287 (struct sm_set_flag_if_changed): Likewise.
13288 (execute_sm_if_changed_flag_set): Likewise.
13289 (execute_sm): Likewise.
13290 (hoist_memory_references):
13291 (struct ref_always_accessed): Likewise.
13292 (ref_always_accessed_p): Likewise.
13293 (refs_independent_p): Likewise.
13294 (record_dep_loop): Likewise.
13295 (ref_indep_loop_p_1): Likewise.
13296 (ref_indep_loop_p_2): Likewise.
13297 (ref_indep_loop_p): Likewise.
13298 (can_sm_ref_p): Likewise.
13299 (find_refs_for_sm): Likewise.
13300 (tree_ssa_lim_finalize): Likewise.
13302 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13304 * dwarf2out.c (dw_attr_ref): Remove typedef.
13305 (dw_line_info_ref): Likewise.
13306 (pubname_ref): Likewise.
13307 (dw_ranges_ref): Likewise.
13308 (dw_ranges_by_label_ref): Likewise.
13309 (comdat_type_node_ref): Likewise.
13311 (get_AT_low_pc): Likewise.
13312 (get_AT_hi_pc): Likewise.
13313 (get_AT_string): Likewise.
13314 (get_AT_flag): Likewise.
13315 (get_AT_unsigned): Likewise.
13316 (get_AT_ref): Likewise.
13317 (get_AT_file): Likewise.
13318 (remove_AT): Likewise.
13319 (print_die): Likewise.
13320 (check_die): Likewise.
13321 (die_checksum): Likewise.
13322 (attr_checksum_ordered): Likewise.
13323 (struct checksum_attributes): Likewise.
13324 (collect_checksum_attributes): Likewise.
13325 (die_checksum_ordered): Likewise.
13326 (same_die_p): Likewise.
13327 (is_declaration_die): Likewise.
13328 (clone_die): Likewise.
13329 (clone_as_declaration): Likewise.
13330 (copy_declaration_context): Likewise.
13331 (break_out_comdat_types): Likewise.
13332 (copy_decls_walk): Likewise.
13333 (output_location_lists): Likewise.
13334 (external_ref_hasher::hash): Likewise.
13335 (optimize_external_refs_1): Likewise.
13336 (build_abbrev_table): Likewise.
13337 (size_of_die): Likewise.
13338 (unmark_all_dies): Likewise.
13339 (size_of_pubnames): Likewise.
13340 (output_die_abbrevs): Likewise.
13341 (output_die): Likewise.
13342 (output_pubnames): Likewise.
13343 (add_ranges_num): Likewise.
13344 (add_ranges_by_labels): Likewise.
13345 (add_high_low_attributes): Likewise.
13346 (gen_producer_string): Likewise.
13347 (dwarf2out_set_name): Likewise.
13348 (new_line_info_table): Likewise.
13349 (prune_unused_types_walk_attribs): Likewise.
13350 (prune_unused_types_update_strings): Likewise.
13351 (prune_unused_types): Likewise.
13352 (resolve_addr): Likewise.
13353 (optimize_location_lists_1): Likewise.
13354 (index_location_lists): Likewise.
13355 (dwarf2out_finish): Likewise.
13357 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13359 * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
13361 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13363 * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
13364 (dump_asserts_for): Adjust.
13365 (register_new_assert_for): Likewise.
13366 (process_assert_insertions): Likewise.
13367 (insert_range_assertions): Likewise.
13369 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13371 * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
13372 and remove typedef.
13373 (new_temp_expr_table): Adjust.
13374 (free_temp_expr_table): Likewise.
13375 (version_to_be_replaced_p): Likewise.
13376 (make_dependent_on_partition): Likewise.
13377 (add_to_partition_kill_list): Likewise.
13378 (remove_from_partition_kill_list): Likewise.
13379 (add_dependence): Likewise.
13380 (finished_with_expr): Likewise.
13381 (process_replaceable): Likewise.
13382 (kill_expr): Likewise.
13383 (kill_virtual_exprs): Likewise.
13384 (mark_replaceable): Likewise.
13385 (find_replaceable_in_bb): Likewise.
13386 (find_replaceable_exprs): Likewise.
13387 (debug_ter): Likewise.
13389 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13391 * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
13392 (struct btr_user): Rename from btr_user_s.
13393 (struct btr_def): Rename from btr_def_s.
13394 (find_btr_def_group): Adjust.
13395 (add_btr_def): Likewise.
13396 (new_btr_user): Likewise.
13397 (note_other_use_this_block): Likewise.
13398 (compute_defs_uses_and_gen): Likewise.
13399 (link_btr_uses): Likewise.
13400 (build_btr_def_use_webs): Likewise.
13401 (block_at_edge_of_live_range_p): Likewise.
13402 (btr_def_live_range): Likewise.
13403 (combine_btr_defs): Likewise.
13404 (move_btr_def): Likewise.
13405 (migrate_btr_def): Likewise.
13406 (migrate_btr_defs): Likewise.
13408 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13410 * var-tracking.c (shared_hash_def): Rename to shared_hash.
13411 (shared_hash): Remove typedef.
13412 (struct dataflow_set): Adjust.
13413 (shared_hash_unshare): Likewise.
13414 (dataflow_set_merge): Likewise.
13415 (vt_initialize): Likewise.
13416 (vt_finalize): Likewise.
13418 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13420 * var-tracking.c (struct location_chain): Rename from
13421 location_chain_def.
13422 (struct variable_part): Adjust.
13423 (variable_htab_free): Likewise.
13424 (unshare_variable): Likewise.
13425 (get_init_value): Likewise.
13426 (get_addr_from_local_cache): Likewise.
13427 (drop_overlapping_mem_locs): Likewise.
13428 (val_reset): Likewise.
13429 (struct variable_union_info): Likewise.
13430 (variable_union): Likewise.
13431 (find_loc_in_1pdv): Likewise.
13432 (insert_into_intersection): Likewise.
13433 (intersect_loc_chains): Likewise.
13434 (canonicalize_loc_order_check): Likewise.
13435 (canonicalize_values_mark): Likewise.
13436 (canonicalize_values_star): Likewise.
13437 (canonicalize_vars_star): Likewise.
13438 (variable_merge_over_cur): Likewise.
13439 (remove_duplicate_values): Likewise.
13440 (variable_post_merge_new_vals): Likewise.
13441 (variable_post_merge_perm_vals): Likewise.
13442 (find_mem_expr_in_1pdv): Likewise.
13443 (dataflow_set_preserve_mem_locs): Likewise.
13444 (dataflow_set_remove_mem_locs): Likewise.
13445 (variable_part_different_p): Likewise.
13446 (onepart_variable_different_p): Likewise.
13447 (find_src_set_src): Likewise.
13448 (dump_var): Likewise.
13449 (set_slot_part): Likewise.
13450 (clobber_slot_part): Likewise.
13451 (delete_slot_part): Likewise.
13452 (vt_expand_var_loc_chain): Likewise.
13453 (emit_note_insn_var_location): Likewise.
13454 (vt_finalize): Likewise.
13456 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13458 * dse.c (store_info_t): Remove typedef.
13459 (group_info_t): Likewise.
13460 (const_group_info_t): Likewise.
13461 (deferred_change_t): Likewise.
13462 (get_group_info): Adjust.
13463 (free_store_info): Likewise.
13464 (canon_address): Likewise.
13465 (clear_rhs_from_active_local_stores): Likewise.
13466 (record_store): Likewise.
13467 (replace_read): Likewise.
13468 (check_mem_read_rtx): Likewise.
13469 (scan_insn): Likewise.
13470 (remove_useless_values): Likewise.
13471 (dse_step1): Likewise.
13472 (dse_step2_init): Likewise.
13473 (dse_step2_nospill): Likewise.
13474 (scan_stores_nospill): Likewise.
13475 (scan_reads_nospill): Likewise.
13476 (dse_step3_exit_block_scan): Likewise.
13477 (dse_step3): Likewise.
13478 (dse_step5_nospill): Likewise.
13479 (dse_step6): Likewise.
13481 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13483 * alias.c (alias_set_entry_d): Rename to alias_set_entry.
13484 (alias_set_entry): Remove typedef.
13485 (alias_set_subset_of): Adjust.
13486 (alias_sets_conflict_p): Likewise.
13487 (init_alias_set_entry): Likewise.
13488 (get_alias_set): Likewise.
13489 (new_alias_set): Likewise.
13490 (record_alias_subset): Likewise.
13492 2015-09-13 Gerald Pfeifer <gerald@pfeifer.com>
13494 * doc/install.texi (Downloading the source): Mark up
13495 contrib/download_prerequisites properly and drop leading "./".
13497 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13499 * config/arc/arc.h: Remove define of STRUCT_VALUE.
13500 * config/lm32/lm32.h: Likewise.
13501 * config/mep/mep.h: Likewise.
13502 * config/visium/visium.h: Likewise.
13503 * system.h: Poison STRUCT_VALUE macro.
13505 2015-09-12 John David Anglin <danglin@gcc.gnu.org>
13507 * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
13508 CONSTANT_P operands.
13510 2015-09-11 David S. Miller <davem@davemloft.net>
13512 * config/sparc/constraints.md: Make "U" constraint a real register
13514 * config/sparc/sparc.c (TARGET_LRA_P): Define.
13515 (D_MODES, DF_MODES): Add missing cast.
13516 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
13517 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
13518 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
13520 * config/sparc/sparc.h (PROMOTE_MODE): Define.
13521 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
13522 provide these insn when flag_pic.
13524 2015-09-11 Jeff Law <law@redhat.com>
13526 PR tree-optimization/47679
13527 * tree-ssa-dom.c (struct cond_equivalence): Update comment.
13528 * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
13529 member with m_. Update inline member functions as necessary. Add
13531 * tree-ssa-scopedtables.c: Update const_and_copies's member
13532 functions to use m_ prefix to access the stack.
13534 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
13536 * graphite-optimize-isl.c (disable_tiling): Remove.
13537 (get_schedule_for_band): Do not use disable_tiling.
13538 (get_prevector_map): Delete function.
13539 (enable_polly_vector): Remove.
13540 (get_schedule_for_band_list): Remove dead code.
13542 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
13544 * graphite-optimize-isl.c (get_tile_map): Refactor.
13545 (get_schedule_for_band): Same.
13546 (getScheduleForBand): Same.
13547 (get_prevector_map): Same.
13548 (get_schedule_for_band_list): Same.
13549 (get_schedule_map): Same.
13550 (get_single_map): Same.
13551 (apply_schedule_map_to_scop): Same.
13552 (optimize_isl): Same.
13554 2015-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13557 * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
13559 * config/aarch64/iterators.md (GPF_TF_F16): New.
13562 2015-09-10 Nathan Sidwell <nathan@acm.org>
13564 * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
13565 (nvptx_reorg): Adjust comments.
13567 2015-09-15 John David Anglin <danglin@gcc.gnu.org>
13570 * configure.ac: Check if setenv and unsetenv are declared.
13571 * configure: Rebuild.
13572 * config.in: Rebuild.
13573 * system.h: Declare setenv and unsetenv if not declared.
13575 2015-09-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13577 * config/rs6000/rs6000.c (swap_web_entry): Update preceding
13578 commentary to simplify permute mask adjustment equation.
13579 (special_handling_values): Add SH_VPERM.
13580 (const_load_sequence_p): New function.
13581 (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
13582 the mask loaded from the constant pool.
13583 (adjust_vperm): New function.
13584 (handle_special_swappables): Call adjust_vperm.
13585 (dump_swap_insn_table): Handle SH_VPERM.
13587 2015-09-10 H.J. Lu <hongjiu.lu@intel.com>
13589 * shrink-wrap.c (requires_stack_frame_p): Remove static.
13590 * shrink-wrap.h (requires_stack_frame_p): Put back.
13592 2015-09-10 Richard Sandiford <richard.sandiford@arm.com>
13594 * reload1.c (elimination_costs_in_insn): Locally turn
13595 -Wmaybe-uninitialized into a warning.
13597 2015-09-10 Segher Boessenkool <segher@kernel.crashing.org>
13599 * shrink-wrap.c (requires_stack_frame_p): Make static.
13600 (prepare_shrink_wrap): Likewise.
13601 (dup_block_and_redirect): Likewise.
13602 * shrink-wrap.h: Remove declarations of those functions.
13604 2015-09-10 Mark Wielaard <mjw@redhat.com>
13606 * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
13608 2015-09-10 Oleg Endo <olegendo@gcc.gnu.org>
13611 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
13612 missing simplify_gen_subreg.
13614 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13616 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
13617 the vector element is bigger than 64 bit.
13619 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13621 * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
13622 ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
13624 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13626 * config/s390/s390.c: Add V1TImode to constant pool modes.
13628 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13631 * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
13632 predicate. Set predicable_short_it attr to "no".
13634 2015-09-10 Jiong Wang <jiong.wang@arm.com>
13636 PR rtl-optimization/67421
13637 * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
13638 left wide shift tranformation.
13640 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
13642 * common/config/arc/arc-common.c: Remove references to A5.
13643 * config/arc/arc-opts.h: Likewise.
13644 * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
13645 * config/arc/arc.opt, config/arc/constraints.md: Likewise.
13646 * config/arc/t-arc-newlib: Likewise.
13648 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
13650 * config/arc/arc.md (length): Fix attribute length for conditional
13651 executed instructions with long immediate.
13653 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13655 * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
13656 type for second alternative.
13658 2015-09-10 Markus Trippelsdorf <markus@trippelsdorf.de>
13660 * doc/invoke.texi (Downloading GCC): Mention
13661 contrib/download_prerequisites script.
13663 2015-09-10 Jakub Jelinek <jakub@redhat.com>
13666 * gimplify.c (gimplify_omp_for): If inner stmt is not found
13667 for combined loop, assert seen_error () and return GS_ERROR.
13669 PR middle-end/67521
13670 * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
13671 if decl is already in outer->variables.
13673 PR middle-end/67517
13674 * gimplify.c (gimplify_scan_omp_clauses): Instead of
13675 asserting that decl is not specified in octx->variables,
13676 break out of the loop if it is.
13679 * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
13680 iterator is not explicitly determined, but is defined inside
13681 of the combined workshare region, handle it like if it has
13682 DECL_EXPR in OMP_FOR_PRE_BODY.
13684 2015-09-09 Nathan Sidwell <nathan@acm.org>
13686 * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
13687 (*cmp<mode>): Add assembler spacing.
13688 (setcc_int<mode>, set_cc_float<mode>): Likewise.
13689 * config/nvptx/nvptx.c (nvptx_option_override): Override debug
13691 (write_func_decl_from_insn): Refactor argument loops & comma emission.
13692 (nvptx_expand_call): Likewise.
13693 (nvptx_output_call_insn): Likewise.
13694 (nvptx_reorg_subreg): Add spacing.
13696 2015-09-09 Marek Polacek <polacek@redhat.com>
13698 PR middle-end/67512
13699 * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
13702 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
13705 * doc/invoke.texi ([Wsubobject-linkage]): Document.
13707 2015-09-09 Tom de Vries <tom@codesourcery.com>
13709 * params-list.h: Add missing copyright notice.
13711 2015-09-09 Nathan Sidwell <nathan@acm.org>
13713 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
13714 sel_truesi, not andsi.
13716 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13718 * config/arm/arm.md (*subsi3_compare0): Rename to...
13719 (subsi3_compare0): ... This.
13720 (modsi3): New define_expand.
13721 * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
13722 when operand is power of 2.
13724 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13726 * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
13727 (*neg<mode>2_compare0): Rename to...
13728 (neg<mode>2_compare0): ... This.
13729 * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
13730 Move check for speed inside the if-then-elses. Reflect
13731 CSNEG sequence in MOD by power of 2 case.
13733 2015-09-09 Alan Modra <amodra@gmail.com>
13736 * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
13737 reload replacement for PRE_MODIFY address reg.
13739 2015-09-09 Sebastian Pop <s.pop@samsung.com>
13741 PR tree-optimization/53852
13742 * config.in: Regenerate.
13743 * configure: Regenerate.
13744 * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
13745 * graphite-optimize-isl.c (optimize_isl): Stop computation when
13746 PARAM_MAX_ISL_OPERATIONS is reached.
13747 * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
13748 * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
13749 result equal to isl_stat_ok as the status now can be isl_error_quota.
13750 (subtract_commutative_associative_deps): Same.
13751 (compute_deps): Same.
13753 2015-09-08 Aditya Kumar <hiraditya@msn.com>
13754 Sebastian Pop <s.pop@samsung.com>
13756 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
13757 Return the parameter if it was saved in corresponding
13758 parameter_rename_map of the region.
13759 (copy_def): Copy def from sese region to the newly created region.
13760 (copy_internal_parameters): Copy all the internal parameters defined
13761 within a region to the newly created region.
13762 (graphite_regenerate_ast_isl): Copy parameters to the new region before
13763 translating isl to gimple.
13764 * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
13765 the loop-nest does not have any data-references.
13766 (build_graphite_scops): Create a scop only when there is at least one
13768 (contains_only_close_phi_nodes): Deleted.
13769 (print_graphite_scop_statistics): Deleted
13770 (print_graphite_statistics): Deleted
13771 (limit_scops): Deleted.
13772 (build_scops): Removed call to limit_scops.
13773 * sese.c (new_sese): Construct.
13774 (free_sese): Destruct.
13775 (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
13777 (set_rename): Pass sese region so that parameters inside the region can
13778 be added to its parameter_rename_map.
13779 (rename_uses): Pass sese region.
13780 (graphite_copy_stmts_from_block): Do not copy parameters that have been
13781 generated in the header of the scop. For each SSA_NAME in the
13782 parameter_rename_map rename its usage.
13783 (invariant_in_sese_p_rec): Return false if tree t is defined outside
13785 (scalar_evolution_in_region): If the tree t is invariant just return t.
13786 * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
13787 struct sese to keep track of all the parameters which need renaming.
13788 * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
13790 * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
13792 2015-09-08 Tom de Vries <tom@codesourcery.com>
13794 * Makefile.in (generated_files): Add params.list.
13795 (params.list, s-params.list): Add rule.
13796 * params.h (enum compiler_param): Include params-list.h. Move define
13797 DEFPARAM, include params.def and undef DEFPARAM ...
13798 * params-list.h: ... here. New file.
13800 2015-09-08 David Malcolm <dmalcolm@redhat.com>
13802 * pretty-print.h (printer_fn): Fix typo in comment.
13804 2015-09-07 Jeff Law <law@redhat.com>
13806 * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
13808 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13810 * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
13811 (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
13812 (arm_neon_fp16_hw): New.
13814 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13816 * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
13817 UNITS_PER_WORD >= 4.
13819 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13821 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
13822 aarch64_simd_vec_unpacks_hi_<mode>): New insn.
13823 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
13824 (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
13825 (aarch64_float_extend_lo_v2df): Rename to...
13826 (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
13828 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
13829 (float_extend_lo): Add v4sf.
13831 * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
13832 * config/aarch64/iterators.md (VQ_HSF): New iterator.
13833 (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
13834 (Vwide): New mode_attr.
13836 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13838 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
13839 aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
13840 aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
13841 vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
13842 V4HF and V8HF variants to iterator.
13844 * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
13846 * config/aarch64/iterators.md (VDQF_F16): New.
13847 (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
13849 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13851 * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
13852 vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
13853 vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
13854 vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
13855 vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
13856 vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
13857 vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
13858 vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
13859 vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
13860 vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
13861 vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
13862 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
13863 vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
13864 vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
13865 vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
13866 vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
13867 vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
13868 vld1q_dup_f16): New.
13870 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13872 * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
13873 Reparameterize to...
13874 (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
13875 (aarch64_float_truncate_hi_v4sf): Reparameterize to...
13876 (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
13878 * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
13880 (float_truncate_lo_): Use BUILTIN_VDF iterator.
13882 * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
13884 * config/aarch64/iterators.md (VDF, Vdtype): New.
13885 (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
13887 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13889 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
13890 * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
13891 (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
13892 Add __builtin_aarch64_simd_hf.
13893 * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
13894 float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
13895 vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
13896 vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
13897 vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
13898 vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
13899 vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
13900 vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
13901 vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
13903 * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
13904 V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
13905 (VDC, Vdbl): Add V4HF.
13907 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13909 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
13910 V4HFmode and V8HFmode.
13911 (aarch64_split_simd_move): Add case for V8HFmode.
13912 * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
13913 (aarch64_simd_builtin_std_type): Handle HFmode.
13914 (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
13916 * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
13917 aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
13918 (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
13920 * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
13923 * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
13924 * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
13926 (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
13927 vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
13928 vst1q_lane_f16): New.
13929 * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
13930 (VALLDI_F16, VALL_F16): New.
13931 (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
13932 Add cases for V4HF and V8HF.
13933 (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
13935 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13937 * config/arm/arm-builtins.c (VAR11, VAR12): New.
13938 * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
13939 vld4_dup): Add v4hf variant.
13940 (vget_high, vget_low): Add v8hf variant.
13941 (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
13942 vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
13943 v4hf and v8hf variants.
13945 * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
13947 (V_DOUBLE): Add case for V4HF.
13949 (V_HALF): Add case for V8HF.
13950 (VDQX): Add V4HF, V8HF.
13951 (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
13952 V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
13954 * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
13955 neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
13956 vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
13957 neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
13958 neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
13959 neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
13960 vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
13961 neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
13962 neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
13964 (neon_vcreate, neon_vreinterpretv8qi<mode>,
13965 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
13966 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
13967 Change VDX to VD_RE.
13969 (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
13970 neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
13971 Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
13973 * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
13974 float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
13975 vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
13976 vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
13977 vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
13978 vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
13979 vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
13980 vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
13981 vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
13983 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13985 * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
13986 vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
13987 vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
13988 vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
13989 vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
13990 vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
13991 vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
13992 vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
13993 vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
13994 vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
13997 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
13999 * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
14001 * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
14003 * config/arm/arm-builtins.c (v8hf_UP): New.
14004 (arm_init_simd_builtin_types): Initialise Float16x8_t.
14006 * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
14008 * config/arm/arm_neon.h (float16x8_t): New typedef.
14010 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
14012 * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
14013 vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
14014 vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
14015 vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
14016 vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
14017 vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
14018 vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
14019 vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
14020 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
14021 vreinterpret_u16_f16, vreinterpret_u32_f16): New.
14023 2015-09-07 Ilya Verbin <ilya.verbin@intel.com>
14025 * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
14026 non-alphanumeric characters in the symbol name.
14028 2015-09-07 Marek Polacek <polacek@redhat.com>
14030 PR inline-asm/67448
14031 * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
14034 2015-09-07 Marek Polacek <polacek@redhat.com>
14036 * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
14038 2015-09-04 Paolo Bonzini <bonzini@gnu.org>
14040 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
14043 2015-09-04 Jakub Jelinek <jakub@redhat.com>
14045 PR middle-end/67452
14046 * tree-ssa-live.c: Include cfgloop.h.
14047 (remove_unused_locals): Clear loop->simduid if simduid is about
14048 to be removed from cfun->local_decls.
14050 2015-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
14053 * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
14056 2015-09-04 Tom de Vries <tom@codesourcery.com>
14058 * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
14060 2015-09-04 Jeff Law <law@redhat.com>
14062 * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
14063 unnecessary constructor. It's now trivial and implemented inside...
14064 * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
14065 constructor. Add comments to various methods. Remove unused
14067 * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
14068 * tree-vrp.c (identify_jump_threads): Likewise.
14069 * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
14070 indentation issues.
14071 (thread_across_edge): Similarly.
14072 (record_temporary_equivalences_from_stmts_at_dest): Remove unused
14073 arguments in constructor call.
14075 2015-09-04 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
14077 * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
14078 temp path contains a '-'.
14080 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
14081 Petr Murzin <petr.murzin@intel.com>
14082 Kirill Yukhin <kirill.yukhin@intel.com>
14084 * config/i386/i386-builtin-types.def
14085 (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
14086 (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
14087 (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
14088 (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
14089 * config/i386/i386.c
14090 (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
14091 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
14092 IX86_BUILTIN_SCATTERALTDIV16SI.
14093 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
14094 __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
14095 __builtin_ia32_scatteraltdiv8si.
14096 (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
14097 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
14098 IX86_BUILTIN_SCATTERALTDIV16SI.
14099 (ix86_vectorize_builtin_scatter): New.
14100 (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
14101 ix86_vectorize_builtin_scatter.
14103 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
14104 Petr Murzin <petr.murzin@intel.com>
14105 Kirill Yukhin <kirill.yukhin@intel.com>
14107 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
14108 * doc/tm.texi: Regenerate.
14109 * target.def: Add scatter builtin.
14110 * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
14111 for loads/stores in case of gather/scatter accordingly.
14112 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
14113 STMT_VINFO_GATHER_P(S).
14114 (vect_check_gather): Rename to ...
14115 (vect_check_gather_scatter): this.
14116 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
14117 STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
14118 (vect_check_gather_scatter): Use it instead of vect_check_gather.
14119 (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
14120 variable and new checkings for it accordingly.
14121 * tree-vect-stmts.c
14122 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
14123 STMT_VINFO_GATHER_P(S).
14124 (vect_check_gather_scatter): Use it instead of vect_check_gather.
14125 (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
14127 2015-09-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
14129 * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
14131 (mulv16qi3): New define_expand.
14133 2015-09-03 Martin Sebor <msebor@redhat.com>
14136 * doc/extend.texi (Other Builtins): Document when the address
14137 of a built-in function can be taken.
14139 2015-09-03 Richard Biener <rguenther@suse.de>
14141 * dwarf2out.c (flush_limbo_die_list): Split out from ...
14142 (dwarf2out_early_finish): ... here.
14143 (dwarf2out_finish): Do not call dwarf2out_early_finish but
14144 flush_limbo_die_list. Assert we have no deferred asm names.
14146 2015-09-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14148 * optabs.c (expand_binop): Don't create a broadcast vector with a
14149 source element wider than the inner mode.
14151 2015-09-03 Richard Biener <rguenther@suse.de>
14153 * varasm.c (output_constant): Use fold_convert instead of
14156 2015-09-03 Tom de Vries <tom@codesourcery.com>
14158 PR tree-optimization/65637
14159 * omp-low.c (expand_omp_for_static_chunk): Handle case that
14160 fin_bb has 2 predecessors.
14162 2015-09-03 Tom de Vries <tom@codesourcery.com>
14164 PR tree-optimization/65637
14165 * omp-low.c (find_phi_with_arg_on_edge): New function.
14166 (expand_omp_for_static_chunk): Fix inner loop phi.
14168 2015-09-03 Tom de Vries <tom@codesourcery.com>
14170 PR tree-optimization/65637
14171 * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
14174 2015-09-03 Tom de Vries <tom@codesourcery.com>
14176 * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
14178 2015-09-03 Tom de Vries <tom@codesourcery.com>
14180 * doc/invoke.texi (parloops-chunk-size): Add item.
14181 * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
14182 * tree-parloops.c: Include params.h.
14183 (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
14184 param parloops-chunk-size is used.
14186 2015-09-03 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
14188 PR middle-end/67351
14189 * fold-const.c (fold_binary_loc) : Move
14190 Transform (x >> c) << c into x & (-1<<c) or
14191 transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
14192 types using simplify and match.
14193 * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
14194 (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
14196 2015-09-03 Richard Biener <rguenther@suse.de>
14199 * tree-ssa-structalias.c (ctor_for_analysis): New function.
14200 (create_variable_info_for_1): Use ctor_for_analysis instead
14201 of get_constructor.
14202 (create_variable_info_for): Likewise.
14204 2015-09-02 Charles Baylis <charles.baylis@linaro.org>
14207 * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
14208 in new callgraph edge.
14210 2015-09-02 Christophe Lyon <christophe.lyon@linaro.org>
14215 * config/aarch64/aarch64-simd.md
14216 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
14217 gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
14218 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
14219 gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
14221 2015-09-02 Alan Modra <amodra@gmail.com>
14223 * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
14224 * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
14225 (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
14227 2015-09-02 Alan Modra <amodra@gmail.com>
14230 * config/rs6000/predicates.md (current_file_function_operand): Don't
14231 return true for weak symbols.
14232 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
14234 2015-09-01 Matthew Fortune <matthew.fortune@imgtec.com>
14235 Andrew Bennett <andrew.bennett@imgtec.com>
14237 * config/mips/mips-opts.h (mips_cb_setting): New enum.
14238 * config/mips/mips-protos.h: Add definitions for
14239 mips_output_jump and mips_output_equal_conditional_branch
14240 * config/mips/mips.c (MIPS_JR): Change to support the
14242 (mips_emit_compare): Add support for the MIPS R6 conditional
14244 (mips_process_sync_loop): Likewise.
14245 (mips_output_order_conditional_branch): Likewise.
14246 (mips16_build_call_stub): Change MIPS_CALL to
14248 (mips_print_operand_punctuation): Update 's' case to only
14249 apply to micromips r2.
14250 (mips_adjust_insn_length): Add support for forbidden slot
14252 (mips_avoid_hazard): Likewise.
14253 (mips_reorg_process_insns): Likewise.
14254 (mips_output_jump): New function.
14255 (mips_output_equal_conditional_branch): Likewise.
14256 (mips_output_conditional_branch): Use jrc/bc if compact
14257 branch support is enabled. Ensure the forbidden slots
14258 between the two branch instructions is filled with a nop.
14259 (mips_option_override): Add support to process the compact
14260 branch option and set the correct defaults. Prevent
14261 non-explict relocs being using for MIPS R6.
14262 (mips_trampoline_init): Add compact branch support.
14263 (mips_mult_zero_zero_cost): Allow zero initialisation of
14264 accumulators with TARGET_DSP.
14265 * config/mips/mips.h (TARGET_CB_NEVER): New define.
14266 (TARGET_CB_MAYBE): New define.
14267 (TARGET_CB_ALWAYS): New define.
14268 (ISA_HAS_DELAY_SLOTS): New define.
14269 (ISA_HAS_COMPACT_BRANCHES): New define.
14270 (ISA_HAS_JRC): New define.
14271 (MIPS_BRANCH_C): New define.
14272 (MIPS_CALL): Removed.
14273 (MICROMIPS_J): Removed.
14274 * config/mips/mips.md (compact_form): New attr.
14275 (hazard): Add support for forbidden slots.
14276 (define_delay): Add support for compact branches.
14277 (*branch_order<mode>): Likewise.
14278 (*branch_order<mode>_inverted): Likewise.
14279 (*branch_equality<mode>): Likewise.
14280 (*branch_equality<mode>_inverted): Likewise.
14281 (*jump_absolute): Likewise.
14282 (*jump_pic): Likewise.
14283 (indirect_jump): Use mips_output_jump to produce assembly output.
14284 (tablejump_<mode>"): Likewise.
14285 (*<optab>"): Likewise.
14286 (<optab>_internal): Likewise.
14287 (sibcall_internal): Likewise.
14288 (sibcall_value_internal): Likewise.
14289 (sibcall_value_multiple_internal): Likewise.
14290 (call_internal): Likewise.
14291 (call_split): Likewise.
14292 (call_internal_direct): Likewise.
14293 (call_direct_split): Likewise.
14294 (call_value_internal): Likewise.
14295 (call_value_split): Likewise.
14296 (call_value_internal_direct): Likewise.
14297 (call_value_direct_split): Likewise.
14298 (call_value_multiple_internal): Likewise.
14299 (call_value_multiple_split): Likewise.
14300 (mips_get_fcsr_mips16_<mode>): Likewise.
14301 (mips_set_fcsr_mips16_<mode>): Likewise.
14302 (tls_get_tp_mips16_<mode>): Likewise.
14303 * config/mips/mips.opt: Add -mcompact-branches option.
14304 * config/mips/predicates.md (order_operator): Ensure the
14305 conditional compact branches are only used if the ISA them.
14306 * doc/invoke.texi: Document -mcompact-branches option.
14308 2015-09-01 Vladimir Makarov <vmakarov@redhat.com>
14311 * lra-lives.c (process_bb_lives): Process move pseudos with the
14312 same value for copies and preferences
14313 * lra-constraints.c (match_reload): Create match reload pseudo
14314 with the same value from single dying input pseudo.
14316 2015-09-01 Ilya Enkovich <enkovich.gnu@gmail.com>
14319 * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
14321 2015-09-01 Aldy Hernandez <aldyh@redhat.com>
14323 * trans-mem.c: Add contributed-by.
14324 * trans-mem.h: Same.
14326 2015-09-01 Richard Biener <rguenther@suse.de>
14328 * expr.c (expand_expr_real_1): For expanding TERed defs
14329 set the current location to that of the def if not UNKNOWN.
14331 2015-09-01 David Sherwood <david.sherwood@arm.com>
14333 * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
14335 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14337 * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
14338 then_cost, else_cost fields. Change branch_cost field to unsigned int.
14339 (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
14340 Include rtl-iter.h.
14341 (noce_simple_bbs): New function.
14342 (noce_try_move): Bail if basic blocks are not simple.
14343 (noce_try_store_flag): Likewise.
14344 (noce_try_store_flag_constants): Likewise.
14345 (noce_try_addcc): Likewise.
14346 (noce_try_store_flag_mask): Likewise.
14347 (noce_try_cmove): Likewise.
14348 (noce_try_minmax): Likewise.
14349 (noce_try_abs): Likewise.
14350 (noce_try_sign_mask): Likewise.
14351 (noce_try_bitop): Likewise.
14352 (bbs_ok_for_cmove_arith): New function.
14353 (noce_emit_all_but_last): Likewise.
14354 (noce_emit_insn): Likewise.
14355 (noce_emit_bb): Likewise.
14356 (noce_try_cmove_arith): Handle non-simple basic blocks.
14357 (insn_valid_noce_process_p): New function.
14358 (contains_mem_rtx_p): Likewise.
14359 (bb_valid_for_noce_process_p): Likewise.
14360 (noce_process_if_block): Allow non-simple basic blocks
14363 2015-08-31 Alan Lawrence <alan.lawrence@arm.com>
14365 * tree-ssa-dom.c (record_equivalences_from_phis,
14366 record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
14367 (lookup_avail_expr): Likewise, and remove comment and unused temp.
14369 2015-09-01 Nick Clifton <nickc@redhat.com>
14371 * config/msp430/msp430.opt (mcpu): Fix typo.
14373 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14375 * config/aarch64/aarch64.c (aarch64_set_current_function):
14376 Re-layout any vector parameters have non-simd layout.
14377 * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
14379 (aarch64_simd_expand_args): Delete call to the above.
14381 2015-08-31 Mike Frysinger <vapier@gentoo.org>
14383 * doc/invoke.texi (asan-stack): Add space before option.
14385 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
14387 * tree.h (zerop): New function.
14388 * tree.c (zerop): Likewise.
14389 (element_precision): Handle expressions.
14390 * match.pd (define_predicates): Add zerop.
14391 (x <= +Inf): Fix comment.
14392 (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
14393 * fold-const.c (fold_binary_loc): ... here. Remove.
14395 2015-08-31 Richard Biener <rguenther@suse.de>
14397 PR middle-end/67381
14398 * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
14400 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
14402 * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
14403 (CEXPI): New operator list.
14404 (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
14405 imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
14407 * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
14409 2015-08-31 Tom de Vries <tom@codesourcery.com>
14411 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
14412 (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
14414 (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
14415 (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
14416 (rewrite_into_loop_closed_ssa): ... here.
14417 (replace_uses_in_dominated_bbs): Remove function.
14418 (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
14419 rewrite_into_loop_closed_ssa_1.
14421 2015-08-31 Michael Matz <matz@suse.de>
14423 * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
14424 enter entry and exit blocks for reverse post order.
14426 2015-08-31 Richard Biener <rguenther@suse.de>
14428 * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
14429 (lto_location_cache::current_sysp): Likewise.
14430 (output_block::current_sysp): Likewise.
14431 * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
14432 (lto_location_cache::apply_location_cache): Properly record
14433 system header locations.
14434 (lto_location_cache::input_location): Input whether a file
14435 is a system header.
14436 * lto-streamer-out.c (lto_output_location): Stream whether a file
14437 is a system header.
14439 2015-08-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14442 * gcc.c (env_manager::xput): Replace strndup by xstrndup.
14444 2015-08-31 Tom de Vries <tom@codesourcery.com>
14446 * tree-ssa-loop-manip.c (find_uses_to_rename_use)
14447 (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
14448 Improve function header comments.
14450 2015-08-30 Michael Collison <michael.collison@linaro.org>
14453 * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
14456 2015-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14458 * config/rs6000/rs6000.c (swap_web_entry): Enlarge
14459 special_handling bitfield.
14460 (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
14461 (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
14462 that represents a general xxpermdi.
14463 (insn_is_swappable_p): Add handling for vec_concat of two
14464 doublewords, which maps to a specific xxpermdi.
14465 (adjust_xxpermdi): New function.
14466 (adjust_concat): Likewise.
14467 (handle_special_swappables): Call adjust_xxpermdi and
14469 (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
14471 2015-08-30 Rich Felker <dalias@libc.org>
14473 * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
14474 case instead of sh[123456ble]-*-*.
14476 2015-08-29 Anatoly Sokolov <aesok@post.ru>
14478 * ira.c (print_unform_and_important_classes,
14479 print_translated_classes): Remove reg_class_names static array.
14480 (print_unform_and_important_classes): Rename to ...
14481 (print_uniform_and_important_classes): ... this.
14482 (ira_debug_allocno_classes): Update accordingly.
14484 2015-08-29 Tom de Vries <tom@codesourcery.com>
14486 PR tree-optimization/46193
14487 * omp-low.c (omp_reduction_init): Handle pointer type for min or max
14490 2015-08-28 Jeff Law <law@redhat.com>
14493 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
14494 unable to find X NE 0 in the tables, return X as the simplified
14496 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
14497 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
14499 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
14500 after removing the control flow statement and unnecessary edges.
14502 2015-08-28 Alan Lawrence <alan.lawrence@arm.com>
14505 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
14507 PR tree-optimization/67283
14508 * tree-sra.c (type_consists_of_records_p): Rename to...
14509 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
14511 (completely_scalarize_record): Rename to...
14512 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
14514 (scalarize_elem): New.
14516 2015-08-28 Jiong Wang <jiong.wang@arm.com>
14518 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
14519 SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
14520 (aarch64_symbol_type): Likewise.
14521 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
14523 (aarch64_expand_mov_immediate): Likewise.
14524 (aarch64_print_operand): Likewise.
14525 (aarch64_classify_tls_symbol): Likewise.
14527 2015-08-28 Richard Biener <rguenther@suse.de>
14529 * cgraphunit.c (symbol_table::compile): Move early debug generation
14531 (symbol_table::finalize_compilation_unit): ... back here and
14532 add a !seen_error () guard.
14534 2015-08-27 Sebastian Pop <s.pop@samsung.com>
14536 * toplev.c (process_options): Do not use flag_loop_block,
14537 flag_loop_interchange, and flag_loop_strip_mine. Add check for
14538 flag_loop_optimize_isl.
14540 2015-08-27 Sebastian Pop <s.pop@samsung.com>
14542 * Makefile.in (OBJS): Remove graphite-blocking.o and
14543 graphite-interchange.o.
14544 * common.opt (floop-strip-mine, floop-interchange, floop-block):
14545 Alias of floop-nest-optimize.
14546 * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
14547 Document as alias of -floop-nest-optimize.
14548 * graphite-blocking.c: Remove.
14549 * graphite-interchange.c: Remove.
14550 * graphite-optimize-isl.c: Include dumpfile.h.
14551 (getScheduleForBand): Add dump for tiled loops. Use
14552 PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
14553 * graphite-poly.c (scop_max_loop_depth): Remove.
14554 (print_scattering_function_1): Remove.
14555 (print_scattering_function): Remove.
14556 (print_scattering_functions): Remove.
14557 (debug_scattering_function): Remove.
14558 (debug_scattering_functions): Remove.
14559 (apply_poly_transforms): Remove use of flag_loop_block,
14560 flag_loop_strip_mine, and flag_loop_interchange.
14561 (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
14563 (print_pdr_access_layout): Remove.
14564 (print_pdr): Print ISL representation.
14565 (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
14566 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
14568 (openscop_print_pbb_domain): Remove.
14569 (print_pbb): Remove call to print_scattering_function.
14570 (openscop_print_scop_context): Remove.
14571 (print_scop_context): Do not print matrices anymore.
14572 (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
14573 SCOP_TRANSFORMED_SCHEDULE.
14574 (print_isl_set): Add printing of a new line.
14575 (print_isl_map): Same.
14576 (print_isl_aff): Same.
14577 (print_isl_constraint): Same.
14578 (loop_to_lst): Remove.
14579 (scop_to_lst): Remove.
14580 (lst_indent_to): Remove.
14581 (print_lst): Remove.
14582 (debug_lst): Remove.
14583 (dot_lst_1): Remove.
14585 (reverse_loop_at_level): Remove.
14586 (reverse_loop_for_pbbs): Remove.
14587 * graphite-poly.h (pdr_dim_iter_domain): Remove.
14588 (pdr_nb_params): Remove.
14589 (pdr_alias_set_dim): Remove.
14590 (pdr_subscript_dim): Remove.
14591 (pdr_iterator_dim): Remove.
14592 (pdr_parameter_dim): Remove.
14593 (same_pdr_p): Remove.
14594 (struct poly_scattering): Remove.
14595 (struct poly_bb): Remove _original, _transformed, _saved.
14596 (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
14597 (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
14598 (PBB_NB_LOCAL_VARIABLES): Remove.
14599 (PBB_NB_SCATTERING_TRANSFORM): Remove.
14600 (schedule_to_scattering): Remove.
14601 (number_of_write_pdrs): Remove.
14602 (pbb_dim_iter_domain): Remove.
14603 (pbb_nb_params): Remove.
14604 (pbb_nb_scattering_orig): Remove.
14605 (pbb_nb_scattering_transform): Remove.
14606 (pbb_nb_dynamic_scattering_transform): Remove.
14607 (pbb_nb_local_vars): Remove.
14608 (pbb_iterator_dim): Remove.
14609 (pbb_parameter_dim): Remove.
14610 (psco_scattering_dim): Remove.
14611 (psct_scattering_dim): Remove.
14612 (psct_local_var_dim): Remove.
14613 (psco_iterator_dim): Remove.
14614 (psct_iterator_dim): Remove.
14615 (psco_parameter_dim): Remove.
14616 (psct_parameter_dim): Remove.
14617 (psct_dynamic_dim): Remove.
14618 (psct_static_dim): Remove.
14619 (psct_add_local_variable): Remove.
14620 (new_lst_loop): Remove.
14621 (new_lst_stmt): Remove.
14622 (free_lst): Remove.
14623 (copy_lst): Remove.
14624 (lst_add_loop_under_loop): Remove.
14625 (lst_depth): Remove.
14626 (lst_dewey_number): Remove.
14627 (lst_dewey_number_at_depth): Remove.
14628 (lst_pred): Remove.
14629 (lst_succ): Remove.
14630 (lst_find_pbb): Remove.
14631 (find_lst_loop): Remove.
14632 (lst_find_first_pbb): Remove.
14633 (lst_empty_p): Remove.
14634 (lst_find_last_pbb): Remove.
14635 (lst_contains_p): Remove.
14636 (lst_contains_pbb): Remove.
14637 (lst_create_nest): Remove.
14638 (lst_remove_from_sequence): Remove.
14639 (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
14640 (lst_niter_for_loop): Remove.
14641 (pbb_update_scattering): Remove.
14642 (lst_update_scattering_under): Remove.
14643 (lst_update_scattering): Remove.
14644 (lst_insert_in_sequence): Remove.
14645 (lst_replace): Remove.
14646 (lst_substitute_3): Remove.
14647 (lst_distribute_lst): Remove.
14648 (lst_remove_all_before_including_pbb): Remove.
14649 (lst_remove_all_before_excluding_pbb): Remove.
14650 (struct scop): Remove original_schedule, transformed_schedule, and
14652 (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
14653 (SCOP_SAVED_SCHEDULE): Remove.
14654 (poly_scattering_new): Remove.
14655 (poly_scattering_free): Remove.
14656 (poly_scattering_copy): Remove.
14657 (store_scattering_pbb): Remove.
14658 (store_lst_schedule): Remove.
14659 (restore_lst_schedule): Remove.
14660 (store_scattering): Remove.
14661 (restore_scattering_pbb): Remove.
14662 (restore_scattering): Remove.
14663 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
14664 Remove scattering_dimensions. Do not use pbb_dim_iter_domain:
14665 compute the scattering polyhedron dimension from the dimension of
14667 (build_scop_scattering): Update call to
14668 build_pbb_scattering_polyhedrons.
14669 (build_poly_scop): Remove call to scop_to_lst.
14670 * graphite.c (graphite_transform_loops): Add call to print_scop.
14671 (gate_graphite_transforms): Remove use of flag_loop_block,
14672 flag_loop_interchange, and flag_loop_strip_mine.
14674 2015-08-27 Sebastian Pop <s.pop@samsung.com>
14676 * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
14677 * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
14678 -floop-nest-optimize.
14679 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
14680 (generate_luj_sepclass): Remove.
14681 (generate_luj_options): Remove.
14682 (set_options): Remove opt_luj.
14683 (scop_to_isl_ast): Remove opt_luj.
14684 * graphite-optimize-isl.c (getScheduleForBand): Remove check for
14685 flag_loop_unroll_jam.
14686 (getPrevectorMap_full): Remove.
14687 (getScheduleForBandList): Remove map_sepcl.
14688 (getScheduleMap): Same.
14689 (apply_schedule_map_to_scop): Remove sepcl.
14690 (optimize_isl): Same.
14691 * graphite-poly.c (apply_poly_transforms): Remove check for
14692 flag_loop_unroll_jam.
14693 (new_poly_bb): Remove map_sepclass.
14694 * graphite-poly.h (struct poly_bb): Same.
14695 * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
14696 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
14697 (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
14698 * toplev.c (process_options): Remove flag_loop_unroll_jam.
14700 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
14703 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
14704 (addqi3_cc): Ditto.
14705 (UNSPEC_ADD_CARRY): Remove.
14706 (addqi3_cconly_overflow): New expander.
14707 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
14708 Adjust for changed add<mode>3_carry.
14709 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
14710 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
14711 (<plusminus_insn><mode>3_carry): Remove expander.
14712 (*<plusminus_insn><mode>3_carry): Split insn pattern to
14713 add<mode>3_carry and sub<mode>3_carry.
14714 (plusminus_carry_mnemonic): Remove code attribute.
14715 (add<mode>3_carry): Canonicalize insn pattern.
14716 (*addsi3_carry_zext): Ditto.
14717 (sub<mode>3_carry): Ditto.
14718 (*subsi3_carry_zext): Ditto.
14719 (adcx<mode>3): Remove insn pattern.
14720 (addcarry<mode>): New insn pattern.
14721 (subborrow<mode>): Ditto.
14722 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
14723 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
14724 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
14725 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
14726 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
14727 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
14728 Rewrite expander to not clobber carry flag chains.
14730 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
14732 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
14733 instead of a rotate.
14735 2015-08-27 Marek Polacek <polacek@redhat.com>
14737 PR middle-end/67005
14738 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
14739 an entry into an irreducible region.
14741 2015-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
14743 * configure: Regenerate.
14745 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
14747 PR tree-optimization/67283
14748 * tree-sra.c (type_consists_of_records_p): Rename to...
14749 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
14751 (completely_scalarize_record): Rename to...
14752 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
14753 (scalarize_elem): New.
14755 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
14757 * tree-sra.c (completely_scalarize_var): Rename to...
14758 (create_total_scalarization_access): ... Here. Drop call to
14759 completely_scalarize_record.
14761 (analyze_all_variable_accesses): Replace completely_scalarize_var
14762 with create_total_scalarization_access and completely_scalarize_record.
14764 2015-08-27 Alan Modra <amodra@gmail.com>
14767 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
14770 2015-08-27 Richard Biener <rguenther@suse.de>
14772 * passes.c (rest_of_decl_compilation): Guard early_global_decl
14773 call with !seen_error ().
14774 * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
14775 early debug generation and finish...
14776 (symbol_table::compile): ... here to put it after a !seen_error ()
14779 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14781 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
14784 2015-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14785 Andre Vieira <andre.simoesdiasvieira@arm.com>
14787 * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
14788 (*cb<optab><mode>1): Likewise.
14789 (*tb<optab><mode>1): Likewise.
14790 (*cb<optab><mode>1): Likewise.
14791 * config/aarch64/iterators.md (inv_cb): New code attribute.
14792 (inv_tb): Likewise.
14793 * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
14794 * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
14796 2015-08-27 Richard Biener <rguenther@suse.de>
14798 * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
14800 2015-08-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
14802 * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
14805 2015-08-26 Michael Meissner <meissner@linux.vnet.ibm.com>
14807 * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
14810 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
14812 (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
14813 floating point in VSX registers.
14814 (rs6000_output_move_128bit): Always print out the set insn if we
14815 can't generate an appropriate 128-bit move.
14816 (rs6000_generate_compare): Add support for IEEE 128-bit floating
14817 point in VSX registers comparisons.
14818 (rs6000_expand_float128_convert): Likewise.
14820 * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
14821 predicate for only GPR hard registers.
14823 * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
14824 modes to iterators. Add new iterators for moving 128-bit values in
14825 scalar FPR registers and VSX registers.
14826 (FMOVE128): Likewise.
14827 (FMOVE128_FPR): Likewise.
14828 (FMOVE128_GPR): Likewise.
14829 (FMOVE128_VSX): Likewise.
14830 (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
14833 (IBM128): Likewise.
14834 (TFIFKF): Likewise.
14835 (RELOAD): Add IEEE 128-bit floating point modes.
14836 (signbittf2): Convert TF insns to add support for new IEEE 128-bit
14837 floating point in VSX registers modes.
14838 (signbit<mode>2, IBM128 iterator): Likewise.
14839 (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
14840 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
14841 (negtf2): Likewise.
14842 (neg<mode>2, TFIFKF iterator): Likewise.
14843 (negtf2_internal): Likewise.
14844 (abstf2): Likewise.
14845 (abs<mode>2, TFIFKF iterator): Likewise.
14846 (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
14847 VSX insn support for negate, absolute value, and negative absolute
14849 (ieee_128bit_vsx_neg<mode>2): Likewise.
14850 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
14851 (ieee_128bit_vsx_abs<mode>2): Likewise.
14852 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
14853 (ieee_128bit_vsx_nabs<mode>2): Likewise.
14854 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
14855 (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
14856 floating point in VSX registers.
14857 (unpack<mode>_dm): Likewise.
14858 (unpack<mode>_nodm): Likewise.
14859 (pack<mode>): Likewise.
14860 (unpackv1ti): Likewise.
14861 (unpack<mode>, FMOVE128_VSX iterator): Likewise.
14862 (packv1ti): Likewise.
14863 (pack<mode>, FMOVE128_VSX iterator): Likewise.
14864 (extenddftf2): Add support for IEEE 128-bit floating point in VSX
14866 (extenddftf2_internal): Likewise.
14867 (trunctfdf2): Likewise.
14868 (trunctfdf2_internal2): Likewise.
14869 (fix_trunc_helper): Likewise.
14870 (fix_trunctfdi2"): Likewise.
14871 (floatditf2): Likewise.
14872 (floatuns<mode>tf2): Likewise.
14873 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
14874 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
14875 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
14876 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
14877 (float<SDI:mode><IFKF:mode>2): Likewise.
14878 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
14880 2015-08-26 Renlin Li <renlin.li@arm.com>
14882 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
14884 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
14885 Jiong Wang <jiong.wang@arm.com>
14887 * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
14888 (tlsie_tiny_<mode>): New define_insn.
14889 (tlsie_tiny_sidi): Likewise.
14890 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
14892 (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
14893 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
14895 (aarch64_expand_mov_immediate): Likewise.
14896 (aarch64_print_operand): Likewise.
14897 (arch64_classify_tls_symbol): Likewise.
14899 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
14901 * config/arm/arm-arches.def: Replace single value flags with
14902 an initializer built from ARM_FSET_MAKE_CPU1.
14903 * config/arm/arm-cores.def: Likewise.
14904 * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
14905 derivation from the ARM_CORE macro definition, use the given value
14907 (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
14908 ARM_ARCH macro definition, use the given value instead.
14910 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
14912 * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
14914 (struct builtin_description): Replace field mask with field
14916 (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
14917 (IWMMXT2_BUILTIN): Likewise.
14918 (IWMMXT2_BUILTIN2): Likewise.
14919 (FP_BUILTIN): Likewise.
14920 (CRC32_BUILTIN): Likewise.
14921 (CRYPTO_BUILTIN): Likewise.
14922 (iwmmx_mbuiltin): Likewise.
14923 (iwmmx2_mbuiltin): Likewise.
14924 (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
14925 struct builtin_description.
14927 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
14929 * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
14930 (struct builtin_description): Change type of mask to unsigned
14932 * config/arm/arm-protos.h (insn_flags): Declare as type
14934 (tune_flags): Likewise.
14935 * config/arm/arm.c (feature_count): New.
14936 (insn_flags): Define as type arm_feature_set.
14937 (tune_flags): Likewise.
14938 (struct processors): Define field flags as type arm_feature_set.
14939 (all_cores): Update for change to struct processors.
14940 (all_architectures): Likewise.
14941 (arm_option_check_internal): Use arm_feature_set and ARM_FSET
14943 (arm_option_override_internal): Likewise.
14944 (arm_option_override): Likewise.
14946 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
14947 Jiong Wang <jiong.wang@arm.com>
14949 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
14950 tls size for tiny, small, large memory model.
14951 (aarch64_load_symref_appropriately): Support new symbol types.
14952 (aarch64_expand_mov_immediate): Likewise.
14953 (aarch64_print_operand): Likewise.
14954 (aarch64_classify_tls_symbol): Likewise.
14955 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
14956 (aarch64_symbol_type): Likewise.
14957 * config/aarch64/aarch64.md (tlsle): Deleted.
14958 (tlsle12_<mode>): New define_insn.
14959 (tlsle24_<mode>): Likewise.
14960 (tlsle32_<mode>): Likewise.
14961 (tlsle48_<mode>): Likewise.
14962 * doc/sourcebuild.texi (AArch64-specific attributes): Document
14965 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
14967 * config/arm/arm-protos.h (FL_NONE): New.
14969 (arm_feature_set): New.
14970 (ARM_FSET_MAKE): New.
14971 (ARM_FSET_MAKE_CPU1): New.
14972 (ARM_FSET_MAKE_CPU2): New.
14973 (ARM_FSET_CPU1): New.
14974 (ARM_FSET_CPU2): New.
14975 (ARM_FSET_EMPTY): New.
14976 (ARM_FSET_ANY): New.
14977 (ARM_FSET_HAS_CPU1): New.
14978 (ARM_FSET_HAS_CPU2): New.
14979 (ARM_FSET_HAS_CPU): New.
14980 (ARM_FSET_ADD_CPU1): New.
14981 (ARM_FSET_ADD_CPU2): New.
14982 (ARM_FSET_DEL_CPU1): New.
14983 (ARM_FSET_DEL_CPU2): New.
14984 (ARM_FSET_UNION): New.
14985 (ARM_FSET_INTER): New.
14986 (ARM_FSET_XOR): New.
14987 (ARM_FSET_EXCLUDE): New.
14988 (AFM_FSET_IS_EMPTY): New.
14989 (ARM_FSET_CPU_SUBSET): New.
14991 2015-08-26 Jiong Wang <jiong.wang@arm.com>
14993 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
14994 SYMBOL_TLSLE to SYMBOL_TLSLE24.
14995 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
14997 (aarch64_expand_mov_immediate): Likewise.
14998 (aarch64_print_operand): Likewise.
14999 (aarch64_classify_symbol): Likewise.
15001 2015-08-26 Jiong Wang <jiong.wang@arm.com>
15003 * config/aarch64/aarch64.opt (mtls-size): New entry.
15004 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
15005 (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
15006 * doc/invoke.texi (AArch64 Options): Document -mtls-size.
15008 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
15010 * config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
15011 ARM_CORE entry. Fix some white-space.
15012 * config/arm/arm.c: Remove FL_FOR_ARCH derivation from
15013 ARM_CORE definition.
15015 2015-08-26 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
15017 * fold-const.c (fold_binary_loc) : Move Optimize
15018 root(x)*root(y) as root(x*y) to match.pd.
15019 Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
15020 Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
15021 Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
15022 Move Optimize x/expN(y) into x*expN(-y) to match.pd.
15023 * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
15024 (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
15025 (mult (exps:s @0) (exps:s @1)) : New simplifier.
15026 (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
15027 (rdiv @0 (exps:s @1)) : New simplifier.
15029 2015-08-25 Joseph Myers <joseph@codesourcery.com>
15031 * gcc.c (driver::finalize): Only assign to extra_specs if
15034 2015-08-25 Marek Polacek <polacek@redhat.com>
15036 PR middle-end/67330
15037 * varasm.c (declare_weak): Return after giving an error.
15039 2015-08-25 David Malcolm <dmalcolm@redhat.com>
15041 * gcc-main.c (main): Add params to driver ctor.
15042 * gcc.c (class env_manager): New.
15044 (env_manager::init): New.
15045 (env_manager::get): New.
15046 (env_manager::xput): New.
15047 (env_manager::restore): New.
15048 Poison getenv and putenv.
15049 (DEFAULT_TARGET_SYSTEM_ROOT): New.
15050 (target_system_root): Update initialization to use
15051 DEFAULT_TARGET_SYSTEM_ROOT.
15052 (struct spec_list): Add field "default_ptr".
15053 (INIT_STATIC_SPEC): Initialize new field "default_ptr".
15054 (init_spec): Likewise.
15055 (set_spec): Clear field "default_ptr".
15056 (read_specs): Free "spec" and "buffer".
15057 (xputenv): Reimplement in terms of env_manager.
15058 (process_command): Replace ::getenv calls with calls to the
15059 env_manager singleton.
15060 (process_brace_body): Free string in three places.
15061 (driver::driver): New.
15062 (driver::~driver): New.
15063 (used_arg): Convert from a function to...
15064 (class used_arg_t): ...this class, and...
15065 (used_arg): ...this new global instance.
15066 (used_arg_t::finalize): New function.
15067 (getenv_spec_function): Add "const" to local "value". Replace
15068 ::getenv call with call to the env_manager singleton.
15069 (path_prefix_reset): New function.
15070 (driver::finalize): New function.
15071 * gcc.h (driver::driver): New.
15072 (driver::~driver): New.
15073 (driver::finalize): New.
15075 2015-08-25 Nathan Sidwell <nathan@acm.org>
15077 * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
15078 target doesn't have one.
15080 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
15083 * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
15085 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
15088 * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
15089 a define_insn, remove second alternative.
15091 2015-08-25 Thomas Schwinge <thomas@codesourcery.com>
15092 Joseph Myers <joseph@codesourcery.com>
15094 * gcc.c (struct switchstr): Expand comment.
15096 2015-08-25 Nathan Sidwell <nathan@acm.org>
15098 * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
15099 (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
15101 2015-08-25 Richard Biener <rguenther@suse.de>
15103 PR middle-end/67306
15104 * genmatch.c (expr::gen_transform): Verify the result of
15105 builtin_decl_implicit.
15106 (dt_simplify::gen_1): Likewise.
15108 2015-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
15110 * config/arm/constraints.md: Also list Cs and US ARM-specific
15111 constraints as used.
15113 2015-08-24 Kaz Kojima <kkojima@gcc.gnu.org>
15116 * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
15118 (nonpic_symbol_mentioned_p): Likewise.
15119 (sh_delegitimize_address): Likewise.
15120 (sh_function_ok_for_sibcall): Take into account weak symbols.
15121 (sh_expand_sym_label2reg): New.
15122 * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
15123 * config/sh/sh.md (UNSPEC_PCREL): New enum.
15124 (call_pcrel): Use sh_expand_sym_label2reg.
15125 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
15126 (symPCREL_label2reg) New expand.
15128 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
15130 * graphite-poly.c: Change type of region from void* to sese.
15131 * graphite-poly.h (struct scop): Changing the type of scop::region
15132 from void* to sese. Change accessor macro accordingly.
15133 * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
15135 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
15137 * graphite-scop-detection.c (stmt_simple_for_scop_p):
15138 Constrain only on INTEGER_TYPE.
15140 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
15143 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
15144 -mefficient-unaligned-vsx on ISA 2.7.
15146 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
15147 option to a masked option.
15149 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
15150 logic for -mefficient-unaligned-vsx so that it is set via an arch
15151 ISA option, instead of being set if -mtune=power8 is set. Move
15152 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
15153 near other default option handling.
15155 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
15157 * genflags.c (gen_macro): Delete.
15158 (gen_proto): Don't create GEN.*CALL.* macros.
15159 * gensupport.h (get_file_location): Declare.
15160 * gensupport.c (rtx_locs): New variable.
15161 (read_md_rtx): Record rtx locations.
15162 (get_file_location): New function.
15163 * target-insns.def (call, call_pop, call_value, call_value_pop)
15164 (sibcall, sibcall_value): New patterns.
15165 * gentarget-def.c (parse_argument): New function.
15166 (def_target_insn): Use it. Handle optional operands. Raise an
15167 error if an .md pattern has the wrong number of operands for the
15168 pattern name. Remove the names of unused operands from the prototype.
15169 * builtins.c (expand_builtin_apply): Use targetm functions
15170 instead of HAVE_call_value and GEN_CALL_VALUE.
15171 * calls.c (emit_call_1): Likewise. Remove support for sibcall_pop
15172 and sibcall_value_pop.
15173 * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
15175 * config/alpha/alpha.md (untyped_call): Likewise.
15176 * config/iq2000/iq2000.md (untyped_call): Likewise.
15177 * config/m68k/m68k.md (untyped_call): Likewise.
15178 * config/mips/mips.md (untyped_call): Likewise.
15179 * config/pa/pa.md (untyped_call): Likewise.
15180 * config/rs6000/rs6000.md (untyped_call): Likewise.
15181 * config/sparc/sparc.md (untyped_call): Likewise.
15182 * config/tilegx/tilegx.md (untyped_call): Likewise.
15183 * config/tilepro/tilepro.md (untyped_call): Likewise.
15184 * config/visium/visium.md (untyped_call): Likewise.
15185 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
15186 gen_call_value instead of GEN_CALL_VALUE.
15187 * config/arm/arm.md (untyped_call): Likewise.
15188 * config/cr16/cr16.c (cr16_function_arg): Remove reference to
15191 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
15193 * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
15194 (have_cbranchcc4): New variable.
15195 (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
15196 (noce_get_condition): Use it instead of HAVE_cbranchcc4.
15197 (if_convert): Initialize have_cbranchcc4.
15199 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
15201 * builtins.c (expand_cmpstrn): Rename to...
15202 (expand_cmpstrn_or_cmpmem): ...this.
15203 (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
15204 (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
15205 Remove mode argument.
15206 (expand_builtin): Update accordingly.
15208 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
15210 * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
15211 (expand_builtin_strcmp, expand_builtin_strncmp): Use them. Remove
15212 references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
15213 * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
15214 Add predicates for operands 0 and 3.
15215 * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
15217 * config/sh/sh.md (cmpstrnsi): Change the length predicate from
15218 immediate_operand to nonmemory_operand.
15220 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
15222 * df-scan.c (df_insn_info_init_fields): New function, split out
15224 (df_insn_create_insn_record): ...here.
15225 (df_insn_info_free_fields): New function, split out from...
15226 (df_insn_info_delete): ...here.
15227 (df_insn_rescan): Use the new functions instead of freeing and
15228 reallocating the df_insn_info.
15230 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
15232 * doc/install.texi (Binaries): Remove links no longer valid.
15234 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
15236 * config/nvptx/mkoffload.c (process): Replace
15237 GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
15239 2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
15242 * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
15244 2015-08-24 Renlin Li <renlin.li@arm.com>
15246 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
15247 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
15248 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
15249 * config/arm/constraints.md ("j"): Add check for high code.
15251 2015-08-24 Tom de Vries <tom@codesourcery.com>
15253 PR tree-optimization/65468
15254 * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
15257 2015-08-24 Nathan Sidwell <nathan@acm.org>
15259 * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
15260 change to nvptx_type_from_mode call. Use arg_promotion for both
15261 split and non-split args.
15263 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
15265 * target-insns.def (movstr): New pattern.
15266 * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
15267 (expand_movstr): Use targetm rather than HAVE_movstr/
15270 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
15272 * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
15275 2015-08-24 Andrew Pinski <apinski@cavium.com>
15277 * config/aarch64/aarch64-tuning-flags.def: Remove all index to
15278 AARCH64_EXTRA_TUNING_OPTION.
15279 * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
15281 (aarch64_extra_tuning_flags): Base the shifted value on the index
15282 instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
15283 * config/aarch64/aarch64.c: Remove the last argument to
15284 AARCH64_EXTRA_TUNING_OPTION.
15286 2015-08-23 Nathan Sidwell <nathan@acm.org>
15288 * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
15290 (nvptx_declare_function_name): Insert formatting tabs for
15293 2015-08-23 Tom de Vries <tom@codesourcery.com>
15295 * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
15296 parm_decl, rather than generating a dummy default def in cfun.
15297 * tree-cfg.c (replace_ssa_name): Assume no default defs. Make sure
15298 ssa_name from cfun and child_fn do not share a stmt as def stmt.
15299 (move_stmt_op): Handle PARM_DECl.
15300 (gather_ssa_name_hash_map_from): New function.
15301 (move_sese_region_to_fn): Add default defs for function params, and add
15302 them to vars_map. Release copied ssa names.
15303 * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
15305 2015-08-23 Tom de Vries <tom@codesourcery.com>
15307 * doc/sourcebuild.texi: Rename vect_no_int_max with
15308 vect_no_int_min_max. Update description.
15310 2015-08-22 Andrew Pinski <apinski@cavium.com>
15312 * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
15313 * config/aarch64/aarch64-protos.h
15314 (aarch64_fusion_pairs_index): New enum.
15315 (aarch64_fusion_pairs): Base the shifted value on the index instead
15316 Rewrite AARCH64_FUSE_ALL to be based on the end index.
15317 of the argument to AARCH64_FUSION_PAIR.
15318 * config/aarch64/aarch64.c: Remove the last argument to
15319 AARCH64_FUSION_PAIR.
15321 2015-08-22 Mikhail Maltsev <maltsevm@gmail.com>
15323 * dominance.c (new_zero_array): Define.
15324 (dom_info): Redefine as class with proper encapsulation.
15325 (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
15327 (dom_info::dom_info, ~dom_info): Define. Use new/delete for memory
15328 allocations/deallocations. Pass function as parameter (instead of
15330 (dom_info::get_idom): Define accessor method.
15331 (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
15332 link_roots, calc_idoms): Redefine as class members. Do not use cfun.
15333 (calculate_dominance_info): Adjust to use dom_info class.
15334 (verify_dominators): Likewise.
15336 2015-08-21 Alexandre Oliva <aoliva@redhat.com>
15338 * print-rtl.c (print_rtx): Check the correct range for
15339 flag_dump_unnumbered_links to behave as documented.
15341 PR rtl-optimization/67227
15342 PR rtl-optimization/64164
15343 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
15344 (nonoverlapping_memrefs_p): Test offsets and sizes when given
15345 identical gimple_reg exprs.
15347 2015-08-21 Nathan Sidwell <nathan@acm.org>
15349 * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
15351 * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
15352 crtl->stack_alignment_needed to determine alignment.
15353 (nvptx_get_drap_rtx): New.
15354 (TARGET_GET_DRAP_RTX): Override.
15355 * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
15357 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
15359 * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
15361 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
15363 * configure.ac: Remove uwin* cases.
15364 * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
15365 i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
15366 i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
15367 i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
15368 * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
15369 i[34567]86-*-uwin*, powerpc-*-beos*.
15371 2015-08-21 Richard Sandiford <richard.sandiford@arm.com>
15373 * gencodes.c (gencodes): Print the comma for the preceding
15374 enum value rather than the current one. Use aliased enum values
15375 rather than #defines for compiled-out patterns.
15376 (main): Update accordingly. Replace LAST_INSN_CODE with
15378 * lra.c (insn_code_data): Update accordingly.
15379 (finish_insn_code_data_once, get_static_insn_data): Likewise.
15380 * recog.h (target_recog): Likewise.
15381 (preprocess_insn_constraints): Change parameter to unsigned int.
15382 * recog.c (preprocess_insn_constraints): Likewise.
15383 (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
15384 * tree-vect-stmts.c (vectorizable_operation): Simplify.
15386 2015-08-21 Markus Trippelsdorf <markus@trippelsdorf.de>
15388 PR rtl-optimization/61657
15389 * loop-iv.c (iv_number_of_iterations): Declare up and down as
15390 unsigned. Remove superflous uint64_t cast.
15392 2014-08-21 Felix Yang <felix.yang@huawei.com>
15393 Jiji Jiang <jiangjiji@huawei.com>
15395 * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
15396 argument and get builtin function code directly from CALL.
15397 (gimple_stringop_fixed_value): Modified accordingly.
15398 (gimple_stringops_transform, gimple_stringops_values_to_profile):
15399 Modified accordingly and only accept BUILT_IN_NORMAL string operations.
15401 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
15403 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
15405 2015-08-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
15407 * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
15409 Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
15410 Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
15411 Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
15412 Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
15413 Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
15414 Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
15415 Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
15416 Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
15417 Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
15418 Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
15420 * match.pd (SIN ) : New Operator.
15421 (TAN) : New Operator.
15422 (mult (SQRT@1 @0) @1) : New simplifier.
15423 (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
15424 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
15425 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
15426 (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
15427 (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
15428 (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
15429 (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
15430 (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
15431 (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
15432 (rdiv @0 (POW:s @1 @2)) : New simplifier.
15434 2015-08-21 Bin Cheng <bin.cheng@arm.com>
15436 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
15437 loop if EXPR is simplified to const value.
15439 2015-08-21 Yury Gribov <y.gribov@samsung.com>
15441 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
15442 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
15444 2015-08-21 Richard Biener <rguenther@suse.de>
15446 PR middle-end/67285
15447 * gimple-fold.c (replace_stmt_with_simplification): Assert
15448 seq is empty when replacing a call with itself but different
15450 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
15451 a call require that it is const.
15453 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15455 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
15456 * builtins.c (get_object_alignment_2): Adjust.
15457 * varasm.c (align_variable): Likewise.
15458 (get_variable_align): Likewise.
15459 (build_constant_desc): Likewise.
15460 (force_const_mem): Likewise.
15461 * doc/tm.texi.in: Likewise.
15462 * doc/tm.texi: Regenerate.
15464 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15466 * genconfig.c (main): Always define HAVE_cc0.
15467 * recog.c (rest_of_handle_peephole2): Adjust.
15469 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15471 * reorg.c (relax_delay_slots): Don't use #if to check value of
15474 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15476 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
15477 * targhooks.c (default_have_conditional_execution): Adjust.
15479 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
15481 * rtl.h (rtvec_all_equal_p): Declare.
15482 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
15483 * rtl.c (rtvec_all_equal_p): New function.
15484 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
15485 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
15486 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
15487 * config/arm/arm.c (neon_vdup_constant): Likewise.
15488 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
15489 * config/tilegx/constraints.md (W, Y): Likewise.
15490 * config/tilepro/constraints.md (W, Y): Likewise.
15491 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
15492 (classify_immediate): Use unwrap_const_vec_duplicate.
15493 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
15494 (reg_or_v2s8bit_operand): Likewise.
15495 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
15496 (reg_or_v4s8bit_operand): Likewise.
15498 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15500 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
15501 (vec_shasigma_be): New #define.
15502 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
15503 (VPMSUMH): Likewise.
15504 (VPMSUMW): Likewise.
15505 (VPMSUMD): Likewise.
15506 (VPMSUM): New BU_P8V_OVERLOAD_2.
15507 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
15508 entries for VEC_MADD and VEC_VPMSUM.
15510 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
15512 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
15513 Multiply argument avr_n_flash by 64 to match unit of "KiB".
15514 (avr_pgm_check_var_decl): Same.
15516 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
15518 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
15519 initialization of HFmode scalar type (float16_t) to...
15520 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
15523 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
15525 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
15526 having an -mfp16-format.
15528 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
15530 * config/i386/predicates.md (vector_all_ones_operand): Use
15531 CONSTM1_RTX to simplify definition.
15533 2015-08-20 Richard Biener <rguenther@suse.de>
15535 * toplev.c (compile_file): Remove loop calling late_global_decl
15537 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
15538 on decls we assembled.
15540 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
15542 * common/config/aarch64/aarch64-common.c
15543 (AARCH64_CPU_NAME_LENGTH): Delete.
15544 (aarch64_option_extension): New.
15545 (all_extensions): Likewise.
15546 (processor_name_to_arch): Likewise.
15547 (arch_to_arch_name): Likewise.
15549 (all_architectures): Likewise.
15550 (aarch64_get_extension_string_for_isa_flags): Likewise.
15551 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
15552 architecture names.
15553 * config/aarch64/aarch64-protos.h
15554 (aarch64_get_extension_string_for_isa_flags): New.
15555 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
15556 (aarch64_option_print): Get the string to print from
15557 aarch64_get_extension_string_for_isa_flags.
15558 (aarch64_declare_function_name): Likewise.
15559 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
15560 (MCPU_TO_MARCH_SPEC): This.
15561 (ASM_CPU_SPEC): Use it.
15562 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
15563 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
15564 (EXTRA_SPEC_FUNCTIONS): Use it.
15566 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
15568 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
15569 expansion when !ISA_HAS_LWL_LWR.
15570 (mips_block_move_straight): Update the size of elements copied to
15571 account for alignment when !ISA_HAS_LWL_LWR.
15572 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
15574 2015-08-19 Jiong Wang <jiong.wang@arm.com>
15576 * expr.c (expand_expr_real_2): Check gimple statement during
15577 LSHIFT_EXPR expand.
15579 2015-08-19 Magnus Granberg <zorry@gentoo.org>
15581 * common.opt (fstack-protector): Initialize to -1.
15582 (fstack-protector-all): Likewise.
15583 (fstack-protector-strong): Likewise.
15584 (fstack-protector-explicit): Likewise.
15585 * configure.ac: Add --enable-default-ssp.
15586 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
15587 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
15589 * doc/install.texi: Document --enable-default-ssp.
15590 * config.in: Regenerated.
15591 * configure: Likewise.
15593 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
15595 PR rtl-optimization/64164
15596 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
15597 (parm_in_stack_slot_p): ... this. Disregard mode, what
15598 matters is whether the parm will live in a pseudo or a stack
15600 (expand_one_ssa_partition): Deal with params without a default
15601 def. Disregard mode.
15602 * cfgexpand.h: Renamed function declaration.
15603 * tree-ssa-coalesce.c: Adjust.
15604 * function.c (split_complex_args): Allocate stack slot for
15605 unassigned parms before splitting.
15606 (parm_in_unassigned_mem_p): New. Use it instead of
15607 parm_maybe_byref_p throughout this file.
15608 (assign_parm_setup_block): Use it. Accept pseudos in the
15609 expand-assigned rtl.
15610 (assign_parm_setup_reg): Drop BLKmode requirement.
15611 (assign_parm_setup_stack): Allocate and fill in the address of
15612 unassigned MEM parms.
15614 2015-08-19 David Sherwood <david.sherwood@arm.com>
15616 * genmodes.c (emit_mode_unit_size_inline): New function.
15617 (emit_mode_unit_precision_inline): New function.
15618 (emit_insn_modes_h): Emit new #define. Emit new functions.
15619 (emit_mode_unit_size): New function.
15620 (emit_mode_unit_precision): New function.
15621 (emit_mode_adjustments): Add mode_unit_size adjustments.
15622 (emit_insn_modes_c): Emit new arrays.
15623 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
15624 use new inline methods.
15626 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15628 * config/aarch64/aarch64.c (bit_count): Delete prototype
15630 (aarch64_print_operand): Use popcount_hwi instead of the above.
15632 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15634 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
15637 2015-08-19 Marek Polacek <polacek@redhat.com>
15639 PR middle-end/67133
15640 * gimple-ssa-isolate-paths.c
15641 (insert_trap_and_remove_trailing_statements): Rename to ...
15642 (insert_trap): ... this. Don't remove trailing statements; split
15644 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
15646 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
15649 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
15650 conditionalize the whole on __GNUC__. Add fallback code
15651 depending neither on undefined nor implementation-defined behaviour.
15653 2015-08-19 Jiong Wang <jiong.wang@arm.com>
15655 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
15656 whitespaces with tab.
15658 2015-08-19 Florian Weimer <fweimer@redhat.com>
15660 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
15661 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
15662 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
15663 Move Name_Ids instantiation to the Prj.Proc package, to avoid
15666 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15668 * config/arm/arm.c (bounds_check): Use %wd print format
15669 for HOST_WIDE_INT arguments.
15671 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
15673 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
15674 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
15675 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
15676 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
15677 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
15678 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
15679 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
15680 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
15681 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
15684 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
15686 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
15687 function.c, graphite-scop-detection.c, haifa-sched.c,
15688 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
15689 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
15690 varasm.c: Remove typedefs of structs.
15692 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
15694 * config/rs6000/altivec.h (vec_adde): New define.
15695 (vec_addec): Likewise.
15696 (vec_double): Likewise.
15697 (vec_bperm): Likewise.
15698 (vec_gb): Likewise.
15699 * config/rs6000/rs6000-builtin.def (ADDE): New
15700 BU_ALTIVEC_OVERLOAD_3.
15702 (DOUBLE): New BU_VSX_OVERLOAD_1.
15703 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
15704 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
15705 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
15706 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
15707 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
15708 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
15709 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
15710 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
15711 and P8V_BUILTIN_VEC_VBPERMQ.
15713 2015-08-18 Jason Merrill <jason@redhat.com>
15715 * print-tree.c (print_node): Handle TREE_BINFO.
15717 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
15719 PR middle-end/36757
15720 * builtins.c (expand_builtin_signbit): Add asserts to make sure
15721 we can expand BUILT_IN_SIGNBIT inline.
15722 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
15723 * doc/extend.texi: Document the type-generic __builtin_signbit.
15725 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
15727 PR rtl-optimization/67218
15728 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
15729 (simplify_unary_operation_1): Use it.
15731 2015-08-18 Marek Polacek <polacek@redhat.com>
15733 PR middle-end/67222
15734 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
15735 if the call isn't valid.
15736 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
15737 gimple_call_builtin_p.
15738 (call_may_clobber_ref_p_1): Likewise.
15739 (stmt_kills_ref_p): Likewise.
15741 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
15743 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
15744 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
15745 (mips_hard_regno_scratch_ok): Likewise.
15746 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
15747 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
15749 2015-08-18 Bin Cheng <bin.cheng@arm.com>
15751 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
15752 (determine_value_range): Call refine_value_range_using_guard for
15753 each loop initial condition to improve value range.
15755 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
15757 * config/i386/i386.c: Remove include of fibheap.h.
15759 2015-08-17 Richard Biener <rguenther@suse.de>
15761 PR tree-optimization/67221
15762 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
15763 (sccvn_dom_walker::before_dom_children): Mark backedges of
15764 non-executable blocks as not executable.
15766 2015-08-17 David Sherwood <david.sherwood@arm.com>
15768 * config/arm/arm.c (neon_element_bits): Replace call to
15769 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
15770 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
15771 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
15772 (neon_vdup_lane<mode>): Likewise.
15773 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
15774 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
15775 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
15776 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
15777 * config/spu/spu.c (arith_immediate_p): Likewise.
15778 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
15779 * expr.c (expand_expr_real_2): Likewise.
15780 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
15781 * simplify-rtx.c (simplify_immed_subreg): Likewise.
15782 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
15783 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
15785 * fold-const.c (fold_binary_loc): Replace call to
15786 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
15787 GET_MODE_UNIT_PRECISION (m).
15789 2015-08-17 Mike Stump <mikestump@comcast.net>
15791 * config/arm/arm.c (arm_block_move_unaligned_straight):
15792 Emit normal move instead of unaligned load when source or destination
15793 are appropriately aligned.
15795 2015-08-17 Richard Biener <rguenther@suse.de>
15796 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
15798 PR middle-end/16107
15799 * match.pd (div (coss (op @0) : New simplifier.
15801 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
15803 PR rtl-optimization/64164
15805 PR middle-end/66983
15806 PR rtl-optimization/67000
15807 PR middle-end/67034
15808 PR middle-end/67035
15809 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
15810 * tree-ssa-copyrename.c: Removed.
15811 * opts.c (default_options_table): Drop -ftree-copyrename. Add
15812 -ftree-coalesce-vars.
15813 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
15814 * common.opt (ftree-copyrename): Ignore.
15815 (ftree-coalesce-inlined-vars): Likewise.
15816 * doc/invoke.texi: Remove the ignored options above.
15817 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
15818 * tree-ssa-coalesce.h: ... here.
15819 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
15820 headers required by it.
15821 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
15822 across variables when flag_tree_coalesce_vars. Check register
15823 use and promoted modes to allow coalescing. Do not coalesce
15824 maybe-byref parms with SSA_NAMEs of other variables, or
15825 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
15826 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
15827 with its member functions to tree-ssa-coalesce.c.
15828 (var_map_base_init): Likewise. Renamed to
15829 compute_samebase_partition_bases.
15830 (partition_view_normal): Drop want_bases parameter.
15831 (partition_view_bitmap): Likewise.
15832 * tree-ssa-live.h: Adjust declarations.
15833 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
15834 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
15835 default defs at the entry point.
15836 (dump_part_var_map): New.
15837 (compute_optimized_partition_bases): New, called by...
15838 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
15839 of compute_samebase_partition_bases. Adjust.
15840 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
15841 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
15842 (ssa_default_def_partition): New.
15843 (get_rtl_for_parm_ssa_default_def): New.
15844 (align_local_variable, add_stack_var): Support anonymous SSA
15846 (defer_stack_allocation): Likewise. Declare earlier.
15847 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
15848 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
15849 Do no record deferred-allocation marker in
15850 SA.partition_to_pseudo.
15851 (expand_stack_vars): Adjust check for the marker in it.
15852 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
15853 redundant MEM attr setting.
15854 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
15856 (expand_one_stack_var): ... this. New wrapper to check and
15857 skip already expanded SSA partitions.
15858 (record_alignment_for_reg_var): New, factored out of...
15859 (expand_one_var): ... this.
15860 (expand_one_ssa_partition): New.
15861 (adjust_one_expanded_partition_var): New.
15862 (expand_one_register_var): Check and skip already expanded SSA
15864 (expand_used_vars): Don't create DECLs for anonymous SSA
15865 names. Expand all SSA partitions, then adjust all SSA names.
15866 (pass::execute): Replace the loops that set
15867 SA.partition_to_pseudo from partition leaders and cleared
15868 DECL_RTL for multi-location variables, and that which used to
15869 rename vars and set attrs, with one that clears DECL_RTL and
15870 checks that PARMs and RESULTs default_defs match DECL_RTL.
15871 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
15872 * emit-rtl.c: Include stor-layout.h.
15873 (set_reg_attrs_for_parm): Handle NULL decl.
15874 (set_reg_attrs_for_decl_rtl): Take mode from expression if
15876 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
15877 rather than its possibly-NULL DECL.
15878 * explow.c (promote_ssa_mode): New.
15879 * explow.h (promote_ssa_mode): Declare.
15880 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
15881 (read_complex_part): Export.
15882 * expr.h (read_complex_part): Declare.
15883 * cfgexpand.h (parm_maybe_byref_p): Declare.
15884 * function.c: Include cfgexpand.h.
15885 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
15886 (use_register_for_parm_decl): Wrapper for the above to
15887 special-case the result_ptr.
15888 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
15889 (split_complex_args): Take assign_parm_data_all argument.
15890 Pass it to rtl_for_parm. Set up rtl and context for split
15891 args. Reset complex parm before fetching its default decl
15893 (assign_parms_unsplit_complex): Use the default-def complex
15894 parm rtl if it matches the components.
15895 (assign_parms_augmented_arg_list): Adjust.
15896 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
15897 multiple locations. Recognize split complex args.
15898 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
15899 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
15900 (assign_parm_setup_block): Prefer SSA-assigned location, and
15901 fill in its address if the memory location of a maybe-byref
15902 parm was not assigned by cfgexpand.
15903 (assign_parm_setup_reg): Likewise. Adjust its mode as
15904 needed. Use entry_parm for equiv if stack_parm is NULL. Make
15905 sure passed_pointer parms don't need conversion. Copy address
15906 or value as needed.
15907 (assign_parm_setup_stack): Prefer SSA-assigned location.
15908 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
15909 rtl before testing for pointer bounds. Special-case result_ptr.
15910 (expand_function_start): Maybe reset DECL_RTL of result.
15911 Prefer SSA-assigned location for result and static chain.
15912 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
15913 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
15914 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
15915 anonymous SSA names. Use promote_ssa_mode.
15916 (get_temp_reg): Likewise.
15917 (remove_ssa_form): Adjust.
15918 * stor-layout.c (layout_decl): Don't set mem attributes of
15920 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
15921 and get its reg_usage for reg invalidation.
15922 (compute_bb_dataflow): Pass it insn.
15923 (emit_notes_in_bb): Likewise.
15925 2015-08-14 Marek Polacek <polacek@redhat.com>
15927 * tree-core.h (tree_base): Fix typo.
15929 2015-08-14 Marek Polacek <polacek@redhat.com>
15931 PR middle-end/67133
15932 * gimple.c (infer_nonnull_range_by_attribute): Check that the
15933 nonnull argument position is not outside function arguments.
15935 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
15938 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
15939 'lconst_atomic' with 'const_atomic'.
15940 (atomic_fetch_<optab><mode>): Likewise.
15941 (atomic_<optab>_fetch<mode>): Likewise.
15942 * config/aarch64/iterators.md (lconst-atomic): Move below
15944 (const_atomic): New.
15946 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
15947 Bernd Schmidt <bernds@codesourcery.com>
15949 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
15951 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
15952 (DWARF2_DEBUGGING_INFO): Don't define.
15953 * debug.h (dwarf2_lineno_debug_hooks): Declare.
15954 * toplev.c (process_options): Add a case for it.
15955 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
15956 (dwarf2out_init): Skip most initializations if
15957 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
15959 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
15960 DWARF2_LINENO_DEBUGGING_INFO.
15961 * opts.c (set_debug_level): Likewise.
15963 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
15965 * config/arm/types.md (is_neon_type): Add missing types.
15967 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
15969 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
15971 * config/i386/i386.c (PTA_SKYLAKE): New macros.
15972 (processor_alias_table): Add skylake description.
15973 (enum processor_model): Add skylake processor.
15974 (arch_names_table): Add skylake record.
15975 * doc/invoke.texi: Add skylake item.
15977 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
15979 * ira-int.h: Include recog.h.
15980 * ira-build.c: Don't include recog.h.
15981 * ira-color.c: Likewise.
15982 * ira-conflicts.c: Likewise.
15983 * ira-costs.c: Likewise.
15984 * ira-emit.c: Likewise.
15985 * ira-lives.c: Likewise.
15987 * sched-deps.c: Likewise.
15988 * sel-sched.c: Likewise.
15989 * target-globals.c: Likewise.
15991 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
15994 * reload1.c (elimination_costs_in_insn): Make it obvious to the
15995 compiler that the n_dups and n_operands loop bounds are invariant.
15997 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15999 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
16000 expressions in A and B.
16002 2015-08-13 Richard Biener <rguenther@suse.de>
16004 * tree.c (nonnull_arg_p): Move from ...
16005 * tree-vrp.c (nonnull_arg_p): ... here.
16006 * tree.h (nonnull_arg_p): Declare.
16007 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
16008 here, register ptr != 0 for nonnull_arg_p pointer arguments.
16009 Properly initialize static chain and by-reference result pointer.
16010 (run_scc_vn): Adjust.
16012 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
16014 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
16017 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
16019 * config/aarch64/aarch64-protos.h
16020 (aarch64_gen_atomic_cas): Declare.
16021 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
16022 Choose appropriate instruction pattern for the target.
16023 (aarch64_gen_atomic_cas): New.
16024 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
16025 (atomic_compare_and_swap<mode>_1): Rename to
16026 aarch64_compare_and_swap<mode>. Fix some indentation.
16027 (aarch64_compare_and_swap<mode>_lse): New.
16028 (aarch64_atomic_cas<mode>): New.
16030 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
16032 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
16035 2015-08-13 Richard Biener <rguenther@suse.de>
16037 PR tree-optimization/67191
16038 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
16039 assert we value-numbered last stmts operand because it can validly
16040 trigger for unreachable code.
16042 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16044 PR rtl-optimization/67103
16045 * ifcvt.c (noce_try_store_flag_constants): Move
16046 x = (-(test != 0) & (b - a)) + a transformation to...
16047 (noce_try_cmove): ... Here. Try it if normal conditional
16050 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
16052 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
16054 * config/mips/mips.md (processor): Remove w32 and w64.
16056 2015-08-13 Richard Biener <rguenther@suse.de>
16058 PR tree-optimization/66502
16059 PR tree-optimization/67167
16060 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
16061 backedge arguments.
16062 (vn_phi_lookup): Adjust.
16063 (vn_phi_insert): Likewise.
16064 (visit_phi): Prefer to value-number to another PHI node
16065 over value-numbering to a PHI argument.
16066 (init_scc_vn): Mark DFS back edges.
16068 2015-08-13 Richard Biener <rguenther@suse.de>
16070 * gimple.h (gcall::code_): New constant static member.
16071 (gcond::code_): Likewise.
16072 * gimple.c (gcall::code_): Define.
16073 (gcond::code_): Likewise.
16074 (is_a_helper <const gcond *>): Add.
16075 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
16076 and forward to a new gcall overload with less checking and a
16077 cheaper way to access the operand.
16078 (gimple_call_lhs_ptr): Likewise.
16079 (gimple_call_set_lhs): Likewise.
16080 (gimple_call_internal_p): Likewise.
16081 (gimple_call_with_bounds_p): Likewise.
16082 (gimple_call_set_with_bounds): Likewise.
16083 (gimple_call_internal_fn): Likewise.
16084 (gimple_call_set_ctrl_altering): Likewise.
16085 (gimple_call_ctrl_altering_p): Likewise.
16086 (gimple_call_fntype): Likewise.
16087 (gimple_call_fn): Likewise.
16088 (gimple_call_fn_ptr): Likewise.
16089 (gimple_call_set_fndecl): Likewise.
16090 (gimple_call_fndecl): Likewise.
16091 (gimple_call_chain): Likewise.
16092 (gimple_call_num_args): Likewise.
16093 (gimple_call_arg): Likewise.
16094 (gimple_call_arg_ptr): Likewise.
16095 (gimple_call_set_arg): Likewise.
16096 (gimple_call_noreturn_p): Likewise.
16097 (gimple_cond_code): Likewise.
16098 (gimple_cond_lhs): Likewise.
16099 (gimple_cond_rhs): Likewise.
16100 (gimple_has_lhs): Reduce checking.
16102 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
16104 PR middle-end/25529
16105 * match.pd (div (mult @0 @1) @1) : New simplifier.
16107 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
16110 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
16111 predicate to allow construction of vector constants using the
16112 VSLDOI vector shift instruction.
16114 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
16117 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
16118 the number of bytes to be shifted left and filled in with either
16119 all zero or all one bits.
16120 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
16122 (output_vec_const_move): On power8, generate XXLORC to generate
16123 a vector constant with all 1's. Do a split if we need to use a
16124 VSLDOI instruction.
16126 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
16127 properly test for the MSB.
16129 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
16130 vector constants that can be created with VSLDOI.
16132 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
16135 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
16136 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
16137 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
16138 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
16139 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
16140 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
16141 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
16142 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
16143 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
16145 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
16147 * config/xtensa/constraints.md (define_constraint "Y"): New
16149 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
16150 * config/xtensa/linux.h (ASM_SPEC): Likewise.
16151 * config/xtensa/predicates.md (move_operand): Match constants
16152 and symbols in the presence of TARGET_AUTO_LITPOOLS.
16153 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
16154 immediate references to TLS data.
16155 (xtensa_emit_move_sequence): Don't force constants to memory in
16156 the presence of TARGET_AUTO_LITPOOLS.
16157 (print_operand): Add 'y' format, same as default, but capable of
16158 printing SF mode constants as well.
16159 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
16160 (movsf_internal): Add movi pattern that loads literal.
16161 (movsf, movdf): Don't force constants to memory in the presence
16162 of TARGET_AUTO_LITPOOLS.
16163 (movdf_internal): Add 'Y' constraint.
16164 * config/xtensa/xtensa.opt (mauto-litpools): New option.
16165 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
16167 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
16169 * config/arm/arm-fpus.def: Replace booleans with feature flags.
16171 * config/arm/arm.c (ARM_FPU): Update macro.
16172 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
16173 (TARGET_FP16): Likewise.
16174 (TARGET_CRYPTO): Likewise.
16175 (TARGET_NEON): Likewise.
16176 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
16179 2015-08-12 Tom de Vries <tom@codesourcery.com>
16183 * doc/install.texi: Remove --with_host_libstdcxx item. Update
16184 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
16185 accordingly. Mention default for --with-stage1-ldflags.
16187 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
16189 * config/arm/arm.h (arm_fpu_feature_set): New.
16190 (ARM_FPU_FSET_HAS): New.
16191 (FPU_FL_NONE): New.
16192 (FPU_FL_NEON): New.
16193 (FPU_FL_FP16): New.
16194 (FPU_FL_CRYPTO): New.
16196 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16198 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
16199 after -mcmodel=large -fPIC sorry.
16201 2015-08-12 Richard Biener <rguenther@suse.de>
16203 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
16204 comparison operand order and commutative ternary op operand order.
16205 (sccvn_dom_walker::cond_stack): New state to track temporary
16207 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
16209 (sccvn_dom_walker::record_cond): Add a single temporary conditional
16211 (sccvn_dom_walker::record_conds): Add a temporary conditional
16212 expressions and all related expressions also true/false.
16213 (sccvn_dom_walker::before_dom_children): Record temporary
16214 expressions based on the controlling condition of a single
16215 predecessor. When trying to simplify a conditional statement
16216 lookup expressions we might have inserted earlier.
16218 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
16221 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
16222 to ARM core registers.
16224 2015-08-12 Nathan Sidwell <nathan@acm.org>
16226 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
16227 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
16229 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
16231 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
16232 line with comments.
16233 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
16235 2015-08-12 Richard Biener <rguenther@suse.de>
16237 * gimple.h (remove_pointer): New trait.
16238 (GIMPLE_CHECK2): New inline template function.
16239 (gassign::code_): New constant static member.
16240 (is_a_helper<const gassign *>): Add.
16241 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
16242 and forward to a new gassign overload with less checking and a
16243 cheaper way to access the operand.
16244 (gimple_assign_lhs_ptr): Likewise.
16245 (gimple_assign_set_lhs): Likewise.
16246 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
16248 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
16250 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
16252 (gimple_assign_rhs_code): Likewise.
16253 * gimple.c (gassign::code_): Define.
16255 2015-08-12 Richard Biener <rguenther@suse.de>
16257 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
16258 Eliminate edges marked as not executable by SCCVN.
16259 * tree-ssa-sccvn.c: Include gimple-iterator.h.
16260 (cond_dom_walker): Rename to sccvn_dom_walker.
16261 (sccvn_dom_walker::before_dom_children): Value-number defs
16263 (run_scc_vn): Remove loop value-numbering all SSA names.
16264 Drop not visited SSA names to varying.
16266 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
16268 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
16269 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
16270 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
16271 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
16272 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
16273 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
16274 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
16275 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
16276 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
16278 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
16281 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
16282 to enum feature_priority and feature_list.
16283 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
16284 and isa_names_table.
16286 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
16288 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
16289 vect_induction_def.
16291 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
16295 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
16296 account when deciding what was the command-line status.
16298 2015-08-11 Nathan Sidwell <nathan@acm.org>
16300 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
16302 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
16303 we're not the only contributor to target phi.
16305 2015-08-11 Jiong Wang <jiong.wang@arm.com>
16307 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
16310 2015-08-11 Tom de Vries <tom@codesourcery.com>
16312 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
16314 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
16316 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
16318 * config/i386/i386.md (cpu): Remove knl.
16320 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
16323 PR middle-end/66332
16324 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
16325 open-coded sequence.
16326 * omp-low.c (oacc_process_reduction_data): Remove handline of
16327 GOMP_DEVICE_HOST_NONSHM.
16329 * lto-streamer-in.c (lto_input_mode_table): Adjust to
16330 GET_MODE_INNER changes.
16332 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
16333 Ilya Verbin <ilya.verbin@intel.com>
16335 * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
16337 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
16339 * doc/options.texi (EnabledBy): Document that the argument must be
16341 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
16342 Not enabled by -Wall.
16343 * optc-gen.awk: Give nicer error messages. Detect if the argument
16344 of EnabledBy is not a Common option.
16345 * common.opt (Wnull-dereference): Not enabled by -Wall.
16346 * opt-functions.awk (lang_enabled_by): Nicer error messages.
16348 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
16350 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
16351 model == 0x4f as Broadwell.
16353 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
16355 PR rtl-optimization/67028
16356 * combine.c (simplify_comparison): Fix comment. Rearrange code.
16357 Add test to see if a const_int fits in the new mode.
16359 2015-08-07 DJ Delorie <dj@redhat.com>
16361 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
16363 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
16365 PR rtl-optimization/67029
16366 * ira-color.c: Include "recog.h" before including "ira-int.h".
16367 * target-globals.c: Likewise.
16368 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
16369 adds an alternative_mask argument and use it instead of
16370 preferred_alternatives.
16371 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
16372 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
16373 * sched-deps.c: Include "ira-int.h" after including "ira.h".
16374 (sched_analyze_insn): Update call to
16375 ira_implicitly_set_insn_hard_regs.
16376 * sel-sched.c: Include "ira-int.h" after including "ira.h".
16377 (implicit_clobber_conflict_p): Update call to
16378 ira_implicitly_set_insn_hard_regs.
16380 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
16382 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
16384 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
16387 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
16388 currently_expanding_to_rtl is set.
16390 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
16392 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
16393 * configure: Regenerate.
16395 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16396 Jiong Wang <jiong.wang@arm.com>
16398 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
16399 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
16400 (REG_CLASS_NAMES): Likewise.
16401 (REG_CLASS_CONTENTS): Likewise.
16402 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
16403 (aarch64_register_move_cost): Likewise.
16404 (aarch64_load_symref_appropriately): Invoke the new added pattern if
16406 * config/aarch64/constraints.md (Uc0): New constraint.
16408 2015-08-06 Jiong Wang <jiong.wang@arm.com>
16410 * config/aarch64/constraints.md (Usf): Add the test of
16411 aarch64_is_noplt_call_p.
16413 2015-08-06 Jiong Wang <jiong.wang@arm.com>
16415 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
16417 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
16418 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
16419 (call_symbol): Likewise.
16421 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
16423 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
16424 for vectorizing multiplication patterns.
16425 * tree-vectorizer.h: Adjust the number of patterns.
16427 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
16429 * config/i386/sse.md (*vec_concatv2df): Declare added
16430 alternatives as sselog type.
16432 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16434 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
16437 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16439 * config/s390/s390.c (s390_expand_tbegin): Expand either
16440 tbegin_1_z13 or tbegin_1 depending on VX flag.
16441 * config/s390/s390.md ("tbegin_1_z13"): New expander.
16443 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16445 * config/s390/s390.opt: Clarify description for -mzvector
16446 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
16449 2015-08-06 Richard Biener <rguenther@suse.de>
16451 * gimple.h (gimple_call_set_fn): Access op member directly.
16452 (gimple_call_chain_ptr): Likewise.
16453 (gimple_call_set_chain): Likewise.
16454 (gimple_cond_lhs_ptr): Likewise.
16455 (gimple_cond_set_lhs): Likewise.
16456 (gimple_cond_rhs_ptr): Likewise.
16457 (gimple_cond_set_rhs): Likewise.
16458 (gimple_cond_true_label): Likewise.
16459 (gimple_cond_set_true_label): Likewise.
16460 (gimple_cond_set_false_label): Likewise.
16461 (gimple_cond_false_label): Likewise.
16462 (gimple_label_label): Likewise.
16463 (gimple_label_set_label): Likewise.
16464 (gimple_goto_set_dest): Likewise.
16465 (gimple_asm_input_op): Likewise.
16466 (gimple_asm_input_op_ptr): Likewise.
16467 (gimple_asm_set_input_op): Likewise.
16468 (gimple_asm_output_op): Likewise.
16469 (gimple_asm_output_op_ptr): Likewise.
16470 (gimple_asm_set_output_op): Likewise.
16471 (gimple_asm_clobber_op): Likewise.
16472 (gimple_asm_set_clobber_op): Likewise.
16473 (gimple_asm_label_op): Likewise.
16474 (gimple_asm_set_label_op): Likewise.
16475 (gimple_switch_index): Likewise.
16476 (gimple_switch_index_ptr): Likewise.
16477 (gimple_return_retval_ptr): Likewise.
16478 (gimple_return_retval): Likewise.
16479 (gimple_return_set_retval): Likewise.
16480 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
16481 (gimple_switch_label): Likewise.
16482 (gimple_switch_set_label): Likewise.
16484 2015-08-06 Richard Biener <rguenther@suse.de>
16486 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
16487 bool comparison canonicalization and restrict to integers.
16489 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
16491 * coretypes.h (enum symbol_visibility): Relocate here.
16492 * flag-types.h (enum symbol_visibility): Remove.
16493 * tree-core.h (enum symbol_visibility): Remove.
16495 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
16498 * config/rs6000/rs6000.c (rs6000_emit_prologue): Check
16499 for no_split_stack function attribute along with
16501 (rs6000_expand_split_stack_prologue): Likewise.
16503 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
16504 Jeff Law <law@redhat.com>
16507 * doc/invoke.texi (Wnull-dereference): New.
16508 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
16509 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
16510 Warn for potential NULL dereferences.
16511 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
16512 * ubsan.c (instrument_nonnull_arg): Call
16513 infer_nonnull_range_by_attribute.
16514 (instrument_nonnull_return): Likewise.
16515 * common.opt (Wnull-dereference); New.
16516 * gimple.c (infer_nonnull_range): Remove bool arguments.
16517 (infer_nonnull_range_by_dereference): New.
16518 (infer_nonnull_range_by_attribute): New.
16519 * gimple.h: Update declarations.
16521 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
16523 * gensupport.c (sequence_num): Replace with...
16524 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
16525 ...these new variables.
16526 (init_rtx_reader_args_cb): Update accordingly.
16527 (get_num_code_insns): Likewise.
16528 (read_md_rtx): Rework to use a while loop and get_c_test.
16529 Use the new counters. Remove redundant DEFINE_SUBST case.
16530 * genoutput.c (gen_split): Delete.
16531 (main): Don't call it.
16533 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
16535 * gensupport.h (get_c_test): Declare.
16536 * gensupport.c (get_c_test): New function.
16537 * genconditions.c (main): Use it.
16538 * genrecog.c (validate_pattern): Likewise.
16539 (match_pattern_1): Likewise. Remove c_test argument.
16540 (match_pattern): Update accordingly and remove c_test argument.
16541 (main): Update accordingly.
16543 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
16545 * gensupport.h (get_num_insn_codes): Declare.
16546 * gensupport.c (get_num_insn_codes): New function.
16547 * genattrtab.c (optimize_attrs): Rename max_insn_code to
16549 (main): Likewise. Use get_num_insn_codes.
16550 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
16552 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
16554 PR middle-end/66311
16555 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
16556 is zero- rather than sign-extended.
16558 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
16560 * target-insns.def (can_extend): Delete.
16562 2015-08-05 Richard Biener <rguenther@suse.de>
16564 PR tree-optimization/67121
16565 * tree-if-conv.c (combine_blocks): Clear range-info produced
16566 by stmts no longer executed conditionally.
16568 2015-08-05 Nick Clifton <nickc@redhat.com>
16570 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
16571 to allow identical far pointers to remain.
16573 2015-08-05 Richard Biener <rguenther@suse.de>
16575 PR middle-end/67120
16576 * match.pd: Compare address bases with == if they are decls
16577 or SSA names, not operand_equal_p. Otherwise fail.
16579 2015-08-05 Richard Biener <rguenther@suse.de>
16581 PR tree-optimization/67055
16582 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
16585 * g++.dg/torture/pr67055.C: New testcase.
16587 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
16589 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
16591 (define_attr "enabled"): Handle avx521vl and noavx512vl.
16592 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
16593 AVX-512 alternative out of SSE.
16594 (define_insn "*vec_concatv2df"): Ditto.
16596 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
16598 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
16599 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
16600 CODE_FOR_avx_ptestv4di.
16601 * config/i386/sse.md (define_mode_iterator V_AVX): New.
16602 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
16603 (define_insn "avx_ptest256"): Merge this ...
16604 (define_insn "sse4_1_ptest"): And this ...
16605 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
16607 2015-08-05 Richard Biener <rguenther@suse.de>
16609 PR tree-optimization/67109
16610 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
16611 against too big groups. Print whether this is a load or store
16612 group. Rename from ...
16613 (vect_analyze_group_access): ... this which is now a wrapper
16614 dissolving an invalid group.
16615 (vect_analyze_data_ref_accesses): Print whether this is a load
16618 2015-08-05 Richard Biener <rguenther@suse.de>
16620 PR middle-end/67107
16621 * match.pd: Guard const_binop result checking against NULL_TREE
16624 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
16626 * cse.c (cse_insn): Restoring old behaviour for src_eqv
16627 when dest and value in the REG_EQUAL are same and dest
16628 is STRICT_LOW_PART.
16630 2015-08-04 Anatoly Sokolov <aesok@post.ru>
16632 * config/moxie/moxie.h (PRINT_OPERAND,
16633 PRINT_OPERAND_ADDRESS): Remove macros.
16634 * config/moxie/moxie-protos.h (moxie_print_operand,
16635 moxie_print_operand_address): Remove declaration.
16636 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
16637 TARGET_PRINT_OPERAND_ADDRESS): Define.
16638 (moxie_print_operand, moxie_print_operand_address): Make static.
16640 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
16643 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
16644 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
16646 2015-08-04 Richard Biener <rguenther@suse.de>
16648 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
16650 (dt_operand::gen_gimple_expr): Adjust.
16652 2015-08-04 Richard Biener <rguenther@suse.de>
16654 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
16655 bool compares on RHS.
16656 * match.pd: Add X ==/!= !X is false/true pattern.
16658 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
16660 * config/aarch64/aarch64.c: Change inner loop statement cost
16661 to be consistent with other targets.
16663 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
16665 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
16668 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
16670 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
16671 (machine_function): Remove pseudos field.
16673 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16675 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
16676 Exit early and use target_option_current_node if processing current
16679 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16681 * doc/extend.texi (AArch64 Function Attributes): New node.
16682 (AArch64 Pragmas): Likewise.
16684 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16686 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
16687 Initialize simd builtins if TARGET_SIMD.
16688 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
16689 Make sure that the builtins are initialized only once no matter how
16690 many times the function is called.
16691 (aarch64_init_builtins): Unconditionally initialize crc builtins.
16692 (aarch64_relayout_simd_param): New function.
16693 (aarch64_simd_expand_args): Use above during argument expansion.
16694 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
16695 simd builtins if TARGET_SIMD.
16696 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
16698 (aarch64_relayout_simd_types): Likewise.
16700 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16702 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
16703 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
16704 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
16705 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
16707 (aarch64_reset_previous_fndecl): New function.
16708 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
16710 * config/aarch64/aarch64-c.c: New file.
16711 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
16712 Push and pop options at beginning and end. Remove ifdef
16713 __ARM_FEATURE_CRC32.
16714 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
16715 Add pragma +nothing+simd and +nothing+crypto where appropriate.
16716 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
16717 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
16719 (aarch64_register_pragmas): Likewise.
16720 (aarch64_reset_previous_fndecl): Likewise.
16721 (aarch64_process_target_attr): Likewise.
16722 (aarch64_override_options_internal): Likewise.
16724 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16726 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
16728 (aarch64_can_inline_p): Likewise.
16729 (TARGET_CAN_INLINE_P): Define.
16731 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16733 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
16734 Remove static. Handle OPT_mgeneral_regs_only,
16735 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
16736 OPT_momit_leaf_frame_pointer.
16737 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
16738 (aarch64_attr_opt_type): New enum.
16739 (aarch64_attribute_info): New struct.
16740 (aarch64_handle_attr_arch): New function.
16741 (aarch64_handle_attr_cpu): Likewise.
16742 (aarch64_handle_attr_tune): Likewise.
16743 (aarch64_handle_attr_isa_flags): Likewise.
16744 (aarch64_attributes): New table.
16745 (aarch64_process_one_target_attr): New function.
16746 (num_occurences_in_str): Likewise.
16747 (aarch64_process_target_attr): Likewise.
16748 (aarch64_option_valid_attribute_p): Likewise.
16749 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
16750 * config/aarch64/aarch64-protos.h: Include input.h
16751 (aarch64_handle_option): Declare prototype.
16753 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16755 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
16756 * config/aarch64/aarch64.c: Include target-globals.h
16757 (aarch64_previous_fndecl): New variable.
16758 (aarch64_set_current_function): New function.
16759 (TARGET_SET_CURRENT_FUNCTION): Define.
16761 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16763 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
16764 (explicit_arch): Likewise.
16765 (x_aarch64_isa_flags): Likewise.
16766 (mgeneral-regs-only): Mark as Save.
16767 (mfix-cortex-a53-835769): Likewise.
16768 (mcmodel=): Likewise.
16769 (mstrict-align): Likewise.
16770 (momit-leaf-frame-pointer): Likewise.
16771 (mtls-dialect): Likewise.
16772 (master=): Likewise.
16773 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
16774 (aarch64_isa_flags): Remove extern declaration.
16775 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
16776 to indicate success or failure.
16777 (aarch64_validate_march): Likewise.
16778 (aarch64_validate_mtune): Likewise.
16779 (aarch64_isa_flags): Delete.
16780 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
16781 instead of aarch64_isa_flags.
16782 (aarch64_get_tune_cpu): New function.
16783 (aarch64_get_arch): Likewise.
16784 (aarch64_override_options): Use above and set up explicit_tune_core
16786 (aarch64_print_extension): Move earlier in file. Add isa_flags
16787 argument and use that instead of the global aarch64_isa_flags.
16788 (aarch64_option_save): New function.
16789 (aarch64_option_restore): Likewise.
16790 (aarch64_option_print): Likewise.
16791 (aarch64_declare_function_name): Likewise.
16792 (aarch64_start_file): Delete.
16793 (TARGET_ASM_FILE_START): Do not define.
16794 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
16795 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
16798 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16800 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
16801 flag_omit_leaf_frame_pointer to 2.
16803 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16805 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
16807 (TARGET_FIX_ERR_A53_835769): New macro.
16808 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
16809 handling of opts->x_aarch64_fix_a53_err835769.
16810 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
16811 than aarch64_fix_a53_err835769.
16812 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
16813 * config/aarch64/aarch64-linux.h: Likewise.
16815 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
16817 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
16818 ix86_expand_int_movcc as boolean.
16820 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16822 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
16823 (aarch64_cpu_string): Likewise.
16824 (aarch64_tune_string): Likewise.
16825 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
16826 (aarch64_parse_extension): Return aarch64_parse_opt_result.
16827 Add extra argument to put result into.
16828 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
16829 (aarch64_parse_cpu): Add arguments to put results into. Return
16830 aarch64_parse_opt_result.
16831 (aarch64_parse_tune): Likewise.
16832 (aarch64_override_options_after_change_1): New function.
16833 (aarch64_override_options_internal): New function.
16834 (aarch64_validate_mcpu): Likewise.
16835 (aarch64_validate_march): Likewise.
16836 (aarch64_validate_mtune): Likewise.
16837 (aarch64_override_options): Update to reflect above changes.
16838 Move some logic into aarch64_override_options_internal.
16839 Initialize target_option_default_node and target_option_current_node.
16840 (aarch64_override_options_after_change): Move logic into
16841 aarch64_override_options_after_change_1 and call it with global_options.
16842 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
16843 flag values from that.
16845 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16847 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
16848 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
16849 * config/aarch64/aarch64.c (struct processor): Add arch field.
16850 (all_architectures): Handle above, move above all_cores.
16851 (all_cores): Handle above.
16852 (aarch64_parse_arch): Handle above changes.
16853 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
16854 above. Update comments.
16855 (armv8.1-a): Likewise.
16856 * config/aarch64/aarch64-cores.def: Update according to above.
16857 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
16858 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
16859 aarch64_arch_driver_info.
16861 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16863 * config/aarch64/aarch64.c (struct processor): Add ident field.
16864 Rename core sched_core.
16865 (all_cores): Handle above changes.
16866 (all_architectures): Likewise.
16867 (aarch64_parse_arch): Likewise.
16868 (aarch64_override_options): Likewise.
16870 2015-08-04 Richard Biener <rguenther@suse.de>
16872 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
16873 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
16874 comparisons embedded in [VEC_]COND_EXPRs.
16876 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
16878 * tree-if-conv.c: Fix various typos in comments.
16879 * tree-vect-stmts.c: Likewise.
16881 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
16883 PR tree-optimization/67043
16884 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
16885 preheader after hoisting invariant in it.
16886 (find_defs): Force recomputation of all luids.
16888 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
16890 * config/rs6000/htm.md (tabort.): Restrict the source operand to
16891 using a base register.
16893 2015-08-03 David Malcolm <dmalcolm@redhat.com>
16895 * main.c (main): Pass in NULL for toplev's external_timer.
16896 * timevar.c: Include coretypes.h.
16897 (class timer::named_items): New.
16898 (timer::named_items::named_items): New.
16899 (timer::named_items::~named_items): New.
16900 (timer::named_items::push): New.
16901 (timer::named_items::pop): New.
16902 (timer::named_items::print): New.
16903 (timer::timer): Initialize field "m_jit_client_items".
16904 (timer::~timer): New.
16905 (timer::push): Move bulk of implementation to...
16906 (timer::push_internal): ...here. New function.
16907 (timer::pop): Move bulk of implementation to...
16908 (timer::pop_internal): ...here. New function.
16909 (timer::push_client_item): New.
16910 (timer::pop_client_item): New.
16911 (timer::print_row): New function, taken from timer::print.
16912 (timer::print): Print "GCC items" header if we also have client
16913 items. Move row-printing to timer::print_row. Print any client
16915 (timer::get_topmost_item_name): New method.
16916 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
16917 (TV_JIT_CLIENT_CODE): New.
16918 * timevar.h (timer::push_client_item): New declaration.
16919 (timer::pop_client_item): New declaration.
16920 (timer::get_topmost_item_name): New method.
16921 (timer::push_internal): New declaration.
16922 (timer::pop_internal): New declaration.
16923 (timer::print_row): New declaration.
16924 (timer::named_items): New declaration.
16925 (timer::m_jit_client_items): New field.
16926 (timer): Add friend class named_items.
16927 (auto_timevar::auto_timevar): Add timer param.
16928 (auto_timevar::~auto_timevar): Use field "m_timer".
16929 (auto_timevar::m_timer): New field.
16930 * toplev.c (initialize_rtl): Add g_timer as param when
16931 constructing auto_timevar instance.
16932 (toplev::toplev): Add "external_timer" param, and use it to
16933 initialize the "g_timer" global if non-NULL.
16934 (toplev::~toplev): If this created "g_timer", delete it.
16935 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
16936 with "external_timer" timer *.
16938 2015-08-03 Alexander Basov <coohpt@gmail.com>
16940 PR middle-end/64744
16941 PR middle-end/48470
16942 PR middle-end/43404
16943 * cfgexpand.c (expand_one_var): Add check if stack is going to
16944 be used in naked function.
16945 * expr.c (expand_expr_addr_expr_1): Remove excess checking
16946 whether expression should not reside in MEM.
16947 * function.c (use_register_for_decl): Do not use registers for
16948 non-register things (volatile, float, BLKMode) in naked functions.
16950 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
16953 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
16954 Adjust splits to match new pattern.
16956 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
16958 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
16961 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
16962 point in VSX registers.
16964 * config/rs6000/constraints.md (wb constraint): Document unused
16966 (we constraint): Likewise.
16967 (wo constraint): Likewise.
16968 (wp constraint): New constraint for IEEE 128-bit floating point in
16970 (wq constraint): Likewise.
16972 * config/rs6000/predicates.md (easy_fp_constant): Add support for
16973 IEEE 128-bit floating point in VSX registers.
16974 (easy_scalar_constant): Likewise.
16976 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
16977 constraints (wp, wq) for IEEE 128-bit floating point in VSX
16979 (rs6000_init_hard_regno_mode_ok): Likewise.
16981 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
16982 floating point in VSX registers.
16985 (VSX_M2): Likewise.
16991 (vsx_le_permute_<mode>): Add support to properly swap bytes for
16992 IEEE 128-bit floating point in VSX registers on little endian.
16993 (vsx_le_undo_permute_<mode>): Likewise.
16994 (vsx_le_perm_load_<mode>): Likewise.
16995 (vsx_le_perm_store_<mode>): Likewise.
16996 (splitters for IEEE 128-bit fp moves): Likewise.
16998 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
17001 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
17002 floating point in VSX registers.
17005 * doc/md.text (Machine Constraints): Document wp and wq
17006 constraints on PowerPC.
17008 2015-08-03 Jeff Law <law@redhat.com>
17010 PR middle-end/66314
17011 PR gcov-profile/66899
17012 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
17013 iterate over the jump threading paths when an element in the
17014 jump threading paths array is eliminated.
17016 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
17018 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
17020 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
17022 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
17023 is_use_properly_guarded the variable def_preds. Free its
17024 contents before returning.
17025 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
17026 (is_use_properly_guarded): Replace local variable def_preds with
17027 a parameter. Adjust accordingly. Only update *def_preds if it's
17030 2015-08-03 Richard Biener <rguenther@suse.de>
17032 * genmatch.c (simplify::for_subst_vec): New member.
17033 (binary_ok): New helper for for lowering.
17034 (lower_for): Delay substituting operators into result expressions
17035 if we can merge the results eventually again.
17036 (capture_info::walk_result): Adjust for user_id appearing as
17037 result expression operator.
17038 (expr::gen_transform): Likewise.
17039 (dt_simplify::gen_1): Likewise.
17040 (dt_simplify::gen): Pass not substituted operators to tail
17041 functions or initialize local variable with it.
17042 (decision_tree::gen): Adjust function signature.
17043 * match.pd: Fix tests against global code and add default
17044 cases to switch stmts.
17046 2015-08-03 Richard Biener <rguenther@suse.de>
17048 * genmatch.c (dt_simplify::gen): Create captures array
17049 with an initializer.
17051 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17053 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
17054 the host compiler is affected by placement new aliasing bug.
17055 * configure: Regenerate.
17056 * Makefile.in (ALIASING_FLAGS): New variable.
17057 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
17059 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
17062 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
17063 (negmulsf3_vfp): Likewise.
17064 (muldf3negdf_vfp): Disable for -frounding-math.
17065 (mulsf3negsf_vfp): Likewise.
17066 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
17067 fix MULT cost with -frounding-math.
17069 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17071 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
17072 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
17073 explicit. Prefer to add the flag whenever possible.
17074 (noce_process_if_block): Try noce_try_store_flag_constants before
17077 2015-08-03 Richard Biener <rguenther@suse.de>
17079 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
17080 New hash-map to record equivalent transforms.
17081 (dt_node::analyze): Populate the equivalent transforms hash-map.
17082 (dt_simplify::info): Add reference to hash-map entry.
17083 (dt_simplify::gen): If we have split out a function for the
17084 transform, generate a call to it.
17085 (sinfo_hashmap_traits::hash): New function.
17086 (compare_op): New helper function for ...
17087 (sinfo_hashmap_traits::equal_keys): ... this new function.
17088 (decision_tree::gen): Split out common equivalent transforms
17091 2015-08-03 Richard Biener <rguenther@suse.de>
17093 * gimple-fold.c (fold_gimple_assign): Remove folding of
17094 the comparison in COND_EXPRs.
17096 2015-08-03 Richard Biener <rguenther@suse.de>
17098 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
17099 on the rhs of assignments first simplify the embedded
17102 2015-08-03 Richard Biener <rguenther@suse.de>
17104 PR tree-optimization/66917
17105 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
17107 (DR_VECT_AUX): New macro.
17108 (set_dr_misalignment): Adjust.
17109 (dr_misalignment): Likewise.
17110 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
17111 Compute whether the base is at least element aligned.
17112 * tree-vect-stmts.c (ensure_base_align): Adjust.
17113 (vectorizable_store): If the base is not element aligned
17114 preserve alignment of the original access if misalignment is unknown.
17115 (vectorizable_load): Likewise.
17117 2015-08-02 Martin Sebor <msebor@redhat.com>
17119 * c-family/c.opt (-Wframe-address): New warning option.
17120 * doc/invoke.texi (Wframe-address): Document it.
17121 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
17122 Clarify possible effects of calling the functions with non-zero
17123 arguments and mention -Wframe-address.
17124 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
17126 2015-08-01 Michael Collison <michael.collison@linaro.org
17127 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
17129 * config/arm/arm.md (*arm_smin_cmp): New pattern.
17130 (*arm_umin_cmp): Likewise.
17132 2015-08-01 Caroline Tice <cmtice@google.com>
17135 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
17137 (vtbl_find_mangled_name): New function.
17138 (vtbl_register_mangled_name): New function.
17139 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
17140 mangled name in mangled name vectors.
17141 (find_or_create_vtbl_map_node): Ditto.
17142 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
17143 update recursion_depth on function entry; pass it to every recursive
17144 call; automatically exit if depth > 25 (give up looking at that point).
17145 (verify_bb_vtables): Initialize recursion_depth and pass it to
17146 var_is_used_for_virtual_call_p.
17147 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
17148 global variable decls.
17149 (vtbl_register_mangled_name): New extern function decl.
17151 2015-08-01 Tom de Vries <tom@codesourcery.com>
17153 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
17155 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
17157 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
17158 operation_no_trapping_overflow. Allow non-overflow operations.
17159 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
17162 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
17165 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
17167 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17169 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
17170 Enable for TARGET_32BIT.
17171 (*if_move_neg): Likewise.
17173 2015-07-31 Nick Clifton <nickc@redhat.com>
17175 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
17176 Returns true for __model__.
17177 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
17179 2015-07-31 Alan Modra <amodra@gmail.com>
17182 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
17183 (rs6000_emit_prologue): Set it.
17184 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
17186 2015-07-31 Richard Biener <rguenther@suse.de>
17188 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
17189 -> X == (C1 ^ C2) which is already implemented in match.pd.
17190 Remove redundant dispatching to fold_relational_const.
17191 Move unordered self and NaN compares ...
17192 * match.pd: ... as patterns here. Remove some stray captures
17195 2015-07-31 Petr Murzin <petr.murzin@intel.com>
17197 * config/i386/i386.c
17198 (bdesc_special_args): Convert mask type from signed to unsigned for
17200 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
17201 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
17202 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
17203 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
17204 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
17205 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
17206 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
17207 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
17208 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
17209 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
17210 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
17211 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
17212 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
17213 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
17214 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
17215 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
17216 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
17217 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
17218 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
17219 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
17220 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
17221 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
17222 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
17223 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
17224 * config/i386/i386-builtin-types.def
17225 (V16QI_FTYPE_V16SI): Remove.
17226 (V8DF_FTYPE_V8SI): Ditto.
17227 (V8HI_FTYPE_V8DI): Ditto.
17228 (V8SI_FTYPE_V8DI): Ditto.
17229 (V8SF_FTYPE_V8DF): Ditto.
17230 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
17231 (V16HI_FTYPE_V16SI): Ditto.
17232 (V16SF_FTYPE_V16HI): Ditto.
17233 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
17234 (V16SF_FTYPE_V16SI): Ditto.
17235 (V4DI_FTYPE_V4DI): Ditto.
17236 (V16SI_FTYPE_V16SF): Ditto.
17237 (V16SF_FTYPE_FLOAT): Ditto.
17238 (V8DF_FTYPE_DOUBLE): Ditto.
17239 (V8DI_FTYPE_INT64): Ditto.
17240 (V8DI_FTYPE_V4DI): Ditto.
17241 (V16QI_FTYPE_V8DI): Ditto.
17242 (UINT_FTYPE_V4SF): Ditto.
17243 (UINT64_FTYPE_V4SF): Ditto.
17244 (UINT_FTYPE_V2DF): Ditto.
17245 (UINT64_FTYPE_V2DF): Ditto.
17246 (V16SI_FTYPE_V16SI): Ditto.
17247 (V8DI_FTYPE_V8DI): Ditto.
17248 (V16SI_FTYPE_PV4SI): Ditto.
17249 (V16SF_FTYPE_PV4SF): Ditto.
17250 (V8DI_FTYPE_PV2DI): Ditto.
17251 (V8DF_FTYPE_PV2DF): Ditto.
17252 (V4DI_FTYPE_PV2DI): Ditto.
17253 (V4DF_FTYPE_PV2DF): Ditto.
17254 (V16SI_FTYPE_PV2SI): Ditto.
17255 (V16SF_FTYPE_PV2SF): Ditto.
17256 (V8DI_FTYPE_PV4DI): Ditto.
17257 (V8DF_FTYPE_PV4DF): Ditto.
17258 (V8SF_FTYPE_FLOAT): Ditto.
17259 (V4SF_FTYPE_FLOAT): Ditto.
17260 (V4DF_FTYPE_DOUBLE): Ditto.
17261 (V8SF_FTYPE_PV4SF): Ditto.
17262 (V8SI_FTYPE_PV4SI): Ditto.
17263 (V4SI_FTYPE_PV2SI): Ditto.
17264 (V8SF_FTYPE_PV2SF): Ditto.
17265 (V8SI_FTYPE_PV2SI): Ditto.
17266 (V16SF_FTYPE_PV8SF): Ditto.
17267 (V16SI_FTYPE_PV8SI): Ditto.
17268 (V8DI_FTYPE_V8SF): Ditto.
17269 (V4DI_FTYPE_V4SF): Ditto.
17270 (V2DI_FTYPE_V4SF): Ditto.
17271 (V64QI_FTYPE_QI): Ditto.
17272 (V32HI_FTYPE_HI): Ditto.
17273 (V8UHI_FTYPE_V8UHI): Ditto.
17274 (V16UHI_FTYPE_V16UHI): Ditto.
17275 (V32UHI_FTYPE_V32UHI): Ditto.
17276 (V2UDI_FTYPE_V2UDI): Ditto.
17277 (V4UDI_FTYPE_V4UDI): Ditto.
17278 (V8UDI_FTYPE_V8UDI): Ditto.
17279 (V4USI_FTYPE_V4USI): Ditto.
17280 (V8USI_FTYPE_V8USI): Ditto.
17281 (V16USI_FTYPE_V16USI): Ditto.
17282 (V2DF_FTYPE_V2DF_UINT64): Ditto.
17283 (V2DI_FTYPE_V2DF_V2DF): Ditto.
17284 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
17285 (V8DF_FTYPE_V8DF_V8DI): Ditto.
17286 (V4SF_FTYPE_V4SF_UINT64): Ditto.
17287 (V4SI_FTYPE_V4SF_V4SF): Ditto.
17288 (V16SF_FTYPE_V16SF_V16SI): Ditto.
17289 (V64QI_FTYPE_V32HI_V32HI): Ditto.
17290 (V32HI_FTYPE_V16SI_V16SI): Ditto.
17291 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
17292 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
17293 (V32HI_FTYPE_V64QI_V64QI): Ditto.
17294 (V32HI_FTYPE_V32HI_V32HI): Ditto.
17295 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
17296 (V16SI_FTYPE_V16SI_V4SI): Ditto.
17297 (V16SI_FTYPE_V16SI_V16SI): Ditto.
17298 (V16SI_FTYPE_V32HI_V32HI): Ditto.
17299 (V16SI_FTYPE_V16SI_SI): Ditto.
17300 (V8DI_FTYPE_V8DI_V8DI): Ditto.
17301 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
17302 (V8DI_FTYPE_V16SI_V16SI): Ditto.
17303 (V8DI_FTYPE_V8DI_V2DI): Ditto.
17304 (QI_FTYPE_QI): Ditto.
17305 (SI_FTYPE_SI): Ditto.
17306 (DI_FTYPE_DI): Ditto.
17307 (QI_FTYPE_QI_QI): Ditto.
17308 (QI_FTYPE_QI_INT): Ditto.
17309 (HI_FTYPE_HI_INT): Ditto.
17310 (SI_FTYPE_SI_INT): Ditto.
17311 (DI_FTYPE_DI_INT): Ditto.
17312 (HI_FTYPE_V16QI_V16QI): Ditto.
17313 (SI_FTYPE_V32QI_V32QI): Ditto.
17314 (DI_FTYPE_V64QI_V64QI): Ditto.
17315 (QI_FTYPE_V8HI_V8HI): Ditto.
17316 (HI_FTYPE_V16HI_V16HI): Ditto.
17317 (SI_FTYPE_V32HI_V32HI): Ditto.
17318 (QI_FTYPE_V4SI_V4SI): Ditto.
17319 (QI_FTYPE_V8SI_V8SI): Ditto.
17320 (QI_FTYPE_V2DI_V2DI): Ditto.
17321 (QI_FTYPE_V4DI_V4DI): Ditto.
17322 (QI_FTYPE_V8DI_V8DI): Ditto.
17323 (HI_FTYPE_V16SI_V16SI): Ditto.
17324 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
17325 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
17326 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
17327 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
17328 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
17329 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
17330 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
17331 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
17332 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
17333 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
17334 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
17335 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
17336 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
17337 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
17338 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
17339 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
17340 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
17341 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
17342 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
17343 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
17344 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
17345 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
17346 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
17347 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
17348 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
17349 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
17350 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
17351 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
17352 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
17353 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
17354 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
17355 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
17356 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
17357 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
17358 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
17359 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
17360 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
17361 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
17362 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
17363 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
17364 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
17365 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
17366 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
17367 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
17368 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
17369 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
17370 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
17371 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
17372 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
17373 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
17374 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
17375 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
17376 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
17377 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
17378 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
17379 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
17380 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
17381 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
17382 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
17383 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
17384 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
17385 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
17386 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
17387 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
17388 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
17389 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
17390 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
17391 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
17392 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
17393 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
17394 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
17395 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
17396 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
17397 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
17398 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
17399 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
17400 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
17401 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
17402 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
17403 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
17404 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
17405 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
17406 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
17407 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
17408 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
17409 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
17410 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
17411 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
17412 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
17413 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
17414 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
17415 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
17416 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
17417 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
17418 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
17419 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
17420 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
17421 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
17422 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
17423 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
17424 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
17425 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
17426 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
17427 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
17428 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
17429 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
17430 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
17431 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
17432 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
17433 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
17434 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
17435 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
17436 (HI_FTYPE_HI): Ditto.
17437 (HI_FTYPE_V16QI): Ditto.
17438 (SI_FTYPE_V32QI): Ditto.
17439 (DI_FTYPE_V64QI): Ditto.
17440 (QI_FTYPE_V8HI): Ditto.
17441 (HI_FTYPE_V16HI): Ditto.
17442 (SI_FTYPE_V32HI): Ditto.
17443 (QI_FTYPE_V4SI): Ditto.
17444 (QI_FTYPE_V8SI): Ditto.
17445 (HI_FTYPE_V16SI): Ditto.
17446 (QI_FTYPE_V2DI): Ditto.
17447 (QI_FTYPE_V4DI): Ditto.
17448 (QI_FTYPE_V8DI): Ditto.
17449 (V16QI_FTYPE_HI): Ditto.
17450 (V32QI_FTYPE_SI): Ditto.
17451 (V64QI_FTYPE_DI): Ditto.
17452 (V8HI_FTYPE_QI): Ditto.
17453 (V16HI_FTYPE_HI): Ditto.
17454 (V32HI_FTYPE_SI): Ditto.
17455 (V4SI_FTYPE_QI): Ditto.
17456 (V4SI_FTYPE_HI): Ditto.
17457 (V8SI_FTYPE_QI): Ditto.
17458 (V8SI_FTYPE_HI): Ditto.
17459 (V2DI_FTYPE_QI): Ditto.
17460 (V4DI_FTYPE_QI): Ditto.
17461 (HI_FTYPE_HI_HI): Ditto.
17462 (SI_FTYPE_SI_SI): Ditto.
17463 (DI_FTYPE_DI_DI): Ditto.
17464 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
17465 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
17466 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
17467 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
17468 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
17469 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
17470 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
17471 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
17472 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
17473 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
17474 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
17475 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
17476 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
17477 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
17478 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
17479 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
17480 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
17481 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
17482 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
17483 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
17484 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
17485 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
17486 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
17487 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
17488 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
17489 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
17490 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
17491 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
17492 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
17493 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
17494 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
17495 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
17496 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
17497 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
17498 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
17499 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
17500 (V16SI_FTYPE_HI): Ditto.
17501 (V8DI_FTYPE_QI): Ditto.
17502 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
17503 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
17504 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
17505 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
17506 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
17507 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
17508 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
17509 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
17510 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
17511 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
17512 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
17513 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
17514 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
17515 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
17516 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
17517 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
17518 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
17519 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
17520 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
17521 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
17522 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
17523 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
17524 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
17525 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
17526 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
17527 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
17528 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
17529 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
17530 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
17531 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
17532 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
17533 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
17534 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
17535 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
17536 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
17537 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
17538 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
17539 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
17540 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
17541 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
17542 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
17543 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
17544 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
17545 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
17546 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
17547 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
17548 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
17549 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
17550 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
17551 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
17552 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
17553 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
17554 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
17555 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
17556 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
17557 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
17558 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
17559 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
17560 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
17561 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
17562 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
17563 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
17564 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
17565 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
17566 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
17567 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
17568 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
17569 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
17570 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
17571 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
17572 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
17573 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
17574 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
17575 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
17576 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
17577 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
17578 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
17579 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
17580 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
17581 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
17582 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
17583 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
17584 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
17585 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
17586 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
17587 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
17588 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
17589 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
17590 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
17591 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
17592 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
17593 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
17594 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
17595 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
17596 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
17597 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
17598 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
17599 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
17600 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
17601 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
17602 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
17603 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
17604 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
17605 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
17606 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
17607 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
17608 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
17609 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
17610 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
17611 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
17612 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
17613 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
17614 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
17615 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
17616 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
17617 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
17618 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
17619 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
17620 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
17621 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
17622 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
17623 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
17624 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
17625 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
17626 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
17627 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
17628 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
17629 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
17630 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
17631 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
17632 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
17633 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
17634 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
17635 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
17636 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
17637 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
17638 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
17639 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
17640 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
17641 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
17642 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
17643 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
17644 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
17645 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
17646 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
17647 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
17648 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
17649 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
17650 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
17651 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
17652 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
17653 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
17654 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
17655 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
17656 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
17657 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
17658 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
17659 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
17660 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
17661 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
17662 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
17663 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
17664 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
17665 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
17666 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
17667 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
17668 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
17669 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
17670 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
17671 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
17672 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
17673 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
17674 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
17675 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
17676 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
17677 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
17678 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
17679 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
17680 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
17681 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
17682 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
17683 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
17684 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
17685 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
17686 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
17687 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
17688 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
17689 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
17690 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
17691 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
17692 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
17693 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
17694 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
17695 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
17696 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
17697 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
17698 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
17699 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
17700 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
17701 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
17702 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
17703 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
17704 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
17705 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
17706 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
17707 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
17708 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
17709 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
17710 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
17711 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
17712 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
17713 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
17714 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
17715 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
17716 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
17717 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
17718 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
17719 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
17720 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
17721 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
17722 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
17723 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
17724 (QI_FTYPE_V8DF_INT_QI): Ditto.
17725 (QI_FTYPE_V4DF_INT_QI): Ditto.
17726 (QI_FTYPE_V2DF_INT_QI): Ditto.
17727 (HI_FTYPE_V16SF_INT_HI): Ditto.
17728 (QI_FTYPE_V8SF_INT_QI): Ditto.
17729 (QI_FTYPE_V4SF_INT_QI): Ditto.
17730 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
17732 2015-07-31 Richard Biener <rguenther@suse.de>
17734 * gimple-fold.c (fold_gimple_assign): Remove folding of
17737 2015-07-31 Tom de Vries <tom@codesourcery.com>
17739 PR tree-optimization/66846
17740 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
17741 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
17742 (expand_omp_target) [ENABLE_CHECKING]: Same.
17743 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
17744 cfun if !LOOPS_NEED_FIXUP.
17745 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
17746 that omp_for already has its own loop struct.
17747 * tree-parloops.c (create_phi_for_local_result)
17748 (create_call_for_reduction): Handle simple latch bb.
17749 (create_parallel_loop): Add simple latch bb to preserve
17750 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
17751 (gen_parallel_loop): Remove call to cancel_loop_tree.
17752 (parallelize_loops): Skip loops that are inner loops of parallelized
17754 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
17755 verify_loop_structure.
17757 2015-07-30 Anatoly Sokolov <aesok@post.ru>
17759 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
17760 * config/v850/v850.md (RV_REGNUM): New constants.
17761 * config/v850/v850.c (v850_libcall_value): New functions.
17762 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
17763 (TARGET_LIBCALL_VALUE): Define.
17765 2015-07-30 Anatoly Sokolov <aesok@post.ru>
17767 * rtl.h (lowpart_subreg): Move in file.
17768 * loop-iv.c (lowpart_subreg): Move to...
17769 * simplify-rtx.c (lowpart_subreg): ...here.
17770 (simplify_binary_operation_1): Use lowpart_subreg instead of
17771 simplify_gen_subreg.
17772 * expr.c (expand_expr_real_2): Ditto.
17773 * emit-rtl.c (gen_lowpart_common): Ditto.
17774 * combine.c (gen_lowpart_for_combine): Ditto.
17775 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
17776 expand_debug_source_expr): Ditto.
17778 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
17780 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
17781 (expand_builtin_atomic_clear): Remove support for atomic_clear
17784 2015-07-30 Richard Biener <rguenther@suse.de>
17786 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
17787 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
17788 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
17789 redundant operand canonicalization.
17791 2015-07-30 David Sherwood <david.sherwood@arm.com>
17793 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
17794 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
17795 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
17796 * config/arm/arm.c (neon_valid_immediate): Likewise.
17797 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
17798 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
17799 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
17800 (expand_vec_perm_vpshufb2_vpermq): Likewise.
17801 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
17802 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
17803 * config/i386/sse.md
17804 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
17805 (*ssse3_palignr<mode>_perm): Likewise.
17806 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
17807 * config/spu/spu.c (arith_immediate_p): Likewise.
17808 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
17809 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
17811 2015-07-30 Richard Biener <rguenther@suse.de>
17813 * genmatch.c (decision_tree::gen_gimple): Merge with ...
17814 (decision_tree::gen_generic): ... this into ...
17815 (decision_tree::gen): ... this.
17816 (main): Adjust callers.
17818 2015-07-30 Richard Biener <rguenther@suse.de>
17820 * genmatch.c (verbose): New global.
17821 (warning_at): Add overload with source_location.
17822 (capture_info::capture_info): Add bool whether generating gimple
17823 or generic. Add gimple member.
17824 (capture_info::cinfo): Add capture member.
17825 (capture_info::walk_match): Record capture. Warn on
17826 non-captured leafs.
17827 (capture_info::walk_c_expr): Add more fragments captures cannot
17828 escape through. Warn on escaped captures.
17829 (dt_simplify::gen_1): Warn on operands we force to have no
17831 (main): Initialize verbose.
17832 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
17834 2015-07-30 Richard Biener <rguenther@suse.de>
17836 PR middle-end/67053
17837 * match.pd: Allow both operands to independently have conversion
17838 when simplifying compares of addresses.
17840 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
17844 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
17845 around those cases that need one.
17847 2015-07-29 Aditya Kumar <hiraditya@msn.com>
17849 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
17851 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
17853 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
17854 New. Copied from config/i386/gnu-user.h.
17855 (ASM_COMMENT_START): Likewise.
17856 (DBX_REGISTER_NUMBER): Likewise.
17858 2015-07-29 Richard Biener <rguenther@suse.de>
17860 * gimple-fold.c (fold_gimple_cond): Remove.
17861 (fold_stmt_1): Do not call it.
17863 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
17865 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
17866 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
17868 * config/aarch64/aarch64-modes.def: Add HFmode.
17870 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
17871 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
17873 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
17874 aarch64_promoted_type): New.
17876 (aarch64_float_const_representable_p): Disable HFmode.
17877 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
17878 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
17879 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
17881 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
17882 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
17884 * config/aarch64/iterators.md (GPF_F16): New.
17886 2015-07-29 Richard Biener <rguenther@suse.de>
17888 * match.pd: Merge address comparison patterns and make them
17889 handle some more cases.
17891 2015-07-29 Richard Biener <rguenther@suse.de>
17893 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
17894 (parser::parse_capture): Add bool argument on whether to reject
17896 (parser::parse_expr): Adjust.
17897 (parser::parse_op): Likewise.
17898 (parser::parse_pattern): Likewise.
17900 2015-07-29 Richard Biener <rguenther@suse.de>
17902 * gimple-fold.c (has_use_on_stmt): New function.
17903 (replace_stmt_with_simplification): Use it to allow
17904 abnormals originally referenced in the stmt.
17905 (fold_stmt_1): Canonicalize operand order.
17907 2015-07-28 David Sherwood <david.sherwood@arm.com>
17909 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
17910 GET_MODE_INNER unconditionally.
17911 * config/spu/spu.c (arith_immediate_p): Likewise.
17912 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
17913 * expmed.c (synth_mult): Remove check for VOIDmode result from
17915 (expand_mult_const): Likewise.
17916 * fold-const.c (fold_binary_loc): Replace call to element_precision
17917 with call to GET_MODE_PRECISION.
17918 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
17920 (emit_mode_inner): Likewise.
17921 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
17923 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
17924 (GET_MODE_UNIT_PRECISION): Likewise.
17925 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
17926 * simplify-rtx.c (simplify_immed_subreg): Likewise.
17927 * stor-layout.c (bitwise_type_for_mode): Update assert.
17928 (element_precision): Remove.
17930 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
17932 * target-insns.def (reload_load_address): New targetm instruction
17934 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
17936 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
17938 * target-insns.def (atomic_test_and_set): New targetm instruction
17940 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
17941 HAVE_*/gen_* interface.
17943 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
17945 * target-insns.def (can_extend, ptr_extend): New targetm instruction
17947 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
17948 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
17949 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
17950 * rtlanal.c (nonzero_bits1): Likewise.
17951 (num_sign_bit_copies1): Likewise.
17953 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
17955 * target-insns.def (eh_return): New targetm instruction pattern.
17956 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
17958 * function.c (thread_prologue_and_epilogue_insns): Remove
17959 preprocessor condition.
17961 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
17963 * target-insns.def (indirect_jump): New targetm instruction pattern.
17964 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
17967 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
17969 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
17970 instead of nonimmediate_operand. Remove C condiition.
17972 2015-07-28 Richard Biener <rguenther@suse.de>
17974 * match.pd: Add more simplification of address comparisons.
17976 2015-07-28 Richard Biener <rguenther@suse.de>
17978 * match.pd: Re-order two cases in comparison with max/min
17979 value simplification to make it apply for bools.
17981 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17983 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
17984 Handle simple SIGN_EXTEND or ZERO_EXTEND.
17985 (aarch64_rtx_costs): Properly strip extend or extract before
17986 passing down to rtx costs again.
17988 2015-07-28 Nick Clifton <nickc@redhat.com>
17990 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
17991 Optimizes the case where -mes0 is active and a constant symbolic
17993 * config/rl78/rl78-protos.h: Prototype the new function.
17994 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
17996 2015-07-28 Tom de Vries <tom@codesourcery.com>
17998 * tree-parloops.c (reduc_stmt_res): New function.
17999 (initialize_reductions, add_field_for_reduction)
18000 (create_phi_for_local_result, create_loads_for_reductions)
18001 (create_stores_for_reduction, build_new_reduction): Handle case that
18002 reduc_stmt is a phi.
18003 (gather_scalar_reductions): Allow double_reduc reductions.
18005 2015-07-28 Richard Biener <rguenther@suse.de>
18007 * fold-const.c (fold_comparison): Remove equality folding
18008 of decl addresses ...
18009 * match.pd: ... here and merge with existing pattern.
18011 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
18013 PR tree-optimization/66828
18014 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
18015 from int64_t to uint64_t.
18017 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
18019 * opts-common.c (read_cmdline_option): List DriverOnly enum values
18020 as valid only in the error message of the driver, not in the
18021 messages of the language compilers.
18023 2015-07-27 Tom de Vries <tom@codesourcery.com>
18025 * tree-parloops.c (gather_scalar_reductions): Simplify function
18028 2015-07-27 Marek Polacek <polacek@redhat.com>
18030 * ipa-devirt.c (types_same_for_odr): Fix typo.
18032 2015-07-27 Jason Merrill <jason@redhat.com>
18035 * dwarf2out.c (gen_inlined_subroutine_die): Check
18036 cgraph_function_possibly_inlined_p.
18038 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
18040 * config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
18041 Place integer variant first.
18042 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
18044 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
18047 * config/arm/arm-builtins.c (enum arm_builtins):
18048 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
18049 (ARM_BUILTIN_NEON_BASE): Rename macro to....
18050 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
18051 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
18052 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
18054 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
18057 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
18058 Add qualifier_lane_index.
18059 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
18060 (arm_getlane_qualifiers): Use qualifier_lane_index.
18061 (arm_lanemac_qualifiers): Rename to...
18062 (arm_mac_n_qualifiers): ...this.
18063 (LANEMAC_QUALIFIERS): Rename to...
18064 (MAC_N_QUALIFIERS): ...this.
18065 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
18066 (arm_setlane_qualifiers): Use qualifier_lane_index.
18067 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
18068 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
18069 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
18070 (arm_expand_neon_builtin): Handle qualifier_lane_index.
18072 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
18073 * config/arm/arm.c (bounds_check): Likewise, improve error message.
18074 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
18075 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
18076 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
18077 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
18078 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
18079 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
18080 qualifiers to TERNOP_IMM.
18081 (vdup_lane): Change qualifiers to GETLANE.
18082 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
18083 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
18084 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
18085 vqdmlsl_n): Change qualifiers to MAC_N.
18087 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
18088 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
18089 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
18090 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
18091 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
18092 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
18093 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
18094 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
18095 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
18096 Remove call to neon_lane_bounds.
18098 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
18100 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
18101 Place integer variant first.
18103 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
18105 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
18106 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
18107 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
18108 for armv6kz targets.
18109 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
18110 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
18111 (FL_FOR_ARCH6ZK): Remove.
18112 (FL_FOR_ARCH6KZ): New.
18113 (arm_arch6zk): New declaration.
18114 * config/arm/arm-tables.opt: Regenerate.
18115 * config/arm/arm.c (arm_arch6kz): New.
18116 (arm_option_override): Set arm_arch6kz.
18117 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
18118 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
18119 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
18121 2015-07-27 Marek Polacek <polacek@redhat.com>
18125 * doc/invoke.texi: Document -Wtautological-compare.
18127 2015-07-27 Richard Biener <rguenther@suse.de>
18129 * genmatch.c (decision_tree::gen_gimple): Split out large
18130 subtrees into separate functions.
18131 (decision_tree::gen_generic): Likewise.
18133 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
18135 * config/alpha/alpha.c: Use SUBREG_P predicate.
18136 * config/alpha/predicates.md: Ditto.
18138 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
18140 * config.host (s390*-*-*): Include driver-native.c only when
18141 building with s390* as host *and* target.
18143 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
18146 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
18147 T bit register modified_between_p check.
18149 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
18151 * config/i386/i386.c: Use SUBREG_P predicate.
18152 * config/i386/i386.md: Ditto.
18153 * config/i386/sse.md: Ditto.
18154 * config/i386/predicates.md: Ditto.
18156 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
18159 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
18160 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
18162 2015-07-25 Sebastian Pop <s.pop@samsung.com>
18164 * Makefile.in: Remove use of TREEBROWSER.
18165 * config.in: Regenerated.
18166 * configure: Regenerated.
18167 * configure.ac: Remove definition of TREEBROWSER.
18168 * tree-browser.c: Removed.
18169 * tree-browser.def: Removed.
18171 2015-07-25 Sebastian Pop <s.pop@samsung.com>
18173 * graphite-scop-detection.c: Include gimple-pretty-print.h.
18174 (stmt_simple_for_scop_p): Print when a stmt is not handled in
18176 (scopdet_basic_block_info): Print when a loop or bb cannot be
18177 represented in Graphite.
18179 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
18182 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
18183 execution guard when min_size is less than size_needed.
18185 2015-07-25 Sebastian Pop <s.pop@samsung.com>
18187 * doc/install.texi: Document supported versions of ISL.
18189 2015-07-25 Jeff Law <law@redhat.com>
18193 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
18194 unable to find X NE 0 in the tables, return X as the simplified
18196 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
18197 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
18198 to VISISTED_BBS. */
18199 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
18200 after removing the control flow statement and unnecessary edges.
18202 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
18205 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
18207 PR rtl-optimization/64164
18208 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
18209 * tree-ssa-copyrename.c: Removed.
18210 * opts.c (default_options_table): Drop -ftree-copyrename. Add
18211 -ftree-coalesce-vars.
18212 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
18213 * common.opt (ftree-copyrename): Ignore.
18214 (ftree-coalesce-inlined-vars): Likewise.
18215 * doc/invoke.texi: Remove the ignored options above.
18216 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
18217 * tree-ssa-coalesce.h: ... here.
18218 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
18219 headers required by it.
18220 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
18221 across variables when flag_tree_coalesce_vars. Check register
18222 use and promoted modes to allow coalescing. Moved to
18223 tree-ssa-coalesce.c.
18224 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
18225 with its member functions to tree-ssa-coalesce.c.
18226 (var_map_base_init): Likewise. Renamed to
18227 compute_samebase_partition_bases.
18228 (partition_view_normal): Drop want_bases parameter.
18229 (partition_view_bitmap): Likewise.
18230 * tree-ssa-live.h: Adjust declarations.
18231 * tree-ssa-coalesce.c: Include explow.h.
18232 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
18233 default defs at the entry point.
18234 (dump_part_var_map): New.
18235 (compute_optimized_partition_bases): New, called by...
18236 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
18237 of compute_samebase_partition_bases. Adjust.
18238 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
18239 * cfgexpand.c (leader_merge): New.
18240 (get_rtl_for_parm_ssa_default_def): New.
18241 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
18242 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
18243 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
18244 redundant MEM attr setting.
18245 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
18247 (expand_one_stack_var): ... this. New wrapper to check and
18248 skip already expanded SSA partitions.
18249 (record_alignment_for_reg_var): New, factored out of...
18250 (expand_one_var): ... this.
18251 (expand_one_ssa_partition): New.
18252 (adjust_one_expanded_partition_var): New.
18253 (expand_one_register_var): Check and skip already expanded SSA
18255 (expand_used_vars): Don't create DECLs for anonymous SSA
18256 names. Expand all SSA partitions, then adjust all SSA names.
18257 (pass::execute): Replace the loops that set
18258 SA.partition_to_pseudo from partition leaders and cleared
18259 DECL_RTL for multi-location variables, and that which used to
18260 rename vars and set attrs, with one that clears DECL_RTL and
18261 checks that PARMs and RESULTs default_defs match DECL_RTL.
18262 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
18263 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
18264 * explow.c (promote_ssa_mode): New.
18265 * explow.h (promote_ssa_mode): Declare.
18266 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
18267 * function.c: Include cfgexpand.h.
18268 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
18269 (use_register_for_parm_decl): Wrapper for the above to
18270 special-case the result_ptr.
18271 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
18272 (split_complex_args): Take assign_parm_data_all argument.
18273 Pass it to rtl_for_parm. Set up rtl and context for split
18275 (assign_parms_augmented_arg_list): Adjust.
18276 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
18277 multiple locations. Recognize split complex args.
18278 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
18279 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
18280 (assign_parm_setup_block): Prefer SSA-assigned location.
18281 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
18282 if stack_parm is NULL.
18283 (assign_parm_setup_stack): Prefer SSA-assigned location.
18284 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
18285 rtl before testing for pointer bounds. Special-case result_ptr.
18286 (expand_function_start): Maybe reset DECL_RTL of result.
18287 Prefer SSA-assigned location for result and static chain.
18288 Factor out DECL_RESULT and SET_DECL_RTL.
18289 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
18290 anonymous SSA names. Use promote_ssa_mode.
18291 (get_temp_reg): Likewise.
18292 (remove_ssa_form): Adjust.
18293 * stor-layout.c (layout_decl): Don't set mem attributes of
18295 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
18296 and get its reg_usage for reg invalidation.
18297 (compute_bb_dataflow): Pass it insn.
18298 (emit_notes_in_bb): Likewise.
18300 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
18302 * config/i386/i386.c (ix86_va_start): Remove
18303 unneeded !TARGET_64BIT check.
18304 (ix86_gimplify_va_arg): Ditto.
18306 2015-07-24 Tom de Vries <tom@codesourcery.com>
18308 * graphite-sese-to-poly.c (build_poly_scop): Always call
18309 rewrite_commutative_reductions_out_of_ssa.
18311 2015-07-24 Tom de Vries <tom@codesourcery.com>
18313 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
18314 flag_associative_math to FLOAT_TYPE_P. Honour
18315 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
18317 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
18320 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
18321 and "%qD" in warning_at instead of "%q+D" in warning.
18323 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
18325 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
18326 (ix86_function_abi): Cleanup.
18328 2015-07-24 Michael Darling <darlingm@gmail.com>
18331 * acinclude.m4: Reflects renaming of configure.in to configure.ac
18332 * configure: Likewise
18333 * configure.ac: Likewise
18334 * doc/install.texi: Likewise
18335 * doc/tm.texi: Likewise
18336 * doc/tm.texi.in: Likewise
18338 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18340 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
18341 manually swapping values.
18342 * cse.c (fold_rtx): Likewise.
18343 * lra-eliminations.c (form_sum): Likewise.
18345 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
18348 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
18349 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
18350 (*jcc_1, *jcc_2, jump, simple_return_internal)
18351 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
18352 Set length_nobnd attribute instead of length attribute.
18353 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
18354 (length_nobnd): Remove attribute.
18355 (length): Remove length_nobnd processing.
18357 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
18359 * gimplify.c (omp_default_clause): New function. Reorganize flow
18360 for clarity. Broken out of ...
18361 (omp_notice_variable): ... here.
18363 2015-07-24 Gary Funck <gary@intrepid.com>
18365 PR middle-end/66984
18366 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
18367 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
18369 2015-07-24 Tom de Vries <tom@codesourcery.com>
18371 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
18372 exit-first loop transform.
18374 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
18377 * tree-cfg.c (struct replace_decls_d): New struct.
18378 (replace_block_vars_by_duplicates_1): New function.
18379 (replace_block_vars_by_duplicates): Use it to replace the decls
18380 in the value exprs by duplicates.
18382 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
18384 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
18385 -shared, -symbolic, -rdynamic.
18387 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
18390 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
18391 -dynamic-linker within %{!static %{!shared, and -rdynamic within
18394 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
18397 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
18398 edge summary is available.
18400 2015-07-24 Richard Biener <rguenther@suse.de>
18402 * genmatch.c (struct dt_node): Add statistic fields.
18403 (dt_node::analyze): New method.
18404 (decision_tree::gen_gimple): Call analyze on the root node
18405 and print statistics to stderr.
18406 (decision_tree::gen_generic): Likewise.
18408 2015-07-24 Richard Biener <rguenther@suse.de>
18410 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
18411 against the highest or lowest possible integer ...
18412 * match.pd: ... as patterns here.
18414 2015-07-24 Richard Biener <rguenther@suse.de>
18416 * genmatch.c (struct capture_info): Add same_as field.
18417 (capture_info::capture_info): Initialize same_as.
18418 (capture_info::walk_match): Compute same_as.
18419 (capture_info::walk_result): Compute stuff for the leader.
18420 (capture_info::walk_c_expr): Likewise.
18421 (dt_simplify::gen_1): Only look at leaders when deciding
18422 to force no side-effects or emit side-effects of omitted operands.
18424 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18426 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
18427 reg note to the GPR -> FPR save instructions.
18429 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18431 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
18433 (s390_expand_insv): Don't generate risbg pattern for constant zero
18435 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
18436 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
18439 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
18441 * config/s390/s390.c (s390_reorg): Clean up handling of processors
18444 (s390_issue_rate): Likewise.
18445 (s390_sched_reorder): Likewise.
18446 (s390_sched_variable_issue): Likewise.
18447 (s390_loop_unroll_adjust): Likewise.
18448 (s390_option_override): Likewise.
18450 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
18452 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
18453 processor capabilities with -march=native.
18454 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
18455 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
18456 (S390_TARGET_BITS_STRING): Macro to simplify specs.
18458 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
18460 * config/s390/s390.c (s390_issue_rate): Handle
18461 PROCESSOR_2094_Z9_EC.
18462 (s390_option_override): Likewise.
18463 (s390_adjust_priority): Likewise.
18465 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
18467 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
18468 when cross compiling.
18470 2015-07-24 Richard Biener <rguenther@suse.de>
18472 * fold-const.c (maybe_canonicalize_comparison_1): Move
18473 A code CST canonicalization ...
18474 * match.pd: ... to a pattern here.
18476 2015-07-24 Jiong Wang <jiong.wang@arm.com>
18479 2015-07-22 Jiong Wang <jiong.wang@arm.com>
18481 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
18482 (HONOR_REG_ALLOC_ORDER): Define.
18484 2015-07-24 Richard Biener <rguenther@suse.de>
18486 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
18487 * fold-const.c (fold_comparison): Move parameter does not
18488 alias &local simplification ...
18489 * match.pd: ... as a pattern here.
18491 2015-07-24 Richard Biener <rguenther@suse.de>
18493 * gimple-fold.c (replace_stmt_with_simplification): Special-case
18494 valueizing call operands.
18495 * gimple-match-head.c (maybe_push_res_to_seq): Take
18496 number of call arguments from ops array.
18497 (do_valueize): New function.
18498 (gimple_simplify): Return true if valueization changed
18499 any operand even if the result didn't simplify further.
18501 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
18503 PR middle-end/25530
18504 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
18506 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
18508 PR middle-end/25529
18509 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
18511 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
18513 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
18516 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
18518 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
18521 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
18523 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
18524 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
18526 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
18527 ms_va_list_type_node initialization.
18529 2015-07-23 Jeff Law <law@redhat.com>
18532 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
18533 unable to find X NE 0 in the tables, return X as the simplified
18535 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
18536 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
18537 to VISISTED_BBS. */
18538 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
18539 after removing the control flow statement and unnecessary edges.
18541 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
18543 * tree-pass.h (get_current_pass_name): Removed.
18545 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
18547 PR rtl-optimization/64164
18548 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
18549 * tree-ssa-copyrename.c: Removed.
18550 * opts.c (default_options_table): Drop -ftree-copyrename. Add
18551 -ftree-coalesce-vars.
18552 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
18553 * common.opt (ftree-copyrename): Ignore.
18554 (ftree-coalesce-inlined-vars): Likewise.
18555 * doc/invoke.texi: Remove the ignored options above.
18556 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
18557 * tree-ssa-coalesce.h: ... here.
18558 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
18559 headers required by it.
18560 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
18561 across variables when flag_tree_coalesce_vars. Check register
18562 use and promoted modes to allow coalescing. Moved to
18563 tree-ssa-coalesce.c.
18564 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
18565 with its member functions to tree-ssa-coalesce.c.
18566 (var_map_base_init): Likewise. Renamed to
18567 compute_samebase_partition_bases.
18568 (partition_view_normal): Drop want_bases parameter.
18569 (partition_view_bitmap): Likewise.
18570 * tree-ssa-live.h: Adjust declarations.
18571 * tree-ssa-coalesce.c: Include explow.h.
18572 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
18573 default defs at the entry point.
18574 (dump_part_var_map): New.
18575 (compute_optimized_partition_bases): New, called by...
18576 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
18577 of compute_samebase_partition_bases. Adjust.
18578 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
18579 * cfgexpand.c (leader_merge): New.
18580 (get_rtl_for_parm_ssa_default_def): New.
18581 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
18582 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
18583 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
18584 redundant MEM attr setting.
18585 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
18587 (expand_one_stack_var): ... this. New wrapper to check and
18588 skip already expanded SSA partitions.
18589 (record_alignment_for_reg_var): New, factored out of...
18590 (expand_one_var): ... this.
18591 (expand_one_ssa_partition): New.
18592 (adjust_one_expanded_partition_var): New.
18593 (expand_one_register_var): Check and skip already expanded SSA
18595 (expand_used_vars): Don't create DECLs for anonymous SSA
18596 names. Expand all SSA partitions, then adjust all SSA names.
18597 (pass::execute): Replace the loops that set
18598 SA.partition_to_pseudo from partition leaders and cleared
18599 DECL_RTL for multi-location variables, and that which used to
18600 rename vars and set attrs, with one that clears DECL_RTL and
18601 checks that PARMs and RESULTs default_defs match DECL_RTL.
18602 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
18603 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
18604 * explow.c (promote_ssa_mode): New.
18605 * explow.h (promote_ssa_mode): Declare.
18606 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
18607 * function.c: Include cfgexpand.h.
18608 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
18609 (use_register_for_parm_decl): Wrapper for the above to
18610 special-case the result_ptr.
18611 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
18612 (split_complex_args): Take assign_parm_data_all argument.
18613 Pass it to rtl_for_parm. Set up rtl and context for split
18615 (assign_parms_augmented_arg_list): Adjust.
18616 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
18617 multiple locations. Recognize split complex args.
18618 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
18619 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
18620 (assign_parm_setup_block): Prefer SSA-assigned location.
18621 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
18622 if stack_parm is NULL.
18623 (assign_parm_setup_stack): Prefer SSA-assigned location.
18624 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
18625 rtl before testing for pointer bounds. Special-case result_ptr.
18626 (expand_function_start): Maybe reset DECL_RTL of result.
18627 Prefer SSA-assigned location for result and static chain.
18628 Factor out DECL_RESULT and SET_DECL_RTL.
18629 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
18630 anonymous SSA names. Use promote_ssa_mode.
18631 (get_temp_reg): Likewise.
18632 (remove_ssa_form): Adjust.
18633 * stor-layout.c (layout_decl): Don't set mem attributes of
18635 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
18636 and get its reg_usage for reg invalidation.
18637 (compute_bb_dataflow): Pass it insn.
18638 (emit_notes_in_bb): Likewise.
18640 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
18643 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
18645 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
18646 (rs6000_emit_2insn_and): Handle dot forms.
18647 * config/rs6000/rs6000.md (and<mode>3): Adjust.
18648 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
18649 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
18651 2015-07-23 Richard Biener <rguenther@suse.de>
18653 * generic-match-head.c: Include cgraph.h.
18654 * gimple-match-head.c: Likewise.
18655 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
18657 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
18658 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
18661 2015-07-23 Richard Biener <rguenther@suse.de>
18663 * gimple-fold.c (fold_gimple_cond): Do not require folding
18664 results to pass valid_gimple_rhs_p.
18665 * tree-cfg.h (fold_cond_expr_cond): Remove.
18666 * tree-cfg.c (fold_cond_expr_cond): Likewise.
18667 (make_edges): Do not call it.
18668 * tree-inline.c (tree_function_versioning): Likewise.
18670 2015-07-23 Tom de Vries <tom@codesourcery.com>
18672 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
18673 vect_force_simple_reduction.
18674 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
18675 (vect_is_simple_reduction_1): Add and handle
18676 need_wrapping_integral_overflow parameter.
18677 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
18678 need_wrapping_integral_overflow parameter.
18679 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
18680 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
18683 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
18685 PR tree-optimization/66926,66951
18686 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
18687 INNER_LOOP and fix up condition for renaming virtual operands.
18689 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18691 * combine.c (try_combine): Use std::swap instead of manually
18694 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
18696 * config/mips/i6400.md: New file.
18697 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
18698 (mips64r6): Likewise.
18700 * config/mips/mips-tables.opt: Regenerate.
18701 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
18702 (mips_issue_rate): Add support for i6400.
18703 (mips_multipass_dfa_lookahead): Likewise.
18704 * config/mips/mips.h (TUNE_I6400): Define.
18705 * config/mips/mips.md: Include i6400.md.
18706 (processor): Add i6400.
18707 * doc/invoke.texi (-march=@var{arch}): Add i6400.
18709 2015-07-23 Richard Biener <rguenther@suse.de>
18711 PR middle-end/66916
18712 * match.pd: Guard widen and sign-change comparison simplification
18715 2015-07-23 Richard Biener <rguenther@suse.de>
18717 PR tree-optimization/66945
18718 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
18719 ::before_dom_children): Force the propagators idea of
18720 non-executable edges to materialize, not what the folder
18723 2015-07-23 Richard Biener <rguenther@suse.de>
18725 * gimple.h (gimple_cond_make_false): Use 0 != 0.
18726 (gimple_cond_make_true): Use 1 != 0.
18728 2015-07-22 DJ Delorie <dj@redhat.com>
18730 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
18733 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
18734 (ashrhi3): Likewise.
18735 (lshrhi3): Likewise.
18736 (movhi): Take advantage of zero-extend to load small constants.
18737 (movpsi): Likewise.
18738 (and<mode>3): Likewise.
18739 (zero_extendqihi2): Likewise.
18740 (zero_extendqisi2): New.
18741 * config/msp430/constraints.md (N,O): New.
18742 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
18744 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
18747 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
18748 to enum feature_priority and feature_list.
18749 (fold_builtin_cpu): Add F_AES to enum processor_features
18750 and isa_names_table.
18752 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
18755 * config/i386/linux-common.h (MPX_SPEC): Use linker option
18756 for 64bit target only.
18758 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
18760 * config/nvptx/nvptx.c: Expand some comments.
18762 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
18764 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
18765 (cortex_a53_advsimd): ...This.
18767 2015-07-22 Richard Biener <rguenther@suse.de>
18769 * genmatch.c (expr::gen_transform): Clarify error message
18770 and display location.
18772 2015-07-22 Richard Biener <rguenther@suse.de>
18774 * genmatch.c (struct operand): Add location member.
18775 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
18777 (struct simplify): Remove match_location and result_location
18779 (elsehwere): Adjust.
18781 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
18783 * config/mips/m5100.md: New file.
18784 * config/mips/mips-cpus.def (m5100, m5101): Define.
18785 * config/mips/mips-tables.opt: Regenerate.
18786 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
18787 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
18788 -march=m5101 to -mips32r5.
18789 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
18790 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
18792 * config/mips/mips.md: Include m5100.md.
18793 (processor): Add m5100.
18794 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
18796 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
18798 * config/mips/mips-cpus.def (interaptiv): Define.
18799 * config/mips/mips-tables.opt: Regenerate.
18800 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
18802 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
18803 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
18805 2015-07-22 Jiong Wang <jiong.wang@arm.com>
18808 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
18809 (HONOR_REG_ALLOC_ORDER): Define.
18811 2015-07-22 Richard Biener <rguenther@suse.de>
18813 PR tree-optimization/66952
18814 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
18815 blocks we end up executing unconditionally reset all SSA
18816 info such as range and alignment.
18817 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
18818 * tree-ssanames.c (reset_flow_sensitive_info): New function.
18820 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
18822 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
18825 2015-07-22 Richard Biener <rguenther@suse.de>
18827 * genmatch.c (parser::parse_result): Properly handle
18828 match with result operands and conditions.
18830 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
18833 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
18834 Add qualifier_struct_load_store_lane_index.
18835 (aarch64_types_loadstruct_lane_qualifiers): Use
18836 qualifier_struct_load_store_lane_index for lane index argument for
18838 (aarch64_types_storestruct_lane_qualifiers): Ditto.
18839 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
18840 (aarch64_simd_expand_args): Add new argument describing mode of
18841 builtin. Check lane bounds for arguments with
18842 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
18843 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
18844 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
18845 (aarch64_simd_expand_builtin): Handle arguments with
18846 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
18847 aarch64_simd_expand_args.
18848 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
18849 vst[234]_lane with BUILTIN_VALLDIF.
18850 * config/aarch64/aarch64-simd.md:
18851 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
18852 endianness reversal on lane index.
18853 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
18854 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
18855 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
18856 (vec_store_lanesci_lane<mode>): Ditto.
18857 (vec_store_lanesxi_lane<mode>): Ditto.
18858 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
18859 reversal of lane index.
18860 (aarch64_ld3_lane<mode>): Ditto.
18861 (aarch64_ld4_lane<mode>): Ditto.
18862 (aarch64_st2_lane<mode>): Ditto.
18863 (aarch64_st3_lane<mode>): Ditto.
18864 (aarch64_st4_lane<mode>): Ditto.
18865 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
18866 to qmode. Add new mode parameter. Update uses.
18867 (__LD3_LANE_FUNC): Ditto.
18868 (__LD4_LANE_FUNC): Ditto.
18869 (__ST2_LANE_FUNC): Ditto.
18870 (__ST3_LANE_FUNC): Ditto.
18871 (__ST4_LANE_FUNC): Ditto.
18873 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
18875 * doc/invoke.texi (Language Independent Options): Rename node to
18876 Diagnostic Message Formatting Options.
18878 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
18881 * lra-remat.c (operand_to_remat): Prevent using insns with input
18882 subregs processed separately by IRA.
18884 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
18886 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
18888 (single_imm_use): Check for iterator node.
18889 (num_imm_uses): Likewise.
18890 * tree-ssa-operands.c (has_zero_uses_1): Delete.
18891 (single_imm_use_1): Check for iterator node.
18893 2015-07-21 Mike Frysinger <vapier@gentoo.org>
18894 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
18896 * configure.ac: Add check for new options in isl-0.15.
18897 * config.in, configure: Rebuilt.
18898 * graphite-blocking.c: Include <isl/constraint.h>
18899 * graphite-interchange.c, graphite-poly.c: Likewise.
18900 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
18901 * graphite.c: Likewise.
18902 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
18904 * graphite-dependences.c: Include <isl/constraint.h>.
18905 (max_number_of_out_dimensions): Returns isl_stat.
18906 (extend_schedule_1): Likewise
18907 (extend_schedule): Corresponding changes.
18908 * graphite-optimize-isl.c: Include <isl/constraint.h> and
18910 (getSingleMap): Change return type of isl_stat.
18911 (optimize_isl): Conditionally use
18912 isl_options_set_schedule_serialize_sccs.
18913 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
18914 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
18916 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
18919 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
18920 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
18922 2015-07-21 Richard Biener <rguenther@suse.de>
18924 PR tree-optimization/66948
18925 * genmatch.c (capture_info::walk_match): Also recurse to
18926 captures. Properly compute expr state from captures of
18928 * match.pd: Add single-use guards to
18929 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
18931 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
18933 * config/nvptx/mkoffload.c (process): Add static destructor call.
18935 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18937 PR middle-end/66915
18938 * match.pd (A - B -> A + (-B)): Don't allow folding
18939 when type if a fixed-point type.
18941 2015-07-20 DJ Delorie <dj@redhat.com>
18943 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
18944 (iorqi3_real): Likewise for set1.
18946 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
18948 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
18951 2015-07-20 Aditya Kumar <hiraditya@msn.com>
18953 * graphite-isl-ast-to-gimple.c:
18954 Refactor so that each function can access 'region'. This will help
18955 maintain a parameter rename_map within a region.
18957 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18959 * config/rs6000/rs6000.md (*lt0_disi): New.
18961 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18964 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
18965 "available letters" comment.
18966 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
18967 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
18968 and_2rld_operand): Delete.
18969 (and_operand): Adjust.
18970 (rotate_mask_operator): New.
18971 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
18972 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
18973 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
18974 extract_ME): Delete.
18975 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
18976 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
18977 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
18978 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
18979 rs6000_emit_2insn_and): New.
18980 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
18981 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
18982 includes_rldic_lshift_p, includes_rldicr_lshift_p,
18983 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
18984 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
18985 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
18986 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
18987 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
18988 rs6000_emit_2insn_and): New.
18989 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
18990 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
18992 <NOT>: Don't fall through to next case.
18993 <AND>: Handle the various rotate-and-mask cases directly.
18994 <IOR>: Always cost as one insn.
18995 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
18996 (and<mode>3): Adjust expander for the new patterns.
18997 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
18998 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
18999 (*and<mode>3_imm_dot_shifted): New.
19000 (*and<mode>3_mask): Delete, rewrite as ...
19001 (and<mode>3_mask): ... New.
19002 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
19003 (andsi3_internal0_nomc): Delete.
19004 (*andsi3_internal6): Delete.
19005 (*and<mode>3_2insn): New.
19006 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
19007 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
19008 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
19009 *insvdi_internal3): Delete.
19010 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
19011 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
19012 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
19013 *ior<mode>_mask): New.
19014 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
19015 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
19016 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
19017 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
19019 (ashr<mode>3): Delete expander.
19020 (*ashr<mode>3): Rename to ...
19021 (ashr<mode>3): ... This.
19022 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
19023 (*rotldi3_internal4, *rotldi3_internal5 and split,
19024 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
19025 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
19026 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
19027 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
19028 (splitter for loading a mask): Adjust.
19029 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
19031 2015-07-20 Marek Polacek <polacek@redhat.com>
19033 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
19034 output_add_clobbers, output_added_clobbers_hard_reg_p,
19035 gen_rtx_scratch): Remove declarations.
19037 2015-07-20 Marek Polacek <polacek@redhat.com>
19040 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
19042 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19044 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
19045 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
19047 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19049 * combine.c (combine_simplify_rtx): Move simplification step
19050 before various transformations/substitutions.
19052 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
19054 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
19055 (struct int_traits): Likewise.
19057 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19059 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
19060 function to vmsdbgout_function_decl.
19062 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
19065 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
19066 from misaligned positions.
19067 (ix86_expand_pinsr): Reject insertions to misaligned positions.
19069 2015-07-18 Sebastian Pop <s.pop@samsung.com>
19071 PR middle-end/46851
19072 PR middle-end/60340
19073 * Makefile.in: Removed omega.o.
19074 * common.opt: Document flag fcheck-data-deps as deprecated.
19075 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
19076 its associated params: omega-max-vars, omega-max-geqs,
19077 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
19078 omega-max-keys, omega-eliminate-redundant-constraints.
19079 * doc/loop.texi: Remove all the section on Omega.
19080 * graphite-blocking.c: Include missing params.h: it used to be
19081 included through tree-data-ref.h and omega.h.
19082 * graphite-isl-ast-to-gimple.c: Same.
19083 * graphite-optimize-isl.c: Same.
19084 * graphite-sese-to-poly.c: Same.
19085 * graphite.c: Same.
19088 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
19089 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
19090 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
19091 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
19092 * passes.def: Remove pass_check_data_deps.
19093 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
19094 (dump_conflict_function): Same.
19095 (dump_subscript): Same.
19096 (print_direction_vector): Same.
19097 (print_dir_vectors): Same.
19098 (print_lambda_vector): Same.
19099 (print_dist_vectors): Same.
19100 (dump_data_dependence_relation): Same.
19101 (dump_data_dependence_relations): Same.
19102 (dump_dist_dir_vectors): Same.
19104 (init_omega_eq_with_af): Removed.
19105 (omega_extract_distance_vectors): Removed.
19106 (omega_setup_subscript): Removed.
19107 (init_omega_for_ddr_1): Removed.
19108 (init_omega_for_ddr): Removed.
19109 (ddr_consistent_p): Removed.
19110 (compute_affine_dependence): Do not use omega to check data
19112 (compute_data_dependences_for_bb): Removed.
19113 (analyze_all_data_dependences): Removed.
19114 (tree_check_data_deps): Removed.
19115 * tree-data-ref.h: Do not include omega.h.
19116 (compute_data_dependences_for_bb): Removed.
19117 (tree_check_data_deps): Removed.
19118 * tree-ssa-loop.c (pass_check_data_deps): Removed.
19119 (make_pass_check_data_deps): Removed.
19120 * tree-ssa-phiopt.c: Include params.h.
19121 * tree-vect-data-refs.c: Same.
19122 * tree-vect-slp.c: Same.
19124 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
19126 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
19127 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
19128 (mem->fpreg splitters): Ditto.
19129 (general_operand->nonimmediate_operand splitter): Use explicit modes.
19130 Disable DFmode for TARGET_64BIT.
19132 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
19135 * config/i386/i386.c (ix86_expand_prologue): Replicate static
19136 chain on the stack.
19138 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
19140 * config/nvptx/mkoffload.c (process): Constify host data.
19141 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
19142 Constify host data.
19143 (generate_host_descr_file): Likewise.
19145 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
19146 Sebastian Pop <s.pop@samsung.com>
19148 PR middle-end/61929
19149 * graphite-dependences.c (add_pdr_constraints): Renamed
19150 pdr->extent to pdr->subscript_sizes.
19151 * graphite-interchange.c (build_linearized_memory_access): Add
19152 back all gcc_assert's that the "isl_int to isl_val conversion"
19153 patch has removed. Refactored.
19154 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
19155 * graphite-poly.c (new_poly_dr): Same.
19156 (free_poly_dr): Same.
19157 * graphite-poly.h (struct poly_dr): Same.
19158 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
19159 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
19160 * graphite-scop-detection.h: Fix space.
19161 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
19162 back all gcc_assert's removed by a previous patch.
19163 (wrap): Remove the_isl_ctx global variable that the same patch has
19165 (build_loop_iteration_domains): Same.
19166 (add_param_constraints): Same.
19167 (pdr_add_data_dimensions): Same. Refactored.
19168 (build_poly_dr): Renamed extent to subscript_sizes.
19170 2015-07-17 Marek Polacek <polacek@redhat.com>
19172 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
19173 * match.pd: ... here.
19175 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
19177 * config/nvptx/mkoffload.c (process): Constify target data.
19178 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
19179 Constify target data.
19180 (generate_target_offloadend_file): Likewise.
19182 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
19184 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
19185 to allow renaming of PHI arguments on edges incoming from outer
19186 loop header, add corresponding check before start PHI iterator.
19187 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
19188 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
19189 with true force_vectorize. Set-up dominator for outer loop too.
19190 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
19191 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
19192 was marked with force_vectorize and has restricted cfg.
19193 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
19195 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
19196 do peeling for outer loops.
19198 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
19199 Matthias Klose <doko@ubuntu.com>
19201 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
19202 build-sysroot, sysroot from the `Miscenalleous configure options' to
19203 the `Directories' section and strip trailing `/' from with_sysroot.
19204 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
19205 * configure: Regenerated.
19207 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
19210 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
19211 (TARGET_HARD_DF_REGS): Ditto.
19212 (TARGET_HARD_XF_REGS): Ditto.
19213 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
19214 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
19215 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
19216 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
19217 (*movsf_internal): Add alternatives 16 and 17. Enable
19218 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
19220 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
19222 PR rtl-optimization/66891
19223 * calls.c (expand_call): Wrap precompute_register_parameters with
19224 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
19226 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
19228 * config/nvptx/mkoffload.c (process): Constify mapping variables.
19229 Define target data struct and initialize it.
19231 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
19233 PR rtl-optimization/66626
19234 * ira.h (emit-rtl.h): Include.
19235 (non_spilled_static_chain_regno_p): New.
19236 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
19237 unless it is non spilled static chain pseudo.
19238 (assign_hard_rego): Spill memory profitable allocno unless it is
19239 non spilled static chain pseudo.
19240 (allocno_spill_priority_compare): Put non spilled static chain
19241 pseudo at the end of sorted array.
19242 (improve_allocation): Do nothing if we have static chain and
19244 (allocno__priority_compare_func): Put non spilled static chain
19245 pseudo at the beginning of sorted array.
19246 (move_spill_restore): Ignore non spilled static chain pseudo.
19247 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
19248 to non spilled static chain pseudo.
19249 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
19250 pseudo at the beginning of sorted array.
19251 (spill_for): Spill non spilled static chain pseudo last.
19252 * lra-constraints.c (lra_constraints): Remove static chain pseudo
19253 check for equivalence.
19255 2015-07-16 Martin Liska <mliska@suse.cz>
19258 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
19259 dst_ctx if it does not exist.
19261 2015-07-16 Martin Liska <mliska@suse.cz>
19263 * hash-set.h (remove): New function.
19264 (iterator): New iteration class for hash_set.
19266 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
19268 * genattrtab.c (make_canonical): Add a file_location parameter.
19269 Use fatal_at rather than fatal.
19270 (get_attr_value): Likewise. Update call to make_canonical.
19271 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
19272 (make_internal_attr): Update calls accordingly.
19274 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
19276 * read-md.h (message_with_line, error_with_line): Delete.
19277 * read-md.c (message_with_line, error_with_line): Delete.
19278 * gensupport.h: Include read-md.h.
19279 (md_rtx_info): New structure.
19280 (read_md_rtx): Use it. Return a bool success value.
19281 * gensupport.c (read_md_rtx): Likewise.
19282 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
19283 (main): Update after interface changes.
19284 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
19285 (main): Update after interface changes.
19286 * genattrtab.c (insn_code_number): Delete.
19287 (optimize_attrs): Add a max_insn_code parameter and use it instead
19288 of insn_code_number.
19289 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
19290 Use *_at rather than *_with_line functions.
19291 (gen_insn): Likewise.
19292 (gen_delay): Likewise.
19293 (gen_insn_reserv): Likewise.
19294 (gen_bypass): Take an md_rtx_info rather than an rtx.
19295 (main): Update after interface changes. Use a local max_insn_code
19296 variable instead of insn_code_number.
19297 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
19298 an rtx. Use fatal_at rather than fatal.
19299 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
19300 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
19301 (gen_absence_set, gen_final_absence_set, gen_automaton)
19302 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
19303 (main): Update after interface changes.
19304 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
19306 (main): Update after interface changes.
19307 * genconditions.c (main): Use new read_md_rtx interface.
19308 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
19309 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
19310 (main): Update after interface changes.
19311 * genemit.c (insn_code_number, insn_index_number): Delete.
19312 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
19313 Use fatal_at rather than fatal.
19314 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
19316 (gen_split): Likewise.
19317 (main): Update after interface changes.
19318 * genextract.c (line_no): Delete.
19319 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
19320 Update call to walk_rtx.
19321 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
19322 rather than message_with_line.
19323 (walk_rtx): Add an md_rtx_info argument. Update call to
19324 VEC_safe_set_locstr.
19325 (main): Update after interface changes.
19326 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
19327 and lineno. Use error_at rather than separate message_with_line
19328 calls and have_error assignments.
19329 (main): Update after interface changes.
19330 * genmddump.c (main): Use new read_md_rtx interface.
19331 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
19332 (main): Update after interface changes.
19333 * genoutput.c (next_code_number): Delete.
19334 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
19335 (gen_peephole, gen_expand, gen_split): Likewise.
19336 (note_constraint): Likewise. Use *_at rather than *_with_line
19338 (main): Update after interface changes.
19339 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
19341 (main): Update after interface changes.
19342 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
19343 than an rtx and lineno.
19344 (process_define_constraint): Likewise.
19345 (process_define_register_constraint): Likewise.
19346 (main): Update after interface changes.
19347 * genrecog.c (next_insn_code, pattern_lineno): Delete.
19348 (validate_pattern): Replace top-level rtx with an md_rtx_info.
19349 Use *_at rather than *_with_line functions.
19350 (match_pattern_2): Likewise.
19351 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
19352 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
19353 Use *_at rather than *_with_line functions.
19354 * gentarget-def.c (add_insn): New function.
19355 (main): Use it. Use new read_md_rtx interface.
19357 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
19359 * gensupport.h (compute_test_codes): Take a file_location rather
19360 than a line number.
19361 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
19362 rather than *_with_line functions.
19363 (process_define_predicate): Update call to compute_test_codes.
19364 * genpreds.c (validate_exp): Take a file_location rather than a
19365 line number. Use *_at functions rather than *_with_line functions.
19366 (process_define_predicate): Update call to validate_exp.
19367 (constraint_data): Replace lineno field with a file_location.
19368 (add_constraint): Take a file_location rather than a line number.
19369 Use *_at functions rather than *_with_line functions. Fix error
19370 message for address constraints. Update after changes to
19371 validate_exp, constraint_data and compute_test_codes.
19372 (process_define_constraint): Update accordingly.
19373 (process_define_register_constraint): Likewise.
19375 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
19377 * genoutput.c (data): Use a file_location to record the source
19380 (idata, idata_end): Remove initialization.
19381 (constraint_data): Replace lineno with a file_location.
19382 (output_insn_data): Update after changes to data.
19383 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
19384 (scan_operands): Likewise, using *_at rather than *_with_line
19386 (process_template): Likewise.
19387 (validate_insn_alternatives): Likewise.
19388 (validate_insn_operands): Likewise.
19389 (validate_optab_operands): Likewise.
19390 (init_insn_for_nothing): Initialize idata and idata_end.
19391 (note_constraint): Update after changes to constraint_data,
19392 using at rather than with_line functions.
19393 (mdep_constraint_len): Take a file_location rather than a
19394 line number. Use at rather than with_line functions.
19396 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
19398 * read-md.h (fatal_at): Declare.
19399 * read-md.c (fatal_at): New function.
19400 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
19401 to record the source position.
19402 (check_attr_test): Take a file_location instead of a line number.
19403 Use fatal_at instead of fatal.
19404 (check_attr_value): Update after above changes, using "at"
19405 rather than "with_line" reporting functions.
19406 (convert_set_attr_alternative): Likewise.
19407 (gen_attr): Likewise.
19408 (check_defs): Likewise. Don't assign to read_md_filename.
19409 (gen_insn): Update initialization after above changes.
19410 (gen_delay): Likewise.
19411 (write_insn_cases): Print the filename for a define_peephole.
19412 (gen_insn_reserv): Take a line number as argument and update
19413 the call to check_attr_test.
19414 (main): Pass a line number to gen_insn_reserv.
19416 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
19418 * read-md.h (file_location): New structure.
19419 (directive_handler_t): Take a file_location rather than a line number.
19420 (message_at, error_at): Declare.
19421 (read_skip_construct): Delete.
19422 * read-md.c (message_with_line_1): Replace with...
19423 (message_at_1): ...this new function.
19424 (message_at, error_at): New functions.
19425 (message_with_line, error_with_line): Update to use message_at_1.
19426 (handle_enum): Take a file_location rather than a line number
19427 and use error_at for error reporting.
19428 (handle_include): Likewise.
19429 (read_skip_construct): Likewise. Make static.
19430 (handle_file): Update after above changes. Pass a file_location
19431 rather than a line number to handle_directive.
19432 * gensupport.c (queue_elem): Replace separate filename and lineno
19433 with a file_location.
19434 (queue_pattern): Replace filename and lineno arguments with a
19435 file_location. Update after change to queue_elem.
19436 (process_define_predicate): Replace lineno argument with a
19437 file_location and use error_at for error reporting. Update
19438 after above changes.
19439 (process_rtx): Likewise.
19440 (subst_pattern_match): Likewise.
19441 (get_alternatives_number): Likewise.
19442 (alter_predicate_for_insn): Likewise.
19443 (rtx_handle_directive): Likewise.
19444 (is_predicable): Update after above changes, using error_at rather
19445 than error_with_line.
19446 (has_subst_attribute): Likewise.
19447 (identify_predicable_attribute): Likewise.
19448 (alter_attrs_for_subst_insn): Likewise.
19449 (process_one_cond_exec): Likewise.
19450 (process_substs_on_one_elem): Likewise.
19451 (process_define_subst): Likewise.
19452 (check_define_attr_duplicates): Likewise.
19453 (read_md_rtx): Update after change to queue_elem.
19455 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
19457 * genoutput.c (next_index_number): Delete.
19458 (data): Remove index_number.
19459 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
19460 (main): Remove manipulation of next_index_number.
19462 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
19464 * genattrtab.c (check_attr_value): Remove handling of null attrs.
19465 (make_canonical): Likewise.
19467 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
19469 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
19470 instead of adjust_address_nv.
19471 (restore_stack_nonlocal): Likewise.
19472 (nonlocal_goto): Likewise.
19474 2015-07-16 Tom de Vries <tom@codesourcery.com>
19476 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
19477 not have a corresponding loop header phi.
19479 2015-07-16 Tom de Vries <tom@codesourcery.com>
19481 * tree-parloops.c (create_loads_for_reductions): Handle case that
19482 reduction is unused.
19484 2015-07-16 Richard Biener <rguenther@suse.de>
19486 PR tree-optimization/66894
19487 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
19488 about deriving NE_EXPR from truncated values.
19490 2015-07-16 Martin Liska <mliska@suse.cz>
19493 (object_allocator): Add new class.
19494 (pool_allocator::initialize): Use the underlying class.
19495 (pool_allocator::allocate): Likewise.
19496 (pool_allocator::remove): Likewise.
19497 (operator new): A new generic allocator.
19498 * asan.c (struct asan_mem_ref): Remove unused members.
19499 (asan_mem_ref_new): Replace new operator with
19500 object_allocator::allocate.
19501 (free_mem_ref_resources): Change deallocation.
19502 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
19503 with object_allocator.
19504 * config/sh/sh.c (add_constant): Replace new operator with
19505 object_allocator::allocate.
19506 (sh_reorg): Change call to a release method.
19507 * cselib.c (struct elt_list): Remove unused members.
19508 (new_elt_list): Replace new operator with
19509 object_allocator::allocate.
19510 (new_elt_loc_list): Likewise.
19511 (new_cselib_val): Likewise.
19512 (unchain_one_elt_list): Change delete operator with remove method.
19513 (unchain_one_elt_loc_list): Likewise.
19514 (unchain_one_value): Likewise.
19515 (cselib_finish): Release newly added static allocators.
19516 * cselib.h (struct cselib_val): Remove unused members.
19517 (struct elt_loc_list): Likewise.
19518 * df-problems.c (df_chain_alloc): Replace pool_allocator with
19520 * df-scan.c (struct df_scan_problem_data): Likewise.
19521 (df_scan_alloc): Likewise.
19522 * df.h (struct dataflow): Likewise.
19523 * dse.c (struct read_info_type): Likewise.
19524 (struct insn_info_type): Likewise.
19525 (struct dse_bb_info_type): Likewise.
19526 (struct group_info): Likewise.
19527 (struct deferred_change): Likewise.
19528 (get_group_info): Likewise.
19529 (delete_dead_store_insn): Likewise.
19530 (free_read_records): Likewise.
19531 (replace_read): Likewise.
19532 (check_mem_read_rtx): Likewise.
19533 (scan_insn): Likewise.
19534 (dse_step1): Likewise.
19535 (dse_step7): Likewise.
19536 * et-forest.c (struct et_occ): Remove unused members.
19537 (et_new_occ): Use allocate instead of new operator.
19538 (et_new_tree): Likewise.
19539 (et_free_tree): Call release method explicitly.
19540 (et_free_tree_force): Likewise.
19541 (et_free_pools): Likewise.
19542 (et_split): Use remove instead of delete operator.
19543 * et-forest.h (struct et_node): Remove unused members.
19544 * ipa-cp.c: Change pool_allocator to object_allocator.
19545 * ipa-inline-analysis.c: Likewise.
19546 * ipa-profile.c: Likewise.
19547 * ipa-prop.c: Likewise.
19548 * ipa-prop.h: Likewise.
19549 * ira-build.c (initiate_cost_vectors): Cast return value.
19550 (ira_allocate_cost_vector): Likewise.
19551 * ira-color.c (struct update_cost_record): Remove unused members.
19552 * lra-int.h (struct lra_live_range): Likewise.
19553 (struct lra_copy): Likewise.
19554 (struct lra_insn_reg): Likewise.
19555 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
19556 * lra.c (new_insn_reg): Replace new operator with allocate method.
19557 (free_insn_regs): Same for operator delete.
19558 (finish_insn_regs): Release new static allocator.
19559 (finish_insn_recog_data): Likewise.
19560 (lra_free_copies): Replace delete operator with remove method.
19561 (lra_create_copy): Replace operator new with allocate method.
19562 (invalidate_insn_data_regno_info): Same for remove method.
19563 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
19564 (free_debug_insn_changes): Replace delete operator with remove method.
19565 (replace_oldest_value_reg): Replace operator new with allocate method.
19566 (pass_cprop_hardreg::execute): Release new static variable.
19567 * sched-deps.c (sched_deps_init): Change pool_allocator to
19569 * sel-sched-ir.c: Likewise.
19570 * sel-sched-ir.h: Likewise.
19571 * stmt.c (expand_case): Likewise.
19572 (expand_sjlj_dispatch_table): Likewise.
19573 * tree-sra.c (struct access): Remove unused members.
19574 (struct assign_link): Likewise.
19575 (sra_deinitialize): Release newly added static pools.
19576 (create_access_1):Replace operator new with allocate method.
19577 (build_accesses_from_assign): Likewise.
19578 (create_artificial_child_access): Likewise.
19579 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
19580 pool_allocator to object_allocator.
19581 * tree-ssa-pre.c: Likewise.
19582 * tree-ssa-reassoc.c: Likewise.
19583 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
19584 * tree-ssa-strlen.c: Likewise.
19585 * tree-ssa-structalias.c: Likewise.
19586 * var-tracking.c (onepart_pool_allocate): New function.
19587 (unshare_variable): Use the newly added function.
19588 (variable_merge_over_cur): Likewise.
19589 (variable_from_dropped): Likewise.
19590 (variable_was_changed): Likewise.
19591 (set_slot_part): Likewise.
19592 (emit_notes_for_differences_1): Likewise.
19593 (vt_finalize): Release newly added static pools.
19595 2015-07-16 Martin Jambor <mjambor@suse.cz>
19597 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
19598 all uses. Fix two typos in its general comment.
19599 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
19601 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
19603 * config/i386/linux-common.h (LINK_MPX): New.
19604 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
19605 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
19606 indicating '-z bndplt' support by linker.
19607 * configure: Regenerate.
19608 * config.in: Regenerate.
19610 2015-07-16 Richard Biener <rguenther@suse.de>
19612 * fold-const.c (fold_widened_comparison): Remove.
19613 (fold_sign_changed_comparison): Likewise.
19614 (fold_comparison): Move widened and sign-changed comparison
19616 * match.pd: ... to patterns here.
19617 * generic-match-head.c: Include target.h.
19618 * gimple-match-head.c: Likewise.
19620 2015-07-16 Richard Biener <rguenther@suse.de>
19622 * tree-ssa-dom.c (dom_valueize): New function.
19623 (record_temporary_equivalences): Also record equivalences
19624 for dominating stmts that have uses of equivalences we are
19627 2015-07-16 Bin Cheng <bin.cheng@arm.com>
19629 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
19630 add_autoinc_candidates.
19631 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
19632 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
19633 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
19634 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
19636 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
19637 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
19638 Remove parameter struct iv*. Call add_autoinc_candidates here.
19639 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
19640 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
19642 (find_iv_candidates): Call new functions.
19644 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
19646 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
19647 uninitialized-variable warning.
19649 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
19652 * config/sh/sh.md (movdi): Split simple reg move to two movsi
19653 when the destination is R0.
19655 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
19658 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
19659 * config/i386/i386.c (ix86_expand_pextr): New function.
19660 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
19661 for non-lowpart subregs.
19662 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
19663 (insv<mode>): Use SWI248 mode iterator.
19664 (insv<mode>_1): Ditto.
19666 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
19667 Sebastian Pop <s.pop@samsung.com>
19669 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
19670 iterator to use_stmt.
19672 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
19673 Sebastian Pop <s.pop@samsung.com>
19675 * graphite-scop-detection.c (build_scops_1): Discard scops for
19678 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
19679 Sebastian Pop <s.pop@samsung.com>
19681 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
19682 case of a return statement in scop.
19684 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
19685 Sebastian Pop <s.pop@samsung.com>
19687 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
19688 INTEGER_TYPE parameters.
19689 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
19690 VECTOR_CST in scan_tree_for_params.
19691 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
19693 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
19695 * gimple-pretty-print.h: Don't include pretty-print.h.
19696 * tree-streamer.h: Don't include lto-streamer.h.
19697 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
19698 * gimple-streamer-in.c: Remove redundant includes.
19699 * gimple-streamer-out.c: Likewise.
19700 * ipa-devirt.c: Likewise.
19701 * ipa-icf.c: Likewise.
19702 * ipa-inline-analysis.c: Likewise.
19703 * ipa-polymorphic-call.c: Likewise.
19704 * ipa-profile.c: Likewise.
19705 * ipa-prop.c: Likewise.
19706 * ipa-pure-const.c: Likewise.
19707 * lto-cgraph.c: Likewise.
19708 * lto-streamer-in.c: Likewise.
19709 * lto-streamer-out.c: Likewise.
19710 * lto-streamer.c: Likewise.
19711 * tree-streamer-in.c: Likewise.
19712 * tree-streamer-out.c: Likewise.
19713 * tree-streamer.c: Likewise.
19715 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
19717 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
19719 * opts.c: Remove multiline #include comment.
19721 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
19723 * config/nvptx/mkoffload.c (process): Add C++ protection to
19726 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
19729 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
19730 null before IEEE 128-bit floating point support patch.
19732 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19734 * simplify-rtx.c (simplify_ternary_operation): Add simplification
19735 for (!c) != {0,...,0} ? a : b for vector modes.
19737 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
19738 Martin Jambor <mjambor@suse.cz>
19740 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
19741 struct func_body_info* instead of struct ipa_node_params*, expecting
19742 fbi->info to be filled in. Replace throughout. Adjust call to
19743 ipa_load_from_parm_agg.
19744 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
19745 instead of struct ipa_node_params*. Adjust calls to other functions
19746 so that they pass either fbi or fbi->info.
19747 (set_switch_stmt_execution_predicate): Likewise.
19748 (will_be_nonconstant_predicate): Likewise.
19749 (compute_bb_predicates): Likewise.
19750 (estimate_function_body_sizes): Move asserts earlier. Fill in
19751 struct func_body_info, replace parms_info with fbi.info. Adjust
19752 calls to functions that now accept struct func_body_info.
19753 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
19754 (struct func_body_info): Likewise.
19755 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
19756 remove static. Adjust callers.
19757 (ipa_load_from_parm_agg): Remove.
19758 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
19759 (func_body_info): Likewise.
19760 (ipa_load_from_parm_agg): Adjust prototype.
19762 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19764 * gensupport.c (rtx_handle_directive): Adjust.
19765 * read-rtl.c (apply_iterators): Take vector to add rtxs to
19766 instead of expr list rtx.
19767 (add_define_attr_for_define_subst): Likewise.
19768 (add_define_subst_attr): Likewise.
19769 (read_subst_mapping): Likewise.
19770 (read_rtx): Likewise.
19771 * rtl.h (read_rtx): Adjust.
19773 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19775 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
19777 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
19780 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
19781 (*tls_local_dynamic_base_64_<mode>): Ditto.
19782 (*tls_local_dynamic_base_64_largepic): Ditto.
19783 (tls_global_dynamic_64_<mode>): Update expander pattern.
19784 (tls_local_dynamic_base_64_<mode>): Ditto.
19786 2015-07-15 Richard Biener <rguenther@suse.de>
19788 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
19789 and bool_var == 1 -> bool_var simplifications ...
19790 * match.pd: ... to patterns here. Factor out negate_expr_p
19791 cases from the A - B -> A + (-B) patterns as negate_expr_p
19792 predicate and add a -(A + B) -> (-B) - A pattern.
19794 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
19796 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
19798 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
19799 Robert Suchanek <robert.suchanek@imgtec.com>
19801 * config/mips/mips.c (mips_int_mask): New enum.
19802 (mips_shadow_set): Likewise.
19803 (int_mask): New variable.
19804 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
19805 (machine_function): Add int_mask and use_shadow_register_set.
19806 (mips_attribute_table): Add attribute handlers for interrupt and
19807 use_shadow_register_set.
19808 (mips_interrupt_mask): New static function.
19809 (mips_handle_interrupt_attr): Likewise.
19810 (mips_handle_use_shadow_register_set_attr): Likewise.
19811 (mips_use_shadow_register_set): Change return type to enum
19812 mips_shadow_set. Add argument handling for use_shadow_register_set
19814 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
19815 compare with mips_shadow_set enum.
19816 (mips_compute_frame_info): Add interrupt mask and
19817 use_shadow_register_set to per-function information structure.
19818 Add a stack slot for EPC unconditionally.
19819 (mips_expand_prologue): Compare use_shadow_register_set value
19820 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
19821 masked interrupt register but in EIC mode use K0 and save Cause in K0.
19822 EPC saved and restored unconditionally. Use PMODE_INSN macro when
19823 copying the stack pointer from the shadow register set.
19824 * config/mips/mips.h (SR_IM0): New define.
19825 * config/mips/mips.md (mips_rdpgpr): Rename to...
19826 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
19827 * doc/extend.texi (Declaring Attributes of Functions): Document
19828 optional arguments for interrupt and use_shadow_register_set
19831 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
19833 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
19834 interrupt attribute.
19835 (mips_expand_prologue): Disable the floating point unit in an ISR.
19836 * config/mips/mips.h (SR_COP1): New define.
19838 2015-07-15 Richard Biener <rguenther@suse.de>
19840 * genmatch.c (parser::peek, parser::peek_ident): Add argument
19841 to tell how many tokens to peek ahead (default 1).
19842 (parser::eat_token, parser::eat_ident): Return token consumed.
19843 (parser::parse_result): Parse new switch statement.
19844 * match.pd: Use case statements where appropriate.
19846 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
19848 PR rtl-optimization/58066
19849 * calls.c (expand_call): Precompute register parameters before stack
19850 alignment is performed.
19852 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
19854 PR rtl-optimization/66838
19855 * postreload.c (reload_cse_move2add): Also process
19856 CALL_INSN_FUNCTION_USAGE when resetting information of
19857 call-clobbered registers.
19859 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
19860 Cesar Philippidis <cesar@codesourcery.com>
19861 Chung-Lin Tang <cltang@codesourcery.com>
19863 * config/nios2/constraints.md (U, v): New constraints.
19864 * config/nios2/predicates.md (rdprs_dcache_operand): New.
19865 (ldstex_memory_operand): New.
19866 * config/nios2/sync.md: New file.
19867 * config/nios2/nios2.md (unspecv): Add new builtin function
19869 (rdprs, flushd, flushda, wrpie, eni): New patterns.
19870 (top-level): Include sync.md.
19871 * config/nios2/nios2.c (N2_FTYPES): Add function types for
19873 (N2_BUILTINS): Add arch field setting, add new builtins.
19874 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
19876 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
19877 Also handle ldex/stex/ldsex/stsex builtins.
19878 (nios2_expand_rdprs_builtin): New function.
19879 (nios2_expand_cache_builtin): New function.
19880 (nios2_expand_wrpie_builtin): New function.
19881 (nios2_expand_eni_builtin): New function.
19882 (nios2_expand_builtin): Add arch field handling and new builtin
19884 * doc/extend.texi (Altera Nios II Built-in Functions): Document
19886 * doc/md.texi (Machine Constraints): Document U and v constraints.
19888 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
19889 Cesar Philippidis <cesar@codesourcery.com>
19890 Chung-Lin Tang <cltang@codesourcery.com>
19892 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
19893 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
19894 callee_save_reg_size and uses_anonymous_args fields.
19895 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
19896 (nios2_create_cfa_notes): New function.
19897 (nios2_adjust_stack): New function for adjusting stack.
19898 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
19899 Use nios2_adjust_stack.
19900 (nios2_expand_epilogue): Likewise.
19901 (nios2_expand_return): New function.
19902 (nios2_can_use_return_insn): Update for CDX pop.n usage.
19903 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
19904 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
19905 * config/nios2/nios2.md (return): Use nios2_expand_return.
19907 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
19908 Cesar Philippidis <cesar@codesourcery.com>
19909 Chung-Lin Tang <cltang@codesourcery.com>
19911 * config/nios2/predicates.md (pop_operation): New.
19912 (ldwm_operation, stwm_operation): New.
19913 (nios2_hard_register_operand): New.
19914 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
19915 (ldstwm_operation_p): Declare.
19916 (gen_ldstwm_peep): Declare.
19917 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
19918 (base_reg_adjustment_p): New.
19919 (pop_operation_p): New.
19920 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
19921 (nios2_ldstwm_regset_p): New.
19922 (ldstwm_operation_p): New.
19924 (nios2_ldst_parallel): New.
19925 (struct ldswm_operand): Declare.
19926 (compare_ldstwm_operands): New.
19927 (can_use_cdx_ldstw): New.
19928 (gen_ldstwm_peep): New.
19929 * config/nios2/nios2-ldstwm.sml: New.
19930 * config/nios2/nios2.md: Include ldstwm.md.
19931 * config/nios2/ldstwm.md: Generated.
19933 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
19934 Cesar Philippidis <cesar@codesourcery.com>
19935 Chung-Lin Tang <cltang@codesourcery.com>
19937 * config/nios2/nios2.h (LABEL_ALIGN): Define.
19938 (REG_ALLOC_ORDER): Define.
19939 (ADJUST_REG_ALLOC_ORDER): Define.
19940 (HONOR_REG_ALLOC_ORDER): Define.
19941 (CDX_REG_P): Define.
19942 (ANDCLEAR_INT): Define.
19943 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
19944 (nios2_label_align): Declare.
19945 (nios2_cdx_narrow_form_p): Declare.
19946 (nios2_adjust_reg_alloc_order): Declare.
19947 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
19949 (nios2_large_unspec_reloc_p): New function, split from...
19950 (nios2_legitimate_pic_operand_p): ...here.
19951 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
19952 (nios2_print_operand_punct_valid_p): New.
19953 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
19954 (split_mem_address): New.
19955 (split_alu_insn): New.
19957 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
19958 (enum nios2_add_insn_kind): New.
19959 (nios2_add_insn_names, nios2_add_insn_narrow): New.
19960 (nios2_add_insn_classify): New.
19961 (nios2_add_insn_asm): New.
19962 (nios2_cdx_narrow_form_p): New.
19963 (label_align, min_labelno, max_labelno): New.
19964 (nios2_reorg): New.
19965 (nios2_label_align): New.
19966 (nios2_adjust_reg_alloc_order): New.
19967 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
19968 (TARGET_MACHINE_DEPENDENT_REORG): Define.
19969 * config/nios2/constraints.md (P): New constraint.
19970 * config/nios2/predicates.md (const_and_operand): New.
19971 (and_operand): New.
19972 (stack_memory_operand): New.
19973 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
19974 (length): Update to use nios2_cdx_narrow_form_p().
19975 (type): Add new insn type values.
19976 (control, alu, st, ld, shift): Update insn reservations with
19977 new insn type values.
19978 (*high, *lo_sum): Define new insn patterns for constant generation.
19979 (movqi_internal, movhi_internal, movsi_internal): Reduce
19980 alternatives, update asm template to handle CDX variants, update
19982 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
19983 template, update type attributes.
19984 (extendhisi2, extendqi<mode>2): Likewise.
19985 (addsi3): Change to use function for asm string.
19986 (subsi3): Add CDX notation to asm template, update type attributes.
19987 (negsi3, one_cmplsi3): Likewise.
19988 (andsi3): New pattern, specialized from logical patterns.
19989 (<code>si3): Remove and case, combine alternatives, update asm
19991 (<shift_op>si3): Add CDX notation, update type attributes.
19992 (rotrsi3): Update type attribute.
19993 (*merge, extzv, insv): New insn patterns.
19994 (return): Change to define_expand.
19995 (simple_return): Add CDX notation, update type attributes.
19996 (indirect_jump): Add CDX notation.
19997 (jump): Update asm cases, update length attribute expression.
19998 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
19999 (nios2_cbranch): Update asm cases and length attribute expression
20000 to handle CDX variants.
20001 (nios2_cmp<code>): Update asm template.
20002 (nop): Add CDX notation, update type attributes.
20003 (trap): Add CDX notation.
20004 (ctrapsi4): Update asm cases and length attribute expression to
20005 handle CDX variant.
20006 * doc/md.texi (Machine Constraints): Document P constraint.
20008 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
20009 Cesar Philippidis <cesar@codesourcery.com>
20010 Chung-Lin Tang <cltang@codesourcery.com>
20012 * config/nios2/nios2.h (SMALL_INT12): New macro.
20013 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
20014 (nios2_valid_addr_expr_p): Use it.
20015 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
20016 with implicit "io" instructions on R2.
20017 * config/nios2/constraints.md (w): New constraint.
20018 * config/nios2/predicates.md (ldstio_memory_operand): New.
20019 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
20020 operand predicate and constraint.
20021 (ld<bh>io_signed, st<bhw>io>): Likewise.
20022 * doc/md.texi (Machine Constraints): Document w constraint.
20024 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
20025 Cesar Philippidis <cesar@codesourcery.com>
20026 Chung-Lin Tang <cltang@codesourcery.com>
20028 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
20029 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
20030 Nios II architecture level.
20031 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
20032 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
20033 (OPTION_DEFAULT_SPECS): Define.
20034 (ASM_SPEC): Add -march= spec strings.
20035 * config/nios2/nios2.c (nios2_option_override): Check for
20036 conflicts involving new options.
20037 * config.gcc (nios2*-*-*): Support --with-arch=.
20038 * doc/invoke.texi (Option Summary, Nios II Options): Document
20039 -march=, -mbmx, and -mcdx.
20041 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
20043 PR rtl-optimization/66626
20044 * lra-constraints.c (lra_constraints): Prevent equivalence
20045 substitution for static chain pseudo in functions with nonlocal
20048 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
20050 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
20051 (nios2_emit_stack_limit_check): Add size parameter. Handle
20052 -fstack-limit-symbol as well as -fstack-limit-register.
20053 (nios2_expand_prologue): Emit only a single stack limit check,
20054 even if multiple stack adjustments are required.
20055 (nios2_option_override): Diagnose unsupported combination of -fpic
20056 and -stack-limit-symbol.
20058 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
20060 * Makefile.in (top_srcdir): New.
20061 * configure.ac: Use AM_ZLIB.
20062 * configure: Regeneated.
20064 2015-07-14 Matthias Klose <doko@ubuntu.com>
20067 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
20069 2015-07-14 Richard Biener <rguenther@suse.de>
20071 PR tree-optimization/66863
20072 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
20073 what we record for conversion use stmt lhs inequalities.
20075 2015-07-14 Richard Biener <rguenther@suse.de>
20077 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
20078 (decision_tree::gen_gimple): Likewise.
20080 2015-07-14 Tom de Vries <tom@codesourcery.com>
20082 * gcc.c (greater_than_spec_func): Declare forward.
20083 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
20084 -ftree-parallelize-loops={0,1}.
20085 (static_spec_functions): Add greater_than_spec_func function with name
20087 (greater_than_spec_func): New function.
20089 2015-07-14 Richard Biener <rguenther@suse.de>
20091 * tree-ssa-dom.c (record_temporary_equivalences): Merge
20092 wideing type conversion case from record_equivalences_from_incoming_edge
20093 and use record_equality to record equivalences.
20094 (record_equivalences_from_incoming_edge): Call
20095 record_temporary_equivalences.
20097 2015-07-14 Richard Biener <rguenther@suse.de>
20099 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
20100 (struct if_expr): New.
20101 (struct with_expr): Likewise.
20102 (is_a_helper): Add helpers for if_expr and with_expr.
20103 (struct simplify): Add simplify_kind enum and member. Remove
20105 (simplify::simplify): Adjust.
20106 (lower_commutative): Adjust.
20107 (lower_opt_convert): Likewise.
20108 (lower_cond): Likewise.
20109 (replace_id): Handle with_expr and if_expr.
20110 (lower_for): Adjust.
20111 (dt_simplify::gen_1): New recursive worker, split out from ...
20112 (dt_simplify::gen): ... here. Deal with if and with expansion
20114 (capture_info::capture_info): Take context argument
20115 (capture_info::walk_result): Only analyze specific result.
20116 (parser::parse_result): New function.
20117 (parser::parse_simplify): Adjust to parse ifs with then end
20119 (parser::parse_if): Simplify.
20120 (parser::parse_pattern): Pass down simplify kind.
20121 * match.pd: Convert if structure to new syntax.
20123 2015-07-13 Marek Polacek <polacek@redhat.com>
20125 * rtl.c (rtx_equal_p_cb): Fix typo.
20127 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
20129 * omega.h: Don't include config.h, don't include params.h again if
20130 omega.h has already been included.
20131 * graphite-poly.h: Include sese.h.
20132 * graphite.c: Don't include sese.h, remove needless includes and
20133 minimize includes outside #ifdef HAVE_isl block.
20134 * graphite-blocking.c: Don't include sese.h, remove needless includes,
20135 and wrap entire file in #ifdef HAVE_isl
20136 * graphite-dependences.c: Likewise.
20137 * graphite-interchange.c: Likewise.
20138 * graphite-isl-ast-to-gimple.c: Likewise.
20139 * graphite-optimize-isl.c: Likewise.
20140 * graphite-poly.c: Likewise.
20141 * graphite-scop-detection.c: Likewise.
20142 * graphite-sese-to-poly.c: Likewise.
20144 2015-07-13 Tom de Vries <tom@codesourcery.com>
20146 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
20148 2015-07-13 Renlin Li <renlin.li@arm.com>
20151 * simplify-rtx.c (simplify_const_relational_operation): Add
20152 side_effects_p checks.
20154 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
20156 * bitmap.h: Fix double word typos.
20157 * builtins.c: Same.
20159 * cfgloopmanip.c: Same.
20162 * cgraphclones.c: Same.
20164 * config/aarch64/aarch64-protos.h: Same.
20165 * config/aarch64/aarch64.c: Same.
20166 * config/aarch64/aarch64.md: Same.
20167 * config/arm/arm.md: Same.
20168 * config/arm/arm1020e.md: Same.
20169 * config/arm/arm1026ejs.md: Same.
20170 * config/arm/arm926ejs.md: Same.
20171 * config/arm/fa526.md: Same.
20172 * config/arm/fa606te.md: Same.
20173 * config/arm/fa626te.md: Same.
20174 * config/arm/fa726te.md: Same.
20175 * config/arm/fmp626.md: Same.
20176 * config/darwin.c: Same.
20177 * config/epiphany/epiphany.c: Same.
20178 * config/frv/frv.c: Same.
20179 * config/ft32/ft32.c: Same.
20180 * config/gnu-user.h: Same.
20181 * config/h8300/constraints.md: Same.
20182 * config/i386/i386.c: Same.
20183 * config/i386/i386.md: Same.
20184 * config/iq2000/iq2000.md: Same.
20185 * config/mips/mips.c: Same.
20186 * config/mmix/mmix.md: Same.
20187 * config/moxie/moxie.c: Same.
20188 * config/nds32/nds32.md: Same.
20189 * config/pa/pa.h: Same.
20190 * config/rs6000/aix.h: Same.
20191 * config/rs6000/rs6000.h: Same.
20192 * config/sh/sh.c: Same.
20193 * config/tilegx/tilegx.md: Same.
20194 * config/tilepro/gen-mul-tables.cc: Same.
20197 * doc/invoke.texi: Same.
20199 * dwarf2out.c: Same.
20202 * genmatch.c: Same.
20203 * gimplify.c: Same.
20204 * hash-table.h: Same.
20205 * internal-fn.c: Same.
20207 * ipa-devirt.c: Same.
20210 * ipa-profile.c: Same.
20211 * ipa-prop.c: Same.
20212 * ipa-prop.h: Same.
20215 * reg-stack.c: Same.
20216 * regcprop.c: Same.
20221 * tree-inline.c: Same.
20222 * tree-sra.c: Same.
20223 * tree-ssa-dom.c: Same.
20224 * tree-ssa-loop-ivopts.c: Same.
20225 * tree-ssa-structalias.c: Same.
20226 * tree-ssa-tail-merge.c: Same.
20227 * tree-ssa-ter.c: Same.
20228 * tree-ssa-threadupdate.c: Same.
20229 * tree-ssa-uninit.c: Same.
20230 * tree-ssanames.c: Same.
20231 * tree-vect-loop-manip.c: Same.
20232 * tree-vrp.c: Same.
20234 * valtrack.c: Same.
20237 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
20239 PR middle-end/66726
20240 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
20241 tree_ssa_phiopt_worker): Call it.
20243 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
20245 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
20246 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
20249 2015-07-11 Marek Polacek <polacek@redhat.com>
20251 PR middle-end/66353
20252 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
20253 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
20254 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
20255 rather than bb_has_abnormal_call_pred.
20256 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
20257 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
20258 rather than bb_has_abnormal_call_pred.
20260 2015-07-10 Anatoly Sokolov <aesok@post.ru>
20262 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
20263 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
20264 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
20265 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
20266 v850_legitimate_address_p): New functions.
20267 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
20269 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
20272 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
20273 indirect sibcall with register arguments if register available
20274 for argument passing.
20275 (init_cumulative_args): Set cfun->machine->arg_reg_available
20276 to (cum->nregs > 0) or to true if function has a variable
20278 (function_arg_advance_32): Set cfun->machine->arg_reg_available
20279 to false if cum->nregs <= 0.
20280 * config/i386/i386.h (machine_function): Add arg_reg_available.
20282 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
20284 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
20285 and gen_higpart instead of gen_rtx_SUBREG.
20286 * config/i386/i386.md
20287 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
20288 (read-modify peephole2): Use gen_lowpart instead of
20289 gen_rtx_SUBREG for operand 5.
20291 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
20293 * config/tilepro/gen-mul-tables.cc (main): Change include list for
20295 * config/tilepro/mul-tables.c: Regenerate.
20296 * config/tilegx/mul-tables.c: Regenerate.
20298 2015-07-10 Richard Biener <rguenther@suse.de>
20300 * fold-const.c (distribute_bit_expr): Remove.
20301 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
20302 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
20303 to A & (B | C) and simplifying A << C1 << C2 to ...
20304 * match.pd: ... patterns here.
20306 2015-07-10 Jiong Wang <jiong.wang@arm.com>
20308 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
20309 Mark mem as READONLY and NOTRAP for PIC symbol.
20311 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
20313 * gimple-predict.h: New file.
20314 (gimple_predict_predictor, gimple_predict_set_predictor,
20315 gimple_predict_outcome, gimple_predict_set_outcome,
20316 gimple_build_predict): Relocate here.
20317 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
20318 gimple_predict_outcome, gimple_predict_set_outcome): Move to
20320 * gimple.c (gimple_build_predict): Move to gimple-predict.h
20321 * basic-block.h: Don't include cfghooks.h.
20322 * backend.h: Don't include predict.h.
20323 * cfghooks.h: Include predict.h.
20324 * gimple-pretty-print.c: Include gimple-predict.h.
20325 * gimplify.c: Likwise.
20326 * predict.c: Adjust includes.
20327 * tree-inline.c: Likewise.
20328 * asan.c: Likewise.
20329 * auto-inc-dec.c: Likewise.
20330 * auto-profile.c: Likewise.
20331 * bb-reorder.c: Likewise.
20332 * builtins.c: Likewise.
20333 * caller-save.c: Likewise.
20334 * calls.c: Likewise.
20335 * cfganal.c: Likewise.
20336 * cfgbuild.c: Likewise.
20338 * cfgcleanup.c: Likewise.
20339 * cfgexpand.c: Likewise.
20340 * cfghooks.c: Likewise.
20341 * cfgloopanal.c: Likewise.
20342 * cfgloop.c: Likewise.
20343 * cfgloopmanip.c: Likewise.
20344 * cfgrtl.c: Likewise.
20345 * cgraph.c: Likewise.
20346 * cgraphunit.c: Likewise.
20347 * combine.c: Likewise.
20348 * cprop.c: Likewise.
20351 * dojump.c: Likewise.
20353 * except.c: Likewise.
20354 * expmed.c: Likewise.
20355 * expr.c: Likewise.
20356 * final.c: Likewise.
20357 * fold-const.c: Likewise.
20358 * function.c: Likewise.
20359 * fwprop.c: Likewise.
20360 * gcc-plugin.h: Likewise.
20361 * gcse.c: Likewise.
20362 * genattrtab.c: Likewise.
20363 * genemit.c: Likewise.
20364 * gengtype.c: Likewise.
20365 * genopinit.c: Likewise.
20366 * genoutput.c: Likewise.
20367 * genpreds.c: Likewise.
20368 * genrecog.c: Likewise.
20369 * gimple-fold.c: Likewise.
20370 * gimple-iterator.c: Likewise.
20371 * gimple-ssa-isolate-paths.c: Likewise.
20372 * gimple-ssa-strength-reduction.c: Likewise.
20373 * graph.c: Likewise.
20374 * graphite-blocking.c: Likewise.
20375 * graphite.c: Likewise.
20376 * graphite-dependences.c: Likewise.
20377 * graphite-interchange.c: Likewise.
20378 * graphite-isl-ast-to-gimple.c: Likewise.
20379 * graphite-optimize-isl.c: Likewise.
20380 * graphite-poly.c: Likewise.
20381 * graphite-scop-detection.c: Likewise.
20382 * graphite-sese-to-poly.c: Likewise.
20383 * haifa-sched.c: Likewise.
20384 * ifcvt.c: Likewise.
20385 * internal-fn.c: Likewise.
20386 * ipa-cp.c: Likewise.
20387 * ipa-profile.c: Likewise.
20388 * ipa-split.c: Likewise.
20389 * ipa-utils.c: Likewise.
20390 * ira-build.c: Likewise.
20391 * ira-color.c: Likewise.
20392 * ira-conflicts.c: Likewise.
20393 * ira-costs.c: Likewise.
20394 * ira-emit.c: Likewise.
20395 * ira-lives.c: Likewise.
20396 * jump.c: Likewise.
20397 * loop-doloop.c: Likewise.
20398 * loop-init.c: Likewise.
20399 * loop-invariant.c: Likewise.
20400 * loop-unroll.c: Likewise.
20401 * lower-subreg.c: Likewise.
20402 * lra-assigns.c: Likewise.
20404 * lra-coalesce.c: Likewise.
20405 * lra-constraints.c: Likewise.
20406 * lra-lives.c: Likewise.
20407 * lto-cgraph.c: Likewise.
20408 * lto-streamer-in.c: Likewise.
20409 * mode-switching.c: Likewise.
20410 * modulo-sched.c: Likewise.
20411 * omp-low.c: Likewise.
20412 * optabs.c: Likewise.
20413 * passes.c: Likewise.
20414 * postreload.c: Likewise.
20415 * postreload-gcse.c: Likewise.
20416 * profile.c: Likewise.
20417 * recog.c: Likewise.
20418 * regstat.c: Likewise.
20419 * reload1.c: Likewise.
20420 * reorg.c: Likewise.
20421 * rtlanal.c: Likewise.
20422 * sched-ebb.c: Likewise.
20423 * sel-sched-ir.c: Likewise.
20424 * sese.c: Likewise.
20425 * shrink-wrap.c: Likewise.
20426 * simplify-rtx.c: Likewise.
20427 * stmt.c: Likewise.
20428 * store-motion.c: Likewise.
20429 * tracer.c: Likewise.
20430 * trans-mem.c: Likewise.
20431 * tree-call-cdce.c: Likewise.
20432 * tree-cfg.c: Likewise.
20433 * tree-cfgcleanup.c: Likewise.
20434 * tree-chkp.c: Likewise.
20435 * tree-complex.c: Likewise.
20436 * tree-eh.c: Likewise.
20437 * tree-if-conv.c: Likewise.
20438 * tree-loop-distribution.c: Likewise.
20439 * tree-outof-ssa.c: Likewise.
20440 * tree-parloops.c: Likewise.
20441 * tree-predcom.c: Likewise.
20442 * tree-pretty-print.c: Likewise.
20443 * tree-profile.c: Likewise.
20444 * tree-sra.c: Likewise.
20445 * tree-ssa.c: Likewise.
20446 * tree-ssa-coalesce.c: Likewise.
20447 * tree-ssa-dce.c: Likewise.
20448 * tree-ssa-dom.c: Likewise.
20449 * tree-ssa-forwprop.c: Likewise.
20450 * tree-ssa-ifcombine.c: Likewise.
20451 * tree-ssa-loop-ch.c: Likewise.
20452 * tree-ssa-loop-im.c: Likewise.
20453 * tree-ssa-loop-ivcanon.c: Likewise.
20454 * tree-ssa-loop-ivopts.c: Likewise.
20455 * tree-ssa-loop-manip.c: Likewise.
20456 * tree-ssa-loop-prefetch.c: Likewise.
20457 * tree-ssa-loop-unswitch.c: Likewise.
20458 * tree-ssa-math-opts.c: Likewise.
20459 * tree-ssa-phiopt.c: Likewise.
20460 * tree-ssa-pre.c: Likewise.
20461 * tree-ssa-reassoc.c: Likewise.
20462 * tree-ssa-sink.c: Likewise.
20463 * tree-ssa-tail-merge.c: Likewise.
20464 * tree-ssa-threadedge.c: Likewise.
20465 * tree-ssa-threadupdate.c: Likewise.
20466 * tree-switch-conversion.c: Likewise.
20467 * tree-tailcall.c: Likewise.
20468 * tree-vect-data-refs.c: Likewise.
20469 * tree-vect-loop.c: Likewise.
20470 * tree-vect-loop-manip.c: Likewise.
20471 * tree-vectorizer.c: Likewise.
20472 * tree-vrp.c: Likewise.
20473 * ubsan.c: Likewise.
20474 * value-prof.c: Likewise.
20475 * varasm.c: Likewise.
20476 * var-tracking.c: Likewise.
20477 * config/aarch64/aarch64-builtins.c: Likewise.
20478 * config/aarch64/aarch64.c: Likewise.
20479 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
20480 * config/alpha/alpha.c: Likewise.
20481 * config/arc/arc.c: Likewise.
20482 * config/arm/arm.c: Likewise.
20483 * config/avr/avr.c: Likewise.
20484 * config/bfin/bfin.c: Likewise.
20485 * config/c6x/c6x.c: Likewise.
20486 * config/cr16/cr16.c: Likewise.
20487 * config/cris/cris.c: Likewise.
20488 * config/darwin.c: Likewise.
20489 * config/darwin-c.c: Likewise.
20490 * config/epiphany/epiphany.c: Likewise.
20491 * config/epiphany/mode-switch-use.c: Likewise.
20492 * config/epiphany/resolve-sw-modes.c: Likewise.
20493 * config/fr30/fr30.c: Likewise.
20494 * config/frv/frv.c: Likewise.
20495 * config/ft32/ft32.c: Likewise.
20496 * config/h8300/h8300.c: Likewise.
20497 * config/i386/i386.c: Likewise.
20498 * config/i386/winnt.c: Likewise.
20499 * config/ia64/ia64.c: Likewise.
20500 * config/iq2000/iq2000.c: Likewise.
20501 * config/lm32/lm32.c: Likewise.
20502 * config/m32c/m32c.c: Likewise.
20503 * config/m32r/m32r.c: Likewise.
20504 * config/m68k/m68k.c: Likewise.
20505 * config/mcore/mcore.c: Likewise.
20506 * config/mep/mep.c: Likewise.
20507 * config/microblaze/microblaze.c: Likewise.
20508 * config/mips/mips.c: Likewise.
20509 * config/mmix/mmix.c: Likewise.
20510 * config/mn10300/mn10300.c: Likewise.
20511 * config/moxie/moxie.c: Likewise.
20512 * config/msp430/msp430.c: Likewise.
20513 * config/nds32/nds32.c: Likewise.
20514 * config/nds32/nds32-cost.c: Likewise.
20515 * config/nds32/nds32-fp-as-gp.c: Likewise.
20516 * config/nds32/nds32-intrinsic.c: Likewise.
20517 * config/nds32/nds32-isr.c: Likewise.
20518 * config/nds32/nds32-md-auxiliary.c: Likewise.
20519 * config/nds32/nds32-memory-manipulation.c: Likewise.
20520 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
20521 * config/nds32/nds32-predicates.c: Likewise.
20522 * config/nios2/nios2.c: Likewise.
20523 * config/nvptx/nvptx.c: Likewise.
20524 * config/pa/pa.c: Likewise.
20525 * config/pdp11/pdp11.c: Likewise.
20526 * config/rl78/rl78.c: Likewise.
20527 * config/rs6000/rs6000.c: Likewise.
20528 * config/rx/rx.c: Likewise.
20529 * config/s390/s390.c: Likewise.
20530 * config/sh/sh.c: Likewise.
20531 * config/sh/sh-mem.cc: Likewise.
20532 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
20533 * config/sh/sh_treg_combine.cc: Likewise.
20534 * config/sparc/sparc.c: Likewise.
20535 * config/spu/spu.c: Likewise.
20536 * config/stormy16/stormy16.c: Likewise.
20537 * config/tilegx/tilegx.c: Likewise.
20538 * config/tilepro/tilepro.c: Likewise.
20539 * config/v850/v850.c: Likewise.
20540 * config/vax/vax.c: Likewise.
20541 * config/visium/visium.c: Likewise.
20542 * config/xtensa/xtensa.c: Likewise.
20544 2015-07-10 Richard Biener <rguenther@suse.de>
20546 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
20547 (decision_tree::gen_gimple): Likewise.
20548 (decision_tree::gen_generic): Likewise.
20550 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
20553 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
20554 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
20556 2015-07-10 Jakub Jelinek <jakub@redhat.com>
20558 PR middle-end/66820
20559 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
20560 or ORT_TASK contexts.
20561 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
20564 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20566 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
20569 2015-07-10 Tom de Vries <tom@codesourcery.com>
20571 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
20572 insert nit + 1 bound.
20574 2015-07-10 Richard Biener <rguenther@suse.de>
20576 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
20577 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
20578 (if_convertible_loop_p_1): For this always compute bb predicates.
20579 (if_convertible_loop_p): And free them.
20581 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20583 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
20586 2015-07-10 Richard Biener <rguenther@suse.de>
20588 PR tree-optimization/66823
20589 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
20590 inverted predicate.
20592 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
20594 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
20595 to handle mips[32|64]r3 and mips[32|64]r5.
20597 2015-07-09 Jakub Jelinek <jakub@redhat.com>
20599 PR middle-end/66633
20600 * tree-nested.c (get_static_chain): Or in a flag into
20601 info->static_chain_added.
20602 (get_frame_field, get_nonlocal_debug_decl): Likewise.
20603 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
20604 2015-07-01 changes.
20605 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
20606 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
20609 PR tree-optimization/66718
20610 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
20612 (vect_simd_lane_linear): New function.
20613 (vectorizable_simd_clone_call): Support using linear arguments for
20614 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
20616 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
20619 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
20621 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
20623 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
20624 Use machine mode, not enum machine_mode in the prototype.
20626 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
20627 classify 128-bit floating point support.
20628 (FLOAT128_IBM_P): Likewise.
20629 (FLOAT128_VECTOR_P): Likewise.
20630 (FLOAT128_2REG_P): Likewise.
20631 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
20632 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
20633 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
20634 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
20636 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
20637 tests against TFmode/TDmode, since those modes do not use VSX
20639 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
20641 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
20642 tests against TFmode, etc.
20643 (invalid_e500_subreg): Add tests against IFmode/KFmode.
20644 (reg_offset_addressing_ok_p): Likewise.
20645 (rs6000_legitimate_offset_address_p): Likewise.
20646 (rs6000_legitimize_address): Likewise.
20647 (rs6000_legitimize_reload_address): Likewise.
20648 (rs6000_legitimate_address_p): Clean up tests against TFmode and
20649 TDmode to use the new helper macros, which will include IFmode and
20651 (rs6000_emit_move): Likewise.
20652 (rs6000_darwin64_record_arg_recurse): Likewise.
20653 (print_operand): Likewise.
20654 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
20655 that uses a single vector register as a vector and not as a
20656 floating point register in terms of the calling sequence.
20657 (rs6000_discover_homogeneous_aggregate): Likewise.
20658 (rs6000_return_in_memory): Likewise.
20659 (init_cumulative_args): Likewise.
20660 (rs6000_function_arg_boundary): Likewise.
20661 (rs6000_function_arg_advance_1): Likewise.
20662 (rs6000_function_arg): Likewise.
20663 (rs6000_pass_by_reference): Likewise.
20664 (rs6000_gimplify_va_arg): Likewise.
20665 (rs6000_secondary_reload_memory): Use machine_mode not enum
20667 (rs6000_split_multireg_move): Use new helper macros.
20668 (spe_func_has_64bit_regs_p): Likewise.
20669 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
20670 (output_toc): Use new helper macros.
20671 (rs6000_register_move_cost): Likewise.
20672 (rs6000_function_value): Add IEEE 128-bit floating point calling
20674 (rs6000_libcall_value): Likewise.
20675 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
20676 floating point support.
20677 (rs6000_vector_mode_supported_p): Likewise.
20679 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
20681 PR rtl-optimization/66782
20682 * lra-int.h (struct lra_insn_recog_data): Add comment about
20683 clobbered hard regs for arg_hard_regs.
20684 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
20685 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
20686 Add condition for processing used hard regs.
20687 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
20688 Process clobbered hard regs.
20690 2015-07-09 Michael Matz <matz@suse.de>
20692 * genmatch.c (fprintf_indent): New function.
20693 (operand::gen_transform): Add indent parameter.
20694 (expr::gen_transform, c_expr::gen_transform,
20695 capture::gen_transform): Ditto and use fprintf_indent.
20696 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
20697 (dt_operand::gen, dt_operand::gen_predicate,
20698 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
20699 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
20700 (decision_tree::gen_gimple): Adjust calls and indent generated
20702 (decision_tree::gen_generic): Ditto.
20703 (write_predicate): Ditto.
20705 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
20708 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
20709 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
20710 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
20711 {GENERAL,SSE,MMX}_REG_P where appropriate.
20713 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
20715 * lto-streamer.h: Don't include target.h and alloc-pool.h.
20716 * builtins.c: Adjust includes.
20717 * gimple.c: Likewise.
20718 * ipa-icf.c: Likewise.
20719 * lto-opts.c: Likewise.
20720 * ipa-reference.c: Likewise.
20721 * lto-section-out.c: Likewise.
20722 * lto-streamer-in.c: Likewise.
20723 * lto-streamer-out.c: Likewise.
20724 * opts-global.c: Likewise.
20725 * symtab.c: Likewise.
20726 * tree-chkp.c: Likewise.
20727 * tree-ssa-live.c: Likewise.
20728 * tree-streamer-in.c: Likewise.
20729 * tree-streamer-out.c: Likewise.
20730 * config/darwin.c: Likewise.
20731 * config/i386/winnt.c: Likewise.
20733 2015-07-09 Richard Biener <rguenther@suse.de>
20735 * genmatch.c (struct expr): Add force_single_use flag.
20736 (expr::expr): Add copy constructor.
20737 (capture_info::walk_match): Gather force_single_use captures.
20738 (expr::gen_transform): Use possibly NULLified sequence.
20739 (dt_simplify::gen): Apply single-use restrictions by NULLifying
20740 seq if any constrained expr is not single-use.
20741 (parser::parse_expr): Refactor to allow multiple flags. Handle
20742 's' flag to force an expression have a single-use if the pattern
20743 simplifies to more than one statement.
20744 * match.pd: Convert most single_use conditionals to :s flags.
20746 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
20748 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
20749 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
20750 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
20752 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
20754 * flags.h: Don't include flag-types.h or options.h.
20755 * opts-common.c: Adjust includes.
20756 * opts-global.c: Likewise.
20757 * common/config/epiphany/epiphany-common.c: Likewise.
20759 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
20762 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
20765 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
20768 * config/i386/i386.c (ix86_return_in_memory): Return true
20769 if int_size_in_bytes returns negative for IA MCU.
20771 2015-07-09 Marek Polacek <polacek@redhat.com>
20773 PR tree-optimization/66718
20774 * Makefile.in (OBJS): Add gimple-laddress.o.
20775 * passes.def: Schedule pass_laddress.
20776 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
20777 * tree-pass.h (make_pass_laddress): Declare.
20778 * gimple-laddress.c: New file.
20780 2015-07-09 Richard Biener <rguenther@suse.de>
20782 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
20784 2015-07-09 Richard Biener <rguenther@suse.de>
20786 PR tree-optimization/66807
20787 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
20789 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
20791 * function.c (stack_protect_epilogue): Use if rather than switch for
20792 check targetm.have_stack_protect_test.
20794 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20796 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
20797 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
20798 * config/arc/arc.h: Likewise.
20799 * config/arm/arm.h: Likewise.
20800 * config/bfin/bfin.h: Likewise.
20801 * config/epiphany/epiphany.h: Likewise.
20802 * config/frv/frv.h: Likewise.
20803 * config/ia64/ia64.h: Likewise.
20804 * config/iq2000/iq2000.h: Likewise.
20805 * config/lm32/lm32.h: Likewise.
20806 * config/m32r/m32r.h: Likewise.
20807 * config/mcore/mcore.h: Likewise.
20808 * config/mep/mep.h: Likewise.
20809 * config/microblaze/microblaze.h: Likewise.
20810 * config/mips/mips.h: Likewise.
20811 * config/mmix/mmix.h: Likewise.
20812 * config/mn10300/mn10300.h: Likewise.
20813 * config/nds32/nds32.h: Likewise.
20814 * config/nios2/nios2.h: Likewise.
20815 * config/pa/pa.h: Likewise.
20816 * config/rl78/rl78.h: Likewise.
20817 * config/sh/sh.h: Likewise.
20818 * config/sparc/sparc.h: Likewise.
20819 * config/stormy16/stormy16.h: Likewise.
20820 * config/tilegx/tilegx.h: Likewise.
20821 * config/tilepro/tilepro.h: Likewise.
20822 * config/v850/v850.h: Likewise.
20823 * config/xtensa/xtensa.h: Likewise.
20824 * doc/tm.texi: Regenerate.
20825 * doc/tm.texi.in: Adjust.
20826 * combine.c (simplify_set): Likewise.
20827 (simplify_comparison): Likewise.
20828 * expr.c (store_constructor): Likewise.
20829 * internal-fn.c (expand_arith_overflow): Likewise.
20830 * reload.c (push_reload): Likewise.
20831 (find_reloads): Likewise.
20832 (find_reloads_subreg_address): Likewise.
20833 * reload1.c (eliminate_regs_1): Likewise.
20834 * rtlanal.c (nonzero_bits1): Likewise.
20835 (num_sign_bit_copies1): Likewise.
20836 * simplify-rtx.c (simplify_truncation): Likewise.
20838 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20840 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
20841 of AUTO_INC_DEC with the preprocessor.
20842 * combine.c (combine_instructions): Likewise.
20843 (can_combine_p): Likewise.
20844 (try_combine): Likewise.
20845 * emit-rtl.c (try_split): Likewise.
20846 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
20847 * lower-subreg.c (resolve_simple_move): Likewise.
20848 * lra.c (update_inc_notes): Likewise.
20849 * recog.c (asm_operand_ok): Likewise.
20850 (constrain_operands): Likewise.
20851 * regrename.c (scan_rtx_address): Likewise.
20852 * reload.c (update_auto_inc_notes): Likewise.
20853 (reg_inc_found_and_valid_p): Likewise.
20854 * reload1.c (reload): Likewise.
20855 (emit_input_reload_insns): Likewise.
20856 (delete_output_reload): Likewise.
20857 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
20858 * valtrack.c (cleanup_auto_inc_dec): Likewise.
20860 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20862 * rtl.h: Always define AUTO_INC_DEC.
20863 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
20864 * combine.c (combine_instructions): Likewise.
20865 (can_combine_p): Likewise.
20866 (try_combine): Likewise.
20867 * emit-rtl.c (try_split): Likewise.
20868 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
20869 * lower-subreg.c (resolve_simple_move): Likewise.
20870 * lra.c (update_inc_notes): Likewise.
20871 * recog.c (asm_operand_ok): Likewise.
20872 (constrain_operands): Likewise.
20873 * regrename.c (scan_rtx_address): Likewise.
20874 * reload.c (update_auto_inc_notes): Likewise.
20875 (find_equiv_reg): Likewise.
20876 * reload1.c (reload): Likewise.
20877 (reload_as_needed): Likewise.
20878 (choose_reload_regs): Likewise.
20879 (emit_input_reload_insns): Likewise.
20880 (delete_output_reload): Likewise.
20881 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
20882 * valtrack.c (cleanup_auto_inc_dec): Likewise.
20884 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20886 * combine.c (can_combine_def_p): Don't check the value of
20887 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
20888 (combinable_i3pat): Likewise.
20889 (mark_used_regs_combine): Likewise.
20890 * regrename.c (rename_chains): Likewise.
20891 * reload.c (find_reloads_address): Likewise.
20892 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
20894 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20896 * combine.c (update_rsp_from_reg_equal): Don't check if
20897 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
20898 (reg_nonzero_bits_for_combine): Likewise.
20899 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
20901 * config/frv/frv.h: Likewise.
20902 * config/lm32/lm32.h: Likewise.
20903 * config/mep/mep.h: Likewise.
20904 * config/mips/mips.h: Likewise.
20905 * config/rs6000/rs6000.h: Likewise.
20906 * config/sh/sh.h: Likewise.
20907 * config/tilegx/tilegx.h (enum reg_class): Likewise.
20908 * config/tilepro/tilepro.h: Likewise.
20909 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
20910 * doc/tm.texi: Regenerate.
20911 * doc/tm.texi.in: Adjust.
20912 * rtlanal.c (nonzero_bits1): Likewise.
20914 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20916 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
20917 with the preprocessor.
20918 (combine_instructions): Likewise.
20919 (try_combine): Likewise.
20921 (distribute_notes): Likewise.
20923 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20925 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
20927 (simplify_set): Likewise.
20928 * cse.c (cse_insn): Likewise.
20929 * fold-const.c (fold_single_bit_test): Likewise.
20930 (fold_unary_loc): Likewise.
20931 * postreload.c (reload_cse_simplify_set): Likewise.
20932 (reload_cse_simplify_operands): Likewise.
20934 2015-07-08 Jiong Wang <jiong.wang@arm.com>
20936 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
20937 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
20939 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
20942 * config/i386/x86intrin.h: Include <adxintrin.h> even if
20943 __iamcu__ is defined.
20945 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
20947 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
20949 2015-07-08 Iain Sandoe <iain@codesourcery.com>
20952 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
20953 names from preservation.
20955 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
20958 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
20960 (function_arg_advance_32): Don't pass vectors in registers for
20962 (function_arg_32): Likewise.
20963 (ix86_return_in_memory): Don't return vectors in registers for
20966 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
20968 PR middle-end/66334
20969 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
20970 hard regno live at the start of BB with incoming abnormal edges.
20971 * lra-lives.c (process_bb_lives): Ditto.
20973 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
20976 * config/nvptx/mkoffload.c (main): Create an offload image only in
20977 64-bit configurations.
20979 2015-07-08 Martin Liska <mliska@suse.cz>
20982 * tree-sra.c (create_access_1): Call ctor without brackets.
20983 (create_artificial_child_access): Likewise.
20985 2015-07-08 Richard Biener <rguenther@suse.de>
20987 PR tree-optimization/66793
20988 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
20989 Properly split the block after stmts ending it.
20991 2015-07-08 Richard Biener <rguenther@suse.de>
20993 PR tree-optimization/66794
20994 * passes.c (execute_function_todo): Assert that post-dominators
20996 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
20997 Free post-dominators.
20999 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21001 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
21004 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
21006 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
21007 more than or equal 8 and less than 32 when optimizing for size.
21009 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21011 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
21012 COSTS_N_INSNS (1) and increment it appropriately throughout the
21015 2015-07-08 Richard Biener <rguenther@suse.de>
21017 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
21019 2015-07-08 Alan Modra <amodra@gmail.com>
21021 * target.def (rtx_costs): Remove "code" param, add "mode".
21022 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
21023 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
21024 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
21025 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
21026 call. Track mode when given in rtx.
21027 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
21028 (default_address_cost): Pass Pmode to rtx_cost.
21029 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
21030 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
21032 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
21033 (notreg_cost): Add mode param. Use it.
21034 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
21035 mode param and pass to set_src_cost. Update all calls.
21036 (hash_scan_set): Formatting.
21037 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
21038 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
21040 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
21041 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
21042 emit_store_flag): Update set_src_cost and rtx_cost calls.
21043 * auto-inc-dec.c (attempt_change): Likewise.
21044 * calls.c (precompute_register_parameters): Likewise.
21045 * combine.c (expand_compound_operation, make_extraction,
21046 force_to_mode, distribute_and_simplify_rtx): Likewise.
21047 * dojump.c (prefer_and_bit_test): Likewise.
21048 * dse.c (find_shift_sequence): Likewise.
21049 * expr.c (compress_float_constant): Likewise.
21050 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
21051 * ifcvt.c (noce_try_sign_mask): Likewise.
21052 * loop-doloop.c (doloop_optimize): Likewise.
21053 * loop-invariant.c (create_new_invariant): Likewise.
21054 * lower-subreg.c (shift_cost, compute_costs): Likewise.
21055 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
21056 lshift_cheap_p): Likewise.
21057 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
21058 try_replace_in_use, reload_cse_move2add): Likewise.
21059 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
21061 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
21062 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
21063 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
21064 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
21065 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
21066 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
21068 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
21069 * config/arc/arc.c (arc_rtx_costs): Likewise.
21070 * config/arm/arm.c (arm_rtx_costs): Likewise.
21071 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
21072 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
21073 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
21074 * config/cris/cris.c (cris_rtx_costs): Likewise.
21075 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
21076 * config/frv/frv.c (frv_rtx_costs): Likewise.
21077 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
21078 * config/i386/i386.c (ix86_rtx_costs): Likewise.
21079 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
21080 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
21081 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
21082 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
21083 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
21084 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
21085 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
21086 * config/mep/mep.c (mep_rtx_cost): Likewise.
21087 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
21088 * config/mips/mips.c (mips_rtx_costs): Likewise.
21089 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
21090 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
21091 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
21092 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
21093 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
21094 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
21095 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
21096 * config/pa/pa.c (hppa_rtx_costs): Likewise.
21097 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
21098 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
21099 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
21100 * config/s390/s390.c (s390_rtx_costs): Likewise.
21101 * config/sh/sh.c (sh_rtx_costs): Likewise.
21102 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
21103 * config/spu/spu.c (spu_rtx_costs): Likewise.
21104 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
21105 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
21106 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
21107 * config/v850/v850.c (v850_rtx_costs): Likewise.
21108 * config/vax/vax.c (vax_rtx_costs): Likewise.
21109 * config/visium/visium.c (visium_rtx_costs): Likewise.
21110 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
21111 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
21112 "code" param, and pass as outer_code to first rtx_cost call. Pass
21113 mode to rtx_cost calls.
21114 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
21116 (aarch64_rtx_costs_wrapper): Update.
21117 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
21118 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
21120 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
21121 and rtx_cost calls.
21122 (avr_operand_rtx_cost): Similarly.
21123 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
21124 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
21125 * config/mips/mips.c (mips_stack_address_p): Comment typo.
21126 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
21127 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
21128 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
21130 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
21131 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
21132 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
21133 * doc/tm.texi: Regenerate.
21135 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
21137 * tree-core.h: Include symtab.h.
21138 * rtl.h: Include hard-reg-set.h but not flags.h.
21139 (HARD_CONST): Remove condition compilation involving HARD_CONST since
21140 hard-reg-set.h is always included.
21141 * regs.h: Don't include hard-reg-set.h or rtl.h.
21142 * cfg.h: Include dominance.h.
21143 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
21144 * backend.h: New. Aggregate commonly used backend header files.
21145 * gimple-ssa.h: Don't include tree-hasher.h.
21146 * ssa.h: New. Aggregate commonly used SSA header files.
21147 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
21148 * sel-sched-ir.h: Flatten includes.
21149 * lra-int.h: Flatten completely.
21150 * sel-sched-dump.h: Flatten includes.
21151 * ira-int.h: Flatten includes.
21152 * gimple-streamer.h: Remove all includes.
21153 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
21154 * resource.h: Flatten hard-reg-set.h and df.h.
21155 * sched-int.h: Flatten insn-arrt.h and df.h.
21156 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
21157 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
21158 * genattrtab.c (write_header): Adjust generated includes.
21159 * genautomata.c (main): Likewise.
21160 * genconditions.c (write-header): Likewise.
21161 * genemit.c (main): Likewise.
21162 * gengtype.c (open_base_files): Likewise.
21163 * genopinit.c (main): Likewise.
21164 * genoutput.c (output_prologue): Likewise.
21165 * genpeep.c (main): Likewise.
21166 * genpreds.c (write_insn_preds_c): Likewise.
21167 * genrecog.c (write_header): Likewise.
21168 * alias.c: Adjust includes.
21169 * asan.c: Likewise.
21170 * attribs.c: Likewise.
21171 * auto-inc-dec.c: Likewise.
21172 * auto-profile.c: Likewise.
21173 * bb-reorder.c: Likewise.
21174 * bt-load.c: Likewise.
21175 * builtins.c: Likewise.
21176 * caller-save.c: Likewise.
21177 * calls.c: Likewise.
21178 * ccmp.c: Likewise.
21180 * cfganal.c: Likewise.
21181 * cfgbuild.c: Likewise.
21182 * cfgcleanup.c: Likewise.
21183 * cfgexpand.c: Likewise.
21184 * cfghooks.c: Likewise.
21185 * cfgloop.c: Likewise.
21186 * cfgloopanal.c: Likewise.
21187 * cfgloopmanip.c: Likewise.
21188 * cfgrtl.c: Likewise.
21189 * cgraph.c: Likewise.
21190 * cgraphbuild.c: Likewise.
21191 * cgraphclones.c: Likewise.
21192 * cgraphunit.c: Likewise.
21193 * cilk-common.c: Likewise.
21194 * combine-stack-adj.c: Likewise.
21195 * combine.c: Likewise.
21196 * compare-elim.c: Likewise.
21197 * convert.c: Likewise.
21198 * coverage.c: Likewise.
21199 * cppbuiltin.c: Likewise.
21200 * cprop.c: Likewise.
21202 * cselib.c: Likewise.
21203 * data-streamer-in.c: Likewise.
21204 * data-streamer-out.c: Likewise.
21205 * data-streamer.c: Likewise.
21206 * dbxout.c: Likewise.
21209 * debug.c: Likewise.
21210 * df-core.c: Likewise.
21211 * df-problems.c: Likewise.
21212 * df-scan.c: Likewise.
21214 * dojump.c: Likewise.
21215 * dominance.c: Likewise.
21216 * domwalk.c: Likewise.
21217 * double-int.c: Likewise.
21219 * dumpfile.c: Likewise.
21220 * dwarf2asm.c: Likewise.
21221 * dwarf2cfi.c: Likewise.
21222 * dwarf2out.c: Likewise.
21223 * emit-rtl.c: Likewise.
21224 * et-forest.c: Likewise.
21225 * except.c: Likewise.
21226 * explow.c: Likewise.
21227 * expmed.c: Likewise.
21228 * expr.c: Likewise.
21229 * final.c: Likewise.
21230 * fixed-value.c: Likewise.
21231 * fold-const.c: Likewise.
21232 * function.c: Likewise.
21233 * fwprop.c: Likewise.
21234 * gcc-plugin.h: Likewise.
21235 * gcse-common.c: Likewise.
21236 * gcse.c: Likewise.
21237 * generic-match-head.c: Likewise.
21238 * ggc-page.c: Likewise.
21239 * gimple-builder.c: Likewise.
21240 * gimple-expr.c: Likewise.
21241 * gimple-fold.c: Likewise.
21242 * gimple-iterator.c: Likewise.
21243 * gimple-low.c: Likewise.
21244 * gimple-match-head.c: Likewise.
21245 * gimple-pretty-print.c: Likewise.
21246 * gimple-ssa-isolate-paths.c: Likewise.
21247 * gimple-ssa-strength-reduction.c: Likewise.
21248 * gimple-streamer-in.c: Likewise.
21249 * gimple-streamer-out.c: Likewise.
21250 * gimple-walk.c: Likewise.
21251 * gimple.c: Likewise.
21252 * gimplify-me.c: Likewise.
21253 * gimplify.c: Likewise.
21254 * godump.c: Likewise.
21255 * graph.c: Likewise.
21256 * graphite-blocking.c: Likewise.
21257 * graphite-dependences.c: Likewise.
21258 * graphite-interchange.c: Likewise.
21259 * graphite-isl-ast-to-gimple.c: Likewise.
21260 * graphite-optimize-isl.c: Likewise.
21261 * graphite-poly.c: Likewise.
21262 * graphite-scop-detection.c: Likewise.
21263 * graphite-sese-to-poly.c: Likewise.
21264 * graphite.c: Likewise.
21265 * haifa-sched.c: Likewise.
21266 * hw-doloop.c: Likewise.
21267 * ifcvt.c: Likewise.
21268 * init-regs.c: Likewise.
21269 * internal-fn.c: Likewise.
21270 * ipa-chkp.c: Likewise.
21271 * ipa-comdats.c: Likewise.
21272 * ipa-cp.c: Likewise.
21273 * ipa-devirt.c: Likewise.
21274 * ipa-icf-gimple.c: Likewise.
21275 * ipa-icf.c: Likewise.
21276 * ipa-inline-analysis.c: Likewise.
21277 * ipa-inline-transform.c: Likewise.
21278 * ipa-inline.c: Likewise.
21279 * ipa-polymorphic-call.c: Likewise.
21280 * ipa-profile.c: Likewise.
21281 * ipa-prop.c: Likewise.
21282 * ipa-pure-const.c: Likewise.
21283 * ipa-ref.c: Likewise.
21284 * ipa-reference.c: Likewise.
21285 * ipa-split.c: Likewise.
21286 * ipa-utils.c: Likewise.
21287 * ipa-visibility.c: Likewise.
21289 * ira-build.c: Likewise.
21290 * ira-color.c: Likewise.
21291 * ira-conflicts.c: Likewise.
21292 * ira-costs.c: Likewise.
21293 * ira-emit.c: Likewise.
21294 * ira-lives.c: Likewise.
21296 * jump.c: Likewise.
21297 * langhooks.c: Likewise.
21299 * loop-doloop.c: Likewise.
21300 * loop-init.c: Likewise.
21301 * loop-invariant.c: Likewise.
21302 * loop-iv.c: Likewise.
21303 * loop-unroll.c: Likewise.
21304 * lower-subreg.c: Likewise.
21305 * lra-assigns.c: Likewise.
21306 * lra-coalesce.c: Likewise.
21307 * lra-constraints.c: Likewise.
21308 * lra-eliminations.c: Likewise.
21309 * lra-lives.c: Likewise.
21310 * lra-remat.c: Likewise.
21311 * lra-spills.c: Likewise.
21313 * lto-cgraph.c: Likewise.
21314 * lto-compress.c: Likewise.
21315 * lto-opts.c: Likewise.
21316 * lto-section-in.c: Likewise.
21317 * lto-section-out.c: Likewise.
21318 * lto-streamer-in.c: Likewise.
21319 * lto-streamer-out.c: Likewise.
21320 * lto-streamer.c: Likewise.
21322 * mode-switching.c: Likewise.
21323 * modulo-sched.c: Likewise.
21324 * omega.c: Likewise.
21325 * omp-low.c: Likewise.
21326 * optabs.c: Likewise.
21327 * opts-global.c: Likewise.
21328 * passes.c: Likewise.
21329 * plugin.c: Likewise.
21330 * postreload-gcse.c: Likewise.
21331 * postreload.c: Likewise.
21332 * predict.c: Likewise.
21333 * print-rtl.c: Likewise.
21334 * print-tree.c: Likewise.
21335 * profile.c: Likewise.
21336 * real.c: Likewise.
21337 * realmpfr.c: Likewise.
21338 * recog.c: Likewise.
21340 * reg-stack.c: Likewise.
21341 * regcprop.c: Likewise.
21342 * reginfo.c: Likewise.
21343 * regrename.c: Likewise.
21344 * regstat.c: Likewise.
21345 * reload.c: Likewise.
21346 * reload1.c: Likewise.
21347 * reorg.c: Likewise.
21348 * resource.c: Likewise.
21349 * rtl-chkp.c: Likewise.
21350 * rtlanal.c: Likewise.
21351 * rtlhooks.c: Likewise.
21352 * sanopt.c: Likewise.
21353 * sched-deps.c: Likewise.
21354 * sched-ebb.c: Likewise.
21355 * sched-rgn.c: Likewise.
21356 * sched-vis.c: Likewise.
21357 * sdbout.c: Likewise.
21358 * sel-sched-dump.c: Likewise.
21359 * sel-sched-ir.c: Likewise.
21360 * sel-sched.c: Likewise.
21361 * sese.c: Likewise.
21362 * shrink-wrap.c: Likewise.
21363 * simplify-rtx.c: Likewise.
21364 * stack-ptr-mod.c: Likewise.
21365 * stmt.c: Likewise.
21366 * stor-layout.c: Likewise.
21367 * store-motion.c: Likewise.
21368 * stringpool.c: Likewise.
21369 * symtab.c: Likewise.
21370 * target-globals.c: Likewise.
21371 * targhooks.c: Likewise.
21372 * toplev.c: Likewise.
21373 * tracer.c: Likewise.
21374 * trans-mem.c: Likewise.
21375 * tree-affine.c: Likewise.
21376 * tree-browser.c: Likewise.
21377 * tree-call-cdce.c: Likewise.
21378 * tree-cfg.c: Likewise.
21379 * tree-cfgcleanup.c: Likewise.
21380 * tree-chkp-opt.c: Likewise.
21381 * tree-chkp.c: Likewise.
21382 * tree-chrec.c: Likewise.
21383 * tree-complex.c: Likewise.
21384 * tree-data-ref.c: Likewise.
21385 * tree-dfa.c: Likewise.
21386 * tree-diagnostic.c: Likewise.
21387 * tree-dump.c: Likewise.
21388 * tree-eh.c: Likewise.
21389 * tree-emutls.c: Likewise.
21390 * tree-if-conv.c: Likewise.
21391 * tree-inline.c: Likewise.
21392 * tree-into-ssa.c: Likewise.
21393 * tree-iterator.c: Likewise.
21394 * tree-loop-distribution.c: Likewise.
21395 * tree-nested.c: Likewise.
21396 * tree-nrv.c: Likewise.
21397 * tree-object-size.c: Likewise.
21398 * tree-outof-ssa.c: Likewise.
21399 * tree-parloops.c: Likewise.
21400 * tree-phinodes.c: Likewise.
21401 * tree-predcom.c: Likewise.
21402 * tree-pretty-print.c: Likewise.
21403 * tree-profile.c: Likewise.
21404 * tree-scalar-evolution.c: Likewise.
21405 * tree-sra.c: Likewise.
21406 * tree-ssa-address.c: Likewise.
21407 * tree-ssa-alias.c: Likewise.
21408 * tree-ssa-ccp.c: Likewise.
21409 * tree-ssa-coalesce.c: Likewise.
21410 * tree-ssa-copy.c: Likewise.
21411 * tree-ssa-copyrename.c: Likewise.
21412 * tree-ssa-dce.c: Likewise.
21413 * tree-ssa-dom.c: Likewise.
21414 * tree-ssa-dse.c: Likewise.
21415 * tree-ssa-forwprop.c: Likewise.
21416 * tree-ssa-ifcombine.c: Likewise.
21417 * tree-ssa-live.c: Likewise.
21418 * tree-ssa-loop-ch.c: Likewise.
21419 * tree-ssa-loop-im.c: Likewise.
21420 * tree-ssa-loop-ivcanon.c: Likewise.
21421 * tree-ssa-loop-ivopts.c: Likewise.
21422 * tree-ssa-loop-manip.c: Likewise.
21423 * tree-ssa-loop-niter.c: Likewise.
21424 * tree-ssa-loop-prefetch.c: Likewise.
21425 * tree-ssa-loop-unswitch.c: Likewise.
21426 * tree-ssa-loop.c: Likewise.
21427 * tree-ssa-math-opts.c: Likewise.
21428 * tree-ssa-operands.c: Likewise.
21429 * tree-ssa-phiopt.c: Likewise.
21430 * tree-ssa-phiprop.c: Likewise.
21431 * tree-ssa-pre.c: Likewise.
21432 * tree-ssa-propagate.c: Likewise.
21433 * tree-ssa-reassoc.c: Likewise.
21434 * tree-ssa-sccvn.c: Likewise.
21435 * tree-ssa-scopedtables.c: Likewise.
21436 * tree-ssa-sink.c: Likewise.
21437 * tree-ssa-strlen.c: Likewise.
21438 * tree-ssa-structalias.c: Likewise.
21439 * tree-ssa-tail-merge.c: Likewise.
21440 * tree-ssa-ter.c: Likewise.
21441 * tree-ssa-threadedge.c: Likewise.
21442 * tree-ssa-threadupdate.c: Likewise.
21443 * tree-ssa-uncprop.c: Likewise.
21444 * tree-ssa-uninit.c: Likewise.
21445 * tree-ssa.c: Likewise.
21446 * tree-ssanames.c: Likewise.
21447 * tree-stdarg.c: Likewise.
21448 * tree-streamer-in.c: Likewise.
21449 * tree-streamer-out.c: Likewise.
21450 * tree-streamer.c: Likewise.
21451 * tree-switch-conversion.c: Likewise.
21452 * tree-tailcall.c: Likewise.
21453 * tree-vect-data-refs.c: Likewise.
21454 * tree-vect-generic.c: Likewise.
21455 * tree-vect-loop-manip.c: Likewise.
21456 * tree-vect-loop.c: Likewise.
21457 * tree-vect-patterns.c: Likewise.
21458 * tree-vect-slp.c: Likewise.
21459 * tree-vect-stmts.c: Likewise.
21460 * tree-vectorizer.c: Likewise.
21461 * tree-vrp.c: Likewise.
21462 * tree.c: Likewise.
21463 * tsan.c: Likewise.
21464 * ubsan.c: Likewise.
21465 * valtrack.c: Likewise.
21466 * value-prof.c: Likewise.
21467 * var-tracking.c: Likewise.
21468 * varasm.c: Likewise.
21469 * varpool.c: Likewise.
21470 * vmsdbgout.c: Likewise.
21471 * vtable-verify.c: Likewise.
21473 * wide-int.cc: Likewise.
21474 * xcoffout.c: Likewise.
21475 * config/aarch64/aarch64-builtins.c: Likewise.
21476 * config/aarch64/aarch64.c: Likewise.
21477 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
21478 * config/alpha/alpha.c: Likewise.
21479 * config/arc/arc.c: Likewise.
21480 * config/arm/aarch-common.c: Likewise.
21481 * config/arm/arm-builtins.c: Likewise.
21482 * config/arm/arm-c.c: Likewise.
21483 * config/arm/arm.c: Likewise.
21484 * config/avr/avr-c.c: Likewise.
21485 * config/avr/avr-log.c: Likewise.
21486 * config/avr/avr.c: Likewise.
21487 * config/bfin/bfin.c: Likewise.
21488 * config/c6x/c6x.c: Likewise.
21489 * config/cr16/cr16.c: Likewise.
21490 * config/cris/cris.c: Likewise.
21491 * config/darwin-c.c: Likewise.
21492 * config/darwin.c: Likewise.
21493 * config/epiphany/epiphany.c: Likewise.
21494 * config/epiphany/mode-switch-use.c: Likewise.
21495 * config/epiphany/resolve-sw-modes.c: Likewise.
21496 * config/fr30/fr30.c: Likewise.
21497 * config/frv/frv.c: Likewise.
21498 * config/ft32/ft32.c: Likewise.
21499 * config/h8300/h8300.c: Likewise.
21500 * config/i386/i386-c.c: Likewise.
21501 * config/i386/i386.c: Likewise.
21502 * config/i386/msformat-c.c: Likewise.
21503 * config/i386/winnt-cxx.c: Likewise.
21504 * config/i386/winnt-stubs.c: Likewise.
21505 * config/i386/winnt.c: Likewise.
21506 * config/ia64/ia64-c.c: Likewise.
21507 * config/ia64/ia64.c: Likewise.
21508 * config/iq2000/iq2000.c: Likewise.
21509 * config/lm32/lm32.c: Likewise.
21510 * config/m32c/m32c-pragma.c: Likewise.
21511 * config/m32c/m32c.c: Likewise.
21512 * config/m32r/m32r.c: Likewise.
21513 * config/m68k/m68k.c: Likewise.
21514 * config/mcore/mcore.c: Likewise.
21515 * config/mep/mep-pragma.c: Likewise.
21516 * config/mep/mep.c: Likewise.
21517 * config/microblaze/microblaze-c.c: Likewise.
21518 * config/microblaze/microblaze.c: Likewise.
21519 * config/mips/mips.c: Likewise.
21520 * config/mmix/mmix.c: Likewise.
21521 * config/mn10300/mn10300.c: Likewise.
21522 * config/moxie/moxie.c: Likewise.
21523 * config/msp430/msp430-c.c: Likewise.
21524 * config/msp430/msp430.c: Likewise.
21525 * config/nds32/nds32-cost.c: Likewise.
21526 * config/nds32/nds32-fp-as-gp.c: Likewise.
21527 * config/nds32/nds32-intrinsic.c: Likewise.
21528 * config/nds32/nds32-isr.c: Likewise.
21529 * config/nds32/nds32-md-auxiliary.c: Likewise.
21530 * config/nds32/nds32-memory-manipulation.c: Likewise.
21531 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
21532 * config/nds32/nds32-predicates.c: Likewise.
21533 * config/nds32/nds32.c: Likewise.
21534 * config/nios2/nios2.c: Likewise.
21535 * config/nvptx/nvptx.c: Likewise.
21536 * config/pa/pa.c: Likewise.
21537 * config/pdp11/pdp11.c: Likewise.
21538 * config/rl78/rl78-c.c: Likewise.
21539 * config/rl78/rl78.c: Likewise.
21540 * config/rs6000/rs6000-c.c: Likewise.
21541 * config/rs6000/rs6000.c: Likewise.
21542 * config/rx/rx.c: Likewise.
21543 * config/s390/s390-c.c: Likewise.
21544 * config/s390/s390.c: Likewise.
21545 * config/sh/sh-c.c: Likewise.
21546 * config/sh/sh-mem.cc: Likewise.
21547 * config/sh/sh.c: Likewise.
21548 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
21549 * config/sh/sh_treg_combine.cc: Likewise.
21550 * config/sol2-c.c: Likewise.
21551 * config/sol2-cxx.c: Likewise.
21552 * config/sol2-stubs.c: Likewise.
21553 * config/sol2.c: Likewise.
21554 * config/sparc/sparc-c.c: Likewise.
21555 * config/sparc/sparc.c: Likewise.
21556 * config/spu/spu-c.c: Likewise.
21557 * config/spu/spu.c: Likewise.
21558 * config/stormy16/stormy16.c: Likewise.
21559 * config/tilegx/mul-tables.c: Likewise.
21560 * config/tilegx/tilegx-c.c: Likewise.
21561 * config/tilegx/tilegx.c: Likewise.
21562 * config/tilepro/mul-tables.c: Likewise.
21563 * config/tilepro/tilepro-c.c: Likewise.
21564 * config/tilepro/tilepro.c: Likewise.
21565 * config/v850/v850-c.c: Likewise.
21566 * config/v850/v850.c: Likewise.
21567 * config/vax/vax.c: Likewise.
21568 * config/visium/visium.c: Likewise.
21569 * config/vms/vms-c.c: Likewise.
21570 * config/vms/vms.c: Likewise.
21571 * config/vxworks.c: Likewise.
21572 * config/xtensa/xtensa.c: Likewise.
21574 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
21576 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
21577 Remove operand constraints. Change operand 2 predicate to
21578 nonmemory operand. Limit const_int values to mode bitsize. Only
21579 allow const_int values less than 32 when optimizing for size.
21580 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
21581 Remove operand constraints.
21582 (*bt<mode>): Use SImode for const_int values less than 32.
21583 (regmode): Remove mode attribute.
21585 2015-07-07 Anatoly Sokolov <aesok@post.ru>
21587 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
21588 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
21589 moxie_legitimate_address_p): New functions.
21590 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
21592 2015-07-07 Tom de Vries <tom@codesourcery.com>
21594 PR tree-optimization/66642
21595 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
21596 header comment. Rename split_edge variable to edge_at_split. Split
21597 exit edge to create new loop exit bb. Insert loop exit phis in new
21600 2015-07-07 Tom de Vries <tom@codesourcery.com>
21602 * tree-cfg.c (get_virtual_phi): New function.
21603 * tree-cfg.h (get_virtual_phi): Declare.
21604 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
21605 (rewrite_virtuals_into_loop_closed_ssa): New function.
21606 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
21608 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
21609 (transform_to_exit_first_loop_alt): Use
21610 rewrite_virtuals_into_loop_closed_ssa.
21612 2015-07-07 Richard Biener <rguenther@suse.de>
21614 * fold-const.c (fold_binary_loc): Move
21615 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
21616 * match.pd: ... here.
21617 Add (X * C1) % C2 -> 0 simplification pattern derived from
21620 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
21623 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
21624 change for target/65249.
21626 2015-07-07 Paulo Matos <pmatos@broadcom.com>
21628 * symtab.c (address_matters_1): Fix typo in comment above.
21629 (can_increase_alignment_p): Likewise.
21631 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
21633 * function.c (free_after_compilation): Clear PROP_cfg in
21634 f->curr_properties.
21636 2015-07-07 Richard Biener <rguenther@suse.de>
21638 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
21640 (add_control_edge): Remove excessive vertical space in dumping.
21641 (process_ssa_edge_worklist): Simulate at most one statement and
21642 return whether we did. Do not simulate PHIs if they are in a
21643 BB not yet simulated.
21644 (ssa_propagate): Adjust to always drain the BB worklist whenever
21645 a BB is available there, likewise the VARYING edges list before
21646 the interesting edge list.
21648 2015-07-07 Christian Bruel <christian.bruel@st.com>
21651 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
21653 2015-07-07 Richard Biener <rguenther@suse.de>
21655 PR middle-end/66739
21656 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
21659 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
21661 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
21662 modes for operands 0 and 3. Use SImode for operands 2 and 3.
21663 Copy operand 0 to a temporary if !ext_register_operand. Remove
21664 ancient extract_bit_field workaround.
21665 (insv<mode>_1): Rename from mov<mode>_insv_1.
21666 (*insvqi): Rename from *movqi_insv_2.
21667 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
21668 for renamed insvsi_1.
21669 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
21671 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
21673 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
21674 call to nvptx_reorg_subreg.
21676 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
21678 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
21679 * graphite-dependencies.c, graphite-interchange.c,
21680 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
21681 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
21684 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
21686 * match.pd: Remove element_mode inside HONOR_*.
21687 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
21688 (~X | X -> -1, ~X ^ X -> -1): Merge.
21689 * tree.c (build_each_one_cst): New function.
21690 * tree.h (build_each_one_cst): Likewise.
21692 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
21694 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
21697 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
21699 * config.gcc <mips*-*-*>: Add fused-madd.opt.
21700 * config/mips/mips.opt (mfused-madd): Remove.
21701 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
21702 * config/mips/mips.h (TARGET_MIPS8000): New.
21703 (ISA_HAS_FP_MADD4_MSUB4): Remove.
21704 (ISA_HAS_FP_MADDF_MSUBF): Remove.
21705 (ISA_HAS_FP_MADD3_MSUB3): Remove.
21706 (ISA_HAS_NMADD4_NMSUB4): Remove.
21707 (ISA_HAS_NMADD3_NMSUB3): Remove.
21708 (ISA_HAS_FUSED_MADD4): New.
21709 (ISA_HAS_UNFUSED_MADD4): New.
21710 (ISA_HAS_FUSED_MADDF): New.
21711 (ISA_HAS_FUSED_MADD3): New.
21712 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
21713 (*fma<mode>4_madd3) New.
21714 (*fma<mode>4_madd4) New.
21715 (*fma<mode>4_maddf) New.
21717 (*fms<mode>4_msub3) New.
21718 (*fms<mode>4_msub4) New.
21720 (*fnma<mode>4_nmadd3) New.
21721 (*fnma<mode>4_nmadd4) New.
21723 (*fnms<mode>4_nmsub3) New.
21724 (*fnms<mode>4_nmsub4) New.
21725 (*madd4<mode>) Modify to be unfused only.
21726 (*msub4<mode>) Modify to be unfused only.
21727 (*nmadd4<mode>) Modify to be unfused only.
21728 (*nmsub4<mode>) Modify to be unfused only.
21729 (*madd3<mode>) Remove.
21730 (*msub3<mode>) Remove.
21731 (*nmadd3<mode>) Remove.
21732 (*nmsub3<mode>) Remove.
21733 (*nmadd3<mode>_fastmath) Remove.
21734 (*nmsub3<mode>_fastmath) Remove.
21735 (*nmadd4<mode>_fastmath) Update condition.
21736 (*nmsub4<mode>_fastmath) Update condition.
21738 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
21741 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
21742 alignment attribute, exploring one level down for records and arrays.
21744 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
21746 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
21747 modes for operands 0 and 1. Use SImode for operands 2 and 3.
21748 Copy operand 1 to a temporary if !ext_register_operand. Remove
21749 ancient extract_bit_field workaround.
21750 (*extv<mode>): Rename from *mov<mode>_extv_1.
21751 (*extvqi): Rename from *movqi_extv_1.
21752 (extzv<mode>): Rename from extzv. Use SWI248 modes for
21753 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
21754 to a temporary if !ext_register_operand. Remove ancient
21755 extract_bit_field workaround.
21756 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
21757 (*extzvqi): Rename from *movqi_extzv_2.
21758 (*testqi_ext_3): Remove modes from const_int_operand predicated
21759 operands. Add "n" constraint.
21760 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
21761 operand. Add "J" constraint.
21762 (*btsq, *btrq, *btcq peephole2s): Remove mode from
21763 const_0_to_63 predicated operand.
21764 (regmode): New insn attribute.
21765 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
21766 to nonmemory_operand. Use regmode insn attribute.
21767 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
21768 (*jcc_bt<mode>_mask): Remove mode from operand 3.
21769 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
21770 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
21771 operands. Use "N" constraint instead of "n".
21773 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
21775 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
21777 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
21780 * config/i386/i386.c (iamcu_cost): New.
21781 (m_IAMCU): Likewise.
21782 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
21783 (processor_target_table): Add an entry for "iamcu".
21784 (processor_alias_table): Likewise.
21785 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
21786 (ix86_adjust_cost): Likewise.
21787 (ia32_multipass_dfa_lookahead): Likewise.
21788 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
21789 * config/i386/x86-tune.def: Updated for m_IAMCU.
21791 2015-07-06 Richard Biener <rguenther@suse.de>
21793 PR tree-optimization/66772
21794 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
21795 values are available in the PHI node BB when there are
21796 still unexecutable edges.
21798 2015-07-06 Richard Biener <rguenther@suse.de>
21800 PR tree-optimization/66767
21801 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
21802 Make sure to build the alignment test on a SSA name without
21803 final alignment info valid only if the alignment test
21806 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
21809 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
21810 loop start when inserting LSETUP.
21812 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
21815 * config/i386/i386.c (ix86_option_override_internal): Allow
21816 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
21818 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21820 * read-md.c (decimal_string): Rename to ...
21821 (md_decimal_string): ... this.
21822 (handle_enum): Reflect this.
21824 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
21827 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
21829 2015-07-06 Richard Biener <rguenther@suse.de>
21831 PR middle-end/66759
21832 * match.pd: Add missing constraint of y to REAL_CST in
21833 REAL_CST - x CMP y to y - CST CMP x simplification.
21835 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
21837 PR tree-optimization/66757
21838 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
21840 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
21841 Sandra Loosemore <sandra@codesourcery.com>
21843 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
21844 Delete extern declaration.
21845 (gprel_constant_p): Add extern declaration.
21846 * config/nios2/constraints.md ("S"): Use gprel_constant_p
21847 instead of nios2_symbol_ref_in_small_data_p.
21848 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
21849 (nios2_symbol_ref_in_small_data_p): Make static.
21850 (gprel_constant_p): Make non-static.
21852 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
21854 * doc/fragments.texi (Target Fragment): Convert debian.org
21856 * doc/install.texi (Configuration): Ditto.
21858 2015-07-05 Jakub Jelinek <jakub@redhat.com>
21860 PR tree-optimization/66718
21861 * tree-vect-stmts.c (vectorizable_call): Replace uses of
21862 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
21864 PR tree-optimization/66718
21865 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
21866 vectorizable_load, vectorizable_condition): Move vectype,
21867 nunits, ncopies computation after checking what kind of statement
21870 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21872 * target-insns.def (extv, extzv, insv): New targetm instruction
21874 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
21876 * recog.c (simplify_while_replacing): Likewise.
21878 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21880 * target-insns.def (doloop_begin, doloop_end): New targetm
21881 instruction patterns.
21882 * loop-init.c: Include target.h.
21883 (pass_loop2::gate): Use the new targetm patterns instead of
21884 HAVE_*/gen_* interface.
21885 (pass_rtl_doloop::gate): Likewise.
21886 (pass_rtl_doloop::execute): Remove preprocessor condition.
21887 * hw-doloop.c: Build unconditionally.
21888 * loop-doloop.c: Likewise.
21889 (doloop_optimize): Use the new targetm patterns instead of
21890 HAVE_*/gen_* interface.
21891 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
21892 * modulo-sched.c (doloop_register_get): Likewise.
21894 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21896 * target-insns.def (clear_cache): New targetm instruction pattern.
21897 * builtins.c (expand_builtin___clear_cache): Use it instead of
21898 HAVE_*/gen_* interface.
21900 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21902 * target-insns.def (allocate_stack, check_stack, probe_stack)
21903 (probe_stack_address, split_stack_prologue, split_stack_space_check):
21904 New targetm instruction patterns.
21905 * explow.c (allocate_dynamic_stack_space): Use them instead of
21906 HAVE_*/gen_* interface.
21907 (emit_stack_probe): Likewise.
21908 (probe_stack_range): Likewise.
21909 * function.c (thread_prologue_and_epilogue_insns): Likewise.
21911 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21913 * target-insns.def (stack_protect_set, stack_protect_test): New
21914 targetm instruction patterns.
21915 * cfgexpand.c (stack_protect_prologue): Use them instead of
21916 HAVE_*/gen_* interface.
21917 * function.c (stack_protect_epilogue): Likewise.
21919 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21921 * expr.h (gen_move_insn_uncast): Delete.
21922 * expr.c (gen_move_insn_uncast): Delete.
21924 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21926 * target-insns.def (restore_stack_block, restore_stack_function)
21927 (restore_stack_nonlocal, save_stack_block, save_stack_function)
21928 (save_stack_nonlocal): New targetm instruction patterns.
21929 * builtins.c (expand_builtin_apply): Use them instead of
21930 HAVE_*/gen_* interface.
21931 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
21933 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21935 * target-insns.def (trap): New targetm instruction pattern.
21936 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
21938 * explow.c (allocate_dynamic_stack_space): Likewise.
21939 * ifcvt.c (find_if_header): Likewise.
21941 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21943 * target-insns.def (prefetch): New targetm instruction pattern.
21944 * tree-ssa-loop-prefetch.c: Include targeth.
21945 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
21946 of HAVE_*/gen_* interface.
21947 * builtins.c (expand_builtin_prefetch): Likewise.
21948 * toplev.c (process_options): Likewise.
21950 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21952 * target-insns.def (untyped_call, untyped_return): New targetm
21953 instruction patterns.
21954 * builtins.c (expand_builtin_apply): Use them instead of
21955 HAVE_*/gen_* interface.
21956 (result_vector): Define unconditionally.
21958 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21960 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
21961 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
21962 (nonlocal_goto_receiver): New targetm instruction patterns.
21963 * builtins.c (expand_builtin_setjmp_setup): Use them instead
21964 of HAVE_*/gen_* interface.
21965 (expand_builtin_setjmp_receiver): Likewise.
21966 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
21967 * except.c (expand_dw2_landing_pad_for_region): Likewise.
21969 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
21971 * target.def: Add code_for_* hooks.
21972 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
21973 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
21974 * target-insns.def (casesi, tablejump): New targetm instruction
21976 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
21977 (do_tablejump): Likewise.
21978 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
21979 (expand_sjlj_dispatch_table): Likewise.
21980 * targhooks.c (default_case_values_threshold): Likewise.
21982 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
21984 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
21985 Use rtx_insn * instead of rtx.
21986 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
21987 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
21988 (nios2_call_tls_get_addr): Likewise.
21989 (nios2_emit_expensive_div): Likewise.
21990 (nios2_emit_move_sequence): Change return type to bool.
21991 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
21992 Change return type to bool.
21994 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
21997 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
21999 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
22002 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
22003 of register_operand. Remove constraint.
22005 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
22007 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
22008 the first argument.
22010 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
22012 * attribs.c (decl_attributes): Guard inform with the return value
22013 of the preceding warning.
22015 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
22017 * doc/invoke.texi (moverride): Move to correct section.
22019 2015-07-03 Richard Biener <rguenther@suse.de>
22021 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
22023 (dt_operand::gen_gimple_expr): After valueizing operands
22024 re-canonicalize operand order for commutative tree codes.
22026 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
22029 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
22031 (__crc32w): Likewise.
22032 (__crc32d): Likewise.
22033 (__rdpmc): Likewise.
22034 (__rdtscp): Likewise.
22035 (_rdpmc): Likewise.
22036 (_rdtscp): Likewise.
22037 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
22040 2015-07-03 Richard Biener <rguenther@suse.de>
22042 * fold-const.c (fold_mathfn_compare): Remove.
22043 (fold_inf_compare): Likewise.
22044 (fold_comparison): Move floating point comparison simplifications...
22045 * match.pd: ... to patterns here. Introduce simple_comparisons
22046 operator list and use it for patterns formerly in fold_comparison.
22048 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
22050 PR tree-optimization/66119
22051 * toplev.c (process_options): Don't set up default values for
22052 the sra_max_scalarization_size_{speed,size} parameters.
22053 * tree-sra (analyze_all_variable_accesses): If no values
22054 have been set for the sra_max_scalarization_size_{speed,size}
22055 parameters, call get_move_ratio to get target defaults.
22057 2015-07-03 Richard Biener <rguenther@suse.de>
22059 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
22060 * match.pd: ... here.
22062 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
22065 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
22066 is not actually the default on FreeBSD.
22068 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22070 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
22072 (CMPGE_8HI): Likewise.
22073 (CMPGE_4SI): Likewise.
22074 (CMPGE_2DI): Likewise.
22075 (CMPGE_U16QI): Likewise.
22076 (CMPGE_U8HI): Likewise.
22077 (CMPGE_U4SI): Likewise.
22078 (CMPGE_U2DI): Likewise.
22079 (CMPLE_16QI): Likewise.
22080 (CMPLE_8HI): Likewise.
22081 (CMPLE_4SI): Likewise.
22082 (CMPLE_2DI): Likewise.
22083 (CMPLE_U16QI): Likewise.
22084 (CMPLE_U8HI): Likewise.
22085 (CMPLE_U4SI): Likewise.
22086 (CMPLE_U2DI): Likewise.
22087 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
22088 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
22089 ALTIVEC_BUILTIN_VEC_CMPLE.
22090 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
22091 floating-point vector modes.
22092 (vector_nlt<mode>): New define_expand.
22093 (vector_nltu<mode>): Likewise.
22094 (vector_ngt<mode>): Likewise.
22095 (vector_ngtu<mode>): Likewise.
22097 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
22099 PR rtl-optimization/66706
22100 * combine.c (make_compound_operation): If an AND of SUBREG of
22101 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
22103 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
22105 * tree-pass.h (make_pass_ch_vect): New.
22106 * passes.def: Add pass_ch_vect just before pass_if_conversion.
22108 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
22109 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
22110 make_pass_ch_vect): New.
22111 (pass_ch): Extend ch_base.
22113 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
22114 (ch_base::copy_headers): ...here.
22116 2015-07-02 Richard Biener <rguenther@suse.de>
22118 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
22119 * fold-const.c (get_pointer_modulus_and_residue): Remove.
22120 (fold_binary_loc): Implement (T)ptr & CST in terms of
22121 get_pointer_alignment_1.
22122 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
22123 Make sure to build the alignment test on a SSA name without
22124 final alignment info valid only after the prologue.
22126 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
22128 * config/cris/cris.md ("epilogue"): Remove condition.
22129 ("prologue"): Ditto.
22131 2015-07-02 Richard Biener <rguenther@suse.de>
22133 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
22134 parameter to record a condition that is false.
22135 (record_conditions): When recording an extra NE_EXPR that is
22136 true also record a EQ_EXPR that is false.
22138 2015-07-02 Bin Cheng <bin.cheng@arm.com>
22140 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
22141 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
22142 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
22143 (set_iv, find_interesting_uses_address, add_candidate_1): New
22144 argument to alloc_iv.
22145 (find_interesting_uses_op, find_interesting_uses_cond): Don't
22146 duplicate struct iv.
22147 (free_loop_data): Don't free struct iv explicitly.
22148 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
22150 2015-07-01 DJ Delorie <dj@redhat.com>
22152 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
22154 (SUPPORTS_DISCRIMINATOR): Define.
22156 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
22159 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
22160 there are no CALLs in the same pattern.
22162 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
22164 PR rtl-optimization/61047
22165 * rtlanal.c (get_initial_register_offset): New function.
22166 (rtx_addr_can_trap_p_1): Check offsets of stack references.
22168 2015-07-01 Richard Biener <rguenther@suse.de>
22170 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
22171 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
22172 ~X CMP C -> X CMP' ~C to ...
22173 * match.pd: ... patterns here.
22175 2015-07-01 Nick Clifton <nickc@redhat.com>
22177 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
22178 a 16-bit value into a 20-bit memory slot.
22180 2015-07-01 Jiong Wang <jiong.wang@arm.com>
22182 * doc/sourcebuild.texi (AArch64-specific attributes): Document
22183 "aarch64_tiny", "aarch64_small", "aarch64_large",
22184 "aarch64_little_endian", "aarch64_big_endian".
22186 2015-07-01 Jiong Wang <jiong.wang@arm.com>
22188 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
22189 Document "aarch64_small_fpic".
22191 2015-07-01 Jiong Wang <jiong.wang@arm.com>
22193 * configure.ac: Add check for aarch64 assembler -fpic relocation
22195 * configure: Regenerate.
22196 * config.in: Regenerate.
22197 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
22198 to -fPIC if not support of -fpic relocation modifier in assembler.
22200 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
22203 * rtl.c (classify_insn): Handle returns in PARALLELs.
22205 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
22207 PR middle-end/66633
22208 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
22209 to true if the function is nested and if not optimizing.
22210 (convert_local_omp_clauses): Initialize need_frame to true if the
22211 function contains nested functions and if not optimizing.
22213 2015-07-01 Richard Biener <rguenther@suse.de>
22215 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
22216 (X & Y) ^ Y -> ~X & Y transforms to ...
22217 * match.pd: ... here.
22219 2015-07-01 Richard Biener <rguenther@suse.de>
22221 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
22222 of converts to avoid uninteresting noise from the conversion
22223 simplifying patterns.
22225 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
22227 * config/c6x/c6x.c (try_rename_operands): Do not depend on
22228 gcc_assert evaluating its argument for side-effect.
22230 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
22233 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
22236 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
22238 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
22239 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
22240 (hash_scc): Add this_ref_p and ref_p parameters and pass them
22241 to the inner DFS walk.
22243 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
22245 * target-insns.def (jump): New targetm instruction pattern.
22246 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
22247 instead of gen_jump.
22248 (fix_up_crossing_landing_pad): Likewise.
22249 (add_labels_and_missing_jumps): Likewise.
22250 (fix_crossing_conditional_branches): Likewise.
22251 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
22252 (force_nonfallthru_and_redirect): Likewise.
22253 * cse.c (cse_insn): Likewise.
22254 * expmed.c (expand_divmod): Likewise.
22255 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
22256 * haifa-sched.c (init_before_recovery): Likewise.
22257 (sched_create_recovery_edges): Likewise.
22258 * ifcvt.c (find_cond_trap): Likewise.
22259 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
22260 (expand_float, expand_fix): Likewise.
22261 * stmt.c (emit_jump): Likewise.
22263 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
22265 * defaults.h (HAVE_load_multiple, gen_load_multiple)
22266 (HAVE_store_multiple, gen_store_multiple): Delete.
22267 * target-insns.def (load_multiple, store_multiple): New targetm
22268 instruction patterns.
22269 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
22270 of HAVE_*/gen_* interface.
22272 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
22274 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
22275 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
22276 (gen_mem_signal_fence): Delete.
22277 * target-insns.def (mem_signal_fence, mem_thread_fence)
22278 (memory_barrier): New targetm instruction patterns.
22279 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
22281 (expand_mem_signal_fence): Likewise.
22283 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
22285 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
22286 * target-insns.def (epilogue, prologue, sibcall_prologue): New
22287 targetm instruction patterns.
22288 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
22290 * calls.c (expand_call): Likewise.
22291 * cfgrtl.c (cfg_layout_finalize): Likewise.
22292 * df-scan.c (df_get_entry_block_def_set): Likewise.
22293 (df_get_exit_block_use_set): Likewise.
22294 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
22295 * final.c (final_start_function): Likewise.
22296 * function.c (thread_prologue_and_epilogue_insns): Likewise.
22297 (reposition_prologue_and_epilogue_notes): Likewise.
22298 * reorg.c (find_end_label): Likewise.
22299 * toplev.c (process_options): Likewise.
22301 2015-06-30 David Malcolm <dmalcolm@redhat.com>
22303 * typed-splay-tree.h: New file.
22305 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
22308 * lra-int.h (lra_substitute_pseudo): Add a parameter.
22309 (lra_substitute_pseudo_within_insn): Ditto.
22310 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
22312 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
22313 to lra_substitute_pseudo.
22314 * lra-lives.c (process_bb_lives): Add an argument to
22315 lra_substitute_pseudo_within_insn call.
22316 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
22317 argument to lra_substitute_pseudo and
22318 lra_substitute_pseudo_within_insn calls.
22319 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
22321 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
22323 * configure: Regenerated.
22325 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
22327 * config.gcc: Support i[34567]86-*-elfiamcu target.
22328 * config/i386/iamcu.h: New.
22329 * config/i386/i386.opt: Add -miamcu.
22330 * doc/invoke.texi: Document -miamcu.
22331 * common/config/i386/i386-common.c (ix86_handle_option): Turn
22332 off x87/MMX/SSE/AVX codegen for -miamcu.
22333 * config/i386/i386-c.c (ix86_target_macros_internal): Define
22334 __iamcu/__iamcu__ for -miamcu.
22335 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
22336 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
22337 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
22338 * config/i386/i386.c (ix86_option_override_internal): Ignore and
22339 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
22340 MCU by default. Default long double to 64-bit for Intel MCU.
22341 Turn on -freg-struct-return for Intel MCU. Issue an error when
22342 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
22344 (function_arg_advance_32): Pass value whose size is no larger
22345 than 8 bytes in registers for Intel MCU.
22346 (function_arg_32): Likewise.
22347 (ix86_return_in_memory): Return value whose size is no larger
22348 than 8 bytes in registers for Intel MCU.
22349 (iamcu_alignment): New function.
22350 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
22352 (ix86_local_alignment): Don't increase alignment for Intel MCU.
22353 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
22356 2015-06-30 Marek Polacek <polacek@redhat.com>
22358 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
22359 both operands of the resulting expression.
22361 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
22362 the final expression with the operand's type and then convert
22363 it to the type of the expression.
22365 2015-06-30 Richard Biener <rguenther@suse.de>
22367 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
22368 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
22369 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
22370 * match.pd: ... to patterns here.
22372 2015-06-30 Richard Biener <rguenther@suse.de>
22374 PR tree-optimization/66704
22375 * tree-vect-data-refs.c (vect_setup_realignment): Use
22376 make_ssa_name for non-SSA name source.
22378 2015-06-30 Jakub Jelinek <jakub@redhat.com>
22380 PR middle-end/66702
22381 * omp-low.c (simd_clone_adjust): Handle addressable linear
22382 or uniform parameters or non-gimple type uniform parameters.
22384 2015-06-30 Richard Biener <rguenther@suse.de>
22386 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
22387 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
22388 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
22389 * match.pd: ... here.
22390 Add a few cases of A - B -> A + (-B) when B "easily" negates.
22391 Move (x & y) | x -> x and friends before
22392 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
22394 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
22396 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
22397 -mfix-ut699 is not specified.
22398 (leon3_load): Rename into...
22399 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
22402 2015-06-30 Marek Polacek <polacek@redhat.com>
22404 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
22405 * match.pd: ... here.
22407 2015-06-30 Richard Biener <rguenther@suse.de>
22409 * target-insns.def (canonicalize_funcptr_for_compare): Add.
22410 * fold-const.c (build_range_check): Replace uses of
22411 HAVE_canonicalize_funcptr_for_compare.
22412 (fold_widened_comparison): Likewise.
22413 (fold_sign_changed_comparison): Likewise.
22414 * dojump.c: Include "target.h".
22415 (do_compare_and_jump): Replace uses of
22416 HAVE_canonicalize_funcptr_for_compare and
22417 gen_canonicalize_funcptr_for_compare.
22418 * expr.c (do_store_flag): Likewise.
22420 2015-06-30 Tom de Vries <tom@codesourcery.com>
22422 PR tree-optimization/66652
22423 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
22424 max_loop_iterations to determine if nit + 1 overflows.
22426 2015-06-30 Richard Biener <rguenther@suse.de>
22428 * tree-vrp.c (register_edge_assert_for_2): Also register
22429 asserts for dominating conversion results.
22431 2015-06-30 Bin Cheng <bin.cheng@arm.com>
22433 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
22434 field in struct iv.
22436 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
22439 * configure.ac: Fix filds and fildq test for 64-bit.
22440 * configure: Regenerated.
22442 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
22444 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
22445 (nvptx_reorg): Here. Keep the non-subreg pieces.
22447 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
22449 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
22450 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
22452 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
22454 * config/i386/i386.md (*jcc_1): Use %! in asm template.
22455 Set attribute "length_nobnd" instead of "length".
22458 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
22460 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
22462 * config/nios2/nios2.c (nios2_delegitimize_address): Make
22463 assert less restrictive.
22465 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
22468 * cgraphunit.c (cgraph_node::finalize_function): Do not call
22469 do_warn_unused_parameter.
22470 * function.c (do_warn_unused_parameter): Move from here.
22471 * function.h (do_warn_unused_parameter): Do not declare.
22473 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
22476 * gcc.target/arm/armv-sync-comp-swap.c: New.
22477 * gcc.target/arm/armv-sync-op-acquire.c: New.
22478 * gcc.target/arm/armv-sync-op-full.c: New.
22479 * gcc.target/arm/armv-sync-op-release.c: New.
22481 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
22484 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
22485 initial acquire barrier with final barrier.
22487 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
22490 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
22491 initial acquire barrier with final barrier.
22493 2015-06-29 Richard Henderson <rth@redhat.com>
22495 * config/i386/constraints.md (Bf): New constraint.
22496 * config/i386/i386-c.c (ix86_target_macros): Define
22497 __GCC_ASM_FLAG_OUTPUTS__.
22498 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
22500 * doc/extend.texi (FlagOutputOperands): Document them.
22502 2015-06-29 Jiong Wang <jiong.wang@arm.com>
22504 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
22505 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
22507 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
22508 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
22509 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
22510 (aarch64_symbol_context): Ditto.
22511 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
22512 and use new pattern name.
22513 (aarch64_expand_mov_immediate): Ditto.
22514 (aarch64_print_operand): Ditto.
22515 (aarch64_classify_tls_symbol): Ditto.
22517 2015-06-29 Marek Polacek <polacek@redhat.com>
22518 Marc Glisse <marc.glisse@inria.fr>
22520 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
22521 * match.pd: ... pattern here.
22523 2015-06-29 Tom de Vries <tom@codesourcery.com>
22525 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
22526 function structure.
22528 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
22530 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
22531 feature description, split out the native option, add a link to
22532 the feature documentation, rearrange and slightly rewrite text.
22533 (Aarch64 options, -mcpu): Likewise.
22534 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
22535 +rdma implies Adv. SIMD.
22537 2015-06-29 Marek Polacek <polacek@redhat.com>
22540 * function.c (stack_protect_epilogue): Remove a cast to int.
22541 * doc/invoke.texi: Update -Wswitch-bool description.
22543 2015-06-29 Richard Biener <rguenther@suse.de>
22545 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
22546 * fold-const.c (fold_binary_loc): Move &A - &B simplification
22547 via ptr_difference_const ...
22548 * match.pd: ... here.
22549 When matching (X ^ Y) == Y also match with swapped operands.
22551 2015-06-29 Richard Biener <rguenther@suse.de>
22553 * lto-streamer.h (LTO_major_version): Bump to 5.
22555 2015-06-29 Richard Biener <rguenther@suse.de>
22557 PR tree-optimization/66677
22558 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
22559 STMT_VINFO_VEC_STMT clobbering less strict.
22561 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
22563 PR middle-end/64130
22564 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
22565 division, compute max and min when value ranges for dividend and
22566 divisor are available.
22568 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
22569 Sandra Loosemore <sandra@codesourcery.com>
22571 * regrename.h (regrename_do_replace): Change to return bool.
22572 * regrename.c (rename_chains): Check return value of
22573 regname_do_replace.
22574 (regrename_do_replace): Re-validate the modified insns and
22575 return bool status.
22576 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
22577 Update to match rename_chains changes.
22578 * config/c6x/c6x.c (try_rename_operands): Assert that
22579 regrename_do_replace returns true.
22581 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
22583 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
22584 operand 2 here. Use copy_addr_to_reg to copy non-index
22585 register operand 2 to a temporary.
22586 (<mode>_stx): Ditto for operand 1.
22587 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
22588 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
22589 (ix86_store_bounds): Ditto.
22591 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
22593 * print-tree.c (print_node) [TREE_VEC]: Print its length.
22595 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
22597 * gimple.c (gimple_call_set_fndecl): Remove.
22598 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
22599 build1_loc directly instead of build_fold_addr_expr_loc.
22601 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
22603 * hash-map.h (hash_map::traverse): Use the definition of the
22604 Key typedef rather than the typedef itself.
22606 2015-06-26 Martin Jambor <mjambor@suse.cz>
22609 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
22610 NULL instead of calling dump_enabled_p.
22612 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
22614 * config/aarch64/aarch64.opt: (override): New.
22615 * doc/invoke.texi (override): Document.
22616 * config/aarch64/aarch64.c (aarch64_flag_desc): New
22617 (aarch64_fusible_pairs): Likewise.
22618 (aarch64_tuning_flags): Likewise.
22619 (aarch64_tuning_override_function): Likewise.
22620 (aarch64_tuning_override_functions): Likewise.
22621 (aarch64_parse_one_option_token): Likewise.
22622 (aarch64_parse_boolean_options): Likewise.
22623 (aarch64_parse_fuse_string): Likewise.
22624 (aarch64_parse_tune_string): Likewise.
22625 (aarch64_parse_one_override_token): Likewise.
22626 (aarch64_parse_override_string): Likewise.
22627 (aarch64_override_options): Parse the -override string if it
22630 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
22632 * config/aarch64/aarch64-protos.h (tune_params): Remove
22633 const from members.
22634 (aarch64_tune_params): Remove const, change to no longer be
22636 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
22637 change to no longer be a pointer, initialize to generic_tunings.
22638 (aarch64_min_divisions_for_recip_mul): Change dereference of
22639 aarch64_tune_params to member access.
22640 (aarch64_reassociation_width): Likewise.
22641 (aarch64_rtx_mult_cost): Likewise.
22642 (aarch64_address_cost): Likewise.
22643 (aarch64_branch_cost): Likewise.
22644 (aarch64_rtx_costs): Likewise.
22645 (aarch64_register_move_cost): Likewise.
22646 (aarch64_memory_move_cost): Likewise.
22647 (aarch64_sched_issue_rate): Likewise.
22648 (aarch64_builtin_vectorization_cost): Likewise.
22649 (aarch64_override_options): Take a copy of the selected tuning
22650 struct in to aarch64_tune_params, rather than just setting
22651 a pointer, change dereferences of aarch64_tune_params to member
22653 (aarch64_override_options_after_change): Change dereferences of
22654 aarch64_tune_params to member access.
22655 (aarch64_macro_fusion_p): Likewise.
22656 (aarch_macro_fusion_pair_p): Likewise.
22657 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
22659 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
22661 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
22662 (aarch64_tune_flags): Likewise.
22663 (AARCH64_TUNE_FMA_STEERING): Likewise.
22664 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
22665 to AARCH64_FL_USE_FMA_STEERING_PASS.
22666 (cortex-a57.cortex-a53): Likewise.
22667 (cortex-a72): Use cortexa72_tunings.
22668 (cortex-a72.cortex-a53): Likewise.
22669 (exynos-m1): Likewise.
22670 * config/aarch64/aarch64-protos.h (tune_params): Add
22671 a field: extra_tuning_flags.
22672 * config/aarch64/aarch64-tuning-flags.def: New.
22673 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
22674 (aarch64_extra_tuning_flags): Likewise.
22675 (aarch64_tune_params): Declare here.
22676 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
22677 (cortexa53_tunings): Likewise.
22678 (cortexa57_tunings): Likewise.
22679 (thunderx_tunings): Likewise.
22680 (xgene1_tunings): Likewise.
22681 (cortexa72_tunings): New.
22682 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
22683 (gate): Check against aarch64_tune_params.
22684 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
22687 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
22689 * config/aarch64/aarch64-fusion-pairs.def: New.
22690 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
22691 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
22692 aarch64_fusion_pairs.
22693 (AARCH64_FUSE_MOV_MOVK): Likewise.
22694 (AARCH64_FUSE_ADRP_ADD): Likewise.
22695 (AARCH64_FUSE_MOVK_MOVK): Likewise.
22696 (AARCH64_FUSE_ADRP_LDR): Likewise.
22697 (AARCH64_FUSE_CMP_BRANCH): Likewise.
22699 2015-06-26 Jiong Wang <jiong.wang@arm.com>
22701 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
22702 SYMBOL_SMALL_GOT_28K.
22703 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
22704 relocation modifiers.
22705 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
22706 (ldr_got_small_28k_<mode>): New.
22707 (ldr_got_small_28k_sidi): New.
22708 * config/aarch64/iterators.md (got_modifier): New mode iterator.
22709 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
22710 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
22711 SYMBOL_SMALL_GOT_28K.
22712 (aarch64_rtx_costs): Add costs for new instruction sequences.
22713 (initialize_aarch64_code_model): Initialize new model.
22714 (aarch64_classify_symbol): Recognize new model and new symbol classification.
22715 (aarch64_asm_preferred_eh_data_format): Support new model.
22716 (aarch64_load_symref_appropriately): Generate new instruction
22717 sequences for -fpic.
22718 (TARGET_USE_PSEUDO_PIC_REG): New definition.
22719 (aarch64_use_pseudo_pic_reg): New function.
22721 2015-06-26 Jiong Wang <jiong.wang@arm.com>
22723 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
22724 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
22725 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
22726 (aarch64_expand_mov_immediate): Ditto.
22727 (aarch64_print_operand): Ditto.
22728 (aarch64_classify_symbol): Ditto.
22730 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
22732 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
22734 2015-06-26 Bin Cheng <bin.cheng@arm.com>
22737 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
22738 assertion failed. Remove assertion itself.
22740 2015-06-26 Richard Biener <rguenther@suse.de>
22742 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
22743 and -A CMP CST -> A CMP -CST which is redundant with a pattern
22745 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
22746 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
22747 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
22748 * match.pd: ... patterns here.
22750 2015-06-26 Marek Polacek <polacek@redhat.com>
22752 * match.pd ((x | y) & ~(x & y) -> x ^ y,
22753 (x | y) & (~x ^ y) -> x & y): New patterns.
22755 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
22757 * rtl.h (emit): Add an optional boolean parameter to control
22758 whether barriers are emitted.
22759 * emit-rtl.c (emit): Likewise.
22760 * gensupport.c (get_emit_function): Return null rather than "emit".
22761 * genemit.c (gen_emit_seq): Handle the null return value.
22762 Don't emit barriers after the final instruction in the sequence.
22763 * gentarget-def.c (main): Don't emit barriers after the instruction.
22765 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22767 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
22768 TARGET_UNIFIED_ASM.
22770 2015-06-26 Richard Biener <rguenther@suse.de>
22772 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
22774 2015-06-26 Richard Biener <rguenther@suse.de>
22776 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
22777 irrespective on whether the inner operation has a single use
22778 of both off are constant.
22780 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
22781 Segher Boessenkool <segher@kernel.crashing.org>
22784 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
22785 before doing PUT_MODE or PUT_CODE on operands to avoid
22786 in-place RTX modification.
22788 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
22790 * gentarget-def.c (def_target_insn): Cast return of strtol to
22793 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
22795 * gimple.h (gimple_call_set_fn): Move inline function.
22796 * gimple.c (gimple_call_set_fn): Relocate here.
22798 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
22802 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
22803 the replacement insn will work.
22805 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
22807 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
22810 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
22812 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
22813 * cgraph.h: Include ipa-ref.h and plugin-api.h.
22814 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
22815 (symtab_node::address_can_be_compared_p): Move function.
22816 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
22818 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
22819 * auto-profile.c: Likewise.
22820 * bb-reorder.c: Likewise.
22821 * builtins.c: Likewise.
22822 * calls.c: Likewise.
22823 * cfgexpand.c: Likewise.
22824 * cgraphbuild.c: Likewise.
22825 * cgraphclones.c: Likewise.
22826 * cgraphunit.c: Likewise.
22827 * combine.c: Likewise.
22828 * coverage.c: Likewise.
22829 * data-streamer-in.c: Likewise.
22830 * data-streamer-out.c: Likewise.
22831 * data-streamer.c: Likewise.
22832 * dbxout.c: Likewise.
22833 * dwarf2out.c: Likewise.
22834 * except.c: Likewise.
22835 * expr.c: Likewise.
22836 * final.c: Likewise.
22837 * fold-const.c: Likewise.
22838 * ggc-page.c: Likewise.
22839 * gimple-fold.c: Likewise.
22840 * gimple-iterator.c: Likewise.
22841 * gimple-pretty-print.c: Likewise.
22842 * gimple-streamer-in.c: Likewise.
22843 * gimple-streamer-out.c: Likewise.
22844 * gimple.c: Likewise.
22845 * gimplify.c: Likewise.
22846 * ipa-chkp.c: Likewise.
22847 * ipa-comdats.c: Likewise.
22848 * ipa-cp.c: Likewise.
22849 * ipa-devirt.c: Likewise.
22850 * ipa-icf-gimple.c: Likewise.
22851 * ipa-icf.c: Likewise.
22852 * ipa-inline-analysis.c: Likewise.
22853 * ipa-inline-transform.c: Likewise.
22854 * ipa-inline.c: Likewise.
22855 * ipa-polymorphic-call.c: Likewise.
22856 * ipa-profile.c: Likewise.
22857 * ipa-prop.c: Likewise.
22858 * ipa-pure-const.c: Likewise.
22859 * ipa-ref.c: Likewise.
22860 * ipa-reference.c: Likewise.
22861 * ipa-split.c: Likewise.
22862 * ipa-utils.c: Likewise.
22863 * ipa-visibility.c: Likewise.
22865 * langhooks.c: Likewise.
22866 * lto-cgraph.c: Likewise.
22867 * lto-compress.c: Likewise.
22868 * lto-opts.c: Likewise.
22869 * lto-section-in.c: Likewise.
22870 * lto-section-out.c: Likewise.
22871 * lto-streamer-in.c: Likewise.
22872 * lto-streamer-out.c: Likewise.
22873 * lto-streamer.c: Likewise.
22874 * omp-low.c: Likewise.
22875 * opts-global.c: Likewise.
22876 * passes.c: Likewise.
22877 * predict.c: Likewise.
22878 * print-tree.c: Likewise.
22879 * profile.c: Likewise.
22881 * sanopt.c: Likewise.
22882 * stor-layout.c: Likewise.
22883 * symtab.c: Likewise.
22884 * toplev.c: Likewise.
22885 * trans-mem.c: Likewise.
22886 * tree-cfg.c: Likewise.
22887 * tree-chkp.c: Likewise.
22888 * tree-eh.c: Likewise.
22889 * tree-emutls.c: Likewise.
22890 * tree-inline.c: Likewise.
22891 * tree-nested.c: Likewise.
22892 * tree-parloops.c: Likewise.
22893 * tree-pretty-print.c: Likewise.
22894 * tree-profile.c: Likewise.
22895 * tree-sra.c: Likewise.
22896 * tree-ssa-alias.c: Likewise.
22897 * tree-ssa-live.c: Likewise.
22898 * tree-ssa-loop-ivcanon.c: Likewise.
22899 * tree-ssa-loop-ivopts.c: Likewise.
22900 * tree-ssa-pre.c: Likewise.
22901 * tree-ssa-sccvn.c: Likewise.
22902 * tree-ssa-strlen.c: Likewise.
22903 * tree-ssa-structalias.c: Likewise.
22904 * tree-streamer-in.c: Likewise.
22905 * tree-streamer-out.c: Likewise.
22906 * tree-streamer.c: Likewise.
22907 * tree-switch-conversion.c: Likewise.
22908 * tree-tailcall.c: Likewise.
22909 * tree-vect-data-refs.c: Likewise.
22910 * tree-vect-stmts.c: Likewise.
22911 * tree-vectorizer.c: Likewise.
22912 * tree.c: Likewise.
22913 * tsan.c: Likewise.
22914 * ubsan.c: Likewise.
22915 * value-prof.c: Likewise.
22916 * varasm.c: Likewise.
22917 * varpool.c: Likewise.
22918 * config/arm/arm.c: Likewise.
22919 * config/bfin/bfin.c: Likewise.
22920 * config/c6x/c6x.c: Likewise.
22921 * config/cris/cris.c: Likewise.
22922 * config/darwin-c.c: Likewise.
22923 * config/darwin.c: Likewise.
22924 * config/i386/i386.c: Likewise.
22925 * config/i386/winnt.c: Likewise.
22926 * config/microblaze/microblaze.c: Likewise.
22927 * config/mips/mips.c: Likewise.
22928 * config/rs6000/rs6000.c: Likewise.
22929 * config/rx/rx.c: Likewise.
22930 * config/s390/s390.c: Likewise.
22931 * config/tilegx/mul-tables.c: Likewise.
22933 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22935 * config/aarch64/aarch64.c, config/alpha/alpha.c,
22936 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
22937 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
22938 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
22939 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
22940 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
22941 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
22942 config/microblaze/microblaze.c, config/mips/mips.c,
22943 config/mmix/mmix.c, config/mn10300/mn10300.c,
22944 config/moxie/moxie.c, config/msp430/msp430.c,
22945 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
22946 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
22947 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
22948 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
22949 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
22950 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
22951 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
22952 target-def.h include.
22953 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
22955 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22957 * Makefile.in (TARGET_DEF): Add target-insns.def.
22958 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
22959 (build/gentarget-def.o): New rule.
22960 (genprogrtl): Add target-def.
22961 * target-insns.def, gentarget-def.c: New files.
22962 * target.def: Add targetm.have_* and targetm.gen_* hooks,
22963 based on the contents of target-insns.def.
22964 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
22965 (HAVE_return, gen_return): Delete.
22966 * target-def.h: Include insn-target-def.h.
22967 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
22968 instead of direct calls. Rely on them to do the appropriate assertions.
22969 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
22970 (convert_jumps_to_returns): Use targetm interface instead of
22972 (thread_prologue_and_epilogue_insns): Likewise.
22973 * reorg.c (find_end_label, dbr_schedule): Likewise.
22974 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
22975 * shrink-wrap.c (convert_to_simple_return): Likewise.
22976 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
22978 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
22980 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
22981 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
22982 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
22983 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
22984 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
22985 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
22986 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
22987 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
22988 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
22989 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
22990 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
22991 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
22992 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
22993 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
22994 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
22995 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
22998 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23000 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
23001 (unbounded_int_hashmap_traits::key_type): Likewise.
23002 * hash-map.h (hash_map): Get the key type from the traits.
23003 * hash-traits.h (default_hash_traits): By default, inherit from the
23004 template parameter.
23005 * alias.c (alias_set_traits): Delete.
23006 (alias_set_entry_d::children): Use alias_set_hash as the first
23007 template parameter.
23008 (record_alias_subset): Update accordingly.
23009 * except.c (tree_hash_traits): Delete.
23010 (type_to_runtime_map): Use tree_hash as the first template parameter.
23011 (init_eh): Update accordingly.
23012 * genmatch.c (capture_id_map_hasher): Delete.
23013 (cid_map_t): Use nofree_string_hash as first template parameter.
23014 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
23015 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
23016 Use symbol_compare_hash as the first template parameter in
23017 subdivide_hash_map.
23018 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
23019 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
23020 template parameter.
23021 * passes.c (pass_registry_hasher): Delete.
23022 (name_to_pass_map): Use nofree_string_hash as the first template
23024 (register_pass_name): Update accordingly.
23025 * sanopt.c (sanopt_tree_map_traits): Delete.
23026 (sanopt_tree_triplet_map_traits): Delete.
23027 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
23028 template parameter.
23029 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
23030 the first template parameter.
23031 * sese.c (rename_map_hasher): Delete.
23032 (rename_map_type): Use tree_ssa_name_hash as the first template
23034 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
23035 (function_summary::m_map): Use map_hash as the first template
23037 (function_summary::release): Update accordingly.
23038 * tree-if-conv.c (phi_args_hash_traits): Delete.
23039 (predicate_scalar_phi): Use tree_operand_hash as the first template
23040 parameter to phi_arg_map.
23041 * tree-inline.h (dependence_hasher): Delete.
23042 (copy_body_data::dependence_map): Use dependence_hash as the first
23043 template parameter.
23044 * tree-inline.c (remap_dependence_clique): Update accordingly.
23045 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
23046 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
23048 (addr_stridxptr): Update accordingly.
23049 * value-prof.c (profile_id_traits): Delete.
23050 (cgraph_node_map): Use profile_id_hash as the first template
23052 (init_node_map): Update accordingly.
23053 * config/alpha/alpha.c (string_traits): Delete.
23054 (machine_function::links): Use nofree_string_hash as the first
23055 template parameter.
23056 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
23057 * config/m32c/m32c.c (pragma_traits): Delete.
23058 (pragma_htab): Use nofree_string_hash as the first template parameter.
23059 (m32c_note_pragma_address): Update accordingly.
23060 * config/mep/mep.c (pragma_traits): Delete.
23061 (pragma_htab): Use nofree_string_hash as the first template parameter.
23062 (mep_note_pragma_flag): Update accordingly.
23063 * config/mips/mips.c (mips16_flip_traits): Delete.
23064 (mflip_mips16_htab): Use nofree_string_hash as the first template
23066 (mflip_mips16_use_mips16_p): Update accordingly.
23067 (local_alias_traits): Delete.
23068 (mips16_local_aliases): Use nofree_string_hash as the first template
23070 (mips16_local_alias): Update accordingly.
23072 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23074 * hash-map-traits.h (default_hashmap_traits): Delete.
23076 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23078 * hash-map-traits.h (unbounded_hashmap_traits): New class.
23079 (unbounded_int_hashmap_traits): Likewise.
23080 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
23082 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23084 * ipa-icf.h (symbol_compare_hash): New class.
23085 (symbol_compare_hashmap_traits): Use it.
23086 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
23087 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
23088 (mem_alloc_description::reverse_mem_map_t): Remove redundant
23089 default_hashmap_traits.
23090 * sanopt.c (sanopt_tree_triplet_hash): New class.
23091 (sanopt_tree_triplet_map_traits): Use it.
23093 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23095 * gengtype-parse.c (require_template_declaration): Allow '+' in
23096 template parameters. Consolidate cases.
23097 * hash-traits.h (int_hash): New class.
23098 * alias.c (alias_set_hash): New structure.
23099 (alias_set_traits): Use it.
23100 * symbol-summary.h (function_summary::map_hash): New class.
23101 (function_summary::summary_hashmap_traits): Use it.
23102 * tree-inline.h (dependence_hash): New class.
23103 (dependence_hasher): Use it.
23104 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
23105 * value-prof.c (profile_id_hash): New class.
23106 (profile_id_traits): Use it.
23108 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23110 * config/mips/mips.c (mips16_flip_traits): Use it.
23111 (local_alias_traits, mips16_local_aliases): Convert from a map of
23112 rtxes to a map of symbol names.
23113 (mips16_local_alias): Update accordingly.
23115 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23117 * hash-traits.h (string_hash, nofree_string_hash): New classes.
23118 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
23119 * passes.c (pass_registry_hasher): Likewise.
23120 * config/alpha/alpha.c (string_traits): Likewise.
23121 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
23122 * config/m32c/m32c.c (pragma_traits): Likewise.
23123 * config/mep/mep.c (pragma_traits): Likewise.
23125 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23127 * tree-hash-traits.h (tree_hash): New class.
23128 * except.c: Include tree-hash-traits.h.
23129 (tree_hash_traits): Use tree_hash.
23131 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23133 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
23134 * sese.c: Include tree-hash-traits.h.
23135 (rename_map_hasher): Use tree_ssa_name_hasher.
23137 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23139 * tree-hash-traits.h (tree_decl_hash): New class.
23140 * tree-ssa-strlen.c: Include tree-hash-traits.h.
23141 (stridxlist_hash_traits): Use tree_decl_hash.
23143 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23145 * tree-hash-traits.h: New file.
23146 (tree_operand_hash): New class.
23147 * sanopt.c: Include tree-hash-traits.h.
23148 (sanopt_tree_map_traits): Use tree_operand_hash.
23149 * tree-if-conv.c: Include tree-hash-traits.h.
23150 (phi_args_hash_traits): Use tree_operand_hash.
23151 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
23152 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
23154 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23156 * hash-map-traits.h: Include hash-traits.h.
23157 (simple_hashmap_traits): New class.
23158 * mem-stats.h (hash_map): Change the default traits to
23159 simple_hashmap_traits<default_hash_traits<Key> >.
23161 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23163 * hash-table.h: Update comments.
23165 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23167 * hash-traits.h (default_hash_traits): New structure.
23168 * hash-set.h (default_hashset_traits): Delete.
23169 (hash_set): Use default_hash_traits<Key> instead of
23170 default_hashset_traits. Delete hash_entry type and use Key directly.
23171 * ipa-devirt.c (pair_traits): Delete.
23172 (default_hash_traits <type_pair>): Override.
23173 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
23174 (odr_types_equivalent_p, add_type_duplicate): Likewise.
23176 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23178 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
23180 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23182 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
23183 (has_is_empty, is_empty_helper): Delete.
23184 (has_mark_deleted, mark_deleted_helper): Delete.
23185 (has_mark_empty, mark_empty_helper): Delete.
23186 (hash_table::is_deleted): Call the Descriptor unconditionally.
23187 (hash_table::is_empty): Likewise.
23188 (hash_table::mark_deleted): Likewise.
23189 (hash_table::mark_empty): Likewise.
23191 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23193 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
23194 redundant typedefs and members.
23195 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
23196 redundant typedefs.
23197 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
23198 * ipa-devirt.c (odr_name_hasher): Likewise.
23199 (polymorphic_call_target_hasher): Likewise.
23200 * ira-costs.c (cost_classes_hasher): Likewise.
23201 * statistics.c (stats_counter_hasher): Likewise.
23202 * trans-mem.c (log_entry_hasher): Likewise.
23203 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
23204 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
23205 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
23206 * var-tracking.c (variable_hasher): Likewise.
23207 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
23208 Remove redundant typedefs and members.
23210 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23212 * hash-traits.h (ggc_cache_hasher): Rename to...
23213 (ggc_cache_remove): ...this and remove typedefs.
23214 (ggc_cache_ptr_hash): New class.
23215 * hash-table.h: Update commentary.
23216 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
23217 rather than ggc_cache_hasher.
23218 (const_wide_int_hasher, reg_attr_hasher): Likewise.
23219 (const_double_hasher, const_fixed_hasher): Likewise.
23220 * function.c (insn_cache_hasher): Likewise.
23221 * trans-mem.c (tm_wrapper_hasher): Likewise.
23222 * tree.h (tree_decl_map_cache_hasher): Likewise.
23223 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
23224 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
23225 * ubsan.c (tree_type_map_cache_hasher): Likewise.
23226 * varasm.c (tm_clone_hasher): Likewise.
23227 * config/i386/i386.c (dllimport_hasher): Likewise.
23228 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
23229 (tree_hasher): Likewise.
23231 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23233 * hash-traits.h (ggc_hasher): Rename to...
23234 (ggc_remover): ...this and remove typedefs.
23235 (ggc_cache_hasher): Update accordingly. Add typedefs.
23236 (ggc_ptr_hash): New class.
23237 * hash-table.h: Update comment.
23238 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
23240 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
23241 (tree_descriptor_hasher): Likewise.
23242 * cgraph.c (function_version_hasher): Likewise.
23243 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
23244 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
23245 (dw_loc_list_hasher, addr_hasher): Likewise.
23246 * function.h (used_type_hasher): Likewise.
23247 * function.c (temp_address_hasher): Likewise.
23248 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
23249 * libfuncs.h (libfunc_hasher): Likewise.
23250 * lto-streamer.h (decl_state_hasher): Likewise.
23251 * optabs.c (libfunc_decl_hasher): Likewise.
23252 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
23253 * varasm.c (section_hasher, object_block_hasher): Likewise.
23254 (const_rtx_desc_hasher): Likewise.
23255 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
23256 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
23258 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23260 * hash-traits.h (free_ptr_hash): New class.
23261 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
23262 rather than typed_free_remove. Remove redudant typedefs.
23263 (external_ref_hasher): Likewise.
23264 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
23265 (ehspec_hasher): Likewise.
23266 * ggc-common.c (saving_hasher): Likewise.
23267 * gimplify.c (gimplify_hasher): Likewise.
23268 * haifa-sched.c (delay_i2_hasher): Likewise.
23269 * loop-invariant.c (invariant_expr_hasher): Likewise.
23270 * loop-iv.c (biv_entry_hasher): Likewise.
23271 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
23272 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
23273 * tree-cfg.c (locus_discrim_hasher): Likewise.
23274 * tree-eh.c (finally_tree_hasher): Likewise.
23275 * tree-into-ssa.c (var_info_hasher): Likewise.
23276 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
23277 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
23278 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
23279 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
23280 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
23281 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
23282 (shared_bitmap_hasher): Likewise.
23283 * tree-ssa-threadupdate.c (redirection_data): Likewise.
23284 * tree-vectorizer.h (peel_info_hasher): Likewise.
23285 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
23286 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
23288 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23290 * hash-table.h: Update comments.
23291 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
23292 (nofree_ptr_hash): New class.
23293 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
23294 than typed_noop_remove. Remove redudant typedefs.
23295 * attribs.c (attribute_hasher): Likewise.
23296 * cfg.c (bb_copy_hasher): Likewise.
23297 * cselib.c (cselib_hasher): Likewise.
23298 * dse.c (invariant_group_base_hasher): Likewise.
23299 * dwarf2cfi.c (trace_info_hasher): Likewise.
23300 * dwarf2out.c (macinfo_entry_hasher): Likewise.
23301 (comdat_type_hasher, loc_list_hasher): Likewise.
23302 * gcse.c (pre_ldst_expr_hasher): Likewise.
23303 * genmatch.c (id_base): Likewise.
23304 * genrecog.c (test_pattern_hasher): Likewise.
23305 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
23306 * haifa-sched.c (delay_i1_hasher): Likewise.
23307 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
23308 * ipa-icf.h (congruence_class_group_hash): Likewise.
23309 * ipa-profile.c (histogram_hash): Likewise.
23310 * ira-color.c (allocno_hard_regs_hasher): Likewise.
23311 * lto-streamer.h (string_slot_hasher): Likewise.
23312 * lto-streamer.c (tree_entry_hasher): Likewise.
23313 * plugin.c (event_hasher): Likewise.
23314 * postreload-gcse.c (expr_hasher): Likewise.
23315 * store-motion.c (st_expr_hasher): Likewise.
23316 * tree-sra.c (uid_decl_hasher): Likewise.
23317 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
23318 (ssa_name_var_hash): Likewise.
23319 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
23320 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
23321 * tree-ssa-pre.c (pre_expr_d): Likewise.
23322 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
23323 * vtable-verify.h (registration_hasher): Likewise.
23324 * vtable-verify.c (vtbl_map_hasher): Likewise.
23325 * config/arm/arm.c (libcall_hasher): Likewise.
23326 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
23327 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
23328 * config/sol2.c (comdat_entry_hasher): Likewise.
23329 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
23330 (print_fold_checksum, fold_checksum_tree): Likewise.
23331 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
23332 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
23333 (fold_build_call_array_loc): Likewise.
23334 * tree-ssa-ccp.c (gimple_htab): Likewise.
23335 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
23336 rather than pointer_type.
23338 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23340 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
23341 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
23343 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23345 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
23346 (ggc_hasher::ggc_mx): Likewise.
23347 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
23348 that duplicate ggc_hasher ones.
23350 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23352 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
23353 (gt_cleare_cache): Check here for deleted and empty entries.
23354 Replace handle_cache_entry with a call to keep_cache_entry.
23355 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
23356 (ggc_cache_hasher::keep_cache_entry): New function.
23357 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
23358 (tm_wrapper_hasher::keep_cache_entry): New function.
23359 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
23360 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
23361 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
23362 (type_cache_hasher::keep_cache_entry): New function.
23363 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
23364 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
23365 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
23366 (tree_type_map_cache_hasher::keep_cache_entry): New function.
23367 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
23368 (tm_clone_hasher::keep_cache_entry): New function.
23369 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
23370 (dllimport_hasher::keep_cache_entry): New function.
23372 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23374 * hash-table.h: Include hash-traits.h.
23375 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
23376 (ggc_cache_hasher): Move to...
23377 * hash-traits.h: ...this new file.
23379 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
23381 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
23382 struct cl_optimization.
23383 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
23384 * tree.c (make_node_stat): Allocate cl_optimization struct.
23385 (copy_node_stat): Allocate and copy cl_optimization struct.
23387 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
23389 * function.h (struct incoming_args): Move struct.
23390 (pass_by_reference, reference_callee_copied): Remove prototypes.
23391 * emit-rtl.h (struct incoming_args): Relocate struct here.
23392 * calls.h (pass_by_reference, reference_callee_copied): Relocate
23394 * function.c (pass_by_reference, reference_callee_copied): Move.
23395 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
23396 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
23397 * ipa-chkp.c: Include calls.h.
23399 2015-06-25 Andrew Macleod <amacleod@redhat.com>
23401 * alias.h (alias_set_type): Move typedef.
23402 * coretypes.h (alias_set_type): Relocate typedef here.
23403 * rtl.h: Don't include alias.h.
23405 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
23407 * cgraph.h (cgraph_rtl_info): Move to rtl.h
23408 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
23410 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
23411 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
23413 * calls.c: Include hard-reg-set.h before rtl.h.
23416 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
23417 Vladimir Makarov <vmakarov@redhat.com>
23419 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
23422 2015-06-25 Richard Biener <rguenther@suse.de>
23424 * fold-const.c (fold_binary_loc): Move simplification of
23425 (X <<>> C1) & C2 ...
23426 * match.pd: ... here.
23428 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
23430 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
23432 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23434 * match.pd: Add patterns for vec_conds between 1 and 0.
23436 2015-06-25 Richard Biener <rguenther@suse.de>
23438 * tree-vect-stmts.c (vectorizable_conversion): Do not set
23439 STMT_VINFO_VEC_STMT for SLP.
23440 (vectorizable_store): Likewise.
23441 (vectorizable_load): Likewise.
23442 (vect_transform_stmt): Catch SLP vectorization clobbering
23443 STMT_VINFO_VEC_STMT.
23445 2015-06-25 Richard Biener <rguenther@suse.de>
23447 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
23449 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
23450 cleanup resulting dead code and parameters.
23451 (vect_transform_slp_perm_load): Adjust.
23453 2015-06-25 Nick Clifton <nickc@redhat.com>
23455 * config/bfin/bfin.c (bfin_expand_prologue): Set
23456 current_function_static_stack_size if flag_stack_usage_info is set.
23457 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
23458 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
23459 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
23460 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
23462 2015-06-25 Tom de Vries <tom@codesourcery.com>
23464 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
23465 comment that the generated IV is unsigned.
23467 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23470 * config/arm/arm.c (arm_dbx_register_number): Return
23471 DWARF_FRAME_REGISTERS by default.
23473 2015-06-25 Tom de Vries <tom@codesourcery.com>
23475 * dominance.c (calculate_dominance_info): Fix verify_dominators call
23476 argument. Call verify_dominator when reusing dominator info.
23478 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
23481 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
23482 an additional element of the unspec vector. Modify indices
23484 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
23485 * config/sh/sh.c (prepare_move_operands): Pass incremented
23486 const_int to gen_GOTaddr2picreg.
23487 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
23489 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
23491 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
23492 Condition on TARGET_FLOAT.
23494 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
23496 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
23499 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
23501 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
23503 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
23504 aarch64_err_no_fpadvsimd.
23506 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
23507 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
23508 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
23509 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
23510 Turn error into assert, test TARGET_FLOAT.
23511 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
23514 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
23517 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
23519 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
23521 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
23523 2015-06-24 Renlin Li <renlin.li@arm.com>
23525 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
23526 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
23528 2015-06-24 Richard Biener <rguenther@suse.de>
23530 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
23532 (lower_opt_convert): Support lowering of conditional view_convert.
23533 (parser::parse_operation): Likewise.
23534 (parser::parse_for): Likewise.
23536 2015-06-24 Renlin Li <renlin.li@arm.com>
23538 * varasm.c (emit_local): Use unsigned int for align variable.
23540 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23543 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
23544 for negative numbers.
23546 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23548 PR rtl-optimization/66306
23549 * reload.c (find_reloads): Swap the match_dup info for
23550 commutative operands.
23552 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23554 * config/s390/vx-builtins.md
23555 ("vec_scatter_element<mode>_<non_vec_int>")
23556 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
23557 attribute with bhfgq.
23559 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23561 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
23563 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23565 * config/s390/s390-builtin-types.def: Add flag to indicate the
23566 options under which the function type is needed.
23567 * config/s390/s390-builtins.def: Add flag to indicate the options
23568 under which the builtin is enabled.
23569 * config/s390/s390-builtins.h: Add flags parameter to macro
23571 (bflags_for_builtin): New function.
23572 (flags_for_builtin): Renamed to ...
23573 (opflags_for_builtin): ... this.
23574 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
23575 flags_for_builtin to bflags_for_builtin and
23576 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
23577 * config/s390/s390.c: Add initialization of bflags_builtin and
23578 opflags_builtin arrays.
23579 Remove code for flags_builtin.
23580 (s390_init_builtins): Only create builtin function types if one of
23581 their flags is active.
23582 Only create builtins if all of their flags are active.
23583 (s390_expand_builtin): Rename flags_for_builtin to
23584 opflags_for_builtin.
23586 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23588 * config/s390/vecintrin.h: Remove internal builtins.
23590 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23592 * config/s390/s390.c (s390_secondary_reload): Fix check for
23593 GENERAL_REGS register class.
23595 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23597 * config/s390/s390.c (s390_support_vector_misalignment): Call
23598 default implementation for !TARGET_VX.
23600 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23602 * config/s390/s390.c (s390_legitimate_constant_p): Add
23605 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23607 * config/s390/s390.c (s390_vector_abi): New variable definition.
23608 (s390_check_type_for_vector_abi): New function.
23609 (TARGET_ASM_FILE_END): New macro definition.
23610 (s390_asm_file_end): New function.
23611 (s390_function_arg): Call s390_check_type_for_vector_abi.
23612 (s390_gimplify_va_arg): Likewise.
23613 * configure: Regenerate.
23614 * configure.ac: Check for .gnu_attribute Binutils feature.
23616 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
23619 * config/bfin/bfin.c (hwloop_optimize): Initialize
23620 JUMP_LABEL for newly created jump.
23622 2015-06-23 Tristan Gingold <gingold@adacore.com>
23624 * collect-utils.c (collect_wait): Unlink the response file here
23626 (do_wait): ...here.
23627 (utils_cleanup): ...and here.
23629 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
23631 * df-scan.c: Don't include target-def.h.
23632 * targhooks.c: Likewise.
23633 * config/arm/arm-c.c: Likewise.
23634 * config/i386/i386-c.c: Likewise.
23635 * config/nds32/nds32-cost.c: Likewise.
23636 * config/nds32/nds32-fp-as-gp.c: Likewise.
23637 * config/nds32/nds32-intrinsic.c: Likewise.
23638 * config/nds32/nds32-isr.c: Likewise.
23639 * config/nds32/nds32-md-auxiliary.c: Likewise.
23640 * config/nds32/nds32-memory-manipulation.c: Likewise.
23641 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
23642 * config/nds32/nds32-predicates.c: Likewise.
23644 2015-06-23 Richard Biener <rguenther@suse.de>
23646 PR tree-optimization/66636
23647 * tree-vect-stmts.c (vectorizable_store): Properly compute the
23648 def type for further defs for strided stores.
23650 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
23652 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
23653 conditional selects.
23654 (setcc_int<mode>, setcc_float<mode>): Reformat.
23656 2015-06-23 Marek Polacek <polacek@redhat.com>
23658 * match.pd ((x + y) - (x | y) -> x & y,
23659 (x + y) - (x & y) -> x | y): New patterns.
23661 2015-06-23 Ludovic Courtès <ludo@gnu.org>
23664 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
23665 '-dynamic-linker' within %{!shared: ...}.
23667 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
23670 * config/i386/predicates.md (addsub_vm_operator): New predicate.
23671 (addsub_vs_operator): Ditto.
23672 (addsub_vs_parallel): Ditto.
23673 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
23674 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
23675 Put minus RTX before plus and adjust vec_merge selector.
23676 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
23677 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
23678 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
23679 (addsub vec_merge splitters): New combiner splitters.
23680 (addsub vec_select/vec_concat splitters): Ditto.
23682 2015-06-23 Bin Cheng <bin.cheng@arm.com>
23684 PR tree-optimization/66449
23685 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
23686 POINTER_PLUS_EXPR for pointers.
23688 2015-06-23 Alan Modra <amodra@gmail.com>
23690 * rtlanal.c (commutative_operand_precedence): Correct comments.
23691 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
23692 declaration. Return an int. Distinguish REG,REG return from
23694 (struct simplify_plus_minus_op_data): Make local to function.
23695 (simplify_plus_minus): Don't set canonicalized if merely sorting
23696 registers. Avoid packing ops if nothing changes. White space fixes.
23698 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
23700 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
23701 -fdump-ada-spec is passed but not if -fsyntax-only is.
23703 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
23706 * lra-lives.c (process_bb_lives): Check insn copying the same
23707 reload pseudo and don't create a copy for it.
23709 2015-06-22 Tom de Vries <tom@codesourcery.com>
23711 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
23714 2015-06-22 Tom de Vries <tom@codesourcery.com>
23716 * builtins.def (DEF_GOMP_BUILTIN): Test
23717 'flag_tree_parallelize_loops > 1' instead of
23718 'flag_tree_parallelize_loops'. Test flag_cilkplus.
23720 2015-06-22 Tom de Vries <tom@codesourcery.com>
23722 * dominance.c (calculate_dominance_info): Verify dominators if
23725 2015-06-22 Marek Polacek <polacek@redhat.com>
23727 * match.pd ((x ^ y) ^ (x | y) -> x & y,
23728 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
23729 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
23730 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
23732 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
23735 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
23736 cost of embedded comparison.
23738 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23741 * config/rs6000/predicates.md (altivec_register_operand): Permit
23742 virtual stack registers.
23743 (vsx_register_operand): Likewise.
23744 (vfloat_operand): Likewise.
23745 (vint_operand): Likewise.
23746 (vlogical_operand): Likewise.
23748 2015-06-22 Richard Biener <rguenther@suse.de>
23750 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
23751 and single_scalar_iteration_cost members.
23752 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
23753 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
23754 (vect_get_single_scalar_iteration_cost): Remove.
23755 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
23756 Use LOOP_VINFO_SCALAR_ITERATION_COST.
23757 * tree-vect-loop.c (destroy_loop_vec_info): Free
23759 (vect_get_single_scalar_iteration_cost): Compute result into
23760 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
23761 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
23762 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
23763 (vect_estimate_min_profitable_iters): Use them.
23765 2015-06-22 Christian Bruel <christian.bruel@st.com>
23768 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
23769 (TARGET_INSERT_ATTRIBUTES): Define.
23770 (thumb_flipper): New var.
23771 * config/arm/arm.opt (-mflip-thumb): New switch.
23773 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
23774 Martin Liska <mliska@suse.cz>
23777 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
23778 construction of arg_types.
23779 (sem_function::sem_function): Likewise.
23780 (sem_function::~sem_function): Remove destruction of arg_types.
23781 (sem_function::compatible_parm_types_p): New function.
23782 (sem_function::equals_wpa): Reorg matching of return values
23783 and parameter types.
23784 (sem_function::equals_private): Reorg mathcing of argument types.
23785 (sem_function::parse_tree_args): Remove.
23786 * ipa-icf.h (init_wpa): Do not call it.
23787 (parse_tree_args): Remove.
23788 (compatible_parm_types_p): Declare.
23789 (result_type): Remove.
23790 (arg_types): Remove.
23792 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
23795 * ipa-polymorphic-call.c
23796 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
23797 initializing alias oracle; fix formating; set base_alias_set if it
23800 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
23802 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
23803 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
23804 (find_inc): Likewise.
23805 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
23807 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
23808 * df-scan.c (df_swap_refs): Remove.
23809 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
23810 * dominance.c (link_roots): Use std::swap instead of manually swapping.
23811 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
23812 * fold-const.c (fold_relational_const): Likewise.
23813 * genattrtab.c (simplify_test_exp): Likewise.
23814 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
23815 gimple_simplify): Likewise.
23816 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
23817 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
23818 * ipa-devirt.c (add_type_duplicate): Likewise.
23819 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
23820 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
23821 * lra.c (lra_create_copy): Likewise.
23822 * lto-streamer-out.c (DFS::DFS): Likewise.
23823 * modulo-sched.c (get_sched_window): Likewise.
23824 * omega.c (omega_pretty_print_problem): Likewise.
23825 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
23826 * reload1.c (reloads_unique_chain_p): Likewise.
23827 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
23828 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
23830 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
23832 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
23833 predicate_mem_writes): Likewise.
23834 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
23835 * tree-predcom.c (combine_chains): Likewise.
23836 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
23837 refs_may_alias_p_1): Likewise.
23838 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
23839 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
23840 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
23841 number_of_iterations_cond): Likewise.
23842 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
23843 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
23844 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
23845 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
23846 * tree-vrp.c (extract_range_from_binary_expr_1,
23847 extract_range_from_unary_expr_1): Likewise.
23849 2015-06-20 Marek Polacek <polacek@redhat.com>
23851 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
23853 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
23856 * config/sh/sh.c (prepare_move_operands): Replace subreg
23857 index term with R0 for base and index addressing.
23859 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
23861 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
23863 (movsf_aarch64): Change condition from register_operand to
23864 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
23865 load1. Change type for alternative 7 to store1.
23866 (movdf_aarch64): Likewise.
23868 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
23870 * config/vax/vax.md: Adjust sign/zero extend patterns to
23871 handle SUBREGs in operands[1].
23873 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23875 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
23876 of manually swapping.
23877 (expand_vec_perm_interleave2): Likewise.
23879 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
23881 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
23882 reuse bounds created for abnormal ssa names.
23884 2015-06-19 Jakub Jelinek <jakub@redhat.com>
23886 * config/nvptx/nvptx.md (allocate_stack): Rename to...
23887 (allocate_stack_<mode>): ... this, and add :P on both
23888 match_operand and unspec.
23889 (allocate_stack): New expander.
23891 2015-06-19 Christian Bruel <christian.bruel@st.com>
23895 * config/arm/arm.c (arm_set_current_function): Handle
23896 explicit default options.
23898 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
23900 * config/i386/i386.md (*movsicc_noc_zext): New insn.
23901 (zero-extended cmove with mem peephole2): New pattern.
23902 (cmove with mem peephole2): Merge patterns.
23904 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
23906 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
23908 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
23910 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
23911 * config/mips/mips.md (*madd4<mode>): Ditto.
23912 (*nmadd3<mode>) Ditto.
23913 (*nmadd4<mode>_fastmath): Ditto.
23914 (*nmadd3<mode>_fastmath): Ditto.
23915 (*nmsub4<mode>): Ditto.
23916 (*nmsub3<mode>): Ditto.
23917 (*nmsub4<mode>_fastmath): Ditto.
23918 (*nmsub3<mode>_fastmath): Ditto.
23920 2015-06-18 Michael Matz <matz@suse.de>
23922 PR middle-end/66253
23923 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
23924 grouped strided stores.
23925 (vectorizable_load): Don't use the DR from first_stmt in
23926 the non-SLP grouped strided case.
23928 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
23931 * function.c (assign_bounds): Add arguments assign_regs,
23932 assign_special, assign_bt.
23933 (assign_parms): For vararg functions handle bounds in BT
23934 and special slots after incoming vararg bounds.
23936 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
23938 PR middle-end/66568
23939 * cfgexpand.c (expand_return): Handle missing bounds.
23940 (expand_gimple_stmt_1): Likewise.
23941 * tree-chkp.c (chkp_expand_zero_bounds): New.
23942 * tree-chkp.h (chkp_expand_zero_bounds): New.
23944 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
23946 PR middle-end/66567
23947 * ipa-chkp.c (chkp_maybe_create_clone): Require
23948 functions to be instrumentable.
23949 * tree-chkp.c (chkp_replace_function_pointer): Use
23950 chkp_instrumentable_p instead of attribute check.
23952 2015-06-18 Richard Biener <rguenther@suse.de>
23954 PR tree-optimization/66510
23955 * tree-vect-stmts.c (vectorizable_load): Properly compute the
23956 number of vector loads for SLP permuted loads.
23957 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
23958 check the stride for loop vectorization.
23959 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
23960 vectorization factor.
23961 (vect_analyze_group_access): If the group size is not a power
23962 of two require a epilogue loop.
23963 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
23964 compute and optimizing and alias test pruning after final
23965 vectorization factor computation.
23966 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
23968 (vect_transform_slp_perm_load): Properly compute the original
23969 number of vector load stmts.
23971 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
23973 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
23974 "unlikely character , in @var" warning.
23976 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
23978 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
23979 (ix86_function_arg_advance): Ditto.
23980 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
23982 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
23984 * function.h (struct rtl_data): Remove struct and accessor macros.
23985 * emit-rtl.h (struct rtl_data): Relocate to here.
23986 * Makefile.in (GTFILES): Add emit-rtl.h.
23987 * df-core.c: Include emit-rtl.h.
23988 * genattrtab.c: Likewise.
23989 * genconditions.c: Likewise.
23990 * genpreds.c: Likewise.
23991 * genrecog.c: Likewise.
23992 * regcprop.c: Likewise.
23993 * resource.c: Likewise.
23994 * sched-rgn.c: Likewise.
23995 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
23996 * config/i386/winnt.c: Likewise.
23998 2015-06-17 Jakub Jelinek <jakub@redhat.com>
24000 PR middle-end/66429
24001 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
24002 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
24003 and has_force_vectorize_loops flags from cfun into
24005 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
24006 if simduid is non-NULL.
24007 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
24008 * passes.def (pass_simduid_cleanup): Add new pass after loop
24010 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
24011 indirection from htab argument's type.
24012 (shrink_simd_arrays): New function.
24013 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
24014 Don't call adjust_simduid_builtins if there are no loops.
24015 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
24016 (pass_simduid_cleanup::execute): New method.
24017 (make_pass_simduid_cleanup): New function.
24019 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
24021 * tree-core.h (tree_target_option): Make opts field a pointer to a
24022 cl_target_option instead of an instance of the struct.
24023 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
24025 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
24026 TARGET_OPTION_NODE.
24027 (copy_node_stat): Allocate and copy struct cl_target_option.
24029 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
24031 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
24032 Remove conditional exposure of prototypes.
24033 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
24034 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
24035 definitions in tree.h with functions.
24036 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
24038 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
24040 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
24042 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
24043 (*cmp<mode>_signed): ... this.
24044 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
24045 (*cmp<mode>_unsigned): ... this. Remove %b.
24047 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
24049 * coretypes.h: Include input.h and as-a.h.
24050 * rtl.h: Include input.h and as-a.h for generator files.
24051 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
24052 * vec.c: Don't include diagnostic-core.h.
24053 * alias.c: Do not include input.h, line-map.h or is-a.h.
24054 * asan.c: Likewise.
24055 * attribs.c: Likewise.
24056 * auto-inc-dec.c: Likewise.
24057 * auto-profile.c: Likewise.
24058 * bb-reorder.c: Likewise.
24059 * bt-load.c: Likewise.
24060 * builtins.c: Likewise.
24061 * caller-save.c: Likewise.
24062 * calls.c: Likewise.
24063 * ccmp.c: Likewise.
24065 * cfganal.c: Likewise.
24066 * cfgbuild.c: Likewise.
24067 * cfgcleanup.c: Likewise.
24068 * cfgexpand.c: Likewise.
24069 * cfghooks.c: Likewise.
24070 * cfgloop.c: Likewise.
24071 * cfgloop.h: Likewise.
24072 * cfgloopanal.c: Likewise.
24073 * cfgloopmanip.c: Likewise.
24074 * cfgrtl.c: Likewise.
24075 * cgraph.c: Likewise.
24076 * cgraphbuild.c: Likewise.
24077 * cgraphclones.c: Likewise.
24078 * cgraphunit.c: Likewise.
24079 * cilk-common.c: Likewise.
24080 * combine-stack-adj.c: Likewise.
24081 * combine.c: Likewise.
24082 * compare-elim.c: Likewise.
24083 * convert.c: Likewise.
24084 * coverage.c: Likewise.
24085 * cppbuiltin.c: Likewise.
24086 * cprop.c: Likewise.
24088 * cselib.c: Likewise.
24089 * data-streamer-in.c: Likewise.
24090 * data-streamer-out.c: Likewise.
24091 * data-streamer.c: Likewise.
24092 * dbxout.c: Likewise.
24095 * debug.c: Likewise.
24096 * df-core.c: Likewise.
24097 * df-problems.c: Likewise.
24098 * df-scan.c: Likewise.
24101 * diagnostic-core.h: Likewise.
24102 * diagnostic.c: Likewise.
24103 * dojump.c: Likewise.
24104 * dominance.c: Likewise.
24105 * domwalk.c: Likewise.
24106 * double-int.c: Likewise.
24108 * dumpfile.c: Likewise.
24109 * dumpfile.h: Likewise.
24110 * dwarf2asm.c: Likewise.
24111 * dwarf2cfi.c: Likewise.
24112 * dwarf2out.c: Likewise.
24113 * emit-rtl.c: Likewise.
24114 * et-forest.c: Likewise.
24115 * except.c: Likewise.
24116 * explow.c: Likewise.
24117 * expmed.c: Likewise.
24118 * expr.c: Likewise.
24119 * final.c: Likewise.
24120 * fixed-value.c: Likewise.
24121 * fold-const.c: Likewise.
24122 * function.c: Likewise.
24123 * fwprop.c: Likewise.
24124 * gcc-plugin.h: Likewise.
24125 * gcse.c: Likewise.
24126 * generic-match-head.c: Likewise.
24127 * ggc-page.c: Likewise.
24128 * gimple-builder.c: Likewise.
24129 * gimple-expr.c: Likewise.
24130 * gimple-fold.c: Likewise.
24131 * gimple-iterator.c: Likewise.
24132 * gimple-low.c: Likewise.
24133 * gimple-match-head.c: Likewise.
24134 * gimple-pretty-print.c: Likewise.
24135 * gimple-ssa-isolate-paths.c: Likewise.
24136 * gimple-ssa-strength-reduction.c: Likewise.
24137 * gimple-streamer-in.c: Likewise.
24138 * gimple-streamer-out.c: Likewise.
24139 * gimple-streamer.h: Likewise.
24140 * gimple-walk.c: Likewise.
24141 * gimple.c: Likewise.
24142 * gimplify-me.c: Likewise.
24143 * gimplify.c: Likewise.
24144 * godump.c: Likewise.
24145 * graph.c: Likewise.
24146 * graphite-blocking.c: Likewise.
24147 * graphite-dependences.c: Likewise.
24148 * graphite-interchange.c: Likewise.
24149 * graphite-isl-ast-to-gimple.c: Likewise.
24150 * graphite-optimize-isl.c: Likewise.
24151 * graphite-poly.c: Likewise.
24152 * graphite-scop-detection.c: Likewise.
24153 * graphite-sese-to-poly.c: Likewise.
24154 * graphite.c: Likewise.
24155 * haifa-sched.c: Likewise.
24156 * hw-doloop.c: Likewise.
24157 * ifcvt.c: Likewise.
24158 * init-regs.c: Likewise.
24159 * input.c: Likewise.
24160 * internal-fn.c: Likewise.
24161 * ipa-chkp.c: Likewise.
24162 * ipa-comdats.c: Likewise.
24163 * ipa-cp.c: Likewise.
24164 * ipa-devirt.c: Likewise.
24165 * ipa-icf-gimple.c: Likewise.
24166 * ipa-icf.c: Likewise.
24167 * ipa-inline-analysis.c: Likewise.
24168 * ipa-inline-transform.c: Likewise.
24169 * ipa-inline.c: Likewise.
24170 * ipa-polymorphic-call.c: Likewise.
24171 * ipa-profile.c: Likewise.
24172 * ipa-prop.c: Likewise.
24173 * ipa-pure-const.c: Likewise.
24174 * ipa-ref.c: Likewise.
24175 * ipa-reference.c: Likewise.
24176 * ipa-split.c: Likewise.
24177 * ipa-utils.c: Likewise.
24178 * ipa-visibility.c: Likewise.
24180 * ira-build.c: Likewise.
24181 * ira-color.c: Likewise.
24182 * ira-conflicts.c: Likewise.
24183 * ira-costs.c: Likewise.
24184 * ira-emit.c: Likewise.
24185 * ira-lives.c: Likewise.
24187 * jump.c: Likewise.
24188 * langhooks.c: Likewise.
24190 * loop-doloop.c: Likewise.
24191 * loop-init.c: Likewise.
24192 * loop-invariant.c: Likewise.
24193 * loop-iv.c: Likewise.
24194 * loop-unroll.c: Likewise.
24195 * lower-subreg.c: Likewise.
24196 * lra-assigns.c: Likewise.
24197 * lra-coalesce.c: Likewise.
24198 * lra-constraints.c: Likewise.
24199 * lra-eliminations.c: Likewise.
24200 * lra-lives.c: Likewise.
24201 * lra-remat.c: Likewise.
24202 * lra-spills.c: Likewise.
24204 * lto-cgraph.c: Likewise.
24205 * lto-compress.c: Likewise.
24206 * lto-opts.c: Likewise.
24207 * lto-section-in.c: Likewise.
24208 * lto-section-out.c: Likewise.
24209 * lto-streamer-in.c: Likewise.
24210 * lto-streamer-out.c: Likewise.
24211 * lto-streamer.c: Likewise.
24213 * mode-switching.c: Likewise.
24214 * modulo-sched.c: Likewise.
24215 * omega.c: Likewise.
24216 * omp-low.c: Likewise.
24217 * optabs.c: Likewise.
24218 * opts-global.c: Likewise.
24219 * opts.h: Likewise.
24220 * passes.c: Likewise.
24221 * plugin.c: Likewise.
24222 * postreload-gcse.c: Likewise.
24223 * postreload.c: Likewise.
24224 * predict.c: Likewise.
24225 * pretty-print.h: Likewise.
24226 * print-rtl.c: Likewise.
24227 * print-tree.c: Likewise.
24228 * profile.c: Likewise.
24229 * real.c: Likewise.
24230 * realmpfr.c: Likewise.
24231 * recog.c: Likewise.
24233 * reg-stack.c: Likewise.
24234 * regcprop.c: Likewise.
24235 * reginfo.c: Likewise.
24236 * regrename.c: Likewise.
24237 * regstat.c: Likewise.
24238 * reload.c: Likewise.
24239 * reload1.c: Likewise.
24240 * reorg.c: Likewise.
24241 * resource.c: Likewise.
24242 * rtl-chkp.c: Likewise.
24243 * rtl-error.c: Likewise.
24244 * rtlanal.c: Likewise.
24245 * rtlhooks.c: Likewise.
24246 * sanopt.c: Likewise.
24247 * sched-deps.c: Likewise.
24248 * sched-ebb.c: Likewise.
24249 * sched-rgn.c: Likewise.
24250 * sched-vis.c: Likewise.
24251 * sdbout.c: Likewise.
24252 * sel-sched-dump.c: Likewise.
24253 * sel-sched-ir.c: Likewise.
24254 * sel-sched.c: Likewise.
24255 * sese.c: Likewise.
24256 * shrink-wrap.c: Likewise.
24257 * simplify-rtx.c: Likewise.
24258 * stack-ptr-mod.c: Likewise.
24259 * statistics.c: Likewise.
24260 * stmt.c: Likewise.
24261 * stor-layout.c: Likewise.
24262 * store-motion.c: Likewise.
24263 * streamer-hooks.c: Likewise.
24264 * stringpool.c: Likewise.
24265 * symtab.c: Likewise.
24266 * target-globals.c: Likewise.
24267 * targhooks.c: Likewise.
24268 * toplev.c: Likewise.
24269 * tracer.c: Likewise.
24270 * trans-mem.c: Likewise.
24271 * tree-affine.c: Likewise.
24272 * tree-browser.c: Likewise.
24273 * tree-call-cdce.c: Likewise.
24274 * tree-cfg.c: Likewise.
24275 * tree-cfgcleanup.c: Likewise.
24276 * tree-chkp-opt.c: Likewise.
24277 * tree-chkp.c: Likewise.
24278 * tree-chrec.c: Likewise.
24279 * tree-complex.c: Likewise.
24280 * tree-data-ref.c: Likewise.
24281 * tree-dfa.c: Likewise.
24282 * tree-diagnostic.c: Likewise.
24283 * tree-dump.c: Likewise.
24284 * tree-eh.c: Likewise.
24285 * tree-emutls.c: Likewise.
24286 * tree-if-conv.c: Likewise.
24287 * tree-inline.c: Likewise.
24288 * tree-into-ssa.c: Likewise.
24289 * tree-iterator.c: Likewise.
24290 * tree-loop-distribution.c: Likewise.
24291 * tree-nested.c: Likewise.
24292 * tree-nrv.c: Likewise.
24293 * tree-object-size.c: Likewise.
24294 * tree-outof-ssa.c: Likewise.
24295 * tree-parloops.c: Likewise.
24296 * tree-phinodes.c: Likewise.
24297 * tree-predcom.c: Likewise.
24298 * tree-pretty-print.c: Likewise.
24299 * tree-profile.c: Likewise.
24300 * tree-scalar-evolution.c: Likewise.
24301 * tree-sra.c: Likewise.
24302 * tree-ssa-address.c: Likewise.
24303 * tree-ssa-alias.c: Likewise.
24304 * tree-ssa-ccp.c: Likewise.
24305 * tree-ssa-coalesce.c: Likewise.
24306 * tree-ssa-copy.c: Likewise.
24307 * tree-ssa-copyrename.c: Likewise.
24308 * tree-ssa-dce.c: Likewise.
24309 * tree-ssa-dom.c: Likewise.
24310 * tree-ssa-dse.c: Likewise.
24311 * tree-ssa-forwprop.c: Likewise.
24312 * tree-ssa-ifcombine.c: Likewise.
24313 * tree-ssa-live.c: Likewise.
24314 * tree-ssa-loop-ch.c: Likewise.
24315 * tree-ssa-loop-im.c: Likewise.
24316 * tree-ssa-loop-ivcanon.c: Likewise.
24317 * tree-ssa-loop-ivopts.c: Likewise.
24318 * tree-ssa-loop-manip.c: Likewise.
24319 * tree-ssa-loop-niter.c: Likewise.
24320 * tree-ssa-loop-prefetch.c: Likewise.
24321 * tree-ssa-loop-unswitch.c: Likewise.
24322 * tree-ssa-loop.c: Likewise.
24323 * tree-ssa-math-opts.c: Likewise.
24324 * tree-ssa-operands.c: Likewise.
24325 * tree-ssa-phiopt.c: Likewise.
24326 * tree-ssa-phiprop.c: Likewise.
24327 * tree-ssa-pre.c: Likewise.
24328 * tree-ssa-propagate.c: Likewise.
24329 * tree-ssa-reassoc.c: Likewise.
24330 * tree-ssa-sccvn.c: Likewise.
24331 * tree-ssa-scopedtables.c: Likewise.
24332 * tree-ssa-sink.c: Likewise.
24333 * tree-ssa-strlen.c: Likewise.
24334 * tree-ssa-structalias.c: Likewise.
24335 * tree-ssa-tail-merge.c: Likewise.
24336 * tree-ssa-ter.c: Likewise.
24337 * tree-ssa-threadedge.c: Likewise.
24338 * tree-ssa-threadupdate.c: Likewise.
24339 * tree-ssa-uncprop.c: Likewise.
24340 * tree-ssa-uninit.c: Likewise.
24341 * tree-ssa.c: Likewise.
24342 * tree-ssanames.c: Likewise.
24343 * tree-stdarg.c: Likewise.
24344 * tree-streamer-in.c: Likewise.
24345 * tree-streamer-out.c: Likewise.
24346 * tree-streamer.c: Likewise.
24347 * tree-switch-conversion.c: Likewise.
24348 * tree-tailcall.c: Likewise.
24349 * tree-vect-data-refs.c: Likewise.
24350 * tree-vect-generic.c: Likewise.
24351 * tree-vect-loop-manip.c: Likewise.
24352 * tree-vect-loop.c: Likewise.
24353 * tree-vect-patterns.c: Likewise.
24354 * tree-vect-slp.c: Likewise.
24355 * tree-vect-stmts.c: Likewise.
24356 * tree-vectorizer.c: Likewise.
24357 * tree-vrp.c: Likewise.
24358 * tree.c: Likewise.
24359 * tsan.c: Likewise.
24360 * ubsan.c: Likewise.
24361 * valtrack.c: Likewise.
24362 * value-prof.c: Likewise.
24363 * var-tracking.c: Likewise.
24364 * varasm.c: Likewise.
24365 * varpool.c: Likewise.
24366 * vmsdbgout.c: Likewise.
24367 * vtable-verify.c: Likewise.
24369 * wide-int.cc: Likewise.
24370 * xcoffout.c: Likewise.
24371 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
24372 * common/common-targhooks.c: Likewise.
24373 * config/aarch64/aarch64-builtins.c: Likewise.
24374 * config/aarch64/aarch64.c: Likewise.
24375 * config/alpha/alpha.c: Likewise.
24376 * config/arc/arc.c: Likewise.
24377 * config/arm/aarch-common.c: Likewise.
24378 * config/arm/arm-builtins.c: Likewise.
24379 * config/arm/arm-c.c: Likewise.
24380 * config/arm/arm.c: Likewise.
24381 * config/avr/avr-c.c: Likewise.
24382 * config/avr/avr-log.c: Likewise.
24383 * config/avr/avr.c: Likewise.
24384 * config/bfin/bfin.c: Likewise.
24385 * config/c6x/c6x.c: Likewise.
24386 * config/cr16/cr16.c: Likewise.
24387 * config/cris/cris.c: Likewise.
24388 * config/darwin-c.c: Likewise.
24389 * config/darwin.c: Likewise.
24390 * config/default-c.c: Likewise.
24391 * config/epiphany/epiphany.c: Likewise.
24392 * config/epiphany/mode-switch-use.c: Likewise.
24393 * config/epiphany/resolve-sw-modes.c: Likewise.
24394 * config/fr30/fr30.c: Likewise.
24395 * config/frv/frv.c: Likewise.
24396 * config/ft32/ft32.c: Likewise.
24397 * config/glibc-c.c: Likewise.
24398 * config/h8300/h8300.c: Likewise.
24399 * config/i386/i386-c.c: Likewise.
24400 * config/i386/i386.c: Likewise.
24401 * config/i386/msformat-c.c: Likewise.
24402 * config/i386/winnt-cxx.c: Likewise.
24403 * config/i386/winnt-stubs.c: Likewise.
24404 * config/i386/winnt.c: Likewise.
24405 * config/ia64/ia64-c.c: Likewise.
24406 * config/ia64/ia64.c: Likewise.
24407 * config/iq2000/iq2000.c: Likewise.
24408 * config/lm32/lm32.c: Likewise.
24409 * config/m32c/m32c-pragma.c: Likewise.
24410 * config/m32c/m32c.c: Likewise.
24411 * config/m32r/m32r.c: Likewise.
24412 * config/m68k/m68k.c: Likewise.
24413 * config/mcore/mcore.c: Likewise.
24414 * config/mep/mep-pragma.c: Likewise.
24415 * config/mep/mep.c: Likewise.
24416 * config/microblaze/microblaze-c.c: Likewise.
24417 * config/microblaze/microblaze.c: Likewise.
24418 * config/mips/mips.c: Likewise.
24419 * config/mmix/mmix.c: Likewise.
24420 * config/mn10300/mn10300.c: Likewise.
24421 * config/moxie/moxie.c: Likewise.
24422 * config/msp430/msp430-c.c: Likewise.
24423 * config/msp430/msp430.c: Likewise.
24424 * config/nds32/nds32-cost.c: Likewise.
24425 * config/nds32/nds32-fp-as-gp.c: Likewise.
24426 * config/nds32/nds32-intrinsic.c: Likewise.
24427 * config/nds32/nds32-isr.c: Likewise.
24428 * config/nds32/nds32-md-auxiliary.c: Likewise.
24429 * config/nds32/nds32-memory-manipulation.c: Likewise.
24430 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
24431 * config/nds32/nds32-predicates.c: Likewise.
24432 * config/nds32/nds32.c: Likewise.
24433 * config/nios2/nios2.c: Likewise.
24434 * config/nvptx/nvptx.c: Likewise.
24435 * config/pa/pa.c: Likewise.
24436 * config/pdp11/pdp11.c: Likewise.
24437 * config/rl78/rl78-c.c: Likewise.
24438 * config/rl78/rl78.c: Likewise.
24439 * config/rs6000/rs6000-c.c: Likewise.
24440 * config/rs6000/rs6000.c: Likewise.
24441 * config/rx/rx.c: Likewise.
24442 * config/s390/s390-c.c: Likewise.
24443 * config/s390/s390.c: Likewise.
24444 * config/sh/sh-c.c: Likewise.
24445 * config/sh/sh-mem.cc: Likewise.
24446 * config/sh/sh.c: Likewise.
24447 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
24448 * config/sh/sh_treg_combine.cc: Likewise.
24449 * config/sol2-c.c: Likewise.
24450 * config/sol2-cxx.c: Likewise.
24451 * config/sol2-stubs.c: Likewise.
24452 * config/sol2.c: Likewise.
24453 * config/sparc/sparc-c.c: Likewise.
24454 * config/sparc/sparc.c: Likewise.
24455 * config/spu/spu-c.c: Likewise.
24456 * config/spu/spu.c: Likewise.
24457 * config/stormy16/stormy16.c: Likewise.
24458 * config/tilegx/mul-tables.c: Likewise.
24459 * config/tilegx/tilegx-c.c: Likewise.
24460 * config/tilegx/tilegx.c: Likewise.
24461 * config/tilepro/mul-tables.c: Likewise.
24462 * config/tilepro/tilepro-c.c: Likewise.
24463 * config/tilepro/tilepro.c: Likewise.
24464 * config/v850/v850-c.c: Likewise.
24465 * config/v850/v850.c: Likewise.
24466 * config/vax/vax.c: Likewise.
24467 * config/visium/visium.c: Likewise.
24468 * config/vms/vms-c.c: Likewise.
24469 * config/vms/vms.c: Likewise.
24470 * config/vxworks.c: Likewise.
24471 * config/winnt-c.c: Likewise.
24472 * config/xtensa/xtensa.c: Likewise.
24474 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
24476 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
24478 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
24480 2015-06-17 Richard Biener <rguenther@suse.de>
24482 PR tree-optimization/66251
24483 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
24484 stmts for SLP strided stores.
24487 2015-05-22 Richard Biener <rguenther@suse.de>
24489 PR tree-optimization/66251
24490 * tree-vect-stmts.c (vectorizable_conversion): Properly
24491 set STMT_VINFO_VEC_STMT even for the SLP case.
24493 2015-05-26 Michael Matz <matz@suse.de>
24495 PR middle-end/66251
24496 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
24497 STMT_VINFO_VEC_STMT, also with SLP.
24499 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
24502 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
24503 (*avx_addsubv4df3_1s): Ditto.
24504 (*sse3_addsubv2df3_1): Ditto.
24505 (*sse3_addsubv2df3_1s): Ditto.
24506 (*avx_addsubv8sf3_1): Ditto.
24507 (*avx_addsubv8sf3_1s): Ditto.
24508 (*sse3_addsubv4sf3_1): Ditto.
24509 (*sse3_addsubv4sf3_1s): Ditto.
24511 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
24513 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
24514 (SYSROOT_SUFFIX_SPEC): Update.
24515 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
24516 (STARTFILE_PREFIX_SPEC): Update.
24517 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
24518 (MULTILIB_REQUIRED): New.
24519 (MULTILIB_OSDIRNAMES): New.
24520 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
24521 (MULTILIB_REQUIRED): New.
24522 (MULTILIB_OSDIRNAMES): New.
24524 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
24526 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
24527 * config/aarch64/aarch64-options-extensions.def: Update "fP",
24528 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
24529 * config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
24530 (AARCH64_FL_PAN): New.
24531 (AARCH64_FL_LOR): New.
24532 (AARCH64_FL_RDMA): New.
24533 (AARCH64_FL_FOR_ARCH8_1): New.
24534 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
24535 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
24537 2015-06-16 Martin Liska <mliska@suse.cz>
24539 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
24540 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
24543 2015-06-16 Richard Biener <rguenther@suse.de>
24545 * tree-vect-stmts.c (vectorizable_store): Adjust.
24546 (vectorizable_load): Likewise.
24547 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
24549 (vect_create_data_ref_ptr): Likewise.
24550 (bump_vector_ptr): Adjust.
24552 2015-06-16 Richard Biener <rguenther@suse.de>
24554 * tree-vect-stmts.c (vectorizable_load): Properly start loads
24555 with the first element if this is grouped loads.
24557 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
24559 * config/arm/arm-protos.h (struct tune_params): Rename
24560 log_op_non_sc to log_op_non_short_circuit, and rename enum
24561 values to expand SC to SHORT_CIRCUIT.
24562 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
24563 to LOG_OP_NON_SHORT_CIRCUIT.
24564 (arm_fastmul_tune):Likewise
24565 (arm_strongarm_tune): Likewise.
24566 (arm_xscale_tune): Likewise.
24567 (arm_9e_tune): Likewise.
24568 (arm_marvell_pj4_tune): Likewise.
24569 (arm_v6t2_tune): Likewise.
24570 (arm_cortex_tune): Likewise.
24571 (arm_cortex_a8_tune): Likewise.
24572 (arm_cortex_a7_tune): Likewise.
24573 (arm_cortex_a15_tune): Likewise.
24574 (arm_cortex_a53_tune): Likewise.
24575 (arm_cortex_a57_tune): Likewise.
24576 (arm_xgene1_tune): Likewise.
24577 (arm_cortex_a5_tune): Likewise.
24578 (arm_cortex_a9_tune): Likewise.
24579 (arm_cortex_a12_tune): Likewise.
24580 (arm_v7m_tune): Likewise.
24581 (arm_cortex_m7_tune): Likewise.
24582 (arm_v6m_tune): Likewise.
24583 (arm_fa726te_tune): Likewise.
24585 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
24587 * altivec.md: Delete UNSPEC_VMLADDUHM.
24588 (mulv4si3_p8): New pattern.
24589 (mulv4si3): Use it for POWER8.
24590 (mulv8hi3): Use vmladduhm with zero addend.
24591 (altivec_vmladduhm): Descriptive RTL.
24593 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
24595 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
24596 to use neon_move instead of mov_imm.
24597 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
24598 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
24600 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
24601 aarch64_float_const_zero_rtx_p check before TFmode check.
24602 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
24604 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
24605 code and attributes to match. Change condition from register_operand
24606 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
24607 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
24610 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
24613 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
24614 there is no parent.
24616 2015-06-14 Shiva Chen <shiva0217@gmail.com>
24618 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
24619 HOST_WIDE_INT parameter.
24621 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
24624 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
24625 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
24627 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
24629 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
24631 * rtl.h (classify_insn): Declare.
24632 * emit-rtl.c (classify_insn): Move to...
24633 * rtl.c: ...here and add generator support.
24634 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
24635 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
24636 * genemit.c (gen_emit_seq): New function.
24637 (gen_expand, gen_split): Use it.
24639 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
24641 * tree.c (make_vector_stat): Fix comment to state that the
24642 function returns a VECTOR_CST.
24644 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
24646 * gensupport.h (add_implicit_parallel): Declare.
24647 * genrecog.c (add_implicit_parallel): Move to...
24648 * gensupport.c (add_implicit_parallel): ...here.
24649 (process_one_cond_exec): Use it.
24650 * genemit.c (gen_insn): Likewise.
24652 2015-06-13 Iain Sandoe <iain@codesourcery.com>
24655 * passes.c (rest_of_decl_compilation): Do not register globals for
24656 early debug if they are declared in built-ins.
24658 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
24660 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
24662 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24664 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
24666 (noce_try_cmove_arith): Likewise.
24667 (noce_get_alt_condition): Likewise.
24669 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
24671 * common/config/i386/i386-common.c
24672 (OPTION_MASK_ISA_MWAITX_SET): New.
24673 (ix86_handle_option): Handle mwaitx.
24674 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
24675 (x86_64-*-*): Likewise.
24676 * config/i386/mwaitxintrin.h: New header.
24677 * config/i386/cpuid.h (bit_MWAITX): Define.
24678 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
24680 * config/i386/i386.opt (mwaitx): New.
24681 * config/i386/i386-builtin-types.def
24682 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
24683 * config/i386/i386-c.c: Define __MWAITX__ if needed.
24684 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
24686 (ix86_option_override_internal): Handle new option.
24687 (processor_alias_table): Added PTA_MWAITX.
24688 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
24689 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
24690 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
24691 IX86_BUILTIN_MONITORX built-ins.
24692 * config/i386/i386.h (TARGET_MWAITX): New.
24693 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
24695 (mwaitx): New pattern.
24696 (monitorx_<mode>): New pattern.
24697 * config/i386/x86intrin.h: Include mwaitxintrin.h.
24698 * doc/extend.texi: Document monitorx and mwaitx builtins.
24699 * doc/invoke.texi: Document -mmwaitx option.
24701 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
24703 * emit-rtl.c (need_atomic_barrier_p): Mask model with
24704 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
24706 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
24708 * dbxout.c (xcoff_debug_hooks): Provide a function for
24709 register_main_translation_unit hook.
24711 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
24713 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
24714 variants cases from switch.
24715 (rs6000_post_atomic_barrier): Same.
24716 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
24717 (rs6000_expand_atomic_exchange): Same.
24718 (rs6000_expand_atomic_op): Same.
24719 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
24720 SYNC variants cases from switch.
24721 (atomic_load): Same.
24722 (atomic_store): Same.
24724 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
24726 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
24727 CONST_INT for goto.
24729 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
24732 * dwarf2out.c (check_die): Check for common duplicate attributes.
24733 (add_location_or_const_value_attribute): Do not add duplicate
24735 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
24737 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
24738 (gen_type_die_with_usage): Call check_die.
24739 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
24741 2015-06-11 Jason Merrill <jason@redhat.com>
24743 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
24746 2015-06-11 Marek Polacek <polacek@redhat.com>
24748 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
24750 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
24753 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
24754 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
24755 (*addx_extend_sp32): Fix pasto.
24756 (*subx_extend): Rename into...
24757 (*subx_extend_sp32): ...this.
24758 (*adddi3_extend_sp32): Add earlyclobber.
24759 (*subdi3_insn_sp32): Likewise.
24760 (*subdi3_extend_sp32): Likewise.
24761 (*and_not_di_sp32): Likewise.
24762 (*or_not_di_sp32): Likewise.
24763 (*xor_not_di_sp32): Likewise.
24764 (*negdi2_sp32): Likewise.
24765 (*one_cmpldi2_sp32): Likewise.
24767 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
24769 * debug.h (struct gcc_debug_hooks): Add a
24770 register_main_translation_unit hook.
24771 * debug.c (do_nothing_debug_hooks): Provide a function for this
24773 * dbxout.c (dbx_debug_hooks): Likewise.
24774 * sdbout.c (sdb_debug_hooks): Likewise.
24775 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
24776 * dwarf2out.c (main_translation_unit): New global variable.
24777 (dwarf2out_register_main_translation_unit): New function
24778 implementing the new hook.
24779 (dwarf2_debug_hooks): Assign
24780 dwarf2out_register_main_translation_unit to this new hook.
24781 (dwarf2out_init): Associate any main translation unit to
24784 2015-06-11 Marek Polacek <polacek@redhat.com>
24786 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
24788 2015-06-11 Marek Polacek <polacek@redhat.com>
24790 * match.pd: Use single_use throughout.
24792 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24794 * config/arm/arm.c (arm_option_params_internal): When optimising
24795 for speed set max_insns_skipped when arm_restrict_it.
24797 2015-06-11 Christian Bruel <christian.bruel@st.com>
24800 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
24802 (arm_cpu_builtins): New function.
24803 (arm_pragma_target_parse): Call arm_cpu_builtins.
24804 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
24805 (arm_register_target_pragmas): Likewise.
24806 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
24807 Call arm_register_target_pragmas.
24808 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
24809 (arm_pragma_target_parse): Likewise.
24811 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
24813 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
24814 of the second operand.
24816 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
24819 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
24820 to prepare mask operand for AVX512 modes.
24822 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
24825 * doc/md.texi (Machine Constraints): Document that on the PowerPC
24826 if you use a constraint that targets a VSX register, you must use
24827 %x<n> in the template.
24829 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
24831 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
24832 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
24833 (define_insn "trap"): New definition.
24835 2015-06-10 Richard Biener <rguenther@suse.de>
24837 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
24839 (vect_supported_load_permutation_p): ... here. Handle
24840 supportable permutations in reductions.
24841 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
24842 for vectorizing strided group loads.
24844 2015-06-10 Jakub Jelinek <jakub@redhat.com>
24847 * config/i386/i386.c (ix86_split_long_move): For collisions
24848 involving direct tls segment refs, move the UNSPEC_TP possibly
24849 wrapped in ZERO_EXTEND out of the address for lea, to each of
24852 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24854 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
24855 dmb sy. Adjust tabs.
24857 2015-06-10 Tom de Vries <tom@codesourcery.com>
24859 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
24861 2015-06-10 Martin Liska <mliska@suse.cz>
24864 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
24865 all enum values in mem_alloc_origin.
24866 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
24868 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
24869 * bitmap.c (bitmap_register): Likewise.
24870 (dump_bitmap_statistics): Likewise.
24871 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
24872 (ggc_record_overhead): Likewise.
24873 * hash-map.h: Likewise.
24874 * hash-set.h: Likewise.
24875 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
24876 * hash-table.h: Likewise.
24877 * vec.c (vec_prefix::register_overhead): Likewise.
24878 (vec_prefix::release_overhead): Likewise.
24879 (dump_vec_loc_statistics): Likewise.
24881 2015-06-09 Christian Bruel <christian.bruel@st.com>
24884 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
24885 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
24886 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
24887 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
24888 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
24889 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
24890 (arm_valid_target_attribute_p): Likewise.
24891 (arm_set_current_function, arm_can_inline_p): Likewise.
24892 (arm_valid_target_attribute_rec): Likewise.
24893 (arm_previous_fndecl): New variable.
24894 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
24895 (TARGET_CAN_INLINE_P): Define.
24896 (arm_asm_trampoline_template): Emit mode.
24897 (arm_file_start): Don't set unified syntax.
24898 (arm_declare_function_name): Set unified syntax and mode.
24899 (arm_option_override): Init target_option_default_node.
24900 and target_option_current_node.
24901 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
24902 (*call_symbol): Likewise.
24903 * doc/extend.texi: Document ARM/Thumb target attribute.
24904 * doc/invoke.texi: Likewise.
24906 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
24909 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
24910 PR rtl-optimization/64164
24911 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
24912 * tree-ssa-copyrename.c: Removed.
24913 * opts.c (default_options_table): Drop -ftree-copyrename. Add
24914 -ftree-coalesce-vars.
24915 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
24916 * common.opt (ftree-copyrename): Ignore.
24917 (ftree-coalesce-inlined-vars): Likewise.
24918 * doc/invoke.texi: Remove the ignored options above.
24919 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
24920 * tree-ssa-coalesce.h: ... here.
24921 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
24922 headers required by it.
24923 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
24924 across variables when flag_tree_coalesce_vars. Check register
24925 use and promoted modes to allow coalescing. Moved to
24926 tree-ssa-coalesce.c.
24927 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
24928 with its member functions to tree-ssa-coalesce.c.
24929 (var_map_base_init): Likewise. Renamed to
24930 compute_samebase_partition_bases.
24931 (partition_view_normal): Drop want_bases parameter.
24932 (partition_view_bitmap): Likewise.
24933 * tree-ssa-live.h: Adjust declarations.
24934 * tree-ssa-coalesce.c: Include explow.h.
24935 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
24936 default defs at the entry point.
24937 (dump_part_var_map): New.
24938 (compute_optimized_partition_bases): New, called by...
24939 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
24940 of compute_samebase_partition_bases. Adjust.
24941 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
24942 * cfgexpand.c (leader_merge): New.
24943 (get_rtl_for_parm_ssa_default_def): New.
24944 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
24945 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
24946 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
24947 redundant MEM attr setting.
24948 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
24950 (expand_one_stack_var): ... this. New wrapper to check and
24951 skip already expanded SSA partitions.
24952 (record_alignment_for_reg_var): New, factored out of...
24953 (expand_one_var): ... this.
24954 (expand_one_ssa_partition): New.
24955 (adjust_one_expanded_partition_var): New.
24956 (expand_one_register_var): Check and skip already expanded SSA
24958 (expand_used_vars): Don't create DECLs for anonymous SSA
24959 names. Expand all SSA partitions, then adjust all SSA names.
24960 (pass::execute): Replace the loops that set
24961 SA.partition_to_pseudo from partition leaders and cleared
24962 DECL_RTL for multi-location variables, and that which used to
24963 rename vars and set attrs, with one that clears DECL_RTL and
24964 checks that PARMs and RESULTs default_defs match DECL_RTL.
24965 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
24966 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
24967 * explow.c (promote_ssa_mode): New.
24968 * explow.h (promote_ssa_mode): Declare.
24969 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
24970 * function.c: Include cfgexpand.h.
24971 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
24972 (use_register_for_parm_decl): Wrapper for the above to
24973 special-case the result_ptr.
24974 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
24975 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
24976 multiple locations.
24977 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
24978 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
24979 (assign_parm_setup_block): Prefer SSA-assigned location.
24980 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
24981 if stack_parm is NULL.
24982 (assign_parm_setup_stack): Prefer SSA-assigned location.
24983 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
24984 rtl before testing for pointer bounds. Special-case result_ptr.
24985 (expand_function_start): Maybe reset DECL_RTL of result.
24986 Prefer SSA-assigned location for result and static chain.
24987 Factor out DECL_RESULT and SET_DECL_RTL.
24988 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
24989 anonymous SSA names. Use promote_ssa_mode.
24990 (get_temp_reg): Likewise.
24991 (remove_ssa_form): Adjust.
24992 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
24993 and get its reg_usage for reg invalidation.
24994 (compute_bb_dataflow): Pass it insn.
24995 (emit_notes_in_bb): Likewise.
24996 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
24997 fail assert on conversion between unsigned types.
24999 2015-06-09 Tom de Vries <tom@codesourcery.com>
25001 PR tree-optimization/65460
25002 * omp-low.c (expand_omp_target): Set parallelized_function on
25003 cgraph_node for child_fn.
25005 2015-06-09 Tom de Vries <tom@codesourcery.com>
25007 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
25008 parallelized_function before add_new_function.
25010 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
25012 * gcc-plugin.h: Move decls to plugin.h and include it.
25013 * plugin.h: Relocate decls from gcc-plugin.h
25014 * ggc-page.c: Include required header files.
25015 * passes.c: Likewise.
25016 * cgraphunit.c: Likewise.
25018 2015-06-09 Tom de Vries <tom@codesourcery.com>
25020 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
25022 2015-06-09 Jason Merrill <jason@redhat.com>
25025 * toplev.c (check_global_declaration): Don't warn about a clone.
25027 2015-06-09 Marek Polacek <polacek@redhat.com>
25029 PR tree-optimization/66299
25030 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
25031 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
25034 2015-06-09 Richard Biener <rguenther@suse.de>
25036 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
25037 (vect_analyze_slp_instance): Instead do not falsely drop
25040 2015-06-09 Richard Biener <rguenther@suse.de>
25042 PR middle-end/66423
25043 * match.pd: Handle A % (unsigned)(1 << B).
25045 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
25047 * varasm.c (output_object_block_htab): Remove.
25048 (output_object_block_compare): New.
25049 (output_object_blocks): Sort named object_blocks before outputting
25052 2015-06-09 Richard Biener <rguenther@suse.de>
25054 PR tree-optimization/66419
25055 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
25056 consider GROUP_GAP when detecting a perfect subchain.
25058 2015-06-09 Nick Clifton <nickc@redhat.com>
25060 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
25061 place read only data in the .frodata section.
25063 2015-06-09 Shiva Chen <shiva0217@gmail.com>
25065 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
25066 (atomic_store<mode>): Likewise.
25068 2015-06-09 Richard Biener <rguenther@suse.de>
25070 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
25072 2015-06-09 Richard Biener <rguenther@suse.de>
25074 PR middle-end/66413
25075 * tree-inline.c (insert_init_debug_bind): Unshare value.
25077 2015-06-09 Richard Biener <rguenther@suse.de>
25079 PR tree-optimization/66396
25080 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
25081 Rename virtual operands.
25083 2015-06-09 Tom de Vries <tom@codesourcery.com>
25085 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
25086 always return false.
25088 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
25090 PR rtl-optimization/64164
25091 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
25092 * tree-ssa-copyrename.c: Removed.
25093 * opts.c (default_options_table): Drop -ftree-copyrename. Add
25094 -ftree-coalesce-vars.
25095 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
25096 * common.opt (ftree-copyrename): Ignore.
25097 (ftree-coalesce-inlined-vars): Likewise.
25098 * doc/invoke.texi: Remove the ignored options above.
25099 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
25100 * tree-ssa-coalesce.h: ... here.
25101 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
25102 headers required by it.
25103 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
25104 across variables when flag_tree_coalesce_vars. Check register
25105 use and promoted modes to allow coalescing. Moved to
25106 tree-ssa-coalesce.c.
25107 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
25108 with its member functions to tree-ssa-coalesce.c.
25109 (var_map_base_init): Likewise. Renamed to
25110 compute_samebase_partition_bases.
25111 (partition_view_normal): Drop want_bases parameter.
25112 (partition_view_bitmap): Likewise.
25113 * tree-ssa-live.h: Adjust declarations.
25114 * tree-ssa-coalesce.c: Include explow.h.
25115 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
25116 default defs at the entry point.
25117 (dump_part_var_map): New.
25118 (compute_optimized_partition_bases): New, called by...
25119 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
25120 of compute_samebase_partition_bases. Adjust.
25121 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
25122 * cfgexpand.c (leader_merge): New.
25123 (get_rtl_for_parm_ssa_default_def): New.
25124 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
25125 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
25126 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
25127 redundant MEM attr setting.
25128 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
25130 (expand_one_stack_var): ... this. New wrapper to check and
25131 skip already expanded SSA partitions.
25132 (record_alignment_for_reg_var): New, factored out of...
25133 (expand_one_var): ... this.
25134 (expand_one_ssa_partition): New.
25135 (adjust_one_expanded_partition_var): New.
25136 (expand_one_register_var): Check and skip already expanded SSA
25138 (expand_used_vars): Don't create DECLs for anonymous SSA
25139 names. Expand all SSA partitions, then adjust all SSA names.
25140 (pass::execute): Replace the loops that set
25141 SA.partition_to_pseudo from partition leaders and cleared
25142 DECL_RTL for multi-location variables, and that which used to
25143 rename vars and set attrs, with one that clears DECL_RTL and
25144 checks that PARMs and RESULTs default_defs match DECL_RTL.
25145 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
25146 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
25147 * explow.c (promote_ssa_mode): New.
25148 * explow.h (promote_ssa_mode): Declare.
25149 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
25150 * function.c: Include cfgexpand.h.
25151 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
25152 (use_register_for_parm_decl): Wrapper for the above to
25153 special-case the result_ptr.
25154 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
25155 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
25156 multiple locations.
25157 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
25158 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
25159 (assign_parm_setup_block): Prefer SSA-assigned location.
25160 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
25161 if stack_parm is NULL.
25162 (assign_parm_setup_stack): Prefer SSA-assigned location.
25163 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
25164 rtl before testing for pointer bounds. Special-case result_ptr.
25165 (expand_function_start): Maybe reset DECL_RTL of result.
25166 Prefer SSA-assigned location for result and static chain.
25167 Factor out DECL_RESULT and SET_DECL_RTL.
25168 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
25169 anonymous SSA names. Use promote_ssa_mode.
25170 (get_temp_reg): Likewise.
25171 (remove_ssa_form): Adjust.
25172 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
25173 and get its reg_usage for reg invalidation.
25174 (compute_bb_dataflow): Pass it insn.
25175 (emit_notes_in_bb): Likewise.
25176 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
25177 fail assert on conversion between unsigned types.
25179 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
25182 * tree-inline.c (reset_debug_binding): New.
25183 (reset_debug_bindings): Likewise.
25184 (expand_call_inline): Call it.
25186 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
25188 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
25191 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
25193 * lto-streamer-out.c (lto_output_location): Stream
25194 reserved locations correctly.
25195 * lto-streamer-in.c (lto_output_location): Likewise.
25197 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
25199 * coretypes.h: Include hash-table.h and hash-set.h for host files.
25200 * ggc.h: Don't include statistics.h>
25201 * hash-map.h: Remove all includes.
25202 * hash-set.h: Likewise.
25203 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
25204 the include list. Remove <new>.
25205 * inchash.h: Remove all includes.
25206 * mem-stats.h: Likewise.
25207 * vec.h: No special processing for generators or ggc.
25208 * alias.c : Adjust include files.
25209 * alloc-pool.c : Likewise.
25210 * alloc-pool.h : Likewise.
25211 * asan.c : Likewise.
25212 * attribs.c : Likewise.
25213 * auto-inc-dec.c : Likewise.
25214 * auto-profile.c : Likewise.
25215 * bb-reorder.c : Likewise.
25216 * bitmap.c : Likewise.
25217 * bitmap.h : Likewise.
25218 * bt-load.c : Likewise.
25219 * builtins.c : Likewise.
25220 * caller-save.c : Likewise.
25221 * calls.c : Likewise.
25222 * ccmp.c : Likewise.
25223 * cfg.c : Likewise.
25224 * cfganal.c : Likewise.
25225 * cfgbuild.c : Likewise.
25226 * cfgcleanup.c : Likewise.
25227 * cfgexpand.c : Likewise.
25228 * cfghooks.c : Likewise.
25229 * cfgloop.c : Likewise.
25230 * cfgloop.h : Likewise.
25231 * cfgloopanal.c : Likewise.
25232 * cfgloopmanip.c : Likewise.
25233 * cfgrtl.c : Likewise.
25234 * cgraph.c : Likewise.
25235 * cgraphbuild.c : Likewise.
25236 * cgraphclones.c : Likewise.
25237 * cgraphunit.c : Likewise.
25238 * cilk-common.c : Likewise.
25239 * combine-stack-adj.c : Likewise.
25240 * combine.c : Likewise.
25241 * compare-elim.c : Likewise.
25242 * context.c : Likewise.
25243 * convert.c : Likewise.
25244 * coverage.c : Likewise.
25245 * cppbuiltin.c : Likewise.
25246 * cprop.c : Likewise.
25247 * cse.c : Likewise.
25248 * cselib.c : Likewise.
25249 * data-streamer-in.c : Likewise.
25250 * data-streamer-out.c : Likewise.
25251 * data-streamer.c : Likewise.
25252 * data-streamer.h : Likewise.
25253 * dbxout.c : Likewise.
25254 * dce.c : Likewise.
25255 * ddg.c : Likewise.
25256 * debug.c : Likewise.
25257 * df-core.c : Likewise.
25258 * df-problems.c : Likewise.
25259 * df-scan.c : Likewise.
25261 * dfp.c : Likewise.
25262 * dojump.c : Likewise.
25263 * dominance.c : Likewise.
25264 * domwalk.c : Likewise.
25265 * double-int.c : Likewise.
25266 * dse.c : Likewise.
25267 * dumpfile.c : Likewise.
25268 * dwarf2asm.c : Likewise.
25269 * dwarf2cfi.c : Likewise.
25270 * dwarf2out.c : Likewise.
25271 * emit-rtl.c : Likewise.
25272 * et-forest.c : Likewise.
25273 * except.c : Likewise.
25274 * except.h : Likewise.
25275 * explow.c : Likewise.
25276 * expmed.c : Likewise.
25277 * expr.c : Likewise.
25278 * final.c : Likewise.
25279 * fixed-value.c : Likewise.
25280 * fold-const.c : Likewise.
25281 * function.c : Likewise.
25282 * fwprop.c : Likewise.
25283 * gcc-plugin.h : Likewise.
25284 * gcc.c : Likewise.
25285 * gcse-common.c : Likewise.
25286 * gcse.c : Likewise.
25287 * genattrtab.c : Likewise.
25288 * genautomata.c : Likewise.
25289 * genconditions.c : Likewise.
25290 * genemit.c : Likewise.
25291 * generic-match-head.c : Likewise.
25292 * genextract.c : Likewise.
25293 * gengtype-state.c : Likewise.
25294 * gengtype.c : Likewise.
25295 * genhooks.c : Likewise.
25296 * genmatch.c : Likewise.
25297 * genmodes.c : Likewise.
25298 * genrecog.c : Likewise.
25299 * gensupport.c : Likewise.
25300 * ggc-common.c : Likewise.
25301 * ggc-internal.h : Likewise.
25302 * ggc-none.c : Likewise.
25303 * ggc-page.c : Likewise.
25304 * gimple-builder.c : Likewise.
25305 * gimple-expr.c : Likewise.
25306 * gimple-fold.c : Likewise.
25307 * gimple-iterator.c : Likewise.
25308 * gimple-low.c : Likewise.
25309 * gimple-match-head.c : Likewise.
25310 * gimple-pretty-print.c : Likewise.
25311 * gimple-ssa-isolate-paths.c : Likewise.
25312 * gimple-ssa-strength-reduction.c : Likewise.
25313 * gimple-ssa.h : Likewise.
25314 * gimple-streamer-in.c : Likewise.
25315 * gimple-streamer-out.c : Likewise.
25316 * gimple-streamer.h : Likewise.
25317 * gimple-walk.c : Likewise.
25318 * gimple.c : Likewise.
25319 * gimplify-me.c : Likewise.
25320 * gimplify.c : Likewise.
25321 * godump.c : Likewise.
25322 * graph.c : Likewise.
25323 * graphds.c : Likewise.
25324 * graphite-blocking.c : Likewise.
25325 * graphite-dependences.c : Likewise.
25326 * graphite-interchange.c : Likewise.
25327 * graphite-isl-ast-to-gimple.c : Likewise.
25328 * graphite-optimize-isl.c : Likewise.
25329 * graphite-poly.c : Likewise.
25330 * graphite-scop-detection.c : Likewise.
25331 * graphite-sese-to-poly.c : Likewise.
25332 * graphite.c : Likewise.
25333 * haifa-sched.c : Likewise.
25334 * hard-reg-set.h : Likewise.
25335 * hw-doloop.c : Likewise.
25336 * ifcvt.c : Likewise.
25337 * inchash.c : Likewise.
25338 * incpath.c : Likewise.
25339 * init-regs.c : Likewise.
25340 * input.c : Likewise.
25341 * internal-fn.c : Likewise.
25342 * ipa-chkp.c : Likewise.
25343 * ipa-comdats.c : Likewise.
25344 * ipa-cp.c : Likewise.
25345 * ipa-devirt.c : Likewise.
25346 * ipa-icf-gimple.c : Likewise.
25347 * ipa-icf.c : Likewise.
25348 * ipa-inline-analysis.c : Likewise.
25349 * ipa-inline-transform.c : Likewise.
25350 * ipa-inline.c : Likewise.
25351 * ipa-polymorphic-call.c : Likewise.
25352 * ipa-profile.c : Likewise.
25353 * ipa-prop.c : Likewise.
25354 * ipa-pure-const.c : Likewise.
25355 * ipa-ref.c : Likewise.
25356 * ipa-reference.c : Likewise.
25357 * ipa-split.c : Likewise.
25358 * ipa-utils.c : Likewise.
25359 * ipa-visibility.c : Likewise.
25360 * ipa.c : Likewise.
25361 * ira-build.c : Likewise.
25362 * ira-color.c : Likewise.
25363 * ira-conflicts.c : Likewise.
25364 * ira-costs.c : Likewise.
25365 * ira-emit.c : Likewise.
25366 * ira-lives.c : Likewise.
25367 * ira.c : Likewise.
25368 * jump.c : Likewise.
25369 * langhooks.c : Likewise.
25370 * lcm.c : Likewise.
25371 * libfuncs.h : Likewise.
25372 * lists.c : Likewise.
25373 * loop-doloop.c : Likewise.
25374 * loop-init.c : Likewise.
25375 * loop-invariant.c : Likewise.
25376 * loop-iv.c : Likewise.
25377 * loop-unroll.c : Likewise.
25378 * lower-subreg.c : Likewise.
25379 * lra-assigns.c : Likewise.
25380 * lra-coalesce.c : Likewise.
25381 * lra-constraints.c : Likewise.
25382 * lra-eliminations.c : Likewise.
25383 * lra-lives.c : Likewise.
25384 * lra-remat.c : Likewise.
25385 * lra-spills.c : Likewise.
25386 * lra.c : Likewise.
25387 * lto-cgraph.c : Likewise.
25388 * lto-compress.c : Likewise.
25389 * lto-opts.c : Likewise.
25390 * lto-section-in.c : Likewise.
25391 * lto-section-out.c : Likewise.
25392 * lto-streamer-in.c : Likewise.
25393 * lto-streamer-out.c : Likewise.
25394 * lto-streamer.c : Likewise.
25395 * lto-streamer.h : Likewise.
25396 * mcf.c : Likewise.
25397 * mode-switching.c : Likewise.
25398 * modulo-sched.c : Likewise.
25399 * omega.c : Likewise.
25400 * omp-low.c : Likewise.
25401 * optabs.c : Likewise.
25402 * opts-global.c : Likewise.
25403 * opts.h : Likewise.
25404 * passes.c : Likewise.
25405 * plugin.c : Likewise.
25406 * postreload-gcse.c : Likewise.
25407 * postreload.c : Likewise.
25408 * predict.c : Likewise.
25409 * print-rtl.c : Likewise.
25410 * print-tree.c : Likewise.
25411 * profile.c : Likewise.
25412 * read-md.c : Likewise.
25413 * read-md.h : Likewise.
25414 * read-rtl.c : Likewise.
25415 * real.c : Likewise.
25416 * realmpfr.c : Likewise.
25417 * recog.c : Likewise.
25418 * ree.c : Likewise.
25419 * reg-stack.c : Likewise.
25420 * regcprop.c : Likewise.
25421 * reginfo.c : Likewise.
25422 * regrename.c : Likewise.
25423 * regstat.c : Likewise.
25424 * reload.c : Likewise.
25425 * reload1.c : Likewise.
25426 * reorg.c : Likewise.
25427 * resource.c : Likewise.
25428 * rtl-chkp.c : Likewise.
25429 * rtl.c : Likewise.
25430 * rtl.h : Likewise.
25431 * rtlanal.c : Likewise.
25432 * rtlhash.c : Likewise.
25433 * rtlhash.h : Likewise.
25434 * rtlhooks.c : Likewise.
25435 * sanopt.c : Likewise.
25436 * sched-deps.c : Likewise.
25437 * sched-ebb.c : Likewise.
25438 * sched-rgn.c : Likewise.
25439 * sched-vis.c : Likewise.
25440 * sdbout.c : Likewise.
25441 * sel-sched-dump.c : Likewise.
25442 * sel-sched-ir.c : Likewise.
25443 * sel-sched-ir.h : Likewise.
25444 * sel-sched.c : Likewise.
25445 * sese.c : Likewise.
25446 * shrink-wrap.c : Likewise.
25447 * shrink-wrap.h : Likewise.
25448 * simplify-rtx.c : Likewise.
25449 * stack-ptr-mod.c : Likewise.
25450 * statistics.c : Likewise.
25451 * stmt.c : Likewise.
25452 * stor-layout.c : Likewise.
25453 * store-motion.c : Likewise.
25454 * stringpool.c : Likewise.
25455 * symtab.c : Likewise.
25456 * target-globals.c : Likewise.
25457 * targhooks.c : Likewise.
25458 * tlink.c : Likewise.
25459 * toplev.c : Likewise.
25460 * tracer.c : Likewise.
25461 * trans-mem.c : Likewise.
25462 * tree-affine.c : Likewise.
25463 * tree-affine.h : Likewise.
25464 * tree-browser.c : Likewise.
25465 * tree-call-cdce.c : Likewise.
25466 * tree-cfg.c : Likewise.
25467 * tree-cfgcleanup.c : Likewise.
25468 * tree-chkp-opt.c : Likewise.
25469 * tree-chkp.c : Likewise.
25470 * tree-chrec.c : Likewise.
25471 * tree-complex.c : Likewise.
25472 * tree-data-ref.c : Likewise.
25473 * tree-dfa.c : Likewise.
25474 * tree-diagnostic.c : Likewise.
25475 * tree-dump.c : Likewise.
25476 * tree-eh.c : Likewise.
25477 * tree-eh.h : Likewise.
25478 * tree-emutls.c : Likewise.
25479 * tree-hasher.h : Likewise.
25480 * tree-if-conv.c : Likewise.
25481 * tree-inline.c : Likewise.
25482 * tree-inline.h : Likewise.
25483 * tree-into-ssa.c : Likewise.
25484 * tree-iterator.c : Likewise.
25485 * tree-loop-distribution.c : Likewise.
25486 * tree-nested.c : Likewise.
25487 * tree-nrv.c : Likewise.
25488 * tree-object-size.c : Likewise.
25489 * tree-outof-ssa.c : Likewise.
25490 * tree-parloops.c : Likewise.
25491 * tree-phinodes.c : Likewise.
25492 * tree-predcom.c : Likewise.
25493 * tree-pretty-print.c : Likewise.
25494 * tree-profile.c : Likewise.
25495 * tree-scalar-evolution.c : Likewise.
25496 * tree-sra.c : Likewise.
25497 * tree-ssa-address.c : Likewise.
25498 * tree-ssa-alias.c : Likewise.
25499 * tree-ssa-ccp.c : Likewise.
25500 * tree-ssa-coalesce.c : Likewise.
25501 * tree-ssa-copy.c : Likewise.
25502 * tree-ssa-copyrename.c : Likewise.
25503 * tree-ssa-dce.c : Likewise.
25504 * tree-ssa-dom.c : Likewise.
25505 * tree-ssa-dse.c : Likewise.
25506 * tree-ssa-forwprop.c : Likewise.
25507 * tree-ssa-ifcombine.c : Likewise.
25508 * tree-ssa-live.c : Likewise.
25509 * tree-ssa-loop-ch.c : Likewise.
25510 * tree-ssa-loop-im.c : Likewise.
25511 * tree-ssa-loop-ivcanon.c : Likewise.
25512 * tree-ssa-loop-ivopts.c : Likewise.
25513 * tree-ssa-loop-manip.c : Likewise.
25514 * tree-ssa-loop-niter.c : Likewise.
25515 * tree-ssa-loop-prefetch.c : Likewise.
25516 * tree-ssa-loop-unswitch.c : Likewise.
25517 * tree-ssa-loop.c : Likewise.
25518 * tree-ssa-math-opts.c : Likewise.
25519 * tree-ssa-operands.c : Likewise.
25520 * tree-ssa-phiopt.c : Likewise.
25521 * tree-ssa-phiprop.c : Likewise.
25522 * tree-ssa-pre.c : Likewise.
25523 * tree-ssa-propagate.c : Likewise.
25524 * tree-ssa-reassoc.c : Likewise.
25525 * tree-ssa-sccvn.c : Likewise.
25526 * tree-ssa-scopedtables.c : Likewise.
25527 * tree-ssa-sink.c : Likewise.
25528 * tree-ssa-strlen.c : Likewise.
25529 * tree-ssa-structalias.c : Likewise.
25530 * tree-ssa-tail-merge.c : Likewise.
25531 * tree-ssa-ter.c : Likewise.
25532 * tree-ssa-threadedge.c : Likewise.
25533 * tree-ssa-threadupdate.c : Likewise.
25534 * tree-ssa-uncprop.c : Likewise.
25535 * tree-ssa-uninit.c : Likewise.
25536 * tree-ssa.c : Likewise.
25537 * tree-ssanames.c : Likewise.
25538 * tree-stdarg.c : Likewise.
25539 * tree-streamer-in.c : Likewise.
25540 * tree-streamer-out.c : Likewise.
25541 * tree-streamer.c : Likewise.
25542 * tree-streamer.h : Likewise.
25543 * tree-switch-conversion.c : Likewise.
25544 * tree-tailcall.c : Likewise.
25545 * tree-vect-data-refs.c : Likewise.
25546 * tree-vect-generic.c : Likewise.
25547 * tree-vect-loop-manip.c : Likewise.
25548 * tree-vect-loop.c : Likewise.
25549 * tree-vect-patterns.c : Likewise.
25550 * tree-vect-slp.c : Likewise.
25551 * tree-vect-stmts.c : Likewise.
25552 * tree-vectorizer.c : Likewise.
25553 * tree-vectorizer.h : Likewise.
25554 * tree-vrp.c : Likewise.
25555 * tree.c : Likewise.
25556 * tsan.c : Likewise.
25557 * ubsan.c : Likewise.
25558 * valtrack.c : Likewise.
25559 * valtrack.h : Likewise.
25560 * value-prof.c : Likewise.
25561 * var-tracking.c : Likewise.
25562 * varasm.c : Likewise.
25563 * varpool.c : Likewise.
25565 * vmsdbgout.c : Likewise.
25566 * vtable-verify.c : Likewise.
25567 * vtable-verify.h : Likewise.
25568 * web.c : Likewise.
25569 * wide-int.cc : Likewise.
25570 * xcoffout.c : Likewise.
25571 * config/aarch64/aarch64-builtins.c : Likewise.
25572 * config/aarch64/aarch64.c : Likewise.
25573 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
25574 * config/alpha/alpha.c : Likewise.
25575 * config/arc/arc.c : Likewise.
25576 * config/arm/aarch-common.c : Likewise.
25577 * config/arm/arm-builtins.c : Likewise.
25578 * config/arm/arm-c.c : Likewise.
25579 * config/arm/arm.c : Likewise.
25580 * config/avr/avr-c.c : Likewise.
25581 * config/avr/avr-log.c : Likewise.
25582 * config/avr/avr.c : Likewise.
25583 * config/bfin/bfin.c : Likewise.
25584 * config/c6x/c6x.c : Likewise.
25585 * config/cr16/cr16.c : Likewise.
25586 * config/cris/cris.c : Likewise.
25587 * config/darwin-c.c : Likewise.
25588 * config/darwin.c : Likewise.
25589 * config/default-c.c : Likewise.
25590 * config/epiphany/epiphany.c : Likewise.
25591 * config/epiphany/mode-switch-use.c : Likewise.
25592 * config/epiphany/resolve-sw-modes.c : Likewise.
25593 * config/fr30/fr30.c : Likewise.
25594 * config/frv/frv.c : Likewise.
25595 * config/ft32/ft32.c : Likewise.
25596 * config/glibc-c.c : Likewise.
25597 * config/h8300/h8300.c : Likewise.
25598 * config/i386/i386-c.c : Likewise.
25599 * config/i386/i386.c : Likewise.
25600 * config/i386/msformat-c.c : Likewise.
25601 * config/i386/winnt-cxx.c : Likewise.
25602 * config/i386/winnt-stubs.c : Likewise.
25603 * config/i386/winnt.c : Likewise.
25604 * config/ia64/ia64-c.c : Likewise.
25605 * config/ia64/ia64.c : Likewise.
25606 * config/iq2000/iq2000.c : Likewise.
25607 * config/lm32/lm32.c : Likewise.
25608 * config/m32c/m32c-pragma.c : Likewise.
25609 * config/m32c/m32c.c : Likewise.
25610 * config/m32r/m32r.c : Likewise.
25611 * config/m68k/m68k.c : Likewise.
25612 * config/mcore/mcore.c : Likewise.
25613 * config/mep/mep-pragma.c : Likewise.
25614 * config/mep/mep.c : Likewise.
25615 * config/microblaze/microblaze-c.c : Likewise.
25616 * config/microblaze/microblaze.c : Likewise.
25617 * config/mips/mips.c : Likewise.
25618 * config/mmix/mmix.c : Likewise.
25619 * config/mn10300/mn10300.c : Likewise.
25620 * config/moxie/moxie.c : Likewise.
25621 * config/msp430/msp430-c.c : Likewise.
25622 * config/msp430/msp430.c : Likewise.
25623 * config/nds32/nds32-cost.c : Likewise.
25624 * config/nds32/nds32-fp-as-gp.c : Likewise.
25625 * config/nds32/nds32-intrinsic.c : Likewise.
25626 * config/nds32/nds32-isr.c : Likewise.
25627 * config/nds32/nds32-md-auxiliary.c : Likewise.
25628 * config/nds32/nds32-memory-manipulation.c : Likewise.
25629 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
25630 * config/nds32/nds32-predicates.c : Likewise.
25631 * config/nds32/nds32.c : Likewise.
25632 * config/nios2/nios2.c : Likewise.
25633 * config/nvptx/nvptx.c : Likewise.
25634 * config/pa/pa.c : Likewise.
25635 * config/pdp11/pdp11.c : Likewise.
25636 * config/rl78/rl78-c.c : Likewise.
25637 * config/rl78/rl78.c : Likewise.
25638 * config/rs6000/rs6000-c.c : Likewise.
25639 * config/rs6000/rs6000.c : Likewise.
25640 * config/rx/rx.c : Likewise.
25641 * config/s390/s390-c.c : Likewise.
25642 * config/s390/s390.c : Likewise.
25643 * config/sh/sh-c.c : Likewise.
25644 * config/sh/sh-mem.cc : Likewise.
25645 * config/sh/sh.c : Likewise.
25646 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
25647 * config/sh/sh_treg_combine.cc : Likewise.
25648 * config/sol2-c.c : Likewise.
25649 * config/sol2-cxx.c : Likewise.
25650 * config/sol2-stubs.c : Likewise.
25651 * config/sol2.c : Likewise.
25652 * config/sparc/sparc-c.c : Likewise.
25653 * config/sparc/sparc.c : Likewise.
25654 * config/spu/spu-c.c : Likewise.
25655 * config/spu/spu.c : Likewise.
25656 * config/stormy16/stormy16.c : Likewise.
25657 * config/tilegx/mul-tables.c : Likewise.
25658 * config/tilegx/tilegx-c.c : Likewise.
25659 * config/tilegx/tilegx.c : Likewise.
25660 * config/tilepro/mul-tables.c : Likewise.
25661 * config/tilepro/tilepro-c.c : Likewise.
25662 * config/tilepro/tilepro.c : Likewise.
25663 * config/v850/v850-c.c : Likewise.
25664 * config/v850/v850.c : Likewise.
25665 * config/vax/vax.c : Likewise.
25666 * config/visium/visium.c : Likewise.
25667 * config/vms/vms-c.c : Likewise.
25668 * config/vms/vms.c : Likewise.
25669 * config/vxworks.c : Likewise.
25670 * config/winnt-c.c : Likewise.
25671 * config/xtensa/xtensa.c : Likewise.
25673 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
25676 * ipa-utils.h (warn_types_mismatch): Update prototype.
25677 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
25679 (type_mismatch_p): New function.
25680 (warn_types_mismatch): Reorg to work better on non-C++ types.
25681 (odr_types_equivalent_p): Add loc1/loc2 parameters.
25682 (add_type_duplicate): Update.
25684 2015-06-08 Tom de Vries <tom@codesourcery.com>
25686 PR rtl-optimization/66444
25687 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
25690 2015-06-08 Richard Biener <rguenther@suse.de>
25692 PR tree-optimization/66422
25693 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
25694 block after inserted gcc_unreachable.
25696 2015-06-08 Nick Clifton <nickc@redhat.com>
25698 * config/rx/rx.c (rx_function_value): Do not promote vector types.
25699 (rx_promote_function_mode): Likewise.
25700 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
25702 2015-06-08 Jakub Jelinek <jakub@redhat.com>
25704 * genattrtab.c (insn_alternatives): Change type from int *
25706 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
25707 (get_attr_value): Change type of num_alt to uint64_t.
25708 (compute_alternative_mask): Change return type from
25709 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
25710 (make_alternative_compare, mk_attr_alt): Change argument type
25711 from int to uint64_t.
25712 (simplify_test_exp): Change type of i from int to uint64_t.
25713 Shift ((uint64_t) 1) instead of 1 up.
25714 (main): Adjust oballocvec first argument from int to uint64_t.
25715 Shift ((uint64_t) 1) instead of 1 up.
25717 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
25720 * gdbhooks.py: Import sys.
25721 (intptr): New function. Replace int(...) by intptr(...).
25723 2015-06-08 Richard Biener <rguenther@suse.de>
25725 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
25726 adjustment for gaps at the end of a SLP load group properly.
25727 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
25728 all permutations we can generate.
25729 (vect_transform_slp_perm_load): Use the correct group-size.
25731 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
25733 * genmatch.c (expr::gen_transform): For conditions, guess the type
25734 from the second operand.
25736 2015-06-08 Tom de Vries <tom@codesourcery.com>
25738 PR tree-optimization/66442
25739 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
25740 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
25741 if the loop latch is not a singleton. Use
25742 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
25744 2015-06-08 Marek Polacek <polacek@redhat.com>
25747 * toplev.c (check_global_declaration): Don't warn about artificial
25750 2015-06-08 Tom de Vries <tom@codesourcery.com>
25752 PR tree-optimization/66436
25753 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
25755 * gimplify.c: Add tree-dump.h include.
25756 (gimplify_function_tree): Dump function to gimple dump file.
25757 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
25760 2015-06-08 Tom de Vries <tom@codesourcery.com>
25762 PR tree-optimization/66435
25763 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
25766 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
25768 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
25769 of ptr_type_node to not be ptr_to_node.
25770 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
25771 TREE_TYPE of pointers.
25772 * gimple-expr.c (useless_type_conversion): Reorder the check for
25773 function pointers and TYPE_CANONICAL.
25775 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
25778 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
25779 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
25780 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
25782 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
25783 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
25784 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
25785 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
25786 and non iso if unix2003.
25788 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
25790 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
25792 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
25794 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
25795 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
25796 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
25797 except.c, final.c, function.c, gcse-common.c, genemit.c,
25798 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
25799 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
25800 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
25801 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
25804 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
25806 * combine.c (combine_split_insns): Remove cast.
25807 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
25808 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
25809 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
25810 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
25811 * genemit.c (gen_split): Change return type of generated functions to
25813 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
25814 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
25815 gen_peephole2_* functions.
25816 (print_subroutine, main): Likewise.
25817 * recog.c (peephole2_optimize): Remove cast.
25818 (peep2_next_insn): Promote return type to rtx_insn.
25819 * recog.h (peep2_next_insn): Fix prototype.
25820 * rtl.h (try_split, split_insns): Likewise.
25822 2015-06-06 DJ Delorie <dj@redhat.com>
25824 * config/msp430/msp430.c (msp430_asm_integer): Support addition
25825 and subtraction too.
25827 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
25830 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
25831 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
25832 instead of Snd. Disparage Sid/z alternative with '^'.
25834 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
25836 * dwarf2out.c: Remove deferred_locations*.
25837 (dwarf2_debug_hooks): Add early_finish hook.
25838 Remove global_decl hook.
25839 Add early_global_decl and late_global_decl hook.
25840 New global early_dwarf.
25841 New structure set_early_dwarf.
25842 (output_die): Indicate whether a DIE was generated early
25843 when generating assembly with -dA.
25844 (struct limbo_die_struct): Document created_for field.
25845 Remove file_table_last_lookup.
25846 (remove_AT): Return TRUE if successful.
25847 (remove_child_TAG): Clear die_parent.
25848 (reparent_child): New function abstracted from...
25849 (splice_child_die): ...here.
25850 (new_die): ICE if a DIE ends up in limbo too late.
25852 (defer_location): Remove.
25853 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
25854 (fill_variable_array_bounds): New.
25855 (decl_start_label): Call fill_variable_array_bounds.
25856 (gen_formal_parameter_die): Rewrite to reuse previously generated
25858 (gen_subprogram_die): Same.
25859 (gen_variable_die): Same.
25860 (gen_const_die): Same.
25861 (gen_label_die): Same.
25862 (gen_lexical_block_die): Same.
25863 (decl_will_get_specification_p): New.
25864 (local_function_static): New.
25865 (gen_struct_or_union_type_die): Fill in variable-length fields.
25866 (gen_typedef_die): Fill in variable-length typedefs.
25867 (gen_tagged_type_die): Gracefully return on error_mark_node.
25868 Handle re-entrancy.
25869 (gen_type_die_with_usage): Handle variable-length types.
25870 Remove duplicate code for ARRAY_TYPE case.
25871 (process_scope_var): Only process imported modules during early
25873 (dwarf2out_early_global_decl): New.
25874 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
25875 (dwarf2out_type_decl): Set early_dwarf while calling
25877 (dwarf2out_decl): Verify that we did not recreate a previously
25879 Do not return on DECL_EXTERNALs in VAR_DECLs.
25880 Abstract some code to local_function_static.
25881 (lookup_filename): Remove use of file_table_last_lookup.
25882 Gracefully exit on missing file_name.
25883 (dwarf2out_finish): Verify limbo list.
25884 Remove deferred_locations_list use.
25885 Move deferred_asm_name and limbo flushing to...
25886 (dwarf2out_early_finish): ...here. New.
25887 (dwarf2out_c_finalize): Remove set of deferred_location_list,
25888 deferred_asm_name, and file_table_last_lookup.
25889 * cgraph.h (referred_to_p): Add default argument.
25890 * cgraphunit.c (referred_to_p): Add and handle include_self
25892 (analyze_functions): Add first_time argument.
25893 Call check_global_declaration for all symbols.
25894 Call late_global_decl for nodes for moribund nodes.
25895 (finalize_compilation_unit): Add new argument to
25897 Call early_global_decl for functions.
25898 Call early_finish debug hook.
25899 * dbxout.c (dbxout_early_global_decl): New.
25900 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
25901 (dbx_debug_hooks): Add new hooks.
25902 (xcoff_debug_hooks): Same.
25903 * debug.c (do_nothing_debug_hooks): Add early_finish field.
25904 Add early and late debug hooks.
25905 Remove global_decl hook.
25906 * debug.h (struct gcc_debug_hooks): Add early_finish,
25907 early_global_decl, and late_global_decl fields.
25908 Remove global_decl field.
25909 Document gcc_debug_hooks.
25910 * gengtype.c (output_typename): Remove.
25911 * godump.c (go_early_global_decl): New.
25912 (go_late_global_decl): New.
25913 (go_global_decl): Remove.
25914 (dump_go_spec_init): Remove global_decl. Add
25915 {early,late}_global_decl.
25916 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
25917 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
25918 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
25919 (write_global_declarations): Remove.
25920 (global_decl_processing): New.
25921 * langhooks.h (struct lang_hooks_for_decls): Remove
25922 final_write_globals field.
25923 Add post_compilation_parsing_cleanups field.
25924 * passes.c (rest_of_decl_compilation): Call early_global_decl.
25925 * sdbout.c: Add early and late_global_decl hooks. Remove
25926 sdbout_global_decl hook.
25927 Add early_finish field for sdb_debug_hooks.
25928 (sdbout_global_decl): Remove.
25929 (sdbout_early_global_decl): New.
25930 (sdbout_late_global_decl): New.
25931 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
25932 * toplev.c (check_global_declaration): Rename from
25933 check_global_declaration_1.
25934 Adapt to use symtab infrastructure.
25935 (check_global_declarations): Remove.
25936 (emit_debug_global_declarations): Remove.
25937 (compile_file): Remove call to final_write_globals langhook.
25938 Run the actual compilation process.
25939 Perform any post compilation parser cleanups.
25940 Generate late debug info.
25941 * toplev.h (check_global_declaration): New.
25942 (check_global_declaration_1): Remove.
25943 (check_global_declarations): Remove.
25944 (write_global_declarations): Remove.
25945 (emit_debug_global_declarations): Remove.
25946 (global_decl_processing): New.
25947 * tree-core.h (struct tree_block): Add DIE field.
25948 * tree.h (BLOCK_DIE): New.
25949 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
25951 (vmsdbgout_early_global_decl): New.
25952 (vmsdbgout_late_global_decl): New.
25953 Add early_finish debug hook field to vmsdbg_debug_hooks.
25954 Remove vmsdbgout_decl to vmsdbgout_function_decl.
25955 Add early and late_global_decl debug hooks.
25957 2015-06-05 Julian Brown <julian@codesourcery.com>
25958 Sandra Loosemore <sandra@codesourcery.com>
25960 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
25961 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
25962 to print-sysroot-suffix.sh script.
25964 2015-06-05 Tom de Vries <tom@codesourcery.com>
25966 merge from gomp4 branch:
25967 2015-05-28 Tom de Vries <tom@codesourcery.com>
25969 PR tree-optimization/65443
25970 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
25971 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
25972 (try_transform_to_exit_first_loop_alt): New function.
25973 (transform_to_exit_first_loop): Use
25974 try_transform_to_exit_first_loop_alt.
25976 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
25978 * builtins.c (expand_builtin_atomic_compare_exchange): Call
25979 emit_cmp_and_jump_insns with the mode of target.
25981 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
25983 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
25985 2015-06-04 DJ Delorie <dj@redhat.com>
25987 * config/msp430/msp430.md (movsi_s): New. Special case for
25988 storing a 20-bit symbol into a 32-bit register.
25989 * config/msp430/msp430.c (msp430_subreg): Add support for it.
25990 * config/msp430/predicates.md (msp430_symbol_operand): New.
25992 2015-06-04 Sriraman Tallam <tmsriram@google.com>
25994 * c-family/c-common.c (noplt): New attribute.
25995 (handle_noplt_attribute): New handler.
25996 * calls.c (prepare_call_address): Check for noplt
25998 * config/i386/i386.c (ix86_expand_call): Check
25999 for noplt attribute.
26000 (ix86_nopic_noplt_attribute_p): New function.
26001 (ix86_output_call_insn): Output indirect call for non-pic
26003 * doc/extend.texi (noplt): Document new attribute.
26004 * doc/invoke.texi: Document new attribute.
26006 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
26008 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
26009 real.h, and fixed-value.h when included in host source files.
26010 * double-int.h: Remove redundant #includes listed above.
26011 * fixed-value.h: Likewise.
26012 * real.h: Likewise.
26013 * wide-int.h: Likewise.
26014 * inchash.h: Likewise.
26015 * rtl.h: Add some include files When included from a generator file.
26016 * target.h: Remove wide-int.h and insn-modes.h from the include list.
26017 * internal-fn.h: Don't include coretypes.h.
26018 * alias.c: Adjust includes for restructured coretypes.h.
26019 * asan.c: Likewise.
26020 * attribs.c: Likewise.
26021 * auto-inc-dec.c: Likewise.
26022 * auto-profile.c: Likewise.
26023 * bb-reorder.c: Likewise.
26024 * bt-load.c: Likewise.
26025 * builtins.c: Likewise.
26026 * caller-save.c: Likewise.
26027 * calls.c: Likewise.
26028 * ccmp.c: Likewise.
26030 * cfganal.c: Likewise.
26031 * cfgbuild.c: Likewise.
26032 * cfgcleanup.c: Likewise.
26033 * cfgexpand.c: Likewise.
26034 * cfghooks.c: Likewise.
26035 * cfgloop.c: Likewise.
26036 * cfgloop.h: Likewise.
26037 * cfgloopanal.c: Likewise.
26038 * cfgloopmanip.c: Likewise.
26039 * cfgrtl.c: Likewise.
26040 * cgraph.c: Likewise.
26041 * cgraphbuild.c: Likewise.
26042 * cgraphclones.c: Likewise.
26043 * cgraphunit.c: Likewise.
26044 * cilk-common.c: Likewise.
26045 * combine-stack-adj.c: Likewise.
26046 * combine.c: Likewise.
26047 * compare-elim.c: Likewise.
26048 * convert.c: Likewise.
26049 * coverage.c: Likewise.
26050 * cppbuiltin.c: Likewise.
26051 * cprop.c: Likewise.
26053 * cselib.c: Likewise.
26054 * data-streamer-in.c: Likewise.
26055 * data-streamer-out.c: Likewise.
26056 * data-streamer.c: Likewise.
26057 * dbxout.c: Likewise.
26060 * debug.c: Likewise.
26061 * df-core.c: Likewise.
26062 * df-problems.c: Likewise.
26063 * df-scan.c: Likewise.
26066 * dojump.c: Likewise.
26067 * dominance.c: Likewise.
26068 * domwalk.c: Likewise.
26069 * double-int.c: Likewise.
26071 * dumpfile.c: Likewise.
26072 * dwarf2asm.c: Likewise.
26073 * dwarf2cfi.c: Likewise.
26074 * dwarf2out.c: Likewise.
26075 * dwarf2out.h: Likewise.
26076 * emit-rtl.c: Likewise.
26077 * et-forest.c: Likewise.
26078 * except.c: Likewise.
26079 * explow.c: Likewise.
26080 * expmed.c: Likewise.
26081 * expr.c: Likewise.
26082 * final.c: Likewise.
26083 * fixed-value.c: Likewise.
26084 * fold-const.c: Likewise.
26085 * function.c: Likewise.
26086 * fwprop.c: Likewise.
26087 * gcc-plugin.h: Likewise.
26088 * gcse.c: Likewise.
26089 * generic-match-head.c: Likewise.
26090 * ggc-page.c: Likewise.
26091 * gimple-builder.c: Likewise.
26092 * gimple-expr.c: Likewise.
26093 * gimple-fold.c: Likewise.
26094 * gimple-iterator.c: Likewise.
26095 * gimple-low.c: Likewise.
26096 * gimple-match-head.c: Likewise.
26097 * gimple-pretty-print.c: Likewise.
26098 * gimple-ssa-isolate-paths.c: Likewise.
26099 * gimple-ssa-strength-reduction.c: Likewise.
26100 * gimple-streamer-in.c: Likewise.
26101 * gimple-streamer-out.c: Likewise.
26102 * gimple-streamer.h: Likewise.
26103 * gimple-walk.c: Likewise.
26104 * gimple.c: Likewise.
26105 * gimplify-me.c: Likewise.
26106 * gimplify.c: Likewise.
26107 * godump.c: Likewise.
26108 * graph.c: Likewise.
26109 * graphite-blocking.c: Likewise.
26110 * graphite-dependences.c: Likewise.
26111 * graphite-interchange.c: Likewise.
26112 * graphite-isl-ast-to-gimple.c: Likewise.
26113 * graphite-optimize-isl.c: Likewise.
26114 * graphite-poly.c: Likewise.
26115 * graphite-scop-detection.c: Likewise.
26116 * graphite-sese-to-poly.c: Likewise.
26117 * graphite.c: Likewise.
26118 * haifa-sched.c: Likewise.
26119 * hooks.h: Likewise.
26120 * hw-doloop.c: Likewise.
26121 * ifcvt.c: Likewise.
26122 * incpath.c: Likewise.
26123 * init-regs.c: Likewise.
26124 * internal-fn.c: Likewise.
26125 * ipa-chkp.c: Likewise.
26126 * ipa-comdats.c: Likewise.
26127 * ipa-cp.c: Likewise.
26128 * ipa-devirt.c: Likewise.
26129 * ipa-icf-gimple.c: Likewise.
26130 * ipa-icf.c: Likewise.
26131 * ipa-inline-analysis.c: Likewise.
26132 * ipa-inline-transform.c: Likewise.
26133 * ipa-inline.c: Likewise.
26134 * ipa-polymorphic-call.c: Likewise.
26135 * ipa-profile.c: Likewise.
26136 * ipa-prop.c: Likewise.
26137 * ipa-pure-const.c: Likewise.
26138 * ipa-ref.c: Likewise.
26139 * ipa-reference.c: Likewise.
26140 * ipa-split.c: Likewise.
26141 * ipa-utils.c: Likewise.
26142 * ipa-visibility.c: Likewise.
26144 * ira-build.c: Likewise.
26145 * ira-color.c: Likewise.
26146 * ira-conflicts.c: Likewise.
26147 * ira-costs.c: Likewise.
26148 * ira-emit.c: Likewise.
26149 * ira-lives.c: Likewise.
26151 * jump.c: Likewise.
26152 * langhooks.c: Likewise.
26154 * loop-doloop.c: Likewise.
26155 * loop-init.c: Likewise.
26156 * loop-invariant.c: Likewise.
26157 * loop-iv.c: Likewise.
26158 * loop-unroll.c: Likewise.
26159 * lower-subreg.c: Likewise.
26160 * lra-assigns.c: Likewise.
26161 * lra-coalesce.c: Likewise.
26162 * lra-constraints.c: Likewise.
26163 * lra-eliminations.c: Likewise.
26164 * lra-lives.c: Likewise.
26165 * lra-remat.c: Likewise.
26166 * lra-spills.c: Likewise.
26168 * lto-cgraph.c: Likewise.
26169 * lto-compress.c: Likewise.
26170 * lto-opts.c: Likewise.
26171 * lto-section-in.c: Likewise.
26172 * lto-section-out.c: Likewise.
26173 * lto-streamer-in.c: Likewise.
26174 * lto-streamer-out.c: Likewise.
26175 * lto-streamer.c: Likewise.
26177 * mode-switching.c: Likewise.
26178 * modulo-sched.c: Likewise.
26179 * omega.c: Likewise.
26180 * omp-low.c: Likewise.
26181 * optabs.c: Likewise.
26182 * opts-global.c: Likewise.
26183 * passes.c: Likewise.
26184 * plugin.c: Likewise.
26185 * postreload-gcse.c: Likewise.
26186 * postreload.c: Likewise.
26187 * predict.c: Likewise.
26188 * print-rtl.c: Likewise.
26189 * print-tree.c: Likewise.
26190 * profile.c: Likewise.
26191 * real.c: Likewise.
26192 * realmpfr.c: Likewise.
26193 * realmpfr.h: Likewise.
26194 * recog.c: Likewise.
26196 * reg-stack.c: Likewise.
26197 * regcprop.c: Likewise.
26198 * reginfo.c: Likewise.
26199 * regrename.c: Likewise.
26200 * regs.h: Likewise.
26201 * regstat.c: Likewise.
26202 * reload.c: Likewise.
26203 * reload1.c: Likewise.
26204 * reorg.c: Likewise.
26205 * resource.c: Likewise.
26206 * rtl-chkp.c: Likewise.
26207 * rtlanal.c: Likewise.
26208 * rtlhooks.c: Likewise.
26209 * sanopt.c: Likewise.
26210 * sched-deps.c: Likewise.
26211 * sched-ebb.c: Likewise.
26212 * sched-rgn.c: Likewise.
26213 * sched-vis.c: Likewise.
26214 * sdbout.c: Likewise.
26215 * sel-sched-dump.c: Likewise.
26216 * sel-sched-ir.c: Likewise.
26217 * sel-sched.c: Likewise.
26218 * sese.c: Likewise.
26219 * shrink-wrap.c: Likewise.
26220 * shrink-wrap.h: Likewise.
26221 * simplify-rtx.c: Likewise.
26222 * stack-ptr-mod.c: Likewise.
26223 * statistics.c: Likewise.
26224 * stmt.c: Likewise.
26225 * stor-layout.c: Likewise.
26226 * store-motion.c: Likewise.
26227 * stringpool.c: Likewise.
26228 * symtab.c: Likewise.
26229 * target-globals.c: Likewise.
26230 * targhooks.c: Likewise.
26231 * toplev.c: Likewise.
26232 * tracer.c: Likewise.
26233 * trans-mem.c: Likewise.
26234 * tree-affine.c: Likewise.
26235 * tree-affine.h: Likewise.
26236 * tree-browser.c: Likewise.
26237 * tree-call-cdce.c: Likewise.
26238 * tree-cfg.c: Likewise.
26239 * tree-cfgcleanup.c: Likewise.
26240 * tree-chkp-opt.c: Likewise.
26241 * tree-chkp.c: Likewise.
26242 * tree-chrec.c: Likewise.
26243 * tree-complex.c: Likewise.
26244 * tree-data-ref.c: Likewise.
26245 * tree-dfa.c: Likewise.
26246 * tree-diagnostic.c: Likewise.
26247 * tree-dump.c: Likewise.
26248 * tree-eh.c: Likewise.
26249 * tree-emutls.c: Likewise.
26250 * tree-if-conv.c: Likewise.
26251 * tree-inline.c: Likewise.
26252 * tree-into-ssa.c: Likewise.
26253 * tree-iterator.c: Likewise.
26254 * tree-loop-distribution.c: Likewise.
26255 * tree-nested.c: Likewise.
26256 * tree-nrv.c: Likewise.
26257 * tree-object-size.c: Likewise.
26258 * tree-outof-ssa.c: Likewise.
26259 * tree-parloops.c: Likewise.
26260 * tree-phinodes.c: Likewise.
26261 * tree-predcom.c: Likewise.
26262 * tree-pretty-print.c: Likewise.
26263 * tree-pretty-print.h: Likewise.
26264 * tree-profile.c: Likewise.
26265 * tree-scalar-evolution.c: Likewise.
26266 * tree-sra.c: Likewise.
26267 * tree-ssa-address.c: Likewise.
26268 * tree-ssa-alias.c: Likewise.
26269 * tree-ssa-ccp.c: Likewise.
26270 * tree-ssa-coalesce.c: Likewise.
26271 * tree-ssa-copy.c: Likewise.
26272 * tree-ssa-copyrename.c: Likewise.
26273 * tree-ssa-dce.c: Likewise.
26274 * tree-ssa-dom.c: Likewise.
26275 * tree-ssa-dse.c: Likewise.
26276 * tree-ssa-forwprop.c: Likewise.
26277 * tree-ssa-ifcombine.c: Likewise.
26278 * tree-ssa-live.c: Likewise.
26279 * tree-ssa-loop-ch.c: Likewise.
26280 * tree-ssa-loop-im.c: Likewise.
26281 * tree-ssa-loop-ivcanon.c: Likewise.
26282 * tree-ssa-loop-ivopts.c: Likewise.
26283 * tree-ssa-loop-manip.c: Likewise.
26284 * tree-ssa-loop-niter.c: Likewise.
26285 * tree-ssa-loop-prefetch.c: Likewise.
26286 * tree-ssa-loop-unswitch.c: Likewise.
26287 * tree-ssa-loop.c: Likewise.
26288 * tree-ssa-loop.h: Likewise.
26289 * tree-ssa-math-opts.c: Likewise.
26290 * tree-ssa-operands.c: Likewise.
26291 * tree-ssa-phiopt.c: Likewise.
26292 * tree-ssa-phiprop.c: Likewise.
26293 * tree-ssa-pre.c: Likewise.
26294 * tree-ssa-propagate.c: Likewise.
26295 * tree-ssa-reassoc.c: Likewise.
26296 * tree-ssa-sccvn.c: Likewise.
26297 * tree-ssa-scopedtables.c: Likewise.
26298 * tree-ssa-sink.c: Likewise.
26299 * tree-ssa-strlen.c: Likewise.
26300 * tree-ssa-structalias.c: Likewise.
26301 * tree-ssa-tail-merge.c: Likewise.
26302 * tree-ssa-ter.c: Likewise.
26303 * tree-ssa-threadedge.c: Likewise.
26304 * tree-ssa-threadupdate.c: Likewise.
26305 * tree-ssa-uncprop.c: Likewise.
26306 * tree-ssa-uninit.c: Likewise.
26307 * tree-ssa.c: Likewise.
26308 * tree-ssanames.c: Likewise.
26309 * tree-stdarg.c: Likewise.
26310 * tree-streamer-in.c: Likewise.
26311 * tree-streamer-out.c: Likewise.
26312 * tree-streamer.c: Likewise.
26313 * tree-switch-conversion.c: Likewise.
26314 * tree-tailcall.c: Likewise.
26315 * tree-vect-data-refs.c: Likewise.
26316 * tree-vect-generic.c: Likewise.
26317 * tree-vect-loop-manip.c: Likewise.
26318 * tree-vect-loop.c: Likewise.
26319 * tree-vect-patterns.c: Likewise.
26320 * tree-vect-slp.c: Likewise.
26321 * tree-vect-stmts.c: Likewise.
26322 * tree-vectorizer.c: Likewise.
26323 * tree-vrp.c: Likewise.
26324 * tree.c: Likewise.
26325 * tsan.c: Likewise.
26326 * ubsan.c: Likewise.
26327 * valtrack.c: Likewise.
26328 * value-prof.c: Likewise.
26329 * var-tracking.c: Likewise.
26330 * varasm.c: Likewise.
26331 * varpool.c: Likewise.
26332 * vmsdbgout.c: Likewise.
26333 * vtable-verify.c: Likewise.
26335 * wide-int-print.cc: Likewise.
26336 * wide-int-print.h: Likewise.
26337 * wide-int.cc: Likewise.
26338 * xcoffout.c: Likewise.
26339 * config/aarch64/aarch64-builtins.c: Likewise.
26340 * config/aarch64/aarch64.c: Likewise.
26341 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
26342 * config/alpha/alpha.c: Likewise.
26343 * config/arc/arc.c: Likewise.
26344 * config/arm/aarch-common.c: Likewise.
26345 * config/arm/arm-builtins.c: Likewise.
26346 * config/arm/arm-c.c: Likewise.
26347 * config/arm/arm.c: Likewise.
26348 * config/avr/avr-c.c: Likewise.
26349 * config/avr/avr-log.c: Likewise.
26350 * config/avr/avr.c: Likewise.
26351 * config/bfin/bfin.c: Likewise.
26352 * config/c6x/c6x.c: Likewise.
26353 * config/cr16/cr16.c: Likewise.
26354 * config/cris/cris.c: Likewise.
26355 * config/darwin-c.c: Likewise.
26356 * config/darwin.c: Likewise.
26357 * config/default-c.c: Likewise.
26358 * config/epiphany/epiphany.c: Likewise.
26359 * config/epiphany/mode-switch-use.c: Likewise.
26360 * config/epiphany/resolve-sw-modes.c: Likewise.
26361 * config/fr30/fr30.c: Likewise.
26362 * config/frv/frv.c: Likewise.
26363 * config/ft32/ft32.c: Likewise.
26364 * config/glibc-c.c: Likewise.
26365 * config/h8300/h8300.c: Likewise.
26366 * config/i386/i386-c.c: Likewise.
26367 * config/i386/i386.c: Likewise.
26368 * config/i386/msformat-c.c: Likewise.
26369 * config/i386/winnt-cxx.c: Likewise.
26370 * config/i386/winnt-stubs.c: Likewise.
26371 * config/i386/winnt.c: Likewise.
26372 * config/ia64/ia64-c.c: Likewise.
26373 * config/ia64/ia64.c: Likewise.
26374 * config/iq2000/iq2000.c: Likewise.
26375 * config/lm32/lm32.c: Likewise.
26376 * config/m32c/m32c-pragma.c: Likewise.
26377 * config/m32c/m32c.c: Likewise.
26378 * config/m32r/m32r.c: Likewise.
26379 * config/m68k/m68k.c: Likewise.
26380 * config/mcore/mcore.c: Likewise.
26381 * config/mep/mep-pragma.c: Likewise.
26382 * config/mep/mep.c: Likewise.
26383 * config/microblaze/microblaze-c.c: Likewise.
26384 * config/microblaze/microblaze.c: Likewise.
26385 * config/mips/mips.c: Likewise.
26386 * config/mmix/mmix.c: Likewise.
26387 * config/mn10300/mn10300.c: Likewise.
26388 * config/moxie/moxie.c: Likewise.
26389 * config/msp430/msp430-c.c: Likewise.
26390 * config/msp430/msp430.c: Likewise.
26391 * config/nds32/nds32-cost.c: Likewise.
26392 * config/nds32/nds32-fp-as-gp.c: Likewise.
26393 * config/nds32/nds32-intrinsic.c: Likewise.
26394 * config/nds32/nds32-isr.c: Likewise.
26395 * config/nds32/nds32-md-auxiliary.c: Likewise.
26396 * config/nds32/nds32-memory-manipulation.c: Likewise.
26397 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
26398 * config/nds32/nds32-predicates.c: Likewise.
26399 * config/nds32/nds32.c: Likewise.
26400 * config/nios2/nios2.c: Likewise.
26401 * config/nvptx/nvptx.c: Likewise.
26402 * config/pa/pa.c: Likewise.
26403 * config/pdp11/pdp11.c: Likewise.
26404 * config/rl78/rl78-c.c: Likewise.
26405 * config/rl78/rl78.c: Likewise.
26406 * config/rs6000/rs6000-c.c: Likewise.
26407 * config/rs6000/rs6000.c: Likewise.
26408 * config/rx/rx.c: Likewise.
26409 * config/s390/s390-c.c: Likewise.
26410 * config/s390/s390.c: Likewise.
26411 * config/sh/sh-c.c: Likewise.
26412 * config/sh/sh-mem.cc: Likewise.
26413 * config/sh/sh.c: Likewise.
26414 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
26415 * config/sh/sh_treg_combine.cc: Likewise.
26416 * config/sol2-c.c: Likewise.
26417 * config/sol2-cxx.c: Likewise.
26418 * config/sol2-stubs.c: Likewise.
26419 * config/sol2.c: Likewise.
26420 * config/sparc/sparc-c.c: Likewise.
26421 * config/sparc/sparc.c: Likewise.
26422 * config/spu/spu-c.c: Likewise.
26423 * config/spu/spu.c: Likewise.
26424 * config/stormy16/stormy16.c: Likewise.
26425 * config/tilegx/mul-tables.c: Likewise.
26426 * config/tilegx/tilegx-c.c: Likewise.
26427 * config/tilegx/tilegx.c: Likewise.
26428 * config/tilepro/mul-tables.c: Likewise.
26429 * config/tilepro/tilepro-c.c: Likewise.
26430 * config/tilepro/tilepro.c: Likewise.
26431 * config/v850/v850-c.c: Likewise.
26432 * config/v850/v850.c: Likewise.
26433 * config/vax/vax.c: Likewise.
26434 * config/visium/visium.c: Likewise.
26435 * config/vms/vms-c.c: Likewise.
26436 * config/vms/vms.c: Likewise.
26437 * config/vxworks.c: Likewise.
26438 * config/winnt-c.c: Likewise.
26439 * config/xtensa/xtensa.c: Likewise.
26440 * common/config/bfin/bfin-common.c: Likewise.
26442 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
26444 * tree.h (tree_code_for_canonical_type_merging): New function.
26445 * tree.c (gimple_canonical_types_compatible_p): Use
26446 tree_code_for_canonical_type_merging..
26448 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26452 * doc/tm.texi: Regenerate.
26453 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
26454 * target.def (TARGET_RELAXED_ORDERING): Likewise.
26455 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
26456 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
26457 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
26458 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
26459 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
26460 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
26461 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
26463 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26465 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
26466 register fma steering pass.
26467 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
26468 AARCH64_TUNE_FMA_STEERING.
26470 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
26472 * tree.c (verify_type_variant): Verify that type and variant is
26474 (gimple_canonical_types_compatible_p): Look for main variants.
26476 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
26478 * config.gcc (powerpc*-*-*): Add support for a new configure
26479 option --with-advance-toolchain=<xxx> which overrides using the
26480 default header files, libraries and dynamic linker.
26482 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
26483 specs to support the configure --with-advance-toolchain=<xxx>
26485 (INCLUDE_EXTRA_SPEC): Likewise.
26486 (LINK_OS_EXTRA_SPEC32): Likewise.
26487 (LINK_OK_EXTRA_SPEC64): Likewise.
26488 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
26489 (DYNAMIC_LINKER_PREFIX): Likewise.
26490 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
26492 (GLIBC_DYNAMIC_LINKER32): Likewise.
26493 (GLIBC_DYNAMIC_LINKER64): Likewise.
26494 (LINK_OS_LINUX_SPEC32): Likewise.
26495 (LINK_OS_LINUX_SPEC64): Likewise.
26497 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
26498 configuration option.
26500 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
26503 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
26504 to determine current function ABI.
26505 (ix86_function_value_regno_p): Ditto.
26507 2015-06-03 Martin Liska <mliska@suse.cz>
26509 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
26510 * bitmap.h (struct bitmap_usage): Likewise.
26511 * ggc-common.c (struct ggc_usage): Likewise.
26512 * mem-stats.h (struct mem_location): Likewise.
26513 (struct mem_usage): Likewise.
26514 * vec.c (struct vec_usage): Likewise.
26516 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
26518 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
26521 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
26523 * doc/plugins.texi (enum plugin_event): New event.
26524 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
26525 and PLUGIN_FINISH_FUNCTION.
26526 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
26527 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
26529 2015-06-03 Richard Biener <rguenther@suse.de>
26531 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
26532 compute GROUP_GAP for the first element.
26533 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
26536 2015-06-03 Nick Clifton <nickc@redhat.com>
26538 * config/rl78/rl78-real.md: Add peepholes to avoid a register
26539 copy when calling a function.
26540 * config/rl78/rl78.c (need_to_save): Do not push the frame
26541 pointer in an interrupt handler prologue if it is never used.
26543 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26545 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
26547 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
26549 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
26550 reference when cloning alias node.
26552 2015-06-03 Martin Liska <mliska@suse.cz>
26554 * alloc-pool.h (struct pool_usage): Correct space padding.
26555 * ggc-page.c (ggc_print_statistics): Align columns in a report.
26556 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
26557 * tree.c (dump_tree_statistics): Align columns in a report.
26559 2015-06-03 Martin Liska <mliska@suse.cz>
26561 * alloc-pool.c (allocate_pool_descriptor): Remove.
26562 (struct pool_output_info): Likewise.
26563 (print_alloc_pool_statistics): Likewise.
26564 (dump_alloc_pool_statistics): Likewise.
26565 * alloc-pool.h (struct pool_usage): New struct.
26566 (pool_allocator::initialize): Change usage of memory statistics
26567 to a new interface.
26568 (pool_allocator::release): Likewise.
26569 (pool_allocator::allocate): Likewise.
26570 (pool_allocator::remove): Likewise.
26571 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
26572 for a pool allocator.
26573 * mem-stats.h (struct mem_location): Add new ctor.
26574 (struct mem_usage): Add counter for number of
26576 (mem_alloc_description::register_descriptor): New overload of
26577 * mem-stats.h (mem_location::to_string): New function.
26578 * bitmap.h (struct bitmap_usage): Use this new function.
26579 * ggc-common.c (struct ggc_usage): Likewise.
26582 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
26584 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
26585 of GCC_INSN_FLAGS_H block.
26587 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
26589 * explow.c (plus_constant): Update check after force_const_mem call
26590 to see if the value returned is not a NULL_RTX.
26592 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
26594 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
26595 remove instumentation thunks calling reachable functions.
26596 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
26597 * lto/lto-partition.c (privatize_symbol_name_1): New.
26598 (privatize_symbol_name): Privatize both decl and orig_decl
26599 names for instrumented functions.
26600 * cgraph.c (cgraph_node::verify_node): Add transparent
26601 alias chain check for instrumented node.
26603 2015-06-03 Marek Polacek <polacek@redhat.com>
26607 * tree.c (attribute_value_equal): Handle attribute format.
26608 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
26610 2015-06-03 Richard Biener <rguenther@suse.de>
26612 PR tree-optimization/63916
26613 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
26614 Forward-propagate non-invariant addresses by splicing their
26615 reference ops if the result isn't going to be used by PRE.
26616 (vn_reference_lookup_3): Remove pointless assert.
26618 2015-06-03 Richard Biener <rguenther@suse.de>
26620 PR tree-optimization/66375
26621 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
26622 add to the evolution before following SSA edges.
26624 2015-06-03 Bin Cheng <bin.cheng@arm.com>
26626 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
26627 (dump_use, dump_cand, find_induction_variables): Pass new argument
26629 (record_use): Preserve the ssa name information in IV.
26631 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
26633 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
26635 (add_mode_tests): Don't add mode tests if the predicate only
26636 accepts scalar constant integers. Otherwise, allow the mode
26637 of "op" to be VOIDmode if the predicate does accept such integers.
26639 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
26642 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
26643 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
26644 (aarch64_secondary_reload): Likewise
26645 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
26647 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
26650 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
26651 Zhenqiang Chen <zhenqiang.chen@linaro.org>
26654 * cprop.c (try_replace_reg): Check cost of constants before propagating.
26656 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
26658 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
26659 provide access to the IBM extended double floating point mode if
26660 long double is IEEE 128-bit floating point.
26661 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
26662 point if long double is the IBM extended double type.
26664 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
26665 enable adding IEEE 128-bit floating point support.
26666 (-mfloat128-software): Likewise.
26667 (-mfloat128-sw): Likewise.
26669 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
26670 128-bit floating point types to occupy any register if
26671 -mlong-double-64. Do not allow use of IFmode/KFmode unless
26672 -mfloat128-software is enabled.
26673 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
26675 (rs6000_option_override_internal): Add -mfloat128-* support.
26676 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
26678 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
26679 and float128 type nodes.
26680 (ieee128_float_type_node): Likewise.
26681 (ibm128_float_type_node): Likewise.
26683 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26686 * config/aarch64/geniterators.sh: Rewrite in awk.
26688 2015-06-02 Martin Liska <mliska@suse.cz>
26690 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
26691 values to avoid -Wmaybe-uninitialized errors.
26693 2015-06-02 Richard Biener <rguenther@suse.de>
26696 * dwarf2out.c (lookup_context_die): New function.
26697 (resolve_addr): Avoid forcing a full DIE for the
26698 target of a DW_TAG_GNU_call_site during late compilation.
26699 Instead create a stub DIE without a type if we have a
26700 context DIE present.
26702 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
26704 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
26706 2015-06-02 Bin Cheng <bin.cheng@arm.com>
26708 PR tree-optimization/48052
26709 * cfgloop.h (struct control_iv): New.
26710 (struct loop): New field control_ivs.
26711 * tree-ssa-loop-niter.c : Include "stor-layout.h".
26712 (number_of_iterations_lt): Set no_overflow information.
26713 (number_of_iterations_exit): Init control iv in niter struct.
26714 (record_control_iv): New.
26715 (estimate_numbers_of_iterations_loop): Call record_control_iv.
26716 (loop_exits_before_overflow): New. Interface factored out of
26717 scev_probably_wraps_p.
26718 (scev_probably_wraps_p): Factor loop niter related code into
26719 loop_exits_before_overflow.
26720 (free_numbers_of_iterations_estimates_loop): Free control ivs.
26721 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
26723 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
26725 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
26726 the target doesn't belong to the current function.
26728 2015-06-02 Marek Polacek <polacek@redhat.com>
26730 PR middle-end/66345
26731 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
26732 get_maxval_strlen does not produce an INTEGER_CST.
26734 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
26736 * config/arc/constraints.md: Use lower-case names in match_code.
26737 * config/mmix/constraints.md: Likewise.
26739 2015-06-02 Richard Biener <rguenther@suse.de>
26741 PR tree-optimization/65961
26742 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
26743 check and clarify dump message.
26744 (vect_build_slp_tree): If all children are built up from scalars
26745 build up the parent from scalars instead.
26746 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
26748 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
26751 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
26752 instead of print ... .
26754 2015-06-02 Alan Modra <amodra@gmail.com>
26756 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
26759 2015-06-02 Bin Cheng <bin.cheng@arm.com>
26761 PR tree-optimization/52563
26762 PR tree-optimization/62173
26763 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
26764 (alloc_iv, set_iv): New parameter.
26765 (determine_biv_step): Delete.
26766 (find_bivs): Inline original determine_biv_step. Pass new
26767 argument to set_iv.
26768 (idx_find_step): Use no_overflow information for conversion.
26769 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
26770 resolve_mixers handle folded_casts.
26771 (instantiate_scev_name): Change bool parameter to bool pointer.
26772 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
26773 (instantiate_array_ref, instantiate_scev_not): Ditto.
26774 (instantiate_scev_3, instantiate_scev_2): Ditto.
26775 (instantiate_scev_1, instantiate_scev_r): Ditto.
26776 (instantiate_scev_convert, ): Change parameter. Pass argument
26777 to chrec_convert_aggressive.
26778 (instantiate_scev): Change argument.
26779 (resolve_mixers): New parameter and set it.
26780 (scev_const_prop): New argument.
26781 * tree-scalar-evolution.h (resolve_mixers): New parameter.
26782 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
26784 (chrec_convert): New parameter. Move definition below.
26785 (chrec_convert_aggressive): New parameter and set it. Call
26786 convert_affine_scev.
26787 * tree-chrec.h (chrec_convert): New parameter.
26788 (chrec_convert_aggressive): Ditto.
26790 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
26792 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
26793 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
26794 the LHS of a no-return call if its type has variable size.
26795 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
26796 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
26798 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
26800 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
26801 * config.in: Regenerate.
26803 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
26805 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
26806 consecutive accesses within outer-loop with force_vectorize
26807 for references with zero step in inner-loop.
26809 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
26811 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
26812 rather than from gcc/build directory.
26814 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
26817 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
26818 for __sync memory models, emit initial loads and final barriers as
26821 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
26824 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
26825 (aarch64_split_atomic_op): Check for __sync memory models, emit
26826 appropriate initial loads and final barriers.
26828 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
26830 * Makefile.in: Fix gcov dependencies that should
26831 not point to a build folder.
26833 2015-06-01 Richard Biener <rguenther@suse.de>
26836 2015-05-29 Richard Biener <rguenther@suse.de>
26838 PR tree-optimization/66314
26839 * tree-ssa-threadupdate.c (create_block_for_threading): Add
26840 parameter that says which loop the new block belongs to.
26841 (ssa_create_duplicates): Blocks duplicated for the threaded
26842 path belong to the loop of the thread destination.
26844 2015-06-01 Martin Liska <mliska@suse.cz>
26846 * sched-deps.c: Include pool-alloc.h before
26847 cselib.h header file is included.
26849 2015-06-01 Richard Biener <rguenther@suse.de>
26851 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
26854 2015-06-01 Martin Liska <mliska@suse.cz>
26856 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
26857 a function local variable.
26859 2015-06-01 Martin Liska <mliska@suse.cz>
26861 * alloc-pool.c (create_alloc_pool): Remove.
26862 (empty_alloc_pool): Likewise.
26863 (free_alloc_pool): Likewise.
26864 (free_alloc_pool_if_empty): Likewise.
26865 (pool_alloc): Likewise.
26866 (pool_free): Likewise.
26867 * alloc-pool.h: Remove old declarations.
26869 2015-06-01 Martin Liska <mliska@suse.cz>
26871 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
26872 (ira_create_object): Likewise.
26873 (ira_create_allocno): Likewise.
26874 (ira_create_live_range): Likewise.
26875 (copy_live_range): Likewise.
26876 (ira_finish_live_range): Likewise.
26877 (ira_free_allocno_costs): Likewise.
26878 (finish_allocno): Likewise.
26879 (finish_allocnos): Likewise.
26880 (initiate_prefs): Likewise.
26881 (ira_create_pref): Likewise.
26882 (finish_pref): Likewise.
26883 (finish_prefs): Likewise.
26884 (initiate_copies): Likewise.
26885 (ira_create_copy): Likewise.
26886 (finish_copy): Likewise.
26887 (finish_copies): Likewise.
26888 (finish_prefs): Likewise.
26890 2015-06-01 Martin Liska <mliska@suse.cz>
26892 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
26893 (allocate_and_init_ipcp_value): Likewise.
26894 (ipcp_lattice::add_value): Likewise.
26895 (merge_agg_lats_step): Likewise.
26896 (ipcp_driver): Likewise.
26897 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
26898 (ipa_free_all_structures_after_iinln): Likewise.
26899 * ipa-prop.h: Likewise.
26901 2015-06-01 Martin Liska <mliska@suse.cz>
26903 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
26905 (set_hint_predicate): Likewise.
26906 (inline_summary_alloc): Likewise.
26907 (reset_inline_edge_summary): Likewise.
26908 (reset_inline_summary): Likewise.
26909 (set_cond_stmt_execution_predicate): Likewise.
26910 (set_switch_stmt_execution_predicate): Likewise.
26911 (compute_bb_predicates): Likewise.
26912 (estimate_function_body_sizes): Likewise.
26913 (inline_free_summary): Likewise.
26915 2015-06-01 Martin Liska <mliska@suse.cz>
26917 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
26918 (ipa_edge_duplication_hook): Likewise.
26919 (ipa_free_all_structures_after_ipa_cp): Likewise.
26920 (ipa_free_all_structures_after_iinln): Likewise.
26922 2015-06-01 Martin Liska <mliska@suse.cz>
26924 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
26925 (ipa_profile_generate_summary): Likewise.
26926 (ipa_profile_read_summary): Likewise.
26927 (ipa_profile): Likewise.
26929 2015-06-01 Martin Liska <mliska@suse.cz>
26931 * tree-ssa-structalias.c (new_var_info): Use new type-based
26933 (new_constraint): Likewise.
26934 (init_alias_vars): Likewise.
26935 (delete_points_to_sets): Likewise.
26937 2015-06-01 Martin Liska <mliska@suse.cz>
26939 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
26940 (free_strinfo): Likewise.
26941 (pass_strlen::execute): Likewise.
26943 2015-06-01 Martin Liska <mliska@suse.cz>
26945 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
26947 (vn_reference_insert_pieces): Likewise.
26948 (vn_phi_insert): Likewise.
26949 (visit_reference_op_call): Likewise.
26950 (copy_phi): Likewise.
26951 (copy_reference): Likewise.
26952 (process_scc): Likewise.
26953 (allocate_vn_table): Likewise.
26954 (free_vn_table): Likewise.
26956 2015-06-01 Martin Liska <mliska@suse.cz>
26958 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
26960 (add_repeat_to_ops_vec): Likewise.
26961 (get_ops): Likewise.
26962 (maybe_optimize_range_tests): Likewise.
26963 (init_reassoc): Likewise.
26964 (fini_reassoc): Likewise.
26966 2015-06-01 Martin Liska <mliska@suse.cz>
26968 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
26970 (bitmap_set_new): Likewise.
26971 (get_or_alloc_expr_for_constant): Likewise.
26972 (get_or_alloc_expr_for): Likewise.
26973 (phi_translate_1): Likewise.
26974 (compute_avail): Likewise.
26975 (init_pre): Likewise.
26976 (fini_pre): Likewise.
26978 2015-06-01 Martin Liska <mliska@suse.cz>
26980 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
26981 (delete_dep_node): Likewise.
26982 (create_deps_list): Likewise.
26983 (free_deps_list): Likewise.
26984 (sched_deps_init): Likewise.
26985 (sched_deps_finish): Likewise.
26987 2015-06-01 Martin Liska <mliska@suse.cz>
26989 * regcprop.c (free_debug_insn_changes): Use new type-based
26991 (replace_oldest_value_reg): Likewise.
26992 (pass_cprop_hardreg::execute): Likewise.
26994 2015-06-01 Martin Liska <mliska@suse.cz>
26996 * ira-build.c (initiate_cost_vectors): Use new type-based
26998 (ira_allocate_cost_vector): Likewise.
26999 (ira_free_cost_vector): Likewise.
27000 (finish_cost_vectors): Likewise.
27002 2015-06-01 Martin Liska <mliska@suse.cz>
27004 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
27006 (free_sched_pools): Likewise.
27007 * sel-sched-ir.h (_list_alloc): Likewise.
27008 (_list_remove): Likewise.
27010 2015-06-01 Martin Liska <mliska@suse.cz>
27012 * stmt.c (add_case_node): Use new type-based pool allocator.
27013 (expand_case): Likewise.
27014 (expand_sjlj_dispatch_table): Likewise.
27016 2015-06-01 Martin Liska <mliska@suse.cz>
27018 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
27019 (free_bb): Likewise.
27020 (pass_cse_reciprocals::execute): Likewise.
27022 2015-06-01 Martin Liska <mliska@suse.cz>
27024 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
27025 (sra_deinitialize) Likewise.
27026 (create_access_1) Likewise.
27027 (build_accesses_from_assign) Likewise.
27028 (create_artificial_child_access) Likewise.
27030 2015-06-01 Martin Liska <mliska@suse.cz>
27032 * dse.c (get_group_info):Use new type-based pool allocator.
27033 (dse_step0) Likewise.
27034 (free_store_info) Likewise.
27035 (delete_dead_store_insn) Likewise.
27036 (free_read_records) Likewise.
27037 (record_store) Likewise.
27038 (replace_read) Likewise.
27039 (check_mem_read_rtx) Likewise.
27040 (scan_insn) Likewise.
27041 (dse_step1) Likewise.
27042 (dse_step7) Likewise.
27044 2015-06-01 Martin Liska <mliska@suse.cz>
27046 * df-scan.c (struct df_scan_problem_data):Use new type-based
27048 (df_scan_free_internal) Likewise.
27049 (df_scan_alloc) Likewise.
27050 (df_grow_reg_info) Likewise.
27051 (df_free_ref) Likewise.
27052 (df_insn_create_insn_record) Likewise.
27053 (df_mw_hardreg_chain_delete) Likewise.
27054 (df_insn_info_delete) Likewise.
27055 (df_free_collection_rec) Likewise.
27056 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
27057 (df_sort_and_compress_mws) Likewise.
27058 (df_ref_create_structure) Likewise.
27059 (df_ref_record) Likewise.
27061 2015-06-01 Martin Liska <mliska@suse.cz>
27063 * df-problems.c (df_chain_create):Use new type-based pool allocator.
27064 (df_chain_unlink_1) Likewise.
27065 (df_chain_unlink) Likewise.
27066 (df_chain_remove_problem) Likewise.
27067 (df_chain_alloc) Likewise.
27068 (df_chain_free) Likewise.
27069 * df.h (struct dataflow) Likewise.
27071 2015-06-01 Martin Liska <mliska@suse.cz>
27073 * cselib.c (new_elt_list):Use new type-based pool allocator.
27074 (new_elt_loc_list) Likewise.
27075 (unchain_one_elt_list) Likewise.
27076 (unchain_one_elt_loc_list) Likewise.
27077 (unchain_one_value) Likewise.
27078 (new_cselib_val) Likewise.
27079 (cselib_init) Likewise.
27080 (cselib_finish) Likewise.
27082 2015-06-01 Martin Liska <mliska@suse.cz>
27084 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
27085 (sh_reorg) Likewise.
27087 2015-06-01 Martin Liska <mliska@suse.cz>
27089 * cfg.c (initialize_original_copy_tables):Use new type-based
27091 (free_original_copy_tables) Likewise.
27092 (copy_original_table_clear) Likewise.
27093 (copy_original_table_set) Likewise.
27095 2015-06-01 Martin Liska <mliska@suse.cz>
27097 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
27099 (asan_mem_ref_new) Likewise.
27100 (free_mem_ref_resources) Likewise.
27102 2015-06-01 Martin Liska <mliska@suse.cz>
27104 * var-tracking.c (variable_htab_free):Use new type-based
27106 (attrs_list_clear) Likewise.
27107 (attrs_list_insert) Likewise.
27108 (attrs_list_copy) Likewise.
27109 (shared_hash_unshare) Likewise.
27110 (shared_hash_destroy) Likewise.
27111 (unshare_variable) Likewise.
27112 (var_reg_delete_and_set) Likewise.
27113 (var_reg_delete) Likewise.
27114 (var_regno_delete) Likewise.
27115 (drop_overlapping_mem_locs) Likewise.
27116 (variable_union) Likewise.
27117 (insert_into_intersection) Likewise.
27118 (canonicalize_values_star) Likewise.
27119 (variable_merge_over_cur) Likewise.
27120 (dataflow_set_merge) Likewise.
27121 (remove_duplicate_values) Likewise.
27122 (variable_post_merge_new_vals) Likewise.
27123 (dataflow_set_preserve_mem_locs) Likewise.
27124 (dataflow_set_remove_mem_locs) Likewise.
27125 (variable_from_dropped) Likewise.
27126 (variable_was_changed) Likewise.
27127 (set_slot_part) Likewise.
27128 (clobber_slot_part) Likewise.
27129 (delete_slot_part) Likewise.
27130 (loc_exp_insert_dep) Likewise.
27131 (notify_dependents_of_changed_value) Likewise.
27132 (emit_notes_for_differences_1) Likewise.
27133 (vt_emit_notes) Likewise.
27134 (vt_initialize) Likewise.
27135 (vt_finalize) Likewise.
27137 2015-06-01 Martin Liska <mliska@suse.cz>
27139 * ira-color.c (init_update_cost_records):Use new type-based
27141 (get_update_cost_record) Likewise.
27142 (free_update_cost_record_list) Likewise.
27143 (finish_update_cost_records) Likewise.
27144 (initiate_cost_update) Likewise.
27146 2015-06-01 Martin Liska <mliska@suse.cz>
27148 * lra.c (init_insn_regs): Use new type-based pool allocator.
27149 (new_insn_reg) Likewise.
27150 (free_insn_reg) Likewise.
27151 (free_insn_regs) Likewise.
27152 (finish_insn_regs) Likewise.
27153 (init_insn_recog_data) Likewise.
27154 (init_reg_info) Likewise.
27155 (finish_reg_info) Likewise.
27156 (lra_free_copies) Likewise.
27157 (lra_create_copy) Likewise.
27158 (invalidate_insn_data_regno_info) Likewise.
27160 2015-06-01 Martin Liska <mliska@suse.cz>
27162 * lra-lives.c (free_live_range): Use new type-based pool allocator.
27163 (free_live_range_list) Likewise.
27164 (create_live_range) Likewise.
27165 (copy_live_range) Likewise.
27166 (lra_merge_live_ranges) Likewise.
27167 (remove_some_program_points_and_update_live_ranges) Likewise.
27168 (lra_live_ranges_init) Likewise.
27169 (lra_live_ranges_finish) Likewise.
27171 2015-06-01 Martin Liska <mliska@suse.cz>
27173 * et-forest.c (et_new_occ): Use new type-based pool allocator.
27174 (et_new_tree): Likewise.
27175 (et_free_tree): Likewise.
27176 (et_free_tree_force): Likewise.
27177 (et_free_pools): Likewise.
27178 (et_split): Likewise.
27180 2015-06-01 Martin Liska <mliska@suse.cz>
27182 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
27184 * alloc-pool.h (pool_allocator::pool_allocator): New function.
27185 (pool_allocator::release): Likewise.
27186 (inline pool_allocator::release_if_empty): Likewise.
27187 (inline pool_allocator::~pool_allocator): Likewise.
27188 (pool_allocator::allocate): Likewise.
27189 (pool_allocator::remove): Likewise.
27191 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
27193 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
27196 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
27198 * config/arm/arm-protos.h (tune_params): Rename fuseable_ops
27200 * config/arm/arm.c (arm_print_tune_info): Likewise.
27201 (arm_macro_fusion_p): Likewise.
27202 (arm_macro_fusion_pair_p): Likewise.
27204 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
27206 * config/aarch64/aarch64-protos.h (tune_params): Rename
27207 fuseable_ops to fusible_ops.
27208 * config/aarch64/aarch64.c (generic_tunings): Rename
27209 fuseable_ops to fusible_ops.
27210 (cortexa53_tunings): Likewise.
27211 (cortexa57_tunings): Likewise.
27212 (thunderx_tunings): Likewise.
27213 (xgene1_tunings): Likewise.
27214 (aarch64_macro_fusion_p): Likewise.
27215 (aarch64_macro_fusion_pair_p): Likewise.
27217 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
27219 * config/s390/driver-native.c: New file.
27220 * config/s390/x-native: New file.
27221 * config.host: Add new files for s390.
27222 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
27224 * config.gcc: Likewise.
27225 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
27226 * config/s390/s390-opts.h (enum processor_type): Ditto.
27227 * config/s390/s390.c (s390_option_override): Catch unhandled
27230 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
27233 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
27234 redirection for instrumented calls.
27235 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
27236 (append_compiler_options): Append -fcheck-pointer-bounds.
27237 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
27238 (chkp_redirect_edge): New.
27239 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
27240 (chkp_redirect_edge): New.
27242 2015-06-01 Richard Biener <rguenther@suse.de>
27244 PR tree-optimization/66280
27245 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
27248 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27250 * config/aarch64/aarch64.md
27251 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
27254 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
27256 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
27257 Remove obsolete kludge.
27259 2015-06-01 Richard Biener <rguenther@suse.de>
27261 * tree-ssa-reassoc.c (get_rank): Simplify.
27263 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
27265 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
27266 * configure: Regenerated.
27268 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
27270 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
27271 issue (add space between string literal and macro).
27272 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
27274 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
27276 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
27277 implict or explicit -fPIE or -fpie.
27279 2015-05-30 Mike Frysinger <vapier@gentoo.org>
27281 * config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
27283 2015-05-28 DJ Delorie <dj@redhat.com>
27285 * expmed.c (extract_bit_field_1): Avoid clobbering a
27286 yet-to-be-used base/index register.
27288 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
27290 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
27291 (alias_stats): Add num_universal.
27292 (alias_set_subset_of): Special case pointers; be ready for NULL
27294 (alias_sets_conflict_p): Special case pointers; be ready for NULL
27296 (init_alias_set_entry): Break out from ...
27297 (record_alias_subset): ... here; propagate new fields;
27298 allocate children only when really needed.
27299 (get_alias_set): Do less generous pointer globbing.
27300 (dump_alias_stats_in_alias_c): Update statistics.
27302 2015-05-30 Alan Modra <amodra@gmail.com>
27304 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
27305 correct block for use of r12.
27306 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
27308 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
27311 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
27314 2015-05-29 Jakub Jelinek <jakub@redhat.com>
27316 PR tree-optimization/66142
27317 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
27318 virtual phis that feed themselves.
27320 2015-05-29 Richard Biener <rguenther@suse.de>
27322 PR tree-optimization/66314
27323 * tree-ssa-threadupdate.c (create_block_for_threading): Add
27324 parameter that says which loop the new block belongs to.
27325 (ssa_create_duplicates): Blocks duplicated for the threaded
27326 path belong to the loop of the thread destination.
27328 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
27330 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
27331 to cleanup-saved-temps.
27332 * doc/sourcebuild.texi (Clean up generated test files): Expand
27334 (dg-keep-saved-temps): Document new proc.
27335 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
27336 cleanup-saved-temps): Remove.
27338 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
27340 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
27341 gcc_AC_CHECK_DECLS.
27342 * configure: Regenerate.
27344 2015-05-28 Mike Frysinger <vapier@gentoo.org>
27346 * config/nios2/linux.h (CPP_SPEC): Define.
27348 2015-05-28 Mike Frysinger <vapier@gentoo.org>
27350 * config/microblaze/linux.h (CPP_SPEC): Define.
27352 2015-05-28 Mike Frysinger <vapier@gentoo.org>
27354 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
27355 -pthread is specified.
27357 2015-05-28 Richard Biener <rguenther@suse.de>
27359 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
27360 (vect_fixup_scalar_cycles_with_patterns): Likewise.
27361 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
27362 after pattern recog.
27363 (vect_create_epilog_for_reduction): Properly handle reductions
27365 (vectorizable_reduction): Likewise.
27366 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
27368 (vect_get_constant_vectors): Create the correct number of
27369 initial values for reductions.
27370 (vect_schedule_slp_instance): Handle reduction chains that are
27371 type changing properly.
27372 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
27374 2015-05-28 Richard Biener <rguenther@suse.de>
27376 PR tree-optimization/66142
27377 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
27378 values better in memcpy destination handling. Handle non-aliasing
27381 2015-05-28 Lawrence Velázquez <vq@larryv.me>
27384 * config/darwin-c.c (version_components): New global enum.
27385 (parse_version, version_as_legacy_macro)
27386 (version_as_modern_macro, macosx_version_as_macro): New functions.
27387 (version_as_macro): Remove.
27388 (darwin_cpp_builtins): Use new function.
27390 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
27392 * builtins.c (expand_builtin_acc_on_device): Mark parameters
27393 with ATTRIBUTE_UNUSED.
27395 2015-05-28 Julian Brown <julian@codesourcery.com>
27399 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
27400 sequence for !ACCEL_COMPILER.
27402 2015-05-28 Nick Clifton <nickc@redhat.com>
27404 * config/rx/rx.c (push_regs): New function. Extracts code from...
27405 (rx_expand_prologue): ... here. Use push_regs to push even small
27406 spans of registers.
27407 (pop_regs): New function.
27408 (rx_expand_epilogue): Use pop_regs to pop even small spans of
27411 2015-05-28 Richard Biener <rguenther@suse.de>
27413 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
27415 (SLP_INSTANCE_BODY_COST_VEC): Remove.
27416 (vect_update_slp_costs_according_to_vf): Likewise.
27417 (vect_slp_analyze_operations): Update prototype.
27418 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
27419 vect_update_slp_costs_according_to_vf, adjust.
27420 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
27421 (vect_analyze_slp_cost_1): Likewise.
27422 (vect_analyze_slp_cost): Likewise. Properly deal with
27423 widening reduction ops. Commit body costs.
27424 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
27425 cost for loops from here.
27426 (vect_slp_analyze_operations): But do it from here when
27427 the vectorization factor is known and stmts are analyzed.
27428 (vect_bb_vectorization_profitable_p): Simplify.
27429 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
27430 (vect_update_slp_costs_according_to_vf): Remove.
27432 2015-05-27 Magnus Granberg <zorry@gentoo.org>
27433 H.J. Lu <hongjiu.lu@intel.com>
27435 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
27436 (BUILD_CFLAGS): Likewise.
27437 (BUILD_CXXFLAGS): Likewise.
27438 (LINKER): Add @NO_PIE_FLAG@.
27439 (BUILD_LDFLAGS): Likewise.
27440 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
27441 --enable-default-pie.
27442 * common.opt (fPIE): Initialize to -1.
27444 (no-pie): New option.
27445 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
27446 * configure.ac: Add --enable-default-pie.
27447 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
27448 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
27449 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
27450 * gcc.c (NO_PIE_SPEC): New.
27451 (PIE_SPEC): Likewise.
27452 (NO_FPIE1_SPEC): Likewise.
27453 (FPIE1_SPEC): Likewise.
27454 (NO_FPIE2_SPEC): Likewise.
27455 (FPIE2_SPEC): Likewise.
27456 (NO_FPIE2_SPEC): Likewise.
27457 (FPIE_SPEC): Likewise.
27458 (NO_FPIE_SPEC): Likewise.
27459 (NO_FPIC1_SPEC): Likewise.
27460 (FPIC1_SPEC): Likewise.
27461 (NO_FPIC2_SPEC): Likewise.
27462 (FPIC2_SPEC): Likewise.
27463 (NO_FPIC2_SPEC): Likewise.
27464 (FPIC_SPEC): Likewise.
27465 (NO_FPIC_SPEC): Likewise.
27466 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
27467 (FPIE1_OR_FPIC1_SPEC): Likewise.
27468 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
27469 (FPIE2_OR_FPIC2_SPEC): Likewise.
27470 (NO_FPIE_AND_FPIC_SPEC): Likewise.
27471 (FPIE_OR_FPIC_SPEC): Likewise.
27472 (LD_PIE_SPEC): Likewise.
27473 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
27474 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
27475 * config/darwin.h (PIE_SPEC): Renamed to ...
27476 (DARWIN_PIE_SPEC): This.
27477 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
27478 * config/darwin9.h (PIE_SPEC): Renamed to ...
27479 (DARWIN_PIE_SPEC): This.
27480 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
27481 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
27482 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
27483 FPIE2_OR_FPIC2_SPEC.
27484 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
27485 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
27486 * config/sol2.h (ASM_PIC_SPEC): Likewise.
27487 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
27488 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
27489 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
27490 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
27491 * config/m32r/m32r.h (ASM_SPEC): Likewise.
27492 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
27493 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
27494 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
27495 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
27496 * config/sparc/linux.h (ASM_SPEC): Likewise.
27497 * config/sparc/linux64.h (ASM_SPEC): Likewise.
27498 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
27499 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
27500 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
27501 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
27502 * config/sparc/sparc.h (ASM_SPEC): Likewise.
27503 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
27504 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
27505 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
27506 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
27507 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
27508 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
27509 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
27510 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
27511 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
27512 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
27513 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
27514 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
27515 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
27516 * config/vax/linux.h (ASM_SPEC): Likewise.
27517 * doc/install.texi: Document --enable-default-pie.
27518 * doc/invoke.texi: Document -no-pie.
27519 * config.in: Regenerated.
27520 * configure: Likewise.
27522 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
27524 PR rtl-optimization/66168
27525 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
27526 can_move_invariant_reg.
27528 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
27531 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
27532 REG_EQUAL note when doing insert.
27534 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
27535 instead of "%d" for 'o' operand.
27537 2015-05-27 Nathan Sidwell <nathan@acm.org>
27540 * tree.c (build_pointer_type_for_mode): Canonical type does not
27541 inherit can_alias_all.
27542 (build_reference_type_for_mode): Likewise.
27544 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
27546 * expr.h (array_at_struct_end_p): Move to...
27547 (array_ref_element_size): Likewise.
27548 (component_ref_field_offset): Likewise.
27549 * tree.h (array_ref_element_size): ...here.
27550 (array_at_struct_end_p): Likewise.
27551 (component_ref_field_offset): Likewise.
27552 * expr.c (array_ref_element_size): Move to...
27553 (array_ref_low_bound): Likewise.
27554 (array_at_struct_end_p): Likewise.
27555 (array_ref_up_bound): Likewise.
27556 (component_ref_field_offset): Likewise.
27557 * tree.c (array_ref_element_size): ...here.
27558 (array_ref_low_bound): Likewise.
27559 (array_ref_up_bound): Likewise.
27560 (array_at_struct_end_p): Likewise.
27561 (component_ref_field_offset): Likewise.
27563 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
27564 Szabolcs Nagy <szabolcs.nagy@arm.com>
27566 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
27568 2015-05-27 Jason Merrill <jason@redhat.com>
27571 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
27572 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
27573 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
27575 2015-05-22 Aditya Kumar <hiraditya@msn.com>
27577 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
27580 * statistics.c (statistics_fini_pass): Print pass name.
27582 2015-05-27 Richard Biener <rguenther@suse.de>
27584 PR tree-optimization/66272
27586 2014-08-15 Richard Biener <rguenther@suse.de>
27588 PR tree-optimization/62031
27589 * tree-data-ref.c (dr_analyze_indices): Do not set
27590 DR_UNCONSTRAINED_BASE.
27591 (dr_may_alias_p): All indirect accesses have to go the
27592 formerly DR_UNCONSTRAINED_BASE path.
27593 * tree-data-ref.h (struct indices): Remove
27594 unconstrained_base member.
27595 (DR_UNCONSTRAINED_BASE): Remove.
27597 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
27599 * dwarf2out.c: Remove block_map.
27600 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
27601 (gen_lexical_block_die): Same.
27602 (dwarf2out_function_decl): Remove block_map use.
27603 (dwarf2out_c_finalize): Same.
27604 * tree-core.h (struct tree_block): Add die field.
27605 * tree.h (BLOCK_DIE): New.
27607 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27610 * expr.c (memory_load_overlap): New function.
27611 (emit_push_insn): When pushing partial args to the stack would
27612 clobber the register part load the overlapping part into a pseudo
27613 and put it into the hard reg after pushing. Change return type
27614 to bool. Add bool argument.
27615 * expr.h (emit_push_insn): Change return type to bool.
27617 * calls.c (expand_call): Cancel sibcall optimization when encountering
27618 partial argument on targets with ARGS_GROW_DOWNWARD and
27619 !STACK_GROWS_DOWNWARD.
27620 (emit_library_call_value_1): Update callsite of emit_push_insn.
27621 (store_one_arg): Likewise.
27623 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
27625 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
27627 2015-05-27 Martin Liska <mliska@suse.cz>
27629 * Makefile.in: Add additional dependencies related to memory report
27631 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
27632 * bitmap.c (struct bitmap_descriptor_d): Remove.
27633 (struct loc): Likewise.
27634 (struct bitmap_desc_hasher): Likewise.
27635 (bitmap_desc_hasher::hash): Likewise.
27636 (bitmap_desc_hasher::equal): Likewise.
27637 (get_bitmap_descriptor): Likewise.
27638 (bitmap_register): User new memory descriptor API.
27639 (register_overhead): Likewise.
27640 (bitmap_find_bit): Register nsearches and search_iter statistics.
27641 (struct bitmap_output_info): Remove.
27642 (print_statistics): Likewise.
27643 (dump_bitmap_statistics): Use new memory descriptor.
27644 * bitmap.h (struct bitmap_usage): New class.
27645 * genmatch.c: Extend header file inclusion.
27646 * genpreds.c: Likewise.
27647 * ggc-common.c (struct ggc_usage): New class.
27648 (struct ggc_loc_desc_hasher): Remove.
27649 (ggc_loc_desc_hasher::hash): Likewise.
27650 (ggc_loc_desc_hasher::equal): Likewise.
27651 (struct ggc_ptr_hash_entry): Likewise.
27652 (struct ptr_hash_hasher): Likewise.
27653 (ptr_hash_hasher::hash): Likewise.
27654 (ptr_hash_hasher::equal): Likewise.
27655 (make_loc_descriptor): Likewise.
27656 (ggc_prune_ptr): Likewise.
27657 (dump_ggc_loc_statistics): Use new memory descriptor.
27658 (ggc_record_overhead): Likewise.
27659 (ggc_free_overhead): Likewise.
27660 (final_cmp_statistic): Remove.
27661 (cmp_statistic): Likewise.
27662 (ggc_add_statistics): Liekwise.
27663 (ggc_prune_overhead_list): Likewise.
27664 * hash-map-traits.h: New file.
27665 * hash-map.h (struct default_hashmap_traits): Move the traits to a
27666 separate header file.
27667 * hash-set.h: Pass memory statistics info to ctor.
27668 * hash-table.c (void dump_hash_table_loc_statistics): New function.
27669 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
27670 (hash_table::~hash_table): Register memory release operation.
27671 (hash_table::alloc_entries): Handle memory allocation operation.
27672 (hash_table::expand): Likewise.
27673 * inchash.c (iterative_hash_hashval_t): Move implementation to header
27675 (iterative_hash_host_wide_int): Likewise.
27676 * inchash.h (class hash): Likewise.
27677 * mem-stats-traits.h: New file.
27678 * mem-stats.h: New file.
27679 (mem_location): Add new class.
27680 (mem_usage): Likewise.
27681 (mem_alloc_description): Likewise.
27682 * sese.c: Add new header file inclusision.
27683 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
27685 * tree-sra.c: Add new header file inclusision.
27686 * vec.c (struct vec_descriptor): Remove.
27687 (hash_descriptor): Likewise.
27688 (struct vec_usage): Likewise.
27689 (struct ptr_hash_entry): Likewise.
27690 (hash_ptr): Likewise.
27691 (eq_ptr): Likewise.
27692 (vec_prefix::register_overhead): Use new memory descriptor API.
27693 (vec_prefix::release_overhead): Likewise.
27694 (add_statistics): Remove.
27695 (dump_vec_loc_statistics): Use new memory descriptor API.
27696 * vec.h (struct vec_prefix): Likewise.
27697 (va_heap::reserve): Likewise.
27698 (va_heap::release): Likewise.
27699 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
27701 2015-05-27 Richard Biener <rguenther@suse.de>
27703 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
27704 earlier and remove ??? comment.
27705 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
27706 and got called from loop analysis bail out. Always pass the SLP
27707 node to the vectorizable_* functions.
27708 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
27709 the premature SLP check here.
27710 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
27711 detected SLP stmts.
27712 (vect_detect_hybrid_slp_1): Likewise.
27714 2015-05-26 Jeff Law <law@redhat.com>
27716 * combine.c (find_split_point): Verify that the shift count is a
27717 constant when choosing (plus (ashift ...)) as a split point.
27719 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
27720 No functional changes.
27722 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
27724 * ipa-polymorphic-call.c
27725 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
27726 case when call target is already known.
27728 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
27731 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
27732 take into account the case that operands[1] and operands[2]
27733 are the same register.
27735 2015-05-26 Michael Matz <matz@suse.de>
27737 PR middle-end/66251
27739 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
27741 (vect_create_vectorized_demotion_stmts): Always set
27742 STMT_VINFO_VEC_STMT, also with SLP.
27743 (vectorizable_store): Handle strided group stores.
27745 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
27748 * config/aarch64/aarch64.md
27749 (*adds_shift_imm_<mode>): New pattern.
27750 (*subs_shift_imm_<mode>): Likewise.
27751 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
27752 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
27753 (*add_uxt<mode>_shift2): Likewise.
27754 (*add_uxtsi_shift2_uxtw): Likewise.
27755 (*sub_uxt<mode>_shift2): Likewise.
27756 (*sub_uxtsi_shift2_uxtw): Likewise.
27758 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
27760 * config/rs6000/constraints.md (Y, U): Use match_test.
27762 2015-05-26 Christian Bruel <christian.bruel@st.com>
27765 * config/arm/arm.c (arm_option_check_internal)
27766 (arm_option_params_internal): Check opts->target_flags to set macros.
27767 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
27768 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
27769 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
27770 (builtin_define): Replaced with def_or_undef_macro.
27771 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
27772 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
27773 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
27774 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
27775 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
27776 (TARGET_ARM_FEATURE_LDREX_P)
27777 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
27778 * config/arm/arm-c.c (def_or_undef_macro): New function.
27779 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
27781 2015-05-26 Christian Bruel <christian.bruel@st.com>
27783 * c-common.h (builtin_define_with_int_value)
27784 (builtin_define_type_sizeof): Declare.
27785 * c-cppbuiltin.c (builtin_define_with_int_value)
27786 (builtin_define_type_sizeof): Externalize.
27787 (builtin_define_std): Cleanup declaration.
27788 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
27789 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
27790 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
27791 (builtin_define, builtin_assert): New macros.
27793 2015-05-26 Richard Biener <rguenther@suse.de>
27795 PR tree-optimization/66142
27796 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
27797 MEM_REFs for the same base address.
27799 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27802 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
27804 2015-05-26 Jason Merrill <jason@redhat.com>
27806 * configure.ac: Set CXXFLAGS for ISL test.
27807 * configure: Regenerate.
27809 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
27810 strstr and basename.
27811 * configure: Regenerate.
27813 2015-05-26 Richard Biener <rguenther@suse.de>
27815 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
27816 X % C -> X & (C - 1) for C being a power-of two to ...
27817 * match.pd: ... patterns.
27819 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
27821 * match.pd (swapped_tcc_comparison): New operator list.
27822 (-A CMP -B): New simplification.
27823 * fold-const.c (fold_comparison): Remove corresponding code.
27825 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
27827 * caller-save.c (init_caller_save): Base temporary register numbers
27828 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
27829 * cfgloopanal.c (init_set_costs): Likewise.
27830 * dojump.c (prefer_and_bit_test): Likewise.
27831 * expr.c (init_expr_target): Likewise.
27832 * ira.c (setup_prohibited_mode_move_regs): Likewise.
27833 * lower-subreg.c (init_lower_subreg): Likewise.
27834 * postreload.c (reload_cse_regs_1): Likewise.
27836 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
27838 * gensupport.h (compute_test_codes): Declare.
27839 * gensupport.c (compute_predicate_codes): Rename to...
27840 (compute_test_codes): ...this. Generalize error message.
27841 (process_define_predicate): Update accordingly.
27842 * genpreds.c (compute_maybe_allows): Delete.
27843 (add_constraint): Use compute_test_codes to determine whether
27844 something can accept a SUBREG, REG or MEM.
27846 2015-05-26 Torvald Riegel <triegel@redhat.com>
27848 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
27849 'memory model' to align with C++11; fix description of memory orders;
27852 2015-05-26 Richard Biener <rguenther@suse.de>
27854 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
27855 (vect_analyze_loop_operations): ... here. Remove slp parameter,
27856 detect whether we apply SLP. Remove call to
27857 vect_update_slp_costs_according_to_vf.
27858 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
27859 vect_update_slp_costs_according_to_vf from here. Dispatch
27860 to vect_slp_analyze_operations to analyze SLP stmts.
27861 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
27862 unused bb_vec_info parameter, adjust assert.
27863 (vect_slp_analyze_operations): Pass in the slp instance tree
27864 instead of bb_vec_info.
27865 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
27866 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
27868 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
27870 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
27871 Q_REGS. Expand comment.
27872 (REG_CLASS_NAMES): Ditto.
27873 (REG_CLASS_CONTENTS): Ditto.
27875 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
27878 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
27879 when LEGACY_INT_REGNO_P is processed.
27881 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
27883 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
27885 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
27887 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
27888 register if not marked dead/unused, before return.
27890 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
27893 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
27894 is set; check for assembler name at LTO time.
27895 (type_in_anonymous_namespace): Remove hacks, check that all
27896 anonymous types are called "<anon>"
27897 (odr_type_p): Simplify; add check for "<anon>"
27898 (odr_subtypes_equivalent): Add odr_type_p check.
27899 * tree.c (need_assembler_name_p): Even anonymous namespace needs
27902 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
27904 * ipa-utils.h (method_class_type): Remove.
27905 * cgraphunit.c (walk_polymorphic_call_targets): Use
27906 TYPE_METHOD_BASETYPE.
27907 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
27908 on main variants only.
27909 (method_class_type): Remove.
27910 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
27911 (build_type_inheritance_graph): Likewise.
27912 * ipa-icf.c (sem_function::equals_wpa): Likewise.
27913 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
27914 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
27916 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
27918 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
27919 is_typedef_decl, typedef_variant_p): Constify.
27920 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
27921 is_typedef_decl, typedef_variant_p): Constify.
27923 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27925 * defaults.h (gen_tablejump): New function.
27926 (HAVE_tablejump): Add default value.
27928 * stmt.c: Likewise.
27930 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27932 * defaults.h (gen_store_multiple): New function.
27933 (HAVE_store_multiple): Add default value.
27934 * expr.c (move_block_from_reg): Adjust.
27936 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27938 * defaults.h (gen_load_multiple): New function.
27939 (HAVE_load_multiple): Add default value.
27940 * expr.c (move_block_to_reg): Adjust.
27942 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27944 * defaults.h (gen_mem_signal_fence): New function.
27945 (HAVE_mem_signal_fence): Add default value.
27946 * optabs.c: Adjust.
27948 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27950 * defaults.h (gen_memory_barrier): New function.
27951 (HAVE_memory_barrier): Add default value.
27952 * optabs.c: Adjust.
27954 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27956 * defaults.h (gen_mem_thread_fence): New function.
27957 (HAVE_mem_thread_fence): Add default definition.
27958 * optabs.c: Adjust.
27960 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27962 * combine.c (find_split_point): Check the value of HAVE_lo_sum
27963 instead of if it is defined.
27964 (combine_simplify_rtx): Likewise.
27965 * lra-constraints.c (process_address_1): Likewise.
27966 * config/darwin.c: Adjust.
27967 * genconfig.c (main): Always define HAVE_lo_sum.
27969 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
27971 * genmatch.c (parser::parse_operation): Reject expanding
27972 operator-list inside 'for'.
27974 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
27976 * genmatch.c (parser::parse_for): Reject iterator if used as
27979 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
27981 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
27982 after end of id-list.
27984 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
27986 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
27987 we do not try to compute canonical type for type that does not need
27989 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
27991 * tree.h (type_with_alias_set_p): New.
27993 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
27995 * tree.c (gimple_canonical_types_compatible_p): Do not compare
27996 function attributes.
27997 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
27999 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
28001 * Makefile.in (check_gcc_parallelize): Delete.
28002 (lang_checks_parallelized): Update comment.
28004 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
28006 PR rtl-optimization/66237
28007 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
28008 location of an "as_a" cast.
28010 2015-05-22 Jeff Law <law@redhat.com>
28012 * config/pa/pa.md (non-canonical shift-add insns): Remove.
28013 (peepholes with non-canonical RTL sources): Remove.
28014 (peepholes for indexed stores of FP regs in integer modes): Match and
28015 generate canonical RTL.
28017 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
28019 PR tree-optimization/63387
28020 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
28021 ((x ord x) & (y ord y) -> (x ord y),
28022 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
28023 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
28024 vectors like scalars.
28026 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
28028 * convert.c (convert_to_integer, convert_to_vector): Include the
28029 types in the error message.
28031 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
28033 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
28036 2015-05-22 Jeff Law <law@redhat.com>
28038 * config/pa/pa.md (integer_indexed_store splitters): Use
28039 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
28040 insns -- adjusting the constant 2nd operand accordingly.
28042 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
28043 (plus (ashift X log2) Y) if it is a split point.
28045 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
28046 out of hppa_legitimize_address to handle both forms of a multiply
28048 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
28049 Always generate the ASHIFT variant as the result is not directly
28050 used in a MEM. Update comments and refactor slightly to improve
28053 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28056 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
28057 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
28058 (aarch64_composite_type_p): Return false if given type and mode are
28059 for a short vector.
28061 2015-05-22 Richard Biener <rguenther@suse.de>
28063 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
28065 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
28066 patterns when determining whether SLP is pure.
28067 (vect_is_slp_reduction): Remove check for pattern stmts.
28068 (vect_is_simple_reduction_1): Remove dead code.
28069 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
28070 (vect_get_and_check_slp_defs): Pass in the stmt number.
28071 Allow the first def in a reduction to be not a pattern stmt when
28072 the rest of the stmts def are patterns.
28073 (vect_build_slp_tree_1): Allow tcc_expression codes like
28074 SAD_EXPR and DOT_PROD_EXPR.
28075 (vect_build_slp_tree): Adjust.
28076 (vect_analyze_slp): Refactor and move BB vect error message ...
28077 (vect_slp_analyze_bb_1): ... here.
28079 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
28081 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
28082 for CSWTCH temporary.
28084 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28086 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
28087 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
28090 2015-05-22 Richard Biener <rguenther@suse.de>
28092 PR tree-optimization/66251
28093 * tree-vect-stmts.c (vectorizable_conversion): Properly
28094 set STMT_VINFO_VEC_STMT even for the SLP case.
28096 2015-05-22 Marek Polacek <polacek@redhat.com>
28098 * doc/extend.texi: Use @pxref instead of @xref.
28100 2015-05-22 hiraditya <hiraditya@msn.com>
28102 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
28105 2015-05-22 Richard Biener <rguenther@suse.de>
28107 PR tree-optimization/65701
28108 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
28109 Move peeling cost models into one place. Peel for alignment
28110 for single loads only if an aligned load is cheaper than
28113 2015-05-22 Marek Polacek <polacek@redhat.com>
28116 * doc/extend.texi (Enumerator Attributes): New section.
28117 Document syntax of enumerator attributes.
28119 2015-05-22 Richard Biener <rguenther@suse.de>
28121 * tree-vect-loop.c (get_reduction_op): New function.
28122 (vect_model_reduction_cost): Use it, add reduc_index parameter.
28123 Make ready for BB reductions.
28124 (vect_create_epilog_for_reduction): Use get_reduction_op.
28125 (vectorizable_reduction): Init reduc_index to a valid value.
28126 Adjust vect_model_reduction_cost call.
28127 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
28128 operand for reduction defaults. Add SAD_EXPR support.
28129 Assert we have a neutral op for SLP reductions.
28130 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
28131 walking pattern stmt ops only recurse to SSA names.
28133 2015-05-22 Richard Biener <rguenther@suse.de>
28135 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
28136 assert with guard, remove check on detected reduction.
28137 (vect_recog_sad_pattern): Likewise.
28138 (vect_recog_widen_sum_pattern): Likewise.
28140 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28142 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
28143 __always_inline__ attribute.
28144 (vaesdq_u8): Likewise.
28145 (vaesmcq_u8): Likewise.
28146 (vaesimcq_u8): Likewise.
28147 (vsha1cq_u32): Likewise.
28148 (vsha1mq_u32): Likewise.
28149 (vsha1pq_u32): Likewise.
28150 (vsha1h_u32): Likewise.
28151 (vsha1su0q_u32): Likewise.
28152 (vsha1su1q_u32): Likewise.
28153 (vsha256hq_u32): Likewise.
28154 (vsha256h2q_u32): Likewise.
28155 (vsha256su0q_u32): Likewise.
28156 (vsha256su1q_u32): Likewise.
28157 (vmull_p64): Likewise.
28158 (vmull_high_p64): Likewise.
28160 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28162 * final.c (final_scan_insn): Don't check HAVE_peephole with the
28164 * output.h: Likewise.
28165 * genconfig.c (main): Alwways define HAVE_peephole.
28166 * genpeep.c: Don't emit checks of HAVE_peephole.
28168 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28170 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
28171 check HAVE_conditional_move with the preprocessor.
28173 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28175 * genconfig.c (main): Always define HAVE_conditional_move.
28176 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
28177 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
28180 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28182 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
28183 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
28184 and FRAME_POINTER_REGNUM with the preprocessor.
28186 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28188 * defaults.h: Add default for STACK_PUSH_CODE.
28189 * expr.c: Don't redefine STACK_PUSH_CODE.
28190 * recog.c: Likewise.
28192 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28194 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
28195 sched-deps.c: Use if instead of preprocessor checks with
28196 STACK_GROWS_DOWNWARD.
28198 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28200 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
28202 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
28203 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
28204 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
28205 * doc/tm.texi: Regenerate.
28207 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
28210 * config/i386/constraints.md (Bg): New constraint for GOT memory
28212 * config/i386/i386.md (*call_got_x32): New pattern.
28213 (*call_value_got_x32): Likewise.
28214 * config/i386/predicates.md (GOT_memory_operand): New predicate.
28216 2015-05-21 Jakub Jelinek <jakub@redhat.com>
28218 PR tree-optimization/66233
28219 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
28222 2015-05-21 Jeff Law <law@redhat.com>
28224 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
28225 than MULT for shadd sequences.
28227 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
28229 * alias.c (alias_stats): New static var.
28230 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
28231 (dump_alias_stats_in_alias_c): New function.
28232 * alias.h (dump_alias_stats_in_alias_c): Declare.
28233 * tree-ssa-alias.c (dump_alias_stats): Call it.
28235 2015-05-08 Michael Matz <matz@suse.de>
28237 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
28239 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
28240 (STMT_VINFO_STRIDED_P): ... this.
28241 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
28242 (vect_verify_datarefs_alignment): Likewise.
28243 (vect_enhance_data_refs_alignment): Likewise.
28244 (vect_analyze_data_ref_access): Likewise.
28245 (vect_analyze_data_refs): Accept strided stores.
28246 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
28247 (vect_model_load_cost): Adjust for macro rename.
28248 (vectorizable_mask_load_store): Likewise.
28249 (vectorizable_load): Likewise.
28250 (vectorizable_store): Open code strided stores.
28252 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28254 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
28255 Document sqrt_insn.
28257 2015-05-21 Richard Biener <rguenther@suse.de>
28260 * match.pd: Guard pattern optimzing (int)(float)int
28261 conversions to apply only on GIMPLE.
28263 2015-05-21 Jeff Law <law@redhat.com>
28265 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
28266 multiply-accumulate/shift-add insn generation.
28268 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
28271 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
28272 operands[1] are the same.
28274 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
28276 PR middle-end/66221
28277 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
28278 build_distinct_type_copy to copy bounds.
28280 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
28282 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
28283 Change to unsigned int.
28285 2015-05-20 Jeff Law <law@redhat.com>
28287 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
28288 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
28289 (pa_shadd_constant_p): Allow constants for shadd insns rather
28290 than valid scaling constants for memory addresses.
28291 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
28292 * config/pa/predicates.md (mem_shadd_operand): New predicate.
28293 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
28294 (shift-add insns using ASHIFT): New patterns.
28296 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
28298 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
28300 (fix_up_fall_thru_edges): Likewise.
28301 (fix_crossing_conditional_branches): Likewise. Promote jump targets
28302 from to rtx_insn to rtx_code_label where feasible.
28303 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
28304 gen_move_insn (returned type changed to rtx_insn).
28305 * builtins.c (expand_errno_check): Fix arguments of
28306 do_compare_rtx_and_jump (now expects rtx_code_label).
28307 (expand_builtin_acc_on_device): Likewise.
28308 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
28309 invert_jump (now exprects rtx_jump_insn).
28310 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
28311 (construct_init_block): Use rtx_code_label.
28312 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
28313 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
28314 calling redirect_jump.
28315 (patch_jump_insn): Likewise.
28316 (redirect_branch_edge): Likewise.
28317 (force_nonfallthru_and_redirect): Likewise.
28318 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
28320 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
28321 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
28322 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
28323 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
28324 to store the value retured by gen_label_rtx.
28325 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
28327 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
28328 (split_branches): Fix calls of redirect_jump.
28329 * dojump.c (jumpifnot): Promote argument type from rtx to
28331 (jumpifnot_1): Likewise.
28332 (jumpif): Likewise.
28333 (jumpif_1): Likewise.
28334 (do_jump_1): Likewise.
28335 (do_jump): Likewise. Use rtx_code_label when feasible.
28336 (do_jump_by_parts_greater_rtx): Likewise.
28337 (do_jump_by_parts_zero_rtx): Likewise.
28338 (do_jump_by_parts_equality_rtx): Likewise.
28339 (do_compare_rtx_and_jump): Likewise.
28340 * dojump.h: Update function prototypes.
28341 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
28343 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
28345 (emit_label_before): Likewise.
28346 (emit_jump_insn_after_noloc): Likewise.
28347 (emit_jump_insn_after_setloc): Likewise.
28348 (emit_jump_insn_after): Likewise
28349 (emit_jump_insn_before_setloc): Likewise.
28350 (emit_jump_insn_before): Likewise.
28351 (emit_label_before): Promote return type to rtx_code_label.
28352 (emit_label): Likewise.
28353 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
28354 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
28356 (emit_stack_restore): Likewise.
28357 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
28358 (do_cmp_and_jump): Likewise.
28359 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
28360 from rtx to rtx_code_label.
28361 (gen_move_insn_uncast): New function.
28362 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
28363 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
28364 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
28365 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
28366 invert_jump_1 and redirect_jump_1.
28367 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
28368 do_compare_rtx_and_jump.
28369 (expand_addsub_overflow): Likewise.
28370 (expand_neg_overflow): Likewise.
28371 (expand_mul_overflow): Likewise.
28372 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
28373 return value of gen_move_insn.
28374 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
28375 * loop-doloop.c (add_test): Use rtx_code_label.
28376 (doloop_modify): Likewise.
28377 (doloop_optimize): Likewise.
28378 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
28379 * lra-constraints.c (emit_spill_move): Remove cast of value returned
28381 (inherit_reload_reg): Add cast when calling dump_insn_slim.
28382 (split_reg): Likewise.
28383 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
28385 * optabs.c (expand_binop_directly): Remove casts of values returned by
28387 (expand_unop_direct): Likewise.
28388 (expand_abs): Likewise.
28389 (maybe_emit_unop_insn): Likewise.
28390 (maybe_gen_insn): Promote return type to rtx_insn.
28391 * optabs.h: Update prototype of maybe_gen_insn.
28392 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
28394 * recog.c (struct peep2_insn_data): Promote type of insn field to
28396 (peep2_reinit_state): Use NULL instead of NULL_RTX.
28397 (peep2_attempt): Remove casts of insn in peep2_insn_data.
28398 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
28399 * recog.h (struct insn_gen_fn): Promote return types of function
28400 pointers and operator ().from rtx to rtx_insn.
28401 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
28402 (fill_eager_delay_slots): Likewise.
28403 (relax_delay_slots): Likewise.
28404 (make_return_insns): Likewise.
28405 (dbr_schedule): Likewise.
28406 (optimize_skips): Likewise.
28407 (reorg_redirect_jump): Likewise.
28408 (fill_slots_from_thread): Likewise.
28409 * reorg.h: Update prototypes.
28410 * resource.c (find_dead_or_set_registers): Use dyn_cast to
28411 rtx_jump_insn instead of check. Use it's jump_target method.
28412 * rtl.h (rtx_jump_insn::jump_label): Define new method.
28413 (rtx_jump_insn::jump_target): Define new method.
28414 (rtx_jump_insn::set_jump_target): Define new method.
28415 * rtlanal.c (tablejump_p): Promote type of one local variable.
28416 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
28417 (sched_analyze_insn): Likewise.
28418 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
28419 (print_insn): Likewise.
28420 * stmt.c (label_rtx): Promote return type to rtx_insn.
28421 (force_label_rtx): Likewise.
28422 (jump_target_rtx): Define new function.
28423 (expand_label): Use it, get rid of one cast.
28424 (expand_naked_return): Promote rtx to rtx_code_label.
28425 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
28426 (expand_case): Use rtx_code_label instread of rtx where feasible.
28427 (expand_sjlj_dispatch_table): Likewise.
28428 (emit_case_nodes): Likewise.
28429 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
28430 * store-motion.c (insert_store): Make use of new return type of
28431 gen_move_insn and remove a cast.
28432 (replace_store_insn): Likewise.
28434 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
28436 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
28437 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
28439 2015-05-20 Jeff Law <law@redhat.com>
28441 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
28442 dispose of the jump thread path when the jump threading
28443 opportunity is cancelled.
28445 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
28447 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
28448 when printing the caret character.
28450 2015-05-20 Marek Polacek <polacek@redhat.com>
28452 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
28454 2015-05-20 Marek Polacek <polacek@redhat.com>
28456 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
28457 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
28458 * gimple-fold.c (canonicalize_bool): Likewise.
28459 (same_bool_result_p): Likewise.
28460 * tree-if-conv.c (parse_predicate): Likewise.
28462 2015-05-20 Marek Polacek <polacek@redhat.com>
28464 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
28465 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
28467 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28469 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
28470 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
28473 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
28475 * config/mips/mips.h (micromips_globals): Declare.
28477 2015-05-20 David Malcolm <dmalcolm@redhat.com>
28479 * timevar.def (TV_INITIALIZE_RTL): New.
28480 * toplev.c (initialize_rtl): Use an auto_timevar to account this
28481 function's time to TV_INITIALIZE_RTL.
28483 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
28485 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
28486 gimple_build_nop calls.
28487 (chkp_find_bounds_for_elem): Likewise.
28488 (chkp_get_zero_bounds): Likewise.
28489 (chkp_get_none_bounds): Likewise.
28490 (chkp_get_bounds_by_definition): Likewise.
28491 (chkp_generate_extern_var_bounds): Likewise.
28492 (chkp_get_bounds_for_decl_addr): Likewise.
28493 (chkp_get_bounds_for_string_cst): Likewise.
28495 2015-05-20 Bin Cheng <bin.cheng@arm.com>
28497 PR tree-optimization/65447
28498 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
28499 (dump_use, dump_uses): Support to dump sub use.
28500 (record_use): New parameters to support sub use. Remove call to
28502 (record_sub_use, record_group_use): New functions.
28503 (compute_max_addr_offset, split_all_small_groups): New functions.
28504 (group_address_uses, rewrite_use_address): New functions.
28505 (strip_offset): New declaration.
28506 (find_interesting_uses_address): Call record_group_use.
28507 (add_candidate): New assertion.
28508 (infinite_cost_p): Move definition forward.
28509 (add_costs): Check INFTY cost and return immediately.
28510 (get_computation_cost_at): Clear setup cost and dependent bitmap
28512 (determine_use_iv_cost_address): Compute cost for sub uses.
28513 (rewrite_use_address_1): Rename from old rewrite_use_address.
28514 (free_loop_data): Free sub uses.
28515 (tree_ssa_iv_optimize_loop): Call group_address_uses.
28517 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
28518 Jim Wilson <jim.wilson@linaro.org>
28520 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
28521 new fields loadv and storev.
28522 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
28523 Initialize loadv and storev.
28524 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
28525 (cortexa53_extra_costs): Likewise.
28526 (cortexa57_extra_costs): Likewise.
28527 (xgene1_extra_costs): Likewise.
28528 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
28531 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
28533 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
28535 (cortexa8_extra_costs): Likewise.
28536 (cortexa5_extra_costs): Likewise.
28537 (cortexa7_extra_costs): Likewise.
28538 (cortexa12_extra_costs): Likewise.
28539 (cortexa15_extra_costs): Likewise.
28540 (v7m_extra_costs): Likewise.
28542 2015-05-20 Jeff Law <law@redhat.com>
28544 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
28545 instead of open-coded version. Also delete the jump thread created
28546 within this function.
28548 2015-05-20 Alan Modra <amodra@gmail.com>
28550 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
28551 stack adjusting insn. Formatting.
28552 (rs6000_emit_prologue): Track stack adjusting insn, and use of
28553 r12. If possible, emit first -fsplit-stack arg pointer insn
28554 before stack adjust. Don't use r12 to save cr if split-stack.
28556 2015-05-20 Alan Modra <amodra@gmail.com>
28558 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
28560 (rs6000_supports_split_stack): New function.
28561 * config/rs6000/rs6000.c (machine_function): Add
28562 split_stack_arg_pointer.
28563 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
28564 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
28565 rather than virtual_incoming_args_rtx.
28566 (rs6000_va_start): Likewise.
28567 (split_stack_arg_pointer_used_p): New function.
28568 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
28569 (morestack_ref): New var.
28570 (gen_add3_const, rs6000_expand_split_stack_prologue,
28571 rs6000_internal_arg_pointer, rs6000_live_on_entry,
28572 rs6000_split_stack_space_check): New functions.
28573 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
28574 * config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
28575 (UNSPECV_SPLIT_STACK_RETURN): Define.
28576 (split_stack_prologue, load_split_stack_limit,
28577 load_split_stack_limit_di, load_split_stack_limit_si,
28578 split_stack_return, split_stack_space_check): New expands and insns.
28579 * config/rs6000/rs6000-protos.h
28580 (rs6000_expand_split_stack_prologue): Declare.
28581 (rs6000_split_stack_space_check): Declare.
28583 2015-05-20 Alan Modra <amodra@gmail.com>
28585 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
28586 (direct_return): Test vrsave_size rather than vrsave_mask.
28587 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
28588 (rs6000_emit_epilogue): Likewise.
28590 2015-05-20 Alan Modra <amodra@gmail.com>
28592 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
28593 when not saving registers.
28594 (debug_stack_info): Adjust to omit printing unused offsets,
28596 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
28599 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28602 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
28603 value_type to const char *.
28605 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
28607 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
28608 to build a biarch toolchain again.
28610 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
28612 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
28613 or implicit declarations.
28614 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
28616 (get_odr_type): Check type has linkage before adding bases.
28617 (register_odr_type): Check that type has linkage before adding it.
28618 (type_known_to_have_no_deriavations_p): Rename to ..
28619 (type_known_to_have_no_derivations_p): This one.
28620 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
28621 (type_known_to_have_no_derivations_p): This one.
28622 * ipa-polymorphic-call.c
28623 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
28626 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
28628 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
28629 (layout_type): Use RECORD_OR_UNION_TYPE_P.
28631 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28633 * config/s390/s390.c (s390_vector_bool_type_p): New function.
28634 (s390_invalid_binary_op): New function.
28635 (TARGET_INVALID_BINARY_OP): Define macro.
28637 2015-05-19 David Sherwood <david.sherwood@arm.com>
28639 * loop-invariant.c (create_new_invariant): Don't calculate address cost
28640 if mode is not a scalar integer.
28641 (get_inv_cost): Increase computational cost for unused invariants.
28643 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28645 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
28646 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
28647 * config/s390/s390-builtin-types.def: New file.
28648 * config/s390/s390-builtins.def: New file.
28649 * config/s390/s390-builtins.h: New file.
28650 * config/s390/s390-c.c: New file.
28651 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
28652 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
28653 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
28654 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
28656 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
28658 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
28659 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
28660 variable definitions.
28661 (s390_const_operand_ok): New function.
28662 (s390_expand_builtin): Rewrite.
28663 (s390_init_builtins): New function.
28664 (s390_handle_vectorbool_attribute): New function.
28665 (s390_attribute_table): Add s390_vector_bool attribute.
28666 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
28667 (s390_branch_condition_mask): Generate masks for new modes.
28668 (s390_expand_vec_compare_cc): New function.
28669 (s390_mangle_type): Add mangling for vector bool types.
28670 (enum s390_builtin): Remove.
28671 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
28673 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
28674 s390_cpu_cpp_builtins.
28675 (REGISTER_TARGET_PRAGMAS): New macro.
28676 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
28677 (insn_cmp mode attribute): Add new CC modes.
28678 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
28679 (lcbb): New pattern definition.
28680 * config/s390/s390intrin.h: Include vecintrin.h.
28681 * config/s390/t-s390: New file.
28682 * config/s390/vecintrin.h: New file.
28683 * config/s390/vector.md: Include vx-builtins.md.
28684 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
28687 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28689 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
28691 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
28692 (s390_select_ccmode): Likewise.
28693 (s390_canonicalize_comparison): Swap operands if necessary.
28694 (s390_expand_vec_compare_scalar): Expand DFmode compare using
28695 single element vector instructions.
28696 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
28697 (s390_branch_condition_mask): Generate CC masks for the new modes.
28698 * config/s390/s390.md (v0, vf, vd): New mode attributes.
28699 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
28700 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
28701 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
28702 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
28703 (*extend<DSF:mode><BFP:mode>2): New insn definition.
28704 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
28705 (extend<DSF:mode><BFP:mode>2): Turn into expander.
28706 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
28707 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
28708 (sqrt<mode>2): Add vector instruction.
28710 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28712 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
28714 * config/s390/predicates.md (const0_operand, constm1_operand)
28715 (constable_operand): Accept vector operands.
28716 * config/s390/s390-modes.def: Add supported vector modes.
28717 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
28718 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
28719 (s390_bytemask_vector_p, s390_expand_vec_strlen)
28720 (s390_expand_vec_compare, s390_expand_vcond)
28721 (s390_expand_vec_init): Add prototypes.
28722 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
28723 (s390_vector_mode_supported_p): New function.
28724 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
28725 (s390_contiguous_bitmask_vector_p): New function.
28726 (s390_bytemask_vector_p): New function.
28727 (s390_split_ok_p): Vector regs don't work either.
28728 (regclass_map): Add VEC_REGS.
28729 (s390_legitimate_constant_p): Handle vector constants.
28730 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
28731 (legitimate_reload_vector_constant_p): New function.
28732 (s390_preferred_reload_class): Handle CONST_VECTOR.
28733 (s390_reload_symref_address): Likewise.
28734 (s390_secondary_reload): Vector memory instructions only support
28735 short displacements. Rename reload*_nonoffmem* to reload*_la*.
28736 (s390_emit_ccraw_jump): New function.
28737 (s390_expand_vec_strlen): New function.
28738 (s390_expand_vec_compare): New function.
28739 (s390_expand_vcond): New function.
28740 (s390_expand_vec_init): New function.
28741 (s390_dwarf_frame_reg_mode): New function.
28742 (print_operand): Handle addresses with 'O' and 'R' constraints.
28743 (NR_C_MODES, constant_modes): Add vector modes.
28744 (s390_output_pool_entry): Handle vector constants.
28745 (s390_hard_regno_mode_ok): Handle vector registers.
28746 (s390_class_max_nregs): Likewise.
28747 (s390_cannot_change_mode_class): New function.
28748 (s390_invalid_arg_for_unprototyped_fn): New function.
28749 (s390_function_arg_vector): New function.
28750 (s390_function_arg_float): Remove size variable.
28751 (s390_pass_by_reference): Handle vector arguments.
28752 (s390_function_arg_advance): Likewise.
28753 (s390_function_arg): Likewise.
28754 (s390_return_in_memory): Vector values are returned in a VR if
28756 (s390_function_and_libcall_value): Handle vector arguments.
28757 (s390_gimplify_va_arg): Likewise.
28758 (s390_call_saved_register_used): Consider the arguments named.
28759 (s390_conditional_register_usage): Disable v16-v31 for non-vec
28761 (s390_preferred_simd_mode): New function.
28762 (s390_support_vector_misalignment): New function.
28763 (s390_vector_alignment): New function.
28764 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
28765 (TARGET_VECTOR_MODE_SUPPORTED_P)
28766 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
28767 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
28768 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
28769 (TARGET_VECTOR_ALIGNMENT): Define target macro.
28770 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
28771 (FIRST_PSEUDO_REGISTER): Increase value.
28772 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
28773 (VECTOR_REG_P): Define macros.
28774 (FIXED_REGISTERS, CALL_USED_REGISTERS)
28775 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
28776 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
28777 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
28778 Add vector registers.
28779 (CANNOT_CHANGE_MODE_CLASS): Call C function.
28780 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
28781 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
28783 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
28784 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
28785 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
28786 (VR*_REGNUM): New constants.
28787 (ALL): New mode iterator.
28788 (INTALL): Remove mode iterator.
28790 (movti): Implement TImode moves for VRs.
28791 Disable TImode splitter for VR targets.
28792 Implement splitting TImode GPR<->VR moves.
28793 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
28794 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
28795 reload<mode>_la_in, reload<mode>_la_out.
28796 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
28797 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
28798 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
28799 (mov<mode> SF SD): Prefer lder, lde for loading.
28800 Add lrl and strl instructions.
28801 Add vector instructions.
28802 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
28803 Call s390_expand_vec_strlen on z13.
28804 (*cc_to_int): Change predicate to nonimmediate_operand.
28805 (addti3): Rename to *addti3. New expander.
28806 (subti3): Rename to *subti3. New expander.
28807 * config/s390/vector.md: New file.
28809 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28811 * common/config/s390/s390-common.c (processor_flags_table): Add
28813 * config.gcc: Add z13.
28814 * config/s390/s390-opts.h (enum processor_type): Add
28815 PROCESSOR_2964_Z13.
28816 * config/s390/s390.c (s390_adjust_priority): Check for
28817 PROCESSOR_2964_Z13.
28818 (s390_reorg): Likewise.
28819 (s390_sched_reorder): Likewise.
28820 (s390_sched_variable_issue): Likewise.
28821 (s390_loop_unroll_adjust): Likewise.
28822 (s390_option_override): Likewise. Default to -mvx when available.
28823 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
28824 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
28825 (TARGET_VX_ABI): Define macros.
28827 (TARGET_DEFAULT): Add MASK_OPT_VX.
28828 * config/s390/s390.md ("cpu" attribute): Add z13.
28829 ("cpu_facility" attribute): Add vec.
28830 * config/s390/s390.opt (processor_type): Add z13.
28831 (mvx): New options.
28832 * doc/invoke.texi: Add z13 option for -march.
28834 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28836 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
28837 mode check to make sure that only scalar integer values are
28840 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
28842 * tree.c (verify_type_variant): Fix #undef.
28843 (gimple_canonical_types_compatible_p): Move here from lto.c
28844 (verify_type): Verify TYPE_CANONICAL compatibility.
28845 * tree.h (gimple_canonical_types_compatible_p): Declare.
28847 2015-05-19 Jakub Jelinek <jakub@redhat.com>
28849 PR middle-end/66199
28850 * tree.h (OMP_TEAMS_COMBINED): Define.
28851 * gimplify.c (enum gimplify_omp_var_data): Add
28852 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
28853 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
28854 (omp_notice_variable): Accept both ORT_TEAMS
28855 and ORT_COMBINED_TEAMS. Don't recurse if
28856 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
28857 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
28859 (omp_no_lastprivate): New function.
28860 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
28861 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
28862 notice_outer and set appropriate bits, otherwise make
28863 sure default(none) combined constructs won't complain.
28864 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
28865 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
28866 omp_no_lastprivate either remove the clause or turn it
28867 into OMP_CLAUSE_PRIVATE.
28868 (gimplify_omp_for): Fix up handling of implicit
28869 lastprivate or linear iterators.
28870 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
28871 ORT_COMBINED_TEAMS.
28872 * omp-low.c (lower_omp_for_lastprivate): For combined
28873 for simd use fd.loop.n2 from the for rather than simd.
28875 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
28877 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
28878 instead of gen_rtx_raw_REG.
28879 (cris_expand_epilogue): Likewise.
28880 * config/microblaze/microblaze.c (microblaze_classify_address):
28882 * config/sparc/sparc.md: Likewise.
28884 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
28886 * config/alpha/alpha.c (alpha_legitimize_reload_address)
28887 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
28888 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
28889 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
28890 Use CASE_CONST_SCALAR_INT.
28891 (print_operand) <case 'M'>: Use mode_width_operand to check the
28892 value of the constant.
28893 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
28894 * config/alpha/predicates.md (input_operand): Use general_operand
28895 instead of match_code as operand check.
28896 (symbolic_operand): Use match_code with subexpression digits.
28897 * config/alpha/constraints.md (Q): Ditto.
28899 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28901 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
28903 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28905 * config/s390/s390.c (s390_secondary_reload): Fix check for
28906 load/store relative.
28908 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28910 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
28911 alternative_mask to uint64_t.
28913 2015-05-19 Jakub Jelinek <jakub@redhat.com>
28915 PR tree-optimization/66187
28916 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
28917 Pass TYPE_SIGN to tree_int_cst_min_precision. If
28918 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
28920 2015-05-19 David Malcolm <dmalcolm@redhat.com>
28922 * diagnostic.c (diagnostic_report_current_module): Strengthen
28923 local "new_map" from const line_map * to
28924 const line_map_ordinary *.
28925 * genmatch.c (error_cb): Likewise for local "map".
28926 (output_line_directive): Likewise for local "map".
28927 * input.c (expand_location_1): Likewise for local "map".
28928 Pass NULL rather than &map to
28929 linemap_unwind_to_first_non_reserved_loc, since the value is never
28930 read from there, and the value written back not read from here.
28931 (is_location_from_builtin_token): Strengthen local "map" from
28932 const line_map * to const line_map_ordinary *.
28933 (dump_location_info): Strengthen locals "map" from
28934 line_map *, one to const line_map_ordinary *, the other
28935 to const line_map_macro *.
28936 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
28937 const line_map * to const line_map_macro *.
28938 (maybe_unwind_expanded_macro_loc): Add a call to
28939 linemap_check_macro when writing to the "map" field of the
28941 Introduce local const line_map_ordinary * "ord_map", using it in
28942 place of "map" in the part of the function where we know we have
28943 an ordinary map. Strengthen local "m" from const line_map * to
28944 const line_map_ordinary *.
28946 2015-05-19 Nick Clifton <nickc@redhat.com>
28949 * config/msp430/msp430.md (zero_extendhisi2): Add support for
28950 separate source and destination registers.
28952 2015-05-19 Richard Biener <rguenther@suse.de>
28954 PR tree-optimization/66165
28955 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
28956 for no load permutation.
28958 PR tree-optimization/66185
28959 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
28960 when building the SLP node from scalars.
28962 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
28963 Tristan Gingold <gingold@adacore.com>
28965 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
28966 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
28967 (expand_stack_restore): Call record_new_stack_level.
28968 (expand_stack_save): Do not call do_pending_stack_adjust.
28969 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
28970 * calls.c (expand_call): Call record_new_stack_level for alloca.
28971 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
28972 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
28973 (update_sjlj_context): New global function.
28974 * except.h (update_sjlj_context): Declare.
28975 * explow.c (record_new_stack_level): New global function.
28976 (allocate_dynamic_stack_space): Call record_new_stack_level.
28977 * explow.h (record_new_stack_level): Declare.
28978 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
28979 * cfgrtl.c (duplicate_insn_chain): Likewise.
28981 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28983 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
28984 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
28985 STACK_GROWS_DOWNWARD as normal if.
28986 (expand_call): Likewise.
28988 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
28991 * config/sh/sh.md (*round_int_even): New insn_and_split and
28992 accompanying new unnamed split.
28994 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
28996 * bitmap.c (bitmap_set_range): Handle count==1 specially.
28997 (bitmap_clear_range): Likewise.
28998 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
28999 bitmap_set_range unconditionally.
29000 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
29001 * df-scan.c (df_mark_reg): Likewise.
29002 * haifa-sched.c (setup_ref_regs): Likewise.
29003 * sched-rgn.c (update_live_1): Likewise.
29005 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
29007 * regs.h (END_HARD_REGNO): Delete.
29008 (END_REGNO): Move to...
29010 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
29011 * caller-save.c (mark_set_regs): Likewise.
29012 * combine.c (move_deaths, distribute_notes): Likewise.
29013 * cse.c (invalidate, invalidate_for_call): Likewise.
29014 * df-scan.c (df_ref_record): Likewise.
29015 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
29016 (record_last_reg_set_info): Likewise.
29017 * reg-stack.c (convert_regs_exit): Likewise.
29018 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
29019 * resource.c (update_live_status): Likewise.
29020 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
29022 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
29024 * rtl.h (reg_info): Add an nregs field.
29025 (REG_NREGS): Use it.
29026 (SET_REGNO_RAW): Delete.
29027 (set_regno_raw): New function.
29028 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
29029 (END_REGNO): Redefine in terms of REG_NREGS.
29030 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
29032 * emit-rtl.c (set_mode_and_regno): Likewise.
29033 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
29034 instead of SET_REGNO_RAW.
29036 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
29038 * rtl.h (PUT_MODE_RAW): New macro.
29039 (PUT_REG_NOTE_KIND): Use it.
29040 (set_mode_and_regno): Declare.
29041 (gen_raw_REG): Change regno to "unsigned int".
29042 (gen_rtx_REG): Change "unsigned" to "unsigned int".
29043 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
29044 use set_mode_and_regno to change the mode of registers.
29045 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
29046 * emit-rtl.c (set_mode_and_regno): New function.
29047 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
29048 * caller-save.c (reg_save_code): Use set_mode_and_regno.
29049 * expr.c (init_expr_target): Likewise.
29050 * ira.c (setup_prohibited_mode_move_regs): Likewise.
29051 * postreload.c (reload_cse_simplify_operands): Likewise.
29053 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
29055 * caller-save.c (init_caller_save): Use word_mode and
29056 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
29057 * expr.c (init_expr_target): Likewise.
29058 * ira.c (setup_prohibited_mode_move_regs): Likewise.
29059 * postreload.c (reload_cse_regs_1): Likewise.
29061 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
29063 * rtl.def (REG): Change format to "r".
29064 * rtl.h (rtunion): Remove rt_reg.
29065 (reg_info): New structure.
29066 (rtx_def): Add reg field to main union.
29067 (X0REGATTR): Delete.
29068 (REG_CHECK): New macro.
29069 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
29070 * rtl.c (rtx_format): Document "r".
29071 (rtx_code_size): Handle REG specially.
29072 * gengenrtl.c (special_format): Return true for formats
29074 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
29075 Deal with REG_ATTRS after the field loop.
29076 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
29077 * expmed.c (init_expmed): Call gen_raw_REG instead of
29079 * expr.c (init_expr_target): Likewise.
29080 * regcprop.c (maybe_mode_change): Likewise.
29081 * varasm.c (make_decl_rtl): Likewise.
29082 * final.c (leaf_renumber_regs_insn): Return early after
29084 * genemit.c (gen_exp): Handle 'r' fields.
29085 * genpeep.c (match_rtx): Likewise.
29086 * gensupport.c (subst_pattern_match): Likewise.
29087 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
29088 (alter_constraints, subst_dup): Likewise.
29089 * read-rtl.c (read_rtx_code): Likewise.
29090 * print-rtl.c (print_rtx): Likewise.
29091 * genrecog.c (find_operand, find_matching_operand): Likewise.
29092 (validate_pattern, match_pattern_2): Likewise.
29093 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
29094 (rtx_test::regno_field): New function.
29095 (operator ==, safe_to_hoist_p, transition_parameter_type)
29096 (parameter_type_string, print_parameter_value)
29097 (print_nonbool_test, print_test): Handle new enum values.
29098 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
29099 * lra-constraints.c (operands_match_p): Likewise.
29101 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
29103 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
29104 Change type of new_regno to unsigned int.
29105 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
29106 new_regno to unsigned int.
29107 (df_ref_change_reg_with_loc): Remove old_regno parameter.
29108 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
29109 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
29110 (SET_REGNO_RAW): Add space after ",".
29112 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
29114 * rtl.h (REG_NREGS): New macro
29115 * alias.c (record_set): Use it.
29116 * cfgcleanup.c (mark_effect): Likewise.
29117 * combine.c (likely_spilled_retval_1): Likewise.
29118 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
29119 (move_deaths, distribute_notes): Likewise.
29120 * cselib.c (cselib_record_set): Likewise.
29121 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
29122 * df-scan.c (df_mark_reg): Likewise.
29123 * dse.c (look_for_hardregs): Likewise.
29124 * dwarf2out.c (reg_loc_descriptor): Likewise.
29125 (multiple_reg_loc_descriptor): Likewise.
29126 * expr.c (write_complex_part, read_complex_part): Likewise.
29127 (emit_move_complex): Likewise.
29128 * haifa-sched.c (setup_ref_regs): Likewise.
29129 * ira-lives.c (mark_hard_reg_live): Likewise.
29130 * lra.c (lra_set_insn_recog_data): Likewise.
29131 * mode-switching.c (create_pre_exit): Likewise.
29132 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
29133 (reload_combine_recognize_pattern): Likewise.
29134 (reload_combine_note_use, move2add_record_mode): Likewise.
29135 (reload_cse_move2add): Likewise.
29136 * reg-stack.c (subst_stack_regs_pat): Likewise.
29137 * regcprop.c (kill_value, copy_value): Likewise.
29138 (copyprop_hardreg_forward_1): Likewise.
29139 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
29140 (build_def_use): Likewise.
29141 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
29142 (deps_analyze_insn): Likewise.
29143 * sched-rgn.c (check_live_1, update_live_1): Likewise.
29144 * sel-sched.c (count_occurrences_equiv): Likewise.
29145 * valtrack.c (dead_debug_insert_temp): Likewise.
29147 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
29149 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
29150 * dse.c (note_add_store): Likewise.
29151 * ira-lives.c (mark_hard_reg_dead): Likewise.
29152 * loop-invariant.c (mark_reg_store): Likewise.
29153 (mark_reg_death): Likewise.
29154 * postreload.c (reload_combine): Likewise.
29155 (reload_combine_note_store): Likewise.
29156 (reload_combine_note_use): Likewise.
29157 * recog.c (peep2_reg_dead_p): Likewise.
29159 2015-05-19 Alan Modra <amodra@gmail.com>
29161 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
29162 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
29163 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
29165 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
29166 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
29167 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
29168 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
29170 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
29172 * config/mips/mips.md (JOIN_MODE): New mode iterator.
29173 (join2_load_Store<JOIN_MODE:mode>): New pattern.
29174 (join2_loadhi): Likewise.
29175 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
29176 load-load and store-stores.
29177 * config/mips/mips.opt (mload-store-pairs): New option.
29178 (TARGET_LOAD_STORE_PAIRS): New macro.
29179 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
29180 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
29181 * config/mips/mips.c (mips_load_store_bonding_p): New function.
29183 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
29185 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
29187 * dojump.c (do_compare_rtx_and_jump): Likewise.
29188 * expmed.c (emit_store_flag_1): Likewise.
29189 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
29190 * final.c (sprint_ul): Use std::reverse for reversing a string.
29191 * fold-const.c (extract_muldiv_1): Use std::swap.
29192 * genmodes.c (emit_mode_int_n): Likewise.
29193 * ifcvt.c (dead_or_predicable): Likewise.
29194 * ira-build.c (ira_merge_live_ranges): Likewise.
29195 (swap_allocno_copy_ends_if_necessary): Likewise.
29196 * ira.c (ira_setup_alts): Likewise.
29197 * loop-iv.c (iv_analyze_expr): Likewise.
29198 (implies_p): Likewise.
29199 (canon_condition): Likewise.
29200 * lra-constraints.c (swap_operands): Likewise.
29201 * lra-lives.c (lra_merge_live_ranges): Likewise.
29202 * omega.c (swap): Remove.
29204 (omega_unprotect_1): Use std::swap.
29205 (omega_solve_geq): Likewise.
29206 * optabs.c (expand_binop_directly): Likewise.
29207 (expand_binop): Likewise.
29208 (emit_conditional_move): Likewise.
29209 (emit_conditional_add): Likewise.
29210 * postreload.c (reload_cse_simplify_operands): Likewise.
29211 * reg-stack.c (emit_swap_insn): Likewise.
29212 (swap_to_top): Likewise.
29213 (compare_for_stack_reg): Likewise.
29214 (subst_asm_stack_regs): Likewise.
29215 * reload.c (find_reloads): Likewise.
29216 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
29217 * sel-sched.c (invoke_reorder_hooks): Likewise.
29218 (create_block_for_bookkeeping): Likewise.
29219 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
29220 (lambda_matrix_right_hermite): Use std::swap.
29221 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
29222 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
29223 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
29224 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
29225 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
29226 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
29227 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
29228 * tree-vrp.c (compare_ranges): Likewise.
29229 * var-tracking.c (add_with_sets): Likewise.
29230 (vt_find_locations): Likewise.
29232 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
29234 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
29236 (FBSD_ENDFILE_SPEC): Likewise.
29237 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
29238 config/freebsd-spec.h.
29239 (ENDFILE_SPEC): Likewise.
29241 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
29242 Richard Henderson <rth@redhat.com>
29245 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
29246 Check for a memory location that is not a reference (using an AND)
29247 to an unaligned location here.
29248 * config/alpha/predicates.md (normal_memory_operand): Remove.
29250 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
29252 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
29253 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
29255 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
29257 * config/mips/mips.c (micromips_globals): New variable.
29258 (mips_set_compression_mode): Save and reinitialize target-dependent
29259 state for microMIPS.
29261 2015-05-18 Martin Liska <mliska@suse.cz>
29263 * dbgcnt.def: Add new counter.
29264 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
29266 2015-05-18 Martin Liska <mliska@suse.cz>
29268 * dbgcnt.def: Sort counters.
29269 * opts.c (common_handle_option): Do not compile if
29270 -fdbg-cnt-list is enabled.
29272 2015-05-18 Tom de Vries <tom@codesourcery.com>
29274 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
29275 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
29276 address operator to va_list operand.
29277 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
29279 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
29281 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
29282 * config/s390/s390.c (s390_gimplify_va_arg): Same.
29283 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
29285 2015-05-18 Tom de Vries <tom@codesourcery.com>
29287 * tree-ssa-tail-merge.c: Fix whitespace.
29289 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
29291 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
29292 cortex-a17, and cortex-a17.cortex-a7.
29294 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
29297 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
29299 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
29302 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
29303 QImode inner modes for TARGET_AVX512BW. Force mask operand
29304 to a register for AVX512F modes.
29306 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
29308 * toplev.c (emit_debug_global_declarations): Do not output debug info
29309 when doing slim LTO objects.
29311 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
29313 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
29314 odr_types_equivalent_p): Declare.
29315 (odr_type_p): Use gcc_checking_assert.
29316 (type_in_anonymous_namespace_p) Declare.
29317 (type_with_linkage_p): Declare.
29318 * common.opt (Wlto-type-mismatch): New warning.
29319 * ipa-devirt.c (compound_type_base): New function.
29320 (odr_or_derived_type_p): New function.
29321 (odr_types_equivalent_p): New function.
29322 (add_type_duplicate): Simplify.
29323 (type_with_linkage_p): Add hack to prevent false positives on C types
29324 (type_in_anonymous_namespace_p): Likewise.
29325 * tree.c (need_assembler_name_p): Use type_with_linkage.
29326 * tree.h (type_in_anonymous_namespace_p): Remove.
29327 * doc/invoke.texi (-Wlto-type-mismatch): Document
29329 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
29331 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
29332 (verify_type): Verify STRING_FLAG.
29334 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
29337 * tree-pretty-print.c (percent_K_format): Replace locus pointer
29338 with accessor function.
29339 * tree-diagnostic.c (diagnostic_report_current_function): Use
29340 diagnostic_location function.
29341 (maybe_unwind_expanded_macro_loc): Likewise.
29342 (virt_loc_aware_diagnostic_finalizer): Likewise.
29343 (default_tree_printer): Replace locus pointer with accessor function.
29344 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
29345 (diagnostic_set_info_translated): Initialize second location.
29346 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
29347 (diagnostic_show_locus): Handle two locations. Call
29348 diagnostic_print_caret_line.
29349 (diagnostic_print_caret_line): New.
29350 (default_diagnostic_starter): Use diagnostic_location function.
29351 (diagnostic_report_diagnostic): Use diagnostic_location function.
29352 (verbatim): Do not set text.locus.
29353 * diagnostic.h (struct diagnostic_info): Remove location field.
29354 (struct diagnostic_context): Make caret_chars an array of two.
29355 (diagnostic_location): New inline.
29356 (diagnostic_expand_location): Handle two locations.
29357 (diagnostic_same_line): New inline.
29358 (diagnostic_print_caret_line): Declare.
29359 (CARET_LINE_MARGIN): New constant.
29360 * pretty-print.c (pp_printf): Do not set text.locus.
29361 (pp_verbatim): Do not set text.locus.
29362 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
29363 (struct text_info): Replace locus pointer with locations
29364 array. Add accessor functions.
29366 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
29367 Zhenqiang Chen <zhenqiang.chen@linaro.org>
29370 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
29371 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
29372 large constants in register instead of splitting them.
29374 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
29377 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
29378 replacements in memory addresses.
29379 (get_unaligned_address): Ditto.
29381 2015-05-16 James Bowman <james.bowman@ftdichip.com>
29383 * config/ft32/*: New files for FT32 port.
29384 * doc/install.texi: Add FT32 information.
29385 * doc/invoke.texi: Add FT32 information.
29386 * doc/md.texi: Add FT32 information.
29387 * doc/contrib.texi: Self added.
29389 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
29391 PR tree-optimization/64454
29392 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
29393 (-1 - A -> ~A): Remove unnecessary condition.
29395 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
29397 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
29398 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
29399 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
29401 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
29403 * ipa-chkp.h (chkp_wrap_function): New.
29404 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
29405 (chkp_wrap_function_name): New.
29406 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
29407 to get wrapper name.
29408 * lto-cgraph.c: Include ipa-chkp.h.
29409 (input_cgraph_1): Avoid alias chain for wrappers.
29411 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
29413 PR middle-end/66134
29414 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
29415 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
29417 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29419 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
29420 (AARCH64_FL_SLOWMUL): Delete.
29421 (AARCH64_FL_CRC): Redefine to 1<<3.
29422 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
29424 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29426 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
29429 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
29431 * config/alpha/alpha.md (extendqidi2): Use general_operand
29432 instead of some_operand for operand[1] predicate.
29433 (extendhidi2): Ditto.
29434 (cbranchdi4): Use general_operand instead of some_operand
29435 for operand[1] and operands[2] predicates.
29436 (cstoredi4): Ditto.
29437 * config/alpha/predicates.md (some_operand): Remove unused predicate.
29438 (some_ni_operand): Ditto.
29440 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
29442 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
29443 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
29444 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
29445 low part of the constant using alpha_emit_set_const_1.
29446 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
29448 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
29450 * varasm.c (output_constant_pool_1): Pass down alignment from
29451 constant pool entry's descriptor to output_constant_pool_2.
29452 (output_object_block): Add comment prior to call to
29453 output_constant_pool_1.
29455 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
29457 PR rtl-optimization/65862
29458 * target.def (ira_change_pseudo_allocno_class): New hook.
29459 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
29461 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
29462 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
29464 * ira-costs.c (find_costs_and_classes): Call the hook and change
29465 classes when it is necessary.
29466 * doc/tm.texi: Update.
29468 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
29470 * config/i386/i386.md (sibcall_memory): Check that register with
29471 callee address is not also used as one of the arguments, instead
29472 of checking that it is not live after the sibcall.
29473 (sibcall_pop_memory): Ditto.
29474 (sibcall_value_memory): Ditto.
29475 (sibcall_value_pop_memory): Ditto.
29477 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
29479 * generic-match-head.c (types_match): Handle non-types.
29480 * gimple-match-head.c (types_match): Likewise.
29481 * match.pd: Remove unnecessary TREE_TYPE for types_match.
29483 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
29485 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
29486 (csneg3<mode>_insn): Enable expansion of pattern.
29488 2015-05-14 Nick Clifton <nickc@redhat.com>
29490 * config/rl78/rl78.c (rl78_select_section): Select the correct
29491 default section based upon the category of the decl.
29493 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
29495 PR rtl-optimization/30967
29496 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
29497 destination mode for the cost of scc patterns.
29499 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
29501 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
29502 using SWIM248 mode iterator.
29503 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
29504 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
29505 for operand[2] constraint.
29506 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
29508 2015-05-13 Jakub Jelinek <jakub@redhat.com>
29510 PR middle-end/66133
29511 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
29512 make sure it is never noreturn, even when the task body does not
29514 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
29515 right before GIMPLE_OMP_RETURN.
29516 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
29517 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
29518 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
29520 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29522 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
29523 * tree-ssa-math-opts.c: Include params.h
29524 (pow_synth_sqrt_info): New struct.
29525 (representable_as_half_series_p): New function.
29526 (get_fn_chain): Likewise.
29527 (print_nested_fn): Likewise.
29528 (dump_fractional_sqrt_sequence): Likewise.
29529 (dump_integer_part): Likewise.
29530 (expand_pow_as_sqrts): Likewise.
29531 (gimple_expand_builtin_pow): Use above to attempt to expand
29532 pow as series of square roots. Removed now unused variables.
29534 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
29536 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
29537 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
29538 Remove *p0 and *p1 arguments. Rewrite function.
29539 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
29540 (alpha_split_const_mov): Update calls to alpha_extract_integer and
29541 alpha_emit_set_long_const.
29542 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
29543 (alpha_output_mi_thunk_osf): Ditto.
29544 * config/alpha/alpha.md (movti): Do not check operands[1]
29547 2015-05-13 Richard Biener <rguenther@suse.de>
29549 PR tree-optimization/66129
29550 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
29552 (vect_schedule_slp_instance): Fix typo.
29554 2015-05-13 David Malcolm <dmalcolm@redhat.com>
29556 * common.opt (fdump-internal-locations): New option.
29557 * input.c: Include diagnostic-core.h.
29558 (get_end_location): New function.
29559 (write_digit): New function.
29560 (write_digit_row): New function.
29561 (dump_location_range): New function.
29562 (dump_labelled_location_range): New function.
29563 (dump_location_info): New function.
29564 * input.h (dump_location_info): New prototype.
29565 * toplev.c (compile_file): Handle flag_dump_locations.
29567 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
29569 * gimple-expr.h (is_gimple_constant): Reorder.
29570 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
29572 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
29574 * combine.c (simplify_set): When generating a CC set, if the
29575 source already is in the correct mode, do not wrap it in a
29576 compare. Simplify the rest of that code.
29578 2015-05-13 Richard Biener <rguenther@suse.de>
29580 PR tree-optimization/66123
29581 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
29584 2015-05-13 Richard Biener <rguenther@suse.de>
29586 PR middle-end/66110
29587 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
29589 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
29591 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
29593 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
29594 * aclocal.m4: Regenerated with automake-1.11.6.
29596 2015-05-13 Tom de Vries <tom@codesourcery.com>
29598 PR tree-optimization/66010
29599 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
29600 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
29601 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
29602 and rval based on do_deref.
29604 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
29607 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
29608 link time constants into adress expressions and therefore set
29611 2015-05-13 Jakub Jelinek <jakub@redhat.com>
29614 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
29615 Use SWI248 iterator instead of SWI.
29616 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
29617 Use eq_attr "alternative" "0" instead of match_test in
29618 length_immediate attribute computation.
29619 (*mulvhi4, *mulvhi4_1): New define_insns.
29622 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
29623 SIGNED to get precision of non-negative value.
29625 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
29628 * function.c (diddle_return_value_1): Process bounds first.
29629 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
29632 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
29634 PR rtl-optimization/64616
29635 * loop-invariant.c (can_move_invariant_reg): New.
29636 (move_invariant_reg): Call above new function to decide whether
29637 instruction can just be moved, skipping creation of temporary
29640 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
29642 PR target/pr66047.c
29643 * i386.c (ix86_function_sseregparm): Only return -1 if local function
29644 with implied regparm is called from -mno-sse function.
29645 (init_cumulative_args): Output error if ix86_function_sseregparm
29646 return -1 and SSE register would be needed.
29647 (function_arg_advance_32): Likewise.
29648 (function_arg_32): Likewise.
29649 * i386.h (ix86_args): Add decl field.
29651 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
29654 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
29655 inlines across optimization boundary.
29657 2015-05-12 Jason Merrill <jason@redhat.com>
29659 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
29660 string literal and macro name.
29662 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
29664 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
29665 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
29666 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
29668 2015-05-12 David Malcolm <dmalcolm@redhat.com>
29670 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
29671 (-Wmisleading-indentation): New option.
29672 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
29674 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
29676 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
29677 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
29678 (alpha_extract_integer): Ditto.
29679 (alpha_legitimate_constant_p): Ditto.
29680 (alpha_split_tmode_pair): Ditto.
29681 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
29682 (alpha_expand_mov): Ditto.
29683 (print_operand): Remove handling of 'H' modifier.
29684 <case 'm'>: Remove CONST_DOUBLE handling.
29685 (summarize_insn): Handle CONST_WIDE_INT.
29686 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
29688 (movti): Handle CONST_WIDE_INT.
29689 * config/alpha/constraints.md ('H'): Remove constraint definition.
29690 ('G'): Do not match MODE_FLOAT class.
29691 * config/alpha/predicates.md (const0_operand): Also match
29693 (non_add_const_operand): Ditto.
29694 (non_zero_const_operand): Ditto.
29695 (some_operand): Ditto.
29696 (input_operand): Ditto. Handle CONST_WIDE_INT.
29697 (and_operand): Do not match const_double.
29698 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
29700 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
29703 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
29704 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
29705 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
29706 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
29707 is_mm_seq_cst, is_mm_sync): New accessor functions.
29708 * builtins.c (expand_builtin_sync_operation,
29709 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
29710 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
29711 (get_memmodel, expand_builtin_atomic_compare_exchange,
29712 expand_builtin_atomic_load, expand_builtin_atomic_store,
29713 expand_builtin_atomic_clear): Use new accessor routines.
29714 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
29715 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
29716 (maybe_emit_sync_lock_test_and_set): Use new accessors and
29717 MEMMODEL_SYNC_ACQUIRE.
29718 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
29719 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
29720 expand_atomic_store): Use new accessors.
29721 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
29722 * tsan.c (instrument_builtin_call): Update check for memory model beyond
29723 final enum to use MEMMODEL_LAST.
29724 * c-family/c-common.c: Use new accessor for memmodel_base.
29725 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
29727 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
29728 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
29729 mem_thread_fence, *dmb): Likewise.
29730 * config/alpha/alpha.c (alpha_split_compare_and_swap,
29731 alpha_split_compare_and_swap_12): Likewise.
29732 * config/arm/arm.c (arm_expand_compare_and_swap,
29733 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
29734 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
29735 atomic_loaddi): Likewise.
29736 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
29738 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
29739 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
29741 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
29742 atomic_store<mode>, atomic_compare_and_swap<mode>,
29743 atomic_exchange<mode>): Use new accessors.
29744 * config/mips/mips.c (mips_process_sync_loop): Likewise.
29745 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
29746 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
29747 rs6000_post_atomic_barrier): Add new cases.
29748 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
29749 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
29750 (atomic_load<mode>): Add new cases and use new accessors.
29751 (store_quadpti): Add new cases.
29752 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
29754 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
29755 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
29758 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
29760 * ipa-devirt.c (type_with_linkage_p): New function.
29761 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
29763 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
29764 (can_be_name_hashed_p): Simplify.
29765 (hash_odr_name): Check that type has linkage before checking if it is
29767 (types_same_for_odr): Likewise.
29768 (odr_name_hasher::equal): Likewise.
29769 (odr_subtypes_equivalent_p): Likewise.
29770 (warn_types_mismatch): Likewise.
29771 (get_odr_type): Likewise.
29772 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
29773 * ipa-utils.h (odr_type_p): Move offline.
29774 * tree.c (need_assembler_name_p): Fix handling of types
29776 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
29778 2015-05-12 David Malcolm <dmalcolm@redhat.com>
29780 * timevar.c (timevar_enable): Delete in favor of...
29781 (g_timer): New global.
29782 (struct timevar_def): Move to timevar.h inside class timer.
29783 (struct timevar_stack_def): Likewise.
29784 (timevars): Delete global in favor of field "m_timevars" within
29785 class timer in timevar.h
29786 (stack): Likewise, in favor of field "m_stack".
29787 (unused_stack_instances): Likewise, in favor of field
29788 "m_unused_stack_instances".
29789 (start_time): Likewise, in favor of field "m_start_time".
29790 (get_time): Eliminate check for timevar_enable.
29791 (timer::timer): New function, built from part of timevar_init.
29792 (timevar_init): Rewrite idempotency test from using
29793 "timevar_enable" bool to using dynamic allocation of "g_timer".
29794 Move rest of implementation into timer's constructor.
29795 (timevar_push_1): Rename to...
29796 (timer::push): ...this, adding "m_" prefixes to variables that
29797 are now fields of timer.
29798 (timevar_pop_1): Likewise, rename to...
29799 (timer::pop): ...this, and add "m_" prefixes.
29800 (timevar_start): Replace test for "timevar_enable" with one for
29801 "g_timer", and move bulk of implementation to...
29802 (timer::start): ...here, adding "m_" prefixes.
29803 (timevar_stop): Likewise, from here...
29804 (timer::stop): ...to here.
29805 (timevar_cond_start): Likewise, from here...
29806 (timer::cond_start): ...to here.
29807 (timevar_cond_stop): Likewise, from here...
29808 (timer::cond_stop): ...to here.
29809 (validate_phases): Rename to...
29810 (timer::validate_phases): ...this, and add "m_" prefixes. Make
29811 locals "total" and "tv" const.
29812 (timevar_print): Rename to...
29813 (timer::print): ...this, and add "m_" prefixes. Make locals
29814 "total" and "tv" const. Eliminate test for timevar_enable.
29815 * timevar.h (timevar_enable): Eliminate.
29816 (g_timer): New declaration.
29817 (timevar_push_1): Eliminate.
29818 (timevar_pop_1): Eliminate.
29819 (timevar_print): Eliminate.
29820 (class timer): New class.
29821 (timevar_push): Rewrite to use g_timer.
29822 (timevar_pop): Likewise.
29823 * toplev.c (toplev::~toplev): Likewise.
29825 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
29827 * arm-protos.h (arm_sched_autopref): Delete.
29828 (tune_params): Re-organize, use enums for flag values.
29829 (FUSE_OPS): New macro.
29830 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
29831 (ARM_PREFETCH_BENEFICIAL): Likewise.
29832 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
29833 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
29834 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
29835 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
29836 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
29837 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
29838 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
29839 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
29841 (arm_option_override, thumb2_reorg, arm_print_tune_info)
29842 (aarch_macro_fusion_pair_p): Update uses of current_tune.
29843 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
29845 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
29847 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
29850 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
29851 Sandra Loosemore <sandra@codesourcery.com>
29853 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
29855 (REG_CLASS_NAMES): Add "IJMP_REGS".
29856 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
29857 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
29858 use new "c" register constraint.
29859 * config/nios2/constraint.md (c): New register constraint
29860 corresponding to IJMP_REGS.
29862 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
29864 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
29865 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
29866 define_splits): Delete, revamp, transmogrify into ...
29867 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
29868 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
29869 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
29872 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
29874 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
29875 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
29877 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
29879 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
29880 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
29881 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
29882 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
29883 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
29884 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
29885 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
29886 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
29887 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
29888 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
29889 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
29890 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
29891 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
29892 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
29893 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
29894 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
29895 and 30 corresponding splitters): Delete.
29897 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
29899 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
29902 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
29904 * combine.c (recog_for_combine_1): New function, factored out
29905 from recog_for_combine.
29906 (change_zero_ext): New function.
29907 (recog_for_combine): If recog fails, try again with the pattern
29908 modified by change_zero_ext; if that still fails, restore the
29911 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
29913 * combine.c (get_undo_marker): New function.
29914 (undo_to_marker): New function, largely factored out from ...
29915 (undo_all): ... this. Adjust.
29917 2015-05-12 Richard Biener <rguenther@suse.de>
29919 PR tree-optimization/66101
29920 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
29921 fixup if we turn a loop exit edge to a fallthru edge.
29923 2015-05-12 Richard Biener <rguenther@suse.de>
29925 PR tree-optimization/37021
29926 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
29927 (SLP_TREE_TWO_OPERATORS): New define.
29928 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
29929 SLP_TREE_TWO_OPERATORS.
29930 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
29932 (vect_build_slp_tree): Adjust.
29933 (vect_analyze_slp_cost_1): Likewise.
29934 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
29935 emitting two vector stmts and mixing the results.
29937 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
29939 * call.c (print_z_candidates): Remove dead code.
29941 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29943 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
29944 and zEC12_simple_fp.
29945 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
29948 2015-05-12 Tom de Vries <tom@codesourcery.com>
29950 PR tree-optimization/66010
29951 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
29953 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
29954 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
29955 va_lists are passed, and remove corresponding handling.
29956 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
29957 do_deref argument to ifn_va_arg.
29958 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
29961 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29964 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
29965 REG before taking its REGNO.
29967 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
29969 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
29970 rsp->sign_bit_copies and rsp->nonzero_bits into ...
29971 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
29972 present to get more accurate information about the number of sign bit
29973 copies and non zero bits.
29975 2015-05-12 Richard Biener <rguenther@suse.de>
29977 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
29978 do not allow unrolling.
29980 2015-05-11 Richard Henderson <rth@redhat.com>
29982 * config/i386/i386-modes.def (CCP): New.
29983 * config/i386/i386.c (put_condition_code): Handle it.
29984 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
29986 2015-05-11 Richard Henderson <rth@redhat.com>
29988 * target.def (md_asm_clobbers): Replace with...
29989 (md_asm_adjust): this.
29990 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
29991 (TARGET_MD_ASM_ADJUST): New.
29992 * tm.texi: Rebuild.
29993 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
29994 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
29995 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
29997 * cfgexpand.c (check_operand_nalternatives): Accept vector of
29998 constraints instead of lists of outputs and inputs.
29999 (expand_asm_stmt): Save and restore input_location around the
30000 body of the function. Move asm data into vectors instead of
30001 building tree lists. Generate cleanup sequences as needed,
30002 rather than waiting til the end. Use new md_asm_adjust hook.
30004 * config/vxworks.c: Include vec.h before target.h.
30005 * gimple.c: Likewise.
30006 * incpath.c: Likewise.
30007 * mode-switching.c: Likewise.
30009 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
30010 (cris_md_asm_adjust): this.
30011 (TARGET_MD_ASM_CLOBBERS): Remove.
30012 (TARGET_MD_ASM_ADJUST): New.
30013 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
30014 (ix86_md_asm_adjust): this.
30015 (TARGET_MD_ASM_CLOBBERS): Remove.
30016 (TARGET_MD_ASM_ADJUST): New.
30017 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
30018 (mn10300_md_asm_adjust): this.
30019 (TARGET_MD_ASM_CLOBBERS): Remove.
30020 (TARGET_MD_ASM_ADJUST): New.
30021 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
30022 (rs6000_md_asm_adjust): this.
30023 (TARGET_MD_ASM_CLOBBERS): Remove.
30024 (TARGET_MD_ASM_ADJUST): New.
30025 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
30026 (visium_md_asm_adjust): this.
30027 (TARGET_MD_ASM_CLOBBERS): Remove.
30028 (TARGET_MD_ASM_ADJUST): New.
30030 2015-05-11 Richard Henderson <rth@redhat.com>
30032 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
30033 if noutputs is zero.
30034 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
30036 * cfgexpand.c (expand_asm_operands): Merge into...
30037 (expand_asm_stmt): ... here.
30039 * cfgexpand.c (expand_asm_operands): Don't call
30040 resolve_asm_operand_names.
30041 * stmt.c (resolve_asm_operand_names): Clarify block comment.
30043 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
30045 * dwarf2out.c (gen_member_die): Sanity check that we access
30046 TYPE_MAIN_VARIANT for TYPE_METHODS.
30047 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
30048 checking TYPE_METHODS.
30049 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
30051 (build_distinct_type_copy): Clear TYPE_METHODS.
30052 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
30053 (verify_type): Allow TYPE_METHODS to be error_mark_node.
30054 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
30056 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
30058 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
30059 (emit_pattern_before_setloc): Likewise.
30061 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
30063 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
30064 for define_peephole2s.
30065 (get_peephole2_pattern): New function.
30066 (main): Use it. Call validate_pattern.
30068 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
30070 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
30071 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
30072 (Last callee saved reg is different for AVR_TINY architecture)
30074 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
30076 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
30077 when looking for memory references.
30079 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
30082 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
30083 via function pointers.
30085 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
30087 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
30088 indirect call by forcing address into a pseudo with -fno-plt.
30089 * common.opt (flag_plt): New option.
30090 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
30091 ([-fno-plt]): Document.
30093 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
30096 * config/rs6000/option-defaults.h: Add space between string literal
30099 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
30101 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
30102 accross ARM targets.
30104 2015-05-11 Christian Bruel <christian.bruel@st.com>
30106 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
30107 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
30109 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
30111 PR rtl-optimization/66076
30112 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
30113 Don't grow the heap array if it is already big enough from a
30114 previous iteration.
30116 2015-05-11 Christian Bruel <christian.bruel@st.com>
30118 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
30119 (is_called_in_ARM_mode): Remove.
30120 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
30121 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
30122 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
30123 arm_declare_function_name.
30125 2015-05-11 Christian Bruel <christian.bruel@st.com>
30127 * config/arm/arm.c (arm_option_override): Reoganized and split into :
30128 (arm_option_params_internal); New function.
30129 (arm_option_check_internal): New function.
30130 (arm_option_override_internal): New function.
30131 (thumb_code, thumb1_code): Remove.
30132 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
30133 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
30134 (thumb_code, thumb1_code): Remove.
30135 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
30137 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
30139 * config/alpha/alpha.c (alpha_emit_set_const_1)
30140 (alpha_emit_set_long_const, alpha_extract_integer)
30141 (alpha_legitimate_constant_p, alpha_split_const_mov)
30142 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
30143 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
30144 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
30146 * config/alpha/predicates.md (mode_mask_operand): Do not match
30148 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
30149 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
30150 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
30151 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
30152 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
30154 2015-05-11 Jakub Jelinek <jakub@redhat.com>
30157 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
30158 default_binds_local_p_2.
30159 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
30160 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
30162 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
30164 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
30166 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
30168 Patch by Richard Biener
30169 * coverage.c (coverage_obj_init): Delay building of type variant
30170 until the type is finished.
30172 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
30174 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
30175 mismatch between C and C++ type; compoare correctly ARG_TYPES
30176 for non-prototypes and output correctly parameter index for METHOD_TYPE.
30177 (odr_types_equivalent_p): Fix wording of warning about attributes;
30178 it is OK to match prototype and non-prototype.
30180 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
30182 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
30183 TYPE_ARG_TYPES list.
30184 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
30185 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
30187 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
30189 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
30190 * tree.h (is_lang_specific): Constify.
30192 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
30194 PR tree-optimization/64454
30195 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
30198 2015-05-08 Jason Merrill <jason@redhat.com>
30200 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
30201 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
30202 config/darwin.h, config/darwin9.h, config/elfos.h,
30203 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
30204 config/microblaze/microblaze.h, config/mips/mips.h,
30205 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
30206 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
30207 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
30208 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
30209 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
30210 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
30211 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
30212 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
30213 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
30214 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
30215 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
30216 between string literal and macro name.
30218 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30220 * jump.c: Change argument types to rtx_insn *.
30223 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30225 * lra-constraints.c: Change argument type to rtx_insn *.
30227 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30229 * df-problems.c: Change argument type to rtx_insn *.
30231 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30233 * combine.c: Change argument type to rtx_insn *.
30235 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30238 * rtlanal.c: Change argument type to rtx_insn *.
30240 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30242 * sched-deps.c: Change argument types to rtx_insn *.
30243 * sched-int.h: Adjust.
30245 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30247 * dwarf2cfi.c: Change argument type to rtx_insn *.
30249 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30251 * ira.c (decrease_live_ranges_number): Changetype of local
30252 variable to rtx_insn *.
30253 * recog.c: Change argument types to rtx_insn *.
30256 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30258 * reorg.c: Change argument types to rtx_insn *.
30260 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30262 * ira-color.c: Change argument types to rtx_insn *.
30263 * lra-eliminations.c: Likewise.
30266 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30268 * gcse.c: Change argument types to rtx_insn *.
30270 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30272 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
30274 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30276 * emit-rtl.c (emit_debug_insn_before): Change argument type to
30280 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30282 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
30285 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30287 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
30290 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30292 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
30295 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30297 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
30300 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30302 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
30306 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30308 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
30312 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30314 * except.c (can_nonlocal_goto): Change type of argument to
30318 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30320 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
30323 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30325 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
30326 * cfgrtl.c (can_delete_label_p): Adjust.
30329 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30331 * reorg.c (stop_search_p): Change argument to rtx_insn *.
30333 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30335 * except.c (make_reg_eh_region_note): Change argument to
30337 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
30338 * except.h: Adjust.
30340 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30342 * mode-switching.c (commit_mode_sets): Change type of local
30343 variable from rtx to rtx_insn *.
30345 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
30347 * doc/install.texi (--enable-languages): Add missing jit and lto info.
30348 Add ^ to grep command.
30349 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
30350 arg to last gimple_simplify declaration. Add missing gimple_build
30351 declaration for built-in function case with four tree args.
30353 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
30354 Szabolcs Nagy <szabolcs.nagy@arm.com>
30356 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
30357 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
30358 (GNU_USER_DYNAMIC_LINKERN32): Update.
30360 2015-05-08 Richard Biener <rguenther@suse.de>
30362 PR tree-optimization/66036
30363 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
30364 Handle strided group loads.
30365 (vect_verify_datarefs_alignment): Likewise.
30366 (vect_enhance_data_refs_alignment): Likewise.
30367 (vect_analyze_group_access): Likewise.
30368 (vect_analyze_data_ref_access): Likewise.
30369 (vect_analyze_data_ref_accesses): Likewise.
30370 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
30371 (vectorizable_load): Likewise.
30373 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
30375 * config/rs6000/rs6000.md: Require operand inequality in one
30378 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
30379 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
30381 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
30383 * config/rx/rx.md (movdi, movdf): Likewise.
30384 Likewise for define_peephole2s.
30386 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
30388 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
30389 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
30390 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
30391 vtst_u64): Rewrite using gcc vector extensions.
30393 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
30395 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
30396 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
30398 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
30400 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
30402 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
30404 * config/glibc-stdint.h (OPTION_MUSL): Define.
30405 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
30406 Change the definition based on OPTION_MUSL for 64 bit targets.
30407 * config/linux.h (OPTION_MUSL): Redefine.
30408 * config/alpha/linux.h (OPTION_MUSL): Redefine.
30409 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
30410 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
30412 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
30413 Szabolcs Nagy <szabolcs.nagy@arm.com>
30415 * config.gcc (LIBC_MUSL): New tm_defines macro.
30416 * config/linux.h (OPTION_MUSL): Define.
30417 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
30418 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
30419 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
30420 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
30421 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
30422 * config/linux.opt (mmusl): New option.
30423 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
30424 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
30425 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
30426 * configure: Regenerate.
30428 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
30429 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
30432 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
30433 * config/i386/knetbsd-gnu64.h: New file.
30435 2015-05-08 Marek Polacek <polacek@redhat.com>
30438 * doc/invoke.texi: Document -Woverride-init-side-effects.
30440 2015-05-07 Marek Polacek <polacek@redhat.com>
30443 * doc/invoke.texi: Document -Wshift-negative-value.
30445 2015-05-06 Aditya Kumar <hiraditya@msn.com>
30447 * gcov-tool.c (do_merge): Refactore to remove int ret.
30448 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
30449 !type == FUNC to type != FUNC.
30450 * reload.h (struct target_reload): Changee to type of
30451 x_spill_indirect_levels from bool to unsigned char.
30453 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
30455 * rtl.h (always_void_p): New function.
30456 * gengenrtl.c (always_void_p): Likewise.
30457 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
30458 with code foo are always VOIDmode.
30459 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
30460 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
30461 compare-elim.c, config/aarch64/aarch64.c,
30462 config/aarch64/aarch64.md, config/alpha/alpha.c,
30463 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
30464 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
30465 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
30466 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
30467 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
30468 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
30469 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
30470 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
30471 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
30472 config/ia64/vect.md, config/iq2000/iq2000.c,
30473 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
30474 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
30475 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
30476 config/mep/mep.c, config/microblaze/microblaze.c,
30477 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
30478 config/mn10300/mn10300.c, config/msp430/msp430.c,
30479 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
30480 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
30481 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
30482 config/rs6000/altivec.md, config/rs6000/rs6000.c,
30483 config/rs6000/rs6000.md, config/rs6000/vector.md,
30484 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
30485 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
30486 config/sh/sh.md, config/sh/sh_treg_combine.cc,
30487 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
30488 config/spu/spu.md, config/stormy16/stormy16.c,
30489 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
30490 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
30491 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
30492 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
30493 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
30494 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
30495 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
30496 var-tracking.c: Update calls accordingly.
30498 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
30501 PR middle-end/54303
30502 * varasm.c (function_mergeable_rodata_prefix): New function.
30503 (mergeable_string_section): Use it.
30504 (mergeable_constant_section): Use it.
30506 2015-05-07 Jeff Law <law@redhat.com>
30509 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
30510 simplifier to narrow arithmetic.
30511 * generic-match-head.c: (types_match, single_use): New functions.
30512 * gimple-match-head.c: (types_match, single_use): New functions.
30514 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
30516 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
30519 2015-05-07 Richard Biener <rguenther@suse.de>
30521 PR tree-optimization/66002
30522 * passes.def: Schedule another pass_merge_phi after ifcombine, right
30525 2015-05-07 Marek Polacek <polacek@redhat.com>
30526 Martin Uecker <uecker@eecs.berkeley.edu>
30528 * doc/invoke.texi: Document -fsanitize=bounds-strict.
30529 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
30530 into SANITIZE_NONDEFAULT.
30531 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
30533 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
30536 * config/alpha/alpha.c (alpha_override_options_after_change): New.
30537 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
30538 (alpha_override_options): Move align_loops, align_jumps and
30539 align_functions handling into alpha_override_options_after_change.
30541 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
30542 Chris Jones <chrisj@nvidia.com>
30543 Joshua Conner <jconner@nvidia.com>
30545 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
30546 linking of crtfastmath.o.
30547 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
30549 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
30551 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
30552 (cstore<mode>4_unsigned_imm): New expander.
30553 (cstore<mode>4): Remove empty constraint strings. Use the new
30556 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
30559 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
30562 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
30564 * config/aarch64/geniterators.sh: Use standard BRE in sed.
30566 2015-05-06 Alan Modra <amodra@gmail.com>
30569 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
30570 (UNSPEC_NOP): Define.
30571 (reload_vsx_from_gpr<mode>): Add missing DONE.
30572 (reload_gpr_from_vsx<mode>): Likewise.
30573 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
30574 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
30576 2015-05-06 Christian Bruel <christian.bruel@st.com>
30579 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
30580 align_jumps, align_functions into aarch64_override_options_after_change.
30582 2015-05-06 Richard Biener <rguenther@suse.de>
30584 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
30585 vect_transform_slp_perm_load to check if we support a permutation
30586 for basic-block vectorization.
30588 2015-05-06 Nick Clifton <nickc@redhat.com>
30590 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
30591 used, even if it is not being used as a frame pointer.
30593 2015-05-05 Jason Merrill <jason@redhat.com>
30595 * dwarf2out.c (gen_member_die): Don't emit anything for an
30596 anonymous class constructor.
30598 2015-05-05 David Malcolm <dmalcolm@redhat.com>
30600 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
30601 that it reflects the block structure.
30602 (afdo_propagate_edge): Likewise.
30603 (afdo_calculate_branch_prob): Likewise.
30604 (afdo_annotate_cfg): Likewise.
30605 * cfgcleanup.c (equal_different_set_p): Likewise.
30606 (try_crossjump_to_edge): Likewise.
30607 * cgraph.c (cgraph_node::verify_node): Likewise.
30608 * cgraphunit.c (expand_all_functions): Likewise.
30609 * config/i386/i386.c (ix86_expand_copysign): Likewise.
30610 (exact_dependency_1): Likewise.
30611 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
30612 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
30613 * gensupport.c (process_define_subst): Likewise.
30614 * lto-wrapper.c (merge_and_complain): Likewise.
30615 * tree-if-conv.c (if_convertible_bb_p): Likewise.
30616 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
30617 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
30618 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
30619 * tree-vect-loop.c (vectorizable_reduction): Likewise.
30620 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
30621 * tree-vect-stmts.c (vectorizable_shift): Likewise.
30622 * tree-vrp.c (vrp_finalize): Likewise.
30623 * tree.c (variably_modified_type_p): Likewise.
30625 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
30627 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
30628 on darwin12 and later.
30629 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
30630 file to pass -rdynamic on darwin12 and later.
30631 * config/darwin.opt (rdynamic): Add.
30633 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
30635 * doc/extend.texi (C Extensions): Update menu for moved Variable
30636 Attributes and Type Attributes sections.
30638 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
30641 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
30642 if rep_8byte stringop strategy was specified for 32-bit target.
30644 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
30647 * config/i386/i386.md (vector convert to float spltiter): Check for
30648 xmm16+, when splitting scalar float conversion.
30649 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
30651 2015-05-05 Nick Clifton <nickc@redhat.com>
30653 * config/msp430/msp430-opts.h (enum msp430_regions): New.
30654 * config/msp430/msp430.c (msp430_override_options): Complain if
30655 -mcode-region or -mdata-region is used on a non MSP430X.
30656 (msp430_section_attr): New function. Checks lower, upper and
30658 (msp430_attribute_table): Add lower, upper and either.
30659 (gen_prefix): New function. Generates a prefix for a section
30661 (msp430_select_section): New function - handles the choice of
30662 section for an object. Takes into account memory region
30663 attributes and options.
30664 (msp430_function_section): Use gen_prefix.
30665 (TARGET_SECTION_TYPE_FLAGS): Define.
30666 (msp430_section_type_flags): New function.
30667 (TARGET_ASM_UNIQUE_SECTION): Define.
30668 (msp430_unique_section): New function.
30669 (msp430_output_aligned_decl_common): New function.
30670 (msp430_do_not_relax_short_jumps): New function.
30671 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
30673 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
30674 * config/msp430/msp430-protos.h
30675 (msp430_do_not_relax_short_jumps): New prototype.
30676 (msp430_output_aligned_decl_common): New prototype.
30677 * config/msp430/msp430.md (length): New attribute.
30678 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
30679 then use a long code sequence for short jumps.
30680 * config/msp430/msp430.opt (mcode-region): New.
30681 (mdata-region): New.
30682 * doc/invoke.texi: Document new options.
30683 * doc/extend.texi: Document new attributes.
30685 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
30687 * config/aarch64-protos.h (struct cpu_branch_cost): New.
30688 (tune_params): Add field branch_costs.
30689 (aarch64_branch_cost): Declare.
30690 * config/aarch64.c (generic_branch_cost): New.
30691 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
30692 (cortexa53_tunings): Likewise.
30693 (cortexa57_tunings): Likewise.
30694 (thunderx_tunings): Likewise.
30695 (xgene1_tunings): Likewise.
30696 (aarch64_branch_cost): Define.
30697 * config/aarch64/aarch64.h (BRANCH_COST): Redefine.
30699 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
30701 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
30702 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
30703 * config/i386/i386.md: Ditto.
30704 * config/i386/winnt.c: Ditto.
30706 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
30708 * doc/extend.texi (__atomic Builtins): Move implementation details
30709 to the end of the description, rewrite opening paragraphs, state
30710 difference with __sync builtins, state C11/C++11 assumptions,
30711 weaken itemized descriptions, add explanation of memory model
30712 behaviour, expand description of compare-exchange, simplify text.
30714 2015-05-05 Renlin Li <renlin.li@arm.com>
30716 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
30718 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
30720 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
30721 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
30722 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
30723 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
30724 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
30725 * configure: Regenerate.
30726 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
30727 * doc/install.texi (aarch64*-*-*): Document new
30728 --enable-fix-cortex-a53-843419 option.
30729 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
30730 and -mno-fix-cortex-a53-843419 options.
30732 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
30735 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
30737 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
30739 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
30740 fix overactive TYPE_MIN_VALUE check and add FIXME for type
30741 compatibility problems.
30743 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
30745 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
30747 (cbranchsi4_reg): New.
30748 * config/microblaze/microblaze.c
30749 (microblaze_expand_conditional_branch_reg): New.
30750 * config/microblaze/microblaze-protos.h
30751 (microblaze_expand_conditional_branch_reg): New prototype.
30753 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
30755 * config/microblaze/microblaze.md (peephole2): New.
30757 2015-05-04 Jeff Law <law@redhat.com>
30760 2015-05-04 Jeff Law <law@redhat.com>
30762 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
30763 simplifier to narrow arithmetic.
30764 * generic-match-head.c: (types_match, single_use): New functions.
30765 * gimple-match-head.c: (types_match, single_use): New functions.
30767 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
30770 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
30771 (split_branches): Likewise.
30773 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
30775 * common.opt (fdelete-null-pointer-checks): Init to -1.
30776 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
30777 override flag_delete_null_pointer_checks default.
30778 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
30779 behavior re address zero. Better document target-specific behavior.
30780 (-fisolate-errneous-paths-dereference): Mention relationship to
30781 -fdelete-null-pointer-checks.
30783 2015-05-04 Jakub Jelinek <jakub@redhat.com>
30785 PR tree-optimization/65984
30786 * ubsan.c: Include tree-cfg.h.
30787 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
30788 stmt_could_throw_p test, rename can_throw variable to ends_bb.
30790 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
30792 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
30793 to CONST_DOUBLE_P predicate.
30794 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
30795 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
30796 allow only operands that satisfy standard_sse_constant_p predicate.
30797 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
30798 to CONST_DOUBLE_P predicate.
30800 2015-05-04 Jeff Law <law@redhat.com>
30802 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
30803 simplifier to narrow arithmetic.
30804 * generic-match-head.c: (types_match, single_use): New functions.
30805 * gimple-match-head.c: (types_match, single_use): New functions.
30807 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
30809 * config/arm/arm.c: Restore bootstrap.
30811 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
30813 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
30814 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
30815 as CONST_WIDE_INT, not CONST_DOUBLE.
30816 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
30817 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
30818 (ix86_find_base_term): Do not check for CONST_DOUBLE.
30819 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
30820 (ix86_build_signbit_mask): Rewrite using wide ints.
30821 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
30822 (ix86_rtx_costs): Handle CONST_WIDE_INT.
30823 (find_constant): Ditto.
30824 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
30825 using gen_int_mode.
30826 * config/i386/predicates.md (x86_64_immediate_operand)
30827 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
30828 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
30829 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
30830 (const0_operand): Also match const_wide_int.
30831 (constm1_operand): Ditto.
30832 (const1_operand): Ditto.
30834 2015-05-04 Richard Biener <rguenther@suse.de>
30836 PR tree-optimization/65965
30837 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
30838 store groups at gaps.
30840 2015-05-04 Richard Biener <rguenther@suse.de>
30842 PR tree-optimization/65935
30843 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
30844 then make sure to apply that swapping to the IL.
30846 2015-05-04 Jakub Jelinek <jakub@redhat.com>
30848 * Makefile.in (PATCHLEVEL_c): New variable.
30849 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
30850 expand the same way as if DEVPHASE_c was non-empty.
30852 2015-05-04 Kai Tietz <ktietz@redhat.com>
30855 * lto-wrapper.c (run_gcc): Open filename
30858 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
30860 * doc/extend.texi (Variable Attributes, Type Attributes): Move
30861 sections up in file, to immediately after the Function Attributes
30864 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
30866 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
30868 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30870 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
30871 (insert_partition_copy_on_edge): Adjust.
30872 (insert_rtx_to_part_on_edge): Likewise.
30873 (insert_part_to_rtx_on_edge): Likewise.
30875 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30877 * function.c (set_return_jump_label): Change type of argument to
30879 * function.h (set_return_jump_label): Adjust.
30881 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30883 * reload.h (struct reg_equivs_t): Change type of init to
30885 * ira.c (fix_reg_equiv_init): Adjust.
30886 * reload1.c (eliminate_regs_1): Likewise.
30887 (init_eliminable_invariants): Likewise.
30889 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30891 * cselib.c (fp_setter_insn): Take a rtx_insn *.
30892 * cselib.h (fp_setter_insn): Adjust.
30894 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30896 * recog.c (struct validate_replace_src_data): Change type of
30897 insn field to rtx_insn *.
30898 (validate_replace_src_group): Change type of argument to rtx_insn *.
30899 * recog.h (validate_replace_src_group): Adjust.
30901 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30903 * haifa-sched.c: Change the type of some variables to rtx_insn *.
30904 * sched-deps.c: Likewise.
30905 * sched-int.h: Likewise.
30906 * sched-rgn.c: Likewise.
30907 * sel-sched.c: Likewise.
30909 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30912 * config/i386/i386.c: Change the type of some arguments to
30914 * config/arm/arm.c: Likewise.
30916 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30918 * lra-constraints.c: Change type of some arguments to rtx_insn *.
30920 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30922 * regcprop.c (kill_autoinc_value): Change type of argument to
30925 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30927 * genrecog.c (print_subroutine): Adjust.
30928 * recog.c (get_bool_attr_mask_uncached): Likewise.
30929 * recog.h (struct recog_data_d): Change the type of insn to
30932 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30934 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
30936 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30938 * df-problems.c (df_set_note): Change type of argument to
30941 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30943 * builtins.c (expand_builtin_trap): Change type of local
30944 variable to rtx_insn *.
30945 (add_sched_insns_for_speculation): Likewise.
30946 (ix86_emit_save_regs): Likewise.
30947 (get_scratch_register_on_entry): Likewise.
30948 (ix86_emit_restore_reg_using_pop): Likewise.
30949 (ix86_emit_leave): Likewise.
30950 (ix86_emit_restore_regs_using_mov): Likewise.
30951 (ix86_expand_epilogue): Likewise.
30953 (rl78_alloc_physical_registers_umul): Likewise.
30954 * cselib.c (discard_useless_locs): Likewise.
30955 (cselib_invalidate_regno): Likewise.
30956 (cselib_invalidate_mem): Likewise.
30957 * function.c (expand_function_start): Likewise.
30958 (emit_use_return_register_into_block): Likewise.
30959 * gcse.c: Likewise.
30960 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
30961 * ifcvt.c (noce_get_alt_condition): Likewise.
30962 * loop-doloop.c (doloop_condition_get): Likewise.
30963 * lra-constraints.c (inherit_in_ebb): Likewise.
30964 * modulo-sched.c (sms_schedule_by_order): Likewise.
30965 * recog.c (next_insn_tests_no_inequality): Likewise.
30966 * reorg.c (emit_delay_sequence): Likewise.
30967 (update_reg_dead_notes): Likewise.
30968 (fix_reg_dead_note): Likewise.
30969 (fill_slots_from_thread): Likewise.
30970 (delete_computation): Likewise.
30972 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
30974 * doc/extend.texi (Variable Attributes): Add menu and proper
30975 @nodes to subsections. Move Microsoft Windows attributes to
30976 their own subsection.
30977 (Type Attributes): Reorganize introduction to remove duplicate
30978 list of attributes. Add menu and proper @nodes to subsections.
30979 Alphabetize the main table of common attributes.
30981 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
30983 * match.pd: New simplification patterns.
30984 (x + (x & 1)) -> ((x + 1) & ~1)
30985 (x & ~(x & y)) -> ((x & ~y))
30986 (x | ~(x | y)) -> ((x | ~y))
30988 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30990 * target.def (attribute_table): Mention that struct attribute_spec
30991 is defined in tree-core.h rather than tree.h
30992 * doc/tm.texi: Regenerate.
30994 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
30996 * genrecog.c (test): Rename to rtx_test. Update rest of file
30999 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
31001 PR translation/65959
31002 * params.h (DEFPARAM): Rename msgid to nocmsgid.
31004 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
31006 * config/aarch64/aarch64-protos.h (tune_params):
31007 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
31008 * config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
31009 Return value depending on target.
31010 (generic_tunings): Initialize new target settings.
31011 (cortexa53_tunings): Likewise.
31012 (cortexa57_tunings): Likewise.
31013 (thunderx_tunings): Likewise.
31014 (xgene1_tunings): Likewise.
31016 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
31018 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
31019 Make Cortex-A53 shift costs more accurate.
31021 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31023 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
31026 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
31028 * config/aarch64/aarch64.c (aarch64_rtx_costs):
31029 Calculate cost of op0 and op1 in PLUS and MINUS cases.
31031 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31033 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
31034 Add cost of op0 in the compare-with-fpzero case.
31036 2015-04-30 David Malcolm <dmalcolm@redhat.com>
31038 * builtins.c (fold_builtin_1): Remove spurious second
31040 * cgraph.h (symtab_node::get_availability): Likewise.
31041 * opts.c (common_handle_option): Remove spurious second semicolon.
31042 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
31043 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
31045 2015-04-30 Caroline Tice <cmtice@google.com>
31047 PR gcov-profile/65929
31048 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
31049 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
31050 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
31051 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
31052 * doc/tm.texi: Regenerate.
31053 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
31054 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
31055 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
31056 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
31058 2015-04-30 Marek Polacek <polacek@redhat.com>
31060 * varasm.c (handle_cache_entry): Fix logic.
31062 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31064 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
31065 (*extrsi5_insn_uxtw_alt): Likewise.
31066 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
31067 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
31070 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31072 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
31075 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31077 * config/aarch64/aarch64.md
31078 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
31079 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
31080 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
31081 appropriately. Handle alternative EON form.
31083 2015-04-30 Renlin Li <renlin.li@arm.com>
31085 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
31086 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
31088 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
31091 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
31092 -fstrict-aliasing boundaries.
31094 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31096 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
31097 and [SU]MNEGL patterns.
31099 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31101 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
31102 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
31103 combined arithmetic-shift ops. Properly handle all shift and extend
31104 operations that can occur in combination with PLUS/MINUS.
31105 Rename maybe_fma to compound_p.
31106 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
31107 arithmetic and shift operations.
31109 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31111 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
31112 rather than arith_shift cost when costing ADD/MINUS of an
31115 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
31118 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
31121 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
31123 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
31124 are for the same position.
31126 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
31128 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
31130 (vectorize_loops): Use it.
31132 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
31134 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
31135 for aggregate types.
31136 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
31137 type to be non_ODR.
31138 * tree.c (need_assembler_name_p): Compute mangled name for
31139 non-fundamental types and integer types.
31141 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
31143 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
31145 * expr.c (expand_expr_real_2): Likewise.
31147 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
31149 * tree.c (build_common_builtin_nodes): Do not build
31150 __builtin_alloca_with_align as equivalent of library alloca.
31152 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
31154 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
31155 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
31157 * tree.c: Include print-tree.h and ipa-utils.h
31158 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
31159 (free_lang_data_in_cgraph): Call verify_type.
31160 (verify_type_variant): New function.
31161 (verify_type): New function.
31162 * tree.h (verify_type): Declare.
31164 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
31166 * config/mips/mips-cpus.def: (mips4): Change default processor
31167 from PROCESSOR_R8000 to PROCESSOR_R10000.
31169 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
31171 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
31172 la/jalr instead of jal.
31174 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
31177 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
31178 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
31179 (setcc+movzbl peephole2): Check also clobbered reg.
31180 (setcc+andl peephole2): Ditto.
31182 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
31185 * config/nvptx/mkoffload.c (target_ilp32): New variable.
31186 (main): Set it depending on "-foffload-abi=[...]".
31187 (compile_native, main): Use it to pass "-m32" or "-m64" to the
31190 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
31193 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
31194 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
31195 Flip lane index back at assembly time for bigendian.
31197 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
31199 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
31200 * gimplify.c (gimplify_omp_workshare): Use it.
31202 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
31204 * Makefile.in (build/genrecog.o): Depend on inchash.h.
31205 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
31207 * genrecog.c: Rewrite most of the code except for the third page.
31209 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
31211 * inchash.h, inchash.c: Include bconfig.h for build objects.
31212 * Makefile.in (build/inchash.o): New rule.
31214 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
31217 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
31218 number in type attribute expression.
31220 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
31222 * loop-iv.c (canon_condition): Generalize to all types of integer
31225 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
31227 * gimple-walk.c: Prune duplicate or unneeded includes.
31228 (walk_gimple_asm): Only call parse_input_constraint or
31229 parse_output_constraint if their findings are used.
31230 Honour parse_input_constraint and parse_output_constraint
31233 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
31235 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
31237 2015-04-29 Tom de Vries <tom@codesourcery.com>
31239 PR tree-optimization/65893
31240 * passes.def (pass_all_optimizations): Move pass_stdarg to after
31243 2015-04-29 Richard Biener <rguenther@suse.de>
31245 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
31246 compute GROUP_SIZE for basic-block SLP.
31247 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
31248 take into account gaps.
31249 (vect_get_mask_element): Properly reject references to previous
31251 (vect_transform_slp_perm_load): Likewise.
31253 2015-04-29 Christian Bruel <christian.bruel@st.com>
31256 * config/i386/i386.c (ix86_default_align): New function.
31257 (ix86_override_options_after_change): Call ix86_default_align.
31258 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
31259 (ix86_override_options_after_change): New function.
31261 2015-04-28 Jeff Law <law@redhat.com>
31263 * tree-ssa-dom.c (record_equality); Fix comment typos.
31265 2015-04-28 Tom de Vries <tom@codesourcery.com>
31267 PR tree-optimization/65887
31268 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
31270 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
31272 * doc/extend.texi (Declaring Attributes of Functions): Split into
31273 subsections by target. Alphabetize the table of common attributes.
31274 Rewrite some of the introductory text to reflect the new structure.
31275 Update some cross-references to point to the new subsections.
31276 (Attribute Syntax): Put paragraph about "__" naming here. Remove
31277 duplicate copies in the discussion of function, label, and type
31280 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
31283 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
31285 2015-04-28 Jason Merrill <jason@redhat.com>
31288 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
31289 (finalize_type_size): Respect TYPE_USER_ALIGN.
31290 (layout_type) [ARRAY_TYPE]: Likewise.
31292 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
31294 * config/arm/arm.md (*arm_movt): Fix type attribute.
31295 (*cmpsi_shiftsi): Likewise.
31296 (*cmpsi_shiftsi_swp): Likewise.
31297 (*movsicc_insn): Likewise.
31298 (*cond_move): Likewise.
31299 (*if_plus_move): Likewise.
31300 (*if_move_plus): Likewise.
31301 (*if_arith_move): Likewise.
31302 (*if_move_arith): Likewise.
31303 (*if_shift_move): Likewise.
31304 (*if_move_shift): Likewise.
31305 (*arm_movtas_ze): Likewise.
31306 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
31307 redundancy and type attribute.
31308 (*thumb2_movsi_insn): Fix type attribute.
31309 (*thumb2_addsi_short): Likewise.
31310 (thumb2_addsi3_compare0): Likewise.
31311 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
31312 attributes accordingly.
31314 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
31317 * function.c (pad_to_arg_alignment): Add parentheses.
31319 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
31321 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
31322 libgcc/config/frv/elf-lib.h.
31324 2015-04-28 Tom de Vries <tom@codesourcery.com>
31326 * tree-call-cdce.c: Fix example in header comment.
31328 2015-04-28 Richard Biener <rguenther@suse.de>
31330 PR tree-optimization/62283
31331 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
31332 fails fatally and we are vectorizing a basic-block simply
31333 cause the child to be constructed piecewise.
31334 (vect_analyze_slp_cost_1): Adjust.
31335 (vect_detect_hybrid_slp_stmts): Likewise.
31336 (vect_bb_slp_scalar_cost): Likewise.
31337 (vect_get_constant_vectors): For piecewise constructed
31338 constants place them after the last def.
31339 (vect_get_slp_defs): Adjust.
31340 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
31341 externals for basic-block vectorization.
31343 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
31346 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
31348 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
31349 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
31350 (AARCH64_TUNE_FMA_STEERING): Likewise.
31351 * config/aarch64/aarch64-cores.def: Set
31352 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
31353 FMUL/FMADD instructions.
31354 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
31355 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
31356 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
31357 * config/aarch64/cortex-a57-fma-steering.h: New file.
31358 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
31360 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
31362 * gensupport.c (std_preds): Add missing codes to address_operand entry.
31364 2015-04-28 Richard Biener <rguenther@suse.de>
31366 PR tree-optimization/65851
31367 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
31368 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
31369 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
31370 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
31371 (ccp_visit_phi_node): Adjust.
31372 (evaluate_stmt): For simplifications to SSA names return its
31373 lattice value if that isn't VARYING. Return immediately when
31374 simplified to a constant.
31375 (visit_assignment): Adjust.
31376 (ccp_visit_stmt): Likewise.
31378 2015-04-28 Tom de Vries <tom@codesourcery.com>
31380 PR tree-optimization/65818
31381 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
31384 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31386 * calls.c (save_fixed_argument_area): Don't check
31387 ARGS_GROW_DOWNWARD with the preprocessor.
31388 (restore_fixed_argument_area): Likewise.
31389 (mem_overlaps_already_clobbered_arg_p): Likewise.
31390 (check_sibcall_argument_overlap): Likewise.
31391 (expand_call): Likewise.
31392 (emit_library_call_value_1): Likewise.
31393 (store_one_arg): Likewise.
31394 * function.c (assign_parms): Likewise.
31395 (locate_and_pad_parm): Likewise.
31396 (pad_to_arg_alignment): Likewise.
31397 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
31399 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31401 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
31402 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
31403 * calls.c (save_fixed_argument_area): Don't chekc if
31404 ARGS_GROW_DOWNWARD is defined.
31405 (restore_fixed_argument_area): Likewise.
31406 (mem_overlaps_already_clobbered_arg_p): Likewise.
31407 (check_sibcall_argument_overlap): Likewise.
31408 (expand_call): Likewise.
31409 (emit_library_call_value_1): Likewise.
31410 (store_one_arg): Likewise.
31411 * function.c (assign_parms): Likewise.
31412 (locate_and_pad_parm): Likewise.
31413 (pad_to_arg_alignment): Likewise.
31414 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
31416 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31418 * defaults.h (gen_epilogue): New function.
31419 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
31421 * cfgrtl.c (cfg_layout_finalize): Likewise.
31422 * df-scan.c: Likewise.
31423 * function.c (thread_prologue_and_epilogue_insns): Likewise.
31424 (reposition_prologue_and_epilogue_notes): Likewise.
31425 * reorg.c (find_end_label): Likewise.
31426 * toplev.c: Likewise.
31428 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31430 * bb-reorder.c (HAVE_return): Don't check if its undefined.
31431 * defaults.h (gen_simple_return): New function.
31432 (gen_simple_return): Likewise.
31433 (HAVE_return): Add default definition to false.
31434 (HAVE_simple_return): Likewise.
31435 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
31436 HAVE_return and HAVE_simple_return are defined.
31437 * function.c (gen_return_pattern): Likewise.
31438 (convert_jumps_to_returns): Likewise.
31439 (thread_prologue_and_epilogue_insns): Likewise.
31440 * reorg.c (find_end_label): Likewise.
31441 (dbr_schedule): Likewise.
31442 * shrink-wrap.c: Likewise.
31443 * shrink-wrap.h: Likewise.
31445 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31447 * defaults.h (EPILOGUE_USES): Add default definition of false.
31448 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
31449 * resource.c (init_resource_info): Likewise.
31451 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31453 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
31455 * dwarf2out.c (field_byte_offset): REmove check if
31456 PCC_BITFIELD_TYPE_MATTERS is defined.
31457 * stor-layout.c (layout_decl): Likewise.
31458 (update_alignment_for_field): Likewise.
31459 (place_field): Likewise.
31461 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31463 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
31465 * regrename.c (check_new_reg_p): Remove check if
31466 HARD_REGNO_RENAME_OK is defined.
31467 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
31469 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31471 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
31472 * cse.c (fold_rtx): Likewise.
31473 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
31474 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
31475 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
31476 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
31477 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
31478 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
31479 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
31480 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
31481 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
31482 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
31484 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
31485 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
31486 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
31487 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
31488 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
31489 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
31490 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
31491 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
31492 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
31493 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
31494 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
31495 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
31496 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
31497 * doc/tm.texi: Regenerate.
31498 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
31499 either true or false.
31501 2015-04-27 Jeff Law <law@redhat.com>
31503 PR tree-optimization/65217
31504 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
31505 of them has a single use, make sure it is the LHS of the implied
31508 2015-04-28 Alan Modra <amodra@gmail.com>
31511 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
31512 (offsettable_ok_by_alignment): Use minimum of decl and toc
31513 pointer alignment. Replace dead code with assertion.
31514 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
31515 case if size exceeds toc pointer alignment.
31516 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
31517 (rs6000_emit_move): Likewise.
31518 * configure.ac: Add linker toc pointer alignment check.
31519 * configure: Regenerate.
31520 * config.in: Regenerate.
31522 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
31524 * config.gcc: Add h8300-*-linux.
31525 * config/h8300/linux.h: New.
31526 * config/h8300/t-linux: New.
31527 * config/h8300/h8300.c (h8300_option_override): Normal mode
31528 is not supported for h8300-*-linux.
31529 (h8300_file_start): Target priority change.
31530 (get_shift_alg): Likewise.
31531 (h8300_shift_need_scratch_p): Likewise.
31532 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
31533 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
31535 2015-04-27 Caroline Tice <cmtice@google.com>
31537 * final.c (final_scan_insn): Output cold_function_name as function
31539 * varasm.c (cold_function_name): Make global.
31540 (assemble_start_function): Re-set cold_function_name.
31541 (assemble_end_function): Output cold partition size.
31542 * varasm.h (cold_function_name): Declare global.
31544 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
31546 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
31547 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
31549 (*movxi_internal_avx512f): Ditto.
31550 (define_split): Check for xmm16+, when splitting scalar float_extend.
31551 (*extendsfdf2_mixed): Use "v" constraint.
31552 (define_split): Check for xmm16+, when splitting scalar float_truncate.
31553 (*truncdfsf_fast_sse): Use "v" constraint.
31554 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
31555 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
31556 (define_peephole2): Check for xmm16+, when converting scalar
31558 (define_peephole2): Check for xmm16+, when converting scalar
31560 (*fop_<mode>_comm_mixed): Use "v" constraint.
31561 (*fop_<mode>_comm_sse): Ditto.
31562 (*fop_<mode>_1_mixed): Ditto.
31563 (*sqrt<mode>2_sse): Ditto.
31564 (*ieee_s<ieee_maxmin><mode>3): Ditto.
31566 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31568 * combine.c (simplify_if_then_else): Use std::swap instead
31569 of manually swapping.
31570 (known_cond): Likewise.
31571 (simplify_comparison): Likewise.
31573 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
31576 * config/rs6000/htm.md: Remove all define_expands.
31577 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
31578 UNSPECV_HTM_TABORTWCI): Remove.
31579 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
31580 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
31581 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
31582 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
31583 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
31584 tabortwci_internal): Remove define_insns.
31585 (tabort<wd>c, tabort<wd>ci): New define_insns.
31586 (tabort): Use gpc_reg_operand.
31587 (tcheck): Remove operand.
31588 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
31589 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
31591 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
31592 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
31593 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
31594 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
31595 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
31596 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
31597 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
31598 (tcheck): Remove builtin argument.
31599 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
31601 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
31602 tabortdc and tabortdci builtins when not in 64-bit mode.
31603 Modify code to handle the loss of the HTM define_expands.
31604 Emit code to copy the CR register to TARGET.
31605 (htm_init_builtins): Modify code to handle the loss of the HTM
31607 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
31608 (RS6000_BTC_64BIT): Likewise.
31609 (RS6000_BTC_CR): New macro.
31610 * doc/extend.texi: Update documentation for htm builtins.
31612 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31614 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
31615 of manually swapping.
31616 (simplify_associative_operation): Likewise.
31617 (simplify_binary_operation): Likewise.
31618 (simplify_plus_minus): Likewise.
31619 (simplify_relational_operation): Likewise.
31620 (simplify_ternary_operation): Likewise.
31622 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
31624 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
31625 (xs_hi_nonmemory_operand): Remove error.
31626 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
31627 general_operand rather than xs_hi_general_operand.
31629 2015-04-27 Richard Biener <rguenther@suse.de>
31631 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
31632 (record_equivalences_from_stmt): Valueize rhs.
31633 (record_equality): Canonicalize x and y order via
31634 tree_swap_operands_p. Do not swap operands for same loop depth.
31636 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
31640 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
31641 Add hint how to use own spec file.
31643 2015-04-27 Jakub Jelinek <jakub@redhat.com>
31645 PR tree-optimization/65875
31646 * tree-vrp.c (update_value_range): If in is_new case setting
31647 old_vr to VR_VARYING, also set new_vr to it. Remove
31648 old_vr->type == VR_VARYING test.
31649 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
31650 SSA_PROP_INTERESTING if update_value_range returned true,
31651 but new range is VR_VARYING.
31653 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
31655 * combine.c (sign_extend_short_imm): New.
31656 (set_nonzero_bits_and_sign_copies): Use above new function for sign
31657 extension of src short immediate.
31658 (reg_nonzero_bits_for_combine): Likewise for tem.
31660 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
31662 * stor-layout.c (self_referential_component_ref_p): New predicate.
31663 (copy_self_referential_tree_r): Use it.
31664 (self_referential_size): Punt for simple operations directly involving
31665 self-referential component references.
31666 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
31668 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
31670 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
31672 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
31674 * vec.h (vec): Make splice arguments const. Update definitions
31677 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
31679 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
31682 2015-04-26 Tom de Vries <tom@codesourcery.com>
31684 PR tree-optimization/65826
31685 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
31687 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
31689 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
31690 (*madd3<mode>): Ditto.
31691 (*msub4<mode>): Ditto.
31692 (*msub3<mode>): Ditto.
31693 (*nmadd4<mode>): Ditto.
31694 (*nmadd3<mode>): Ditto.
31695 (*nmadd4<mode>_fastmath): Ditto.
31696 (*nmadd3<mode>_fastmath): Ditto.
31697 (*nmsub4<mode>): Ditto.
31698 (*nmsub3<mode>): Ditto.
31699 (*nmsub4<mode>_fastmath): Ditto.
31700 (*nmsub3<mode>_fastmath): Ditto.
31702 2015-04-24 Jason Merrill <jason@redhat.com>
31705 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
31706 down when building TYPE_CANONICAL.
31707 (build_pointer_type_for_mode): Likewise.
31709 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
31711 * genrecog.c (validate_pattern): Check matching constraint refers
31712 to a lower numbered operand.
31714 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
31717 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
31718 save to independent variables use the Save attribute. This will
31719 allow these options to be modified with the #pragma/attribute
31721 (-mallow-movmisalign): Likewise.
31722 (-mallow-df-permute): Likewise.
31723 (-msched-groups): Likewise.
31724 (-malways-hint): Likewise.
31725 (-malign-branch-targets): Likewise.
31726 (-mvectorize-builtins): Likewise.
31727 (-msave-toc-indirect): Likewise.
31729 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
31730 can be set via the #pragma/attribute target support.
31731 (rs6000_opt_vars): Likewise.
31732 (rs6000_inner_target_options): If VSX was set, also set
31733 -mno-avoid-indexed-addresses.
31735 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31737 * config/arm/iterators.md (shiftable_ops): Rename to...
31738 (SHIFTABLE_OPS): ... This. Update use in comments.
31739 (ior_xor): Rename to...
31740 (IOR_XOR): ... This.
31741 (vqh_ops): Rename to...
31742 (VQH_OPS): ... This.
31743 (vqhs_ops): Rename to...
31744 (VQHS_OPS): ... This.
31745 (rshifts): Rename to...
31746 (RSHIFTS): ... This.
31747 (returns): Rename to...
31748 (RETURNS): ... This.
31749 * config/arm/arm.md: Update uses of the above.
31750 * config/arm/neon.md: Likewise.
31752 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31754 * config.host (case ${host}): Add aarch64*-*-linux case.
31755 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
31756 fields to all the cores.
31757 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
31758 Add MCPU_MTUNE_NATIVE_SPECS.
31759 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
31760 field to all extensions.
31761 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
31762 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
31763 Adjust definition of AARCH64_OPT_EXTENSION.
31764 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
31765 (MCPU_MTUNE_NATIVE_SPECS): Define.
31766 * config/aarch64/driver-aarch64.c: New file.
31767 * config/aarch64/x-arch64: New file.
31768 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
31771 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
31772 Wei Mi <wmi@google.com>
31774 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
31775 * config/i386/i386.c (extract_base_offset_in_addr): New function.
31776 (ix86_operands_ok_for_move_multiple): Ditto.
31777 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
31778 (movlpd/movhpd to movupd peephole2): Ditto.
31780 2015-04-24 Marek Polacek <polacek@redhat.com>
31783 * input.h (from_macro_expansion_at): Define.
31786 * doc/invoke.texi: Update description of -Wlogical-op.
31788 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
31790 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
31791 ternary operator in fprintf and harmonize spacing.
31793 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
31795 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
31796 Mark operand1 commutative.
31798 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
31800 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
31801 input operands in memory.
31802 (*vec_concatv2si_sse4_1): Ditto.
31803 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
31804 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
31806 (vec_extract_hi_v32hi): Ditto.
31807 (vec_extract_hi_v64hi): Ditto.
31808 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
31810 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
31811 Steven Bosscher <steven@gcc.gnu.org>
31813 PR rtl-optimization/34503
31814 * cprop.c (cprop_reg_p): New.
31815 (hash_scan_set): Use above function to check if register can be
31817 (find_avail_set): Return up to two sets, one whose source is a
31818 register and one whose source is a constant. Sets are returned in an
31819 array passed as parameter rather than as a return value.
31820 (cprop_insn): Use a do while loop rather than a goto. Try each of the
31821 sets returned by find_avail_set, starting with the one whose source is
31822 a constant. Use cprop_reg_p to check if register can be propagated.
31823 (do_local_cprop): Use cprop_reg_p to check if register can be
31825 (implicit_set_cond_p): Likewise.
31827 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
31829 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
31830 (sem_function::equals): IGNORED_NODES parameter is now unused;
31831 update call of equals_private.
31832 (sem_function::equals_private): Do not call equals_wpa; skip
31833 gimple body matching if there is no body.
31834 (sem_function::init): Add logic to hash tthunk info.
31835 (sem_function::parse): Also parse thunks.
31836 * ipa-icf.h (equals_private): Update declaration.
31838 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31840 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
31841 asterisk from name so this can be generated directly.
31842 (*altivec_stvx_<mode>_internal): Likewise.
31843 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
31844 that this is never called during or after reload/lra.
31845 (rs6000_frame_related): Remove split_reg
31846 argument and logic that references it.
31847 (emit_frame_save): Remove last parameter from call to
31848 rs6000_frame_related.
31849 (rs6000_emit_prologue): Remove last parameter from eight calls to
31850 rs6000_frame_related. Force generation of stvx instruction for
31851 Altivec register saves. Remove split_reg handling, which is no
31853 (rs6000_emit_epilogue): Force generation of lvx instruction for
31854 Altivec register restores.
31856 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31858 * config/rs6000/rs6000.opt (mcrypto): Change option description to
31859 match category changes in ISA 2.07B.
31861 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31863 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
31865 (cmp_op, cmp_type): New code attributes.
31866 (NEON_VCMP, NEON_VACMP): New int iterators.
31867 (cmp_op_unsp): New int attribute.
31868 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
31869 (neon_vceq<mode>): Delete.
31870 (neon_vc<cmp_op><mode>_insn): New pattern.
31871 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
31872 (neon_vcgeu<mode>): Delete.
31873 (neon_vcle<mode>): Likewise.
31874 (neon_vclt<mode>: Likewise.
31875 (neon_vcage<mode>): Likewise.
31876 (neon_vcagt<mode>): Likewise.
31877 (neon_vca<cmp_op><mode>): New define_expand.
31878 (neon_vca<cmp_op><mode>_insn): New pattern.
31879 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
31881 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
31883 * tree.h (attribute_value_equal): Declare.
31884 * tree.c (attribute_value_equal): Export.
31886 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
31888 * ipa-icf.c (sem_item::compare_attributes): New function.
31889 (sem_item::compare_referenced_symbol_properties): Compare variable
31891 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
31892 (sem_function::param_used_p): New function.
31893 (sem_function::equals_wpa): Fix attribute comparsion; match
31894 parameter type codes; do not compare paremter flags when
31895 they are not used; compare edge flags; compare indirect calls.
31896 (sem_item::update_hash_by_addr_refs): Hash reference type.
31897 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
31898 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
31899 reference use type.
31900 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
31901 * ipa-icf.h (compare_attributes, param_used_p): Declare.
31903 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
31905 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
31907 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
31908 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
31909 (sem_item::compare_referenced_symbol_properties): New.
31910 (sem_item::hash_referenced_symbol_properties): New.
31911 (sem_item::compare_cgraph_references): Rename to ...
31912 (sem_item::compare_symbol_references): ... this one; use
31913 compare_referenced_symbol_properties.
31914 (sem_function::equals_wpa): Do not compare
31915 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
31916 DECL_IS_OPERATOR_NEW; compare pointer sizes.
31917 (sem_item::update_hash_by_addr_refs): Call
31918 hash_referenced_symbol_properties.
31919 (sem_item::update_hash_by_local_refs): Cleanup.
31920 (sem_function::merge): Do not mix up symbol properties.
31921 (sem_variable::equals_wpa): Use compare_symbol_references.
31922 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
31923 (sem_item::hash_referenced_symbol_properties): New.
31924 (sem_item::compare_symbol_references): New.
31925 (sem_item::compare_cgraph_references): Remove.
31927 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
31930 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
31931 Emit size of local.
31933 2015-04-23 Nick Clifton <nickc@redhat.com>
31935 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
31936 ATTRIBUTE_UNUSED to x parameter.
31937 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
31939 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31941 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
31942 TARGET_CRYPTO to TARGET_P8_VECTOR>
31943 (crypto_vpermxor_<mode>): Likewise.
31944 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
31945 (BU_CRYPTO_3A): Likewise.
31946 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
31947 (BU_CRYPTO_OVERLOAD_3A): New #define.
31948 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
31949 (VPMSUMH): Likewise.
31950 (VPMSUMW): Likewise.
31951 (VPMSUMD): Likewise.
31952 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
31953 (VPERMXOR_V4SI): Likewise.
31954 (VPERMXOR_V8HI): Likewise.
31955 (VPERMXOR_V16QI): Likewise.
31956 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
31957 BU_CRYPTO_OVERLOAD_2A.
31958 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
31959 BU_CRYPTO_OVERLOAD_3A.
31960 * config/rs6000/rs6000.opt (mcrypto): Change description of
31963 2015-04-23 Richard Biener <rguenther@suse.de>
31965 * passes.def: Remove copy propagation passes run directly after CCP.
31966 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
31968 (ccp_visit_phi_node): Rework to handle first executable edge
31971 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
31973 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
31974 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
31975 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
31976 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
31977 (thumb_legimitimize_reload_address): Remove.
31978 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
31980 (thumb_legimitimize_reload_address): Remove.
31982 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31984 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
31986 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31988 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
31990 (store_multiple): Likewise.
31992 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31994 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
31995 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
31996 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
31997 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
31998 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
31999 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
32000 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
32001 Specify issue_rate value.
32002 (arm_issue_rate): Look up issue rate from tuning structs. Remove
32003 large switch statement.
32004 (arm_marvell_pj4_tune): New struct.
32005 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
32008 2015-04-23 Richard Biener <rguenther@suse.de>
32010 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
32011 (vect_find_last_store_in_slp_instance): Rename to ...
32012 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
32013 (vect_analyze_slp_cost_1): Use vector_load for constant defs
32014 and vec_construct for external defs when estimating prologue cost.
32015 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
32016 Compute costs here only when vectorizing loops.
32017 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
32018 have been determined.
32019 (vect_schedule_slp_instance): Simplify vectorized code placement
32020 and prepare for in-BB external defs.
32021 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
32022 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
32023 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
32025 (vect_model_load_cost): Likewise.
32026 (vectorizable_store): Instead add it here.
32027 (vectorizable_load): Likewise.
32028 (vect_is_simple_use): Dump def type textually.
32030 2015-04-23 Richard Biener <rguenther@suse.de>
32032 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
32033 * cfgloop.c (verify_loop_structure): Verify the root loop node.
32034 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
32035 instead of get_eh_region_from_lp_number.
32036 * loop-init.c (fix_loop_structure): If we removed a loop, reset
32039 2015-04-23 Anton Blanchard <anton@samba.org>
32041 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
32042 need for -mprofile-kernel to save LR to stack.
32044 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32046 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
32048 (insn_is_swappable_p): Return 1 for a convert from double to
32049 single precision when all of its uses are splats of BE element
32052 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
32054 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
32056 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32059 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
32060 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
32061 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
32063 (rs6000_builtin_mask_for_load): Return 0 for targets with
32064 efficient unaligned VSX accesses so that the vectorizer will use
32065 direct unaligned loads.
32066 (rs6000_builtin_support_vector_misalignment): Always return true
32067 for targets with efficient unaligned VSX accesses.
32068 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
32069 stores on targets with efficient unaligned VSX accesses is almost
32070 always the same as the cost of an aligned load or store, so model
32072 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
32073 unaligned vectors if we have efficient unaligned VSX accesses.
32074 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
32075 undocumented option.
32077 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32080 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
32082 * config.gcc (LIBC_MUSL): New tm_defines macro.
32083 * config/linux.h (OPTION_MUSL): Define.
32084 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
32085 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
32086 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
32088 * config/linux.opt (mmusl): New option.
32089 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
32090 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
32092 * configure: Regenerate.
32094 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
32096 * config.gcc (LIBC_MUSL): New tm_defines macro.
32097 * config/linux.h (OPTION_MUSL): Define.
32098 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
32099 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
32100 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
32102 * config/linux.opt (mmusl): New option.
32103 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
32104 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
32106 * configure: Regenerate.
32108 2015-04-22 Yury Gribov <y.gribov@samsung.com>
32110 * doc/invoke.texi (-fsanitize-sections): Update description.
32111 * asan.c (set_sanitized_sections): Parse incoming arg.
32112 (section_sanitized_p): Support wildcards.
32114 2015-04-22 Tom de Vries <tom@codesourcery.com>
32116 PR tree-optimization/65823
32117 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
32118 equality between ap_copy and ap.
32120 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
32123 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
32125 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
32128 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
32130 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
32133 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
32134 remove already contained t-files.
32136 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
32138 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
32139 Remove unneeded forward declarations.
32140 (suitable_for_tail_call_opt_p): Commentary typo fix.
32142 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
32144 * varasm.c (emit_bss): Remove redundant guard.
32146 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
32148 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
32150 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
32152 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
32154 2015-04-22 Hale Wang <hale.wang@arm.com>
32155 Terry Guo <terry.guo@arm.com>
32157 PR rtl-optimization/64818
32158 * combine.c (can_combine_p): Don't combine user-specified
32159 register if it is in an asm input.
32161 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
32164 * passes.def (early_optimizations): Add pass_dse.
32166 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32168 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
32169 * reorg.c (redundant_insn): Remove ifdef
32170 INSN_REFERENCES_ARE_DELAYED.
32171 * resource.c (mark_referenced_resources): Likewise.
32173 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32175 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
32176 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
32177 * resource.c (mark_set_resources): Likewise.
32179 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32181 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
32182 * cfgcleanup.c (flow_find_cross_jump): Likewise.
32183 (flow_find_head_matching_sequence): Likewise.
32184 (try_head_merge_bb): Likewise.
32185 * combine.c (can_combine_p): Likewise.
32186 (try_combine): Likewise.
32187 (distribute_notes): Likewise.
32188 * df-problems.c (can_move_insns_across): Likewise.
32189 * final.c (final): Likewise.
32190 * gcse.c (insert_insn_end_basic_block): Likewise.
32191 * ira.c (find_moveable_pseudos): Likewise.
32192 * reorg.c (try_merge_delay_insns): Likewise.
32193 (fill_simple_delay_slots): Likewise.
32194 (fill_slots_from_thread): Likewise.
32195 * sched-deps.c (sched_analyze_2): Likewise.
32197 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32199 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
32200 PIC_OFFSET_TABLE_REGNUM.
32202 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32204 * alias.c (init_alias_target): Remove ifdef
32205 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
32206 * df-scan.c (df_insn_refs_collect): Likewise.
32207 (df_get_regular_block_artificial_uses): Likewise.
32208 (df_get_eh_block_artificial_uses): Likewise.
32209 (df_get_entry_block_def_set): Likewise.
32210 (df_get_exit_block_use_set): Likewise.
32211 * emit-rtl.c (gen_rtx_REG): Likewise.
32212 * ira.c (ira_setup_eliminable_regset): Likewise.
32213 * reginfo.c (init_reg_sets_1): Likewise.
32214 * regrename.c (rename_chains): Likewise.
32215 * reload1.c (reload): Likewise.
32216 (eliminate_regs_in_insn): Likewise.
32217 * resource.c (mark_referenced_resources): Likewise.
32218 (init_resource_info): Likewise.
32220 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32222 * defaults.h (MASK_RETURN_ADDR): New definition.
32223 * except.c (expand_builtin_extract_return_addr): Remove ifdef
32226 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32228 * defaults.h (RETURN_ADDR_OFFSET): New definition.
32229 * except.c (expand_builtin_extract_return_addr): Remove ifdef
32230 RETURN_ADDR_OFFSET.
32231 (expand_builtin_frob_return_addr): Likewise.
32233 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32235 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
32236 (try_redirect_by_replacing_jump): Likewise.
32237 (rtl_tidy_fallthru_edge): Likewise.
32238 * combine.c (insn_a_feeds_b): Likewise.
32239 (find_split_point): Likewise.
32240 (simplify_set): Likewise.
32241 * cprop.c (cprop_jump): Likewise.
32242 * cse.c (cse_extended_basic_block): Likewise.
32243 * df-problems.c (can_move_insns_across): Likewise.
32244 * function.c (emit_use_return_register_into_block): Likewise.
32245 * haifa-sched.c (sched_init): Likewise.
32246 * ira.c (find_moveable_pseudos): Likewise.
32247 * loop-invariant.c (find_invariant_insn): Likewise.
32248 * lra-constraints.c (curr_insn_transform): Likewise.
32249 * postreload.c (reload_combine_recognize_const_pattern):
32251 * reload.c (find_reloads): Likewise.
32252 * reorg.c (delete_scheduled_jump): Likewise.
32253 (steal_delay_list_from_target): Likewise.
32254 (steal_delay_list_from_fallthrough): Likewise.
32255 (redundant_insn): Likewise.
32256 (fill_simple_delay_slots): Likewise.
32257 (fill_slots_from_thread): Likewise.
32258 (delete_computation): Likewise.
32259 * sched-rgn.c (add_branch_dependences): Likewise.
32261 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32263 * genconfig.c (main): Always define HAVE_cc0.
32264 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
32266 * cfgcleanup.c (flow_find_cross_jump): Likewise.
32267 (flow_find_head_matching_sequence): Likewise.
32268 (try_head_merge_bb): Likewise.
32269 * cfgrtl.c (rtl_merge_blocks): Likewise.
32270 (try_redirect_by_replacing_jump): Likewise.
32271 (rtl_tidy_fallthru_edge): Likewise.
32272 * combine.c (do_SUBST_MODE): Likewise.
32273 (insn_a_feeds_b): Likewise.
32274 (combine_instructions): Likewise.
32275 (can_combine_p): Likewise.
32276 (try_combine): Likewise.
32277 (find_split_point): Likewise.
32279 (simplify_set): Likewise.
32280 (distribute_notes): Likewise.
32281 * cprop.c (cprop_jump): Likewise.
32282 * cse.c (cse_extended_basic_block): Likewise.
32283 * df-problems.c (can_move_insns_across): Likewise.
32284 * final.c (final): Likewise.
32285 (final_scan_insn): Likewise.
32286 * function.c (emit_use_return_register_into_block): Likewise.
32287 * gcse.c (insert_insn_end_basic_block): Likewise.
32288 * haifa-sched.c (sched_init): Likewise.
32289 * ira.c (find_moveable_pseudos): Likewise.
32290 * loop-invariant.c (find_invariant_insn): Likewise.
32291 * lra-constraints.c (curr_insn_transform): Likewise.
32292 * optabs.c (prepare_cmp_insn): Likewise.
32293 * postreload.c (reload_combine_recognize_const_pattern):
32295 * reload.c (find_reloads): Likewise.
32296 (find_reloads_address_1): Likewise.
32297 * reorg.c (delete_scheduled_jump): Likewise.
32298 (steal_delay_list_from_target): Likewise.
32299 (steal_delay_list_from_fallthrough): Likewise.
32300 (try_merge_delay_insns): Likewise.
32301 (redundant_insn): Likewise.
32302 (fill_simple_delay_slots): Likewise.
32303 (fill_slots_from_thread): Likewise.
32304 (delete_computation): Likewise.
32305 (relax_delay_slots): Likewise.
32306 * sched-deps.c (sched_analyze_2): Likewise.
32307 * sched-rgn.c (add_branch_dependences): Likewise.
32309 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32311 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
32312 that is trivially ded on non cc0 targets.
32313 (simplify_set): Likewise.
32314 (mark_used_regs_combine): Likewise.
32315 * cse.c (new_basic_block): Likewise.
32316 (fold_rtx): Likewise.
32317 (cse_insn): Likewise.
32318 (cse_extended_basic_block): Likewise.
32319 (set_live_p): Likewise.
32320 * rtlanal.c (canonicalize_condition): Likewise.
32321 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
32323 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32325 * conditions.h: Define macros even if HAVE_cc0 is undefined.
32326 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
32327 * final.c: Likewise.
32328 * jump.c: Likewise.
32329 * recog.c: Likewise.
32330 * recog.h: Declare functions even when HAVE_cc0 is undefined.
32331 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
32333 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32335 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
32336 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
32337 * builtins.c (expand_builtin): Remove check if
32338 EH_RETURN_DATA_REGNO is defined.
32339 * df-scan.c (df_bb_refs_collect): Likewise.
32340 (df_get_exit_block_use_set): Likewise.
32341 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
32342 * ira-lives.c (process_bb_node_lives): Likewise.
32343 * lra-lives.c (process_bb_lives): Likewise.
32345 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
32347 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
32348 FIRST_PSEUDO_REG): New.
32349 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
32350 (ARG_POINTER_REGNUM): Define to ARGP_REG.
32351 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
32352 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
32353 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
32354 (FIRST_INT_REG): New.
32355 (LAST_INT_REG): New.
32356 (FIRST_*_REG): Define using *_REG.
32357 (LAST_*_REG): Ditto.
32358 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
32359 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
32360 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
32362 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32364 * expmed.c: (synth_mult): Only assume overlapping
32365 shift with previous steps in alg_sub_t_m2 case.
32367 2015-04-21 Richard Biener <rguenther@suse.de>
32369 PR tree-optimization/65650
32370 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
32371 transitions involving copies.
32372 (set_lattice_value): Adjust for copy lattice state.
32373 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
32374 if that doesn't dominate the merge point.
32375 (bit_value_unop): Adjust what we treat as varying mask.
32376 (bit_value_binop): Likewise.
32377 (bit_value_assume_aligned): Likewise.
32378 (evaluate_stmt): When we simplified to a SSA name record a copy
32379 instead of dropping to varying.
32380 (visit_assignment): Simplify.
32382 * gimple-match.h (gimple_simplify): Add another callback.
32383 * gimple-fold.c (fold_stmt_1): Adjust caller.
32384 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
32385 for the 2nd callback.
32386 * gimple-match-head.c (gimple_simplify): Add a callback that is
32387 used to valueize the stmt operands and use it that way.
32389 2015-04-21 Richard Biener <rguenther@suse.de>
32391 PR tree-optimization/65788
32392 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
32394 2015-04-21 Richard Biener <rguenther@suse.de>
32396 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
32397 vec_construct cost by vec_stmt_cost.
32399 2015-04-21 Richard Biener <rguenther@suse.de>
32401 * cfghooks.h (create_basic_block): Replace with two overloads
32402 for RTL and GIMPLE.
32403 (split_block): Likewise.
32404 * cfghooks.c (split_block): Rename to ...
32405 (split_block_1): ... this.
32406 (split_block): Add two type-safe overloads for RTL and GIMPLE.
32407 (split_block_after_labels): Call split_block_1.
32408 (create_basic_block): Rename to ...
32409 (create_basic_block_1): ... this.
32410 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
32411 (create_empty_bb): Call create_basic_block_1.
32412 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
32413 split_block_after_labels.
32414 * omp-low.c (expand_parallel_call): Likewise.
32415 (expand_omp_target): Likewise.
32416 (simd_clone_adjust): Likewise.
32417 * tree-chkp.c (chkp_get_entry_block): Likewise.
32418 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
32419 create_basic_block overload.
32420 (cgraph_node::expand_thunk): Likewise.
32421 * tree-cfg.c (make_blocks): Likewise.
32422 (handle_abnormal_edges): Likewise.
32423 * tree-inline.c (copy_bb): Likewise.
32425 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32427 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
32429 (*xor_one_cmplsidi3_ze): Likewise.
32431 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
32433 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
32434 use df_remove_problem rather than manually removing problems, leaving
32435 holes in df->problems_in_order[].
32437 2015-04-21 Tom de Vries <tom@codesourcery.com>
32439 PR tree-optimization/65802
32440 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
32442 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32444 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
32446 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
32447 at '.'. Assert that there's enough space for everything.
32449 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
32451 PR tree-optimization/64950
32453 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
32456 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
32459 2015-04-20 Shiva Chen <shiva0217@gmail.com>
32461 PR rtl-optimization/64916
32462 * cfgcleanup.c (values_equal_p): New function.
32463 (can_replace_by): Use it.
32465 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
32468 * doc/invoke.texi ([-Wnarrowing]): Update.
32470 2015-04-20 Jeff Law <law@redhat.com>
32472 PR tree-optimization/65658
32473 * tree-ssa-threadupdate.c (redirection_block_p): Remove
32474 redundant test for GIMPLE_ASSIGN in last change.
32476 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
32478 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
32479 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
32480 (legitimize_tls_address): Ditto.
32481 (ix86_expand_move): Ditto.
32482 (ix86_expand_binary_operator): Remove reload_in_progress checks.
32483 (ix86_expand_unary_operator): Ditto.
32484 * config/i386/predicates.md (index_register_operand): Ditto.
32486 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
32488 * reorg.c (try_merge_delay_insns): Improve correctness checking
32489 for targets with multiple delay slots.
32491 2015-04-20 Jeff Law <law@redhat.com>
32493 PR tree-optimization/65658
32494 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
32497 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
32499 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
32500 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
32503 2015-04-20 Jakub Jelinek <jakub@redhat.com>
32506 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
32508 2015-04-20 Richard Biener <rguenther@suse.de>
32510 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
32511 * gimple-fold.c (gimple_build_valueize): New function.
32512 (gimple_build): Always use gimple_build_valueize as valueize hook.
32514 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
32517 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
32518 and overwrite variable parts if <= 1/2 the elements are variable.
32520 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
32522 PR rtl-optimization/65805
32523 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
32524 Don't use difference of offset and previous offset if
32525 update_sp_offset is non-zero.
32526 (eliminate_regs_in_insn): Ditto.
32527 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
32528 lra_eliminate_regs_1 call.
32529 * lra-constraints.c (get_equiv_with_elimination): Ditto.
32531 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
32533 * hash-table.h: Remove version of hash_table that stored value_type *.
32534 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
32535 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
32536 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
32537 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
32538 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
32539 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
32540 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
32541 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
32542 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
32543 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
32544 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
32545 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
32546 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
32547 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
32548 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
32549 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
32551 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32552 Jakub Jelinek <jakub@redhat.com>
32555 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
32556 subsequent SH_NONE operand does not overwrite an existing *special
32558 (adjust_extract): Handle case where a vec_extract operation is
32559 wrapped in a PARALLEL.
32561 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
32564 * config/i386/i386.c (ix86_binds_local_p): Define only if
32565 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
32567 2015-04-17 Jeff Law <law@redhat.com>
32569 PR tree-optimization/47679
32570 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
32571 * tree-ssa-scopedtables.c: New file.
32572 * tree-ssa-scopedtables.h: New file.
32573 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
32574 (const_and_copies): Change name/type.
32575 (record_const_or_copy): Move into tree-ssa-scopedtables.c
32576 (record_const_or_copy_1): Similarly.
32577 (restore_vars_to_original_value): Similarly.
32578 (pass_dominator::execute): Create and destroy const_and_copies table.
32579 (thread_across_edge): Update passing of const_and_copies.
32580 (record_temporary_equivalence): Use method calls rather than
32581 manipulating const_and_copies directly.
32582 (record_equality, cprop_into_successor_phis): Similarly.
32583 (dom_opt_dom_walker::before_dom_children): Similarly.
32584 (dom_opt_dom_walker::after_dom_children): Similarly.
32585 (eliminate_redundant_computations): Similarly.
32586 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
32587 (record_temporary_equivalence): Likewise.
32588 (invalidate_equivalences): Likewise.
32589 (record_temporary_equivalences_from_phis): Update due to type
32590 change of const_and_copies. Use method calls rather than
32591 manipulating the stack directly.
32592 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
32593 (thread_through_normal_block, thread_across_edge): Likewise.
32594 (thread_across_edge): Likewise.
32595 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
32596 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
32598 (identify_jump_threads): Update due to type change of equiv_stack.
32599 (finalize_jump_threads): Delete the equiv_stack when complete.
32601 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
32603 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
32604 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
32605 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
32607 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
32610 * config.gcc: Exit with a comment when we do not have a major version
32611 number for the FreeBSD target.
32613 2015-04-17 Jakub Jelinek <jakub@redhat.com>
32616 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
32617 maybe_allows_mem bitfields.
32618 (maybe_allows_none_start, maybe_allows_none_end,
32619 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
32620 maybe_allows_mem_end): New variables.
32621 (compute_maybe_allows): New function.
32622 (add_constraint): Use it to initialize maybe_allows_reg and
32623 maybe_allows_mem fields.
32624 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
32625 is_address constraints such that those that allow neither mem nor
32626 reg come first, then those that only allow reg but not mem, then
32627 those that only allow mem but not reg, then the rest.
32628 (write_allows_reg_mem_function): New function.
32629 (write_tm_preds_h): Call it.
32630 * stmt.c (parse_output_constraint, parse_input_constraint): Use
32631 the generated insn_extra_constraint_allows_reg_mem function
32632 instead of always setting *allows_reg = true; *allows_mem = true;
32633 for unknown extra constraints.
32635 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
32638 * output.h (default_binds_local_p_3): New.
32639 * varasm.c (default_binds_local_p_3): Make it public. Take an
32640 argument to indicate if common symbol may be local. If common
32641 symbol may be local, treat non-external variable as defined
32643 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
32644 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
32645 * config/i386/i386.c (ix86_binds_local_p): New.
32646 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
32647 ix86_binds_local_p.
32649 2015-04-17 Jakub Jelinek <jakub@redhat.com>
32652 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
32653 trying mem_loc_descriptor on XEXP (rtl, 0).
32655 2015-04-17 Martin Liska <mliska@suse.cz>
32657 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
32658 Release symbol_compare_collection.
32659 * ipa-reference.c: Add TODO that a vector should be released.
32661 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
32664 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
32665 to new AVR-LibC file layout (bug #44574).
32666 (*avrlibc_devicelib): Same.
32667 * config/avr/avr-mcus.def: Adjust comments.
32668 * config/avr/avr.opt (nodevicelib): Adjust help.
32670 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
32672 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
32674 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
32677 * gimplify.c (gimplify_init_constructor): Always emit a
32678 side-effecting constructor.
32680 2015-04-17 Tom de Vries <tom@codesourcery.com>
32682 PR tree-optimization/64950
32683 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
32684 in cfun->curr_properties.
32685 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
32686 if we generate an IFN_VA_ARG.
32687 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
32688 function if PROP_gimple_lva is not set in src function.
32690 2015-04-17 Tom de Vries <tom@codesourcery.com>
32691 Michael Matz <matz@suse.de>
32693 PR tree-optimization/64950
32694 * gimple-iterator.c (update_modified_stmts): Remove static.
32695 * gimple-iterator.h (update_modified_stmts): Declare.
32696 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
32697 (gimplify_va_arg_internal): New function.
32698 (gimplify_va_arg_expr): Use IFN_VA_ARG.
32699 * gimplify.h (gimplify_va_arg_internal): Declare.
32700 * internal-fn.c (expand_VA_ARG): New unreachable function.
32701 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
32702 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
32703 (expand_ifn_va_arg): New function.
32704 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
32705 (pass_stdarg::execute): Call expand_ifn_va_arg.
32706 (pass_data_lower_vaarg): New pass_data.
32707 (pass_lower_vaarg): New gimple_opt_pass.
32708 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
32709 (make_pass_lower_vaarg): New function.
32710 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
32711 properties_required field.
32712 * passes.def (all_passes): Add pass_lower_vaarg.
32713 * tree-pass.h (PROP_gimple_lva): Add define.
32714 (make_pass_lower_vaarg): Declare.
32716 2015-04-17 Tom de Vries <tom@codesourcery.com>
32718 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
32719 * calls.c (call_expr_flags): Same.
32721 2015-04-17 Tom de Vries <tom@codesourcery.com>
32723 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
32724 (pass_stdarg::execute): ... here.
32726 2015-04-17 Tom de Vries <tom@codesourcery.com>
32727 Michael Matz <matz@suse.de>
32729 * tree-cfg.c (make_blocks_1): Factor out of ...
32730 (make_blocks): ... here.
32731 (make_edges_bb): Factor out of ...
32732 (make_edges): ... here.
32733 (gimple_find_sub_bbs): New function.
32734 * tree-cfg.h (gimple_find_sub_bbs): Declare.
32736 2015-04-17 Tom de Vries <tom@codesourcery.com>
32738 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
32740 2015-04-17 Yury Gribov <y.gribov@samsung.com>
32742 * asan.c (set_sanitized_sections): New function.
32743 (section_sanitized_p): Ditto.
32744 (asan_protect_global): Optionally sanitize user-defined
32746 * asan.h (set_sanitized_sections): Declare new function.
32747 * common.opt (fsanitize-sections): New option.
32748 * doc/invoke.texi (-fsanitize-sections): Document new option.
32749 * opts-global.c (handle_common_deferred_options): Handle new
32752 2015-04-17 Jakub Jelinek <jakub@redhat.com>
32755 * dwarf2out.c (loc_list_from_tree): Return NULL
32756 for DEBUG_EXPR_DECL.
32758 2015-04-17 Christian Bruel <christian.bruel@st.com>
32760 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
32763 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
32765 * ira-color.c (setup_left_conflict_sizes_p): Do not process
32766 node itself when computing left conflict subnode size.
32768 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
32770 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
32771 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
32772 *fop_<mode>_1_sse using enabled attribute. Use
32773 register_mixssei387nonimm_operand operand 1 predicate. Change
32774 alternative 3 constraints from "x" to "v".
32776 2015-04-16 Richard Biener <rguenther@suse.de>
32778 PR tree-optimization/65774
32779 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
32780 bit-value tracking on.
32782 2015-04-16 Richard Biener <rguenther@suse.de>
32784 PR tree-optimization/64277
32785 * tree-vrp.c (check_array_ref): Fix anti-range handling,
32786 simplify upper bound handling.
32787 (search_for_addr_array): Simplify.
32788 (check_array_bounds): Handle ADDR_EXPRs here.
32789 (check_all_array_refs): Simplify.
32791 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
32793 * config/i386/i386.c (print_reg): Rewrite function.
32795 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32797 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
32798 Invert the condition.
32800 2015-04-16 Renlin Li <renlin.li@arm.com>
32802 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
32803 simplifications for UNSIGNED_FLOAT.
32805 2015-04-16 Nick Clifton <nickc@redhat.com>
32807 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
32809 (enum rl78_cpu_type): New.
32810 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
32811 (umulhi3_shift_virt): Remove m constraint from operand 1.
32812 (umulqihi3_virt): Likewise.
32813 * config/rl78/rl78.c (rl78_option_override): Add code to process
32814 -mcpu and -mmul options.
32815 (rl78_alloc_physical_registers): Add code to handle divhi and
32816 divsi valloc attributes.
32817 (set_origin): Likewise.
32818 * config/rl78/rl78.h (RL78_MUL_G14): Define.
32819 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
32820 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
32822 (ASM_SPEC): Pass -mcpu on to assembler.
32823 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
32824 (mulqi3_rl78): Likewise.
32825 (mulhi3_g13): Likewise.
32826 (mulhi3): Generate the G13 or G14 versions of the insn directly.
32827 (mulsi3): Likewise.
32828 (mulhi3_g14): Add clobbers of AX and BC.
32829 (mulsi3_g14): Likewise.
32830 (mulsi3_g13): Likewise.
32831 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
32832 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
32833 * config/rl78/rl78.opt (mmul): Initialise value to
32835 (mcpu): New option.
32836 (m13, m14, mrl78): New option aliases.
32837 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
32838 (MULTILIB_DIRNAMES): Add g13 and g14.
32839 * doc/invoke.texi: Document -mcpu and -mmul options.
32841 2015-04-16 Richard Biener <rguenther@suse.de>
32843 * tree-ssa-ccp.c (likely_value): See if we have operands that
32844 are marked as never simulate again and return CONSTANT in this
32846 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
32847 not have any operands that will be simulated again as
32848 not being simulated again.
32850 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
32852 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
32853 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
32854 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
32856 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
32858 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
32859 *float<SWI48:mode><MODEF:mode>2_sse.
32860 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
32862 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
32865 2015-04-15 Tom de Vries <tom@codesourcery.com>
32868 * function.c (push_dummy_function): New function.
32869 (init_dummy_function_start): Use push_dummy_function.
32870 (pop_dummy_function): New function. Factored out of ...
32871 (expand_dummy_function_end): ... here.
32872 * function.h (push_dummy_function, pop_dummy_function): Declare.
32873 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
32874 pop_dummy_function.
32875 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
32877 2015-04-15 Jeff Law <law@redhat.com>
32879 PR tree-optimization/47679
32880 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
32881 need for forward declaration in upcoming changes.
32882 (record_conditions, record_edge_info): Likewise.
32884 PR rtl-optimization/42522
32885 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
32886 SIGN_EXTRACT as a whole object rather than simplifying
32889 2015-04-15 Jakub Jelinek <jakub@redhat.com>
32892 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
32893 and GIMPLE_PREDICT use break instead of return true. For
32894 GIMPLE_EH_DISPATCH, compare dispatch region.
32896 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
32898 * doc/extend.texi (__sync Builtins): Simplify some text. Update
32899 details about the implementation. Make clear preference for
32900 __atomic builtins. Reduce possibility of future change.
32902 2015-04-15 Nick Clifton <nickc@redhat.com>
32904 * config/rx/rx.opt (mallow-string-insns): New option.
32905 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
32906 builtin if string instructions are denied.
32907 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
32908 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
32910 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
32911 * config/rx/rx.md (movstr): Enable pattern only if string
32912 instructions are allowed.
32913 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
32914 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
32915 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
32916 (MULTILIB_DIRNAMES): Add no-strings.
32917 * doc/invoke.texi: Document -mno-allow-string-insns.
32919 2015-04-15 Alan Modra <amodra@gmail.com>
32923 PR middle-end/36043
32924 * calls.c (load_register_parameters): Don't load past end of
32925 mem unless suitably aligned.
32927 2015-04-15 Nick Clifton <nickc@redhat.com>
32929 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
32930 decrement instruction as being frame related.
32931 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
32933 If zero extending a function address enclose the operation in
32935 (rl78_preferred_reload_class): New function.
32936 (TARGET_PREFERRED_RELOAD_CLASS): Define.
32937 * config/rl78/rl78.md: Remove useless constraints in expanders.
32938 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
32939 (mulhi3_rl78): Likewise.
32940 (mulhi3_g13): Likewise.
32941 (mulsi3_rl78): Likewise.
32942 (es_addr): Move to before the multiply patterns.
32944 2015-04-15 Alan Modra <amodra@gmail.com>
32946 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
32947 and sequence_stack. Add seq.
32948 (seq_stack): Delete.
32949 * function.c (prepare_function_start): Don't access x_last_insn.
32950 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
32951 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
32952 * emit_rtl.c (start_sequence, push_topmost_sequence,
32953 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
32954 sequence accessors.
32955 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
32956 remove_insn): Likewise. Simplify.
32957 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
32958 and pop_topmost_sequence.
32959 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
32961 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
32963 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
32966 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
32969 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
32971 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
32972 (LEGACY_INT_REGNO_P): Ditto.
32973 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
32974 (ANY_MASK_REG_P): Remove.
32975 (BND_REG_P): Rename from ANY_BND_REG_P.
32976 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
32977 legacy integer registers. Do not handle MMX_REG_P in a special way.
32978 Merge 64byte and 32byte SSE handling.
32980 2015-04-14 Nick Clifton <nickc@redhat.com>
32982 * expr.c (expand_assignment): Force an address offset computation
32983 into a register before changing its mode.
32984 (expand_expr_real_1): Likewise.
32986 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
32988 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
32989 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
32990 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
32991 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
32992 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
32993 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
32994 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
32995 and __aarch64_vget_lane_any.
32997 2015-04-14 Jakub Jelinek <jakub@redhat.com>
32999 PR rtl-optimization/65761
33000 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
33001 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
33003 2015-04-14 Richard Biener <rguenther@suse.de>
33005 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
33006 (graphite_can_represent_scev): Use POINTER_TYPE_P.
33008 2015-04-14 Richard Biener <rguenther@suse.de>
33010 PR tree-optimization/65758
33011 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
33013 (ccp_lattice_meet): Likewise.
33014 (bit_value_unop): Likewise.
33015 (bit_value_binop): Likewise.
33016 (bit_value_assume_aligned): Likewise.
33018 2015-04-14 Christian Bruel <christian.bruel@st.com>
33020 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
33023 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
33025 PR tree-optimization/63387
33026 * match.pd ((x unord x) | (y unord y) -> (x unord y),
33027 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
33029 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
33031 * config/i386/predicates.md (any_QIreg_operand): Rename from
33032 q_regs_operand. Do not process subregs.
33033 (QIreg_operand): Use QI_REGNO_P predicate.
33034 (ext_QIreg_operand): Ditto.
33035 (ext_register_operand): Ditto.
33036 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
33037 (AND splitters): Ditto.
33038 (AND with -65536 splitter): Add SWI48 mode for operand 0.
33039 (AND with -256 splitter): Use any_QIreg_operand predicate and
33040 SWI248 mode for operand 0.
33041 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
33042 mode for operand 0.
33043 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
33045 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
33047 * doc/plugins.texi: Rewrite first introductory paragraph.
33049 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
33051 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
33052 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
33054 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
33056 * ipa-profie.c (ipa_profile): Check number of parameters
33057 and possible polymorphic call targets before
33060 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
33062 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
33063 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
33065 2015-04-13 Richard Biener <rguenther@suse.de>
33067 PR tree-optimization/65204
33068 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
33069 takens for bit-CCP.
33071 2015-04-13 Richard Biener <rguenther@suse.de>
33074 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
33075 and cond_not_taken_branch_cost to 4 and 2.
33076 (bdver2_cost): Likewise.
33077 (bdver3_cost): Likewise.
33078 (bdver4_cost): Likewise.
33080 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
33082 * hash-table.h (hash_table constructor): Add mem stats.
33083 (alloc_entries): Likewise.
33085 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
33087 * ipa-cp.c (ipcp_driver): Relase prev_edge.
33088 * passes.c (execute_one_pass): Only add transform if pass has one.
33090 2015-04-12 Joseph Myers <joseph@codesourcery.com>
33092 * config/i386/i386.c (ix86_option_override_internal): Don't set
33093 -fprefetch-loop-arrays if optimizing for size.
33095 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
33096 Gerald Pfeifer <gerald@pfeifer.com>
33098 * doc/contrib.texi (Contributors): Add Martin Jambor and
33101 2015-04-12 Jakub Jelinek <jakub@redhat.com>
33103 * BASE-VER: Set to 6.0.0.
33105 PR tree-optimization/65747
33106 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
33107 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
33109 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
33111 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
33112 sentence. Improve grammar.
33114 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
33116 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
33118 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
33121 * ipa-inline-transform.c (speculation_removed): Remove static var.
33122 (check_speculations): New function.
33123 (clone_inlined_nodes): Do not check spculations.
33124 (inline_call): Call check_speculations.
33125 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
33126 consider non-invariants.
33128 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
33129 Martin Liska <mliska@suse.cz>
33132 * ipa-icf.c (sem_item::compare_cgraph_references): function and
33133 variable can not match.
33134 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
33135 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
33137 2015-04-11 Jakub Jelinek <jakub@redhat.com>
33139 PR tree-optimization/65735
33140 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
33141 Remove visited_phis argument, add visited_bbs, avoid recursing into the
33142 same bb rather than just into the same phi node.
33143 (thread_through_normal_block): Adjust caller.
33145 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
33147 * doc/contrib.texi (Contributors): Add Ira Rosen.
33149 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
33151 * gcov.c (find_source): Fix miswording in error message.
33152 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
33153 (ix86_expand_sse_comi_round): Fix typo in error message.
33155 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
33157 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
33159 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
33161 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
33163 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
33166 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
33167 Print bad_spills_num and insn_pseudos_num.
33169 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33172 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
33173 when creating +1 values for SImode.
33175 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
33178 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
33181 2015-04-10 Jakub Jelinek <jakub@redhat.com>
33182 Iain Sandoe <iain@codesourcery.com>
33185 * configure: Regenerate.
33187 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
33190 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
33192 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
33194 * doc/contrib.texi (Contributors): Add John Marino.
33196 2015-04-09 Jakub Jelinek <jakub@redhat.com>
33198 PR tree-optimization/65709
33199 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
33200 TREE_TYPE (TREE_TYPE (t)).
33202 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
33205 * lra-int.h (lra_bad_spill_regno_start): New.
33206 * lra.c (lra_bad_spill_regno_start): New.
33207 (lra): Set up lra_bad_spill_regno_start. Set up
33208 lra_constraint_new_regno_start unconditionally.
33209 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
33212 2015-04-09 Marek Polacek <polacek@redhat.com>
33213 Jakub Jelinek <jakub@redhat.com>
33215 PR middle-end/65554
33216 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
33217 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
33220 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
33222 PR rtl-optimization/65693
33223 * combine.c (is_parallel_of_n_reg_sets): Move outside of
33226 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
33229 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
33230 device specs file if "device-specs%s" didn't resolve to a path.
33232 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
33235 * config/i386/i386.c (fixup_modeless_constant): New.
33236 (ix86_expand_args_builtin): Fixup modeless constant operand.
33237 (ix86_expand_round_builtin): Ditto.
33238 (ix86_expand_special_args_builtin): Ditto.
33239 (ix86_expand_builtin): Ditto.
33241 2015-04-09 Jakub Jelinek <jakub@redhat.com>
33244 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
33245 any pow2 integer in between 2 and 0x80000000U inclusive.
33247 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
33249 PR rtl-optimization/65693
33250 * combine.c (is_parallel_of_n_reg_sets): Change first argument
33251 from an rtx_insn * to an rtx.
33252 (try_combine): Adjust both callers. Use it once more.
33254 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
33256 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
33257 (chkp_make_static_const_bounds): Search existing
33258 symbol by assembler name. Use make_decl_one_only.
33259 (chkp_get_zero_bounds_var): Remove node search which
33260 is now performed in chkp_make_static_const_bounds.
33261 (chkp_get_none_bounds_var): Likewise.
33263 2015-04-08 Michael Witten <mfwitten@gmail.com>
33265 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
33268 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
33270 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
33272 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
33274 * doc/extend.texi (__sync Builtins): Fix grammar.
33276 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
33278 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
33280 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
33282 * varasm.c (emit_local): Move definition of align.
33284 2015-04-08 Julian Brown <julian@codesourcery.com>
33286 * config/nvptx/mkoffload.c (process): Support variable mapping.
33288 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
33290 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
33292 (alpha_write_one_linkage): Correct typo.
33294 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
33296 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
33298 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
33300 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
33302 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
33304 * tree-chkp.h (chkp_insert_retbnd_call): New.
33305 * tree-chkp.c (chkp_insert_retbnd_call): New.
33306 * ipa-split.c (insert_bndret_call_after): Remove.
33307 (split_function): Use chkp_insert_retbnd_call.
33308 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
33309 bounds for instrumented functions.
33311 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
33314 * calls.c (initialize_argument_information): When producing tail
33315 call also turn SSA_NAMES passed by references to original PARM_DECLs
33317 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
33320 * lra-remat.c (do_remat): Process input and non-input insn
33321 registers separately.
33323 2015-04-07 Jakub Jelinek <jakub@redhat.com>
33326 * valtrack.c (debug_lowpart_subreg): New function.
33327 (dead_debug_insert_temp): Use it.
33329 PR middle-end/65680
33330 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
33331 into signed HOST_WIDE_INT the same as negative bit_offset.
33333 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
33335 * ipa-comdats.c (ipa_comdats): Visit all thunks
33336 to set proper comdat group.
33338 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33341 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
33342 on constants for NEON VSTRUCT modes.
33344 2015-04-07 Jakub Jelinek <jakub@redhat.com>
33345 Iain Sandoe <iain@codesourcery.com>
33348 * configure: Regenerate.
33350 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
33353 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
33354 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
33355 that LFD is used to load double constants instead of LFS. Add
33356 defaults for all costs structures. Add comments for missing
33357 initialization fields.
33358 (size32_cost): Likewise.
33359 (size64_cost): Likewise.
33360 (rs64a_cost): Likewise.
33361 (mpccore_cost): Likewise.
33362 (ppc403_cost): Likewise.
33363 (ppc405_cost): Likewise.
33364 (ppc440_cost): Likewise.
33365 (ppc476_cost): Likewise.
33366 (ppc601_cost): Likewise.
33367 (ppc603_cost): Likewise.
33368 (ppc604_cost): Likewise.
33369 (ppc604e_cost): Likewise.
33370 (ppc620_cost): Likewise.
33371 (ppc630_cost): Likewise.
33372 (ppccell_cost): Likewise.
33373 (ppc750_cost): Likewise.
33374 (ppc7450_cost): Likewise.
33375 (ppc8540_cost): Likewise.
33376 (ppce300c2c3_cost): Likewise.
33377 (ppce500mc_cost): Likewise.
33378 (ppce500mc64_cost): Likewise.
33379 (ppce5500_cost): Likewise.
33380 (ppce6500_cost): Likewise.
33381 (titan_cost): Likewise.
33382 (power4_cost): Likewise.
33383 (power6_cost): Likewise.
33384 (power7_cost): Likewise.
33385 (power8_cost): Likewise.
33386 (ppca2_cost): Likewise.
33387 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
33389 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
33390 instead of XXLOR to copy SFmode to clear out dirty bits created
33391 when SFmode denormals are generated.
33392 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
33393 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
33395 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
33397 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
33398 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
33399 * config/aarch64/aarch64-tune.md: Regenerate.
33401 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
33403 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
33404 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
33405 * config/arm/arm-cores.def (exynos-m1): New core.
33406 * config/arm/arm-tune.md: Regenerate.
33407 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
33408 * config/arm/bpabi.h: Likewise.
33410 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
33412 * ipa-cp (set_single_call_flag): Remove too
33413 restrictive assert.
33415 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
33417 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
33418 GOMP_offload_unregister from the destructor.
33420 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
33422 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
33423 flags for instrumentation thunk.
33424 (chkp_produce_thunks): Likewise.
33426 2015-04-05 Martin Liska <mliska@suse.cz>
33429 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
33430 has computed data structure.
33431 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
33433 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
33435 * invoke.texi (inline-unit-growth): Increase growth to 20%
33436 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
33438 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
33441 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
33443 (lra_rematerialization_iter): New.
33444 * lra.c (lra): Initialize lra_rematerialization_iter.
33445 Stop updating lra_constraint_new_regno_start after switching of
33446 inheritance and rematerialization.
33447 * lra-remat.c (lra_rematerialization_iter): New.
33448 (lra_remat): Add printing pass iteration. Do rematerialization
33449 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
33451 2015-04-04 Richard Biener <rguenther@suse.de>
33453 PR tree-optimization/64909
33454 PR tree-optimization/65660
33455 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
33456 to take a cost vector for scalar iteration cost.
33457 (vect_get_single_scalar_iteration_cost): Likewise.
33458 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
33459 Compute the scalar iteration cost into a cost vector.
33460 (vect_get_known_peeling_cost): Use the scalar cost vector to
33461 account for the cost of the peeled iterations.
33462 (vect_estimate_min_profitable_iters): Likewise.
33463 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
33466 2015-04-04 Alan Modra <amodra@gmail.com>
33470 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
33471 0.0 constant unless TARGET_VSX.
33472 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
33475 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
33478 * ipa-inline-transform.c (inline_call): Skip sanity check to work
33481 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
33484 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
33485 speculative indirect edges to avoid ordering issue.
33487 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
33490 * ipa-inline.c (edge_badness): Add combined size to the denominator.
33492 2015-04-03 Jakub Jelinek <jakub@redhat.com>
33494 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
33495 TYPE_ARTIFICIAL on the .omp_data* types.
33497 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
33499 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
33500 instrumentation thunks.
33502 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
33504 * config/i386/i386.c (ix86_expand_call): Avoid nested
33505 PARALLEL in returned call value.
33507 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
33509 * lto-cgraph.c (input_cgraph_1): Always link instrumented
33510 assembler name with original one.
33512 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
33514 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
33516 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
33518 Revert parts of r216820.
33519 * config/i386/i386.md (movqi_internal): Correct type calculation
33520 for alternatives 3 and 5.
33522 2015-04-02 Jakub Jelinek <jakub@redhat.com>
33524 PR preprocessor/61977
33525 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
33526 predefine __vector/__bool/__pixel macros nor context sensitive
33527 macros for CLK_ASM.
33528 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
33530 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
33532 * config/pa/pa.c (pa_output_move_double): Directly handle register
33533 indexed memory operand. Simplify handling of scaled register indexed
33536 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
33539 * config/i386/linux-common.h (MPX_SPEC): New.
33540 (CHKP_SPEC): Add MPX_SPEC.
33541 * doc/invoke.texi (-fcheck-pointer-boudns): Document
33542 possible issues with '-z bndplt' support in linker.
33544 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
33546 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
33547 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
33548 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
33549 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
33550 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
33552 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
33554 * config/i386/sync.md (UNSPEC_MOVA): Remove.
33555 (atomic_load<mode>): Change operand 0 predicate to
33556 nonimmediate_operand and fix up the destination when needed.
33558 (atomic_loaddi_fpu): Use UNSPEC_LDA.
33559 (atomic_store<mode>): Change operand 1 predicate to
33560 nonimmendate_operand and move the source to register when needed.
33562 (atomic_store<mode>_1): Use UNSPEC_STA.
33563 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
33564 Fix moves from memory operand. Use UNSPEC_STA.
33566 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
33568 * expmed.c (strict_volatile_bitfield_p): Check that the access will
33569 not cross a MODESIZE boundary.
33570 (store_bit_field, extract_bit_field): Added assertions in the
33571 strict volatile bitfields code path.
33573 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
33576 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
33577 Increase args array size by one to avoid buffer overflow.
33579 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
33581 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
33583 * ipa-inline.c (edge_badness): Add wrapper penalty.
33584 (sum_callers): Move up.
33585 (inline_small_functions): Set single_caller.
33586 * ipa-inline.h (inline_summary): Add single_caller.
33587 * ipa-split.c (split_function): Set split_part.
33588 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
33589 * cgraph.h (cgraph_node): Add split_part.
33591 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
33594 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
33595 Do not split operands 0 and operands 2 to halfmode.
33596 (atomic_compare_and_swap<mode>): Update for
33597 atomic_compare_and_swap<dwi>_doubleword changes.
33599 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
33601 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
33602 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
33603 no caching is done.
33605 2015-03-31 Martin Liska <mliska@suse.cz>
33608 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
33609 has already filled up function summary.
33610 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
33612 2015-03-31 Richard Biener <rguenther@suse.de>
33614 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
33617 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
33619 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
33621 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
33622 (s390_asm_output_function_label): Adapt to new signature of
33623 s390_function_num_hotpatch_hw
33624 Optimise the code generating assembler output.
33625 Add comments to assembler file.
33627 2015-03-31 Richard Biener <rguenther@suse.de>
33629 PR middle-end/65626
33630 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
33631 of the noreturn call so it is last and cleanup_control_flow_bb
33632 can do the CFG part.
33634 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
33637 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
33638 same_comdat_group for external symbols.
33639 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
33640 infinite same_comdat_group traversal loop.
33642 2015-03-31 Jakub Jelinek <jakub@redhat.com>
33645 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
33646 automatically to $headers.
33648 2015-03-30 Jakub Jelinek <jakub@redhat.com>
33651 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
33652 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
33654 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
33656 * ipa-prop.c (param_type_may_change_p): Likewise.
33657 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
33658 (remove_unused_scope_block_p): Add in_ctor_dtor_block
33659 argument. Before inlining, preserve
33660 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
33661 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
33663 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
33665 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
33668 * ipa-inline.c (edge_badness): Base denominator on callee's
33671 2015-03-27 Martin Jambor <mjambor@suse.cz>
33674 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
33675 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
33676 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
33677 node_calling_single_call.
33678 * ipa-cp.c (count_callers): New function.
33679 (set_single_call_flag): Likewise.
33680 (initialize_node_lattices): Count callers and set single_flag_call if
33682 (incorporate_penalties): New function.
33683 (good_cloning_opportunity_p): Use it, dump new flags.
33684 (propagate_constants_topo): Set node_within_scc flag if appropriate.
33685 * doc/invoke.texi (ipa-cp-recursion-penalty,
33686 ipa-cp-single-call-pentalty): Document.
33688 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
33691 * symtab.c (symtab_node::get_partitioning_class): Register vars
33693 * varpool.c (symbol_table::output_variables) Do not assemble unefined
33694 decls for non-symbols.
33696 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
33699 * output.h (default_binds_local_p_2): New.
33700 * varasm.c (default_binds_local_p_2): Renamed to ...
33701 (default_binds_local_p_3): This. Don't return true on protected
33702 data symbol if protected data may be external.
33703 (default_binds_local_p): Use default_binds_local_p_3.
33704 (default_binds_local_p_1): Likewise.
33705 (default_binds_local_p_2): New.
33706 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
33707 default_binds_local_p_2 if TARGET_MACHO is undefined.
33709 2015-03-27 Jakub Jelinek <jakub@redhat.com>
33712 * config/i386/i386.c (legitimize_pic_address): If base
33713 is SYMBOL_REF or LABEL_REF using %rip addressing, force
33714 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
33716 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
33719 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
33722 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
33725 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
33726 of optimized out indirect call.
33727 (redirect_to_unreachable): Always build symbol table node for
33728 BUILT_IN_UNREACHABLE
33730 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
33733 * ira-costs.c (record_reg_classes): Process all constraint string
33736 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
33738 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
33742 * config/c6x/constraints.md (S3): New constraint.
33743 * config/c6x/c6x.md (real_jump): Use it.
33745 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
33747 PR middle-end/65595
33748 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
33749 do redirection if the call is not optimized out.
33751 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
33754 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
33755 (fchkp-check-incomplete-type): Add LTO.
33756 (fchkp-zero-input-bounds-for-main): Likewise.
33757 (fchkp-first-field-has-own-bounds): Likewise.
33758 (fchkp-narrow-bounds): Likewise.
33759 (fchkp-narrow-to-innermost-array): Likewise.
33760 (fchkp-use-static-bounds): Likewise.
33761 (fchkp-use-static-const-bounds): Likewise.
33762 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
33764 2015-03-27 Marek Polacek <polacek@redhat.com>
33766 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
33768 2015-03-27 Marek Polacek <polacek@redhat.com>
33771 * ubsan.c (ubsan_create_edge): New function.
33772 (instrument_bool_enum_load): Call it.
33773 (instrument_nonnull_arg): Likewise.
33774 (instrument_nonnull_return): Likewise.
33775 (instrument_object_size): Likewise.
33777 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
33779 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
33782 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
33785 * lto-streamer.h (class lto_location_cache): New.
33786 (struct data_in): Add location_cache.
33787 (lto_input_location): Update prototype.
33788 (stream_input_location_now): New.
33789 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
33790 pointer to location.
33791 (stream_input_location): Update.
33792 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
33793 (warn_odr): Apply location cache before warning.
33794 (lto_input_location): Update prototype.
33795 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
33796 Use stream_input_location_now.
33797 * lto-streamer-in.c (lto_location_cache::current_cache): New static
33799 (lto_location_cache::cmp_loc): New function.
33800 (lto_location_cache::apply_location_cache): New function.
33801 (lto_location_cache::accept_location_cache): New function.
33802 (lto_location_cache::revert_location_cache): New function.
33803 (lto_location_cache::input_location): New function.
33804 (lto_input_location): Do location caching.
33805 (stream_input_location_now): New function.
33806 (input_eh_region, input_struct_function_base): Use
33807 stream_input_location_now.
33808 (lto_data_in_create): use new.
33809 (lto_data_in_delete): Use delete.
33810 * tree-streamer-in.c (unpack_ts_block_value_fields,
33811 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
33812 lto_input_ts_exp_tree_pointers): Update for cached location api.
33814 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
33817 * passes.def: Add pass_nothrow.
33818 * ipa-pure-const.c: (pass_data_nothrow): New.
33819 (pass_nothrow): New.
33820 (pass_nothrow::execute): New.
33821 (make_pass_nothrow): New.
33822 * tree-pass.h (make_pass_nothrow): Declare.
33824 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
33826 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
33827 edge to change by speculation resolution or redirection.
33828 (edge_set_predicate): Likewise.
33829 (inline_summary_t::duplicate): Likewise.
33830 (remap_edge_summaries): Likewise.
33832 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
33834 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
33836 (can_inline_edge_p): Relax option matching for always inline functions.
33838 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
33841 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
33842 Check operand 4 and operand 0 for equality.
33843 (avx512f_vextract<shuffletype>32x4_1_maskm):
33844 Check operand 6 and operand 0 for equality.
33845 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
33847 (vec_extract_hi_<mode>_maskm): Ditto.
33849 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
33851 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
33852 dead calls back to live.
33853 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
33855 (cgraph_node::verify_node): ... here; verify only callee edges,
33857 * cif-code.def (CILK_SPAWN): New code.
33859 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
33861 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
33862 (edge_set_predicate): Use it to mark unreachable edges.
33863 (inline_summary_t::duplicate): Remove unnecesary code.
33864 (remap_edge_summaries): Likewise.
33865 (dump_inline_summary): Report contains_cilk_spawn.
33866 (compute_inline_parameters): Compute contains_cilk_spawn.
33867 (inline_read_section, inline_write_summary): Stream
33868 contains_cilk_spawn.
33869 * ipa-inline.c (can_inline_edge_p): Do not touch
33870 DECL_STRUCT_FUNCTION that may not be available;
33871 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
33872 remove check for callee_fun->can_throw_non_call_exceptions and
33873 replace it by optimization attribute check; check for flag_exceptions.
33874 * ipa-inline-transform.c (inline_call): Maintain
33875 DECL_FUNCTION_PERSONALITY
33876 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
33878 2015-03-26 Jakub Jelinek <jakub@redhat.com>
33880 PR tree-optimization/65551
33881 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
33882 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
33884 2015-03-26 Richard Biener <rguenther@suse.de>
33886 PR middle-end/65555
33887 * tree-cfg.c (verify_gimple_call): Do not require a call to
33888 have no LHS if it wasn't recognized as control altering yet.
33890 2015-03-26 Jakub Jelinek <jakub@redhat.com>
33892 PR tree-optimization/64715
33893 * passes.def: Add another instance of pass_object_sizes before ccp1.
33894 * tree-object-size.c (pass_object_sizes::execute): In
33895 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
33896 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
33897 __bos result and the computed constant. Remove redundant
33898 checks, obsoleted by gimple_call_builtin_p test.
33900 * var-tracking.c (variable_tracking_main_1): Don't track
33901 variables for targetm.no_register_allocation targets.
33903 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
33905 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
33906 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
33908 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
33911 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
33912 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
33913 0.0 is correctly setup.
33914 (extenddftf2_internal): Likewise.
33916 2015-03-25 Sebastian Pop <s.pop@samsung.com>
33918 PR tree-optimization/65177
33919 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
33921 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
33922 edges not adjacent on the path to the original code.
33924 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
33927 * doc/install.texi (Building a native compiler): Document new
33928 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
33929 configuration assumes that the host supports the linker plugin.
33931 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
33934 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
33935 chain for generated call.
33937 2015-03-25 Richard Biener <rguenther@suse.de>
33939 * passes.c (pass_manager::execute_early_local_passes): Guard
33940 execution of pass_chkp_instrumentation_passes with
33941 flag_check_pointer_bounds.
33942 (pass_chkp_instrumentation_passes::gate): Likewise.
33944 2015-03-25 Martin Liska <mliska@suse.cz>
33946 PR tree-optimization/65538
33947 * symbol-summary.h (function_summary::~function_summary):
33948 Relese memory for allocated summaries.
33949 (function_summary::release): New function.
33951 2015-03-25 Jakub Jelinek <jakub@redhat.com>
33954 * lto-streamer-out.c (DFS::worklist): New struct.
33955 (DFS::worklist_vec): New data member.
33956 (DFS::next_dfs_num): Remove.
33957 (DFS::DFS): Rewritten using worklist instead of recursion,
33958 using most of code from DFS::DFS_write_tree.
33959 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
33960 pass it to DFS_write_tree calls.
33961 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
33962 quick initial checks push it into worklist_vec and return.
33964 2015-03-25 Richard Biener <rguenther@suse.de>
33966 PR middle-end/65519
33967 * genmatch.c (expr::gen_transform): Re-write to avoid
33968 using gimple_build.
33970 2015-03-25 Bin Cheng <bin.cheng@arm.com>
33972 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
33974 2015-03-25 Bin Cheng <bin.cheng@arm.com>
33976 * config/arm/arm.opt (print_tune_info): New option.
33977 * config/arm/arm.c (arm_print_tune_info): New function.
33978 (arm_file_start): Call arm_print_tune_info.
33979 * config/arm/arm-protos.h (struct tune_params): Add comment.
33980 * doc/invoke.texi (@item -mprint-tune-info): New item.
33981 (-mtune): mention it in ARM Option Summary.
33983 2015-03-25 DJ Delorie <dj@redhat.com>
33985 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
33988 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
33989 Martin Liska <mliska@suse.cz>
33991 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
33992 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
33993 (sem_item::add_type): New function.
33994 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
33995 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
33996 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
33997 (sem_function::equals_wpa): Fix typo.
33998 * ipa-icf.h (sem_item::add_type): New function.
33999 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
34002 2015-03-24 Jakub Jelinek <jakub@redhat.com>
34004 PR tree-optimization/65533
34005 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
34006 with swapped operands, call vect_free_slp_tree on
34007 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
34010 2015-03-24 Richard Biener <rguenther@suse.de>
34012 PR middle-end/65517
34013 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
34014 for fixup if necessary.
34016 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
34018 * doc/extend.texi (Function Attributes): Add @cindex entries
34019 for all attributes and regularize their format. Delete text
34020 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
34021 information about "eightbit_data", "tiny_data", and "model"
34022 variable attributes to the Variable Attributes section. Fix
34023 some obvious typos and copy-editing issues.
34024 (Variable Attributes, Type Attributes): Likewise add/fix
34025 @cindex entries for all attributes.
34027 2015-03-23 Jakub Jelinek <jakub@redhat.com>
34030 * tree-chkp.c (chkp_build_returned_bound): Ignore
34031 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
34033 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
34036 * config/sh/predicates.md (simple_mem_operand,
34037 displacement_mem_operand): Add test for reg.
34038 (short_displacement_mem_operand): Test for displacement_mem_operand
34039 before invoking sh_disp_addr_displacement.
34040 * config/sh/constraints.md (Sdd, Sra): Simplify.
34041 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
34042 Remove redundant displacement_mem_operand tests.
34044 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
34047 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
34048 the same -mmcu=MCU more than once.
34050 2015-03-23 Jakub Jelinek <jakub@redhat.com>
34053 * ipa-devirt.c: Remove duplicate demangle.h include.
34056 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
34058 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
34059 REG_POINTER on *destptr after adjusting it for prologue size.
34062 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
34063 ultimate_alias_target ()->order ints instead of
34064 ultimate_alias_target () pointers.
34066 2015-03-23 Richard Biener <rguenther@suse.de>
34068 PR tree-optimization/65518
34069 * tree-vect-stmts.c (vectorizable_load): Reject single-element
34070 interleaving cases we generate absymal code for.
34072 2015-03-23 Richard Biener <rguenther@suse.de>
34074 PR tree-optimization/65494
34075 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
34077 (vect_analyze_slp_instance): But do that here, always and once.
34079 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34081 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
34082 adding T or multiplying by T+1 and subracting T.
34084 2015-03-22 Jeff Law <law@redhat.com>
34086 PR rtl-optimization/64317
34087 * Makefile.in (OBJS): Add gcse-common.c
34088 * gcse.c: Include gcse-common.h
34089 (struct modify_pair_s): Move structure definition to gcse-common.h
34090 (compute_transp): Move function to gcse-common.c.
34091 (canon_list_insert): Similarly.
34092 (record_last_mem_set_info): Break out some code and put it into
34093 gcse-common.c. Call into the new common code.
34094 (compute_local_properties): Pass additional arguments to compute_transp.
34095 * postreload-gcse.c: Include gcse-common.h and df.h
34096 (modify_mem_list_set, blocks_with_calls): New variables.
34097 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
34098 (get_bb_avail_insn): Pass in the expression index too.
34099 (alloc_mem): Allocate memory for the new bitmaps and lists.
34100 (free_mem): Free memory for the new bitmaps and lists.
34101 (insert_expr_in_table): Record a bitmap index for each entry we
34103 (record_last_mem_set_info): Call into common code in gcse-common.c.
34104 (get_bb_avail_insn): If no available insn was found in the requested
34105 BB. If BB has a single predecessor, see if the expression is
34106 transparent in BB and available in that single predecessor.
34107 (compute_expr_transp): New wrapper for compute_transp.
34108 (eliminate_partially_redundant_load): Pass expression's bitmap_index
34109 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
34110 (gcse_after_reload_main): If there are elements in the hash table,
34111 then compute transparency for all the elements in the hash table.
34112 * gcse-common.h: New file.
34113 * gcse-common.c: New file.
34115 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
34117 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
34119 (System Headers): Likewise.
34121 (Traditional macros): Likewise.
34122 (Invocation): Likewise.
34123 (Option Index): Likewise.
34124 * doc/cppopts.texi (-M): Likewise.
34125 (-finput-charset): Likewise.
34126 (--help): Likewise.
34127 * doc.invoke.texi (AVR Options): Likewise.
34128 (V850 Options): Likewise.
34130 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
34133 * ipa-devirt.c: Include demangle.h
34134 (odr_type_d): Add field rtti_broken.
34135 (odr_subtypes_equivalent_p): Do not require name to match.
34136 (compare_virtual_tables): Fix typo; if type already has ODR violation,
34137 bypass the tests; be ready for function referneces in vtables that are
34138 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
34139 (warn_odr): Give up for nameless types.
34140 (warn_types_mismatch): Report mismatch in mangled names;
34141 report mismatch in anonymous namespaces; look into component types to
34142 give useful error; report when mismatch is dragged in from other ODR
34144 (odr_types_equivalent_p): Match types for being polymorphic; avoid
34145 duplicated diagnostics.
34146 (add_type_duplicate): Reorder checks so more informative ones come
34147 first; fix typo; do not output "the extra base is defined here" when
34149 (BINFO_N_BASE_BINFOS): Relax sanity check.
34151 2015-03-22 Martin Liska <mliska@suse.cz>
34152 Jakub Jelinek <jakub@redhat.com>
34154 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
34155 masks that can potentially include a builtin.
34156 (ix86_add_new_builtins): Introduce fast filter for isa values
34157 that cannot trigger builtin inclusion.
34159 2015-03-22 Martin Liska <mliska@suse.cz>
34161 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
34162 (sem_item::update_hash_by_local_refs): Likewise.
34163 (sem_variable::get_hash): Empty line is fixed.
34164 (sem_item_optimizer::execute): Include adding of hash references.
34165 (sem_item_optimizer::update_hash_by_addr_refs): New function.
34166 (sem_item_optimizer::build_hash_based_classes): Use local hash.
34167 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
34168 (sem_item::update_hash_by_local_refs): Likewise.
34170 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
34173 * ipa-comdats.c (enqueue_references): Walk through thunks.
34174 (ipa_comdats): Likewise.
34175 (set_comdat_group_1): New function.
34177 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
34180 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
34183 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
34184 Gerald Pfeifer <gerald@pfeifer.com>
34186 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
34188 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
34189 Sandra Loosemore <sandra@codesourcery.com>
34191 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
34192 function parameter declaration.
34193 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
34194 Update arguments to nios2_adjust_call_address().
34195 (sibcall_internal): Rename from *sibcall.
34196 (sibcall_value_internal): Rename from *sibcall_value.
34197 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
34198 (nios2_large_got_address): Add target temp reg parameter.
34199 (nios2_got_address): Adjust call to nios2_large_got_address, add
34200 force_reg around it.
34201 (nios2_load_pic_address): Add target temp reg parameter, replace call
34202 to nios2_got_address with corresponding code.
34203 (nios2_legitimize_constant_address): Update call to
34204 nios2_load_pic_address.
34205 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
34206 to use temp reg for PIC loading purposes.
34207 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
34208 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
34209 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
34211 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
34213 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
34214 usage of "the @option{...}".
34215 (-Wopenmp-simd): Likewise.
34216 (-fsanitize-recover): Likewise.
34217 (-fsanitize-undefined-trap-on-error): Likewise.
34219 (tracer-dynamic-coverage-feedback): Likewise.
34220 (reorder-block-duplicate-feedback): Likewise.
34221 (loop-unroll-jam-size): Likewise.
34224 (-mabs=legacy): Likewise.
34225 (-mupper-regs-df): Likewise.
34226 (-mupper-regs-sf): Likewise.
34227 (-mpointers-to-nested-functions): Likewise.
34229 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
34231 * doc/extend.texi (Cilk Plus Builtins): Add markup.
34233 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
34235 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
34236 additional index entries and cross-references.
34237 (-fchkp-check-incomplete-type): Likewise.
34238 (-fchkp-first-field-has-own-bounds): Likewise.
34239 (-fchkp-narrow-to-innermost-array): Likewise.
34240 (-fchkp-use-fast-string-functions): Likewise.
34241 (-fchkp-use-nochk-string-functions): Likewise.
34242 (-fchkp-use-static-const-bounds): Likewise.
34243 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
34244 (-fchkp-instrument-marked-only): Likewise.
34245 (-fchkp-use-wrappers): Likewise.
34246 (-static-libmpx): Likewise.
34247 (-static-libmpxwrappers): Likewise.
34248 * doc/extend.texi (bnd_legacy): Likewise.
34249 (bnd_instrument): Likewise.
34250 (bnd_variable_size): Likewise.
34251 (Pointer Bounds Checker builtins): Likewise.
34253 2015-03-21 Tom de Vries <tom@codesourcery.com>
34255 PR tree-optimization/65458
34256 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
34257 * cgraph.h (cgraph_node): Add parallelized_function field.
34258 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
34259 (input_overwrite_node): Read parallelized_function field.
34260 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
34261 parallelized_function on cgraph_node for child_fn.
34262 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
34263 Remove include of gt-tree-parloops.h.
34264 (parallelized_functions): Remove static variable.
34265 (parallelized_function_p): Rewrite using parallelized_function field of
34267 (create_loop_fn): Remove adding to parallelized_functions.
34268 * Makefile.in (GTFILES): Remove tree-parloops.c
34270 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
34272 PR rtl-optimization/64366
34273 * lra.c (lra_update_insn_regno_info): Consider regs in
34274 CALL_INSN_FUNCTION_USAGE memory.
34276 2015-03-20 Richard Biener <rguenther@suse.de>
34278 PR middle-end/64715
34279 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
34280 for type comparison and gcc_checking_assert.
34281 (chrec_fold_plus_poly_poly): Likewise.
34282 (chrec_fold_multiply_poly_poly): Likewise.
34283 (chrec_convert_1): Likewise.
34284 * gimplify.c (gimplify_expr): Remove premature folding of
34285 &X + CST to &MEM[&X, CST].
34287 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
34289 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
34291 (ipa_inline): Recompute inline_failed codes.
34292 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
34293 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
34296 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
34298 PR rtl-optimization/60851
34299 * recog.c (constrain_operands): Accept a pseudo register before reload
34300 for LRA enabled targets.
34302 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
34305 * config/rs6000/predicates.md (easy_fp_constant): Remove special
34306 -ffast-math handling that kept non-0 constants live in the RTL
34307 until reload. Remove logic testing the number of instructions it
34308 took to create a constant in a GPR that was never used, due to a
34309 test for soft-float earlier.
34310 (memory_fp_constant): Delete, no longer used.
34312 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
34313 alternatives for loading non-0 constants into GPRs for hard
34314 floating point that is no longer needed due to changes in
34315 easy_fp_constant. Add support for loading 0.0 into GPRs.
34316 (mov<mode>_hardfloat32): Likewise.
34317 (mov<mode>_hardfloat64): Likewise.
34318 (mov<mode>_64bit_dm): Likewise.
34319 (movtd_64bit_nodm): Likewise.
34320 (pre-reload move FP constant define_split): Delete define_split,
34321 since it is no longer used.
34322 (extenddftf2_internal): Remove GHF constraints that are not valid
34325 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
34327 PR rtl-optimization/63491
34328 * lra-constraints.c (check_and_process_move): Use src instead of
34329 sreg. Remove some dead code.
34331 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
34334 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
34335 (sem_variable::merge): Likewise.
34337 2015-03-19 Martin Liska <mliska@suse.cz>
34340 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
34341 all fields of cgraph_thunk_info.
34343 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
34345 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
34346 clone instrumented thunks.
34348 2015-03-19 Richard Biener <rguenther@suse.de>
34351 2015-03-10 Richard Biener <rguenther@suse.de>
34353 PR middle-end/63155
34354 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
34355 * tree-ssa-coalesce.c: Include timevar.h.
34356 (attempt_coalesce): Handle graph being NULL.
34357 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
34358 Split out abnormal coalescing to ...
34359 (perform_abnormal_coalescing): ... this function.
34360 (coalesce_ssa_name): Perform abnormal coalescing without computing
34362 (verify_ssa_coalescing_worker): New function.
34363 (verify_ssa_coalescing): Likewise.
34365 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
34366 Jakub Jelinek <jakub@redhat.com>
34369 * tsan.c (instrument_gimple): Clear tail call flag on
34372 2015-03-19 Jakub Jelinek <jakub@redhat.com>
34375 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
34376 call in the return bb.
34377 (find_split_points): Add RETURN_BB argument, don't call
34379 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
34380 if true append TSAN_FUNC_EXIT internal call after the call to
34381 the split off function.
34382 (execute_split_functions): Call find_return_bb here.
34383 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
34384 Adjust find_split_points and split_function calls.
34386 2015-03-18 DJ Delorie <dj@redhat.com>
34388 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
34389 (iorqi3_virt): Likewise.
34391 2015-03-18 Tom de Vries <tom@codesourcery.com>
34393 * tree-parloops.c (parallelize_loops): Make static.
34394 * tree-parloops.h (parallelize_loops): Remove extern declaration.
34396 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
34398 PR middle-end/64491
34400 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
34402 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
34403 condition would be removed due to undefined behaviour.
34405 2015-03-18 Martin Liska <mliska@suse.cz>
34408 * cgraph.c (cgraph_node::get_create): Remove unnecessary
34409 xstrdup_for_dump wrapper.
34410 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
34412 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
34413 with xstrdup_for_dump.
34414 (sem_variable::equals): Likewise.
34415 (sem_item_optimizer::read_section): Use symtab_node::name instead of
34417 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
34418 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
34419 symtab_node::asm_name with xstrdup_for_dump.
34420 (congruence_class::dump): Use symtab_node::name instead of
34422 * ipa-icf.h (symtab_node::name): Remove.
34423 (symtab_node::asm_name): Likewise.
34425 2015-03-18 Jakub Jelinek <jakub@redhat.com>
34427 PR tree-optimization/65450
34428 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
34430 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
34431 it instead of duplicate_ssa_name_ptr_info.
34434 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
34436 2015-03-18 Richard Biener <rguenther@suse.de>
34438 * tree-data-ref.h (struct access_matrix): Remove.
34439 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
34440 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
34441 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
34442 (am_vector_index_for_loop): Likewise.
34443 (struct data_reference): Remove access_matrix member.
34444 (DR_ACCESS_MATRIX): Remove.
34445 (lambda_vector_new): Add comment.
34446 (lambda_matrix_new): Use XOBNEWVEC.
34448 2015-03-18 Richard Biener <rguenther@suse.de>
34450 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
34451 (pass_ch::execute): Cleanup the CFG only if we did sth.
34452 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
34454 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34456 * expmed.c (synth_mult): Use std::swap instead of manually
34457 swapping algorithms.
34459 2015-03-18 Jakub Jelinek <jakub@redhat.com>
34462 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
34464 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
34467 * config/avr/avr.opt (-nodevicelib): New option.
34468 * doc/invoke.texi (AVR Options): Document it.
34469 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
34470 libgcc.a, libc.a, libm.a.
34471 * config/avr/specs.h: Same.
34472 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
34473 which don't (directly) depend on the device. Print more help.
34474 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
34475 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
34476 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
34478 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
34479 for specs file name.
34480 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
34481 * config/avr/avr-mcus.def: Adjust initializers and comments.
34483 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
34485 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
34486 DECL_ONE_ONLY to check if decl is one only.
34487 * ipa-split.c (consider_split): Limit splitt of one only functions.
34489 2015-03-16 Jakub Jelinek <jakub@redhat.com>
34491 PR tree-optimization/65427
34492 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
34494 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
34496 2015-03-16 Marek Polacek <polacek@redhat.com>
34498 * cgraph.h (add_new_static_var): Remove declaration.
34499 * varpool.c (add_new_static_var): Remove function.
34501 2015-03-16 Jakub Jelinek <jakub@redhat.com>
34503 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
34504 instead of vec<tree> * with vec_alloc and release for args.
34507 PR middle-end/65431
34508 * omp-low.c (delete_omp_context): Only splay_tree_delete
34509 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
34510 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
34512 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
34515 * cfgexpand.c (align_base): New function.
34516 (alloc_stack_frame_space): Call it.
34517 (expand_stack_vars): Align prev_frame to be sure
34518 data->asan_vec elements aligned properly.
34520 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
34522 PR middle-end/65409
34523 * expr.c (store_field): Do not do a direct block copy if the source is
34524 a PARALLEL with BLKmode.
34526 2015-03-16 Tom de Vries <tom@codesourcery.com>
34528 PR middle-end/65414
34530 2015-03-12 Tom de Vries <tom@codesourcery.com>
34532 PR rtl-optimization/64895
34533 * lra-lives.c (check_pseudos_live_through_calls): Use
34534 actual_call_used_reg_set instead of call_used_reg_set, if available.
34536 2015-03-16 Alan Modra <amodra@gmail.com>
34539 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
34540 Modify Z->r bswapdi splitter to use dest in place of scratch.
34541 In r->Z and Z->r bswapdi splitter rename word_high, word_low
34542 to word1, word2 and rearrange logic to suit.
34543 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
34544 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
34545 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
34546 Add one '?' on r->r. Modify Z->r splitter to avoid need for
34549 2015-03-14 Jakub Jelinek <jakub@redhat.com>
34551 PR tree-optimization/65369
34552 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
34553 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
34554 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
34556 PR tree-optimization/65418
34557 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
34558 are casts in the first PLUS_EXPR operand, ensure tbias and
34559 *totallowp are in the inner type.
34561 PR rtl-optimization/65401
34562 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
34563 argument. If true, adjust_address_nv of x with big-endian
34564 correction for the mode widening to GET_MODE (y).
34565 (make_field_assignment): Don't do MEM mode widening here.
34566 Use MEM_P instead of GET_CODE == MEM.
34568 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
34570 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
34571 the external decls.
34573 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34576 * config/arm/arm.c (arm_gen_constant, AND case): Use
34577 ARM_SIGN_EXTEND when constructing AND mask.
34579 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
34581 * graph.c (print_graph_cfg): Make function names visible and append
34582 parenthesis to it. Also make groups of basic blocks belonging to the
34583 same function visible.
34585 2015-03-12 Richard Biener <rguenther@suse.de>
34587 PR middle-end/44563
34588 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
34589 to avoid quadratic behavior with inline expansion splitting blocks.
34590 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
34591 with the successor if the predecessor will be merged with it.
34592 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
34593 entry block with its successor.
34595 2015-03-13 Richard Biener <rguenther@suse.de>
34597 PR middle-end/44563
34598 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
34599 (cleanup_tree_cfg_1): Do not call it.
34600 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
34601 (fixup_noreturn_call): Mark the stmt as control altering.
34602 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
34604 (pass_data_fixup_cfg): Produce a dump file.
34605 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
34606 (need_noreturn_fixup): New global.
34607 (pass_dominator::execute): Fixup queued noreturn calls.
34608 (optimize_stmt): Queue calls that became noreturn for fixup.
34609 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
34610 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
34611 (el_to_fixup): New global.
34612 (eliminate_dom_walker::before_dom_childre): Queue calls that
34613 became noreturn for fixup.
34614 (eliminate): Fixup queued noreturn calls.
34615 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
34616 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
34617 (substitute_and_fold_dom_walker::before_dom_children): Queue
34618 alls that became noreturn for fixup.
34619 (substitute_and_fold): Fixup queued noreturn calls.
34621 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
34623 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
34624 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
34625 are building; for methods check ODR type of class they belong to if
34626 they may lead to a polymorphic call.
34627 (sem_function::compare_polymorphic_p): Be bit smarter about testing
34628 when function may lead to a polymorphic call.
34629 (sem_function::compare_type_list): Remove.
34630 (sem_variable::equals): Update use of compatible_types_p.
34631 (sem_variable::parse_tree_refs): Remove.
34632 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
34634 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
34636 (func_checker::compatible_polymorphic_types_p): Break out from ...
34637 (unc_checker::compatible_types_p): ... here.
34638 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
34640 (unc_checker::compatible_types_p): Update.
34641 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
34644 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34646 PR rtl-optimization/65235
34647 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
34648 When first element of vec_concat is const_int, calculate its size
34649 using second element.
34651 2015-03-12 Richard Biener <rguenther@suse.de>
34653 PR middle-end/65270
34654 * fold-const.c (operand_equal_p): Fix ordering of resetting
34655 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
34657 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
34659 * config/s390/s390.c (s390_reorg): Move code to output nops after label
34661 (s390_asm_output_function_label): Likewise.
34662 * config/s390/s390.c (s390_asm_output_function_label):
34663 Fix function label alignment with -mhtopatch.
34664 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
34665 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
34666 ("nop_2_byte"): New define_insn.
34667 ("nop_4_byte"): Likewise.
34668 ("nop_6_byte"): Likewise.
34669 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
34670 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
34672 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
34675 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
34678 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
34681 * toplev.c (process_options): Restrict Pointer Bounds Checker
34682 usage with Address Sanitizer.
34684 2015-03-12 Richard Biener <rguenther@suse.de>
34686 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
34688 * omp-low.c (expand_omp_taskreg): Split block before removing
34690 (expand_omp_target): Likewise.
34691 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
34692 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
34693 stmt to split_block.
34695 2015-03-12 Tom de Vries <tom@codesourcery.com>
34697 PR rtl-optimization/64895
34698 * lra-lives.c (check_pseudos_live_through_calls): Use
34699 actual_call_used_reg_set instead of call_used_reg_set, if available.
34701 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
34703 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
34704 (cgraph_node::remove): Likewise.
34705 (cgraph_node::get_untransformed_body): Likewise.
34706 * varpool.c (varpool_node::remove): Likewise.
34707 (varpool_node::get_constructor): Add sanity check.
34709 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
34711 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
34713 (-fabi-compat-version): Likewise.
34714 (-ffriend-injection): Likewise.
34715 (-Wdeclaration-after-statement): Likewise.
34716 (-fomit-frame-pointer): Likewise.
34717 (-ftree-coalesce-inlined-vars): Likewise.
34718 (-fvisibility=): Likewise.
34719 * doc/extend.texi (Typeof): Likewise.
34720 (Zero Length): Likewise.
34721 (Escaped Newlines): Likewise.
34722 (Compound Literals): Likewise.
34723 (Function Attributes): Likewise.
34724 (Label Attributes): Likewise.
34725 (Type Attributes): Likewise.
34726 (Function Names): Likewise.
34727 (Other Builtins): Likewise.
34728 (Function Specific Option Pragmas): Likewise.
34729 (C++ Interface): Likewise.
34731 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
34733 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
34735 2015-03-11 Marek Polacek <polacek@redhat.com>
34737 PR tree-optimization/65388
34738 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
34740 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
34743 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
34744 * configure: Regenerate.
34745 * config.in: Regenerate.
34746 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
34747 [-mn-flash]: Document it.
34748 [__AVR_ARCH__]: Document avrtiny.
34750 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
34751 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
34752 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
34754 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
34756 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
34758 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
34761 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
34762 allow reloads of PLUS in floating point/VSX registers.
34764 2015-03-11 Junmo Park <junmoz.park@samsung.com>
34766 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
34767 crypto_sha256_fast.
34768 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
34770 2015-03-11 Richard Biener <rguenther@suse.de>
34772 PR tree-optimization/65310
34773 * tree-sra.c (build_ref_for_offset): Also preserve larger
34776 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
34778 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
34780 2015-03-10 Jakub Jelinek <jakub@redhat.com>
34783 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
34785 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
34787 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
34789 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
34790 (sem_function::equals_wpa): ... here.
34792 2015-03-10 Marek Polacek <polacek@redhat.com>
34793 Jakub Jelinek <jakub@redhat.com>
34796 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
34797 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
34800 2015-03-10 Jakub Jelinek <jakub@redhat.com>
34803 * config/rs6000/t-linux: For powerpc64* target set
34804 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
34806 2015-03-10 Richard Biener <rguenther@suse.de>
34808 PR middle-end/44563
34809 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
34810 for redirect_all_calls.
34812 2015-03-10 Marek Polacek <polacek@redhat.com>
34814 * gdbinit.in (pcfun): Define and document.
34816 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
34818 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
34819 of libgomp-plugin.h.
34820 (find_target_compiler): Support a case when the path to gcc is
34821 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
34822 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
34823 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
34825 (main): Use GCC_INSTALL_NAME as target_driver_name.
34826 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
34828 (mkoffload.o): Remove obsolete include path and defines.
34829 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
34831 2015-03-10 Richard Biener <rguenther@suse.de>
34833 PR middle-end/63155
34834 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
34835 * tree-ssa-coalesce.c: Include timevar.h.
34836 (attempt_coalesce): Handle graph being NULL.
34837 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
34838 Split out abnormal coalescing to ...
34839 (perform_abnormal_coalescing): ... this function.
34840 (coalesce_ssa_name): Perform abnormal coalescing without computing
34842 (verify_ssa_coalescing_worker): New function.
34843 (verify_ssa_coalescing): Likewise.
34845 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
34848 * config.gcc (extra_options) [avr]: Remove.
34849 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
34850 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
34851 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
34853 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
34854 (-mmcu=): Add Var and MissingArgError properties.
34856 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
34857 * config/avr/t-multilib: Regenerate.
34858 * config/avr/specs.h: New file.
34859 * config/avr/driver-avr.c: New file.
34860 * config/avr/genopt.sh: Remove file.
34861 * config/avr/avr-tables.opt: Remove file.
34862 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
34863 * config/avr/avr-c.c: Same.
34864 * avr-arch.h: Same.
34865 (avr_current_device): Remove proto.
34866 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
34867 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
34868 (EXTRA_SPEC_FUNCTIONS): Define.
34869 (avr_devicespecs_file): New specs function proto.
34870 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
34871 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
34872 (avr_current_device): Remove definition and usage.
34873 (avr_set_core_architecture): New static function.
34874 (avr_option_override): Use it.
34875 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
34876 (mcu_name): New static array.
34877 (comparator, avr_archs_str, avr_mcus_str): New static functions.
34878 (avr_inform_devices, avr_inform_core_architectures): New functions.
34879 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
34880 (avrlibc.h) [WITH_AVRLIBC]: Include.
34881 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
34882 (print_mcu): Rewrite from scratch.
34883 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
34884 Forward to avr-specific specs defined in device-specs file.
34885 * config/avr/t-avr (driver-avr.o): New rule.
34886 (avr-devices.o): Depend on avr-arch.h.
34887 (avr-mcus): No more depend on avr-tables.opt.
34888 (avr-tables.opt): Remove rule.
34889 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
34891 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
34893 * c-family/c.opt (fchkp-use-wrappers): New.
34894 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
34895 (chkp_wrap_function): New.
34896 (chkp_build_instrumented_fndecl): Support wrapped
34898 * doc/invoke.texi (-fcheck-pointer-bounds): New.
34899 (-fchkp-check-incomplete-type): New.
34900 (-fchkp-first-field-has-own-bounds): New.
34901 (-fchkp-narrow-bounds): New.
34902 (-fchkp-narrow-to-innermost-array): New.
34903 (-fchkp-optimize): New.
34904 (-fchkp-use-fast-string-functions): New.
34905 (-fchkp-use-nochk-string-functions): New.
34906 (-fchkp-use-static-bounds): New.
34907 (-fchkp-use-static-const-bounds): New.
34908 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
34909 (-fchkp-check-read): New.
34910 (-fchkp-check-write): New.
34911 (-fchkp-store-bounds): New.
34912 (-fchkp-instrument-calls): New.
34913 (-fchkp-instrument-marked-only): New.
34914 (-fchkp-use-wrappers): New.
34915 (-static-libmpx): New.
34916 (-static-libmpxwrappers): New.
34918 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
34920 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
34921 (CHKP_SPEC): Add wrappers library.
34922 * c-family/c.opt (static-libmpxwrappers): New.
34924 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
34926 * config/i386/linux-common.h (LIBMPX_LIBS): New.
34927 (LIBMPX_SPEC): New.
34929 * gcc.c (CHKP_SPEC): New.
34930 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
34931 * c-family/c.opt (static-libmpx): New.
34933 2015-03-10 Richard Biener <rguenther@suse.de>
34935 PR middle-end/44563
34936 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
34938 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
34939 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
34940 (cgraph_add_edge_to_call_site_hash): Likewise.
34941 (cgraph_node::get_edge): Likewise.
34942 (cgraph_edge::set_call_stmt): Likewise.
34943 (cgraph_edge::remove_caller): Likewise.
34945 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
34947 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
34948 (callee_saved_gpr_regs_size): ... this.
34949 (callee_saved_regs_first_regno): Rename to ...
34950 (callee_saved_first_gpr_regno): ... this.
34951 (callee_saved_regs_last_regno) Rename to ...
34952 (callee_saved_last_gpr_regno): ... this.
34953 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
34955 (nds32_initial_elimination_offset): Likewise.
34956 (nds32_expand_prologue): Likewise.
34957 (nds32_expand_epilogue): Likewise.
34958 (nds32_expand_prologue_v3push): Likewise.
34959 (nds32_expand_epilogue_v3pop): Likewise.
34960 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
34961 Adjust renamed variables.
34962 (nds32_output_stack_pop): Likewise.
34964 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
34966 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
34969 2015-03-10 Jakub Jelinek <jakub@redhat.com>
34971 PR rtl-optimization/65321
34972 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
34974 * var-tracking.c (use_narrower_mode): Likewise.
34976 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
34978 PR tree-optimization/65355
34979 * varasm.c (notice_global_symbol): Do not produce RTL.
34980 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
34982 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
34983 check for section anchors.
34985 2015-03-10 Alan Modra <amodra@gmail.com>
34988 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
34989 to be single-arch by default. Set cpu_is_64bit for powerpc64
34990 given --with-cpu=native.
34991 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
34992 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
34994 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
34995 rs6000_isa_flags rather than TARGET_64BIT.
34997 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
34998 Kaz Kojima <kkojima@gcc.gnu.org>
35000 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
35002 2015-03-09 Jakub Jelinek <jakub@redhat.com>
35005 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
35006 on a TREE_BINFO, instead use BINFO_TYPE.
35008 2015-03-09 Richard Biener <rguenther@suse.de>
35010 PR middle-end/65270
35011 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
35012 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
35013 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
35014 of that. When comparing dereferences compare alignment.
35015 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
35017 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
35019 * ipa-inline-analysis.c (check_callers): Check
35020 node->can_remove_if_no_direct_calls_and_refs_p.
35021 (growth_likely_positive): Reorganize to call
35022 can_remove_if_no_direct_calls_p later.
35023 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
35024 will_be_removed_from_program_if_no_direct_calls_p): Add
35025 will_inline parameter.
35026 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
35027 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
35028 Handle inliner case correctly.
35030 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
35032 PR tree-optimization/63743
35033 * cfgexpand.c (reorder_operands): Also reorder if only second operand
35034 had its definition forwarded by TER.
35036 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
35039 * ipa-utils.h (types_odr_comparable): Add strict argument.
35040 * ipa-devirt.c: Fix whitespace;
35041 (odr_hasher): Remove.
35042 (odr_name_hasher, odr_vtable_hasher): New hashers.
35043 (can_be_name_hashed_p): New predicate.
35044 (hash_type_name): remove.
35045 (hash_odr_name): New.
35046 (odr_name_hasher::hash): new.
35047 (can_be_vtable_hashed_p): New.
35048 (hash_odr_vtable): New.
35049 (odr_vtable_hasher::hash): New.
35050 (types_same_for_odr): Add strict parameter.
35051 (types_odr_comparable): Likewise.
35052 (odr_name_hasher::equal): New.
35053 (odr_vtable_hasher::equal): New.
35054 (odr_name_hasher::remove): New.
35055 (odr_hash_type): Change to hash_table<odr_name_hasher>.
35056 (odr_vtable_hash_type): New.
35057 (odr_vtable_hash): New.
35058 (odr_subtypes_equivalent_p): Do strict comparsion.
35059 (add_type_duplicate): Merge type names; cleanup; avoid type
35061 (register_odr_type): Initialize vtable hash.
35062 (build_type_inheritance_graph): Likewise
35063 (get_odr_type): Reorg to use two hashes.
35064 (dump_possible_polymorphic_call_targets): Move sanity check after debug
35066 (ipa_devirt): Dump type_inheritance_graph.
35067 (types_same_for_odr): Add strict mode.
35069 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
35072 * cgraph.h (symtab_node): Add definition_alignment,
35073 can_increase_alignment_p and increase_alignment.
35074 * symtab.c (symtab_node::can_increase_alignment_p,
35075 increase_alignment_1, symtab_node::increase_alignment,
35076 symtab_node::definition_alignment): New.
35077 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
35078 can_increase_alignment_p.
35079 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
35080 * tree-vect-stmts.c (ensure_base_align): Likewise.
35081 * varasm.c (function_section_1): Use definition_alignment.
35082 (assemble_start_function): Likewise.
35083 (emit_local): likewise.
35084 (build_constant_desc): Likewsie.
35085 (output_constant_def_contents): Likewise.
35086 (place_block_symbol): Likewise.
35087 (output_object_block): Likewise.
35089 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
35092 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
35093 when outputting debug.
35095 2015-03-07 Marek Polacek <polacek@redhat.com>
35096 Martin Uecker <uecker@eecs.berkeley.edu>
35099 * doc/invoke.texi: Update description of -fsanitize=bounds.
35101 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
35103 * tree-ssa-phiopt.c (neg_replacement): Remove.
35104 (tree_ssa_phiopt_worker): Remove negate optimization.
35106 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
35109 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
35111 2015-03-06 Richard Biener <rguenther@suse.de>
35113 PR middle-end/64928
35114 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
35115 and liveout_obstack members.
35116 (calculate_live_on_exit): Remove.
35117 (calculate_live_ranges): Change declaration.
35118 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
35119 (new_tree_live_info): Adjust.
35120 (calculate_live_ranges): Delete livein when not wanted.
35121 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
35122 Deal with partly deleted live info.
35123 (loe_visit_block): Remove temporary bitmap by using
35124 bitmap_ior_and_compl_into.
35125 (live_worklist): Adjust accordingly.
35126 (calculate_live_on_exit): Make static.
35127 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
35128 we do not need livein.
35130 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
35132 * real.c (real_from_string): Fix typo in assertion.
35134 2015-03-06 Alex Velenko <alex.velenko@arm.com>
35136 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
35139 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
35141 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
35143 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
35146 * lra-assigns.c (find_hard_regno_for): Rename to
35147 find_hard_regno_for_1. Add a new parameter.
35148 (find_hard_regno_for): New function using find_hard_regno_for_1.
35150 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
35152 PR rtl-optimization/65067
35153 * expmed.c (store_bit_field, extract_bit_field): Reworked the
35154 strict volatile bitfield handling.
35156 2015-03-05 Martin Liska <mliska@suse.cz>
35159 * ipa-icf.c (sem_variable::equals): Compare variables types.
35161 2015-03-05 Richard Henderson <rth@redhat.com>
35164 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
35165 correctly check weak symbol binding.
35167 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
35169 PR middle-end/65315
35170 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
35173 2015-03-05 Martin Liska <mliska@suse.cz>
35175 * ipa-inline.c (inline_small_functions): Set default value to
35176 prevent warning during bootstrap.
35177 * tree.h: Add pragma guard that ignores false positives during
35180 2015-03-05 Richard Biener <rguenther@suse.de>
35182 PR tree-optimization/65310
35183 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
35184 Properly preserve alignment of the base of the access.
35186 2015-03-05 Richard Biener <rguenther@suse.de>
35189 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
35190 Compare dependence info.
35192 2015-03-05 Richard Biener <rguenther@suse.de>
35194 PR middle-end/65233
35195 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
35197 (walk_ssa_copies): Revert last chage. Instead do not walk
35198 SSA names registered for SSA update.
35200 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
35203 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
35204 vtable references for their containing type.
35205 (sem_function::equals_wpa): Compare TYPE_RESTRICT
35206 and type attributes.
35208 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
35210 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
35211 before negating it.
35212 * stor-layout.c (finalize_record_size): Revert latest change.
35214 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
35216 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
35218 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
35220 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
35221 for correct comdat handling.
35222 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
35224 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
35225 (used_from_object_file_p_worker): Remove.
35226 (cgraph_node::only_called_directly_or_alised): Add
35227 used_from_object_file_p.
35228 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
35229 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
35230 can_remove_if_no_direct_calls_and_refs_p.
35232 2015-03-04 Nick Clifton <nickc@redhat.com>
35234 * config/rl78/rl78.h (enum reg_class): Remove real registers from
35235 General register class.
35236 * config/rl78/rl78-real.md: Replace general register constraints
35237 with real+virtual register constraints.
35239 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
35241 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
35242 from checking for -mhtm option.
35244 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
35246 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
35247 (struct ipa_sra_check_caller_data): Add has_thunk field.
35248 (ipa_sra_check_caller): Check for thunk.
35249 (ipa_sra_preliminary_function_checks): Give up on function with
35251 (ipa_early_sra): Use call_for_symbol_and_aliases.
35253 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
35256 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
35257 called for __stack_chk_guard symbol.
35259 2015-03-03 DJ Delorie <dj@redhat.com>
35261 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
35263 (*addhi3_real): Likewise.
35264 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
35265 pattern to match incrementing memory.
35266 * config/rl78/predicates.md (rl78_1_2_operand): New.
35267 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
35268 it's the same and only mem.
35269 (rl78_alloc_physical_registers_op2): If there's effectively only
35270 one MEM, transcode it into HL.
35271 (rl78_far_p): Reject addresses that aren't legitimate.
35273 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
35275 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
35278 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
35280 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
35282 Implement call0 ABI for xtensa
35283 * config/xtensa/constraints.md ("a" constraint): Include stack
35284 pointer in case of call0 ABI.
35285 ("q" constraint): Make empty in case of call0 ABI.
35286 ("D" constraint): Include stack pointer in case of call0 ABI.
35287 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
35288 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
35290 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
35292 (xtensa_regno_to_class): Make it a local variable in the
35293 function xtensa_regno_to_class.
35294 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
35295 macro, function prototype and implementation.
35296 (reg_nonleaf_alloc_order): Make it a local variable in the
35297 function order_regs_for_local_alloc.
35298 (xtensa_conditional_register_usage): New function.
35299 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
35300 (xtensa_valid_move): Allow direct moves to stack pointer
35301 register in call0 ABI.
35302 (xtensa_setup_frame_addresses): Only spill register windows in
35304 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
35305 call0 ABI respectively.
35306 (xtensa_function_arg_1): Only mark a7 register for copying in
35308 (xtensa_call_save_reg): New function.
35309 (compute_frame_size): Add space for callee saved register
35310 storage to the frame size in call0 ABI.
35311 (xtensa_expand_prologue): Generate code to set up stack frame
35312 and save callee-saved registers in call0 ABI.
35313 (xtensa_expand_epilogue): New function.
35314 (xtensa_set_return_address): New function.
35315 (xtensa_return_addr): Calculate return address in call0 ABI.
35316 (xtensa_builtin_saveregs): Only mark a7 register for copying and
35317 emit copying code in windowed ABI.
35318 (order_regs_for_local_alloc): Add preferred register allocation
35319 order for non-leaf function in call0 ABI.
35320 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
35321 (xtensa_asm_trampoline_template): Add trampoline generation for
35323 (xtensa_trampoline_init): Add trampoline initialization for
35325 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
35327 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
35328 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
35329 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
35330 ABI call-used registers.
35331 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
35332 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
35334 (REG_CLASS_CONTENTS): Include all registers into the preferred
35335 reload registers set, adjust the set in the
35336 xtensa_conditional_register_usage.
35337 (xtensa_regno_to_class): Drop variable declaration.
35338 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
35340 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
35342 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
35343 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
35344 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
35345 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
35346 location in call0 ABI.
35347 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
35348 stack adjustment size when handling exception.
35349 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
35350 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
35352 ("return" pattern): Generate ret.n/ret in call0 ABI.
35353 ("epilogue" pattern): Expand epilogue.
35354 ("nonlocal_goto" pattern): Use default in call0 ABI.
35355 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
35356 emit eh_set_a0_* depending on ABI.
35357 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
35358 ("eh_set_a0_call0", "blockage"): New patterns.
35360 2015-03-03 Martin Liska <mliska@suse.cz>
35363 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
35365 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
35368 * config/rs6000/rs6000-tables.opt: Regenerate table.
35370 2015-03-03 Renlin Li <renlin.li@arm.com>
35372 * doc/md.texi (@item ^): Change ? into ^.
35374 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
35376 * doc/tm.texi: Regenerated.
35378 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
35380 * builtins.c (expand_builtin_return_addr): Add
35381 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
35382 surrounding #ifdef.
35383 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
35385 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
35387 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
35389 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
35392 2015-03-03 Martin Jambor <mjambor@suse.cz>
35393 Eric Botcazou <ebotcazou@adacore.com>
35395 * tree-sra.c (ipa_sra_check_caller_data): New type.
35396 (has_caller_p): Removed.
35397 (ipa_sra_check_caller): New function.
35398 (ipa_sra_preliminary_function_checks): Use it.
35400 2015-03-03 Martin Liska <mliska@suse.cz>
35402 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
35403 instead of if branch.
35405 2015-03-03 Martin Liska <mliska@suse.cz>
35408 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
35410 2015-03-23 Jeff Law <law@redhat.com>
35412 PR tree-optimization/65241
35413 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
35414 hash table if INSERT is true.
35416 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
35419 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
35421 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
35424 * config/avr/avr.c (context.h, tree-pass.h): Include them.
35425 (avr_pass_data_recompute_notes): New static variable.
35426 (avr_pass_recompute_notes): New class.
35427 (avr_register_passes): New static function.
35428 (avr_option_override): Call it.
35430 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
35432 Fix various problems with specs file generation.
35435 * config.gcc (extra_gcc_objs) [avr]: Remove.
35436 * config/avr/driver-avr.c: Remove file.
35437 * config/avr/t-avr (driver-avr.o): Remove rule.
35438 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
35439 INCLUDES to build. Depend on TM_H.
35440 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
35441 build warnings. Fix non-matching types and non-existing %-codes.
35443 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
35444 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
35445 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
35446 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
35447 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
35448 (LIBGCC_SPEC): Remove definitions.
35450 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
35452 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
35453 to create a register in testing mode.
35455 2015-03-03 Martin Liska <mliska@suse.cz>
35456 Jan Hubicka <hubicka@ucw.cz>
35459 * cgraph.c (cgraph_node::has_thunk_p): New function.
35460 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
35461 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
35462 (sem_function::merge): Assert is changed.
35464 2015-03-03 Martin Liska <mliska@suse.cz>
35465 Martin Jambor <mjambor@suse.cz>
35468 * ipa-icf.c (sem_item_optimizer::execute): Change function
35469 return value to boolean.
35470 (sem_item_optimizer::merge_classes): Likewise.
35471 (ipa_icf_driver): Return TODO_remove_functions in case there's
35472 a merge operation processed.
35473 * ipa-icf.h: Change function return value to boolean.
35475 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
35478 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
35479 processor type for 64-bit little endian PowerPC.
35481 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
35482 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
35483 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
35484 printing built-in mask so it does not pass NULL pointers.
35486 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
35489 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
35492 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
35493 !ISA_HAS_FP_CONDMOVE.
35495 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
35497 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
35500 2015-03-02 Ulrich Drepper <drepper@gmail.com>
35502 * doc/invoke.texi (Options for Code Generation Conventions):
35503 Fix URL of DSO paper.
35505 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
35508 * ipa-inline.c (check_callers): Looks for recursion.
35509 (inline_to_all_callers): Give up on uninlinable or recursive edges.
35510 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
35511 summary of inline clones.
35512 (do_estimate_growth_1): Fix recursion check.
35514 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
35517 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
35520 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
35521 Aldy Hernandez <aldyh@redhat.com>
35524 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
35525 when checking TYPE_BINFO.
35527 2015-03-02 Richard Biener <rguenther@suse.de>
35530 * ipa-icf-gimple.c: Include builtins.h.
35531 (func_checker::compare_memory_operand): Compare base alignment.
35533 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
35536 * config/i386/i386.c (ix86_pass_by_reference): Bounds are never
35537 passed by reference.
35539 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
35542 * tree-chkp.c (chkp_check_lower): Don't check against
35543 zero bounds for already instrumented functions.
35544 (chkp_check_upper): Likewise.
35545 (chkp_fini): Clean pass local data to avoid wrong reusage.
35547 2015-02-28 Martin Liska <mliska@suse.cz>
35548 Jan Hubicka <hubicka@ucw.cz>
35550 * ipa-icf.c (sem_variable::equals): Improve debug output;
35551 get variable constructor.
35552 (sem_variable::parse): Do not filter out too early; give up on
35553 volatile and register vars.
35554 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
35556 * ipa-icf.h (sem_variable::init): Do not set ctor.
35557 (sem_variable::ctor): Remove.
35559 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
35561 PR middle-end/65233
35562 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
35564 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
35566 * ipa-icf.c: Include stor-layout.h
35567 (sem_function::compare_cgraph_references): Rename to ...
35568 (sem_item::compare_cgraph_references): ... this one.
35569 (sem_variable::equals_wpa): New function
35570 (sem_variable::equals): Do not check stuff already verified by
35572 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
35573 * ipa-icf.h (sem_item): Add compare_cgraph_references.
35574 (sem_function): Remove compare_cgraph_references.
35575 (sem_variable): Turns equals_wpa into non-inline.
35577 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
35579 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
35580 (sem_item::add_expr): New function.
35581 (sem_function::hash_stmt): Handle operands of most statements.
35582 (sem_variable::get_hash): Hash the actual constructor.
35583 * ipa-icf.h (sem_item): Add add_expr.
35584 (sem_function): Update prototype of hash_stmt
35586 2015-02-28 Martin Liska <mliska@suse.cz>
35587 Jan Hubicka <hubicka@ucw.cz>
35590 * ipa-icf-gimple.c (func_checker::compare_function_decl):
35592 (func_checker::compare_variable_decl): Skip symtab vars.
35593 (func_checker::compare_cst_or_decl): Update.
35594 * ipa-icf.c (sem_function::parse): Do not consider aliases.
35595 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
35596 use correct symtab predicates.
35597 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
35598 (sem_variable::parse): Update comment.
35599 (sem_item_optimizer::build_graph): Consider ultimate aliases
35602 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
35604 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
35607 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
35609 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
35610 (sem_variable::merge) Likewise.
35612 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
35614 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
35615 target; also match flag_ipa_devirt.
35617 2015-03-01 Martin Liska <mliska@suse.cz>
35618 Jan Hubicka <hubicka@ucw.cz>
35620 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
35621 Validate variable alignment.
35622 * ipa-icf.c (sem_function::equals_private): Be more precise
35623 about non-common function attributes.
35624 (sem_variable::equals): Likewise.
35626 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
35629 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
35630 across COMDAT group boundary.
35632 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
35635 * ipa-icf.c (clear_decl_rtl): New function.
35636 (sem_function::merge): Clear RTL before forming alias.
35637 (sem_variable::merge): Clear RTL before forming alias.
35639 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
35642 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
35644 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
35646 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
35649 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
35651 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
35652 a typo in the description.
35654 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
35657 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
35658 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
35659 * lra-constraints.c: Include "params.h".
35660 (EBB_PROBABILITY_CUTOFF): Use
35661 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
35662 (lra_inheritance): Use '<' instead of '<=' for
35663 EBB_PROBABILITY_CUTOFF.
35664 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
35667 2015-02-27 Martin Liska <mliska@suse.cz>
35669 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
35670 vector length condition.
35672 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
35674 * doc/extend.texi (x86 transactional memory intrinsics):
35675 Reorganize discussion of _xbegin. Clarify that the return
35676 value is a bit mask. Expand example and move to end of section.
35678 2015-02-26 Jakub Jelinek <jakub@redhat.com>
35679 Aldy Hernandez <aldyh@redhat.com>
35681 PR rtl-optimization/65220
35682 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
35684 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
35687 * lra-remat.c (update_scratch_ops): New.
35688 (do_remat): Call it.
35689 * lra.c (lra_register_new_scratch_op): New. Take code from ...
35690 (remove_scratches): ... here.
35691 * lra-int.h (lra_register_new_scratch_op): New prototype.
35693 2015-02-27 Marek Polacek <polacek@redhat.com>
35696 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
35697 -Wformat-signedness anymore.
35699 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35701 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
35703 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
35705 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35707 * config/s390/s390.c (enum s390_builtin):
35708 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
35709 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
35710 (s390_init_builtins): Generate new builtin functions.
35711 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
35712 (s390_sfpc, s390_efpc): New pattern definitions.
35714 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35716 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
35717 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
35718 (s390_builtin_decls): New array.
35719 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
35720 (s390_builtin_decl): New function.
35721 (TARGET_BUILTIN_DECL): Define macro.
35723 2015-02-27 Richard Biener <rguenther@suse.de>
35725 PR middle-end/63175
35726 * builtins.c (get_object_alignment_2): Make sure to re-apply
35727 the ANDed mask after recursing to its operand gets us a new
35728 misalignment bit position.
35730 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
35731 Martin Liska <mliska@suse.cz>
35734 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
35735 Use address_matters_p.
35736 (redirect_all_callers, set_addressable): New functions.
35737 (sem_function::merge): Reorganize and fix merging issues.
35738 (sem_variable::merge): Likewise.
35739 (sem_variable::compare_sections): Remove.
35740 * common.opt (fmerge-all-constants, fmerge-constants): Remove
35742 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
35744 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
35746 (address_matters_1): New function.
35747 (symtab_node::address_matters_p): New function.
35748 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
35749 check for merged flag.
35750 * cgraph.h (address_matters_p): Declare.
35751 (symtab_node::address_taken_from_non_vtable_p): Remove.
35752 (symtab_node::address_can_be_compared_p): New method.
35753 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
35754 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
35756 (comdat_can_be_unshared_p_1) Use address_matters_p.
35757 (update_vtable_references): Fix formating.
35758 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
35759 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
35760 * cgraphclones.c: Preserve merged and icf_merged flags.
35762 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
35764 * doc/extend.texi (Function Attributes): Fix spelling and typos.
35765 (Label Attributes): Likewise.
35766 (Cilk Plus Builtins): Likewise.
35767 (ARC SIMD Built-in Functions): Likewise.
35768 (ARM C Language Extensions (ACLE)): Likewise.
35769 (PowerPC Built-in Functions): Likewise.
35770 (PowerPC Hardware Transactional Memory Built-in Functions):
35773 2015-02-26 Jakub Jelinek <jakub@redhat.com>
35775 PR tree-optimization/65216
35776 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
35777 new stmt and new SSA_NAME for lhs whenever the arguments have
35778 changed and weren't just swapped. Fix comment typo.
35780 PR tree-optimization/65215
35781 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
35782 for PDP endian targets.
35783 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
35784 Fix up formatting issues.
35785 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
35786 size is smaller than the original, adjust MEM_REF offset by the
35787 difference of sizes. Use is_gimple_mem_ref_addr instead of
35788 is_gimple_min_invariant test to avoid adding address temporaries.
35790 2015-02-26 Martin Liska <mliska@suse.cz>
35791 Jan Hubicka <hubicka@ucw.cz>
35794 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
35795 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
35796 (sem_item_optimizer::process_cong_reduction): Include division by
35797 sensitive references.
35798 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
35799 * ipa-ref.c (ipa_ref::address_matters_p): New function.
35800 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
35802 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
35805 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
35807 * config/avr/avr.c: Same.
35808 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
35809 Refuse any constant address not in 0..0xbf.
35810 * config/avr/avr.md (*mov<mode>, *movsf): Remove
35811 tiny_valid_direct_memory_access_range from insn conditions.
35812 (mov<mode>): Don't special-case expansion of avrtiny addresses.
35814 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
35817 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
35818 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
35819 * config/sh/predicates.md (const_logical_operand): New predicate.
35820 * config/sh/sh.md: Add new peephole2 patterns.
35822 2015-02-26 Marek Polacek <polacek@redhat.com>
35825 * ipa-inline.c (early_inliner): Recompute inline parameters.
35827 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35830 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
35831 instructions with TImode operands are included in the analysis.
35833 2015-02-26 Sebastian Pop <s.pop@samsung.com>
35835 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
35836 of an EDGE_FSM_THREAD.
35838 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
35840 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
35842 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
35845 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
35847 2015-02-26 Sebastian Pop <s.pop@samsung.com>
35849 PR tree-optimization/65048
35850 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
35851 (thread_through_all_blocks): Call valid_jump_thread_path.
35852 Remove invalid FSM jump-thread paths.
35854 2015-02-26 Jakub Jelinek <jakub@redhat.com>
35856 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
35857 (ipa_write_optimization_summaries): Likewise.
35858 * tree-streamer.h: Include data-streamer.h.
35859 (streamer_mode_table): Declare extern variable.
35860 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
35861 * lto-streamer-out.c (lto_output_init_mode_table,
35862 lto_write_mode_table): New functions.
35863 (produce_asm_for_decls): Call lto_write_mode_table when streaming
35865 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
35866 (lto_create_simple_input_block): Add mode_table argument to the
35867 lto_input_block constructors.
35868 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
35870 * data-streamer-in.c (string_for_index): Likewise.
35871 * ipa-inline-analysis.c (inline_read_section): Likewise.
35872 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
35873 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
35874 * lto-streamer-in.c (lto_read_body_or_constructor,
35875 lto_input_toplevel_asms): Likewise.
35876 (lto_input_mode_table): New function.
35877 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
35878 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
35879 Use bp_pack_machine_mode.
35880 * real.h (struct real_format): Add name field.
35881 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
35882 (class lto_input_block): Add mode_table member.
35883 (lto_input_block::lto_input_block): Add mode_table_ argument,
35884 initialize mode_table.
35885 (struct lto_file_decl_data): Add mode_table field.
35886 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
35887 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
35888 unpack_ts_decl_common_value_fields,
35889 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
35890 * tree-streamer.c (streamer_mode_table): New variable.
35891 * real.c (ieee_single_format, mips_single_format,
35892 motorola_single_format, spu_single_format, ieee_double_format,
35893 mips_double_format, motorola_double_format,
35894 ieee_extended_motorola_format, ieee_extended_intel_96_format,
35895 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
35896 ibm_extended_format, mips_extended_format, ieee_quad_format,
35897 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
35898 decimal_single_format, decimal_double_format, decimal_quad_format,
35899 ieee_half_format, arm_half_format, real_internal_format): Add name
35901 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
35903 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
35906 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
35907 reordering for selective scheduling.
35909 2015-02-26 Terry Guo <terry.guo@arm.com>
35911 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
35912 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
35913 (arm_arch_no_volatile_ce): Declare new global variable.
35914 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
35915 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
35916 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
35917 (TARGET_NO_VOLATILE_CE): New macro.
35918 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
35919 volatile memory access in IT block
35921 2015-02-25 Kai Tietz <ktietz@redhat.com>
35923 PR tree-optimization/61917
35924 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
35925 that reduc_def_stmt is null.
35927 2015-02-25 Martin Liska <mliska@suse.cz>
35929 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
35930 hard register variables.
35932 2015-02-25 Kai Tietz <ktietz@redhat.com>
35935 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
35936 (symtab::noninterposable_alias): Likewise.
35938 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
35941 * config/i386/i386.c (ix86_function_arg_regno_p): Support
35943 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
35945 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
35948 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
35949 as split condition; force split via '#' in output pattern.
35951 2015-02-25 Richard Biener <rguenther@suse.de>
35952 Kai Tietz <ktietz@redhat.com>
35954 PR tree-optimization/61917
35955 * tree-vect-loop.c (vectorizable_reduction): Allow
35956 vect_internal_def without reduction to exit graceful.
35958 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
35961 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
35962 only with NONDEBUG_INSN_P.
35964 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
35966 Use variadic macros with avr-log.c.
35968 * config/avr/avr-protos.h (avr_vdump): New prototype.
35969 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
35970 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
35971 * config/avr/avr-log.c: Adjust comments.
35972 (avr_vdump): New function.
35973 (avr_vadump): Pass caller as 2nd argument instead of format string.
35974 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
35975 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
35977 2015-02-25 Jakub Jelinek <jakub@redhat.com>
35980 * target.def (target_option_stream_in): New target hook.
35981 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
35982 targetm.target_option.post_stream_in if non-NULL.
35983 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
35984 * doc/tm.texi: Updated.
35985 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
35987 (TARGET_OPTION_POST_STREAM_IN): Redefine.
35989 2015-02-24 Jeff Law <law@redhat.com>
35992 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
35993 of operand 0 and operand 2.
35994 (zero_cost_loop_end, loop_end): Similarly.
35996 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
35998 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
36001 2015-02-24 DJ Delorie <dj@redhat.com>
36003 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
36004 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
36005 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
36006 instead of hardcoding SImode.
36008 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
36010 * omp-low.c (create_omp_child_function): Tag entrypoint
36011 functions with a special attribute.
36013 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
36016 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
36018 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
36020 PR rtl-optimization/65123
36021 * lra-remat.c (operand_to_remat): Check hard regs in insn
36024 2015-02-24 Nick Clifton <nickc@redhat.com>
36026 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
36029 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
36032 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
36033 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
36034 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
36035 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
36036 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
36037 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
36038 (BUILT_IN_GOACC_PARALLEL): Specify as
36039 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
36040 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
36041 * builtin-types.def
36042 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
36043 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
36044 Remove function types.
36045 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
36046 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
36047 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
36048 New function types.
36050 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
36052 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
36054 2015-02-24 Jakub Jelinek <jakub@redhat.com>
36056 PR tree-optimization/65170
36057 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
36058 if val[1] < 0, clear also val[2] and return 3.
36060 2015-02-24 Alan Modra <amodra@gmail.com>
36063 * config/rs6000/rs6000.c (get_memref_parts): Only return true
36064 when *base is a reg. Handle nested plus addresses. Simplify
36067 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
36069 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
36070 use natural alignment when optimizing for size.
36072 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
36075 * config/sh/sh.md (movsicc_true+3): Remove peephole.
36076 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
36077 * config/sh/sh.c (replace_n_hard_rtx): Remove.
36079 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
36082 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
36083 too big for a wide_int. Implement missing wrapping operation.
36085 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
36088 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
36089 instead of const_int 4294901760.
36091 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
36093 * config/avr/t-avr: Fix typo in comment.
36095 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
36097 * doc/rtl.texi (fma): Clarify documentation.
36099 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
36102 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
36103 over input_location.
36105 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
36107 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
36108 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
36109 restrict alignments to absolute_biggest_alignment.
36110 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
36112 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
36113 * doc/tm.texi: Regenerate.
36114 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
36116 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
36119 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
36121 2015-02-20 Richard Biener <rguenther@suse.de>
36123 PR tree-optimization/65136
36124 * tree-ssa-propagate.c: Include cfgloop.h.
36125 (replace_phi_args_in): Avoid replacing loop latch edge PHI
36126 arguments with constants.
36128 2015-02-20 Jakub Jelinek <jakub@redhat.com>
36129 Martin Liska <mliska@suse.cz>
36132 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
36133 don't try to create_thunk if stdarg_p. If
36134 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
36135 redirect_callers if possible.
36136 (sem_item_optimizer::execute): Call unregister_hooks here...
36137 (ipa_icf_driver): ... instead of here.
36139 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36141 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
36142 Mark operand 0 as earlyclobber in 2nd alternative.
36143 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
36144 Write negated shift amount into QI lowpart operand 0 and use it
36146 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
36148 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
36150 * cgraph.h (clone_function_name_1): Declare.
36151 * cgraphclones.c (clone_function_name_1): New function.
36152 (clone_function_name): Use it.
36153 * lto-partition.c: Include "stringpool.h".
36154 (must_not_rename, maybe_rewrite_identifier)
36155 (validize_symbol_for_target): New static functions.
36156 (privatize_symbol_name): Use must_not_rename.
36157 (promote_symbol): Call validize_symbol_for_target.
36158 (lto_promote_cross_file_statics): Likewise.
36159 (lto_promote_statics_nonwpa): Likewise.
36161 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
36164 * config/avr/avr.md (pushhi_insn): New insn.
36165 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
36167 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
36168 Jakub Jelinek <jakub@redhat.com>
36170 * tree-streamer.c (preload_common_nodes): Don't preload
36171 TI_VA_LIST* for offloading.
36172 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
36175 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
36177 * config/pa/pa.c (pa_emit_move_sequence): Always force
36178 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
36181 * config/pa/pa.c (pa_reloc_rw_mask): New function.
36182 (TARGET_ASM_RELOC_RW_MASK): Define.
36183 (pa_cannot_force_const_mem): Revert previous change.
36185 2015-02-19 Martin Jambor <mjmabor@suse.cz>
36186 Jan Hubicka <hubicka@ucw.cz>
36189 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
36190 across jump functions.
36192 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
36194 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
36196 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
36198 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
36200 2015-02-19 Richard Henderson <rth@redhat.com>
36202 PR middle-end/65074
36203 * varasm.c (default_binds_local_p_2): Don't test node->definition;
36204 test DECL_EXTERNAL independent of symtab_node.
36206 2015-02-19 Jakub Jelinek <jakub@redhat.com>
36209 * varpool.c (varpool_node::get_constructor): Return early
36210 if this->lto_file_data is NULL.
36212 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
36214 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
36215 (rank_for_schedule_debug): Update.
36216 (ready_sort): Make static. Move sorting logic to ...
36217 (ready_sort_debug, ready_sort_real): New static functions.
36218 (schedule_block): Sort both debug insns and real insns in preparation
36219 for ready list trimming. Improve debug output.
36220 * sched-int.h (ready_sort): Remove global declaration.
36222 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
36224 * ipa-icf.c (sem_function::equals_private): Adjust.
36225 (sem_function::bb_dict_test): Take a vec<int> * instead of
36227 * ipa-icf.h (bb_dict_test): Likewise.
36229 2015-02-18 Jakub Jelinek <jakub@redhat.com>
36231 PR gcov-profile/64634
36232 * tree-eh.c (frob_into_branch_around): Fix up typos
36233 in function comment.
36234 (lower_catch): Put eh_seq resulting from EH lowering of
36235 the cleanup sequence after the cleanup rather than before it.
36237 2015-02-18 Tom de Vries <tom@codesourcery.com>
36239 * common.opt (fstdarg-opt): New option.
36240 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
36241 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
36242 (@item -fstdarg-opt): New item.
36244 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
36247 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
36248 for common symbols.
36250 2015-02-18 Jakub Jelinek <jakub@redhat.com>
36252 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
36254 (ALL_HOST_OBJS): Add mkoffload.o.
36255 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
36257 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
36259 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
36260 (compare_virtual_tables): Be smarter about skipping typeinfos;
36261 do sane output on virtual table table mismatch.
36262 (warn_odr): Be ready for forward declarations of enums;
36263 output sane info on base mismatch and virtual table mismatch.
36264 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
36265 when only one type is polymorphic.
36266 (get_odr_type): Fix hashtable corruption.
36267 (dump_odr_type): Dump mangled names.
36269 2015-02-18 Richard Biener <rguenther@suse.de>
36271 PR tree-optimization/65063
36272 * tree-predcom.c (determine_unroll_factor): Return 1 if we
36273 have replaced looparound PHIs.
36275 2015-02-18 Martin Liska <mliska@suse.cz>
36277 * lto-streamer.c (lto_streamer_init): Encapsulate
36278 streamer_check_handled_ts_structures with checking macro.
36280 2015-02-18 Jakub Jelinek <jakub@redhat.com>
36283 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
36284 section if !implicit_section.
36285 (cgraph_node::create_version_clone_with_body): Likewise.
36286 * trans-mem.c (ipa_tm_create_version): Likewise.
36288 2015-02-18 Richard Biener <rguenther@suse.de>
36290 PR tree-optimization/62217
36291 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
36294 2015-02-18 Marek Polacek <polacek@redhat.com>
36297 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
36298 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
36299 is in range [-16K, -1]. Don't issue run-time error if
36300 (ptr > ptr + offset).
36302 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
36304 * doc/install.texi (nvptx-*-none): New section.
36305 * doc/invoke.texi (Nvidia PTX Options): Likewise.
36306 * config/nvptx/nvptx.opt: Update.
36308 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
36309 (access_check): New functions, copied from
36310 config/i386/intelmic-mkoffload.c.
36311 (main): For non-installed testing, look in all COMPILER_PATHs for
36314 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
36316 2015-02-18 Andrew Pinski <apinski@cavium.com>
36317 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
36319 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
36320 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
36322 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
36324 * ipa-visibility.c (function_and_variable_visibility): Only
36325 check locality if node is not already local.
36326 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
36327 call_for_symbol_and_aliases instead of
36328 call_for_symbol_thunks_and_aliases.
36329 (ipa_inline): Likewise.
36330 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
36331 first walk aliases.
36332 * ipa.c (symbol_table::remove_unreachable_nodes): Use
36333 call_for_symbol_and_aliases.
36334 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
36335 (ipa_propagate_frequency_1): Use it; use opt_for_fn
36336 (ipa_propagate_frequency): Update.
36337 (ipa_profile): Add opt_for_fn gueards.
36339 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
36341 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
36342 * doc/invoke.texi (SH options): Document it.
36343 * config/sh/sh.c (sh_insn_length_adjustment): Check
36344 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
36346 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
36348 * common.opt (fipa-cp-alignment): New.
36349 * ipa-cp.c (ipcp_store_alignment_results): Check
36350 flag_ipa_cp_alignment.
36351 * opts.c (default_options_table): Enable -fipa-cp-alignment for
36353 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
36354 * doc/invoke.texi: Document -fipa-cp-alignment.
36356 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
36359 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
36360 to nil. Adjust comments.
36362 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
36364 * ipa-visibility.c (function_and_variable_visibility): Only
36365 check locality if node is not already local.
36366 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
36367 call_for_symbol_and_aliases instead of
36368 call_for_symbol_thunks_and_aliases.
36369 (ipa_inline): Likewise.
36370 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
36371 first walk aliases.
36372 * ipa.c (symbol_table::remove_unreachable_nodes): Use
36373 call_for_symbol_and_aliases.
36374 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
36375 (ipa_propagate_frequency_1): Use it; use opt_for_fn
36376 (ipa_propagate_frequency): Update.
36377 (ipa_profile): Add opt_for_fn guards.
36379 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
36381 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
36382 skipping of "strange" tokens.
36384 2015-02-17 Jeff Law <law@redhat.com>
36386 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
36389 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
36391 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
36392 as forcing a HARD_DEP between instructions, thereby
36393 disallowing rewriting to break dependencies.
36395 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
36397 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
36398 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
36399 variables in boundary that have no inlitalizer encoded and are
36401 * varasm.c (default_binds_local_p_2): External definitions do not
36402 count as definitions here.
36404 2015-02-16 Jeff Law <law@redhat.com>
36406 PR tree-optimization/64823
36407 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
36409 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
36410 threading through blocks with PHIs, but no statements.
36411 (thread_through_normal_block): Distinguish between blocks where
36412 we did not process all the statements and blocks with no statements.
36414 2015-02-16 Jakub Jelinek <jakub@redhat.com>
36415 James Greenhalgh <james.greenhalgh@arm.com>
36418 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
36419 section if not linkonce. Fix up formatting.
36420 (cgraph_node::create_version_clone_with_body): Copy section.
36421 * trans-mem.c (ipa_tm_create_version): Likewise.
36423 2015-02-16 Richard Biener <rguenther@suse.de>
36425 PR tree-optimization/65077
36426 * tree-ssa-structalias.c (get_constraint_for_1): Handle
36427 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
36428 (find_func_aliases): Allow float values to carry pointers again.
36430 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
36432 * doc/install.texi (Specific): Reorder targets list to put
36433 aarch64 in alphabetical order. Add a link to aarch64*-*-*
36436 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
36437 David Edelsohn <dje.gcc@gmail.com>
36440 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
36441 mapping class to external variable or function reference.
36442 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
36445 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
36448 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
36449 ASM_WEAKEN_DECL if defined.
36451 2015-02-16 Richard Biener <rguenther@suse.de>
36454 * varasm.c (default_file_start): For LTO produced units
36455 emit <artificial> as file directive.
36457 2015-02-16 Richard Biener <rguenther@suse.de>
36459 PR tree-optimization/63593
36460 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
36461 stmts and releasing SSA names until...
36462 (execute_pred_commoning): ... after processing all chains.
36464 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
36467 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
36468 external functions.
36470 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
36472 * doc/bugreport.texi: Adjust section titles throughout the file
36473 to use "Title Case".
36474 * doc/extend.texi: Likewise.
36475 * doc/gcov.texi: Likewise.
36476 * doc/implement-c.texi: Likewise.
36477 * doc/implement-cxx.texi: Likewise.
36478 * doc/invoke.texi: Likewise.
36479 * doc/objc.texi: Likewise.
36480 * doc/standards.texi: Likewise.
36481 * doc/trouble.texi: Likewise.
36483 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
36485 * cgraph.h (symtab_node::has_aliases_p): Simplify.
36486 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
36487 * tree.c (lookup_binfo_at_offset): Make static.
36488 (get_binfo_at_offset): Do not shadow offset; add explanatory
36491 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
36493 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
36494 for all floading point loads and stores except those using a register
36496 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
36499 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
36501 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
36502 (do_estimate_growth_1): Record if any uninlinable edge was seen.
36503 (estimate_growth): Handle uninlinable edges correctly.
36504 (check_callers): New.
36505 (growth_likely_positive): Handle aliases correctly.
36507 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
36509 * ipa-chkp.c: Use iterate_direct_aliases.
36510 * symtab.c (resolution_used_from_other_file_p): Move inline.
36511 (symtab_node::create_reference): Fix formating.
36512 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
36513 (symtab_node::iterate_reference): Move inline.
36514 (symtab_node::iterate_referring): Move inline.
36515 (symtab_node::iterate_direct_aliases): Move inline.
36516 (symtab_node::used_from_object_file_p_worker): Inline into ...
36517 (symtab_node::used_from_object_file_p): ... this one; move inline.
36518 (symtab_node::call_for_symbol_and_aliases): Move inline;
36519 use iterate_direct_aliases.
36520 (symtab_node::call_for_symbol_and_aliases_1): New method.
36521 (cgraph_node::call_for_symbol_and_aliases): Move inline;
36522 use iterate_direct_aliases.
36523 (cgraph_node::call_for_symbol_and_aliases_1): New method.
36524 (varpool_node::call_for_node_and_aliases): Rename to ...
36525 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
36526 use iterate_direct_aliases.
36527 (varpool_node::call_for_symbol_and_aliases_1): New method.
36528 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
36529 (ipa_discover_readonly_nonaddressable_var): Update.
36530 * ipa-devirt.c: Fix formating.
36531 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
36533 (cgraph_node::call_for_symbol_and_aliases): Move inline.
36534 (cgraph_node::call_for_symbol_and_aliases_1): New function..
36535 * cgraph.h (used_from_object_file_p_worker): Remove.
36536 (resolution_used_from_other_file_p): Move inline.
36537 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
36538 (symtab_node::iterate_reference): Move inline.
36539 (symtab_node::iterate_referring): Move inline.
36540 (symtab_node::iterate_direct_aliases): Move inline.
36541 (symtab_node::used_from_object_file_p_worker): Inline into ...
36542 (symtab_node::used_from_object_file_p): Move inline.
36543 * tree-emutls.c (ipa_lower_emutls): Update.
36544 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
36545 (varpool_node::call_for_node_and_aliases): Remove.
36547 2015-02-14 Jakub Jelinek <jakub@redhat.com>
36549 PR tree-optimization/62209
36550 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
36551 op == range->exp, insert seq and gimplified code after labels
36552 instead of after the phi.
36554 2015-02-13 Jeff Law <law@redhat.com>
36557 Revert my change for tree-optimization/64823.
36559 2015-02-13 Jakub Jelinek <jakub@redhat.com>
36561 PR tree-optimization/65053
36562 * tree-ssa-phiopt.c (value_replacement): When moving assign before
36563 cond, either reset VR on lhs or set it to phi result VR.
36565 2015-02-13 Jeff Law <law@redhat.com>
36567 PR tree-optimization/64823
36568 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
36569 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
36570 threading through blocks with PHIs, but no statements.
36571 (thread_through_normal_block): Distinguish between blocks where
36572 we did not process all the statements and blocks with no statements.
36574 PR rtl-optimization/47477
36575 * match.pd (convert (plus/minus (convert @0) (convert @1): New
36576 simplifier to narrow arithmetic.
36578 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
36581 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
36582 polymorphic call info when type is not known to be preserved.
36584 2015-02-13 Maritn Jambor <mjambor@suse.cz>
36587 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
36588 (inline_call): Use it.
36590 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
36592 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
36593 GOMP_DEVICE_NVIDIA_PTX.
36595 2015-02-13 Jakub Jelinek <jakub@redhat.com>
36598 * stmt.c (emit_case_nodes): Use void_type_node instead of
36599 NULL_TREE as LABEL_DECL type.
36601 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
36603 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
36605 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
36606 symbolic references to data to be forced to constant memory on the
36609 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
36611 PR tree-optimization/65002
36612 * tree-cfg.c (pass_data_fixup_cfg): Don't update
36614 * tree-sra.c (some_callers_have_no_vuse_p): New.
36615 (ipa_early_sra): Reject functions whose callers
36616 assume function is read only.
36618 2015-02-13 Richard Biener <rguenther@suse.de>
36621 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
36622 for LTO produced CUs.
36624 2015-02-13 Bin Cheng <bin.cheng@arm.com>
36626 PR tree-optimization/64705
36627 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
36628 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
36629 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
36630 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
36631 expand_simple_operations.
36633 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
36634 Richard Henderson <rth@redhat.com>
36637 * cgraphunit.c (cgraph_node::finalize_function): Set definition
36638 before notice_global_symbol.
36639 (varpool_node::finalize_decl): Likewise.
36640 * varasm.c (default_binds_local_p_2): Rename from
36641 default_binds_local_p_1, add weak_dominate argument. Use direct
36642 returns instead of assigning to local variable. Unify varpool and
36643 cgraph paths via symtab_node. Reject undef weak variables before
36644 testing visibility. Reorder tests for simplicity.
36645 (default_binds_local_p): Use default_binds_local_p_2.
36646 (default_binds_local_p_1): Likewise.
36647 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
36649 (default_elf_asm_output_external): Emit visibility when specified.
36651 2015-02-13 Alan Modra <amodra@gmail.com>
36653 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
36654 code setting up r11 for out-of-line fp restore.
36656 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
36658 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
36659 (muser-mode): Likewise.
36661 2015-02-13 Alan Modra <amodra@gmail.com>
36663 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
36664 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
36666 2015-02-12 David Howells <dhowells@redhat.com>
36668 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
36670 * tree-ssa-uninit.c (dump_predicates): Likewise.
36671 * opts.c (print_filtered_help): Likewise.
36673 2015-02-12 Jakub Jelinek <jakub@redhat.com>
36675 * dwarf2out.c (output_die): Use "%s", name instead of name to
36676 avoid -Wformat-security warning.
36678 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
36679 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
36680 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
36681 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
36683 2015-02-12 Jason Merrill <jason@redhat.com>
36685 * common.opt (-flifetime-dse): New.
36687 2015-02-12 Jakub Jelinek <jakub@redhat.com>
36690 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
36692 PR tree-optimization/65014
36693 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
36694 use original second operand of arg0 or arg1 instead of
36695 that adjusted by STRIP_NOPS.
36697 2015-02-11 Jeff Law <law@redhat.com>
36700 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
36701 that needs to be queued, just queue it for a single cycle.
36703 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
36705 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
36706 bodies of thunks; comment on why.
36707 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
36708 symbols are extern.
36710 2015-02-11 Richard Henderson <rth@redhat.com>
36713 * tree-eh.c (mark_reachable_handlers): Mark source and destination
36714 regions of __builtin_eh_copy_values.
36716 2015-02-11 Jakub Jelinek <jakub@redhat.com>
36718 PR middle-end/65003
36719 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
36720 ultimate alias is MEM with SYMBOL_REF satisfying
36721 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
36722 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
36724 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
36726 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
36727 "diagnostic-core.h".
36728 (main): Initialize progname, and call diagnostic_initialize.
36730 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
36731 instead of __OPENMP_TARGET__.
36733 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
36734 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
36735 hard-coding PTX_ID.
36737 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
36739 * doc/sourcebuild.texi (pie_enabled): Document.
36741 2015-02-11 Martin Liska <mliska@suse.cz>
36744 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
36745 a return value for call to a function that is noreturn.
36747 2015-02-11 Richard Biener <rguenther@suse.de>
36750 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
36753 2015-02-11 Andrew Pinski <apinski@cavium.com>
36756 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
36757 Change the first argument type to size_type_node and add another
36759 (aarch64_simd_expand_builtin): Handle the new argument to
36760 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
36761 print an out when the first two arguments are not
36762 nonzero integer constants.
36763 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
36764 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
36766 2015-02-11 Jakub Jelinek <jakub@redhat.com>
36769 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
36770 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
36771 (ix86_set_current_function): Rewritten.
36772 (ix86_add_new_builtins): Temporarily clear current_target_pragma
36773 when creating builtin fndecls.
36775 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
36778 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
36780 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
36781 have no comdat group.
36782 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
36783 (lto_output_varpool_node): Always output alias info.
36784 (output_refs): Output refs of boundary aliases, too.
36785 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
36786 (output_symtab): Output call eges in thunks in boundary.
36787 (get_alias_symbol): Remove.
36788 (input_node, input_varpool_node): Do not special case weakrefs.
36789 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
36790 alias and thunks targets in the boundary; do not take removed symbols
36791 from their comdat groups.
36792 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
36793 (cgraph_node::global_info): Remove.
36794 (cgraph_node::rtl_info): Look through aliases and thunks.
36795 * cgrpah.h (global_info): Remove.
36796 (non_local_p): Remove.
36798 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
36799 Sandra Loosemore <sandra@codesourcery.com>
36801 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
36802 to inline asm. List dialects in proper order.
36804 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
36805 Sandra Loosemore <sandra@codesourcery.com>
36807 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
36809 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
36811 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
36812 modified) reference to Solaris.
36814 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
36816 * doc/extend.texi (Extended Asm): Fix typos.
36818 2015-02-10 Jakub Jelinek <jakub@redhat.com>
36821 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
36823 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
36826 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
36827 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
36828 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
36829 * config/sh/constraints.md (Ara, Add): New constraints.
36830 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
36832 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
36833 atomic_mem_operand_0. Don't use force_reg on the memory address.
36834 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
36835 Sra constraint. Convert to insn_and_split. Add workaround for
36837 (atomic_compare_and_swap<mode>_hard): Copy to
36838 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
36839 Use atomic_mem_operand_0 predicate.
36840 (atomic_compare_and_swap<mode>_soft_gusa,
36841 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
36842 AraAdd constraints.
36843 (atomic_compare_and_swap<mode>_soft_tcb,
36844 atomic_compare_and_swap<mode>_soft_imask,
36845 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
36846 atomic_mem_operand_0 predicate and SraSdd constraints.
36847 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
36849 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
36850 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
36851 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
36852 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
36853 force_reg on the memory address.
36854 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
36855 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
36856 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
36857 atomic_mem_operand_1 predicate and Sra constraint.
36858 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
36859 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
36860 Use atomic_mem_operand_1 predicate.
36861 (atomic_<fetchop_name><mode>_hard): Copy to
36862 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
36863 Use atomic_mem_operand_1 predicate.
36864 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
36865 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
36866 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
36867 insn_and_split. Use atomic_mem_operand_1 predicate.
36868 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
36869 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
36870 Use atomic_mem_operand_1 predicate.
36871 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
36872 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
36873 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
36874 in generated insn with original mem operand before emitting the insn.
36875 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
36876 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
36877 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
36878 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
36879 Use atomic_mem_operand_1 predicate and AraAdd constraints.
36880 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
36881 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
36882 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
36883 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
36884 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
36885 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
36886 atomic_not_fetch<mode>_soft_tcb,
36887 atomic_<fetchop_name>_fetch<mode>_soft_imask,
36888 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
36889 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
36890 Use atomic_mem_operand_1 predicate and SraSdd constraints.
36892 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
36894 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
36895 and 3 earlyclobber operands.
36897 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
36899 * common.opt (fstack-reuse): Mark as optimization.
36901 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
36904 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
36906 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
36908 PR tree-optimization/64326
36909 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
36911 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
36913 PR gcov-profile/61889
36914 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
36916 2015-02-10 Richard Biener <rguenther@suse.de>
36918 PR tree-optimization/64995
36919 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
36920 value we use is final.
36921 (visit_reference_op_store): Always valueize op.
36922 (visit_use): Properly valueize vuses.
36924 2015-02-10 Richard Biener <rguenther@suse.de>
36926 PR tree-optimization/64909
36927 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
36928 pass a scalar-stmt count estimate to the cost model.
36929 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
36931 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
36933 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
36934 enabled by default together with var-tracking.
36936 2015-02-10 Nick Clifton <nickc@redhat.com>
36938 * config/rl78/rl78.c: Remove DIV attribute code accidentally
36939 included in previous rl78 commit.
36941 2015-02-10 Richard Biener <rguenther@suse.de>
36943 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
36944 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
36945 return the bitpack.
36947 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
36949 PR gcov-profile/61889
36950 * config.in: regenerate.
36951 * configure.in: Likewise.
36952 * configure.ac: Check for ftw.h.
36953 * gcov-tool.c: Check for ftw.h before using nftw.
36955 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
36958 * ipa-visibility.c (update_visibility_by_resolution_info): Only
36959 assert when not in lto mode.
36961 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
36963 * ira-color.c (setup_left_conflict_sizes_p): Simplify
36964 initialization/assignment of conflict_size.
36966 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
36969 * ipa-cp.c (gather_caller_stats): Skip thunks.
36970 (propagate_constants_topo): Skip aliases.
36972 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
36975 * config/sh/sh.c (sh_option_override): Don't change
36976 -freorder-blocks-and-partition to -freorder-blocks even when
36977 unwinding is enabled.
36978 (sh_can_follow_jump): Return false if the followee jump is
36979 a crossing jump when -freorder-blocks-and-partition is specified.
36980 * config/sh/sh.md (*jump_compact_crossing): New insn.
36982 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
36983 Kaz Kojima <kkojima@gcc.gnu.org>
36986 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
36987 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
36988 (sh_can_redirect_branch): Rename to ...
36989 (sh_can_follow_jump): ... this. Constify argument types.
36990 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
36991 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
36992 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
36993 * doc/tm.texi: Regenerate.
36995 2015-02-09 Jakub Jelinek <jakub@redhat.com>
36998 * builtins.c (expand_builtin): Call targetm.expand_builtin
36999 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
37001 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
37004 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
37006 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
37009 * ipa-icf.c (set_local): New function.
37010 (sem_function::merge): Use it.
37012 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
37014 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
37015 (add_type_duplicate): Fix comparison of BINFOs.
37017 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
37019 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
37020 on getting VOID pointer.
37022 2015-02-09 Jakub Jelinek <jakub@redhat.com>
37025 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
37028 2015-02-09 Richard Biener <rguenther@suse.de>
37030 * genmatch.c (replace_id): Copy expr_type.
37032 2015-02-09 Richard Biener <rguenther@suse.de>
37034 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
37035 (streamer_write_tree_bitfields): Declare.
37036 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
37037 properly unpack padding.
37038 (unpack_value_fields): Inline ...
37039 (streamer_read_tree_bitfields): ... here.
37040 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
37041 and properly add padding bits.
37042 (streamer_pack_tree_bitfields): Fold into ...
37043 (streamer_write_tree_bitfields): ... this new function,
37044 exposing the bitpack object.
37045 * lto-streamer-out.c (lto_write_tree_1): Call
37046 streamer_write_tree_bitfields.
37048 2015-02-09 Richard Biener <rguenther@suse.de>
37050 PR tree-optimization/54000
37051 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
37052 (struct ivopts_data): Add loop_loc member.
37053 (tree_ssa_iv_optimize_loop): Dump loop location.
37054 (create_new_ivs): Likewise, also dump number of IVs generated.
37056 2015-02-09 Martin Liska <mliska@suse.cz>
37058 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
37059 just if not yet registered.
37060 (ipa_icf_generate_summary): Register callgraph hooks.
37062 2015-02-08 Andrew Pinski <apinski@cavium.com>
37064 * config/aarch64/aarch64.c (gty_dummy): Delete.
37066 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
37069 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
37070 (cgraph_node::local_p): Remove thunk related FIXME.
37072 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
37075 * i386.c (ix86_function_regparm): Look through aliases to see if callee
37076 is local and optimized.
37077 (ix86_function_sseregparm): Likewise; also use target's SSE math
37078 settings; error out instead of silently generating wrong code
37080 (init_cumulative_args): Look through aliases.
37082 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
37085 * ipa-split.c (execute_split_functions): Split if function has aliases.
37087 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
37090 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
37091 aliases before trying to expand it.
37092 (cgraph_node::expand_thunk): Fix formating.
37094 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
37096 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
37097 (Using Assembly Language with C): Expand introduction.
37098 (Basic Asm): Copy-edit. Add more information about uses of
37100 (Extended Asm): Copy-edit. Document new escape syntax and
37102 (Global Reg Vars): Copy-edit.
37103 (Local Reg Vars): Likewise.
37105 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
37109 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
37110 (DBX_CONTIN_CHAR): Define.
37112 2015-02-06 Sebastian Pop <s.pop@samsung.com>
37113 Brian Rzycki <b.rzycki@samsung.com>
37115 PR tree-optimization/64878
37116 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
37117 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
37118 Stop recursion at loop phi nodes after having visited a loop phi node.
37120 2015-02-06 Jakub Jelinek <jakub@redhat.com>
37122 * toplev.c (process_options): Change flag_ipa_ra before creating
37123 optimization_{default,current}_node.
37126 * cgraphunit.c (cgraph_node::expand_thunk): If
37127 restype is not is_gimple_reg_type nor the thunk_fndecl
37128 returns aggregate_value_p, set restmp to a temporary variable
37129 instead of resdecl.
37131 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
37133 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
37135 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
37138 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
37139 add a general secondary reload handler for SDmode, unless we have
37140 both read/write support for SDmode.
37142 2015-02-06 Jakub Jelinek <jakub@redhat.com>
37144 PR middle-end/64937
37145 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
37146 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
37147 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
37148 1 before, push it to abstract_vec.
37149 (dwarf2out_abstract_function): Adjust caller. Don't call
37150 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
37151 DECL_ABSTRACT_P flags for all abstract_vec elts.
37153 2015-02-06 Renlin Li <renlin.li@arm.com>
37155 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
37157 * tree-ssa.c (execute_update_addresses_taken): Likewise.
37159 2015-02-06 Jeff Law <law@redhat.com>
37162 * config/h8300/h8300.c (push): New argument "in_prologue".
37163 Pass "in_prologue" along to "F".
37164 (h8300_push_pop): Corresponding changes.
37165 (h8300_expand_prologue): Likewise.
37166 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
37168 2015-02-06 Jakub Jelinek <jakub@redhat.com>
37170 PR rtl-optimization/64957
37172 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
37173 IOR rather than for AND.
37175 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
37178 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
37179 of shift-add and (add + shift) operations. Rename local variable.
37181 2015-02-05 Jeff Law <law@redhat.com>
37184 * config/h8300/constraints.md (U): Correctly dectect
37185 "eightbit_data" memory addresses.
37186 * config/h8300/h8300.c (eightbit_constant_address_p): Also
37187 handle (const (plus (symbol_ref (x)))) where x is declared
37188 as an 8-bit data memory address.
37189 * config/h8300/h8300.md (call, call_value): Correctly detect
37190 "funcvec" functions.
37193 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
37194 24 to 28 bits for the H8/300.
37196 2015-02-06 Alan Modra <amodra@gmail.com>
37199 * config/rs6000/rs6000.c (chain_already_loaded): New function.
37200 (rs6000_call_aix): Use it.
37202 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
37204 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
37207 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
37209 * config/h8300/constraints.md ("U" constraint): Use strict
37210 variant of REG_OK_FOR_BASE_P after reload has started.
37212 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
37214 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
37215 define to zero if !TARGET_NEON.
37216 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
37218 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
37219 Trevor Saunders <tsaunders@mozilla.com>
37222 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
37224 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
37227 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
37228 when removing varpool nodes.
37230 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
37233 * varpool.c (varpool_node::remove): Fix order of variables.
37235 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
37238 * ipa-inline.c (inline_small_functions): Fix ordering issue between
37239 speculation resolution and key updates.
37241 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
37243 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
37244 about not letting any speculative edges unupdated.
37246 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
37249 * gcov-io.c (gcov_var): Export.
37251 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
37253 PR middle-end/64922
37254 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
37255 edges that become speculative.
37257 2015-02-04 Jakub Jelinek <jakub@redhat.com>
37259 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
37260 or DW_LANG_Fortran08.
37261 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
37263 (gen_compile_unit_die): Handle "GNU Fortran2003" and
37264 "GNU Fortran2008" language strings.
37265 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
37266 * langhooks.h (lang_GNU_Fortran): New prototype.
37267 * langhooks.c (lang_GNU_Fortran): New function.
37268 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
37271 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
37273 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
37274 (RTX_OK_FOR_OLO10_P): Likewise.
37276 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
37278 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
37280 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
37282 PR middle-end/64922
37283 * gimple.c: Include gimple-ssa.h.
37284 (maybe_remove_unused_call_args): New function.
37285 * gimple.h (maybe_remove_unused_call_args): Declare.
37286 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
37287 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
37288 * gimple-fold.c (gimple_fold_call): Likewise.
37290 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
37292 PR rtl-optimization/64905
37293 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
37294 pointer alignment if it isn't needed.
37296 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
37298 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
37299 cortex-a72.cortex-a53.
37300 * config/aarch64/aarch64-tune.md: Regenerate.
37301 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
37303 2015-02-04 Nick Clifton <nickc@redhat.com>
37305 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
37308 2015-02-04 Jakub Jelinek <jakub@redhat.com>
37310 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
37311 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
37312 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
37314 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
37315 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
37316 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
37317 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
37318 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
37319 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
37320 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
37321 * tree-core.h (enum built_in_function): In between
37322 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
37323 for builtins that use DEF_BUILTIN_CHKP macro.
37325 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
37328 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
37329 operands for tcc_comparison exprs. Fix typos.
37332 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
37333 of two XORs that have an intervening AND or IOR.
37336 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
37337 simplification of XOR of AND to not allocate new rtx before
37338 committing to a simplification.
37340 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37342 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
37343 manual swaps in all peepholes.
37345 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37347 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
37348 of manual swapping implementation.
37349 (aarch64_expand_vec_perm_const_1): Likewise.
37351 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
37353 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
37354 (generic_addrcost_table): Remove NAMED_PARAM.
37355 (cortexa57_addrcost_table): Likewise.
37356 (xgene1_addrcost_table): Likewise.
37357 (generic_regmove_table): Likewise.
37358 (cortexa53_regmove_table): Likewise.
37359 (xgene1_regmove_table): Likewise.
37360 (generic_vector_table): Likewise.
37361 (cortexa57_vector_table): Likewise.
37362 (xgene1_vector_table): Likewise.
37363 (generic_tunings): Likewise.
37364 (cortexa53_tunings): Likewise.
37365 (cortexa57_tunings): Likewise.
37366 (xgene1_tunings): Likewise.
37368 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
37370 * config/arm/arm-cores.def: Add cortex-a72 and
37371 cortex-a72.cortex-a53.
37372 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
37373 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
37374 * config/arm/arm-tune.md: Regenerate.
37375 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
37376 "cortex-a72.cortex-a53".
37377 * doc/invoke.texi (ARM Options/-mtune): Likewise.
37379 2015-02-04 Nick Clifton <nickc@redhat.com>
37382 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
37384 (nonimmediate_di_operand): Likewise.
37386 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
37387 prefixes of known F5 using MSP430 MCUs.
37389 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37391 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
37392 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
37393 instead of __builtin_sqrt.
37395 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
37397 * varasm.c (do_assemble_alias): Follow transparent alias
37399 (default_assemble_visibility): Follow transparent alias
37400 chain for decl name.
37402 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
37404 PR middle-end/62103
37405 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
37406 to compute size of referenced value in the constant case.
37408 2015-02-03 Jakub Jelinek <jakub@redhat.com>
37410 PR rtl-optimization/64756
37411 * cse.c (invalidate_dest): New function.
37412 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
37413 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
37414 invalidate and do not record it.
37416 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
37419 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
37420 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
37421 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
37422 atomic_nand<mode>_soft_tcb): New insns.
37423 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
37424 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
37425 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
37426 Split into atomic_not_fetchsi_hard if operands[0] is unused.
37427 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
37428 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
37429 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
37430 atomic_not<mode>_hard if operands[0] is unused.
37431 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
37432 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
37433 if operands[0] is unused.
37434 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
37435 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
37436 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
37437 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
37439 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
37440 into atomic_not<mode>_soft_tcb if operands[0] is unused.
37441 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
37442 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
37443 if operands[0] is unused.
37444 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
37445 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
37446 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
37447 atomic_nand_fetchsi_hard if operands[0] is unused.
37448 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
37449 atomic_nand<mode>_hard if operands[0] is unused.
37450 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
37451 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
37452 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
37453 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
37454 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
37455 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
37456 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
37457 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
37458 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
37459 atomic_not<mode>_hard if operands[0] is unused.
37460 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
37461 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
37463 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
37464 into atomic_not<mode>_soft_tcb if operands[0] is unused.
37465 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
37466 atomic_nand<mode>_hard if operands[0] is unused.
37467 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
37468 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
37470 2015-02-03 David Malcolm <dmalcolm@redhat.com>
37473 * Makefile.in (GCC_OBJS): Add gcc-main.o.
37474 * gcc-main.c: New file, containing "main" taken from gcc.c.
37475 * gcc.c (do_self_spec): Free decoded_options.
37476 (class driver): Move declaration to gcc.h.
37477 (main): Move declaration and implementation to new file
37479 (driver_get_configure_time_options): New function.
37480 * gcc.h (class driver): Move this declaration here, from
37482 (driver_get_configure_time_options): New declaration.
37484 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
37486 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
37487 cross-module inlining.
37488 * cgraph.h (cgraph_node): Add flag merged.
37489 * ipa-icf.c (sem_function::merge): Maintain it.
37491 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
37493 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
37494 instead of OBJECT_P.
37496 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
37499 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
37500 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
37501 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
37502 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
37504 2015-02-03 Jakub Jelinek <jakub@redhat.com>
37507 * combine.c (reg_n_sets_max): New variable.
37508 (can_change_dest_mode, reg_nonzero_bits_for_combine,
37509 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
37510 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
37511 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
37512 (rest_of_handle_combine): Initialize reg_n_sets_max.
37514 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
37516 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
37517 if some always_inline was inlined, apply changes before inlining
37520 2015-02-02 David Malcolm <dmalcolm@redhat.com>
37523 * config/arm/arm.c (arm_option_override): Set
37524 arm_selected_arch/cpu/tune to NULL on entry.
37526 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
37527 Andrew Pinski <pinskia@gcc.gnu.org>
37528 Jakub Jelinek <jakub@gcc.gnu.org>
37531 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
37532 integer typing for small model. Use IN_RANGE.
37534 2015-02-02 Richard Biener <rguenther@suse.de>
37536 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
37537 * tree-vrp.c (vrp_valueize_1): Likewise.
37539 2015-02-02 Alan Modra <amodra@gmail.com>
37541 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
37542 than mem for toc_restore.
37543 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
37544 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
37545 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
37547 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
37550 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
37551 explicit default options.
37553 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
37556 * ipa-utils.c (ipa_merge_profiles): Add release argument.
37557 * ipa-icf.c (sem_function::merge): Do not release body when merging.
37558 * ipa-utils.h (ipa_merge_profiles): Update prototype.
37560 2015-02-01 Jakub Jelinek <jakub@redhat.com>
37563 * cfgexpand.c (deep_ter_debug_map): New variable.
37564 (avoid_deep_ter_for_debug): New function.
37565 (expand_debug_expr): If TERed SSA_NAME is in
37566 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
37567 instead of trying to expand SSA_NAME's def stmt.
37568 (expand_debug_locations): When expanding debug bind
37569 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
37570 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
37572 (pass_expand::execute): Call avoid_deep_ter_for_debug on
37573 all debug bind stmts. Delete deep_ter_debug_map after
37574 expand_debug_location if non-NULL and clear it.
37576 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
37579 * config/sh/sync.md (atomic_fetch_notsi_hard,
37580 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
37581 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
37582 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
37583 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
37584 atomic_not_fetch<mode>_soft_imask): New insns.
37586 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
37588 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
37589 (rank_for_schedule_debug): Split from ...
37590 (rank_for_schedule): ... this.
37591 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
37592 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
37594 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
37596 * doc/md.texi (Machine Constraints): Alphabetize table by target.
37597 * doc/extend.texi (x86 Variable Attributes): Move section to
37598 correct alphabetization after renaming.
37599 (x86 Type Attributes): Likewise.
37600 (Target Builtins): Re-alphabetize menu.
37601 (x86 Built-in Functions): Move section to correct alphabetization
37603 (x86 transactional memory intrinsics): Likewise.
37604 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
37605 and x86 Windows Options in table and menu.
37606 (x86 Options): Move section to correct alphabetization after
37608 (x86 Windows Options): Likewise.
37610 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
37612 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
37613 preferred names of the architecture and its 32- and 64-bit
37615 * doc/invoke.texi: Likewise.
37616 * doc/md.texi: Likewise.
37618 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
37621 * config/i386/predicates.md (address_no_seg_operand): Reject
37622 non-CONST_INT_P operands in invalid mode.
37624 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
37626 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
37627 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
37628 * config/i386/predicates.md (address_no_seg_operand): Call
37629 address_operand with VOIDmode.
37630 (vsib_address_operand): Ditto.
37631 (address_mpx_no_base_operand): Ditto.
37632 (address_mpx_no_index_operand): Ditto.
37634 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
37637 * lra-constraints.c (original_subreg_reg_mode): New.
37638 (simplify_operand_subreg): Try to simplify subreg of const. Use
37639 original_subreg_reg_mode for it.
37640 (swap_operands): Update original_subreg_reg_mode.
37641 (curr_insn_transform): Set up original_subreg_reg_mode.
37643 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
37646 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
37648 (process_alt_operands): Use it.
37649 (curr_insn_transform): Check the optional reload pseudo class is
37652 2015-01-30 Joseph Myers <joseph@codesourcery.com>
37654 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
37655 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
37657 * toplev.h (init_asm_output): Update comment on use of
37658 UNKNOWN_LOCATION with fatal_error.
37659 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
37660 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
37661 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
37662 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
37663 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
37664 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
37665 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
37666 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
37667 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
37668 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
37669 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
37670 fatal_error changed to pass input_location as first argument.
37672 2015-01-30 Martin Liska <mliska@suse.cz>
37674 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
37675 in #pragma GCC diagnostic guards.
37677 2015-01-30 Richard Biener <rguenther@suse.de>
37679 PR tree-optimization/64829
37680 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
37681 not add a widening conversion pattern but hand off extra
37682 widenings to callers.
37683 (vect_recog_widen_mult_pattern): Handle extra widening produced
37684 by vect_handle_widen_op_by_const.
37685 (vect_recog_widen_shift_pattern): Likewise.
37686 (vect_pattern_recog_1): Remove excess vertical space in dumping.
37687 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
37688 (vect_init_vector_1): Likewise.
37689 (vect_get_vec_def_for_operand): Likewise.
37690 (vect_finish_stmt_generation): Likewise.
37691 (vectorizable_load): Likewise.
37692 (vect_analyze_stmt): Likewise.
37693 (vect_is_simple_use): Likewise.
37695 2015-01-29 Jeff Law <law@redhat.com>
37697 * combine.c (try_combine): Fix typo in comment.
37699 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
37702 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
37703 (rs6000_stack_info): Add assert.
37704 (rs6000_output_savres_externs): New function, split off from...
37705 (rs6000_output_function_prologue): ... here. Do not call it for
37708 2015-01-29 Jeff Law <law@redhat.com>
37711 * combine.c (try_combine): If I0 is a memory load and I3 a store
37712 to a related address, increase the "goodness" of doing a 4-insn
37713 combination with I0-I3.
37714 (make_field_assignment): Handle SUBREGs in the ior+and case.
37716 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
37718 PR tree-optimization/64746
37719 * tree-if-conv.c (mask_exists): New function.
37720 (predicate_mem_writes): Save created mask with given size for further
37722 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
37723 (ifcvt_repair_bool_pattern): Collect all statements that are root
37724 of bool pattern and use iterative algorithm to remove multiple uses
37725 of predicates, display number of required iterations.
37727 2015-01-29 Richard Biener <rguenther@suse.de>
37729 PR tree-optimization/64853
37730 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
37731 stmt will get simulated again.
37732 * tree-ssa-ccp.c (valueize_op_1): Likewise.
37734 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37736 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
37737 return_in_pc. Remove redundant assignments.
37738 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
37739 (arm_expand_epilogue): Don't compare boolean with true in if condition.
37741 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
37743 * config/i386/i386.c (ix86_mode_after): Make static.
37745 2015-01-29 Richard Biener <rguenther@suse.de>
37747 PR tree-optimization/64844
37748 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
37749 dump cost model analysis.
37750 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
37751 Do not register adjusted load/store costs here.
37753 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
37754 Uros Bizjak <ubizjak@gmail.com>
37756 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
37757 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
37758 using x86_use_pseudo_pic_reg.
37759 * config/i386/i386.c (ix86_conditional_register_usage): Remove
37760 support for fixed PIC register.
37761 (ix86_use_pseudo_pic_reg): Not static any more.
37763 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
37765 PR middle-end/64805
37766 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
37767 to avoid error in cgraph node verification.
37769 2015-01-29 Marek Polacek <polacek@redhat.com>
37771 * doc/standards.texi: Reflect that the default for C is gnu11.
37773 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
37776 * reorg.c (switch_text_sections_between_p): New function.
37777 (relax_delay_slots): Call it when testing if the jump insn
37778 is removable. Use targetm.can_follow_jump when testing if
37779 the conditional branch can follow an unconditional jump.
37781 2015-01-27 Caroline Tice <cmtice@google.com>
37783 Committing VTV Cywin/Ming patch for Patrick Wollgast
37784 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
37785 if -fvtable-verify=preinit/std is used.
37786 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
37787 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
37788 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
37789 if -fvtable-verify=preinit/std is used.
37790 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
37791 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
37792 if -fvtable-verify=preinit/std is used.
37793 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
37794 * config/i386/mingw32.h (LIB_SPEC): Likewise.
37795 * varasm.c (assemble_variable): Add code to properly set the comdat
37796 section and name for the .vtable_map_vars section in case the
37797 target is PE or COFF.
37799 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
37802 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
37803 make sane BB profile.
37804 (cgraph_node::expand_thunk): Make sane BB profile.
37805 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
37806 * cgraph.h (init_lowered_empty_function): Update prototype.
37807 * config/i386/i386.c (make_resolver_func): Update call.
37808 * predict.c (gate): Disable branch prediction pass if
37809 profile is already there.
37811 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
37813 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
37814 * opth-gen.awk: Likewise.
37815 * common.opt: Mark flag_fp_contract_mode as Optimization.
37817 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
37819 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
37820 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
37822 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
37825 * config/sh/predicates.md (atomic_arith_operand,
37826 atomic_logical_operand): Remove.
37827 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
37828 (atomic_arith_operand_0): New predicate.
37829 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
37830 Use atomic_arith_operand_0 for input values.
37831 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
37832 atomic_compare_and_swap<mode>_soft_gusa,
37833 atomic_compare_and_swap<mode>_soft_tcb,
37834 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
37835 arith_reg_operand instead of register_operand.
37836 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
37837 atomic_arith_operand_0 for newval input.
37838 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
37839 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
37840 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
37841 arith_reg_operand instead of register_operand.
37842 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
37843 fetchop_predicate_1, fetchop_constraint_1_llcs,
37844 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
37845 fetchop_constraint_1_imask): New code iterator attributes.
37846 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
37847 register_operand. Use fetchop_predicate_1.
37848 (atomic_fetch_<fetchop_name>si_hard,
37849 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
37850 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
37851 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
37852 and arith_reg_operand instead of register_operand. Use
37853 fetchop_predicate_1, fetchop_constraint_1_gusa.
37854 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
37855 and arith_reg_operand instead of register_operand. Use
37856 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
37858 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
37859 and arith_reg_operand instead of register_operand. Use
37860 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
37862 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
37863 register_operand. Use atomic_logical_operand_1.
37864 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
37865 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
37866 arith_reg_operand instead of register_operand.
37867 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
37868 Use arith_reg_dest and arith_reg_operand instead of register_operand.
37869 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
37870 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
37871 register_operand. Use fetchop_predicate_1.
37872 (atomic_<fetchop_name>_fetchsi_hard,
37873 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
37874 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
37875 fetchop_constraint_1_llcs.
37876 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
37877 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
37878 fetchop_constraint_1_gusa.
37879 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
37880 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
37881 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
37882 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
37883 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
37884 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
37885 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
37886 register_operand. Use atomic_logical_operand_1.
37887 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
37888 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
37889 arith_reg_operand instead of register_operand.
37890 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
37891 arith_reg_operand instead of register_operand. Use logical_operand
37892 and K08. Adjust asm sequence to allow R0 usage.
37893 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
37894 arith_reg_operand instead of register_operand. Use logical_operand
37897 2015-01-28 Jakub Jelinek <jakub@redhat.com>
37900 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
37901 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
37902 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
37903 only get_full_len HOST_WIDE_INTs from get_val () array rather than
37904 all bits in *val_wide.
37906 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
37908 * varpool.c (tls_model_names): Fix names.
37909 (varpool_node::dump): Dump tls- prefix for tls models.
37911 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
37912 Bernd Schmidt <bernds@codesourcery.com>
37913 Nathan Sidwell <nathan@codesourcery.com>
37915 * config/nvptx/mkoffload.c: New file.
37916 * config/nvptx/t-nvptx: Add build rules for it.
37917 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
37918 (extra_programs): Add mkoffload.
37919 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
37921 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
37923 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
37925 PR middle-end/64809
37926 * cfgexpand.c (reorder_operands): Skip debug gimples.
37928 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
37930 PR tree-optimization/64277
37931 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
37932 range info when possible to refine estimation.
37934 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
37936 PR tree-optimization/64718
37937 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
37938 be a 16bit unsigned integer when n->range is 16.
37939 (bswap_replace): Convert src to that type if necessary for all bswap
37940 sizes. Fix rotation right notation in nearby comment. Use bswap_type
37941 set in pass_optimize_bswap::execute ().
37943 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
37945 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
37946 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
37947 integer and floating point variants.
37948 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
37950 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
37952 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
37953 for all vector modes.
37955 2015-01-28 Jakub Jelinek <jakub@redhat.com>
37958 * doc/sourcebuild.texi (comdat_group): Document.
37960 2015-01-28 Terry Guo <terry.guo@arm.com>
37962 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
37964 2015-01-27 David Malcolm <dmalcolm@redhat.com>
37966 * toplev.c (print_version): Add param "show_global_state", and
37967 only print GGC and plugin information if it is true.
37968 (init_asm_output): Pass in "true" for the new param when calling
37970 (process_options): Likewise.
37971 (toplev::main): Likewise.
37972 * toplev.h (print_version): Add new param to decl.
37974 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
37978 * tree.c (lookup_binfo_at_offset): New function.
37979 (get_binfo_at_offset): Use it.
37981 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
37984 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
37985 on vtable being vtable.
37987 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
37989 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
37990 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
37991 -mhotpatch= option.
37992 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
37993 -mno-hotpatch options. Change syntax of -mhotpatch= option.
37994 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
37996 (s390_hotpatch_trampoline_halfwords_max): Renamed.
37997 (s390_hotpatch_hw_max): New name.
37998 (s390_hotpatch_trampoline_halfwords): Renamed.
37999 (s390_hotpatch_hw_before_label): New name.
38000 (get_hotpatch_attribute): Removed.
38001 (s390_hotpatch_hw_after_label): New name.
38002 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
38004 (s390_attribute_table): Ditto.
38005 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
38006 (s390_function_num_hotpatch_hw): New name.
38007 Remove special handling of inline functions and hotpatching.
38008 Return number of nops before and after the function label.
38009 (s390_can_inline_p): Removed.
38010 (s390_asm_output_function_label): Emit a configurable number of nops
38011 after the function label.
38012 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
38013 (TARGET_CAN_INLINE_P) Removed.
38014 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
38016 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38017 Jiong Wang <jiong.wang@arm.com>
38019 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
38021 (cb<optab><mode>1): Likewise.
38022 * config/aarch64/iterators.md (bcond): New define_code_attr.
38024 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
38026 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
38029 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
38031 * config/s390/s390.c (s390_register_move_cost): Increase costs for
38034 2015-01-27 Richard Biener <rguenther@suse.de>
38036 * tree-vrp.c (update_value_range): Intersect the range with
38037 old recorded SSA name range information.
38039 2015-01-27 Nick Clifton <nickc@redhat.com>
38041 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
38042 BC, DE and HL registers directly, not via AX.
38043 When decrementing the stack pointer by a large amount, transfer SP
38044 into AX and perform the subtraction there.
38045 (rl78_expand_epilogue): Perform the inverse of the above
38048 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
38050 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
38052 2015-01-27 Jakub Jelinek <jakub@redhat.com>
38053 Yury Gribov <y.gribov@samsung.com>
38056 * ubsan.c (ubsan_source_location): Refactor code.
38057 (ubsan_type_descriptor): Update type size. Refactor code.
38059 2015-01-27 Richard Biener <rguenther@suse.de>
38061 PR tree-optimization/56273
38062 PR tree-optimization/59124
38063 PR tree-optimization/64277
38064 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
38065 from the first VRP pass.
38067 2015-01-27 Jakub Jelinek <jakub@redhat.com>
38070 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
38071 handle the first argument in the same loop as all the other arguments.
38073 PR rtl-optimization/61058
38074 * jump.c (cleanup_barriers): Update basic block boundaries
38075 if BLOCK_FOR_INSN is non-NULL on PREV.
38077 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
38079 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
38080 bounds narrowing, already instrumented calls and calls to
38081 not instrumentable functions.
38083 2015-01-27 Jakub Jelinek <jakub@redhat.com>
38085 PR tree-optimization/64807
38086 * wide-int.cc (wi::divmod_internal): Clear
38087 b_dividend[dividend_blocks_needed].
38089 2015-01-26 DJ Delorie <dj@redhat.com>
38091 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
38092 volatile memory references.
38094 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
38097 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
38099 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
38100 shifts if it already fits into K08.
38102 2015-01-26 Jakub Jelinek <jakub@redhat.com>
38105 * ipa-inline.c (inline_small_functions): Print "unknown" even
38106 if edge->call_stmt is non-NULL, but has builtins or unknown
38109 PR middle-end/64421
38110 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
38111 with asterisk, skip the first character.
38113 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
38116 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
38119 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
38122 * config/i386/i386.md (*movdi_internal): Also check operand 0
38123 to determine TYPE_LEA operand.
38124 (*movsi_internal): Ditto.
38126 2015-01-26 Jakub Jelinek <jakub@redhat.com>
38128 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
38129 OPTION_MASK_QUAD_MEMORY_ATOMIC.
38131 2015-01-26 Renlin Li <renlin.li@arm.com>
38133 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
38135 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
38138 2015-01-26 Richard Biener <rguenther@suse.de>
38140 PR middle-end/64764
38141 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
38142 combining two BIT_AND_EXPR predicates.
38144 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
38147 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
38149 2015-01-26 Terry Guo <terry.guo@arm.com>
38151 * config/arm/arm.c (arm_file_start): Update the assignment of
38152 Tag_ABI_HardFP_use.
38154 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
38156 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
38158 config/arm/arm.md: Include the new Cortex-A57 model.
38159 (generic_sched): Don't use generic_sched when tuning for
38162 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
38163 Uros Bizjak <ubizjak@gmail.com>
38165 * config/i386/i386.c (get_builtin_code_for_version): Add
38166 support for BMI and BMI2 multiversion functions.
38168 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
38170 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
38171 (extract_bit_field): Likewise.
38172 (extract_low_bits): Likewise.
38173 (expand_mult): Likewise.
38174 (expand_mult_highpart_adjust): Likewise.
38176 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
38178 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
38179 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
38180 * config/i386/i386.c (processor_model): Add
38181 M_INTEL_COREI7_BROADWELL.
38182 (arch_names_table): Add "broadwell".
38184 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
38193 * config/sh/sh-protos.h
38194 (sh_extending_set_of_reg::can_use_as_unextended_reg,
38195 sh_extending_set_of_reg::use_as_unextended_reg,
38196 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
38197 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
38198 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
38199 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
38200 (sh_treg_insns): New class.
38201 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
38202 (scope_counter): New class.
38203 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
38204 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
38205 sh_extending_set_of_reg::can_use_as_unextended_reg,
38206 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
38207 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
38208 sh_split_treg_set_expr): New functions.
38209 (addsubcosts): Handle treg_set_expr.
38210 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
38211 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
38212 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
38213 (sh_insn_operands_modified_between_p): Make non-static.
38214 * config/sh/predicates.md (zero_extend_movu_operand): Allow
38215 simple_mem_operand in addition to displacement_mem_operand.
38216 (zero_extend_operand): Don't allow zero_extend_movu_operand.
38217 (treg_set_expr, treg_set_expr_not_const01,
38218 arith_reg_or_treg_set_expr): New predicates.
38219 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
38220 arith_or_int_operand instead of logical_operand. Convert to
38221 insn_and_split. Try to optimize constant operand in splitter.
38222 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
38223 (*tstqi_t_zero): Delete.
38224 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
38225 (tstsi_t_and_not): Delete.
38226 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
38227 Convert to insn_and_split.
38228 (unnamed split, tstsi_t_zero_extract_xor,
38229 tstsi_t_zero_extract_subreg_xor_little,
38230 tstsi_t_zero_extract_subreg_xor_big): Delete.
38231 (*tstsi_t_shift_mask): New insn_and_split.
38232 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
38233 to recombine with surrounding insns when splitting.
38234 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
38235 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
38236 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
38237 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
38238 (*cbranch_div0s: Delete.
38239 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
38240 Try to recombine with surrounding insns when splitting. Add operand
38242 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
38243 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
38244 *addc_r_r_msb, *addc_2r_msb): Delete.
38245 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
38247 (*addc_negreg_t): New insn_and_split.
38248 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
38249 Try to recombine with surrounding insns when splitting.
38250 Add operand order variants.
38251 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
38252 insn_and_split patterns.
38253 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
38254 surrounding insns when splitting.
38255 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
38256 (*rotcl): Likewise. Add zero_extract variant.
38257 (*ashrsi2_31): New insn_and_split.
38258 (*negc): Convert to insn_and_split. Use treg_set_expr.
38259 (*zero_extend<mode>si2_disp_mem): Update comment.
38260 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
38262 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
38263 with surrounding insns when splitting.
38264 (any_treg_expr_to_reg): New insn_and_split.
38265 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
38266 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
38267 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
38268 *zero_extract_2): New single bit zero extract patterns.
38269 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
38270 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
38271 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
38272 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
38274 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
38275 register_operand for set source.
38277 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
38279 * i386.opt (prefetch_sse): New targetsave.
38280 * i386.c (ix86_function_specific_save): Save prefetch_sse.
38281 (ix86_function_specific_restore): Restore prefetch_sse and initialize
38282 ix86_cost/ix86_tune_cost.
38284 2015-01-23 David Malcolm <dmalcolm@redhat.com>
38286 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
38287 Support the JIT by using 0 as the language type.
38289 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
38292 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
38293 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
38294 (mark_regno_live, process_bb_lives): Pass new parameter value to
38295 make_hard_regno_born.
38297 2015-01-23 Jakub Jelinek <jakub@redhat.com>
38299 PR rtl-optimization/63637
38300 PR rtl-optimization/60663
38301 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
38302 if elt->cost is MAX_COST for ASM_OPERANDS.
38303 (find_sets_in_insn): Fix up comment typo.
38304 (cse_insn): Don't set src_volatile for all non-volatile
38305 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
38306 or with "memory" clobber. Set elt->cost to MAX_COST
38307 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
38308 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
38310 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
38312 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
38315 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
38317 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
38318 libgcc/config/i386/elf-lib.h.
38320 2015-01-23 Jakub Jelinek <jakub@redhat.com>
38323 * gcc.c (print_configuration): Don't print a blank line at the end
38325 (run_attempt): ... but here unstead.
38327 PR middle-end/64734
38328 * omp-low.c (scan_sharing_clauses): Don't ignore
38329 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
38330 on target data/update constructs.
38332 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
38335 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
38336 (DEBUG_RELOAD): Removed define.
38337 (m32c_limit_reload_class): Enable traces with if DEBUG0.
38338 (m32c_function_arg): Added a type cast.
38339 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
38340 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
38341 * config/m32c/bitops.md (andqi3_16): Likewise.
38342 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
38343 (push_a01_l): Likewise.
38345 2015-01-23 David Malcolm <dmalcolm@redhat.com>
38348 * main.c (main): Construct toplev instances with init_signals=true.
38349 * toplev.c (general_init): Add param "init_signals", and use it to
38350 conditionalize the calls to signal and host_hooks.extra_signals.
38351 (toplev::toplev): Add param "init_signals".
38352 (toplev::main): When invoking general_init, pass m_init_signals
38353 to control whether signal-handlers are installed.
38354 * toplev.h (toplev::toplev): Add param "init_signals".
38355 (toplev::m_init_signals): New field.
38357 2015-01-23 David Malcolm <dmalcolm@redhat.com>
38360 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
38361 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
38362 latter may be affected by the former (e.g. on i686).
38364 2015-01-23 Martin Liska <mliska@suse.cz>
38366 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
38367 false positive during profiledbootstrap.
38369 2015-01-23 Tom de Vries <tom@codesourcery.com>
38372 * lto-opts.c (lto_write_options): Output non-explicit conservative
38374 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
38375 (append_compiler_options): Pass -fopenacc through.
38377 2015-01-23 Tom de Vries <tom@codesourcery.com>
38380 * lto-opts.c (lto_write_options): Output non-explicit conservative
38382 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
38383 (append_compiler_options): Pass -fopenmp through.
38385 2015-01-23 Jakub Jelinek <jakub@redhat.com>
38388 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
38391 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
38392 * diagnostic.def (DK_ICE_NOBT): New kind.
38393 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
38394 like DK_ICE, but never print backtrace.
38395 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
38396 (internal_error_no_backtrace): New function.
38397 * gcc.c (execute): Use internal_error_no_backtrace instead of
38400 2015-01-22 Jeff Law <law@redhat.com>
38403 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
38404 improve code density for small immediate to memory case.
38405 (insv): Better handle bitfield assignments when the field is
38406 being set to all ones.
38407 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
38410 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
38411 Jakub Jelinek <jakub@redhat.com>
38413 PR middle-end/64729
38414 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
38415 for !TARGET_LIBC_PROVIDES_SSP version and
38416 -fstack-protector-{all,strong,explicit} otherwise.
38417 * config/freebsd.h (LINK_SSP_SPEC): Handle
38418 -fstack-protector-{strong,explicit}.
38420 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
38421 H.J. Lu <hongjiu.lu@intel.com>
38424 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
38427 2015-01-22 Wei Mi <wmi@google.com>
38429 PR rtl-optimization/64557
38430 * dse.c (record_store): Call get_addr for mem_addr.
38431 (check_mem_read_rtx): Likewise.
38433 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
38435 * fold-const.c (const_binop): Add early return for non-tcc_binary.
38437 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
38439 * toplev.c (init_local_tick): Process the failure when read
38440 fails for random_seed.
38442 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
38443 'pretty_name' to avoid memory overflow.
38445 2015-01-22 Richard Biener <rguenther@suse.de>
38447 PR middle-end/64728
38448 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
38449 abnormal coalescing on undefined SSA names.
38451 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
38455 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
38457 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
38459 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
38461 PR middle-end/63325
38462 * fold-const.c (fold_checksum_tree): Don't include value of
38463 expr->decl_with_vis.symtab_node in the checksum.
38465 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
38467 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
38469 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
38472 * gcc.c (insert_comments): New function.
38473 (try_generate_repro): Call it.
38474 (append_text): Removed.
38476 2015-01-22 Richard Biener <rguenther@suse.de>
38478 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
38479 with IL incompatible options. Properly honor user optimize
38482 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
38484 PR rtl-optimization/64682
38485 * combine.c (distribute_notes): When moving a death note for
38486 a register that is set in the new I2, make sure to put it
38487 before that new I2.
38489 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
38491 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
38492 not TARGET_DEFAULT.
38494 2015-01-21 Jakub Jelinek <jakub@redhat.com>
38497 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
38498 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
38499 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
38502 * doc/invoke.texi (-fsanitize=vptr): Document.
38504 PR rtl-optimization/62078
38505 * dse.c: Include cfgcleanup.h.
38506 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
38507 anything call purge_all_dead_edges and cleanup_cfg at the end
38510 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
38512 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
38515 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
38517 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
38520 2015-01-21 David Sherwood <david.sherwood@arm.com>
38521 Tejas Belagod <Tejas.Belagod@arm.com>
38523 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
38524 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
38525 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
38528 2015-01-21 David Sherwood <david.sherwood@arm.com>
38529 Tejas Belagod <Tejas.Belagod@arm.com>
38531 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
38532 (aarch64_reverse_mask): New decls.
38533 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
38534 (insn_count): New mode_attr.
38535 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
38536 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
38537 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
38538 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
38539 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
38540 (aarch64_simd_st4): New patterns.
38541 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
38542 (aarch64_reverse_mask): New functions.
38544 2015-01-21 Alan Hayward <alan.hayward@arm.com>
38546 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
38548 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
38549 addressing modes for BE.
38550 (aarch64_print_operand): Add 'R' specifier.
38551 (aarch64_simd_disambiguate_copy): Delete.
38552 (aarch64_simd_emit_reg_reg_move): New function.
38553 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
38554 in define_splits for structural moves.
38555 (mov<mode>): Use less restrictive predicates.
38556 (*aarch64_mov<mode>): Simplify and only allow for LE.
38557 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
38559 2015-01-21 Alan Hayward <alan.hayward@arm.com>
38561 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
38563 2015-01-21 Richard Henderson <rth@redhat.com>
38566 * ccmp.c (used_in_cond_stmt_p): Remove.
38567 (expand_ccmp_expr): Don't use it.
38569 2015-01-21 Nick Clifton <nickc@redhat.com>
38571 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
38574 2015-01-21 Richard Biener <rguenther@suse.de>
38576 PR middle-end/64313
38577 * tree-core.h (builtin_info, builtin_info_type): Turn from
38578 an object with two arrays into an array of an object with
38579 decl and two flags, implicit_p and declared_p.
38580 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
38581 set_builtin_decl, set_builtin_decl_implicit_p,
38582 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
38583 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
38584 * builtins.c (builtin_info): Adjust.
38585 * gimplify.c (gimplify_addr_expr): References to builtins
38586 that have been declared by the user makes them eligible for
38587 use by the compiler. Call set_builtin_decl_implicit_p on them.
38589 2015-01-20 Jeff Law <law@redhat.com>
38592 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
38593 allow pc-relative addresses in operand predicates or constraints.
38595 2015-01-21 Bin Cheng <bin.cheng@arm.com>
38597 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
38598 neon on aarch32 processors for stringops.
38600 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
38603 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
38605 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
38608 * ipa-inline.c: Include lto-streamer.h
38609 (report_inline_failed_reason): Output source file differences and
38610 flags on optimization/target node mismatch.
38611 (can_inline_edge_p): Consider caller to be the outer inline function;
38612 be less restrictive about matching opimize and optimize_size attributes.
38613 (inline_account_function_p): Break out from ...
38614 (inline_small_functions): ... here.
38615 * ipa-inline-transform.c (clone_inlined_nodes): Use
38616 inline_account_function_p.
38617 (inline_call): Use optimize attribution; use inline_account_function_p.
38618 (inline_transform): Use opt_for_fn.
38619 * ipa-inline.h (inline_account_function_p): Declare.
38621 2015-01-20 Jakub Jelinek <jakub@redhat.com>
38624 * dwarf2out.c (decl_piece_node): Don't put bitsize into
38625 mode if bitsize <= 0.
38626 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
38627 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
38628 sizes and positions.
38630 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
38632 * config/nios2/nios2.c (nios2_asm_file_end): Implement
38633 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
38635 (TARGET_ASM_FILE_END): Define.
38637 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
38639 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
38640 (struct tune_params): Use the enum.
38641 * arm.c (arm_*_tune): Update.
38642 (arm_option_override): Update.
38644 2015-01-20 Richard Biener <rguenther@suse.de>
38647 * ipa-reference.c (add_static_var): Inline ...
38648 (analyze_function): ... here after splitting out from ...
38649 (is_proper_for_analysis): ... this.
38651 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
38654 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
38655 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
38656 replace the conditional with it's true branch.
38657 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
38658 (arm_lra_p): Remove.
38660 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
38662 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
38664 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
38666 * config/tilegx/mul-tables.c: Move symtab.h include after
38667 coretypes.h include.
38668 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
38669 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
38670 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
38671 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
38672 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
38674 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
38678 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
38680 PR rtl-optimization/64081
38681 * loop-iv.c (def_pred_latch_p): New function.
38682 (latch_dominating_def): Allow specific cases with non-single
38684 (iv_get_reaching_def): Likewise.
38685 (check_complex_exit_p): New function.
38686 (check_simple_exit): Use check_complex_exit_p to allow certain cases
38687 with exits not executing on any iteration.
38689 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
38692 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
38693 to set branch cost.
38695 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
38698 * i386.c (gate): Check flag_expensive_optimizations and
38700 (ix86_option_override_internal): Drop optimize_size condition
38701 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
38702 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
38703 MASK_PREFER_AVX128.
38704 (ix86_avx256_split_vector_move_misalign,
38705 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
38706 * sse.md (all uses of TARGET_PREFER_AVX128): Add
38707 optimize_insn_for_speed_p check.
38709 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
38711 * config/mips/mips.h (FP_ASM_SPEC): New define.
38712 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
38715 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
38718 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
38719 nullptr for insn when reaching the first insn.
38720 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
38721 (sh_insn_operands_modified_between_p): Add nullptr check.
38722 (sh_find_extending_set_of_reg): Fix log message. Don't accept
38723 sign extending mem load if the insn contains any UNSPEC or
38726 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
38728 * params.def (inline-unit-growth): Drop to 15%.
38729 * invoke.texi (inline-unit-growth): Document change.
38731 2015-01-19 Martin Liska <mliska@suse.cz>
38734 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
38735 function for second argument of OBJ_TYPE_REF.
38737 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
38740 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
38741 whether function is an alias.
38743 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
38745 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
38748 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
38750 PR rtl-optimization/64671
38751 * lra-remat.c (operand_to_remat): Don't consider jump and call
38754 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
38757 * config/rs6000/default64.h: Include rs6000-cpus.def.
38758 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
38759 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
38760 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
38762 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
38764 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
38765 pseudo-op to specify assembler dialect.
38767 2015-01-19 Martin Liska <mliska@suse.cz>
38770 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
38771 Handle safe potentially removed nodes during filtering.
38773 2015-01-19 Martin Liska <mliska@suse.cz>
38775 * doc/extend.texi (no_icf): Add new attribute description.
38776 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
38777 where the pass attempts to merge a function with no_icf attribute.
38779 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38782 * doc/md.texi (ARM Options): Document register constraints.
38784 2015-01-19 Jiong Wang <jiong.wang@arm.com>
38785 Andrew Pinski <apinski@cavium.com>
38788 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
38789 (ashl<mode>3): Don't expand if operands[2] is not constant.
38791 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38794 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
38795 Match xor-and-xor RTL pattern.
38797 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
38799 PR rtl-optimization/64081
38800 * loop-iv.c (def_pred_latch_p): New function.
38801 (latch_dominating_def): Allow specific cases with non-single
38803 (iv_get_reaching_def): Likewise.
38804 (check_complex_exit_p): New function.
38805 (check_simple_exit): Use check_complex_exit_p to allow certain cases
38806 with exits not executing on any iteration.
38808 2015-01-19 Jakub Jelinek <jakub@redhat.com>
38810 * common.opt (fgraphite): Fix a typo.
38812 2015-01-19 Felix Yang <felix.yang@huawei.com>
38814 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
38816 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
38817 uminp, smax_nanp, smin_nanp): New builtins.
38818 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
38819 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
38820 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
38821 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
38822 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
38823 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
38824 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
38825 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
38826 vpminnms_f32): Rewrite using builtin functions.
38828 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
38831 * omp-low.c (offload_symbol_decl): Remove variable.
38832 (get_offload_symbol_decl): Remove function.
38833 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
38834 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
38835 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
38836 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
38837 BUILT_IN_GOACC_UPDATE don't pass it at all.
38839 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
38841 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
38844 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
38846 * ipa-chkp.c (chkp_produce_thunks): Add early param
38847 to split thunks production into two passes. Keep
38848 'always_inline' function bodies after the first pass.
38849 (pass_data_ipa_chkp_early_produce_thunks): New.
38850 (pass_ipa_chkp_early_produce_thunks): New.
38851 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
38852 chkp_produce_thunks signature.
38853 (make_pass_ipa_chkp_early_produce_thunks): New.
38854 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
38855 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
38856 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
38858 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
38860 * cgraph.c (cgraph_node::dump): Dump profile flags.
38862 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
38865 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
38866 reg appear first in the parallel.
38868 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
38870 * ipa-reference.c (set_reference_optimization_summary,
38871 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
38873 (ignore_module_statics): New static var.
38874 (propagate_bits): If ipa-reference is disabled, do not look into local
38876 (analyze_function): Disable analysis when ipa_reference is disabled.
38877 (generate_summary): Do not dump when reference is disabled;
38878 collect vars accessed from functions with ipa-reference disabled.
38879 (get_read_write_all_from_node): When ipa-reference is disabled, use the
38881 (gate): Enable for LTO.
38882 (ignore_edge_p): New function.
38883 (propagate): Skip functions w/o ipa-reference analysis.
38884 * optc-save-gen.awk: Handle optimize_debug correctly.
38885 * opth-gen.awk: Likewise.
38886 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
38887 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
38888 fira-share-save-slots, fira-share-spill-slots,
38889 fmodulo-sched-allow-regmoves, fpartial-inlining,
38890 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
38891 ftracer, ftree-parallelize-loops, fassociative-math,
38892 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
38894 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
38895 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
38897 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
38900 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
38903 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
38905 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
38907 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
38909 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
38910 Remove duplicate option listings.
38912 2015-01-18 Felix Yang <felix.yang@huawei.com>
38914 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
38915 (autofdo_source_profile::get_callsite_total_count,
38916 function_instance::get_function_instance_by_decl,
38917 string_table::get_index, string_table::get_index_by_decl,
38918 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
38919 Fix comment typos. Reformatting and minor code rearrangement.
38921 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
38923 * config/rs6000/rs6000.md (probe_stack): Delete.
38924 (probe_stack_address): New.
38926 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
38928 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
38929 to test for 32-bit ABIs, not !TARGET_POWERPC64.
38931 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
38933 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
38934 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
38935 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
38937 (rs6000_libcall_value): Use the new function.
38939 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
38941 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
38943 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
38945 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
38946 implement a more precise life analysis for it during backward scan.
38948 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
38950 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
38952 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
38954 PR rtl-optimization/52773
38955 * calls.c (emit_library_call_value): When pushing arguments use
38956 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
38957 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
38958 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
38960 2015-01-17 Jeff Law <law@redhat.com>
38962 PR rtl-optimization/32790
38963 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
38964 not ZERO_EXTEND in SET_DESTs.
38966 2015-01-17 Alan Modra <amodra@gmail.com>
38968 * cprop.c (do_local_cprop): Revert last change.
38970 2015-01-16 DJ Delorie <dj@redhat.com>
38971 Nick Clifton <nickc@redhat.com>
38973 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
38974 (addhi3_real): Likewise. Fix [HL+0] syntax.
38975 (subqi3_real): Likewise.
38976 (subhi3_real): Likewise.
38977 (cbranchqi4_real): Likewise. Allow saddr,#imm.
38978 (cbranchhi4_real): Likewise.
38979 (cbranchhi4_real_inverted): Likewise.
38980 (cbranchsi4_real_lt): Likewise.
38981 (cbranchsi4_real_ge): Likewise.
38982 (cbranchsi4_real_ge): Likewise.
38983 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
38984 (sub<mode>3_virt): Likewise.
38985 (cbranchqi4_virt): Likewise.
38986 (cbranchhi4_virt): Likewise.
38987 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
38988 always use '[reg+imm]' even when imm is zero.
38989 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
38990 (rl78_general_operand): New.
38991 (rl78_nonimmediate_operand): New.
38992 (rl78_nonfar_operand): Use them.
38993 (rl78_nonfar_nonimm_operand): Likewise.
38994 (rl78_stack_based_mem): Fix.
38995 * config/rl78/constraints.md (Ibqi): New.
39000 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
39001 (iorqi3): Likewise.
39002 (xorqi3): Likewise.
39003 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
39005 * config/rl78/constrains (Qs8): New constraint.
39006 * config/rl78/rl78.c (rl78_flags_already_set): New function.
39007 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
39008 * config/rl78/rl78-real.md (update_Z): New attribute.
39009 Update patterns to set it.
39010 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
39011 shorter compare and branch sequence can be used.
39012 (cbranchhi4_real): Likewise.
39013 (cbranchhi4_real_inverted): Likewise.
39015 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
39016 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
39018 * config/rl78/rl78.c (rl78_get_name_encoding): New.
39019 (rl78_option_override): Allow -mes0 only if C.
39020 (characterize_address): Support subregs of symbol_refs.
39021 (rl78_addr_space_address_mode): Move. Add __near.
39022 (rl78_far_p): Likewise.
39023 (rl78_addr_space_pointer_mode): Likewise.
39024 (rl78_as_legitimate_address): Likewise.
39025 (rl78_addr_space_subset_p): Likewise.
39026 (rl78_addr_space_convert): Likewise.
39027 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
39028 symbols with -mes0.
39029 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
39031 (rl78_alloc_physical_registers_op1): Change logic to prefer
39032 symbol[BC] addressing.
39033 (frodata_section): New.
39034 (rl78_asm_init_sections): Initialize it.
39035 (rl78_select_section): Put __far readonly symbols in .frodata.
39036 (rl78_make_type_far): New.
39037 (rl78_insert_attributes): Force all readonly symbols to be
39039 (rl78_asm_out_integer): New.
39040 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
39041 * config/rl78/rl78.opt (-mes0): New.
39043 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
39044 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
39045 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
39046 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
39047 (rl78_saddr_p): New.
39048 (rl78_output_aligned_common): New.
39049 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
39050 (rl78_handle_saddr_attribute): New.
39051 (rl78_handle_naked_attribute): New.
39052 (rl78_attribute_table): Add saddr.
39053 (rl78_print_operand_1): Don't print '!' on saddr operands.
39054 (rl78_print_operand_1): Strip encodings.
39056 (rl78_strip_name_encoding): New.
39057 (rl78_attrlist_to_encoding): New.
39058 (rl78_encode_section_info): New.
39059 (rl78_asm_init_sections): New.
39060 (rl78_select_section): New.
39061 (rl78_output_labelref): New.
39062 (rl78_output_aligned_common): New.
39063 (rl78_asm_out_integer): New.
39064 (rl78_asm_ctor_dtor): New.
39065 (rl78_asm_constructor): New.
39066 (rl78_asm_destructor): New.
39068 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
39069 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
39070 (transcode_memory_rtx): Update.
39071 (rl78_expand_epilogue): Use A_REG instead of 0.
39073 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
39075 * config/arm/arm-protos.h (struct tune_params): New field
39076 sched_autopref_queue_depth.
39077 * config/arm/arm.c (sched-int.h): Include header.
39078 (arm_first_cycle_multipass_dfa_lookahead_guard,)
39079 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
39080 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
39081 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
39082 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
39083 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
39084 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
39085 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
39086 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
39087 * config/arm/t-arm (arm.o): Update.
39088 * haifa-sched.c (update_insn_after_change): Update.
39089 (rank_for_schedule): Use auto-prefetcher model, if requested.
39090 (autopref_multipass_init): New static function.
39091 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
39092 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
39093 variable for debug dumps.
39094 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
39095 (autopref_multipass_dfa_lookahead_guard): New global function that
39096 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
39097 (init_h_i_d): Update.
39098 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
39099 * sched-int.h (enum autopref_multipass_data_status): New const enum.
39100 (autopref_multipass_data_): Structure for auto-prefetcher data.
39101 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
39102 (struct _haifa_insn_data:autopref_multipass_data): New field.
39103 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
39104 (autopref_multipass_dfa_lookahead_guard): Declare.
39106 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
39108 * rtlanal.c (get_base_term): Handle SCRATCH.
39110 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
39112 * config/aarch64/aarch64.c
39113 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
39114 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
39116 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
39117 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
39119 2015-01-17 Alan Modra <amodra@gmail.com>
39121 * cprop.c (do_local_cprop): Disallow replacement of fixed
39124 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39127 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
39130 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
39132 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
39133 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
39135 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39137 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
39138 * config/arm/thumb1.md: ... Here.
39140 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
39142 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
39143 TImode for TARGET_32BIT.
39145 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
39147 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
39148 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
39150 (rs6000_abi_word_mode): New function.
39152 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
39154 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
39155 instead of UNITS_PER_WORD to describe the size of stack slots.
39157 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
39159 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
39160 as rs6000_promote_function_mode. Move comment to there.
39161 (rs6000_promote_function_mode): New function.
39163 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
39165 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
39166 -mpowerpc64 is active.
39168 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
39170 PR middle-end/64353
39171 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
39174 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
39176 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
39177 introduced in revision 219724.
39179 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39180 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
39183 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
39184 destination is not a GP reg.
39185 (*movdi_aarch64): Likewise.
39187 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
39190 * config/rs6000/default64.h: Revert ISA change.
39192 2015-01-16 Richard Biener <rguenther@suse.de>
39194 PR middle-end/64614
39195 * tree-ssa-uninit.c: Include tree-cfg.h.
39196 (MAX_SWITCH_CASES): New define.
39197 (convert_control_dep_chain_into_preds): Handle switch statements.
39198 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
39199 (normalize_one_pred_1): Do not split bit-manipulations.
39202 2015-01-16 Richard Biener <rguenther@suse.de>
39204 PR tree-optimization/64568
39205 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
39206 complex load rewriting for TARGET_MEM_REFs.
39208 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
39210 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
39212 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
39215 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
39217 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
39218 (aarch64_lra_p): Remove.
39220 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
39223 * ipa-chkp.h (chkp_instrumentable_p): New.
39224 * ipa-chkp.c: Include tree-inline.h.
39225 (chkp_instrumentable_p): New.
39226 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
39227 Fix processing of not instrumentable functions.
39228 (chkp_versioning): Use chkp_instrumentable_p. Warn about
39229 not instrumentable functions.
39230 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
39231 chkp_instrumentable_p.
39232 * tree-inline.h (copy_forbidden): New.
39233 * tree-inline.c (copy_forbidden): Not static anymore.
39235 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
39237 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
39240 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
39242 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
39243 type OP_OUT to OP_INOUT.
39245 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
39247 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
39248 (high x) y) to y if x and y have the same base.
39250 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
39252 * config/arm/cortex-a57.md: New.
39253 * config/aarch64/aarch64.md: Include it.
39254 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
39255 * config/aarch64/aarch64-tune.md: Regenerate.
39257 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
39260 * ccmp.c (expand_ccmp_next): New function.
39261 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
39262 and compare insn sequence.
39263 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
39264 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
39265 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
39266 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
39267 (*ccmp_ior): Changed to ccmp_ior<mode>.
39268 (cmp<mode>): New pattern.
39269 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
39271 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
39273 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
39275 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
39276 _mm256_bsrli_epi128): New.
39277 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
39279 2015-01-15 Jiong Wang <jiong.wang@arm.com>
39281 * expmed.c (store_bit_field_using_insv): Improve warning message.
39282 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
39284 2015-01-15 Jiong Wang <jiong.wang@arm.com>
39286 PR rtl-optimization/64011
39287 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
39288 there is partial overflow.
39290 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
39292 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
39294 (nds32_expand_epilogue_v3pop): Likewise.
39295 * config/nds32/nds32.md (sibcall): Define this for sibling call
39297 (sibcall_register): Likewise.
39298 (sibcall_immediate): Likewise.
39299 (sibcall_value): Likewise.
39300 (sibcall_value_register): Likewise.
39301 (sibcall_value_immediate): Likewise.
39302 (sibcall_epilogue): Likewise.
39303 (epilogue): Pass false to indicate this is not a sibcall epilogue.
39304 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
39305 (nds32_expand_epilogue_v3pop): Likewise.
39307 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
39309 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
39310 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
39311 (return_internal): New.
39312 (return): Define this named pattern.
39313 (simple_return): Define this named pattern.
39314 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
39315 pattern instead of unspec_volatile_func_return.
39316 (nds32_expand_epilogue_v3pop): Likewise.
39317 (nds32_can_use_return_insn): New function.
39319 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
39321 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
39322 * config/nds32/nds32.md (pop25return): New.
39323 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
39324 pop25return pattern.
39326 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
39328 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
39329 -mforbid-fp-as-gp, and -mex9 options.
39331 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
39333 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
39334 remove -mgp-direct option.
39336 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
39338 * doc/invoke.texi (--param early-inlining-insns): Update default value.
39339 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
39341 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
39343 * ipa-inline.c (inline_small_functions): Work around hints
39346 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
39349 * doc/invoke.texi (Option Summary): Document new Nios II
39351 (Nios II Options): Likewise.
39352 * config/nios2/nios2.opt: Add -mgpopt= option support.
39353 Modify existing -mgpopt and -mno-gpopt options to be aliases.
39354 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
39355 * config/nios2/nios2.c (nios2_option_override): Adjust
39356 -mgpopt defaulting.
39357 (nios2_in_small_data_p): Return true for explicit small data
39358 sections even with -G0.
39359 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
39362 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
39365 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
39367 (inline_call): Fix removal of aliases.
39369 2015-01-15 Jakub Jelinek <jakub@redhat.com>
39371 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
39372 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
39373 * opts.c (common_handle_option): Add -fsanitize=vptr.
39374 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
39375 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
39376 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
39377 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
39378 (ubsan_expand_vptr_ifn): New prototype.
39379 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
39380 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
39381 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
39382 expand_LOOP_VECTORIZED): Make argument nameless, remove
39384 (expand_UBSAN_VPTR): New function.
39385 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
39387 (UBSAN_VPTR): New internal function.
39388 * sanopt.c (tree_map_traits): Renamed to ...
39389 (sanopt_tree_map_traits): ... this.
39390 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
39391 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
39392 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
39393 (maybe_optimize_ubsan_vptr_ifn): New function.
39394 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
39395 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
39397 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
39398 internal calls like pure functions for aliasing, even when they
39399 have other side-effects that prevent making them ECF_PURE.
39400 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
39401 (ubsan_expand_vptr_ifn): New function.
39403 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
39405 PR rtl-optimization/64110
39406 * stmt.c (parse_output_constraint): Process '^' and '$'.
39407 (parse_input_constraint): Ditto.
39408 * lra-constraints.c (process_alt_operands): Process the new
39410 * ira-costs.c (record_reg_classes): Process the new constraint
39412 * genoutput.c (indep_constraints): Add '^' and '$'.
39413 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
39414 * doc/md.texi: Add description of the new constraints.
39416 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
39417 Bernd Schmidt <bernds@codesourcery.com>
39418 Cesar Philippidis <cesar@codesourcery.com>
39419 James Norris <jnorris@codesourcery.com>
39420 Tom de Vries <tom@codesourcery.com>
39421 Ilmir Usmanov <i.usmanov@samsung.com>
39422 Dmitry Bocharnikov <dmitry.b@samsung.com>
39423 Evgeny Gavrin <e.gavrin@samsung.com>
39424 Jakub Jelinek <jakub@redhat.com>
39426 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
39427 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
39428 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
39429 New function types.
39430 * builtins.c: Include "gomp-constants.h".
39431 (expand_builtin_acc_on_device): New function.
39432 (expand_builtin, is_inexpensive_builtin): Handle
39433 BUILT_IN_ACC_ON_DEVICE.
39434 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
39436 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
39438 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
39439 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
39440 i386/intelmic-offload.h.
39441 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
39442 to libgomp and its dependencies.
39443 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
39444 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
39445 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
39446 * config/ia64/hpux.h (LIB_SPEC): Likewise.
39447 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
39448 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
39449 * doc/generic.texi: Update for OpenACC changes.
39450 * doc/gimple.texi: Likewise.
39451 * doc/invoke.texi: Likewise.
39452 * doc/sourcebuild.texi: Likewise.
39453 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
39454 GF_OMP_FOR_KIND_OACC_LOOP.
39455 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
39456 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
39457 GF_OMP_TARGET_KIND_OACC_UPDATE,
39458 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
39460 * gimple.c: Update comments for OpenACC changes.
39461 * gimple.def: Likewise.
39462 * gimple.h: Likewise.
39463 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
39464 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
39465 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
39466 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
39467 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
39469 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
39470 * gimplify.c: Include "gomp-constants.h".
39471 Update comments for OpenACC changes.
39472 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
39473 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
39474 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
39475 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
39476 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
39477 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
39478 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
39479 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
39480 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
39482 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
39483 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
39484 OMP_CLAUSE_SET_MAP_KIND.
39485 (gimplify_oacc_cache): New function.
39486 (gimplify_omp_for): Handle OACC_LOOP.
39487 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
39489 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
39490 OACC_EXIT_DATA, OACC_UPDATE.
39491 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
39492 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
39493 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
39494 (gimplify_body): Consider flag_openacc next to flag_openmp.
39495 * lto-streamer-out.c: Include "gomp-constants.h".
39496 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
39497 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
39498 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
39499 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
39500 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
39501 (BUILT_IN_ACC_ON_DEVICE): New builtins.
39502 * omp-low.c: Include "gomp-constants.h".
39503 Update comments for OpenACC changes.
39504 (struct omp_context): Add reduction_map, gwv_below, gwv_this
39506 (extract_omp_for_data, use_pointer_for_field, install_var_field)
39507 (new_omp_context, delete_omp_context, scan_sharing_clauses)
39508 (create_omp_child_function, scan_omp_for, scan_omp_target)
39509 (check_omp_nesting_restrictions, lower_reduction_clauses)
39510 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
39511 Update for OpenACC changes.
39512 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
39513 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
39514 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
39515 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
39516 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
39517 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
39519 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
39520 Handle GF_OMP_FOR_KIND_OACC_LOOP.
39521 (expand_omp_target, lower_omp_target): Handle
39522 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
39523 GF_OMP_TARGET_KIND_OACC_UPDATE,
39524 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
39525 GF_OMP_TARGET_KIND_OACC_DATA.
39526 (pass_expand_omp::execute, execute_lower_omp)
39527 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
39529 (offload_symbol_decl): New variable.
39530 (oacc_get_reduction_array_id, oacc_max_threads)
39531 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
39532 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
39533 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
39534 (oacc_gimple_assign, oacc_initialize_reduction_data)
39535 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
39537 (is_targetreg_ctx): Remove function.
39538 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
39539 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
39540 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
39541 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
39542 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
39543 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
39544 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
39545 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
39546 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
39547 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
39548 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
39549 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
39550 * tree-core.h: Update comments for OpenACC changes.
39551 (enum omp_clause_map_kind): Remove.
39552 (struct tree_omp_clause): Change type of map_kind member from enum
39553 omp_clause_map_kind to unsigned char.
39554 * tree-inline.c: Update comments for OpenACC changes.
39555 * tree-nested.c: Likewise. Include "gomp-constants.h".
39556 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
39557 (convert_tramp_reference_stmt, convert_gimple_call): Update for
39558 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
39559 OMP_CLAUSE_SET_MAP_KIND.
39560 * tree-pretty-print.c: Include "gomp-constants.h".
39561 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
39562 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
39563 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
39564 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
39565 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
39566 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
39567 instead of OMP_CLAUSE_MAP_*.
39568 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
39569 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
39570 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
39571 * tree-streamer-in.c: Include "gomp-constants.h".
39572 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
39573 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
39574 * tree-streamer-out.c: Include "gomp-constants.h".
39575 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
39577 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
39578 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
39579 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
39580 * tree.c (omp_clause_num_ops): Update accordingly.
39581 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
39583 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
39584 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
39585 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
39586 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
39587 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
39588 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
39589 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
39590 (OMP_CLAUSE_SET_MAP_KIND): New macro.
39591 * varpool.c (varpool_node::get_create): Consider flag_openacc next
39593 * config/i386/intelmic-offload.h: New file.
39594 * config/nvptx/offload.h: Likewise.
39596 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
39598 * explow.h: Remove duplicate contents.
39599 * dojump.h: Likewise.
39601 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
39603 * arm.c (arm_xgene_tune): Add default initializer for instruction
39606 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
39610 * ipa.c (symbol_table::remove_unreachable_nodes):
39611 Do not put abstract origins into boundary.
39613 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
39615 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
39616 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
39618 2015-01-15 Steve Ellcey <sellcey@mips.com>
39620 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
39621 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
39622 builtins.def, and chkp-builtins.def.
39624 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
39626 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
39629 2015-01-15 Richard Biener <rguenther@suse.de>
39631 PR tree-optimization/61743
39632 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
39633 information on PHIs for some simple cases.
39635 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
39637 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
39639 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
39640 * config/arm/arm-cores.def (xgene1): New entry.
39641 * config/arm/arm-tables.opt: Regenerate.
39642 * config/arm/arm-tune.md: Regenerate.
39643 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
39645 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
39647 * tree-if-conv.c: Include hash-map.h.
39648 (aggressive_if_conv): New variable.
39649 (fold_build_cond_expr): Add simplification of non-zero condition.
39650 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
39651 destination block is not always executed.
39652 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
39653 than two predecessors if AGGRESSIVE_IF_CONV is true.
39654 (if_convertible_stmt_p): Fix commentary.
39655 (all_preds_critical_p): New function.
39656 (has_pred_critical_p): New function.
39657 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
39658 BB can have more than two predecessors and all incoming edges can be
39660 (predicate_bbs): Skip predication for loop exit block, use build2_loc
39661 to compute predicate for true edge.
39662 (find_phi_replacement_condition): Delete this function.
39663 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
39664 Allow interchange PHI arguments if EXTENDED is false.
39665 Change check that block containing reduction statement candidate
39666 is predecessor of phi-block since phi may have more than two arguments.
39667 (phi_args_hash_traits): New helper structure.
39668 (struct phi_args_hash_traits): New type.
39669 (phi_args_hash_traits::hash): New function.
39670 (phi_args_hash_traits::equal_keys): New function.
39671 (gen_phi_arg_condition): New function.
39672 (predicate_scalar_phi): Add handling of phi nodes with more than two
39673 arguments, delete COND and TRUE_BB arguments, insert body of
39674 find_phi_replacement_condition to predicate ordinary phi nodes.
39675 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
39676 delete call of find_phi_replacement_condition and invoke
39677 predicate_scalar_phi with two arguments.
39678 (insert_gimplified_predicates): Add assert that non-predicated block
39679 don't have statements to insert.
39680 (ifcvt_split_critical_edges): New function.
39681 (ifcvt_split_def_stmt): Likewise.
39682 (ifcvt_walk_pattern_tree): Likewise.
39683 (stmt_is_root_of_bool_pattern): Likewise.
39684 (ifcvt_repair_bool_pattern): Likewise.
39685 (ifcvt_local_dce): Likewise.
39686 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
39687 is copy of inner or outer loop force_vectorize field, invoke
39688 ifcvt_split_critical_edges, ifcvt_local_dce and
39689 ifcvt_repair_bool_pattern for aggressive if-conversion.
39691 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
39693 * config/aarch64/aarch64.md: Include xgene1.md.
39694 * config/aarch64/xgene1.md: New file.
39696 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
39698 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
39699 xgene1 (APM XGene-1) core definition.
39700 * config/aarch64/aarch64.c: Add cost tables for APM XGene-1
39701 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
39702 * doc/invoke.texi: Document -mcpu=xgene1.
39704 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
39706 * dojump.h: New header file.
39707 * explow.h: Likewise.
39708 * expr.h: Remove includes.
39709 Move expmed.c prototypes to expmed.h.
39710 Move dojump.c prototypes to dojump.h.
39711 Move alias.c prototypes to alias.h.
39712 Move explow.c prototypes to explow.h.
39713 Move calls.c prototypes to calls.h.
39714 Move emit-rtl.c prototypes to emit-rtl.h.
39715 Move varasm.c prototypes to varasm.h.
39716 Move stmt.c prototypes to stmt.h.
39717 (saved_pending_stack_adjust): Move to dojump.h.
39718 (adjust_address): Move to explow.h.
39719 (adjust_address_nv): Move to emit-rtl.h.
39720 (adjust_bitfield_address): Likewise.
39721 (adjust_bitfield_address_size): Likewise.
39722 (adjust_bitfield_address_nv): Likewise.
39723 (adjust_automodify_address_nv): Likewise.
39724 * explow.c (expr_size): Move to expr.c.
39725 (int_expr_size): Likewise.
39726 (tree_expr_size): Likewise.
39727 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39728 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
39729 * genemit.c (main): Generate includes statistics.h, real.h,
39730 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
39732 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
39733 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
39734 explow.h, emit-rtl.h, stmt.h.
39735 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
39736 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
39737 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
39738 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
39739 emit-rtl.h, varasm.h, stmt.h.
39740 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
39741 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
39742 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
39743 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
39744 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
39745 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
39746 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
39747 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
39748 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
39749 tm.h tree.h varasm.h vec.h wide-int.h.
39750 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
39751 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
39752 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
39753 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
39754 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
39755 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
39756 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
39757 * loop-iv.c: Likewise.
39758 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
39759 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
39760 statistics.h stmt.h tree.h varasm.h wide-int.h.
39761 * lra-constraints.c: Likewise.
39762 * lra-eliminations.c: Likewise.
39763 * lra-lives.c: Likewise.
39764 * lra-remat.c: Likewise.
39765 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
39766 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
39767 statistics.h stmt.h tree.h varasm.h wide-int.h.
39768 * hw-doloop.c: Likewise.
39769 * ira-color.c: Likewise.
39770 * ira-emit.c: Likewise.
39771 * loop-doloop.c: Likewise.
39772 * loop-invariant.c: Likewise.
39773 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
39774 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
39775 statistics.h stmt.h tree.h varasm.h wide-int.h.
39776 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
39777 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
39778 statistics.h stmt.h tree.h varasm.h wide-int.h.
39779 * combine-stack-adj.c: Likewise.
39782 * ifcvt.c: Likewise.
39783 * ira-costs.c: Likewise.
39784 * jump.c: Likewise.
39785 * lra-coalesce.c: Likewise.
39786 * lra-spills.c: Likewise.
39787 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
39788 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
39789 stmt.h varasm.h wide-int.h.
39790 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
39791 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
39793 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
39794 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
39795 statistics.h stmt.h varasm.h wide-int.h.
39796 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
39797 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
39798 varasm.h wide-int.h.
39799 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
39800 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
39801 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
39802 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
39803 statistics.h stmt.h.
39804 * config/tilepro/tilepro.c: Likewise.
39805 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
39806 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
39807 * config/pdp11/pdp11.c: Likewise.
39808 * config/xtensa/xtensa.c: Likewise.
39809 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
39810 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
39812 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39813 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
39814 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
39815 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39816 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
39817 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
39818 * rtl-chkp.c: Likewise.
39819 * tree-chkp-opt.c: Likewise.
39820 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
39821 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
39822 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
39823 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39824 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
39825 statistics.h stmt.h.
39826 * tree-vect-data-refs.c: Likewise.
39827 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
39828 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
39829 rtl.h statistics.h stmt.h varasm.h.
39830 * internal-fn.c: Likewise.
39831 * ipa-icf-gimple.c: Likewise.
39832 * lto-section-out.c: Likewise.
39833 * tree-data-ref.c: Likewise.
39834 * tree-nested.c: Likewise.
39835 * tree-outof-ssa.c: Likewise.
39836 * tree-predcom.c: Likewise.
39837 * tree-pretty-print.c: Likewise.
39838 * tree-scalar-evolution.c: Likewise.
39839 * tree-ssa-strlen.c: Likewise.
39840 * tree-vect-loop.c: Likewise.
39841 * tree-vect-patterns.c: Likewise.
39842 * tree-vect-slp.c: Likewise.
39843 * tree-vect-stmts.c: Likewise.
39844 * tsan.c: Likewise.
39845 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39846 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
39848 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
39849 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
39850 statistics.h stmt.h varasm.h.
39851 * loop-unroll.c: Likewise.
39852 * ubsan.c: Likewise.
39853 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
39854 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
39856 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39857 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
39858 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
39859 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
39860 statistics.h stmt.h.
39861 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
39862 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
39863 statistics.h stmt.h varasm.h.
39864 * gimple-match-head.c: Likewise.
39865 * lto-cgraph.c: Likewise.
39866 * lto-section-in.c: Likewise.
39867 * lto-streamer-in.c: Likewise.
39868 * lto-streamer-out.c: Likewise.
39869 * tree-affine.c: Likewise.
39870 * tree-cfg.c: Likewise.
39871 * tree-cfgcleanup.c: Likewise.
39872 * tree-if-conv.c: Likewise.
39873 * tree-into-ssa.c: Likewise.
39874 * tree-ssa-alias.c: Likewise.
39875 * tree-ssa-copyrename.c: Likewise.
39876 * tree-ssa-dse.c: Likewise.
39877 * tree-ssa-forwprop.c: Likewise.
39878 * tree-ssa-live.c: Likewise.
39879 * tree-ssa-math-opts.c: Likewise.
39880 * tree-ssa-pre.c: Likewise.
39881 * tree-ssa-sccvn.c: Likewise.
39882 * tree-tailcall.c: Likewise.
39883 * tree-vect-generic.c: Likewise.
39884 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39885 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
39886 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39887 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
39888 * varasm.c: Likewise.
39889 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39890 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
39892 * init-regs.c: Likewise.
39894 * omp-low.c: Likewise.
39895 * stack-ptr-mod.c: Likewise.
39896 * tree-ssa-reassoc.c: Likewise.
39897 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39898 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
39900 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39901 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
39902 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39903 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
39904 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39905 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
39906 * tree-ssa-phiopt.c: Likewise.
39907 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39908 fixed-value.h hashtab.h real.h statistics.h stmt.h.
39909 * config/fr30/fr30.c: Likewise.
39910 * config/frv/frv.c: Likewise.
39911 * expr.c: Likewise.
39912 * final.c: Likewise.
39913 * optabs.c: Likewise.
39914 * passes.c: Likewise.
39915 * simplify-rtx.c: Likewise.
39916 * stmt.c: Likewise.
39917 * toplev.c: Likewise.
39918 * var-tracking.c: Likewise.
39919 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39920 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
39921 * lower-subreg.c: Likewise.
39922 * postreload-gcse.c: Likewise.
39924 * reginfo.c: Likewise.
39925 * store-motion.c: Likewise.
39926 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39927 fixed-value.h hashtab.h real.h stmt.h varasm.h.
39928 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39929 fixed-value.h hashtab.h statistics.h stmt.h.
39930 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39931 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
39932 * except.c: Likewise.
39933 * explow.c: Likewise.
39934 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39935 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
39937 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39938 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
39939 * tree-ssa-structalias.c: Likewise.
39940 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39941 fixed-value.h insn-config.h real.h statistics.h.
39942 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39943 fixed-value.h insn-config.h real.h statistics.h stmt.h.
39944 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39945 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
39946 * cfgbuild.c: Likewise.
39947 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39948 fixed-value.h real.h rtl.h statistics.h stmt.h.
39949 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39950 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
39951 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39952 fixed-value.h real.h statistics.h stmt.h.
39953 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39954 fixed-value.h real.h statistics.h stmt.h varasm.h.
39955 * cprop.c: Likewise.
39956 * modulo-sched.c: Likewise.
39957 * postreload.c: Likewise.
39958 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
39959 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
39960 statistics.h stmt.h varasm.h.
39961 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
39962 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
39963 rtl.h statistics.h stmt.h varasm.h.
39964 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
39965 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
39967 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
39968 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
39970 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
39971 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
39973 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
39974 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
39975 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
39976 function.h real.h statistics.h stmt.h varasm.h.
39977 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
39978 insn-config.h real.h statistics.h stmt.h.
39979 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
39980 statistics.h stmt.h.
39981 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
39982 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
39983 statistics.h stmt.h varasm.h.
39984 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
39985 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
39986 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
39987 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
39988 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
39989 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
39990 statistics.h stmt.h varasm.h.
39991 * ipa-polymorphic-call.c: Likewise.
39992 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
39993 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
39994 statistics.h stmt.h.
39995 * config/c6x/c6x.c: Likewise.
39996 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
39997 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
39998 statistics.h stmt.h varasm.h.
39999 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
40000 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
40002 * ipa-split.c: Likewise.
40003 * tree-eh.c: Likewise.
40004 * tree-ssa-dce.c: Likewise.
40005 * tree-ssa-loop-niter.c: Likewise.
40006 * tree-vrp.c: Likewise.
40007 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
40008 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
40010 * config/nds32/nds32-fp-as-gp.c: Likewise.
40011 * config/nds32/nds32-intrinsic.c: Likewise.
40012 * config/nds32/nds32-isr.c: Likewise.
40013 * config/nds32/nds32-md-auxiliary.c: Likewise.
40014 * config/nds32/nds32-memory-manipulation.c: Likewise.
40015 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
40016 * config/nds32/nds32-predicates.c: Likewise.
40017 * config/nds32/nds32.c: Likewise.
40018 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
40019 fixed-value.h hashtab.h real.h statistics.h.
40020 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
40021 fixed-value.h hashtab.h real.h statistics.h stmt.h.
40022 * config/arm/arm.c: Likewise.
40023 * config/avr/avr.c: Likewise.
40024 * config/bfin/bfin.c: Likewise.
40025 * config/h8300/h8300.c: Likewise.
40026 * config/i386/i386.c: Likewise.
40027 * config/ia64/ia64.c: Likewise.
40028 * config/iq2000/iq2000.c: Likewise.
40029 * config/m32c/m32c.c: Likewise.
40030 * config/m32r/m32r.c: Likewise.
40031 * config/m68k/m68k.c: Likewise.
40032 * config/mcore/mcore.c: Likewise.
40033 * config/mep/mep.c: Likewise.
40034 * config/mips/mips.c: Likewise.
40035 * config/mn10300/mn10300.c: Likewise.
40036 * config/moxie/moxie.c: Likewise.
40037 * config/pa/pa.c: Likewise.
40038 * config/rl78/rl78.c: Likewise.
40039 * config/rx/rx.c: Likewise.
40040 * config/s390/s390.c: Likewise.
40041 * config/sh/sh.c: Likewise.
40042 * config/sparc/sparc.c: Likewise.
40043 * config/spu/spu.c: Likewise.
40044 * config/stormy16/stormy16.c: Likewise.
40045 * config/v850/v850.c: Likewise.
40046 * config/vax/vax.c: Likewise.
40047 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
40048 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
40049 * config/msp430/msp430.c: Likewise.
40050 * predict.c: Likewise.
40051 * value-prof.c: Likewise.
40052 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
40053 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
40054 * config/microblaze/microblaze.c: Likewise.
40055 * config/nios2/nios2.c: Likewise.
40056 * config/rs6000/rs6000.c: Likewise.
40057 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
40058 insn-config.h real.h rtl.h statistics.h stmt.h.
40059 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
40060 insn-config.h real.h statistics.h stmt.h.
40061 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
40062 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
40063 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
40064 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
40065 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
40066 fixed-value.h real.h statistics.h stmt.h.
40067 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
40068 fixed-value.h statistics.h stmt.h.
40069 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
40072 2015-01-15 Jakub Jelinek <jakub@redhat.com>
40074 * gengtype.c (create_user_defined_type): Workaround
40075 -Wmaybe-uninitialized false positives.
40076 * cse.c (fold_rtx): Likewise.
40077 * loop-invariant.c (gain_for_invariant): Likewise.
40079 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
40081 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
40082 set the memory attributes in all cases but clear MEM_EXPR if need be.
40084 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
40086 PR tree-optimization/64434
40087 * cfgexpand.c (reorder_operands): New function.
40088 (expand_gimple_basic_block): Insert call of reorder_operands if
40091 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
40093 * config/mips/micromips.md (*swp): Remove explicit parallel.
40094 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
40095 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
40096 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
40097 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
40098 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
40099 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
40100 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
40101 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
40102 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
40103 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
40104 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
40105 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
40106 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
40107 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
40108 (mips_wrdsp): Likewise.
40109 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
40111 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
40112 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
40113 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
40114 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
40115 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
40116 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
40117 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
40118 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
40119 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
40121 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
40123 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
40124 (mips_print_operand): Support 'y' to print exact log2 in decimal
40126 * config/mips/mips.h (ISA_HAS_LSA): New define.
40127 (ISA_HAS_DLSA): Likewise.
40128 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
40129 * config/mips/predicates.md (const_immlsa_operand): New predicate.
40131 2015-01-15 Martin Liska <mliska@suse.cz>
40134 * optc-save-gen.awk: Add support for array types.
40136 2015-01-15 Richard Biener <rguenther@suse.de>
40138 PR middle-end/64365
40139 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
40140 for MEM_REF access functions with the same base can never partially
40143 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
40145 * common.opt: New option -fstack-protector-explicit.
40146 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
40147 (stack_protect_decl_phase): Handle stack_protect attribute for
40148 explicit stack protection requests.
40149 (expand_used_vars): Similarly.
40150 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
40151 * doc/extend.texi: Add documentation for "stack_protect" attribute.
40152 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
40154 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
40157 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
40159 (sh_extending_set_of_reg): New struct.
40160 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
40161 sh_remove_reg_dead_or_unused_notes): New Declarations.
40162 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
40163 sh_find_extending_set_of_reg, sh_split_tst_subregs,
40164 sh_extending_set_of_reg::use_as_extended_reg): New functions.
40165 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
40166 convert to insn_and_split and use new function sh_split_tst_subregs.
40168 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
40170 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
40172 (Optimization Options): Move -fuse-ld documentation to...
40173 (Link Options): ...here.
40175 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
40177 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
40179 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
40180 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
40181 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
40182 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
40183 instead of ZR for the memory operand of LL/SC.
40184 (compare_and_swap_12, sync_add<mode>): Likewise.
40185 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
40186 (sync_new_<optab>_12, sync_nand_12): Likewise.
40187 (sync_old_nand_12, sync_new_nand_12): Likewise.
40188 (sync_sub<mode>, sync_old_add<mode>): Likewise.
40189 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
40190 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
40191 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
40192 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
40193 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
40194 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
40195 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
40196 * doc/md.texi (ZC): Update description.
40198 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
40200 * builtins.c (expand_builtin_atomic_exchange): Remove error when
40201 memory model is CONSUME.
40202 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
40203 expand_builtin_atomic_store): Change invalid memory model errors to
40205 (expand_builtin_atomic_clear): Change invalid model errors to warnings
40206 and issue warning for CONSUME.
40208 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
40210 * lto-cgraph: Update function comments for
40211 lto_symtab_encoder_encode_*.
40213 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
40215 * Makefile.in (site.exp): Do not set ENABLE_LTO.
40217 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
40219 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
40220 * lto-cgraph.c (select_what_to_stream): Remove argument, use
40221 lto_stream_offload_p instead.
40222 * lto-streamer.h (select_what_to_stream): Remove argument.
40223 * passes.c (ipa_write_summaries): Likewise.
40224 * tree-pass.h (ipa_write_summaries): Likewise.
40226 2015-01-14 Richard Biener <rguenther@suse.de>
40228 PR tree-optimization/59354
40229 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
40230 groups larger than the slp group size as having gaps.
40232 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
40234 PR middle-end/59448
40235 * builtins.c (get_memmodel): Promote consume to acquire always.
40237 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
40240 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
40243 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
40246 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
40248 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
40249 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
40250 AVX512VBMI, as it implies AVX512BW.
40252 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
40255 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
40256 (vec_unpacks_hi_v16sf): Ditto.
40258 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40260 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
40263 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40265 * doc/invoke.texi (mapcs): Mention deprecation.
40266 (mapcs-frame): Likewise.
40268 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
40271 * config/arm/arm.c (callee_saved_reg_p): Define.
40272 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
40273 register is callee saved instead of !call_used_regs[reg].
40274 (thumb1_compute_save_reg_mask): Likewise.
40276 2015-01-14 Hale Wang <hale.wang@arm.com>
40278 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
40281 2015-01-14 Richard Biener <rguenther@suse.de>
40284 * tree-inline.c (insert_debug_decl_map): Check destination
40285 function MAY_HAVE_DEBUG_STMTS.
40286 (insert_init_debug_bind): Likewise.
40287 (insert_init_stmt): Remove redundant check.
40288 (remap_gimple_stmt): Drop debug stmts if the destination
40289 function has var-tracking assignments disabled.
40291 2015-01-14 Martin Liska <mliska@suse.cz>
40293 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
40294 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
40296 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40299 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
40300 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
40302 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
40304 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
40305 level from an ARCH; do not inject the default.
40306 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
40307 MIPS_ISA_LEVEL_SPEC.
40308 (MIPS_ISA_NAN2008_SPEC): Update comment.
40309 (BASE_DRIVER_SELF_SPECS): Likewise.
40310 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
40311 MIPS_DEFAULT_ISA_LEVEL_SPEC.
40312 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
40313 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
40314 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
40316 2015-01-14 Richard Biener <rguenther@suse.de>
40318 PR tree-optimization/64493
40319 PR tree-optimization/64495
40320 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
40321 assign the proper vectorized PHI to the inner loop exit PHIs.
40323 2015-01-14 Joey Ye <joey.ye@arm.com>
40325 * config/arm/arm.c (arm_compute_save_reg_mask):
40326 Do not save lr in case of tail call.
40327 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
40329 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
40331 * tree-vrp.c (check_array_ref): Emit more warnings
40332 for warn_array_bounds >= 2.
40333 * common.opt: New option -Warray-bounds=.
40334 * doc/invoke.texi: Document -Warray-bounds=.
40336 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
40338 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
40339 (mforbid-fp-as-gp): Remove.
40341 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
40342 (nds32_symbol_load_store_p): Remove.
40343 (nds32_fp_as_gp_check_available): Clean up implementation.
40344 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
40346 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
40347 fp-as-gp and ex9 cases.
40349 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
40351 * tree-profile.c (init_ic_make_global_vars): Drop workaround
40352 for bintuils bug 14342.
40353 (init_ic_make_global_vars): Likewise.
40354 (gimple_init_edge_profiler): Likewise.
40355 (gimple_gen_ic_func_profiler): Likewise.
40357 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
40359 * ipa-inline.c (inline_small_functions): Swap the operands in
40362 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
40365 * ipa-inline-analysis.c (node_growth_cache): Remove.
40366 (initialize_growth_caches): Do not initialize it.
40367 (free_growth_caches): Do not free it.
40368 (do_estimate_growth): Rename to ...
40369 (estimate_growth): ... this one; drop growth cache code.
40370 (growth_likely_positive): Always go the heuristics way.
40371 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
40372 (reset_edge_caches): Do not reset node growth.
40373 (heap_edge_removal_hook): Do not maintain cache.
40374 (inline_small_functions): Likewise; strenghten sanity check.
40375 (ipa_inline): Do not maintain caches.
40376 * ipa-inline.h (node_growth_cache): Remove.
40377 (do_estimate_growth): Remove to ...
40378 (estimate_growth): this one; remove inline version.
40379 (reset_node_growth_cache): Remove.
40381 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
40384 * ipa-inline.c (inline_small_functions): Update callee keys after
40385 resolving speculation
40386 (inline_small_functions): Always check monotonicity of the queue.
40388 2015-01-13 Marek Polacek <polacek@redhat.com>
40390 PR middle-end/64391
40391 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
40393 2015-01-13 Jakub Jelinek <jakub@redhat.com>
40395 PR rtl-optimization/64286
40396 * ree.c (combine_reaching_defs): Move part of comment earlier,
40397 remove !SCALAR_INT_MODE_P check.
40398 (add_removable_extension): Don't add vector mode
40399 extensions if all uses of the source register aren't the same
40402 2015-01-13 Renlin Li <renlin.li@arm.com>
40404 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
40405 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
40407 2015-01-13 Martin Liska <mliska@suse.cz>
40409 * ipa-icf.c (sem_function::equals_private): Call new functions
40410 cl_target_option_print_diff and cl_optimization_print_diff.
40411 * optc-save-gen.awk (cl_target_option_print_diff): New function.
40412 (cl_optimization_print_diff): Likewise.
40413 * opth-gen.awk: Likewise.
40415 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
40417 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
40418 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
40419 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
40420 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
40421 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
40422 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
40424 2015-01-13 Andrew Pinski <apinski@cavium.com>
40426 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
40427 instead of src mode.
40429 2015-01-13 Richard Biener <rguenther@suse.de>
40432 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
40435 2015-01-13 Andrew Pinski <apinski@cavium.com>
40437 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
40439 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
40441 2015-01-13 Jakub Jelinek <jakub@redhat.com>
40443 PR middle-end/63974
40444 * cfgexpand.c (expand_computed_goto): Don't call
40445 convert_memory_address here.
40447 2015-01-13 Richard Biener <rguenther@suse.de>
40449 PR tree-optimization/64406
40450 * tree-loop-distibution.c (pass_loop_distribution::execute):
40451 Reset the SCEV hashtable if we distributed anything.
40453 2015-01-13 Richard Biener <rguenther@suse.de>
40455 PR tree-optimization/64404
40456 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
40457 SLP types for CSEd loads.
40459 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
40461 PR tree-optimization/64436
40462 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
40463 merge of two symbolic numbers for a bitwise OR to ...
40464 (perform_symbolic_merge): This. Also fix computation of the range and
40465 end of the symbolic number corresponding to the result of a bitwise OR.
40467 2015-01-13 Richard Biener <rguenther@suse.de>
40469 PR tree-optimization/64568
40470 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
40471 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
40473 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
40475 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
40476 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
40478 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
40480 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
40481 target-specific symbol_ref flag.
40482 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
40483 resides in rodata section.
40484 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
40485 (nds32_encode_section_info): New function.
40487 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
40489 * config/nds32/nds32.md (call): Use pseudo instruction bal which
40490 clobbers TA_REGNUM if large code model is specified.
40491 (call_register): Likewise.
40492 (call_immediate): Likewise.
40493 (call_value): Likewise.
40494 (call_value_register): Likewise.
40495 (call_value_immediate): Likewise.
40497 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
40499 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
40500 (TARGET_CMODEL_MEDIUM): New macro.
40501 (TARGET_CMODEL_LARGE): New macro.
40502 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
40503 code model setting in assembly code.
40505 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
40507 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
40508 Remove MASK_GP_DIRECT flag.
40509 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
40510 one of the multilib default options.
40511 * config/nds32/nds32.opt (mgp-direct): Remove.
40512 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
40513 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
40515 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
40517 * config/nds32/nds32.opt (mcmodel): Add new option.
40518 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
40519 to describe code model.
40521 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
40524 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
40526 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
40528 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
40529 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
40530 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
40531 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
40532 __builtin_sh_set_fpscr.
40534 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
40536 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
40537 after a funtion name just to indicate it is a function.
40538 ([-fsanitize-undefined-trap-on-error]): Likewise.
40539 ([-fdbg-cnt=]): Likewise.
40540 ([-mmemcpy]): Likewise.
40541 ([-mflush-func]): Likewise.
40542 ([-msynci]): Likewise.
40544 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
40546 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
40549 2015-01-12 Jakub Jelinek <jakub@redhat.com>
40551 PR tree-optimization/64563
40552 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
40553 instead of != VR_VARYING.
40556 * config/i386/i386.c (ix86_expand_prologue): Add
40557 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
40559 PR tree-optimization/64454
40560 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
40561 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
40562 for signed or [0, op1 - 1] for unsigned modulo.
40563 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
40564 even if op1 does not satisfy integer_pow2p.
40567 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
40569 2015-01-12 Jeff Law <law@redhat.com>
40572 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
40573 (trunchiqi2, truncsihi2): Similarly.
40575 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
40576 rather than calling F.
40578 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
40580 * tsan.c (instrument_expr): Use force_gimple_operand.
40581 Use may_be_nonaddressable_p instead of is_gimple_addressable.
40583 2015-01-12 Richard Biener <rguenther@suse.de>
40585 PR tree-optimization/64530
40586 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
40589 2015-01-12 Richard Biener <rguenther@suse.de>
40591 PR middle-end/64357
40592 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
40595 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40597 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
40598 Cortex-A17 tuning parameters.
40599 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
40601 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40603 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
40604 * config/arm/arm.c (arm_macro_fusion_p): New function.
40605 (arm_macro_fusion_pair_p): Likewise.
40606 (TARGET_SCHED_MACRO_FUSION_P): Define.
40607 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
40608 (ARM_FUSE_NOTHING): Likewise.
40609 (ARM_FUSE_MOVW_MOVT): Likewise.
40610 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
40611 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
40612 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
40613 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
40614 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
40615 arm_cortex_a5_tune): Specify fuseable_ops value.
40617 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
40620 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
40621 test for PIE with copy reloc.
40622 * configure: Regenerated.
40624 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40626 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
40628 (arm_tls_descseq_addr): Likewise.
40629 (arm_gen_movmemqi): Likewise.
40630 (arm_expand_epilogue_apcs_frame): Likewise.
40631 (arm_expand_epilogue): Likewise.
40632 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
40635 2015-01-12 Martin Liska <mliska@suse.cz>
40638 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
40639 volatility for correct operands.
40641 2015-01-12 Martin Liska <mliska@suse.cz>
40643 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
40644 indication that a function is not leaf.
40645 (sem_function::compare_polymorphic_p): Likewise.
40647 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
40649 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
40650 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
40651 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
40652 fold-const.h, tree-check.h.
40654 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
40658 * ipa-inline.c (compute_uninlined_call_time,
40659 compute_inlined_call_time): Use counts for extra precision when
40661 (big_speedup_p): Fix formating.
40662 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
40663 (relative_time_benefit): Remove.
40664 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
40665 merge guessed and read profile paths.
40666 (inline_small_functions): Count only !optimize_size functions into
40667 initial size; be more lax about sanity check when profile is used;
40668 be sure to update inlined function profile when profile is read.
40670 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
40673 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
40674 cost when edge becomes direct.
40675 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
40676 is resolved or when introducing new speculation.
40678 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
40682 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
40683 '||' to fix typo issue.
40685 * tree.h (target_opts_for_fn): Check NULL_TREE since it can
40686 accept and return NULL.
40688 2015-01-12 Martin Liska <mliska@suse.cz>
40690 * cgraph.c (cgraph_edge::remove_callee): Move function to header
40691 file for being inlined.
40692 (cgraph_set_edge_callee): Delete.
40693 (cgraph_edge::redirect_callee): Move function to header file
40695 (cgraph_edge::make_direct): Use new function.
40696 (cgraph_edge::dump_edge_flags): New function created from
40697 static dump_edge_flags function.
40698 (cgraph_node::dump): Use new function.
40699 (cgraph_edge::verify_count_and_frequency): New function created
40700 from verify_edge_count_and_frequency.
40701 (cgraph_edge::verify_corresponds_to_fndecl): New function created
40702 from verify_edge_corresponds_to_fndecl.
40703 (verify_edge_corresponds_to_fndecl): Delete.
40704 (cgraph_node::verify_node): Use new function.
40705 * cgraph.h (cgraph_edge::set_callee): New function.
40706 (cgraph_edge::dump_edge_flags): Likewise.
40707 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
40709 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
40711 * ipa-utils.c (estimate_function_body_sizes): Do not
40712 free node params when called late with early=true.
40714 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
40716 * doc/md.texi (Instruction Patterns): Rewrite text for
40718 (Example): Likewise.
40720 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
40722 * doc/invoke.texi (Option Summary): Break long lines.
40723 [(-fdiagnostics-color)]: Put long literal in @smallexample
40725 [(-fsanitize-recover)]: Likewise.
40726 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
40727 [(-ffast-math)]: Likewise.
40728 [(--param max-inline-insns-recursive)]: Likewise.
40729 [(--param max-inline-recursive-depth)]: Likewise.
40730 [(-mno-text-section-literals)]: Likewise.
40732 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
40734 * doc/install.texi: Update for libgomp being renamed from "GNU
40735 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
40737 * doc/sourcebuild.texi: Likewise.
40739 2015-01-10 Anthony Green <green@moxielogic.com>
40741 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
40742 mul.x availability for moxiebox configuration.
40744 2015-01-09 Anthony Green <green@moxielogic.com>
40746 * config/moxie/moxie.md: Tabify assembly output.
40748 2015-01-09 Anthony Green <green@moxielogic.com>
40750 * config/moxie/moxie.md (CC_REG): Correct register definition.
40752 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
40754 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
40755 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
40758 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
40760 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
40762 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
40763 Jakub Jelinek <jakub@redhat.com>
40765 PR middle-end/64412
40766 * lto-streamer.h (lto_stream_offload_p): New declaration.
40767 * lto-streamer.c (lto_stream_offload_p): New variable.
40768 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
40769 at the same time as section_name_prefix.
40770 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
40771 if lto_stream_offload_p.
40772 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
40773 stream TREE_TARGET_OPTION if lto_stream_offload_p.
40774 (write_ts_function_decl_tree_pointers): Don't
40775 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
40776 * tree-streamer-in.c (unpack_value_fields): Don't stream
40777 TREE_TARGET_OPTION in if ACCEL_COMPILER.
40778 (lto_input_ts_function_decl_tree_pointers): Don't stream
40779 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
40780 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
40781 instead of section_name_prefix string comparisons.
40783 2015-01-09 Jakub Jelinek <jakub@redhat.com>
40785 PR rtl-optimization/64536
40786 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
40789 2015-01-09 Michael Collison <michael.collison@linaro.org>
40791 PR tree-optimization/64322
40792 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
40793 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
40795 2015-01-09 Tom de Vries <tom@codesourcery.com>
40797 PR rtl-optimization/64539
40798 * regcprop.c (kill_clobbered_values): Factor out of ...
40799 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
40800 instead of note_stores with kill_clobbered_value.
40802 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
40804 * ginclude/unwind-arm-common.h: Revert previous commit.
40806 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
40808 * config.gcc (arm*-*-freebsd*): New configuration.
40809 * config/arm/freebsd.h: New file.
40810 * config.host: Add extra components for arm*-*-freebsd*.
40811 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
40812 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
40814 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
40816 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
40818 * config/rs6000/t-rtems: Add e6500 multilibs.
40820 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
40822 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
40825 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
40827 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
40828 MULTILIB_EXCEPTIONS.
40830 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
40832 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
40833 MULTILIB_EXCEPTIONS.
40835 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
40837 * config/arm/t-rtems-eabi: Rename to...
40838 * config/arm/t-rtems: ...this.
40839 * config/arm/rtems-eabi.h: Rename to...
40840 * config/arm/rtems.h: ...this.
40841 * config.gcc (arm*-*-rtems*): Reflect changes above.
40843 2015-01-09 Richard Biener <rguenther@suse.de>
40845 PR tree-optimization/64410
40846 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
40848 (execute_update_addresses_taken): Deal with that.
40849 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
40850 loads/stores for complex variables.
40852 2015-01-09 Martin Liska <mliska@suse.cz>
40854 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
40856 (func_checker::compare_memory_operand): New function.
40857 (func_checker::compare_operand): Split case to newly
40859 (func_checker::compare_cst_or_decl): New function.
40860 (func_checker::compare_gimple_call): Identify
40862 (func_checker::compare_gimple_assign): Likewise.
40863 * ipa-icf-gimple.h: New function.
40865 2015-01-09 Martin Liska <mliska@suse.cz>
40868 * sreal.c (sreal::dump): Change unsigned format to signed for
40870 (sreal::to_double): Replace exp2 with scalbln.
40872 2015-01-09 Martin Liska <mliska@suse.cz>
40874 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
40875 * ipa-icf.c (sem_function::equals_private): Add support for target and
40876 (sem_item_optimizer::merge_classes): Remove redundant function
40877 optimization flags comparison.
40878 * tree.h (target_opts_for_fn): New function.
40880 2015-01-09 Tom de Vries <tom@codesourcery.com>
40882 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
40884 2015-01-09 Kito Cheng <kito@0xlab.org>
40886 PR rtl-optimization/64348
40887 * lra-constraints.c (split_reg): Fix caller-save store/restore
40888 instruction generation.
40890 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
40892 PR gcov-profile/61790
40893 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
40894 long long. Fallback to int64_t if host doesn't have long long and
40895 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
40897 2015-01-08 Jakub Jelinek <jakub@redhat.com>
40899 PR tree-optimization/63989
40900 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
40901 from 1000 to 10000.
40902 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
40903 (get_stridx): If we don't have a record for certain SSA_NAME,
40904 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
40905 constant offset, call get_stridx_plus_constant.
40906 (get_stridx_plus_constant): New function.
40907 (zero_length_string): Don't use get_stridx here.
40910 PR middle-end/64388
40911 * dse.c (struct insn_info): Mention frame_read set also
40912 before reload for tail calls on some targets.
40913 (scan_insn): Revert 2014-12-22 change. Set frame_read
40914 also before reload for tail calls if
40915 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
40916 instead of add_non_frame_wild_read for non-const/memset
40917 tail calls after reload.
40919 2015-01-08 Jason Merrill <jason@redhat.com>
40921 * ubsan.c (do_ubsan_in_current_function): New.
40922 (pass_ubsan::gate): Use it.
40923 * ubsan.h: Declare it.
40924 * convert.c (convert_to_integer): Use it.
40926 2015-01-08 Jakub Jelinek <jakub@redhat.com>
40929 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
40930 compare_code when it is unconditionally overwritten afterwards.
40931 Use ix86_reverse_condition instead of reverse_condition. Don't
40932 change code if *reverse_condition* returned UNKNOWN and don't
40933 swap ct/cf and negate diff in that case.
40935 2015-01-08 Mike Stump <mikestump@comcast.net>
40937 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
40938 (pass_tsan_O0::gate): Likewise.
40939 * extend.texi (Function Attributes): Add no_sanitize_thread
40942 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
40944 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
40945 for registering builtins.
40946 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
40947 add -fopenmp to the argv_obstack used when invoking
40948 compile_for_target.
40950 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
40951 add "-m32" or "-m64" to argv_obstack.
40952 (generate_host_descr_file): Likewise, when invoking host_compiler.
40953 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
40956 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
40958 * config/sh/sh-mem.cc: Use constant as second operand when emitting
40961 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
40964 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
40965 constant load if constant operand fits into I08.
40967 2015-01-08 Jakub Jelinek <jakub@redhat.com>
40970 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
40971 and TREE_THIS_VOLATILE for MEM_REFs.
40972 (build5_stat): Fix up initialization of TREE_READONLY and
40973 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
40975 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
40978 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
40979 of r for the second alternative of the destination operand.
40981 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
40984 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
40986 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
40988 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
40990 ([-fivar-visibility], [-fvisibility]): Likewise.
40992 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
40994 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
40995 the file where @code, @command, etc is more appropriate.
40997 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
40999 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
41000 of -mrecip= documentation.
41002 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
41005 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
41006 correct reload handler if -m32 -mpowerpc64 is used.
41008 2015-01-06 Tom de Vries <tom@codesourcery.com>
41010 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
41012 2015-01-08 Christian Bruel <christian.bruel@st.com>
41015 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
41017 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
41019 PR tree-optimization/63259
41020 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
41021 if optab exists for 16bit byteswap.
41023 2015-01-06 Jakub Jelinek <jakub@redhat.com>
41025 * opts.c (common_handle_option): Add support for
41026 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
41027 * doc/invoke.texi: Document -fno-sanitize=all,
41028 -f{,no-}sanitize-recover=all. Document that
41029 -fsanitize=float-cast-overflow is not enabled
41030 by -fsanitize=undefined. Fix up documentation
41031 of -f{,no-}sanitize-recover.
41033 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
41035 * config.gcc: Add Visium support.
41036 * configure.ac: Likewise.
41037 * configure: Regenerate.
41038 * doc/extend.texi (interrupt attribute): Add Visium.
41039 * doc/invoke.texi: Document Visium options.
41040 * doc/install.texi: Document Visium target.
41041 * doc/md.texi: Document Visium constraints.
41042 * common/config/visium: New directory.
41043 * config/visium: Likewise.
41045 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
41047 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
41048 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
41050 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
41052 * combine.c (combine_validate_cost): Do not count the cost of a
41053 split I2 twice. Do not display it twice in the dump, either.
41055 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
41057 Revert parts of r219199.
41058 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
41060 ([-Wtraditional]): Restore markup on <limits.h>.
41062 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
41065 * doc/invoke.texi: Document -Wsuggest-override.
41067 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
41069 PR rtl-optimization/64287
41070 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
41071 (process_options): Disable flag_ipa_ra if profiling.
41073 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
41075 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
41077 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
41079 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
41080 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
41081 put under #if TARGET_LOOPS guard.
41083 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
41085 * config/i386/i386.c (output_387_binary_op): Use std::swap.
41087 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
41089 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
41090 * rtl.h (refers_to_regno_p): Add overload.
41092 * bt-load.c: Likewise.
41093 * combine.c: Likewise.
41094 * df-scan.c: Likewise.
41095 * sched-deps.c: Likewise.
41096 * config/s390/s390.c: Likewise.
41097 * config/m32r/m32r.c: Likewise.
41098 * config/rs6000/spe.md: Likewise.
41099 * config/rs6000/rs6000.c: Likewise.
41100 * config/pa/pa.c: Likewise.
41101 * config/stormy16/stormy16.c: Likewise.
41102 * config/cris/cris.c: Likewise.
41103 * config/arc/arc.md: Likewise.
41104 * config/arc/arc.c: Likewise.
41105 * config/sh/sh.md: Likewise.
41106 * config/sh/sh.c: Likewise.
41107 * config/frv/frv.c: Likewise.
41109 2015-01-05 Jakub Jelinek <jakub@redhat.com>
41112 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
41113 call as cleanup of the whole body.
41114 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
41115 * tsan.c (replace_func_exit): New function.
41116 (instrument_func_exit): Moved earlier.
41117 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
41118 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
41120 (tsan_pass): Don't call instrument_func_exit.
41121 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
41122 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
41126 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
41127 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
41128 it to libubsan handler instead of EXPR. Fold comparisons earlier,
41129 if the result is integer_zerop, return NULL_TREE.
41130 * convert.c (convert_to_integer): Pass expr as ARG.
41132 PR tree-optimization/64465
41133 * tree-inline.c (redirect_all_calls): During inlining
41134 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
41135 changed the stmt to a non-throwing call.
41137 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
41139 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
41140 etc markup throughout the file.
41142 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
41144 Enable experimental TSAN support for Ada.
41145 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
41147 2015-01-05 Jakub Jelinek <jakub@redhat.com>
41149 PR tree-optimization/64494
41150 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
41151 clear SSA_NAME_ANTI_RANGE_P flag.
41153 2015-01-05 Marek Polacek <polacek@redhat.com>
41155 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
41157 2015-01-05 Jakub Jelinek <jakub@redhat.com>
41159 Update copyright years.
41161 * gcc.c (process_command): Update copyright notice dates.
41162 * gcov-dump.c: Ditto.
41164 * doc/cpp.texi: Bump @copying's copyright year.
41165 * doc/cppinternals.texi: Ditto.
41166 * doc/gcc.texi: Ditto.
41167 * doc/gccint.texi: Ditto.
41168 * doc/gcov.texi: Ditto.
41169 * doc/install.texi: Ditto.
41170 * doc/invoke.texi: Ditto.
41172 * auto-profile.c, auto-profile.h: Fix up Copyright line.
41174 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
41176 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
41178 ([-fvtable-verify], [-fvtv-debug]): Likewise.
41179 ([-Wabi]): Likewise.
41180 ([-fmessage-length]): Likewise.
41181 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
41182 ([-Wno-discarded-qualifiers]): Likewise.
41183 ([-Wnodiscarded-array-qualifiers]): Likewise.
41184 ([-Wno-virtual-move-assign]): Likewise.
41185 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
41186 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
41187 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
41188 ([-fsanitize-undefined-trap-on-error]): Likewise.
41189 ([-floop-interchange]): Likewise.
41190 ([-ftree-coalesce-inlined-vars]): Likewise.
41191 ([-fvect-cost-model]): Likewise.
41192 ([-flto]): Likewise.
41193 ([--param]): Likewise.
41194 (Spec Files): Likewise.
41195 ([-mstrict-align]): Likewise.
41196 ([-mfix-cortex-a53-835769]): Likewise.
41197 ([-march], [-mtune]): Likewise.
41198 ([-mpic-register]): Likewise.
41199 ([-munaligned-access]): Likewise.
41200 ([-msp8]): Likewise.
41201 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
41202 (AVR Built-in Macros): Likewise.
41203 ([-mpreferred-stack-boundary]): Likewise.
41204 ([-mtune-crtl]): Likewise.
41205 ([-mashf]): Likewise.
41206 ([-mmcu=]): Likewise.
41207 ([-minrt]): Likewise.
41208 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
41209 ([-mupper-regs]): Likewise.
41210 ([-matomic-model]): Likewise.
41211 ([-mdiv]): Likewise.
41212 ([-mzdcbranch]): Likewise.
41213 ([-mdisable-callt]): Likewise.
41214 ([-msoft-float]): Likewise.
41215 ([-m8byte-align]): Likewise.
41216 ([-fstack-reuse]): Likewise.
41218 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
41220 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
41221 Fix markup, light copy-editing.
41222 ([-fauto-profile]): Rewrite to fix formatting and content
41225 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
41227 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
41228 Copy-edit description.
41229 ([-fisolate-erroneous-paths-attribute]): Likewise.
41230 * common.opt (fisolate-erroneous-paths-dereference):
41231 Copy-edit description.
41232 (fisolate-erroneous-paths-attribute): Likewise.
41234 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
41236 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
41239 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
41241 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
41242 ([-fvtv-debug]): Likewise.
41243 ([-Wc++-compat]): Likewise.
41244 ([-Wc++11-compat]): Likewise.
41245 ([-Wc++14-compat]): Likewise.
41246 ([-Wno-sized-deallocation]): Likewise.
41247 ([-femit-class-debug-always]): Likewise.
41248 ([-femit-struct-debug-detailed]): Likewise.
41249 ([-fno-keep-inline-dllexport]): Likewise.
41250 ([-fira-algorithm]): Likewise.
41251 ([-fira-region]): Likewise.
41252 ([-flra-remat]): Likewise.
41253 ([-fipa-ra]): Likewise.
41254 ([-fhoist-adjacent-loads]): Likewise.
41255 ([-fisolate-erroneous-paths-dereference]): Likewise.
41256 ([-fisolate-erroneous-paths-attribute]): Likewise.
41257 ([-ftree-switch-conversion]): Likewise.
41258 ([-ftree-tail-merge]): Likewise.
41259 ([-ftree-loop-if-convert]): Likewise.
41260 ([-ftree-loop-if-convert-stores]): Likewise.
41261 ([-ftree-loop-distribution]): Likewise.
41262 ([-ftree-loop-distribute-patterns]): Likewise.
41263 ([-flto-compression-level]): Likewise.
41264 ([-flto-report]): Likewise.
41265 ([-flto-report-wpa]): Likewise.
41266 ([-fuse-linker-plugin]): Likewise.
41267 ([-mfix-cortex-a53-835769]): Likewise.
41268 ([-mno-fix-cortex-a53-835769]): Likewise.
41269 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
41270 explicit listing; add a note to the discussion indicating they
41271 exist. Reorder table to group similar options. Add missing
41272 @opindex entries. Add @need commands throughout the table to
41273 allow it to be split across multiple pages.
41274 ([-m8bit-idiv]): Fix @opindex.
41275 ([-mavx256-split-unaligned-load]): Likewise.
41276 ([-mavx256-split-unaligned-store]): Likewise.
41277 ([-mstack-protector-guard]): Likewise.
41278 ([-mcpu=]): Likewise.
41279 ([-mcpu]): Likewise.
41280 ([-mpointer-size=]): Likewise.
41282 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
41284 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
41285 instead of `m' constraint. Likewise for unnamed movb comparison
41286 patterns using reg_before_reload_operand predicate.
41287 * config/pa/predicates.md (reg_before_reload_operand): Tighten
41288 predicate to reject register index and LO_SUM DLT memory forms
41291 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
41293 * doc/invoke.texi (Option Summary): Fix spelling of
41294 -fdevirtualize-at-ltrans.
41295 ([-fdevirtualize]): Fix markup.
41296 ([-fdevirtualize-speculatively]): Fix typo.
41297 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
41298 implementor-speaky.
41299 * common.opt (fdevirtualize-at-ltrans): Likewise.
41300 * ipa-devirt.c: Fix typos in comments throughout the file.
41301 (ipa_devirt): Fix typos in format strings for dump output.
41303 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
41305 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
41306 discussion of defaults, light copy-editing.
41308 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
41310 * tsan.c (instrument_expr): corrected previous checkin.
41312 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
41314 Instrument bit field and unaligned accesses for TSAN.
41315 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
41316 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
41317 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
41318 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
41319 unaligned memory regions.
41321 2015-01-01 Anthony Green <green@moxielogic.com>
41323 * config/moxie/predicates.md (moxie_general_movsrc_operand):
41324 Restrict move source register offsets to 16 bits.
41326 Copyright (C) 2015 Free Software Foundation, Inc.
41328 Copying and distribution of this file, with or without modification,
41329 are permitted in any medium without royalty provided the copyright
41330 notice and this notice are preserved.